blob: aa3ecef64739180a8982fa17d1d0001f52d46a12 [file] [log] [blame]
David Reiss00dcccf2007-07-21 01:18:10 +00001cpp_namespace thrift.test
2
3struct OneOfEach {
4 1: bool im_true,
5 2: bool im_false,
6 3: byte a_bite,
7 4: i16 integer16,
8 5: i32 integer32,
9 6: i64 integer64,
10 7: double double_precision,
11 8: string some_characters,
12 9: string zomg_unicode,
13 10: bool what_who,
14}
15
16struct Bonk {
17 1: i32 type,
18 2: string message,
19}
20
21struct Nesting {
22 1: Bonk my_bonk,
23 2: OneOfEach my_ooe,
24}
25
26struct HolyMoley {
27 1: list<OneOfEach> big,
28 2: set<list<string>> contain,
29 3: map<string,list<Bonk>> bonks,
30}
David Reiss382fc302007-08-25 18:01:30 +000031
32struct Backwards {
33 2: i32 first_tag2,
34 1: i32 second_tag1,
35}
36
37struct Empty {
38}
39
40struct Wrapper {
41 1: Empty foo
42}
43
44struct RandomStuff {
45 1: i32 a,
46 2: i32 b,
47 3: i32 c,
48 4: i32 d,
49 5: list<i32> myintlist,
50 6: map<i32,Wrapper> maps,
51 7: i64 bigint,
52 8: double triple,
53}
54
55service Srv {
56 i32 Janky(i32 arg)
57}
David Reiss23753122007-08-27 19:57:34 +000058
59service PartiallyReflectable {
60 map<i32,map<i32,i32>> returnNotReflectable(1: i32 hello),
61 void argNotReflectable(1: list<set<i32>> arg),
62 void arg2NotReflectable(1: i32 arg1, 2: list<set<i32>> argNotReflectable),
63 void withMap(1: map<i32, string> amap),
64
65 OneOfEach refl1(1: list<Bonk> arg1),
66 OneOfEach refl2(2: list<string> arg1, 1: Bonk arg2);
67}
David Reissfaebedd2007-09-17 23:20:38 +000068
69// The only purpose of this thing is to increase the size of the generated code
70// so that ZlibTest has more highly compressible data to play with.
71struct BlowUp {
72 1: map<list<i32>,set<map<i32,string>>> b1;
73 2: map<list<i32>,set<map<i32,string>>> b2;
74 3: map<list<i32>,set<map<i32,string>>> b3;
75 4: map<list<i32>,set<map<i32,string>>> b4;
76}