blob: e5aa6c5d3fae9171cf600630e01b9e980fc80576 [file] [log] [blame]
Jake Farrell27274222011-11-10 20:32:44 +00001(*
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
20unit TestConstants;
21
22interface
23
24type
Jens Geyerf8a1b7a2014-09-24 00:26:46 +020025 TKnownProtocol = (
26 prot_Binary, // default binary protocol
27 prot_JSON, // JSON protocol
28 prot_Compact
29 );
30
31 TServerType = (
32 srv_Simple,
33 srv_Nonblocking,
34 srv_Threadpool,
35 srv_Threaded
36 );
37
38 TEndpointTransport = (
39 trns_Sockets,
40 trns_Http,
41 trns_NamedPipes,
42 trns_AnonPipes,
43 trns_EvHttp // as listed on http://thrift.apache.org/test
44 );
45
46 TLayeredTransport = (
47 trns_Buffered,
48 trns_Framed
49 );
50
51 TLayeredTransports = set of TLayeredTransport;
52
Jake Farrell27274222011-11-10 20:32:44 +000053const
Jens Geyerf8a1b7a2014-09-24 00:26:46 +020054 SERVER_TYPES : array[TServerType] of string
55 = ('Simple', 'Nonblocking', 'Threadpool', 'Threaded');
56
57 THRIFT_PROTOCOLS : array[TKnownProtocol] of string
58 = ('Binary', 'JSON', 'Compact');
59
60 LAYERED_TRANSPORTS : array[TLayeredTransport] of string
61 = ('Buffered', 'Framed');
62
63 ENDPOINT_TRANSPORTS : array[TEndpointTransport] of string
64 = ('Sockets', 'Http', 'Named Pipes','Anon Pipes', 'EvHttp');
Jake Farrell27274222011-11-10 20:32:44 +000065
Jens Geyer0b20cc82013-03-07 20:47:01 +010066 // defaults are: read=false, write=true
67 BINARY_STRICT_READ = FALSE;
68 BINARY_STRICT_WRITE = FALSE;
69
Jens Geyer06045cf2013-03-27 20:26:25 +020070 HUGE_TEST_STRING = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
71 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
72 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
73 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
74 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
75 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
76 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
77 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
78 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
79 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
80 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
81 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
82 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
83 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
84 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
85 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
86 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
87 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
88 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
89 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
90 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
91 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
92 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
93 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
94 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
95 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
96 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
97 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
98 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
99 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
100 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
101 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
102 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
103 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
104 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
105 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
106 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
107 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
108 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
109 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
110 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
111 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
112 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
113 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
114 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
115 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
116 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
117 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
118 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
119 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
120 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
121 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
122 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
123 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
124 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
125 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
126 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
127 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
128 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
129 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
130 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
131 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
132 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
133 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. '
134 + 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy '
135 + 'eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam '
136 + 'voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
137 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit '
138 + 'amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam '
139 + 'nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed '
140 + 'diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet '
141 + 'clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. ';
142
Jake Farrell27274222011-11-10 20:32:44 +0000143implementation
144
145// nothing
146
147end.