1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 package commonapi.tests
6 import commonapi.tests.* from "test-predefined-types.fidl"
8 typeCollection DerivedTypeCollection {
9 <** @description : Common errors. **>
10 enumeration TestEnum {
11 <** @description : default **>
13 <** @description : no error - positive reply **>
15 <** @description : value out of range **>
16 E_OUT_OF_RANGE = "0x02"
17 <** @description : not used **>
21 enumeration TestEnumMissingValue {
22 <** @description : default **>
28 enumeration TestEnumExtended extends TestEnum {
29 <** @description : new error **>
33 enumeration TestEnumExtended2 extends TestEnumExtended {
34 <** @description : new error **>
39 <** @description : the name of the property **>
40 PredefinedTypeCollection.TestString testString
42 <** @description : the actual value **>
46 struct TestStructExtended extends TestStruct {
47 TestEnumExtended2 testEnumExtended2
50 array TestArrayUInt64 of UInt64
51 array TestArrayTestStruct of TestStruct
53 map TestMap { UInt32 to TestArrayTestStruct }