tests: fix blocking semantic in DBusProxyTest
[profile/ivi/common-api-dbus-runtime.git] / src / test / test-derived-types.fidl
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
5
6 import commonapi.tests.* from "test-predefined-types.fidl"
7
8 typeCollection DerivedTypeCollection {
9         <** @description : Common errors. **>
10         enumeration TestEnum {
11                  <** @description : default **>
12                 E_UNKNOWN = "0x00"
13                 <** @description : no error - positive reply **>
14                 E_OK = "0x01"
15                 <** @description : value out of range **>
16                 E_OUT_OF_RANGE = "0x02"
17             <** @description : not used **>
18                 E_NOT_USED = "0x03"
19         }
20         
21         enumeration TestEnumMissingValue {
22                  <** @description : default **>
23                 E1 = "A"
24                 E2
25                 E3 = "2"
26         }
27         
28         enumeration TestEnumExtended extends TestEnum {
29                 <** @description : new error **>
30                 E_NEW = "0x04"
31         }
32         
33         enumeration TestEnumExtended2 extends TestEnumExtended {
34                 <** @description : new error **>
35                 E_NEW2 = "0x05"
36         }
37         
38         struct TestStruct {
39                 <** @description : the name of the property **>
40                 PredefinedTypeCollection.TestString testString
41
42                 <** @description : the actual value **>
43                 UInt16 uintValue
44         }
45         
46         struct TestStructExtended extends TestStruct {
47                 TestEnumExtended2 testEnumExtended2
48         }
49         
50         array TestArrayUInt64 of UInt64
51         array TestArrayTestStruct of TestStruct
52
53         map TestMap { UInt32 to TestArrayTestStruct }
54 }
55
56