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 buildUnnamed1140() { | 73 buildUnnamed1135() { |
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 checkUnnamed1140(core.List<core.String> o) { | 80 checkUnnamed1135(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 = buildUnnamed1140(); | 91 o.members = buildUnnamed1135(); |
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 checkUnnamed1140(o.members); | 101 checkUnnamed1135(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 buildUnnamed1141() { | 189 buildUnnamed1136() { |
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 checkUnnamed1141(core.List<api.ServiceAccountKey> o) { | 196 checkUnnamed1136(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 = buildUnnamed1141(); | 207 o.keys = buildUnnamed1136(); |
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 checkUnnamed1141(o.keys); | 216 checkUnnamed1136(o.keys); |
217 } | 217 } |
218 buildCounterListServiceAccountKeysResponse--; | 218 buildCounterListServiceAccountKeysResponse--; |
219 } | 219 } |
220 | 220 |
221 buildUnnamed1142() { | 221 buildUnnamed1137() { |
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 checkUnnamed1142(core.List<api.ServiceAccount> o) { | 228 checkUnnamed1137(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 = buildUnnamed1142(); | 239 o.accounts = buildUnnamed1137(); |
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 checkUnnamed1142(o.accounts); | 249 checkUnnamed1137(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 buildUnnamed1143() { | 255 buildUnnamed1138() { |
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 checkUnnamed1143(core.List<api.Binding> o) { | 262 checkUnnamed1138(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 = buildUnnamed1143(); | 273 o.bindings = buildUnnamed1138(); |
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 checkUnnamed1143(o.bindings); | 284 checkUnnamed1138(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 buildUnnamed1144() { | 291 buildUnnamed1139() { |
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 checkUnnamed1144(core.List<api.BindingDelta> o) { | 298 checkUnnamed1139(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 = buildUnnamed1144(); | 309 o.bindingDeltas = buildUnnamed1139(); |
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 checkUnnamed1144(o.bindingDeltas); | 318 checkUnnamed1139(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 o.pageSize = 42; |
| 330 o.pageToken = "foo"; |
329 } | 331 } |
330 buildCounterQueryGrantableRolesRequest--; | 332 buildCounterQueryGrantableRolesRequest--; |
331 return o; | 333 return o; |
332 } | 334 } |
333 | 335 |
334 checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { | 336 checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { |
335 buildCounterQueryGrantableRolesRequest++; | 337 buildCounterQueryGrantableRolesRequest++; |
336 if (buildCounterQueryGrantableRolesRequest < 3) { | 338 if (buildCounterQueryGrantableRolesRequest < 3) { |
337 unittest.expect(o.fullResourceName, unittest.equals('foo')); | 339 unittest.expect(o.fullResourceName, unittest.equals('foo')); |
| 340 unittest.expect(o.pageSize, unittest.equals(42)); |
| 341 unittest.expect(o.pageToken, unittest.equals('foo')); |
338 } | 342 } |
339 buildCounterQueryGrantableRolesRequest--; | 343 buildCounterQueryGrantableRolesRequest--; |
340 } | 344 } |
341 | 345 |
342 buildUnnamed1145() { | 346 buildUnnamed1140() { |
343 var o = new core.List<api.Role>(); | 347 var o = new core.List<api.Role>(); |
344 o.add(buildRole()); | 348 o.add(buildRole()); |
345 o.add(buildRole()); | 349 o.add(buildRole()); |
346 return o; | 350 return o; |
347 } | 351 } |
348 | 352 |
349 checkUnnamed1145(core.List<api.Role> o) { | 353 checkUnnamed1140(core.List<api.Role> o) { |
350 unittest.expect(o, unittest.hasLength(2)); | 354 unittest.expect(o, unittest.hasLength(2)); |
351 checkRole(o[0]); | 355 checkRole(o[0]); |
352 checkRole(o[1]); | 356 checkRole(o[1]); |
353 } | 357 } |
354 | 358 |
355 core.int buildCounterQueryGrantableRolesResponse = 0; | 359 core.int buildCounterQueryGrantableRolesResponse = 0; |
356 buildQueryGrantableRolesResponse() { | 360 buildQueryGrantableRolesResponse() { |
357 var o = new api.QueryGrantableRolesResponse(); | 361 var o = new api.QueryGrantableRolesResponse(); |
358 buildCounterQueryGrantableRolesResponse++; | 362 buildCounterQueryGrantableRolesResponse++; |
359 if (buildCounterQueryGrantableRolesResponse < 3) { | 363 if (buildCounterQueryGrantableRolesResponse < 3) { |
360 o.roles = buildUnnamed1145(); | 364 o.nextPageToken = "foo"; |
| 365 o.roles = buildUnnamed1140(); |
361 } | 366 } |
362 buildCounterQueryGrantableRolesResponse--; | 367 buildCounterQueryGrantableRolesResponse--; |
363 return o; | 368 return o; |
364 } | 369 } |
365 | 370 |
366 checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { | 371 checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { |
367 buildCounterQueryGrantableRolesResponse++; | 372 buildCounterQueryGrantableRolesResponse++; |
368 if (buildCounterQueryGrantableRolesResponse < 3) { | 373 if (buildCounterQueryGrantableRolesResponse < 3) { |
369 checkUnnamed1145(o.roles); | 374 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 375 checkUnnamed1140(o.roles); |
370 } | 376 } |
371 buildCounterQueryGrantableRolesResponse--; | 377 buildCounterQueryGrantableRolesResponse--; |
372 } | 378 } |
373 | 379 |
374 core.int buildCounterRole = 0; | 380 core.int buildCounterRole = 0; |
375 buildRole() { | 381 buildRole() { |
376 var o = new api.Role(); | 382 var o = new api.Role(); |
377 buildCounterRole++; | 383 buildCounterRole++; |
378 if (buildCounterRole < 3) { | 384 if (buildCounterRole < 3) { |
379 o.description = "foo"; | 385 o.description = "foo"; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 554 |
549 checkSignJwtResponse(api.SignJwtResponse o) { | 555 checkSignJwtResponse(api.SignJwtResponse o) { |
550 buildCounterSignJwtResponse++; | 556 buildCounterSignJwtResponse++; |
551 if (buildCounterSignJwtResponse < 3) { | 557 if (buildCounterSignJwtResponse < 3) { |
552 unittest.expect(o.keyId, unittest.equals('foo')); | 558 unittest.expect(o.keyId, unittest.equals('foo')); |
553 unittest.expect(o.signedJwt, unittest.equals('foo')); | 559 unittest.expect(o.signedJwt, unittest.equals('foo')); |
554 } | 560 } |
555 buildCounterSignJwtResponse--; | 561 buildCounterSignJwtResponse--; |
556 } | 562 } |
557 | 563 |
558 buildUnnamed1146() { | 564 buildUnnamed1141() { |
559 var o = new core.List<core.String>(); | 565 var o = new core.List<core.String>(); |
560 o.add("foo"); | 566 o.add("foo"); |
561 o.add("foo"); | 567 o.add("foo"); |
562 return o; | 568 return o; |
563 } | 569 } |
564 | 570 |
565 checkUnnamed1146(core.List<core.String> o) { | 571 checkUnnamed1141(core.List<core.String> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 572 unittest.expect(o, unittest.hasLength(2)); |
567 unittest.expect(o[0], unittest.equals('foo')); | 573 unittest.expect(o[0], unittest.equals('foo')); |
568 unittest.expect(o[1], unittest.equals('foo')); | 574 unittest.expect(o[1], unittest.equals('foo')); |
569 } | 575 } |
570 | 576 |
571 core.int buildCounterTestIamPermissionsRequest = 0; | 577 core.int buildCounterTestIamPermissionsRequest = 0; |
572 buildTestIamPermissionsRequest() { | 578 buildTestIamPermissionsRequest() { |
573 var o = new api.TestIamPermissionsRequest(); | 579 var o = new api.TestIamPermissionsRequest(); |
574 buildCounterTestIamPermissionsRequest++; | 580 buildCounterTestIamPermissionsRequest++; |
575 if (buildCounterTestIamPermissionsRequest < 3) { | 581 if (buildCounterTestIamPermissionsRequest < 3) { |
576 o.permissions = buildUnnamed1146(); | 582 o.permissions = buildUnnamed1141(); |
577 } | 583 } |
578 buildCounterTestIamPermissionsRequest--; | 584 buildCounterTestIamPermissionsRequest--; |
579 return o; | 585 return o; |
580 } | 586 } |
581 | 587 |
582 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 588 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
583 buildCounterTestIamPermissionsRequest++; | 589 buildCounterTestIamPermissionsRequest++; |
584 if (buildCounterTestIamPermissionsRequest < 3) { | 590 if (buildCounterTestIamPermissionsRequest < 3) { |
585 checkUnnamed1146(o.permissions); | 591 checkUnnamed1141(o.permissions); |
586 } | 592 } |
587 buildCounterTestIamPermissionsRequest--; | 593 buildCounterTestIamPermissionsRequest--; |
588 } | 594 } |
589 | 595 |
590 buildUnnamed1147() { | 596 buildUnnamed1142() { |
591 var o = new core.List<core.String>(); | 597 var o = new core.List<core.String>(); |
592 o.add("foo"); | 598 o.add("foo"); |
593 o.add("foo"); | 599 o.add("foo"); |
594 return o; | 600 return o; |
595 } | 601 } |
596 | 602 |
597 checkUnnamed1147(core.List<core.String> o) { | 603 checkUnnamed1142(core.List<core.String> o) { |
598 unittest.expect(o, unittest.hasLength(2)); | 604 unittest.expect(o, unittest.hasLength(2)); |
599 unittest.expect(o[0], unittest.equals('foo')); | 605 unittest.expect(o[0], unittest.equals('foo')); |
600 unittest.expect(o[1], unittest.equals('foo')); | 606 unittest.expect(o[1], unittest.equals('foo')); |
601 } | 607 } |
602 | 608 |
603 core.int buildCounterTestIamPermissionsResponse = 0; | 609 core.int buildCounterTestIamPermissionsResponse = 0; |
604 buildTestIamPermissionsResponse() { | 610 buildTestIamPermissionsResponse() { |
605 var o = new api.TestIamPermissionsResponse(); | 611 var o = new api.TestIamPermissionsResponse(); |
606 buildCounterTestIamPermissionsResponse++; | 612 buildCounterTestIamPermissionsResponse++; |
607 if (buildCounterTestIamPermissionsResponse < 3) { | 613 if (buildCounterTestIamPermissionsResponse < 3) { |
608 o.permissions = buildUnnamed1147(); | 614 o.permissions = buildUnnamed1142(); |
609 } | 615 } |
610 buildCounterTestIamPermissionsResponse--; | 616 buildCounterTestIamPermissionsResponse--; |
611 return o; | 617 return o; |
612 } | 618 } |
613 | 619 |
614 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 620 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
615 buildCounterTestIamPermissionsResponse++; | 621 buildCounterTestIamPermissionsResponse++; |
616 if (buildCounterTestIamPermissionsResponse < 3) { | 622 if (buildCounterTestIamPermissionsResponse < 3) { |
617 checkUnnamed1147(o.permissions); | 623 checkUnnamed1142(o.permissions); |
618 } | 624 } |
619 buildCounterTestIamPermissionsResponse--; | 625 buildCounterTestIamPermissionsResponse--; |
620 } | 626 } |
621 | 627 |
622 buildUnnamed1148() { | 628 buildUnnamed1143() { |
623 var o = new core.List<core.String>(); | 629 var o = new core.List<core.String>(); |
624 o.add("foo"); | 630 o.add("foo"); |
625 o.add("foo"); | 631 o.add("foo"); |
626 return o; | 632 return o; |
627 } | 633 } |
628 | 634 |
629 checkUnnamed1148(core.List<core.String> o) { | 635 checkUnnamed1143(core.List<core.String> o) { |
630 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
631 unittest.expect(o[0], unittest.equals('foo')); | 637 unittest.expect(o[0], unittest.equals('foo')); |
632 unittest.expect(o[1], unittest.equals('foo')); | 638 unittest.expect(o[1], unittest.equals('foo')); |
633 } | 639 } |
634 | 640 |
635 | 641 |
636 main() { | 642 main() { |
637 unittest.group("obj-schema-AuditData", () { | 643 unittest.group("obj-schema-AuditData", () { |
638 unittest.test("to-json--from-json", () { | 644 unittest.test("to-json--from-json", () { |
639 var o = buildAuditData(); | 645 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) { | 1460 res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAs
ync(((api.ServiceAccountKey response) { |
1455 checkServiceAccountKey(response); | 1461 checkServiceAccountKey(response); |
1456 }))); | 1462 }))); |
1457 }); | 1463 }); |
1458 | 1464 |
1459 unittest.test("method--list", () { | 1465 unittest.test("method--list", () { |
1460 | 1466 |
1461 var mock = new HttpServerMock(); | 1467 var mock = new HttpServerMock(); |
1462 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; | 1468 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; |
1463 var arg_name = "foo"; | 1469 var arg_name = "foo"; |
1464 var arg_keyTypes = buildUnnamed1148(); | 1470 var arg_keyTypes = buildUnnamed1143(); |
1465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1471 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1466 var path = (req.url).path; | 1472 var path = (req.url).path; |
1467 var pathOffset = 0; | 1473 var pathOffset = 0; |
1468 var index; | 1474 var index; |
1469 var subPart; | 1475 var subPart; |
1470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1476 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1471 pathOffset += 1; | 1477 pathOffset += 1; |
1472 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 1478 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
1473 pathOffset += 3; | 1479 pathOffset += 3; |
1474 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1480 // 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) { | 1558 res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.Query
GrantableRolesResponse response) { |
1553 checkQueryGrantableRolesResponse(response); | 1559 checkQueryGrantableRolesResponse(response); |
1554 }))); | 1560 }))); |
1555 }); | 1561 }); |
1556 | 1562 |
1557 }); | 1563 }); |
1558 | 1564 |
1559 | 1565 |
1560 } | 1566 } |
1561 | 1567 |
OLD | NEW |