| 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 buildUnnamed1327() { | 73 buildUnnamed1080() { |
| 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 checkUnnamed1327(core.List<core.String> o) { | 80 checkUnnamed1080(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 = buildUnnamed1327(); | 91 o.members = buildUnnamed1080(); |
| 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 checkUnnamed1327(o.members); | 101 checkUnnamed1080(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 buildUnnamed1328() { | 189 buildUnnamed1081() { |
| 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 checkUnnamed1328(core.List<api.ServiceAccountKey> o) { | 196 checkUnnamed1081(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 = buildUnnamed1328(); | 207 o.keys = buildUnnamed1081(); |
| 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 checkUnnamed1328(o.keys); | 216 checkUnnamed1081(o.keys); |
| 217 } | 217 } |
| 218 buildCounterListServiceAccountKeysResponse--; | 218 buildCounterListServiceAccountKeysResponse--; |
| 219 } | 219 } |
| 220 | 220 |
| 221 buildUnnamed1329() { | 221 buildUnnamed1082() { |
| 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 checkUnnamed1329(core.List<api.ServiceAccount> o) { | 228 checkUnnamed1082(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 = buildUnnamed1329(); | 239 o.accounts = buildUnnamed1082(); |
| 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 checkUnnamed1329(o.accounts); | 249 checkUnnamed1082(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 buildUnnamed1330() { | 255 buildUnnamed1083() { |
| 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 checkUnnamed1330(core.List<api.Binding> o) { | 262 checkUnnamed1083(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 = buildUnnamed1330(); | 273 o.bindings = buildUnnamed1083(); |
| 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 checkUnnamed1330(o.bindings); | 284 checkUnnamed1083(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 buildUnnamed1331() { | 291 buildUnnamed1084() { |
| 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 checkUnnamed1331(core.List<api.BindingDelta> o) { | 298 checkUnnamed1084(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 = buildUnnamed1331(); | 309 o.bindingDeltas = buildUnnamed1084(); |
| 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 checkUnnamed1331(o.bindingDeltas); | 318 checkUnnamed1084(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 buildUnnamed1332() { | 342 buildUnnamed1085() { |
| 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 checkUnnamed1332(core.List<api.Role> o) { | 349 checkUnnamed1085(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 = buildUnnamed1332(); | 360 o.roles = buildUnnamed1085(); |
| 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 checkUnnamed1332(o.roles); | 369 checkUnnamed1085(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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 | 508 |
| 509 checkSignBlobResponse(api.SignBlobResponse o) { | 509 checkSignBlobResponse(api.SignBlobResponse o) { |
| 510 buildCounterSignBlobResponse++; | 510 buildCounterSignBlobResponse++; |
| 511 if (buildCounterSignBlobResponse < 3) { | 511 if (buildCounterSignBlobResponse < 3) { |
| 512 unittest.expect(o.keyId, unittest.equals('foo')); | 512 unittest.expect(o.keyId, unittest.equals('foo')); |
| 513 unittest.expect(o.signature, unittest.equals('foo')); | 513 unittest.expect(o.signature, unittest.equals('foo')); |
| 514 } | 514 } |
| 515 buildCounterSignBlobResponse--; | 515 buildCounterSignBlobResponse--; |
| 516 } | 516 } |
| 517 | 517 |
| 518 buildUnnamed1333() { | 518 buildUnnamed1086() { |
| 519 var o = new core.List<core.String>(); | 519 var o = new core.List<core.String>(); |
| 520 o.add("foo"); | 520 o.add("foo"); |
| 521 o.add("foo"); | 521 o.add("foo"); |
| 522 return o; | 522 return o; |
| 523 } | 523 } |
| 524 | 524 |
| 525 checkUnnamed1333(core.List<core.String> o) { | 525 checkUnnamed1086(core.List<core.String> o) { |
| 526 unittest.expect(o, unittest.hasLength(2)); | 526 unittest.expect(o, unittest.hasLength(2)); |
| 527 unittest.expect(o[0], unittest.equals('foo')); | 527 unittest.expect(o[0], unittest.equals('foo')); |
| 528 unittest.expect(o[1], unittest.equals('foo')); | 528 unittest.expect(o[1], unittest.equals('foo')); |
| 529 } | 529 } |
| 530 | 530 |
| 531 core.int buildCounterTestIamPermissionsRequest = 0; | 531 core.int buildCounterTestIamPermissionsRequest = 0; |
| 532 buildTestIamPermissionsRequest() { | 532 buildTestIamPermissionsRequest() { |
| 533 var o = new api.TestIamPermissionsRequest(); | 533 var o = new api.TestIamPermissionsRequest(); |
| 534 buildCounterTestIamPermissionsRequest++; | 534 buildCounterTestIamPermissionsRequest++; |
| 535 if (buildCounterTestIamPermissionsRequest < 3) { | 535 if (buildCounterTestIamPermissionsRequest < 3) { |
| 536 o.permissions = buildUnnamed1333(); | 536 o.permissions = buildUnnamed1086(); |
| 537 } | 537 } |
| 538 buildCounterTestIamPermissionsRequest--; | 538 buildCounterTestIamPermissionsRequest--; |
| 539 return o; | 539 return o; |
| 540 } | 540 } |
| 541 | 541 |
| 542 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 542 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 543 buildCounterTestIamPermissionsRequest++; | 543 buildCounterTestIamPermissionsRequest++; |
| 544 if (buildCounterTestIamPermissionsRequest < 3) { | 544 if (buildCounterTestIamPermissionsRequest < 3) { |
| 545 checkUnnamed1333(o.permissions); | 545 checkUnnamed1086(o.permissions); |
| 546 } | 546 } |
| 547 buildCounterTestIamPermissionsRequest--; | 547 buildCounterTestIamPermissionsRequest--; |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed1334() { | 550 buildUnnamed1087() { |
| 551 var o = new core.List<core.String>(); | 551 var o = new core.List<core.String>(); |
| 552 o.add("foo"); | 552 o.add("foo"); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 return o; | 554 return o; |
| 555 } | 555 } |
| 556 | 556 |
| 557 checkUnnamed1334(core.List<core.String> o) { | 557 checkUnnamed1087(core.List<core.String> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
| 559 unittest.expect(o[0], unittest.equals('foo')); | 559 unittest.expect(o[0], unittest.equals('foo')); |
| 560 unittest.expect(o[1], unittest.equals('foo')); | 560 unittest.expect(o[1], unittest.equals('foo')); |
| 561 } | 561 } |
| 562 | 562 |
| 563 core.int buildCounterTestIamPermissionsResponse = 0; | 563 core.int buildCounterTestIamPermissionsResponse = 0; |
| 564 buildTestIamPermissionsResponse() { | 564 buildTestIamPermissionsResponse() { |
| 565 var o = new api.TestIamPermissionsResponse(); | 565 var o = new api.TestIamPermissionsResponse(); |
| 566 buildCounterTestIamPermissionsResponse++; | 566 buildCounterTestIamPermissionsResponse++; |
| 567 if (buildCounterTestIamPermissionsResponse < 3) { | 567 if (buildCounterTestIamPermissionsResponse < 3) { |
| 568 o.permissions = buildUnnamed1334(); | 568 o.permissions = buildUnnamed1087(); |
| 569 } | 569 } |
| 570 buildCounterTestIamPermissionsResponse--; | 570 buildCounterTestIamPermissionsResponse--; |
| 571 return o; | 571 return o; |
| 572 } | 572 } |
| 573 | 573 |
| 574 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 574 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 575 buildCounterTestIamPermissionsResponse++; | 575 buildCounterTestIamPermissionsResponse++; |
| 576 if (buildCounterTestIamPermissionsResponse < 3) { | 576 if (buildCounterTestIamPermissionsResponse < 3) { |
| 577 checkUnnamed1334(o.permissions); | 577 checkUnnamed1087(o.permissions); |
| 578 } | 578 } |
| 579 buildCounterTestIamPermissionsResponse--; | 579 buildCounterTestIamPermissionsResponse--; |
| 580 } | 580 } |
| 581 | 581 |
| 582 buildUnnamed1335() { | 582 buildUnnamed1088() { |
| 583 var o = new core.List<core.String>(); | 583 var o = new core.List<core.String>(); |
| 584 o.add("foo"); | 584 o.add("foo"); |
| 585 o.add("foo"); | 585 o.add("foo"); |
| 586 return o; | 586 return o; |
| 587 } | 587 } |
| 588 | 588 |
| 589 checkUnnamed1335(core.List<core.String> o) { | 589 checkUnnamed1088(core.List<core.String> o) { |
| 590 unittest.expect(o, unittest.hasLength(2)); | 590 unittest.expect(o, unittest.hasLength(2)); |
| 591 unittest.expect(o[0], unittest.equals('foo')); | 591 unittest.expect(o[0], unittest.equals('foo')); |
| 592 unittest.expect(o[1], unittest.equals('foo')); | 592 unittest.expect(o[1], unittest.equals('foo')); |
| 593 } | 593 } |
| 594 | 594 |
| 595 | 595 |
| 596 main() { | 596 main() { |
| 597 unittest.group("obj-schema-AuditData", () { | 597 unittest.group("obj-schema-AuditData", () { |
| 598 unittest.test("to-json--from-json", () { | 598 unittest.test("to-json--from-json", () { |
| 599 var o = buildAuditData(); | 599 var o = buildAuditData(); |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAs
ync(((api.ServiceAccountKey response) { | 1347 res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAs
ync(((api.ServiceAccountKey response) { |
| 1348 checkServiceAccountKey(response); | 1348 checkServiceAccountKey(response); |
| 1349 }))); | 1349 }))); |
| 1350 }); | 1350 }); |
| 1351 | 1351 |
| 1352 unittest.test("method--list", () { | 1352 unittest.test("method--list", () { |
| 1353 | 1353 |
| 1354 var mock = new HttpServerMock(); | 1354 var mock = new HttpServerMock(); |
| 1355 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; | 1355 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; |
| 1356 var arg_name = "foo"; | 1356 var arg_name = "foo"; |
| 1357 var arg_keyTypes = buildUnnamed1335(); | 1357 var arg_keyTypes = buildUnnamed1088(); |
| 1358 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1358 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1359 var path = (req.url).path; | 1359 var path = (req.url).path; |
| 1360 var pathOffset = 0; | 1360 var pathOffset = 0; |
| 1361 var index; | 1361 var index; |
| 1362 var subPart; | 1362 var subPart; |
| 1363 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1363 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1364 pathOffset += 1; | 1364 pathOffset += 1; |
| 1365 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 1365 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1366 pathOffset += 3; | 1366 pathOffset += 3; |
| 1367 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1367 // 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... |
| 1445 res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.Query
GrantableRolesResponse response) { | 1445 res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.Query
GrantableRolesResponse response) { |
| 1446 checkQueryGrantableRolesResponse(response); | 1446 checkQueryGrantableRolesResponse(response); |
| 1447 }))); | 1447 }))); |
| 1448 }); | 1448 }); |
| 1449 | 1449 |
| 1450 }); | 1450 }); |
| 1451 | 1451 |
| 1452 | 1452 |
| 1453 } | 1453 } |
| 1454 | 1454 |
| OLD | NEW |