OLD | NEW |
1 library googleapis_beta.pubsub.v1beta2.test; | 1 library googleapis_beta.pubsub.v1beta2.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed4024() { | 54 buildUnnamed3861() { |
55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
56 o.add("foo"); | 56 o.add("foo"); |
57 o.add("foo"); | 57 o.add("foo"); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed4024(core.List<core.String> o) { | 61 checkUnnamed3861(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAcknowledgeRequest = 0; | 67 core.int buildCounterAcknowledgeRequest = 0; |
68 buildAcknowledgeRequest() { | 68 buildAcknowledgeRequest() { |
69 var o = new api.AcknowledgeRequest(); | 69 var o = new api.AcknowledgeRequest(); |
70 buildCounterAcknowledgeRequest++; | 70 buildCounterAcknowledgeRequest++; |
71 if (buildCounterAcknowledgeRequest < 3) { | 71 if (buildCounterAcknowledgeRequest < 3) { |
72 o.ackIds = buildUnnamed4024(); | 72 o.ackIds = buildUnnamed3861(); |
73 } | 73 } |
74 buildCounterAcknowledgeRequest--; | 74 buildCounterAcknowledgeRequest--; |
75 return o; | 75 return o; |
76 } | 76 } |
77 | 77 |
78 checkAcknowledgeRequest(api.AcknowledgeRequest o) { | 78 checkAcknowledgeRequest(api.AcknowledgeRequest o) { |
79 buildCounterAcknowledgeRequest++; | 79 buildCounterAcknowledgeRequest++; |
80 if (buildCounterAcknowledgeRequest < 3) { | 80 if (buildCounterAcknowledgeRequest < 3) { |
81 checkUnnamed4024(o.ackIds); | 81 checkUnnamed3861(o.ackIds); |
82 } | 82 } |
83 buildCounterAcknowledgeRequest--; | 83 buildCounterAcknowledgeRequest--; |
84 } | 84 } |
85 | 85 |
86 buildUnnamed4025() { | 86 buildUnnamed3862() { |
87 var o = new core.List<core.String>(); | 87 var o = new core.List<core.String>(); |
88 o.add("foo"); | 88 o.add("foo"); |
89 o.add("foo"); | 89 o.add("foo"); |
90 return o; | 90 return o; |
91 } | 91 } |
92 | 92 |
93 checkUnnamed4025(core.List<core.String> o) { | 93 checkUnnamed3862(core.List<core.String> o) { |
94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
95 unittest.expect(o[0], unittest.equals('foo')); | 95 unittest.expect(o[0], unittest.equals('foo')); |
96 unittest.expect(o[1], unittest.equals('foo')); | 96 unittest.expect(o[1], unittest.equals('foo')); |
97 } | 97 } |
98 | 98 |
99 core.int buildCounterBinding = 0; | 99 core.int buildCounterBinding = 0; |
100 buildBinding() { | 100 buildBinding() { |
101 var o = new api.Binding(); | 101 var o = new api.Binding(); |
102 buildCounterBinding++; | 102 buildCounterBinding++; |
103 if (buildCounterBinding < 3) { | 103 if (buildCounterBinding < 3) { |
104 o.members = buildUnnamed4025(); | 104 o.members = buildUnnamed3862(); |
105 o.role = "foo"; | 105 o.role = "foo"; |
106 } | 106 } |
107 buildCounterBinding--; | 107 buildCounterBinding--; |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkBinding(api.Binding o) { | 111 checkBinding(api.Binding o) { |
112 buildCounterBinding++; | 112 buildCounterBinding++; |
113 if (buildCounterBinding < 3) { | 113 if (buildCounterBinding < 3) { |
114 checkUnnamed4025(o.members); | 114 checkUnnamed3862(o.members); |
115 unittest.expect(o.role, unittest.equals('foo')); | 115 unittest.expect(o.role, unittest.equals('foo')); |
116 } | 116 } |
117 buildCounterBinding--; | 117 buildCounterBinding--; |
118 } | 118 } |
119 | 119 |
120 core.int buildCounterEmpty = 0; | 120 core.int buildCounterEmpty = 0; |
121 buildEmpty() { | 121 buildEmpty() { |
122 var o = new api.Empty(); | 122 var o = new api.Empty(); |
123 buildCounterEmpty++; | 123 buildCounterEmpty++; |
124 if (buildCounterEmpty < 3) { | 124 if (buildCounterEmpty < 3) { |
125 } | 125 } |
126 buildCounterEmpty--; | 126 buildCounterEmpty--; |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkEmpty(api.Empty o) { | 130 checkEmpty(api.Empty o) { |
131 buildCounterEmpty++; | 131 buildCounterEmpty++; |
132 if (buildCounterEmpty < 3) { | 132 if (buildCounterEmpty < 3) { |
133 } | 133 } |
134 buildCounterEmpty--; | 134 buildCounterEmpty--; |
135 } | 135 } |
136 | 136 |
137 buildUnnamed4026() { | 137 buildUnnamed3863() { |
138 var o = new core.List<api.Subscription>(); | 138 var o = new core.List<api.Subscription>(); |
139 o.add(buildSubscription()); | 139 o.add(buildSubscription()); |
140 o.add(buildSubscription()); | 140 o.add(buildSubscription()); |
141 return o; | 141 return o; |
142 } | 142 } |
143 | 143 |
144 checkUnnamed4026(core.List<api.Subscription> o) { | 144 checkUnnamed3863(core.List<api.Subscription> o) { |
145 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
146 checkSubscription(o[0]); | 146 checkSubscription(o[0]); |
147 checkSubscription(o[1]); | 147 checkSubscription(o[1]); |
148 } | 148 } |
149 | 149 |
150 core.int buildCounterListSubscriptionsResponse = 0; | 150 core.int buildCounterListSubscriptionsResponse = 0; |
151 buildListSubscriptionsResponse() { | 151 buildListSubscriptionsResponse() { |
152 var o = new api.ListSubscriptionsResponse(); | 152 var o = new api.ListSubscriptionsResponse(); |
153 buildCounterListSubscriptionsResponse++; | 153 buildCounterListSubscriptionsResponse++; |
154 if (buildCounterListSubscriptionsResponse < 3) { | 154 if (buildCounterListSubscriptionsResponse < 3) { |
155 o.nextPageToken = "foo"; | 155 o.nextPageToken = "foo"; |
156 o.subscriptions = buildUnnamed4026(); | 156 o.subscriptions = buildUnnamed3863(); |
157 } | 157 } |
158 buildCounterListSubscriptionsResponse--; | 158 buildCounterListSubscriptionsResponse--; |
159 return o; | 159 return o; |
160 } | 160 } |
161 | 161 |
162 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { | 162 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { |
163 buildCounterListSubscriptionsResponse++; | 163 buildCounterListSubscriptionsResponse++; |
164 if (buildCounterListSubscriptionsResponse < 3) { | 164 if (buildCounterListSubscriptionsResponse < 3) { |
165 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 165 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
166 checkUnnamed4026(o.subscriptions); | 166 checkUnnamed3863(o.subscriptions); |
167 } | 167 } |
168 buildCounterListSubscriptionsResponse--; | 168 buildCounterListSubscriptionsResponse--; |
169 } | 169 } |
170 | 170 |
171 buildUnnamed4027() { | 171 buildUnnamed3864() { |
172 var o = new core.List<core.String>(); | 172 var o = new core.List<core.String>(); |
173 o.add("foo"); | 173 o.add("foo"); |
174 o.add("foo"); | 174 o.add("foo"); |
175 return o; | 175 return o; |
176 } | 176 } |
177 | 177 |
178 checkUnnamed4027(core.List<core.String> o) { | 178 checkUnnamed3864(core.List<core.String> o) { |
179 unittest.expect(o, unittest.hasLength(2)); | 179 unittest.expect(o, unittest.hasLength(2)); |
180 unittest.expect(o[0], unittest.equals('foo')); | 180 unittest.expect(o[0], unittest.equals('foo')); |
181 unittest.expect(o[1], unittest.equals('foo')); | 181 unittest.expect(o[1], unittest.equals('foo')); |
182 } | 182 } |
183 | 183 |
184 core.int buildCounterListTopicSubscriptionsResponse = 0; | 184 core.int buildCounterListTopicSubscriptionsResponse = 0; |
185 buildListTopicSubscriptionsResponse() { | 185 buildListTopicSubscriptionsResponse() { |
186 var o = new api.ListTopicSubscriptionsResponse(); | 186 var o = new api.ListTopicSubscriptionsResponse(); |
187 buildCounterListTopicSubscriptionsResponse++; | 187 buildCounterListTopicSubscriptionsResponse++; |
188 if (buildCounterListTopicSubscriptionsResponse < 3) { | 188 if (buildCounterListTopicSubscriptionsResponse < 3) { |
189 o.nextPageToken = "foo"; | 189 o.nextPageToken = "foo"; |
190 o.subscriptions = buildUnnamed4027(); | 190 o.subscriptions = buildUnnamed3864(); |
191 } | 191 } |
192 buildCounterListTopicSubscriptionsResponse--; | 192 buildCounterListTopicSubscriptionsResponse--; |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkListTopicSubscriptionsResponse(api.ListTopicSubscriptionsResponse o) { | 196 checkListTopicSubscriptionsResponse(api.ListTopicSubscriptionsResponse o) { |
197 buildCounterListTopicSubscriptionsResponse++; | 197 buildCounterListTopicSubscriptionsResponse++; |
198 if (buildCounterListTopicSubscriptionsResponse < 3) { | 198 if (buildCounterListTopicSubscriptionsResponse < 3) { |
199 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 199 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
200 checkUnnamed4027(o.subscriptions); | 200 checkUnnamed3864(o.subscriptions); |
201 } | 201 } |
202 buildCounterListTopicSubscriptionsResponse--; | 202 buildCounterListTopicSubscriptionsResponse--; |
203 } | 203 } |
204 | 204 |
205 buildUnnamed4028() { | 205 buildUnnamed3865() { |
206 var o = new core.List<api.Topic>(); | 206 var o = new core.List<api.Topic>(); |
207 o.add(buildTopic()); | 207 o.add(buildTopic()); |
208 o.add(buildTopic()); | 208 o.add(buildTopic()); |
209 return o; | 209 return o; |
210 } | 210 } |
211 | 211 |
212 checkUnnamed4028(core.List<api.Topic> o) { | 212 checkUnnamed3865(core.List<api.Topic> o) { |
213 unittest.expect(o, unittest.hasLength(2)); | 213 unittest.expect(o, unittest.hasLength(2)); |
214 checkTopic(o[0]); | 214 checkTopic(o[0]); |
215 checkTopic(o[1]); | 215 checkTopic(o[1]); |
216 } | 216 } |
217 | 217 |
218 core.int buildCounterListTopicsResponse = 0; | 218 core.int buildCounterListTopicsResponse = 0; |
219 buildListTopicsResponse() { | 219 buildListTopicsResponse() { |
220 var o = new api.ListTopicsResponse(); | 220 var o = new api.ListTopicsResponse(); |
221 buildCounterListTopicsResponse++; | 221 buildCounterListTopicsResponse++; |
222 if (buildCounterListTopicsResponse < 3) { | 222 if (buildCounterListTopicsResponse < 3) { |
223 o.nextPageToken = "foo"; | 223 o.nextPageToken = "foo"; |
224 o.topics = buildUnnamed4028(); | 224 o.topics = buildUnnamed3865(); |
225 } | 225 } |
226 buildCounterListTopicsResponse--; | 226 buildCounterListTopicsResponse--; |
227 return o; | 227 return o; |
228 } | 228 } |
229 | 229 |
230 checkListTopicsResponse(api.ListTopicsResponse o) { | 230 checkListTopicsResponse(api.ListTopicsResponse o) { |
231 buildCounterListTopicsResponse++; | 231 buildCounterListTopicsResponse++; |
232 if (buildCounterListTopicsResponse < 3) { | 232 if (buildCounterListTopicsResponse < 3) { |
233 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 233 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
234 checkUnnamed4028(o.topics); | 234 checkUnnamed3865(o.topics); |
235 } | 235 } |
236 buildCounterListTopicsResponse--; | 236 buildCounterListTopicsResponse--; |
237 } | 237 } |
238 | 238 |
239 buildUnnamed4029() { | 239 buildUnnamed3866() { |
240 var o = new core.List<core.String>(); | 240 var o = new core.List<core.String>(); |
241 o.add("foo"); | 241 o.add("foo"); |
242 o.add("foo"); | 242 o.add("foo"); |
243 return o; | 243 return o; |
244 } | 244 } |
245 | 245 |
246 checkUnnamed4029(core.List<core.String> o) { | 246 checkUnnamed3866(core.List<core.String> o) { |
247 unittest.expect(o, unittest.hasLength(2)); | 247 unittest.expect(o, unittest.hasLength(2)); |
248 unittest.expect(o[0], unittest.equals('foo')); | 248 unittest.expect(o[0], unittest.equals('foo')); |
249 unittest.expect(o[1], unittest.equals('foo')); | 249 unittest.expect(o[1], unittest.equals('foo')); |
250 } | 250 } |
251 | 251 |
252 core.int buildCounterModifyAckDeadlineRequest = 0; | 252 core.int buildCounterModifyAckDeadlineRequest = 0; |
253 buildModifyAckDeadlineRequest() { | 253 buildModifyAckDeadlineRequest() { |
254 var o = new api.ModifyAckDeadlineRequest(); | 254 var o = new api.ModifyAckDeadlineRequest(); |
255 buildCounterModifyAckDeadlineRequest++; | 255 buildCounterModifyAckDeadlineRequest++; |
256 if (buildCounterModifyAckDeadlineRequest < 3) { | 256 if (buildCounterModifyAckDeadlineRequest < 3) { |
257 o.ackDeadlineSeconds = 42; | 257 o.ackDeadlineSeconds = 42; |
258 o.ackId = "foo"; | 258 o.ackId = "foo"; |
259 o.ackIds = buildUnnamed4029(); | 259 o.ackIds = buildUnnamed3866(); |
260 } | 260 } |
261 buildCounterModifyAckDeadlineRequest--; | 261 buildCounterModifyAckDeadlineRequest--; |
262 return o; | 262 return o; |
263 } | 263 } |
264 | 264 |
265 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { | 265 checkModifyAckDeadlineRequest(api.ModifyAckDeadlineRequest o) { |
266 buildCounterModifyAckDeadlineRequest++; | 266 buildCounterModifyAckDeadlineRequest++; |
267 if (buildCounterModifyAckDeadlineRequest < 3) { | 267 if (buildCounterModifyAckDeadlineRequest < 3) { |
268 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 268 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
269 unittest.expect(o.ackId, unittest.equals('foo')); | 269 unittest.expect(o.ackId, unittest.equals('foo')); |
270 checkUnnamed4029(o.ackIds); | 270 checkUnnamed3866(o.ackIds); |
271 } | 271 } |
272 buildCounterModifyAckDeadlineRequest--; | 272 buildCounterModifyAckDeadlineRequest--; |
273 } | 273 } |
274 | 274 |
275 core.int buildCounterModifyPushConfigRequest = 0; | 275 core.int buildCounterModifyPushConfigRequest = 0; |
276 buildModifyPushConfigRequest() { | 276 buildModifyPushConfigRequest() { |
277 var o = new api.ModifyPushConfigRequest(); | 277 var o = new api.ModifyPushConfigRequest(); |
278 buildCounterModifyPushConfigRequest++; | 278 buildCounterModifyPushConfigRequest++; |
279 if (buildCounterModifyPushConfigRequest < 3) { | 279 if (buildCounterModifyPushConfigRequest < 3) { |
280 o.pushConfig = buildPushConfig(); | 280 o.pushConfig = buildPushConfig(); |
281 } | 281 } |
282 buildCounterModifyPushConfigRequest--; | 282 buildCounterModifyPushConfigRequest--; |
283 return o; | 283 return o; |
284 } | 284 } |
285 | 285 |
286 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { | 286 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { |
287 buildCounterModifyPushConfigRequest++; | 287 buildCounterModifyPushConfigRequest++; |
288 if (buildCounterModifyPushConfigRequest < 3) { | 288 if (buildCounterModifyPushConfigRequest < 3) { |
289 checkPushConfig(o.pushConfig); | 289 checkPushConfig(o.pushConfig); |
290 } | 290 } |
291 buildCounterModifyPushConfigRequest--; | 291 buildCounterModifyPushConfigRequest--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed4030() { | 294 buildUnnamed3867() { |
295 var o = new core.List<api.Binding>(); | 295 var o = new core.List<api.Binding>(); |
296 o.add(buildBinding()); | 296 o.add(buildBinding()); |
297 o.add(buildBinding()); | 297 o.add(buildBinding()); |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkUnnamed4030(core.List<api.Binding> o) { | 301 checkUnnamed3867(core.List<api.Binding> o) { |
302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
303 checkBinding(o[0]); | 303 checkBinding(o[0]); |
304 checkBinding(o[1]); | 304 checkBinding(o[1]); |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterPolicy = 0; | 307 core.int buildCounterPolicy = 0; |
308 buildPolicy() { | 308 buildPolicy() { |
309 var o = new api.Policy(); | 309 var o = new api.Policy(); |
310 buildCounterPolicy++; | 310 buildCounterPolicy++; |
311 if (buildCounterPolicy < 3) { | 311 if (buildCounterPolicy < 3) { |
312 o.bindings = buildUnnamed4030(); | 312 o.bindings = buildUnnamed3867(); |
313 o.etag = "foo"; | 313 o.etag = "foo"; |
314 o.version = 42; | 314 o.version = 42; |
315 } | 315 } |
316 buildCounterPolicy--; | 316 buildCounterPolicy--; |
317 return o; | 317 return o; |
318 } | 318 } |
319 | 319 |
320 checkPolicy(api.Policy o) { | 320 checkPolicy(api.Policy o) { |
321 buildCounterPolicy++; | 321 buildCounterPolicy++; |
322 if (buildCounterPolicy < 3) { | 322 if (buildCounterPolicy < 3) { |
323 checkUnnamed4030(o.bindings); | 323 checkUnnamed3867(o.bindings); |
324 unittest.expect(o.etag, unittest.equals('foo')); | 324 unittest.expect(o.etag, unittest.equals('foo')); |
325 unittest.expect(o.version, unittest.equals(42)); | 325 unittest.expect(o.version, unittest.equals(42)); |
326 } | 326 } |
327 buildCounterPolicy--; | 327 buildCounterPolicy--; |
328 } | 328 } |
329 | 329 |
330 buildUnnamed4031() { | 330 buildUnnamed3868() { |
331 var o = new core.List<api.PubsubMessage>(); | 331 var o = new core.List<api.PubsubMessage>(); |
332 o.add(buildPubsubMessage()); | 332 o.add(buildPubsubMessage()); |
333 o.add(buildPubsubMessage()); | 333 o.add(buildPubsubMessage()); |
334 return o; | 334 return o; |
335 } | 335 } |
336 | 336 |
337 checkUnnamed4031(core.List<api.PubsubMessage> o) { | 337 checkUnnamed3868(core.List<api.PubsubMessage> o) { |
338 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
339 checkPubsubMessage(o[0]); | 339 checkPubsubMessage(o[0]); |
340 checkPubsubMessage(o[1]); | 340 checkPubsubMessage(o[1]); |
341 } | 341 } |
342 | 342 |
343 core.int buildCounterPublishRequest = 0; | 343 core.int buildCounterPublishRequest = 0; |
344 buildPublishRequest() { | 344 buildPublishRequest() { |
345 var o = new api.PublishRequest(); | 345 var o = new api.PublishRequest(); |
346 buildCounterPublishRequest++; | 346 buildCounterPublishRequest++; |
347 if (buildCounterPublishRequest < 3) { | 347 if (buildCounterPublishRequest < 3) { |
348 o.messages = buildUnnamed4031(); | 348 o.messages = buildUnnamed3868(); |
349 } | 349 } |
350 buildCounterPublishRequest--; | 350 buildCounterPublishRequest--; |
351 return o; | 351 return o; |
352 } | 352 } |
353 | 353 |
354 checkPublishRequest(api.PublishRequest o) { | 354 checkPublishRequest(api.PublishRequest o) { |
355 buildCounterPublishRequest++; | 355 buildCounterPublishRequest++; |
356 if (buildCounterPublishRequest < 3) { | 356 if (buildCounterPublishRequest < 3) { |
357 checkUnnamed4031(o.messages); | 357 checkUnnamed3868(o.messages); |
358 } | 358 } |
359 buildCounterPublishRequest--; | 359 buildCounterPublishRequest--; |
360 } | 360 } |
361 | 361 |
362 buildUnnamed4032() { | 362 buildUnnamed3869() { |
363 var o = new core.List<core.String>(); | 363 var o = new core.List<core.String>(); |
364 o.add("foo"); | 364 o.add("foo"); |
365 o.add("foo"); | 365 o.add("foo"); |
366 return o; | 366 return o; |
367 } | 367 } |
368 | 368 |
369 checkUnnamed4032(core.List<core.String> o) { | 369 checkUnnamed3869(core.List<core.String> o) { |
370 unittest.expect(o, unittest.hasLength(2)); | 370 unittest.expect(o, unittest.hasLength(2)); |
371 unittest.expect(o[0], unittest.equals('foo')); | 371 unittest.expect(o[0], unittest.equals('foo')); |
372 unittest.expect(o[1], unittest.equals('foo')); | 372 unittest.expect(o[1], unittest.equals('foo')); |
373 } | 373 } |
374 | 374 |
375 core.int buildCounterPublishResponse = 0; | 375 core.int buildCounterPublishResponse = 0; |
376 buildPublishResponse() { | 376 buildPublishResponse() { |
377 var o = new api.PublishResponse(); | 377 var o = new api.PublishResponse(); |
378 buildCounterPublishResponse++; | 378 buildCounterPublishResponse++; |
379 if (buildCounterPublishResponse < 3) { | 379 if (buildCounterPublishResponse < 3) { |
380 o.messageIds = buildUnnamed4032(); | 380 o.messageIds = buildUnnamed3869(); |
381 } | 381 } |
382 buildCounterPublishResponse--; | 382 buildCounterPublishResponse--; |
383 return o; | 383 return o; |
384 } | 384 } |
385 | 385 |
386 checkPublishResponse(api.PublishResponse o) { | 386 checkPublishResponse(api.PublishResponse o) { |
387 buildCounterPublishResponse++; | 387 buildCounterPublishResponse++; |
388 if (buildCounterPublishResponse < 3) { | 388 if (buildCounterPublishResponse < 3) { |
389 checkUnnamed4032(o.messageIds); | 389 checkUnnamed3869(o.messageIds); |
390 } | 390 } |
391 buildCounterPublishResponse--; | 391 buildCounterPublishResponse--; |
392 } | 392 } |
393 | 393 |
394 buildUnnamed4033() { | 394 buildUnnamed3870() { |
395 var o = new core.Map<core.String, core.String>(); | 395 var o = new core.Map<core.String, core.String>(); |
396 o["x"] = "foo"; | 396 o["x"] = "foo"; |
397 o["y"] = "foo"; | 397 o["y"] = "foo"; |
398 return o; | 398 return o; |
399 } | 399 } |
400 | 400 |
401 checkUnnamed4033(core.Map<core.String, core.String> o) { | 401 checkUnnamed3870(core.Map<core.String, core.String> o) { |
402 unittest.expect(o, unittest.hasLength(2)); | 402 unittest.expect(o, unittest.hasLength(2)); |
403 unittest.expect(o["x"], unittest.equals('foo')); | 403 unittest.expect(o["x"], unittest.equals('foo')); |
404 unittest.expect(o["y"], unittest.equals('foo')); | 404 unittest.expect(o["y"], unittest.equals('foo')); |
405 } | 405 } |
406 | 406 |
407 core.int buildCounterPubsubMessage = 0; | 407 core.int buildCounterPubsubMessage = 0; |
408 buildPubsubMessage() { | 408 buildPubsubMessage() { |
409 var o = new api.PubsubMessage(); | 409 var o = new api.PubsubMessage(); |
410 buildCounterPubsubMessage++; | 410 buildCounterPubsubMessage++; |
411 if (buildCounterPubsubMessage < 3) { | 411 if (buildCounterPubsubMessage < 3) { |
412 o.attributes = buildUnnamed4033(); | 412 o.attributes = buildUnnamed3870(); |
413 o.data = "foo"; | 413 o.data = "foo"; |
414 o.messageId = "foo"; | 414 o.messageId = "foo"; |
415 o.publishTime = "foo"; | 415 o.publishTime = "foo"; |
416 } | 416 } |
417 buildCounterPubsubMessage--; | 417 buildCounterPubsubMessage--; |
418 return o; | 418 return o; |
419 } | 419 } |
420 | 420 |
421 checkPubsubMessage(api.PubsubMessage o) { | 421 checkPubsubMessage(api.PubsubMessage o) { |
422 buildCounterPubsubMessage++; | 422 buildCounterPubsubMessage++; |
423 if (buildCounterPubsubMessage < 3) { | 423 if (buildCounterPubsubMessage < 3) { |
424 checkUnnamed4033(o.attributes); | 424 checkUnnamed3870(o.attributes); |
425 unittest.expect(o.data, unittest.equals('foo')); | 425 unittest.expect(o.data, unittest.equals('foo')); |
426 unittest.expect(o.messageId, unittest.equals('foo')); | 426 unittest.expect(o.messageId, unittest.equals('foo')); |
427 unittest.expect(o.publishTime, unittest.equals('foo')); | 427 unittest.expect(o.publishTime, unittest.equals('foo')); |
428 } | 428 } |
429 buildCounterPubsubMessage--; | 429 buildCounterPubsubMessage--; |
430 } | 430 } |
431 | 431 |
432 core.int buildCounterPullRequest = 0; | 432 core.int buildCounterPullRequest = 0; |
433 buildPullRequest() { | 433 buildPullRequest() { |
434 var o = new api.PullRequest(); | 434 var o = new api.PullRequest(); |
435 buildCounterPullRequest++; | 435 buildCounterPullRequest++; |
436 if (buildCounterPullRequest < 3) { | 436 if (buildCounterPullRequest < 3) { |
437 o.maxMessages = 42; | 437 o.maxMessages = 42; |
438 o.returnImmediately = true; | 438 o.returnImmediately = true; |
439 } | 439 } |
440 buildCounterPullRequest--; | 440 buildCounterPullRequest--; |
441 return o; | 441 return o; |
442 } | 442 } |
443 | 443 |
444 checkPullRequest(api.PullRequest o) { | 444 checkPullRequest(api.PullRequest o) { |
445 buildCounterPullRequest++; | 445 buildCounterPullRequest++; |
446 if (buildCounterPullRequest < 3) { | 446 if (buildCounterPullRequest < 3) { |
447 unittest.expect(o.maxMessages, unittest.equals(42)); | 447 unittest.expect(o.maxMessages, unittest.equals(42)); |
448 unittest.expect(o.returnImmediately, unittest.isTrue); | 448 unittest.expect(o.returnImmediately, unittest.isTrue); |
449 } | 449 } |
450 buildCounterPullRequest--; | 450 buildCounterPullRequest--; |
451 } | 451 } |
452 | 452 |
453 buildUnnamed4034() { | 453 buildUnnamed3871() { |
454 var o = new core.List<api.ReceivedMessage>(); | 454 var o = new core.List<api.ReceivedMessage>(); |
455 o.add(buildReceivedMessage()); | 455 o.add(buildReceivedMessage()); |
456 o.add(buildReceivedMessage()); | 456 o.add(buildReceivedMessage()); |
457 return o; | 457 return o; |
458 } | 458 } |
459 | 459 |
460 checkUnnamed4034(core.List<api.ReceivedMessage> o) { | 460 checkUnnamed3871(core.List<api.ReceivedMessage> o) { |
461 unittest.expect(o, unittest.hasLength(2)); | 461 unittest.expect(o, unittest.hasLength(2)); |
462 checkReceivedMessage(o[0]); | 462 checkReceivedMessage(o[0]); |
463 checkReceivedMessage(o[1]); | 463 checkReceivedMessage(o[1]); |
464 } | 464 } |
465 | 465 |
466 core.int buildCounterPullResponse = 0; | 466 core.int buildCounterPullResponse = 0; |
467 buildPullResponse() { | 467 buildPullResponse() { |
468 var o = new api.PullResponse(); | 468 var o = new api.PullResponse(); |
469 buildCounterPullResponse++; | 469 buildCounterPullResponse++; |
470 if (buildCounterPullResponse < 3) { | 470 if (buildCounterPullResponse < 3) { |
471 o.receivedMessages = buildUnnamed4034(); | 471 o.receivedMessages = buildUnnamed3871(); |
472 } | 472 } |
473 buildCounterPullResponse--; | 473 buildCounterPullResponse--; |
474 return o; | 474 return o; |
475 } | 475 } |
476 | 476 |
477 checkPullResponse(api.PullResponse o) { | 477 checkPullResponse(api.PullResponse o) { |
478 buildCounterPullResponse++; | 478 buildCounterPullResponse++; |
479 if (buildCounterPullResponse < 3) { | 479 if (buildCounterPullResponse < 3) { |
480 checkUnnamed4034(o.receivedMessages); | 480 checkUnnamed3871(o.receivedMessages); |
481 } | 481 } |
482 buildCounterPullResponse--; | 482 buildCounterPullResponse--; |
483 } | 483 } |
484 | 484 |
485 buildUnnamed4035() { | 485 buildUnnamed3872() { |
486 var o = new core.Map<core.String, core.String>(); | 486 var o = new core.Map<core.String, core.String>(); |
487 o["x"] = "foo"; | 487 o["x"] = "foo"; |
488 o["y"] = "foo"; | 488 o["y"] = "foo"; |
489 return o; | 489 return o; |
490 } | 490 } |
491 | 491 |
492 checkUnnamed4035(core.Map<core.String, core.String> o) { | 492 checkUnnamed3872(core.Map<core.String, core.String> o) { |
493 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
494 unittest.expect(o["x"], unittest.equals('foo')); | 494 unittest.expect(o["x"], unittest.equals('foo')); |
495 unittest.expect(o["y"], unittest.equals('foo')); | 495 unittest.expect(o["y"], unittest.equals('foo')); |
496 } | 496 } |
497 | 497 |
498 core.int buildCounterPushConfig = 0; | 498 core.int buildCounterPushConfig = 0; |
499 buildPushConfig() { | 499 buildPushConfig() { |
500 var o = new api.PushConfig(); | 500 var o = new api.PushConfig(); |
501 buildCounterPushConfig++; | 501 buildCounterPushConfig++; |
502 if (buildCounterPushConfig < 3) { | 502 if (buildCounterPushConfig < 3) { |
503 o.attributes = buildUnnamed4035(); | 503 o.attributes = buildUnnamed3872(); |
504 o.pushEndpoint = "foo"; | 504 o.pushEndpoint = "foo"; |
505 } | 505 } |
506 buildCounterPushConfig--; | 506 buildCounterPushConfig--; |
507 return o; | 507 return o; |
508 } | 508 } |
509 | 509 |
510 checkPushConfig(api.PushConfig o) { | 510 checkPushConfig(api.PushConfig o) { |
511 buildCounterPushConfig++; | 511 buildCounterPushConfig++; |
512 if (buildCounterPushConfig < 3) { | 512 if (buildCounterPushConfig < 3) { |
513 checkUnnamed4035(o.attributes); | 513 checkUnnamed3872(o.attributes); |
514 unittest.expect(o.pushEndpoint, unittest.equals('foo')); | 514 unittest.expect(o.pushEndpoint, unittest.equals('foo')); |
515 } | 515 } |
516 buildCounterPushConfig--; | 516 buildCounterPushConfig--; |
517 } | 517 } |
518 | 518 |
519 core.int buildCounterReceivedMessage = 0; | 519 core.int buildCounterReceivedMessage = 0; |
520 buildReceivedMessage() { | 520 buildReceivedMessage() { |
521 var o = new api.ReceivedMessage(); | 521 var o = new api.ReceivedMessage(); |
522 buildCounterReceivedMessage++; | 522 buildCounterReceivedMessage++; |
523 if (buildCounterReceivedMessage < 3) { | 523 if (buildCounterReceivedMessage < 3) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 buildCounterSubscription++; | 574 buildCounterSubscription++; |
575 if (buildCounterSubscription < 3) { | 575 if (buildCounterSubscription < 3) { |
576 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); | 576 unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); |
577 unittest.expect(o.name, unittest.equals('foo')); | 577 unittest.expect(o.name, unittest.equals('foo')); |
578 checkPushConfig(o.pushConfig); | 578 checkPushConfig(o.pushConfig); |
579 unittest.expect(o.topic, unittest.equals('foo')); | 579 unittest.expect(o.topic, unittest.equals('foo')); |
580 } | 580 } |
581 buildCounterSubscription--; | 581 buildCounterSubscription--; |
582 } | 582 } |
583 | 583 |
584 buildUnnamed4036() { | 584 buildUnnamed3873() { |
585 var o = new core.List<core.String>(); | 585 var o = new core.List<core.String>(); |
586 o.add("foo"); | 586 o.add("foo"); |
587 o.add("foo"); | 587 o.add("foo"); |
588 return o; | 588 return o; |
589 } | 589 } |
590 | 590 |
591 checkUnnamed4036(core.List<core.String> o) { | 591 checkUnnamed3873(core.List<core.String> o) { |
592 unittest.expect(o, unittest.hasLength(2)); | 592 unittest.expect(o, unittest.hasLength(2)); |
593 unittest.expect(o[0], unittest.equals('foo')); | 593 unittest.expect(o[0], unittest.equals('foo')); |
594 unittest.expect(o[1], unittest.equals('foo')); | 594 unittest.expect(o[1], unittest.equals('foo')); |
595 } | 595 } |
596 | 596 |
597 core.int buildCounterTestIamPermissionsRequest = 0; | 597 core.int buildCounterTestIamPermissionsRequest = 0; |
598 buildTestIamPermissionsRequest() { | 598 buildTestIamPermissionsRequest() { |
599 var o = new api.TestIamPermissionsRequest(); | 599 var o = new api.TestIamPermissionsRequest(); |
600 buildCounterTestIamPermissionsRequest++; | 600 buildCounterTestIamPermissionsRequest++; |
601 if (buildCounterTestIamPermissionsRequest < 3) { | 601 if (buildCounterTestIamPermissionsRequest < 3) { |
602 o.permissions = buildUnnamed4036(); | 602 o.permissions = buildUnnamed3873(); |
603 } | 603 } |
604 buildCounterTestIamPermissionsRequest--; | 604 buildCounterTestIamPermissionsRequest--; |
605 return o; | 605 return o; |
606 } | 606 } |
607 | 607 |
608 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 608 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
609 buildCounterTestIamPermissionsRequest++; | 609 buildCounterTestIamPermissionsRequest++; |
610 if (buildCounterTestIamPermissionsRequest < 3) { | 610 if (buildCounterTestIamPermissionsRequest < 3) { |
611 checkUnnamed4036(o.permissions); | 611 checkUnnamed3873(o.permissions); |
612 } | 612 } |
613 buildCounterTestIamPermissionsRequest--; | 613 buildCounterTestIamPermissionsRequest--; |
614 } | 614 } |
615 | 615 |
616 buildUnnamed4037() { | 616 buildUnnamed3874() { |
617 var o = new core.List<core.String>(); | 617 var o = new core.List<core.String>(); |
618 o.add("foo"); | 618 o.add("foo"); |
619 o.add("foo"); | 619 o.add("foo"); |
620 return o; | 620 return o; |
621 } | 621 } |
622 | 622 |
623 checkUnnamed4037(core.List<core.String> o) { | 623 checkUnnamed3874(core.List<core.String> o) { |
624 unittest.expect(o, unittest.hasLength(2)); | 624 unittest.expect(o, unittest.hasLength(2)); |
625 unittest.expect(o[0], unittest.equals('foo')); | 625 unittest.expect(o[0], unittest.equals('foo')); |
626 unittest.expect(o[1], unittest.equals('foo')); | 626 unittest.expect(o[1], unittest.equals('foo')); |
627 } | 627 } |
628 | 628 |
629 core.int buildCounterTestIamPermissionsResponse = 0; | 629 core.int buildCounterTestIamPermissionsResponse = 0; |
630 buildTestIamPermissionsResponse() { | 630 buildTestIamPermissionsResponse() { |
631 var o = new api.TestIamPermissionsResponse(); | 631 var o = new api.TestIamPermissionsResponse(); |
632 buildCounterTestIamPermissionsResponse++; | 632 buildCounterTestIamPermissionsResponse++; |
633 if (buildCounterTestIamPermissionsResponse < 3) { | 633 if (buildCounterTestIamPermissionsResponse < 3) { |
634 o.permissions = buildUnnamed4037(); | 634 o.permissions = buildUnnamed3874(); |
635 } | 635 } |
636 buildCounterTestIamPermissionsResponse--; | 636 buildCounterTestIamPermissionsResponse--; |
637 return o; | 637 return o; |
638 } | 638 } |
639 | 639 |
640 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 640 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
641 buildCounterTestIamPermissionsResponse++; | 641 buildCounterTestIamPermissionsResponse++; |
642 if (buildCounterTestIamPermissionsResponse < 3) { | 642 if (buildCounterTestIamPermissionsResponse < 3) { |
643 checkUnnamed4037(o.permissions); | 643 checkUnnamed3874(o.permissions); |
644 } | 644 } |
645 buildCounterTestIamPermissionsResponse--; | 645 buildCounterTestIamPermissionsResponse--; |
646 } | 646 } |
647 | 647 |
648 core.int buildCounterTopic = 0; | 648 core.int buildCounterTopic = 0; |
649 buildTopic() { | 649 buildTopic() { |
650 var o = new api.Topic(); | 650 var o = new api.Topic(); |
651 buildCounterTopic++; | 651 buildCounterTopic++; |
652 if (buildCounterTopic < 3) { | 652 if (buildCounterTopic < 3) { |
653 o.name = "foo"; | 653 o.name = "foo"; |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { | 1818 res.list(arg_topic, pageSize: arg_pageSize, pageToken: arg_pageToken).then
(unittest.expectAsync(((api.ListTopicSubscriptionsResponse response) { |
1819 checkListTopicSubscriptionsResponse(response); | 1819 checkListTopicSubscriptionsResponse(response); |
1820 }))); | 1820 }))); |
1821 }); | 1821 }); |
1822 | 1822 |
1823 }); | 1823 }); |
1824 | 1824 |
1825 | 1825 |
1826 } | 1826 } |
1827 | 1827 |
OLD | NEW |