Mark Slee | e854063 | 2006-05-30 09:24:40 +0000 | [diff] [blame^] | 1 | enum Numberz |
| 2 | { |
| 3 | ONE = 1, |
| 4 | TWO, |
| 5 | THREE, |
| 6 | FIVE = 5, |
| 7 | SIX, |
| 8 | EIGHT = 8 |
| 9 | } |
| 10 | |
| 11 | typedef u64 UserId |
| 12 | |
| 13 | struct Xtruct |
| 14 | { |
| 15 | string string_thing = 0, |
| 16 | byte byte_thing = 1, |
| 17 | u32 u32_thing = 2, |
| 18 | i32 i32_thing = 3, |
| 19 | u64 u64_thing = 4, |
| 20 | i64 i64_thing = 5 |
| 21 | } |
| 22 | |
| 23 | struct Xtruct2 |
| 24 | { |
| 25 | byte byte_thing = 0, |
| 26 | Xtruct struct_thing = 1, |
| 27 | i32 i32_thing = 2 |
| 28 | } |
| 29 | |
| 30 | struct Insanity |
| 31 | { |
| 32 | map<Numberz, UserId> userMap = 0, |
| 33 | list<Xtruct> xtructs = 1 |
| 34 | } |
| 35 | |
| 36 | service ThriftTest |
| 37 | { |
| 38 | void testVoid() |
| 39 | string testString(string thing = 0) |
| 40 | byte testByte(byte thing = 0) |
| 41 | u32 testU32(u32 thing = 0) |
| 42 | i32 testI32(i32 thing = 0) |
| 43 | u64 testU64(u64 thing = 0) |
| 44 | i64 testI64(i64 thing = 0) |
| 45 | Xtruct testStruct(Xtruct thing = 0) |
| 46 | Xtruct2 testNest(Xtruct2 thing = 0) |
| 47 | map<i32,i32> testMap(map<i32,i32> thing = 0) |
| 48 | set<i32> testSet(set<i32> thing = 0) |
| 49 | list<i32> testList(list<i32> thing = 0) |
| 50 | Numberz testEnum(Numberz thing = 0) |
| 51 | UserId testTypedef(UserId thing = 0) |
| 52 | |
| 53 | map<i32,map<i32,i32>> testMapMap(i32 hello = 0) |
| 54 | |
| 55 | /* So you think you've got this all worked, out eh? */ |
| 56 | map<UserId, map<Numberz,Insanity>> testInsanity(Insanity argument = 0) |
| 57 | } |