OLD | NEW |
1 library googleapis_beta.pubsub.v1beta1.test; | 1 library googleapis_beta.pubsub.v1beta1.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; |
11 import 'package:googleapis_beta/common/common.dart' as common; | 11 import 'package:googleapis_beta/common/common.dart' as common; |
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis_beta/pubsub/v1beta1.dart' as api; | 15 import 'package:googleapis_beta/pubsub/v1beta1.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed1390() { | 19 buildUnnamed1385() { |
20 var o = new core.List<core.String>(); | 20 var o = new core.List<core.String>(); |
21 o.add("foo"); | 21 o.add("foo"); |
22 o.add("foo"); | 22 o.add("foo"); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed1390(core.List<core.String> o) { | 26 checkUnnamed1385(core.List<core.String> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 unittest.expect(o[0], unittest.equals('foo')); | 28 unittest.expect(o[0], unittest.equals('foo')); |
29 unittest.expect(o[1], unittest.equals('foo')); | 29 unittest.expect(o[1], unittest.equals('foo')); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterAcknowledgeRequest = 0; | 32 core.int buildCounterAcknowledgeRequest = 0; |
33 buildAcknowledgeRequest() { | 33 buildAcknowledgeRequest() { |
34 var o = new api.AcknowledgeRequest(); | 34 var o = new api.AcknowledgeRequest(); |
35 buildCounterAcknowledgeRequest++; | 35 buildCounterAcknowledgeRequest++; |
36 if (buildCounterAcknowledgeRequest < 3) { | 36 if (buildCounterAcknowledgeRequest < 3) { |
37 o.ackId = buildUnnamed1390(); | 37 o.ackId = buildUnnamed1385(); |
38 o.subscription = "foo"; | 38 o.subscription = "foo"; |
39 } | 39 } |
40 buildCounterAcknowledgeRequest--; | 40 buildCounterAcknowledgeRequest--; |
41 return o; | 41 return o; |
42 } | 42 } |
43 | 43 |
44 checkAcknowledgeRequest(api.AcknowledgeRequest o) { | 44 checkAcknowledgeRequest(api.AcknowledgeRequest o) { |
45 buildCounterAcknowledgeRequest++; | 45 buildCounterAcknowledgeRequest++; |
46 if (buildCounterAcknowledgeRequest < 3) { | 46 if (buildCounterAcknowledgeRequest < 3) { |
47 checkUnnamed1390(o.ackId); | 47 checkUnnamed1385(o.ackId); |
48 unittest.expect(o.subscription, unittest.equals('foo')); | 48 unittest.expect(o.subscription, unittest.equals('foo')); |
49 } | 49 } |
50 buildCounterAcknowledgeRequest--; | 50 buildCounterAcknowledgeRequest--; |
51 } | 51 } |
52 | 52 |
53 core.int buildCounterLabel = 0; | 53 core.int buildCounterLabel = 0; |
54 buildLabel() { | 54 buildLabel() { |
55 var o = new api.Label(); | 55 var o = new api.Label(); |
56 buildCounterLabel++; | 56 buildCounterLabel++; |
57 if (buildCounterLabel < 3) { | 57 if (buildCounterLabel < 3) { |
58 o.key = "foo"; | 58 o.key = "foo"; |
59 o.numValue = "foo"; | 59 o.numValue = "foo"; |
60 o.strValue = "foo"; | 60 o.strValue = "foo"; |
61 } | 61 } |
62 buildCounterLabel--; | 62 buildCounterLabel--; |
63 return o; | 63 return o; |
64 } | 64 } |
65 | 65 |
66 checkLabel(api.Label o) { | 66 checkLabel(api.Label o) { |
67 buildCounterLabel++; | 67 buildCounterLabel++; |
68 if (buildCounterLabel < 3) { | 68 if (buildCounterLabel < 3) { |
69 unittest.expect(o.key, unittest.equals('foo')); | 69 unittest.expect(o.key, unittest.equals('foo')); |
70 unittest.expect(o.numValue, unittest.equals('foo')); | 70 unittest.expect(o.numValue, unittest.equals('foo')); |
71 unittest.expect(o.strValue, unittest.equals('foo')); | 71 unittest.expect(o.strValue, unittest.equals('foo')); |
72 } | 72 } |
73 buildCounterLabel--; | 73 buildCounterLabel--; |
74 } | 74 } |
75 | 75 |
76 buildUnnamed1391() { | 76 buildUnnamed1386() { |
77 var o = new core.List<api.Subscription>(); | 77 var o = new core.List<api.Subscription>(); |
78 o.add(buildSubscription()); | 78 o.add(buildSubscription()); |
79 o.add(buildSubscription()); | 79 o.add(buildSubscription()); |
80 return o; | 80 return o; |
81 } | 81 } |
82 | 82 |
83 checkUnnamed1391(core.List<api.Subscription> o) { | 83 checkUnnamed1386(core.List<api.Subscription> o) { |
84 unittest.expect(o, unittest.hasLength(2)); | 84 unittest.expect(o, unittest.hasLength(2)); |
85 checkSubscription(o[0]); | 85 checkSubscription(o[0]); |
86 checkSubscription(o[1]); | 86 checkSubscription(o[1]); |
87 } | 87 } |
88 | 88 |
89 core.int buildCounterListSubscriptionsResponse = 0; | 89 core.int buildCounterListSubscriptionsResponse = 0; |
90 buildListSubscriptionsResponse() { | 90 buildListSubscriptionsResponse() { |
91 var o = new api.ListSubscriptionsResponse(); | 91 var o = new api.ListSubscriptionsResponse(); |
92 buildCounterListSubscriptionsResponse++; | 92 buildCounterListSubscriptionsResponse++; |
93 if (buildCounterListSubscriptionsResponse < 3) { | 93 if (buildCounterListSubscriptionsResponse < 3) { |
94 o.nextPageToken = "foo"; | 94 o.nextPageToken = "foo"; |
95 o.subscription = buildUnnamed1391(); | 95 o.subscription = buildUnnamed1386(); |
96 } | 96 } |
97 buildCounterListSubscriptionsResponse--; | 97 buildCounterListSubscriptionsResponse--; |
98 return o; | 98 return o; |
99 } | 99 } |
100 | 100 |
101 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { | 101 checkListSubscriptionsResponse(api.ListSubscriptionsResponse o) { |
102 buildCounterListSubscriptionsResponse++; | 102 buildCounterListSubscriptionsResponse++; |
103 if (buildCounterListSubscriptionsResponse < 3) { | 103 if (buildCounterListSubscriptionsResponse < 3) { |
104 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 104 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
105 checkUnnamed1391(o.subscription); | 105 checkUnnamed1386(o.subscription); |
106 } | 106 } |
107 buildCounterListSubscriptionsResponse--; | 107 buildCounterListSubscriptionsResponse--; |
108 } | 108 } |
109 | 109 |
110 buildUnnamed1392() { | 110 buildUnnamed1387() { |
111 var o = new core.List<api.Topic>(); | 111 var o = new core.List<api.Topic>(); |
112 o.add(buildTopic()); | 112 o.add(buildTopic()); |
113 o.add(buildTopic()); | 113 o.add(buildTopic()); |
114 return o; | 114 return o; |
115 } | 115 } |
116 | 116 |
117 checkUnnamed1392(core.List<api.Topic> o) { | 117 checkUnnamed1387(core.List<api.Topic> o) { |
118 unittest.expect(o, unittest.hasLength(2)); | 118 unittest.expect(o, unittest.hasLength(2)); |
119 checkTopic(o[0]); | 119 checkTopic(o[0]); |
120 checkTopic(o[1]); | 120 checkTopic(o[1]); |
121 } | 121 } |
122 | 122 |
123 core.int buildCounterListTopicsResponse = 0; | 123 core.int buildCounterListTopicsResponse = 0; |
124 buildListTopicsResponse() { | 124 buildListTopicsResponse() { |
125 var o = new api.ListTopicsResponse(); | 125 var o = new api.ListTopicsResponse(); |
126 buildCounterListTopicsResponse++; | 126 buildCounterListTopicsResponse++; |
127 if (buildCounterListTopicsResponse < 3) { | 127 if (buildCounterListTopicsResponse < 3) { |
128 o.nextPageToken = "foo"; | 128 o.nextPageToken = "foo"; |
129 o.topic = buildUnnamed1392(); | 129 o.topic = buildUnnamed1387(); |
130 } | 130 } |
131 buildCounterListTopicsResponse--; | 131 buildCounterListTopicsResponse--; |
132 return o; | 132 return o; |
133 } | 133 } |
134 | 134 |
135 checkListTopicsResponse(api.ListTopicsResponse o) { | 135 checkListTopicsResponse(api.ListTopicsResponse o) { |
136 buildCounterListTopicsResponse++; | 136 buildCounterListTopicsResponse++; |
137 if (buildCounterListTopicsResponse < 3) { | 137 if (buildCounterListTopicsResponse < 3) { |
138 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 138 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
139 checkUnnamed1392(o.topic); | 139 checkUnnamed1387(o.topic); |
140 } | 140 } |
141 buildCounterListTopicsResponse--; | 141 buildCounterListTopicsResponse--; |
142 } | 142 } |
143 | 143 |
144 core.int buildCounterModifyAckDeadlineRequest = 0; | 144 core.int buildCounterModifyAckDeadlineRequest = 0; |
145 buildModifyAckDeadlineRequest() { | 145 buildModifyAckDeadlineRequest() { |
146 var o = new api.ModifyAckDeadlineRequest(); | 146 var o = new api.ModifyAckDeadlineRequest(); |
147 buildCounterModifyAckDeadlineRequest++; | 147 buildCounterModifyAckDeadlineRequest++; |
148 if (buildCounterModifyAckDeadlineRequest < 3) { | 148 if (buildCounterModifyAckDeadlineRequest < 3) { |
149 o.ackDeadlineSeconds = 42; | 149 o.ackDeadlineSeconds = 42; |
(...skipping 28 matching lines...) Expand all Loading... |
178 | 178 |
179 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { | 179 checkModifyPushConfigRequest(api.ModifyPushConfigRequest o) { |
180 buildCounterModifyPushConfigRequest++; | 180 buildCounterModifyPushConfigRequest++; |
181 if (buildCounterModifyPushConfigRequest < 3) { | 181 if (buildCounterModifyPushConfigRequest < 3) { |
182 checkPushConfig(o.pushConfig); | 182 checkPushConfig(o.pushConfig); |
183 unittest.expect(o.subscription, unittest.equals('foo')); | 183 unittest.expect(o.subscription, unittest.equals('foo')); |
184 } | 184 } |
185 buildCounterModifyPushConfigRequest--; | 185 buildCounterModifyPushConfigRequest--; |
186 } | 186 } |
187 | 187 |
188 buildUnnamed1393() { | 188 buildUnnamed1388() { |
189 var o = new core.List<api.PubsubMessage>(); | 189 var o = new core.List<api.PubsubMessage>(); |
190 o.add(buildPubsubMessage()); | 190 o.add(buildPubsubMessage()); |
191 o.add(buildPubsubMessage()); | 191 o.add(buildPubsubMessage()); |
192 return o; | 192 return o; |
193 } | 193 } |
194 | 194 |
195 checkUnnamed1393(core.List<api.PubsubMessage> o) { | 195 checkUnnamed1388(core.List<api.PubsubMessage> o) { |
196 unittest.expect(o, unittest.hasLength(2)); | 196 unittest.expect(o, unittest.hasLength(2)); |
197 checkPubsubMessage(o[0]); | 197 checkPubsubMessage(o[0]); |
198 checkPubsubMessage(o[1]); | 198 checkPubsubMessage(o[1]); |
199 } | 199 } |
200 | 200 |
201 core.int buildCounterPublishBatchRequest = 0; | 201 core.int buildCounterPublishBatchRequest = 0; |
202 buildPublishBatchRequest() { | 202 buildPublishBatchRequest() { |
203 var o = new api.PublishBatchRequest(); | 203 var o = new api.PublishBatchRequest(); |
204 buildCounterPublishBatchRequest++; | 204 buildCounterPublishBatchRequest++; |
205 if (buildCounterPublishBatchRequest < 3) { | 205 if (buildCounterPublishBatchRequest < 3) { |
206 o.messages = buildUnnamed1393(); | 206 o.messages = buildUnnamed1388(); |
207 o.topic = "foo"; | 207 o.topic = "foo"; |
208 } | 208 } |
209 buildCounterPublishBatchRequest--; | 209 buildCounterPublishBatchRequest--; |
210 return o; | 210 return o; |
211 } | 211 } |
212 | 212 |
213 checkPublishBatchRequest(api.PublishBatchRequest o) { | 213 checkPublishBatchRequest(api.PublishBatchRequest o) { |
214 buildCounterPublishBatchRequest++; | 214 buildCounterPublishBatchRequest++; |
215 if (buildCounterPublishBatchRequest < 3) { | 215 if (buildCounterPublishBatchRequest < 3) { |
216 checkUnnamed1393(o.messages); | 216 checkUnnamed1388(o.messages); |
217 unittest.expect(o.topic, unittest.equals('foo')); | 217 unittest.expect(o.topic, unittest.equals('foo')); |
218 } | 218 } |
219 buildCounterPublishBatchRequest--; | 219 buildCounterPublishBatchRequest--; |
220 } | 220 } |
221 | 221 |
222 buildUnnamed1394() { | 222 buildUnnamed1389() { |
223 var o = new core.List<core.String>(); | 223 var o = new core.List<core.String>(); |
224 o.add("foo"); | 224 o.add("foo"); |
225 o.add("foo"); | 225 o.add("foo"); |
226 return o; | 226 return o; |
227 } | 227 } |
228 | 228 |
229 checkUnnamed1394(core.List<core.String> o) { | 229 checkUnnamed1389(core.List<core.String> o) { |
230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
231 unittest.expect(o[0], unittest.equals('foo')); | 231 unittest.expect(o[0], unittest.equals('foo')); |
232 unittest.expect(o[1], unittest.equals('foo')); | 232 unittest.expect(o[1], unittest.equals('foo')); |
233 } | 233 } |
234 | 234 |
235 core.int buildCounterPublishBatchResponse = 0; | 235 core.int buildCounterPublishBatchResponse = 0; |
236 buildPublishBatchResponse() { | 236 buildPublishBatchResponse() { |
237 var o = new api.PublishBatchResponse(); | 237 var o = new api.PublishBatchResponse(); |
238 buildCounterPublishBatchResponse++; | 238 buildCounterPublishBatchResponse++; |
239 if (buildCounterPublishBatchResponse < 3) { | 239 if (buildCounterPublishBatchResponse < 3) { |
240 o.messageIds = buildUnnamed1394(); | 240 o.messageIds = buildUnnamed1389(); |
241 } | 241 } |
242 buildCounterPublishBatchResponse--; | 242 buildCounterPublishBatchResponse--; |
243 return o; | 243 return o; |
244 } | 244 } |
245 | 245 |
246 checkPublishBatchResponse(api.PublishBatchResponse o) { | 246 checkPublishBatchResponse(api.PublishBatchResponse o) { |
247 buildCounterPublishBatchResponse++; | 247 buildCounterPublishBatchResponse++; |
248 if (buildCounterPublishBatchResponse < 3) { | 248 if (buildCounterPublishBatchResponse < 3) { |
249 checkUnnamed1394(o.messageIds); | 249 checkUnnamed1389(o.messageIds); |
250 } | 250 } |
251 buildCounterPublishBatchResponse--; | 251 buildCounterPublishBatchResponse--; |
252 } | 252 } |
253 | 253 |
254 core.int buildCounterPublishRequest = 0; | 254 core.int buildCounterPublishRequest = 0; |
255 buildPublishRequest() { | 255 buildPublishRequest() { |
256 var o = new api.PublishRequest(); | 256 var o = new api.PublishRequest(); |
257 buildCounterPublishRequest++; | 257 buildCounterPublishRequest++; |
258 if (buildCounterPublishRequest < 3) { | 258 if (buildCounterPublishRequest < 3) { |
259 o.message = buildPubsubMessage(); | 259 o.message = buildPubsubMessage(); |
(...skipping 30 matching lines...) Expand all Loading... |
290 buildCounterPubsubEvent++; | 290 buildCounterPubsubEvent++; |
291 if (buildCounterPubsubEvent < 3) { | 291 if (buildCounterPubsubEvent < 3) { |
292 unittest.expect(o.deleted, unittest.isTrue); | 292 unittest.expect(o.deleted, unittest.isTrue); |
293 checkPubsubMessage(o.message); | 293 checkPubsubMessage(o.message); |
294 unittest.expect(o.subscription, unittest.equals('foo')); | 294 unittest.expect(o.subscription, unittest.equals('foo')); |
295 unittest.expect(o.truncated, unittest.isTrue); | 295 unittest.expect(o.truncated, unittest.isTrue); |
296 } | 296 } |
297 buildCounterPubsubEvent--; | 297 buildCounterPubsubEvent--; |
298 } | 298 } |
299 | 299 |
300 buildUnnamed1395() { | 300 buildUnnamed1390() { |
301 var o = new core.List<api.Label>(); | 301 var o = new core.List<api.Label>(); |
302 o.add(buildLabel()); | 302 o.add(buildLabel()); |
303 o.add(buildLabel()); | 303 o.add(buildLabel()); |
304 return o; | 304 return o; |
305 } | 305 } |
306 | 306 |
307 checkUnnamed1395(core.List<api.Label> o) { | 307 checkUnnamed1390(core.List<api.Label> o) { |
308 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
309 checkLabel(o[0]); | 309 checkLabel(o[0]); |
310 checkLabel(o[1]); | 310 checkLabel(o[1]); |
311 } | 311 } |
312 | 312 |
313 core.int buildCounterPubsubMessage = 0; | 313 core.int buildCounterPubsubMessage = 0; |
314 buildPubsubMessage() { | 314 buildPubsubMessage() { |
315 var o = new api.PubsubMessage(); | 315 var o = new api.PubsubMessage(); |
316 buildCounterPubsubMessage++; | 316 buildCounterPubsubMessage++; |
317 if (buildCounterPubsubMessage < 3) { | 317 if (buildCounterPubsubMessage < 3) { |
318 o.data = "foo"; | 318 o.data = "foo"; |
319 o.label = buildUnnamed1395(); | 319 o.label = buildUnnamed1390(); |
320 o.messageId = "foo"; | 320 o.messageId = "foo"; |
321 } | 321 } |
322 buildCounterPubsubMessage--; | 322 buildCounterPubsubMessage--; |
323 return o; | 323 return o; |
324 } | 324 } |
325 | 325 |
326 checkPubsubMessage(api.PubsubMessage o) { | 326 checkPubsubMessage(api.PubsubMessage o) { |
327 buildCounterPubsubMessage++; | 327 buildCounterPubsubMessage++; |
328 if (buildCounterPubsubMessage < 3) { | 328 if (buildCounterPubsubMessage < 3) { |
329 unittest.expect(o.data, unittest.equals('foo')); | 329 unittest.expect(o.data, unittest.equals('foo')); |
330 checkUnnamed1395(o.label); | 330 checkUnnamed1390(o.label); |
331 unittest.expect(o.messageId, unittest.equals('foo')); | 331 unittest.expect(o.messageId, unittest.equals('foo')); |
332 } | 332 } |
333 buildCounterPubsubMessage--; | 333 buildCounterPubsubMessage--; |
334 } | 334 } |
335 | 335 |
336 core.int buildCounterPullBatchRequest = 0; | 336 core.int buildCounterPullBatchRequest = 0; |
337 buildPullBatchRequest() { | 337 buildPullBatchRequest() { |
338 var o = new api.PullBatchRequest(); | 338 var o = new api.PullBatchRequest(); |
339 buildCounterPullBatchRequest++; | 339 buildCounterPullBatchRequest++; |
340 if (buildCounterPullBatchRequest < 3) { | 340 if (buildCounterPullBatchRequest < 3) { |
341 o.maxEvents = 42; | 341 o.maxEvents = 42; |
342 o.returnImmediately = true; | 342 o.returnImmediately = true; |
343 o.subscription = "foo"; | 343 o.subscription = "foo"; |
344 } | 344 } |
345 buildCounterPullBatchRequest--; | 345 buildCounterPullBatchRequest--; |
346 return o; | 346 return o; |
347 } | 347 } |
348 | 348 |
349 checkPullBatchRequest(api.PullBatchRequest o) { | 349 checkPullBatchRequest(api.PullBatchRequest o) { |
350 buildCounterPullBatchRequest++; | 350 buildCounterPullBatchRequest++; |
351 if (buildCounterPullBatchRequest < 3) { | 351 if (buildCounterPullBatchRequest < 3) { |
352 unittest.expect(o.maxEvents, unittest.equals(42)); | 352 unittest.expect(o.maxEvents, unittest.equals(42)); |
353 unittest.expect(o.returnImmediately, unittest.isTrue); | 353 unittest.expect(o.returnImmediately, unittest.isTrue); |
354 unittest.expect(o.subscription, unittest.equals('foo')); | 354 unittest.expect(o.subscription, unittest.equals('foo')); |
355 } | 355 } |
356 buildCounterPullBatchRequest--; | 356 buildCounterPullBatchRequest--; |
357 } | 357 } |
358 | 358 |
359 buildUnnamed1396() { | 359 buildUnnamed1391() { |
360 var o = new core.List<api.PullResponse>(); | 360 var o = new core.List<api.PullResponse>(); |
361 o.add(buildPullResponse()); | 361 o.add(buildPullResponse()); |
362 o.add(buildPullResponse()); | 362 o.add(buildPullResponse()); |
363 return o; | 363 return o; |
364 } | 364 } |
365 | 365 |
366 checkUnnamed1396(core.List<api.PullResponse> o) { | 366 checkUnnamed1391(core.List<api.PullResponse> o) { |
367 unittest.expect(o, unittest.hasLength(2)); | 367 unittest.expect(o, unittest.hasLength(2)); |
368 checkPullResponse(o[0]); | 368 checkPullResponse(o[0]); |
369 checkPullResponse(o[1]); | 369 checkPullResponse(o[1]); |
370 } | 370 } |
371 | 371 |
372 core.int buildCounterPullBatchResponse = 0; | 372 core.int buildCounterPullBatchResponse = 0; |
373 buildPullBatchResponse() { | 373 buildPullBatchResponse() { |
374 var o = new api.PullBatchResponse(); | 374 var o = new api.PullBatchResponse(); |
375 buildCounterPullBatchResponse++; | 375 buildCounterPullBatchResponse++; |
376 if (buildCounterPullBatchResponse < 3) { | 376 if (buildCounterPullBatchResponse < 3) { |
377 o.pullResponses = buildUnnamed1396(); | 377 o.pullResponses = buildUnnamed1391(); |
378 } | 378 } |
379 buildCounterPullBatchResponse--; | 379 buildCounterPullBatchResponse--; |
380 return o; | 380 return o; |
381 } | 381 } |
382 | 382 |
383 checkPullBatchResponse(api.PullBatchResponse o) { | 383 checkPullBatchResponse(api.PullBatchResponse o) { |
384 buildCounterPullBatchResponse++; | 384 buildCounterPullBatchResponse++; |
385 if (buildCounterPullBatchResponse < 3) { | 385 if (buildCounterPullBatchResponse < 3) { |
386 checkUnnamed1396(o.pullResponses); | 386 checkUnnamed1391(o.pullResponses); |
387 } | 387 } |
388 buildCounterPullBatchResponse--; | 388 buildCounterPullBatchResponse--; |
389 } | 389 } |
390 | 390 |
391 core.int buildCounterPullRequest = 0; | 391 core.int buildCounterPullRequest = 0; |
392 buildPullRequest() { | 392 buildPullRequest() { |
393 var o = new api.PullRequest(); | 393 var o = new api.PullRequest(); |
394 buildCounterPullRequest++; | 394 buildCounterPullRequest++; |
395 if (buildCounterPullRequest < 3) { | 395 if (buildCounterPullRequest < 3) { |
396 o.returnImmediately = true; | 396 o.returnImmediately = true; |
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 res.publishBatch(arg_request).then(unittest.expectAsync(((api.PublishBatch
Response response) { | 1379 res.publishBatch(arg_request).then(unittest.expectAsync(((api.PublishBatch
Response response) { |
1380 checkPublishBatchResponse(response); | 1380 checkPublishBatchResponse(response); |
1381 }))); | 1381 }))); |
1382 }); | 1382 }); |
1383 | 1383 |
1384 }); | 1384 }); |
1385 | 1385 |
1386 | 1386 |
1387 } | 1387 } |
1388 | 1388 |
OLD | NEW |