/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package commonapi.tests import commonapi.tests.* from "test-predefined-types.fidl" typeCollection DerivedTypeCollection { map TestMap { UInt32 to TestArrayTestStruct } struct TestStructExtended extends TestStruct { TestEnumExtended2 testEnumExtended2 } map TestEnumMap { TestEnum to String } <** @description : Common errors. **> enumeration TestEnum { <** @description : default **> E_UNKNOWN = "0x00" <** @description : no error - positive reply **> E_OK = "0x01" <** @description : value out of range **> E_OUT_OF_RANGE = "0x02" <** @description : not used **> E_NOT_USED = "0x03" } array TestArrayTestStruct of TestStruct enumeration TestEnumExtended2 extends TestEnumExtended { <** @description : new error **> E_NEW2 = "0x05" } enumeration TestEnumMissingValue { <** @description : default **> E1 = "A" E2 E3 = "2" } enumeration TestEnumExtended extends TestEnum { <** @description : new error **> E_NEW = "0x04" } array TestArrayUInt64 of UInt64 struct TestStruct { <** @description : the name of the property **> PredefinedTypeCollection.TestString testString <** @description : the actual value **> UInt16 uintValue } struct TestPolymorphicStruct polymorphic { <** @description : the name of the property **> PredefinedTypeCollection.TestString testString <** @description : the actual value **> UInt16 uintValue } struct TestExtendedPolymorphicStruct extends TestPolymorphicStruct { UInt32 additionalValue } map MapIntToPolymorphic { UInt8 to DerivedTypeCollection.TestPolymorphicStruct } struct StructWithPolymorphicMember { UInt32 numberValue DerivedTypeCollection.TestPolymorphicStruct polymorphicMember } struct StructWithEnumKeyMap { TestEnumMap testMap } }