David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 20 | |
Kevin Clark | a7e7c04 | 2008-06-18 00:52:05 +0000 | [diff] [blame] | 21 | namespace rb TestNamespace |
Kevin Clark | d5c98ee | 2008-06-18 00:51:45 +0000 | [diff] [blame] | 22 | |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 23 | struct Goodbyez { |
| 24 | 1: i32 val = 325; |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 25 | } |
| 26 | |
Jens Geyer | 85d8162 | 2019-10-10 01:33:30 +0200 | [diff] [blame] | 27 | senum Thinger { |
| 28 | "ASDFKJ", |
| 29 | "r32)*F#@", |
| 30 | "ASDFLJASDF" |
| 31 | } |
| 32 | |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 33 | struct BoolPasser { |
| 34 | 1: bool value = 1 |
| 35 | } |
| 36 | |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 37 | struct Hello { |
| 38 | 1: i32 simple = 53, |
| 39 | 2: map<i32,i32> complex = {23:532, 6243:632, 2355:532}, |
| 40 | 3: map<i32, map<i32,i32>> complexer, |
| 41 | 4: string words = "words", |
| 42 | 5: Goodbyez thinz = {'val' : 36632} |
| 43 | } |
| 44 | |
| 45 | const map<i32,map<i32,i32>> CMAP = { 235: {235:235}, 53:{53:53} } |
| 46 | const i32 CINT = 325; |
| 47 | const Hello WHOA = {'simple' : 532} |
| 48 | |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 49 | exception Goodbye { |
| 50 | 1: i32 simple, |
| 51 | 2: map<i32,i32> complex, |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 52 | 3: map<i32, map<i32,i32>> complexer, |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | service SmallService { |
Jens Geyer | 85d8162 | 2019-10-10 01:33:30 +0200 | [diff] [blame] | 56 | Thinger testThinger(1:Thinger bootz), |
Mark Slee | e129a2d | 2007-02-21 05:17:48 +0000 | [diff] [blame] | 57 | Hello testMe(1:i32 hello=64, 2: Hello wonk) throws (1: Goodbye g), |
Mark Slee | 9e288d4 | 2007-01-24 23:42:12 +0000 | [diff] [blame] | 58 | void testVoid() throws (1: Goodbye g), |
| 59 | i32 testI32(1:i32 boo) |
| 60 | } |