OLD | NEW |
1 library googleapis.iam.v1.test; | 1 library googleapis.iam.v1.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 checkAuditData(api.AuditData o) { | 65 checkAuditData(api.AuditData o) { |
66 buildCounterAuditData++; | 66 buildCounterAuditData++; |
67 if (buildCounterAuditData < 3) { | 67 if (buildCounterAuditData < 3) { |
68 checkPolicyDelta(o.policyDelta); | 68 checkPolicyDelta(o.policyDelta); |
69 } | 69 } |
70 buildCounterAuditData--; | 70 buildCounterAuditData--; |
71 } | 71 } |
72 | 72 |
73 buildUnnamed1089() { | 73 buildUnnamed1109() { |
74 var o = new core.List<core.String>(); | 74 var o = new core.List<core.String>(); |
75 o.add("foo"); | 75 o.add("foo"); |
76 o.add("foo"); | 76 o.add("foo"); |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkUnnamed1089(core.List<core.String> o) { | 80 checkUnnamed1109(core.List<core.String> o) { |
81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
82 unittest.expect(o[0], unittest.equals('foo')); | 82 unittest.expect(o[0], unittest.equals('foo')); |
83 unittest.expect(o[1], unittest.equals('foo')); | 83 unittest.expect(o[1], unittest.equals('foo')); |
84 } | 84 } |
85 | 85 |
86 core.int buildCounterBinding = 0; | 86 core.int buildCounterBinding = 0; |
87 buildBinding() { | 87 buildBinding() { |
88 var o = new api.Binding(); | 88 var o = new api.Binding(); |
89 buildCounterBinding++; | 89 buildCounterBinding++; |
90 if (buildCounterBinding < 3) { | 90 if (buildCounterBinding < 3) { |
91 o.members = buildUnnamed1089(); | 91 o.members = buildUnnamed1109(); |
92 o.role = "foo"; | 92 o.role = "foo"; |
93 } | 93 } |
94 buildCounterBinding--; | 94 buildCounterBinding--; |
95 return o; | 95 return o; |
96 } | 96 } |
97 | 97 |
98 checkBinding(api.Binding o) { | 98 checkBinding(api.Binding o) { |
99 buildCounterBinding++; | 99 buildCounterBinding++; |
100 if (buildCounterBinding < 3) { | 100 if (buildCounterBinding < 3) { |
101 checkUnnamed1089(o.members); | 101 checkUnnamed1109(o.members); |
102 unittest.expect(o.role, unittest.equals('foo')); | 102 unittest.expect(o.role, unittest.equals('foo')); |
103 } | 103 } |
104 buildCounterBinding--; | 104 buildCounterBinding--; |
105 } | 105 } |
106 | 106 |
107 core.int buildCounterBindingDelta = 0; | 107 core.int buildCounterBindingDelta = 0; |
108 buildBindingDelta() { | 108 buildBindingDelta() { |
109 var o = new api.BindingDelta(); | 109 var o = new api.BindingDelta(); |
110 buildCounterBindingDelta++; | 110 buildCounterBindingDelta++; |
111 if (buildCounterBindingDelta < 3) { | 111 if (buildCounterBindingDelta < 3) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return o; | 179 return o; |
180 } | 180 } |
181 | 181 |
182 checkEmpty(api.Empty o) { | 182 checkEmpty(api.Empty o) { |
183 buildCounterEmpty++; | 183 buildCounterEmpty++; |
184 if (buildCounterEmpty < 3) { | 184 if (buildCounterEmpty < 3) { |
185 } | 185 } |
186 buildCounterEmpty--; | 186 buildCounterEmpty--; |
187 } | 187 } |
188 | 188 |
189 buildUnnamed1090() { | 189 buildUnnamed1110() { |
190 var o = new core.List<api.ServiceAccountKey>(); | 190 var o = new core.List<api.ServiceAccountKey>(); |
191 o.add(buildServiceAccountKey()); | 191 o.add(buildServiceAccountKey()); |
192 o.add(buildServiceAccountKey()); | 192 o.add(buildServiceAccountKey()); |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkUnnamed1090(core.List<api.ServiceAccountKey> o) { | 196 checkUnnamed1110(core.List<api.ServiceAccountKey> o) { |
197 unittest.expect(o, unittest.hasLength(2)); | 197 unittest.expect(o, unittest.hasLength(2)); |
198 checkServiceAccountKey(o[0]); | 198 checkServiceAccountKey(o[0]); |
199 checkServiceAccountKey(o[1]); | 199 checkServiceAccountKey(o[1]); |
200 } | 200 } |
201 | 201 |
202 core.int buildCounterListServiceAccountKeysResponse = 0; | 202 core.int buildCounterListServiceAccountKeysResponse = 0; |
203 buildListServiceAccountKeysResponse() { | 203 buildListServiceAccountKeysResponse() { |
204 var o = new api.ListServiceAccountKeysResponse(); | 204 var o = new api.ListServiceAccountKeysResponse(); |
205 buildCounterListServiceAccountKeysResponse++; | 205 buildCounterListServiceAccountKeysResponse++; |
206 if (buildCounterListServiceAccountKeysResponse < 3) { | 206 if (buildCounterListServiceAccountKeysResponse < 3) { |
207 o.keys = buildUnnamed1090(); | 207 o.keys = buildUnnamed1110(); |
208 } | 208 } |
209 buildCounterListServiceAccountKeysResponse--; | 209 buildCounterListServiceAccountKeysResponse--; |
210 return o; | 210 return o; |
211 } | 211 } |
212 | 212 |
213 checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { | 213 checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { |
214 buildCounterListServiceAccountKeysResponse++; | 214 buildCounterListServiceAccountKeysResponse++; |
215 if (buildCounterListServiceAccountKeysResponse < 3) { | 215 if (buildCounterListServiceAccountKeysResponse < 3) { |
216 checkUnnamed1090(o.keys); | 216 checkUnnamed1110(o.keys); |
217 } | 217 } |
218 buildCounterListServiceAccountKeysResponse--; | 218 buildCounterListServiceAccountKeysResponse--; |
219 } | 219 } |
220 | 220 |
221 buildUnnamed1091() { | 221 buildUnnamed1111() { |
222 var o = new core.List<api.ServiceAccount>(); | 222 var o = new core.List<api.ServiceAccount>(); |
223 o.add(buildServiceAccount()); | 223 o.add(buildServiceAccount()); |
224 o.add(buildServiceAccount()); | 224 o.add(buildServiceAccount()); |
225 return o; | 225 return o; |
226 } | 226 } |
227 | 227 |
228 checkUnnamed1091(core.List<api.ServiceAccount> o) { | 228 checkUnnamed1111(core.List<api.ServiceAccount> o) { |
229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
230 checkServiceAccount(o[0]); | 230 checkServiceAccount(o[0]); |
231 checkServiceAccount(o[1]); | 231 checkServiceAccount(o[1]); |
232 } | 232 } |
233 | 233 |
234 core.int buildCounterListServiceAccountsResponse = 0; | 234 core.int buildCounterListServiceAccountsResponse = 0; |
235 buildListServiceAccountsResponse() { | 235 buildListServiceAccountsResponse() { |
236 var o = new api.ListServiceAccountsResponse(); | 236 var o = new api.ListServiceAccountsResponse(); |
237 buildCounterListServiceAccountsResponse++; | 237 buildCounterListServiceAccountsResponse++; |
238 if (buildCounterListServiceAccountsResponse < 3) { | 238 if (buildCounterListServiceAccountsResponse < 3) { |
239 o.accounts = buildUnnamed1091(); | 239 o.accounts = buildUnnamed1111(); |
240 o.nextPageToken = "foo"; | 240 o.nextPageToken = "foo"; |
241 } | 241 } |
242 buildCounterListServiceAccountsResponse--; | 242 buildCounterListServiceAccountsResponse--; |
243 return o; | 243 return o; |
244 } | 244 } |
245 | 245 |
246 checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { | 246 checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { |
247 buildCounterListServiceAccountsResponse++; | 247 buildCounterListServiceAccountsResponse++; |
248 if (buildCounterListServiceAccountsResponse < 3) { | 248 if (buildCounterListServiceAccountsResponse < 3) { |
249 checkUnnamed1091(o.accounts); | 249 checkUnnamed1111(o.accounts); |
250 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 250 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
251 } | 251 } |
252 buildCounterListServiceAccountsResponse--; | 252 buildCounterListServiceAccountsResponse--; |
253 } | 253 } |
254 | 254 |
255 buildUnnamed1092() { | 255 buildUnnamed1112() { |
256 var o = new core.List<api.Binding>(); | 256 var o = new core.List<api.Binding>(); |
257 o.add(buildBinding()); | 257 o.add(buildBinding()); |
258 o.add(buildBinding()); | 258 o.add(buildBinding()); |
259 return o; | 259 return o; |
260 } | 260 } |
261 | 261 |
262 checkUnnamed1092(core.List<api.Binding> o) { | 262 checkUnnamed1112(core.List<api.Binding> o) { |
263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
264 checkBinding(o[0]); | 264 checkBinding(o[0]); |
265 checkBinding(o[1]); | 265 checkBinding(o[1]); |
266 } | 266 } |
267 | 267 |
268 core.int buildCounterPolicy = 0; | 268 core.int buildCounterPolicy = 0; |
269 buildPolicy() { | 269 buildPolicy() { |
270 var o = new api.Policy(); | 270 var o = new api.Policy(); |
271 buildCounterPolicy++; | 271 buildCounterPolicy++; |
272 if (buildCounterPolicy < 3) { | 272 if (buildCounterPolicy < 3) { |
273 o.bindings = buildUnnamed1092(); | 273 o.bindings = buildUnnamed1112(); |
274 o.etag = "foo"; | 274 o.etag = "foo"; |
275 o.version = 42; | 275 o.version = 42; |
276 } | 276 } |
277 buildCounterPolicy--; | 277 buildCounterPolicy--; |
278 return o; | 278 return o; |
279 } | 279 } |
280 | 280 |
281 checkPolicy(api.Policy o) { | 281 checkPolicy(api.Policy o) { |
282 buildCounterPolicy++; | 282 buildCounterPolicy++; |
283 if (buildCounterPolicy < 3) { | 283 if (buildCounterPolicy < 3) { |
284 checkUnnamed1092(o.bindings); | 284 checkUnnamed1112(o.bindings); |
285 unittest.expect(o.etag, unittest.equals('foo')); | 285 unittest.expect(o.etag, unittest.equals('foo')); |
286 unittest.expect(o.version, unittest.equals(42)); | 286 unittest.expect(o.version, unittest.equals(42)); |
287 } | 287 } |
288 buildCounterPolicy--; | 288 buildCounterPolicy--; |
289 } | 289 } |
290 | 290 |
291 buildUnnamed1093() { | 291 buildUnnamed1113() { |
292 var o = new core.List<api.BindingDelta>(); | 292 var o = new core.List<api.BindingDelta>(); |
293 o.add(buildBindingDelta()); | 293 o.add(buildBindingDelta()); |
294 o.add(buildBindingDelta()); | 294 o.add(buildBindingDelta()); |
295 return o; | 295 return o; |
296 } | 296 } |
297 | 297 |
298 checkUnnamed1093(core.List<api.BindingDelta> o) { | 298 checkUnnamed1113(core.List<api.BindingDelta> o) { |
299 unittest.expect(o, unittest.hasLength(2)); | 299 unittest.expect(o, unittest.hasLength(2)); |
300 checkBindingDelta(o[0]); | 300 checkBindingDelta(o[0]); |
301 checkBindingDelta(o[1]); | 301 checkBindingDelta(o[1]); |
302 } | 302 } |
303 | 303 |
304 core.int buildCounterPolicyDelta = 0; | 304 core.int buildCounterPolicyDelta = 0; |
305 buildPolicyDelta() { | 305 buildPolicyDelta() { |
306 var o = new api.PolicyDelta(); | 306 var o = new api.PolicyDelta(); |
307 buildCounterPolicyDelta++; | 307 buildCounterPolicyDelta++; |
308 if (buildCounterPolicyDelta < 3) { | 308 if (buildCounterPolicyDelta < 3) { |
309 o.bindingDeltas = buildUnnamed1093(); | 309 o.bindingDeltas = buildUnnamed1113(); |
310 } | 310 } |
311 buildCounterPolicyDelta--; | 311 buildCounterPolicyDelta--; |
312 return o; | 312 return o; |
313 } | 313 } |
314 | 314 |
315 checkPolicyDelta(api.PolicyDelta o) { | 315 checkPolicyDelta(api.PolicyDelta o) { |
316 buildCounterPolicyDelta++; | 316 buildCounterPolicyDelta++; |
317 if (buildCounterPolicyDelta < 3) { | 317 if (buildCounterPolicyDelta < 3) { |
318 checkUnnamed1093(o.bindingDeltas); | 318 checkUnnamed1113(o.bindingDeltas); |
319 } | 319 } |
320 buildCounterPolicyDelta--; | 320 buildCounterPolicyDelta--; |
321 } | 321 } |
322 | 322 |
323 core.int buildCounterQueryGrantableRolesRequest = 0; | 323 core.int buildCounterQueryGrantableRolesRequest = 0; |
324 buildQueryGrantableRolesRequest() { | 324 buildQueryGrantableRolesRequest() { |
325 var o = new api.QueryGrantableRolesRequest(); | 325 var o = new api.QueryGrantableRolesRequest(); |
326 buildCounterQueryGrantableRolesRequest++; | 326 buildCounterQueryGrantableRolesRequest++; |
327 if (buildCounterQueryGrantableRolesRequest < 3) { | 327 if (buildCounterQueryGrantableRolesRequest < 3) { |
328 o.fullResourceName = "foo"; | 328 o.fullResourceName = "foo"; |
329 } | 329 } |
330 buildCounterQueryGrantableRolesRequest--; | 330 buildCounterQueryGrantableRolesRequest--; |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { | 334 checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { |
335 buildCounterQueryGrantableRolesRequest++; | 335 buildCounterQueryGrantableRolesRequest++; |
336 if (buildCounterQueryGrantableRolesRequest < 3) { | 336 if (buildCounterQueryGrantableRolesRequest < 3) { |
337 unittest.expect(o.fullResourceName, unittest.equals('foo')); | 337 unittest.expect(o.fullResourceName, unittest.equals('foo')); |
338 } | 338 } |
339 buildCounterQueryGrantableRolesRequest--; | 339 buildCounterQueryGrantableRolesRequest--; |
340 } | 340 } |
341 | 341 |
342 buildUnnamed1094() { | 342 buildUnnamed1114() { |
343 var o = new core.List<api.Role>(); | 343 var o = new core.List<api.Role>(); |
344 o.add(buildRole()); | 344 o.add(buildRole()); |
345 o.add(buildRole()); | 345 o.add(buildRole()); |
346 return o; | 346 return o; |
347 } | 347 } |
348 | 348 |
349 checkUnnamed1094(core.List<api.Role> o) { | 349 checkUnnamed1114(core.List<api.Role> o) { |
350 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
351 checkRole(o[0]); | 351 checkRole(o[0]); |
352 checkRole(o[1]); | 352 checkRole(o[1]); |
353 } | 353 } |
354 | 354 |
355 core.int buildCounterQueryGrantableRolesResponse = 0; | 355 core.int buildCounterQueryGrantableRolesResponse = 0; |
356 buildQueryGrantableRolesResponse() { | 356 buildQueryGrantableRolesResponse() { |
357 var o = new api.QueryGrantableRolesResponse(); | 357 var o = new api.QueryGrantableRolesResponse(); |
358 buildCounterQueryGrantableRolesResponse++; | 358 buildCounterQueryGrantableRolesResponse++; |
359 if (buildCounterQueryGrantableRolesResponse < 3) { | 359 if (buildCounterQueryGrantableRolesResponse < 3) { |
360 o.roles = buildUnnamed1094(); | 360 o.roles = buildUnnamed1114(); |
361 } | 361 } |
362 buildCounterQueryGrantableRolesResponse--; | 362 buildCounterQueryGrantableRolesResponse--; |
363 return o; | 363 return o; |
364 } | 364 } |
365 | 365 |
366 checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { | 366 checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { |
367 buildCounterQueryGrantableRolesResponse++; | 367 buildCounterQueryGrantableRolesResponse++; |
368 if (buildCounterQueryGrantableRolesResponse < 3) { | 368 if (buildCounterQueryGrantableRolesResponse < 3) { |
369 checkUnnamed1094(o.roles); | 369 checkUnnamed1114(o.roles); |
370 } | 370 } |
371 buildCounterQueryGrantableRolesResponse--; | 371 buildCounterQueryGrantableRolesResponse--; |
372 } | 372 } |
373 | 373 |
374 core.int buildCounterRole = 0; | 374 core.int buildCounterRole = 0; |
375 buildRole() { | 375 buildRole() { |
376 var o = new api.Role(); | 376 var o = new api.Role(); |
377 buildCounterRole++; | 377 buildCounterRole++; |
378 if (buildCounterRole < 3) { | 378 if (buildCounterRole < 3) { |
379 o.description = "foo"; | 379 o.description = "foo"; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 548 |
549 checkSignJwtResponse(api.SignJwtResponse o) { | 549 checkSignJwtResponse(api.SignJwtResponse o) { |
550 buildCounterSignJwtResponse++; | 550 buildCounterSignJwtResponse++; |
551 if (buildCounterSignJwtResponse < 3) { | 551 if (buildCounterSignJwtResponse < 3) { |
552 unittest.expect(o.keyId, unittest.equals('foo')); | 552 unittest.expect(o.keyId, unittest.equals('foo')); |
553 unittest.expect(o.signedJwt, unittest.equals('foo')); | 553 unittest.expect(o.signedJwt, unittest.equals('foo')); |
554 } | 554 } |
555 buildCounterSignJwtResponse--; | 555 buildCounterSignJwtResponse--; |
556 } | 556 } |
557 | 557 |
558 buildUnnamed1095() { | 558 buildUnnamed1115() { |
559 var o = new core.List<core.String>(); | 559 var o = new core.List<core.String>(); |
560 o.add("foo"); | 560 o.add("foo"); |
561 o.add("foo"); | 561 o.add("foo"); |
562 return o; | 562 return o; |
563 } | 563 } |
564 | 564 |
565 checkUnnamed1095(core.List<core.String> o) { | 565 checkUnnamed1115(core.List<core.String> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
567 unittest.expect(o[0], unittest.equals('foo')); | 567 unittest.expect(o[0], unittest.equals('foo')); |
568 unittest.expect(o[1], unittest.equals('foo')); | 568 unittest.expect(o[1], unittest.equals('foo')); |
569 } | 569 } |
570 | 570 |
571 core.int buildCounterTestIamPermissionsRequest = 0; | 571 core.int buildCounterTestIamPermissionsRequest = 0; |
572 buildTestIamPermissionsRequest() { | 572 buildTestIamPermissionsRequest() { |
573 var o = new api.TestIamPermissionsRequest(); | 573 var o = new api.TestIamPermissionsRequest(); |
574 buildCounterTestIamPermissionsRequest++; | 574 buildCounterTestIamPermissionsRequest++; |
575 if (buildCounterTestIamPermissionsRequest < 3) { | 575 if (buildCounterTestIamPermissionsRequest < 3) { |
576 o.permissions = buildUnnamed1095(); | 576 o.permissions = buildUnnamed1115(); |
577 } | 577 } |
578 buildCounterTestIamPermissionsRequest--; | 578 buildCounterTestIamPermissionsRequest--; |
579 return o; | 579 return o; |
580 } | 580 } |
581 | 581 |
582 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 582 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
583 buildCounterTestIamPermissionsRequest++; | 583 buildCounterTestIamPermissionsRequest++; |
584 if (buildCounterTestIamPermissionsRequest < 3) { | 584 if (buildCounterTestIamPermissionsRequest < 3) { |
585 checkUnnamed1095(o.permissions); | 585 checkUnnamed1115(o.permissions); |
586 } | 586 } |
587 buildCounterTestIamPermissionsRequest--; | 587 buildCounterTestIamPermissionsRequest--; |
588 } | 588 } |
589 | 589 |
590 buildUnnamed1096() { | 590 buildUnnamed1116() { |
591 var o = new core.List<core.String>(); | 591 var o = new core.List<core.String>(); |
592 o.add("foo"); | 592 o.add("foo"); |
593 o.add("foo"); | 593 o.add("foo"); |
594 return o; | 594 return o; |
595 } | 595 } |
596 | 596 |
597 checkUnnamed1096(core.List<core.String> o) { | 597 checkUnnamed1116(core.List<core.String> o) { |
598 unittest.expect(o, unittest.hasLength(2)); | 598 unittest.expect(o, unittest.hasLength(2)); |
599 unittest.expect(o[0], unittest.equals('foo')); | 599 unittest.expect(o[0], unittest.equals('foo')); |
600 unittest.expect(o[1], unittest.equals('foo')); | 600 unittest.expect(o[1], unittest.equals('foo')); |
601 } | 601 } |
602 | 602 |
603 core.int buildCounterTestIamPermissionsResponse = 0; | 603 core.int buildCounterTestIamPermissionsResponse = 0; |
604 buildTestIamPermissionsResponse() { | 604 buildTestIamPermissionsResponse() { |
605 var o = new api.TestIamPermissionsResponse(); | 605 var o = new api.TestIamPermissionsResponse(); |
606 buildCounterTestIamPermissionsResponse++; | 606 buildCounterTestIamPermissionsResponse++; |
607 if (buildCounterTestIamPermissionsResponse < 3) { | 607 if (buildCounterTestIamPermissionsResponse < 3) { |
608 o.permissions = buildUnnamed1096(); | 608 o.permissions = buildUnnamed1116(); |
609 } | 609 } |
610 buildCounterTestIamPermissionsResponse--; | 610 buildCounterTestIamPermissionsResponse--; |
611 return o; | 611 return o; |
612 } | 612 } |
613 | 613 |
614 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 614 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
615 buildCounterTestIamPermissionsResponse++; | 615 buildCounterTestIamPermissionsResponse++; |
616 if (buildCounterTestIamPermissionsResponse < 3) { | 616 if (buildCounterTestIamPermissionsResponse < 3) { |
617 checkUnnamed1096(o.permissions); | 617 checkUnnamed1116(o.permissions); |
618 } | 618 } |
619 buildCounterTestIamPermissionsResponse--; | 619 buildCounterTestIamPermissionsResponse--; |
620 } | 620 } |
621 | 621 |
622 buildUnnamed1097() { | 622 buildUnnamed1117() { |
623 var o = new core.List<core.String>(); | 623 var o = new core.List<core.String>(); |
624 o.add("foo"); | 624 o.add("foo"); |
625 o.add("foo"); | 625 o.add("foo"); |
626 return o; | 626 return o; |
627 } | 627 } |
628 | 628 |
629 checkUnnamed1097(core.List<core.String> o) { | 629 checkUnnamed1117(core.List<core.String> o) { |
630 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
631 unittest.expect(o[0], unittest.equals('foo')); | 631 unittest.expect(o[0], unittest.equals('foo')); |
632 unittest.expect(o[1], unittest.equals('foo')); | 632 unittest.expect(o[1], unittest.equals('foo')); |
633 } | 633 } |
634 | 634 |
635 | 635 |
636 main() { | 636 main() { |
637 unittest.group("obj-schema-AuditData", () { | 637 unittest.group("obj-schema-AuditData", () { |
638 unittest.test("to-json--from-json", () { | 638 unittest.test("to-json--from-json", () { |
639 var o = buildAuditData(); | 639 var o = buildAuditData(); |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAs
ync(((api.ServiceAccountKey response) { | 1454 res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAs
ync(((api.ServiceAccountKey response) { |
1455 checkServiceAccountKey(response); | 1455 checkServiceAccountKey(response); |
1456 }))); | 1456 }))); |
1457 }); | 1457 }); |
1458 | 1458 |
1459 unittest.test("method--list", () { | 1459 unittest.test("method--list", () { |
1460 | 1460 |
1461 var mock = new HttpServerMock(); | 1461 var mock = new HttpServerMock(); |
1462 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; | 1462 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; |
1463 var arg_name = "foo"; | 1463 var arg_name = "foo"; |
1464 var arg_keyTypes = buildUnnamed1097(); | 1464 var arg_keyTypes = buildUnnamed1117(); |
1465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1466 var path = (req.url).path; | 1466 var path = (req.url).path; |
1467 var pathOffset = 0; | 1467 var pathOffset = 0; |
1468 var index; | 1468 var index; |
1469 var subPart; | 1469 var subPart; |
1470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1471 pathOffset += 1; | 1471 pathOffset += 1; |
1472 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 1472 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
1473 pathOffset += 3; | 1473 pathOffset += 3; |
1474 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1474 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.Query
GrantableRolesResponse response) { | 1552 res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.Query
GrantableRolesResponse response) { |
1553 checkQueryGrantableRolesResponse(response); | 1553 checkQueryGrantableRolesResponse(response); |
1554 }))); | 1554 }))); |
1555 }); | 1555 }); |
1556 | 1556 |
1557 }); | 1557 }); |
1558 | 1558 |
1559 | 1559 |
1560 } | 1560 } |
1561 | 1561 |
OLD | NEW |