| OLD | NEW |
| 1 library googleapis.storage.v1.test; | 1 library googleapis.storage.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed1100() { | 54 buildUnnamed1359() { |
| 55 var o = new core.List<api.BucketAccessControl>(); | 55 var o = new core.List<api.BucketAccessControl>(); |
| 56 o.add(buildBucketAccessControl()); | 56 o.add(buildBucketAccessControl()); |
| 57 o.add(buildBucketAccessControl()); | 57 o.add(buildBucketAccessControl()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed1100(core.List<api.BucketAccessControl> o) { | 61 checkUnnamed1359(core.List<api.BucketAccessControl> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkBucketAccessControl(o[0]); | 63 checkBucketAccessControl(o[0]); |
| 64 checkBucketAccessControl(o[1]); | 64 checkBucketAccessControl(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed1101() { | 67 buildUnnamed1360() { |
| 68 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
| 69 o.add("foo"); | 69 o.add("foo"); |
| 70 o.add("foo"); | 70 o.add("foo"); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed1101(core.List<core.String> o) { | 74 checkUnnamed1360(core.List<core.String> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
| 77 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
| 78 } | 78 } |
| 79 | 79 |
| 80 buildUnnamed1102() { | 80 buildUnnamed1361() { |
| 81 var o = new core.List<core.String>(); | 81 var o = new core.List<core.String>(); |
| 82 o.add("foo"); | 82 o.add("foo"); |
| 83 o.add("foo"); | 83 o.add("foo"); |
| 84 return o; | 84 return o; |
| 85 } | 85 } |
| 86 | 86 |
| 87 checkUnnamed1102(core.List<core.String> o) { | 87 checkUnnamed1361(core.List<core.String> o) { |
| 88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
| 89 unittest.expect(o[0], unittest.equals('foo')); | 89 unittest.expect(o[0], unittest.equals('foo')); |
| 90 unittest.expect(o[1], unittest.equals('foo')); | 90 unittest.expect(o[1], unittest.equals('foo')); |
| 91 } | 91 } |
| 92 | 92 |
| 93 buildUnnamed1103() { | 93 buildUnnamed1362() { |
| 94 var o = new core.List<core.String>(); | 94 var o = new core.List<core.String>(); |
| 95 o.add("foo"); | 95 o.add("foo"); |
| 96 o.add("foo"); | 96 o.add("foo"); |
| 97 return o; | 97 return o; |
| 98 } | 98 } |
| 99 | 99 |
| 100 checkUnnamed1103(core.List<core.String> o) { | 100 checkUnnamed1362(core.List<core.String> o) { |
| 101 unittest.expect(o, unittest.hasLength(2)); | 101 unittest.expect(o, unittest.hasLength(2)); |
| 102 unittest.expect(o[0], unittest.equals('foo')); | 102 unittest.expect(o[0], unittest.equals('foo')); |
| 103 unittest.expect(o[1], unittest.equals('foo')); | 103 unittest.expect(o[1], unittest.equals('foo')); |
| 104 } | 104 } |
| 105 | 105 |
| 106 core.int buildCounterBucketCors = 0; | 106 core.int buildCounterBucketCors = 0; |
| 107 buildBucketCors() { | 107 buildBucketCors() { |
| 108 var o = new api.BucketCors(); | 108 var o = new api.BucketCors(); |
| 109 buildCounterBucketCors++; | 109 buildCounterBucketCors++; |
| 110 if (buildCounterBucketCors < 3) { | 110 if (buildCounterBucketCors < 3) { |
| 111 o.maxAgeSeconds = 42; | 111 o.maxAgeSeconds = 42; |
| 112 o.method = buildUnnamed1101(); | 112 o.method = buildUnnamed1360(); |
| 113 o.origin = buildUnnamed1102(); | 113 o.origin = buildUnnamed1361(); |
| 114 o.responseHeader = buildUnnamed1103(); | 114 o.responseHeader = buildUnnamed1362(); |
| 115 } | 115 } |
| 116 buildCounterBucketCors--; | 116 buildCounterBucketCors--; |
| 117 return o; | 117 return o; |
| 118 } | 118 } |
| 119 | 119 |
| 120 checkBucketCors(api.BucketCors o) { | 120 checkBucketCors(api.BucketCors o) { |
| 121 buildCounterBucketCors++; | 121 buildCounterBucketCors++; |
| 122 if (buildCounterBucketCors < 3) { | 122 if (buildCounterBucketCors < 3) { |
| 123 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); | 123 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); |
| 124 checkUnnamed1101(o.method); | 124 checkUnnamed1360(o.method); |
| 125 checkUnnamed1102(o.origin); | 125 checkUnnamed1361(o.origin); |
| 126 checkUnnamed1103(o.responseHeader); | 126 checkUnnamed1362(o.responseHeader); |
| 127 } | 127 } |
| 128 buildCounterBucketCors--; | 128 buildCounterBucketCors--; |
| 129 } | 129 } |
| 130 | 130 |
| 131 buildUnnamed1104() { | 131 buildUnnamed1363() { |
| 132 var o = new core.List<api.BucketCors>(); | 132 var o = new core.List<api.BucketCors>(); |
| 133 o.add(buildBucketCors()); | 133 o.add(buildBucketCors()); |
| 134 o.add(buildBucketCors()); | 134 o.add(buildBucketCors()); |
| 135 return o; | 135 return o; |
| 136 } | 136 } |
| 137 | 137 |
| 138 checkUnnamed1104(core.List<api.BucketCors> o) { | 138 checkUnnamed1363(core.List<api.BucketCors> o) { |
| 139 unittest.expect(o, unittest.hasLength(2)); | 139 unittest.expect(o, unittest.hasLength(2)); |
| 140 checkBucketCors(o[0]); | 140 checkBucketCors(o[0]); |
| 141 checkBucketCors(o[1]); | 141 checkBucketCors(o[1]); |
| 142 } | 142 } |
| 143 | 143 |
| 144 buildUnnamed1105() { | 144 buildUnnamed1364() { |
| 145 var o = new core.List<api.ObjectAccessControl>(); | 145 var o = new core.List<api.ObjectAccessControl>(); |
| 146 o.add(buildObjectAccessControl()); | 146 o.add(buildObjectAccessControl()); |
| 147 o.add(buildObjectAccessControl()); | 147 o.add(buildObjectAccessControl()); |
| 148 return o; | 148 return o; |
| 149 } | 149 } |
| 150 | 150 |
| 151 checkUnnamed1105(core.List<api.ObjectAccessControl> o) { | 151 checkUnnamed1364(core.List<api.ObjectAccessControl> o) { |
| 152 unittest.expect(o, unittest.hasLength(2)); | 152 unittest.expect(o, unittest.hasLength(2)); |
| 153 checkObjectAccessControl(o[0]); | 153 checkObjectAccessControl(o[0]); |
| 154 checkObjectAccessControl(o[1]); | 154 checkObjectAccessControl(o[1]); |
| 155 } | 155 } |
| 156 | 156 |
| 157 core.int buildCounterBucketLifecycleRuleAction = 0; | 157 core.int buildCounterBucketLifecycleRuleAction = 0; |
| 158 buildBucketLifecycleRuleAction() { | 158 buildBucketLifecycleRuleAction() { |
| 159 var o = new api.BucketLifecycleRuleAction(); | 159 var o = new api.BucketLifecycleRuleAction(); |
| 160 buildCounterBucketLifecycleRuleAction++; | 160 buildCounterBucketLifecycleRuleAction++; |
| 161 if (buildCounterBucketLifecycleRuleAction < 3) { | 161 if (buildCounterBucketLifecycleRuleAction < 3) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 checkBucketLifecycleRule(api.BucketLifecycleRule o) { | 213 checkBucketLifecycleRule(api.BucketLifecycleRule o) { |
| 214 buildCounterBucketLifecycleRule++; | 214 buildCounterBucketLifecycleRule++; |
| 215 if (buildCounterBucketLifecycleRule < 3) { | 215 if (buildCounterBucketLifecycleRule < 3) { |
| 216 checkBucketLifecycleRuleAction(o.action); | 216 checkBucketLifecycleRuleAction(o.action); |
| 217 checkBucketLifecycleRuleCondition(o.condition); | 217 checkBucketLifecycleRuleCondition(o.condition); |
| 218 } | 218 } |
| 219 buildCounterBucketLifecycleRule--; | 219 buildCounterBucketLifecycleRule--; |
| 220 } | 220 } |
| 221 | 221 |
| 222 buildUnnamed1106() { | 222 buildUnnamed1365() { |
| 223 var o = new core.List<api.BucketLifecycleRule>(); | 223 var o = new core.List<api.BucketLifecycleRule>(); |
| 224 o.add(buildBucketLifecycleRule()); | 224 o.add(buildBucketLifecycleRule()); |
| 225 o.add(buildBucketLifecycleRule()); | 225 o.add(buildBucketLifecycleRule()); |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkUnnamed1106(core.List<api.BucketLifecycleRule> o) { | 229 checkUnnamed1365(core.List<api.BucketLifecycleRule> o) { |
| 230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 231 checkBucketLifecycleRule(o[0]); | 231 checkBucketLifecycleRule(o[0]); |
| 232 checkBucketLifecycleRule(o[1]); | 232 checkBucketLifecycleRule(o[1]); |
| 233 } | 233 } |
| 234 | 234 |
| 235 core.int buildCounterBucketLifecycle = 0; | 235 core.int buildCounterBucketLifecycle = 0; |
| 236 buildBucketLifecycle() { | 236 buildBucketLifecycle() { |
| 237 var o = new api.BucketLifecycle(); | 237 var o = new api.BucketLifecycle(); |
| 238 buildCounterBucketLifecycle++; | 238 buildCounterBucketLifecycle++; |
| 239 if (buildCounterBucketLifecycle < 3) { | 239 if (buildCounterBucketLifecycle < 3) { |
| 240 o.rule = buildUnnamed1106(); | 240 o.rule = buildUnnamed1365(); |
| 241 } | 241 } |
| 242 buildCounterBucketLifecycle--; | 242 buildCounterBucketLifecycle--; |
| 243 return o; | 243 return o; |
| 244 } | 244 } |
| 245 | 245 |
| 246 checkBucketLifecycle(api.BucketLifecycle o) { | 246 checkBucketLifecycle(api.BucketLifecycle o) { |
| 247 buildCounterBucketLifecycle++; | 247 buildCounterBucketLifecycle++; |
| 248 if (buildCounterBucketLifecycle < 3) { | 248 if (buildCounterBucketLifecycle < 3) { |
| 249 checkUnnamed1106(o.rule); | 249 checkUnnamed1365(o.rule); |
| 250 } | 250 } |
| 251 buildCounterBucketLifecycle--; | 251 buildCounterBucketLifecycle--; |
| 252 } | 252 } |
| 253 | 253 |
| 254 core.int buildCounterBucketLogging = 0; | 254 core.int buildCounterBucketLogging = 0; |
| 255 buildBucketLogging() { | 255 buildBucketLogging() { |
| 256 var o = new api.BucketLogging(); | 256 var o = new api.BucketLogging(); |
| 257 buildCounterBucketLogging++; | 257 buildCounterBucketLogging++; |
| 258 if (buildCounterBucketLogging < 3) { | 258 if (buildCounterBucketLogging < 3) { |
| 259 o.logBucket = "foo"; | 259 o.logBucket = "foo"; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 unittest.expect(o.notFoundPage, unittest.equals('foo')); | 331 unittest.expect(o.notFoundPage, unittest.equals('foo')); |
| 332 } | 332 } |
| 333 buildCounterBucketWebsite--; | 333 buildCounterBucketWebsite--; |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.int buildCounterBucket = 0; | 336 core.int buildCounterBucket = 0; |
| 337 buildBucket() { | 337 buildBucket() { |
| 338 var o = new api.Bucket(); | 338 var o = new api.Bucket(); |
| 339 buildCounterBucket++; | 339 buildCounterBucket++; |
| 340 if (buildCounterBucket < 3) { | 340 if (buildCounterBucket < 3) { |
| 341 o.acl = buildUnnamed1100(); | 341 o.acl = buildUnnamed1359(); |
| 342 o.cors = buildUnnamed1104(); | 342 o.cors = buildUnnamed1363(); |
| 343 o.defaultObjectAcl = buildUnnamed1105(); | 343 o.defaultObjectAcl = buildUnnamed1364(); |
| 344 o.etag = "foo"; | 344 o.etag = "foo"; |
| 345 o.id = "foo"; | 345 o.id = "foo"; |
| 346 o.kind = "foo"; | 346 o.kind = "foo"; |
| 347 o.lifecycle = buildBucketLifecycle(); | 347 o.lifecycle = buildBucketLifecycle(); |
| 348 o.location = "foo"; | 348 o.location = "foo"; |
| 349 o.logging = buildBucketLogging(); | 349 o.logging = buildBucketLogging(); |
| 350 o.metageneration = "foo"; | 350 o.metageneration = "foo"; |
| 351 o.name = "foo"; | 351 o.name = "foo"; |
| 352 o.owner = buildBucketOwner(); | 352 o.owner = buildBucketOwner(); |
| 353 o.projectNumber = "foo"; | 353 o.projectNumber = "foo"; |
| 354 o.selfLink = "foo"; | 354 o.selfLink = "foo"; |
| 355 o.storageClass = "foo"; | 355 o.storageClass = "foo"; |
| 356 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); | 356 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 357 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 357 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 358 o.versioning = buildBucketVersioning(); | 358 o.versioning = buildBucketVersioning(); |
| 359 o.website = buildBucketWebsite(); | 359 o.website = buildBucketWebsite(); |
| 360 } | 360 } |
| 361 buildCounterBucket--; | 361 buildCounterBucket--; |
| 362 return o; | 362 return o; |
| 363 } | 363 } |
| 364 | 364 |
| 365 checkBucket(api.Bucket o) { | 365 checkBucket(api.Bucket o) { |
| 366 buildCounterBucket++; | 366 buildCounterBucket++; |
| 367 if (buildCounterBucket < 3) { | 367 if (buildCounterBucket < 3) { |
| 368 checkUnnamed1100(o.acl); | 368 checkUnnamed1359(o.acl); |
| 369 checkUnnamed1104(o.cors); | 369 checkUnnamed1363(o.cors); |
| 370 checkUnnamed1105(o.defaultObjectAcl); | 370 checkUnnamed1364(o.defaultObjectAcl); |
| 371 unittest.expect(o.etag, unittest.equals('foo')); | 371 unittest.expect(o.etag, unittest.equals('foo')); |
| 372 unittest.expect(o.id, unittest.equals('foo')); | 372 unittest.expect(o.id, unittest.equals('foo')); |
| 373 unittest.expect(o.kind, unittest.equals('foo')); | 373 unittest.expect(o.kind, unittest.equals('foo')); |
| 374 checkBucketLifecycle(o.lifecycle); | 374 checkBucketLifecycle(o.lifecycle); |
| 375 unittest.expect(o.location, unittest.equals('foo')); | 375 unittest.expect(o.location, unittest.equals('foo')); |
| 376 checkBucketLogging(o.logging); | 376 checkBucketLogging(o.logging); |
| 377 unittest.expect(o.metageneration, unittest.equals('foo')); | 377 unittest.expect(o.metageneration, unittest.equals('foo')); |
| 378 unittest.expect(o.name, unittest.equals('foo')); | 378 unittest.expect(o.name, unittest.equals('foo')); |
| 379 checkBucketOwner(o.owner); | 379 checkBucketOwner(o.owner); |
| 380 unittest.expect(o.projectNumber, unittest.equals('foo')); | 380 unittest.expect(o.projectNumber, unittest.equals('foo')); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 unittest.expect(o.etag, unittest.equals('foo')); | 441 unittest.expect(o.etag, unittest.equals('foo')); |
| 442 unittest.expect(o.id, unittest.equals('foo')); | 442 unittest.expect(o.id, unittest.equals('foo')); |
| 443 unittest.expect(o.kind, unittest.equals('foo')); | 443 unittest.expect(o.kind, unittest.equals('foo')); |
| 444 checkBucketAccessControlProjectTeam(o.projectTeam); | 444 checkBucketAccessControlProjectTeam(o.projectTeam); |
| 445 unittest.expect(o.role, unittest.equals('foo')); | 445 unittest.expect(o.role, unittest.equals('foo')); |
| 446 unittest.expect(o.selfLink, unittest.equals('foo')); | 446 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 447 } | 447 } |
| 448 buildCounterBucketAccessControl--; | 448 buildCounterBucketAccessControl--; |
| 449 } | 449 } |
| 450 | 450 |
| 451 buildUnnamed1107() { | 451 buildUnnamed1366() { |
| 452 var o = new core.List<api.BucketAccessControl>(); | 452 var o = new core.List<api.BucketAccessControl>(); |
| 453 o.add(buildBucketAccessControl()); | 453 o.add(buildBucketAccessControl()); |
| 454 o.add(buildBucketAccessControl()); | 454 o.add(buildBucketAccessControl()); |
| 455 return o; | 455 return o; |
| 456 } | 456 } |
| 457 | 457 |
| 458 checkUnnamed1107(core.List<api.BucketAccessControl> o) { | 458 checkUnnamed1366(core.List<api.BucketAccessControl> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); | 459 unittest.expect(o, unittest.hasLength(2)); |
| 460 checkBucketAccessControl(o[0]); | 460 checkBucketAccessControl(o[0]); |
| 461 checkBucketAccessControl(o[1]); | 461 checkBucketAccessControl(o[1]); |
| 462 } | 462 } |
| 463 | 463 |
| 464 core.int buildCounterBucketAccessControls = 0; | 464 core.int buildCounterBucketAccessControls = 0; |
| 465 buildBucketAccessControls() { | 465 buildBucketAccessControls() { |
| 466 var o = new api.BucketAccessControls(); | 466 var o = new api.BucketAccessControls(); |
| 467 buildCounterBucketAccessControls++; | 467 buildCounterBucketAccessControls++; |
| 468 if (buildCounterBucketAccessControls < 3) { | 468 if (buildCounterBucketAccessControls < 3) { |
| 469 o.items = buildUnnamed1107(); | 469 o.items = buildUnnamed1366(); |
| 470 o.kind = "foo"; | 470 o.kind = "foo"; |
| 471 } | 471 } |
| 472 buildCounterBucketAccessControls--; | 472 buildCounterBucketAccessControls--; |
| 473 return o; | 473 return o; |
| 474 } | 474 } |
| 475 | 475 |
| 476 checkBucketAccessControls(api.BucketAccessControls o) { | 476 checkBucketAccessControls(api.BucketAccessControls o) { |
| 477 buildCounterBucketAccessControls++; | 477 buildCounterBucketAccessControls++; |
| 478 if (buildCounterBucketAccessControls < 3) { | 478 if (buildCounterBucketAccessControls < 3) { |
| 479 checkUnnamed1107(o.items); | 479 checkUnnamed1366(o.items); |
| 480 unittest.expect(o.kind, unittest.equals('foo')); | 480 unittest.expect(o.kind, unittest.equals('foo')); |
| 481 } | 481 } |
| 482 buildCounterBucketAccessControls--; | 482 buildCounterBucketAccessControls--; |
| 483 } | 483 } |
| 484 | 484 |
| 485 buildUnnamed1108() { | 485 buildUnnamed1367() { |
| 486 var o = new core.List<api.Bucket>(); | 486 var o = new core.List<api.Bucket>(); |
| 487 o.add(buildBucket()); | 487 o.add(buildBucket()); |
| 488 o.add(buildBucket()); | 488 o.add(buildBucket()); |
| 489 return o; | 489 return o; |
| 490 } | 490 } |
| 491 | 491 |
| 492 checkUnnamed1108(core.List<api.Bucket> o) { | 492 checkUnnamed1367(core.List<api.Bucket> o) { |
| 493 unittest.expect(o, unittest.hasLength(2)); | 493 unittest.expect(o, unittest.hasLength(2)); |
| 494 checkBucket(o[0]); | 494 checkBucket(o[0]); |
| 495 checkBucket(o[1]); | 495 checkBucket(o[1]); |
| 496 } | 496 } |
| 497 | 497 |
| 498 core.int buildCounterBuckets = 0; | 498 core.int buildCounterBuckets = 0; |
| 499 buildBuckets() { | 499 buildBuckets() { |
| 500 var o = new api.Buckets(); | 500 var o = new api.Buckets(); |
| 501 buildCounterBuckets++; | 501 buildCounterBuckets++; |
| 502 if (buildCounterBuckets < 3) { | 502 if (buildCounterBuckets < 3) { |
| 503 o.items = buildUnnamed1108(); | 503 o.items = buildUnnamed1367(); |
| 504 o.kind = "foo"; | 504 o.kind = "foo"; |
| 505 o.nextPageToken = "foo"; | 505 o.nextPageToken = "foo"; |
| 506 } | 506 } |
| 507 buildCounterBuckets--; | 507 buildCounterBuckets--; |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkBuckets(api.Buckets o) { | 511 checkBuckets(api.Buckets o) { |
| 512 buildCounterBuckets++; | 512 buildCounterBuckets++; |
| 513 if (buildCounterBuckets < 3) { | 513 if (buildCounterBuckets < 3) { |
| 514 checkUnnamed1108(o.items); | 514 checkUnnamed1367(o.items); |
| 515 unittest.expect(o.kind, unittest.equals('foo')); | 515 unittest.expect(o.kind, unittest.equals('foo')); |
| 516 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 516 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 517 } | 517 } |
| 518 buildCounterBuckets--; | 518 buildCounterBuckets--; |
| 519 } | 519 } |
| 520 | 520 |
| 521 buildUnnamed1109() { | 521 buildUnnamed1368() { |
| 522 var o = new core.Map<core.String, core.String>(); | 522 var o = new core.Map<core.String, core.String>(); |
| 523 o["x"] = "foo"; | 523 o["x"] = "foo"; |
| 524 o["y"] = "foo"; | 524 o["y"] = "foo"; |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkUnnamed1109(core.Map<core.String, core.String> o) { | 528 checkUnnamed1368(core.Map<core.String, core.String> o) { |
| 529 unittest.expect(o, unittest.hasLength(2)); | 529 unittest.expect(o, unittest.hasLength(2)); |
| 530 unittest.expect(o["x"], unittest.equals('foo')); | 530 unittest.expect(o["x"], unittest.equals('foo')); |
| 531 unittest.expect(o["y"], unittest.equals('foo')); | 531 unittest.expect(o["y"], unittest.equals('foo')); |
| 532 } | 532 } |
| 533 | 533 |
| 534 core.int buildCounterChannel = 0; | 534 core.int buildCounterChannel = 0; |
| 535 buildChannel() { | 535 buildChannel() { |
| 536 var o = new api.Channel(); | 536 var o = new api.Channel(); |
| 537 buildCounterChannel++; | 537 buildCounterChannel++; |
| 538 if (buildCounterChannel < 3) { | 538 if (buildCounterChannel < 3) { |
| 539 o.address = "foo"; | 539 o.address = "foo"; |
| 540 o.expiration = "foo"; | 540 o.expiration = "foo"; |
| 541 o.id = "foo"; | 541 o.id = "foo"; |
| 542 o.kind = "foo"; | 542 o.kind = "foo"; |
| 543 o.params = buildUnnamed1109(); | 543 o.params = buildUnnamed1368(); |
| 544 o.payload = true; | 544 o.payload = true; |
| 545 o.resourceId = "foo"; | 545 o.resourceId = "foo"; |
| 546 o.resourceUri = "foo"; | 546 o.resourceUri = "foo"; |
| 547 o.token = "foo"; | 547 o.token = "foo"; |
| 548 o.type = "foo"; | 548 o.type = "foo"; |
| 549 } | 549 } |
| 550 buildCounterChannel--; | 550 buildCounterChannel--; |
| 551 return o; | 551 return o; |
| 552 } | 552 } |
| 553 | 553 |
| 554 checkChannel(api.Channel o) { | 554 checkChannel(api.Channel o) { |
| 555 buildCounterChannel++; | 555 buildCounterChannel++; |
| 556 if (buildCounterChannel < 3) { | 556 if (buildCounterChannel < 3) { |
| 557 unittest.expect(o.address, unittest.equals('foo')); | 557 unittest.expect(o.address, unittest.equals('foo')); |
| 558 unittest.expect(o.expiration, unittest.equals('foo')); | 558 unittest.expect(o.expiration, unittest.equals('foo')); |
| 559 unittest.expect(o.id, unittest.equals('foo')); | 559 unittest.expect(o.id, unittest.equals('foo')); |
| 560 unittest.expect(o.kind, unittest.equals('foo')); | 560 unittest.expect(o.kind, unittest.equals('foo')); |
| 561 checkUnnamed1109(o.params); | 561 checkUnnamed1368(o.params); |
| 562 unittest.expect(o.payload, unittest.isTrue); | 562 unittest.expect(o.payload, unittest.isTrue); |
| 563 unittest.expect(o.resourceId, unittest.equals('foo')); | 563 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 564 unittest.expect(o.resourceUri, unittest.equals('foo')); | 564 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 565 unittest.expect(o.token, unittest.equals('foo')); | 565 unittest.expect(o.token, unittest.equals('foo')); |
| 566 unittest.expect(o.type, unittest.equals('foo')); | 566 unittest.expect(o.type, unittest.equals('foo')); |
| 567 } | 567 } |
| 568 buildCounterChannel--; | 568 buildCounterChannel--; |
| 569 } | 569 } |
| 570 | 570 |
| 571 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; | 571 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { | 603 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { |
| 604 buildCounterComposeRequestSourceObjects++; | 604 buildCounterComposeRequestSourceObjects++; |
| 605 if (buildCounterComposeRequestSourceObjects < 3) { | 605 if (buildCounterComposeRequestSourceObjects < 3) { |
| 606 unittest.expect(o.generation, unittest.equals('foo')); | 606 unittest.expect(o.generation, unittest.equals('foo')); |
| 607 unittest.expect(o.name, unittest.equals('foo')); | 607 unittest.expect(o.name, unittest.equals('foo')); |
| 608 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); | 608 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); |
| 609 } | 609 } |
| 610 buildCounterComposeRequestSourceObjects--; | 610 buildCounterComposeRequestSourceObjects--; |
| 611 } | 611 } |
| 612 | 612 |
| 613 buildUnnamed1110() { | 613 buildUnnamed1369() { |
| 614 var o = new core.List<api.ComposeRequestSourceObjects>(); | 614 var o = new core.List<api.ComposeRequestSourceObjects>(); |
| 615 o.add(buildComposeRequestSourceObjects()); | 615 o.add(buildComposeRequestSourceObjects()); |
| 616 o.add(buildComposeRequestSourceObjects()); | 616 o.add(buildComposeRequestSourceObjects()); |
| 617 return o; | 617 return o; |
| 618 } | 618 } |
| 619 | 619 |
| 620 checkUnnamed1110(core.List<api.ComposeRequestSourceObjects> o) { | 620 checkUnnamed1369(core.List<api.ComposeRequestSourceObjects> o) { |
| 621 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
| 622 checkComposeRequestSourceObjects(o[0]); | 622 checkComposeRequestSourceObjects(o[0]); |
| 623 checkComposeRequestSourceObjects(o[1]); | 623 checkComposeRequestSourceObjects(o[1]); |
| 624 } | 624 } |
| 625 | 625 |
| 626 core.int buildCounterComposeRequest = 0; | 626 core.int buildCounterComposeRequest = 0; |
| 627 buildComposeRequest() { | 627 buildComposeRequest() { |
| 628 var o = new api.ComposeRequest(); | 628 var o = new api.ComposeRequest(); |
| 629 buildCounterComposeRequest++; | 629 buildCounterComposeRequest++; |
| 630 if (buildCounterComposeRequest < 3) { | 630 if (buildCounterComposeRequest < 3) { |
| 631 o.destination = buildObject(); | 631 o.destination = buildObject(); |
| 632 o.kind = "foo"; | 632 o.kind = "foo"; |
| 633 o.sourceObjects = buildUnnamed1110(); | 633 o.sourceObjects = buildUnnamed1369(); |
| 634 } | 634 } |
| 635 buildCounterComposeRequest--; | 635 buildCounterComposeRequest--; |
| 636 return o; | 636 return o; |
| 637 } | 637 } |
| 638 | 638 |
| 639 checkComposeRequest(api.ComposeRequest o) { | 639 checkComposeRequest(api.ComposeRequest o) { |
| 640 buildCounterComposeRequest++; | 640 buildCounterComposeRequest++; |
| 641 if (buildCounterComposeRequest < 3) { | 641 if (buildCounterComposeRequest < 3) { |
| 642 checkObject(o.destination); | 642 checkObject(o.destination); |
| 643 unittest.expect(o.kind, unittest.equals('foo')); | 643 unittest.expect(o.kind, unittest.equals('foo')); |
| 644 checkUnnamed1110(o.sourceObjects); | 644 checkUnnamed1369(o.sourceObjects); |
| 645 } | 645 } |
| 646 buildCounterComposeRequest--; | 646 buildCounterComposeRequest--; |
| 647 } | 647 } |
| 648 | 648 |
| 649 buildUnnamed1111() { | 649 buildUnnamed1370() { |
| 650 var o = new core.List<api.ObjectAccessControl>(); | 650 var o = new core.List<api.ObjectAccessControl>(); |
| 651 o.add(buildObjectAccessControl()); | 651 o.add(buildObjectAccessControl()); |
| 652 o.add(buildObjectAccessControl()); | 652 o.add(buildObjectAccessControl()); |
| 653 return o; | 653 return o; |
| 654 } | 654 } |
| 655 | 655 |
| 656 checkUnnamed1111(core.List<api.ObjectAccessControl> o) { | 656 checkUnnamed1370(core.List<api.ObjectAccessControl> o) { |
| 657 unittest.expect(o, unittest.hasLength(2)); | 657 unittest.expect(o, unittest.hasLength(2)); |
| 658 checkObjectAccessControl(o[0]); | 658 checkObjectAccessControl(o[0]); |
| 659 checkObjectAccessControl(o[1]); | 659 checkObjectAccessControl(o[1]); |
| 660 } | 660 } |
| 661 | 661 |
| 662 core.int buildCounterObjectCustomerEncryption = 0; | 662 core.int buildCounterObjectCustomerEncryption = 0; |
| 663 buildObjectCustomerEncryption() { | 663 buildObjectCustomerEncryption() { |
| 664 var o = new api.ObjectCustomerEncryption(); | 664 var o = new api.ObjectCustomerEncryption(); |
| 665 buildCounterObjectCustomerEncryption++; | 665 buildCounterObjectCustomerEncryption++; |
| 666 if (buildCounterObjectCustomerEncryption < 3) { | 666 if (buildCounterObjectCustomerEncryption < 3) { |
| 667 o.encryptionAlgorithm = "foo"; | 667 o.encryptionAlgorithm = "foo"; |
| 668 o.keySha256 = "foo"; | 668 o.keySha256 = "foo"; |
| 669 } | 669 } |
| 670 buildCounterObjectCustomerEncryption--; | 670 buildCounterObjectCustomerEncryption--; |
| 671 return o; | 671 return o; |
| 672 } | 672 } |
| 673 | 673 |
| 674 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) { | 674 checkObjectCustomerEncryption(api.ObjectCustomerEncryption o) { |
| 675 buildCounterObjectCustomerEncryption++; | 675 buildCounterObjectCustomerEncryption++; |
| 676 if (buildCounterObjectCustomerEncryption < 3) { | 676 if (buildCounterObjectCustomerEncryption < 3) { |
| 677 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo')); | 677 unittest.expect(o.encryptionAlgorithm, unittest.equals('foo')); |
| 678 unittest.expect(o.keySha256, unittest.equals('foo')); | 678 unittest.expect(o.keySha256, unittest.equals('foo')); |
| 679 } | 679 } |
| 680 buildCounterObjectCustomerEncryption--; | 680 buildCounterObjectCustomerEncryption--; |
| 681 } | 681 } |
| 682 | 682 |
| 683 buildUnnamed1112() { | 683 buildUnnamed1371() { |
| 684 var o = new core.Map<core.String, core.String>(); | 684 var o = new core.Map<core.String, core.String>(); |
| 685 o["x"] = "foo"; | 685 o["x"] = "foo"; |
| 686 o["y"] = "foo"; | 686 o["y"] = "foo"; |
| 687 return o; | 687 return o; |
| 688 } | 688 } |
| 689 | 689 |
| 690 checkUnnamed1112(core.Map<core.String, core.String> o) { | 690 checkUnnamed1371(core.Map<core.String, core.String> o) { |
| 691 unittest.expect(o, unittest.hasLength(2)); | 691 unittest.expect(o, unittest.hasLength(2)); |
| 692 unittest.expect(o["x"], unittest.equals('foo')); | 692 unittest.expect(o["x"], unittest.equals('foo')); |
| 693 unittest.expect(o["y"], unittest.equals('foo')); | 693 unittest.expect(o["y"], unittest.equals('foo')); |
| 694 } | 694 } |
| 695 | 695 |
| 696 core.int buildCounterObjectOwner = 0; | 696 core.int buildCounterObjectOwner = 0; |
| 697 buildObjectOwner() { | 697 buildObjectOwner() { |
| 698 var o = new api.ObjectOwner(); | 698 var o = new api.ObjectOwner(); |
| 699 buildCounterObjectOwner++; | 699 buildCounterObjectOwner++; |
| 700 if (buildCounterObjectOwner < 3) { | 700 if (buildCounterObjectOwner < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 712 unittest.expect(o.entityId, unittest.equals('foo')); | 712 unittest.expect(o.entityId, unittest.equals('foo')); |
| 713 } | 713 } |
| 714 buildCounterObjectOwner--; | 714 buildCounterObjectOwner--; |
| 715 } | 715 } |
| 716 | 716 |
| 717 core.int buildCounterObject = 0; | 717 core.int buildCounterObject = 0; |
| 718 buildObject() { | 718 buildObject() { |
| 719 var o = new api.Object(); | 719 var o = new api.Object(); |
| 720 buildCounterObject++; | 720 buildCounterObject++; |
| 721 if (buildCounterObject < 3) { | 721 if (buildCounterObject < 3) { |
| 722 o.acl = buildUnnamed1111(); | 722 o.acl = buildUnnamed1370(); |
| 723 o.bucket = "foo"; | 723 o.bucket = "foo"; |
| 724 o.cacheControl = "foo"; | 724 o.cacheControl = "foo"; |
| 725 o.componentCount = 42; | 725 o.componentCount = 42; |
| 726 o.contentDisposition = "foo"; | 726 o.contentDisposition = "foo"; |
| 727 o.contentEncoding = "foo"; | 727 o.contentEncoding = "foo"; |
| 728 o.contentLanguage = "foo"; | 728 o.contentLanguage = "foo"; |
| 729 o.contentType = "foo"; | 729 o.contentType = "foo"; |
| 730 o.crc32c = "foo"; | 730 o.crc32c = "foo"; |
| 731 o.customerEncryption = buildObjectCustomerEncryption(); | 731 o.customerEncryption = buildObjectCustomerEncryption(); |
| 732 o.etag = "foo"; | 732 o.etag = "foo"; |
| 733 o.generation = "foo"; | 733 o.generation = "foo"; |
| 734 o.id = "foo"; | 734 o.id = "foo"; |
| 735 o.kind = "foo"; | 735 o.kind = "foo"; |
| 736 o.md5Hash = "foo"; | 736 o.md5Hash = "foo"; |
| 737 o.mediaLink = "foo"; | 737 o.mediaLink = "foo"; |
| 738 o.metadata = buildUnnamed1112(); | 738 o.metadata = buildUnnamed1371(); |
| 739 o.metageneration = "foo"; | 739 o.metageneration = "foo"; |
| 740 o.name = "foo"; | 740 o.name = "foo"; |
| 741 o.owner = buildObjectOwner(); | 741 o.owner = buildObjectOwner(); |
| 742 o.selfLink = "foo"; | 742 o.selfLink = "foo"; |
| 743 o.size = "foo"; | 743 o.size = "foo"; |
| 744 o.storageClass = "foo"; | 744 o.storageClass = "foo"; |
| 745 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); | 745 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 746 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); | 746 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); |
| 747 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 747 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 748 } | 748 } |
| 749 buildCounterObject--; | 749 buildCounterObject--; |
| 750 return o; | 750 return o; |
| 751 } | 751 } |
| 752 | 752 |
| 753 checkObject(api.Object o) { | 753 checkObject(api.Object o) { |
| 754 buildCounterObject++; | 754 buildCounterObject++; |
| 755 if (buildCounterObject < 3) { | 755 if (buildCounterObject < 3) { |
| 756 checkUnnamed1111(o.acl); | 756 checkUnnamed1370(o.acl); |
| 757 unittest.expect(o.bucket, unittest.equals('foo')); | 757 unittest.expect(o.bucket, unittest.equals('foo')); |
| 758 unittest.expect(o.cacheControl, unittest.equals('foo')); | 758 unittest.expect(o.cacheControl, unittest.equals('foo')); |
| 759 unittest.expect(o.componentCount, unittest.equals(42)); | 759 unittest.expect(o.componentCount, unittest.equals(42)); |
| 760 unittest.expect(o.contentDisposition, unittest.equals('foo')); | 760 unittest.expect(o.contentDisposition, unittest.equals('foo')); |
| 761 unittest.expect(o.contentEncoding, unittest.equals('foo')); | 761 unittest.expect(o.contentEncoding, unittest.equals('foo')); |
| 762 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 762 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 763 unittest.expect(o.contentType, unittest.equals('foo')); | 763 unittest.expect(o.contentType, unittest.equals('foo')); |
| 764 unittest.expect(o.crc32c, unittest.equals('foo')); | 764 unittest.expect(o.crc32c, unittest.equals('foo')); |
| 765 checkObjectCustomerEncryption(o.customerEncryption); | 765 checkObjectCustomerEncryption(o.customerEncryption); |
| 766 unittest.expect(o.etag, unittest.equals('foo')); | 766 unittest.expect(o.etag, unittest.equals('foo')); |
| 767 unittest.expect(o.generation, unittest.equals('foo')); | 767 unittest.expect(o.generation, unittest.equals('foo')); |
| 768 unittest.expect(o.id, unittest.equals('foo')); | 768 unittest.expect(o.id, unittest.equals('foo')); |
| 769 unittest.expect(o.kind, unittest.equals('foo')); | 769 unittest.expect(o.kind, unittest.equals('foo')); |
| 770 unittest.expect(o.md5Hash, unittest.equals('foo')); | 770 unittest.expect(o.md5Hash, unittest.equals('foo')); |
| 771 unittest.expect(o.mediaLink, unittest.equals('foo')); | 771 unittest.expect(o.mediaLink, unittest.equals('foo')); |
| 772 checkUnnamed1112(o.metadata); | 772 checkUnnamed1371(o.metadata); |
| 773 unittest.expect(o.metageneration, unittest.equals('foo')); | 773 unittest.expect(o.metageneration, unittest.equals('foo')); |
| 774 unittest.expect(o.name, unittest.equals('foo')); | 774 unittest.expect(o.name, unittest.equals('foo')); |
| 775 checkObjectOwner(o.owner); | 775 checkObjectOwner(o.owner); |
| 776 unittest.expect(o.selfLink, unittest.equals('foo')); | 776 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 777 unittest.expect(o.size, unittest.equals('foo')); | 777 unittest.expect(o.size, unittest.equals('foo')); |
| 778 unittest.expect(o.storageClass, unittest.equals('foo')); | 778 unittest.expect(o.storageClass, unittest.equals('foo')); |
| 779 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 779 unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 780 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 780 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 781 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 781 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 782 } | 782 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 unittest.expect(o.id, unittest.equals('foo')); | 840 unittest.expect(o.id, unittest.equals('foo')); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 unittest.expect(o.object, unittest.equals('foo')); | 842 unittest.expect(o.object, unittest.equals('foo')); |
| 843 checkObjectAccessControlProjectTeam(o.projectTeam); | 843 checkObjectAccessControlProjectTeam(o.projectTeam); |
| 844 unittest.expect(o.role, unittest.equals('foo')); | 844 unittest.expect(o.role, unittest.equals('foo')); |
| 845 unittest.expect(o.selfLink, unittest.equals('foo')); | 845 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 846 } | 846 } |
| 847 buildCounterObjectAccessControl--; | 847 buildCounterObjectAccessControl--; |
| 848 } | 848 } |
| 849 | 849 |
| 850 buildUnnamed1113() { | 850 buildUnnamed1372() { |
| 851 var o = new core.List<core.Object>(); | 851 var o = new core.List<core.Object>(); |
| 852 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 852 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 853 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 853 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 854 return o; | 854 return o; |
| 855 } | 855 } |
| 856 | 856 |
| 857 checkUnnamed1113(core.List<core.Object> o) { | 857 checkUnnamed1372(core.List<core.Object> o) { |
| 858 unittest.expect(o, unittest.hasLength(2)); | 858 unittest.expect(o, unittest.hasLength(2)); |
| 859 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 859 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
| 860 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 860 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
| 861 } | 861 } |
| 862 | 862 |
| 863 core.int buildCounterObjectAccessControls = 0; | 863 core.int buildCounterObjectAccessControls = 0; |
| 864 buildObjectAccessControls() { | 864 buildObjectAccessControls() { |
| 865 var o = new api.ObjectAccessControls(); | 865 var o = new api.ObjectAccessControls(); |
| 866 buildCounterObjectAccessControls++; | 866 buildCounterObjectAccessControls++; |
| 867 if (buildCounterObjectAccessControls < 3) { | 867 if (buildCounterObjectAccessControls < 3) { |
| 868 o.items = buildUnnamed1113(); | 868 o.items = buildUnnamed1372(); |
| 869 o.kind = "foo"; | 869 o.kind = "foo"; |
| 870 } | 870 } |
| 871 buildCounterObjectAccessControls--; | 871 buildCounterObjectAccessControls--; |
| 872 return o; | 872 return o; |
| 873 } | 873 } |
| 874 | 874 |
| 875 checkObjectAccessControls(api.ObjectAccessControls o) { | 875 checkObjectAccessControls(api.ObjectAccessControls o) { |
| 876 buildCounterObjectAccessControls++; | 876 buildCounterObjectAccessControls++; |
| 877 if (buildCounterObjectAccessControls < 3) { | 877 if (buildCounterObjectAccessControls < 3) { |
| 878 checkUnnamed1113(o.items); | 878 checkUnnamed1372(o.items); |
| 879 unittest.expect(o.kind, unittest.equals('foo')); | 879 unittest.expect(o.kind, unittest.equals('foo')); |
| 880 } | 880 } |
| 881 buildCounterObjectAccessControls--; | 881 buildCounterObjectAccessControls--; |
| 882 } | 882 } |
| 883 | 883 |
| 884 buildUnnamed1114() { | 884 buildUnnamed1373() { |
| 885 var o = new core.List<api.Object>(); | 885 var o = new core.List<api.Object>(); |
| 886 o.add(buildObject()); | 886 o.add(buildObject()); |
| 887 o.add(buildObject()); | 887 o.add(buildObject()); |
| 888 return o; | 888 return o; |
| 889 } | 889 } |
| 890 | 890 |
| 891 checkUnnamed1114(core.List<api.Object> o) { | 891 checkUnnamed1373(core.List<api.Object> o) { |
| 892 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
| 893 checkObject(o[0]); | 893 checkObject(o[0]); |
| 894 checkObject(o[1]); | 894 checkObject(o[1]); |
| 895 } | 895 } |
| 896 | 896 |
| 897 buildUnnamed1115() { | 897 buildUnnamed1374() { |
| 898 var o = new core.List<core.String>(); | 898 var o = new core.List<core.String>(); |
| 899 o.add("foo"); | 899 o.add("foo"); |
| 900 o.add("foo"); | 900 o.add("foo"); |
| 901 return o; | 901 return o; |
| 902 } | 902 } |
| 903 | 903 |
| 904 checkUnnamed1115(core.List<core.String> o) { | 904 checkUnnamed1374(core.List<core.String> o) { |
| 905 unittest.expect(o, unittest.hasLength(2)); | 905 unittest.expect(o, unittest.hasLength(2)); |
| 906 unittest.expect(o[0], unittest.equals('foo')); | 906 unittest.expect(o[0], unittest.equals('foo')); |
| 907 unittest.expect(o[1], unittest.equals('foo')); | 907 unittest.expect(o[1], unittest.equals('foo')); |
| 908 } | 908 } |
| 909 | 909 |
| 910 core.int buildCounterObjects = 0; | 910 core.int buildCounterObjects = 0; |
| 911 buildObjects() { | 911 buildObjects() { |
| 912 var o = new api.Objects(); | 912 var o = new api.Objects(); |
| 913 buildCounterObjects++; | 913 buildCounterObjects++; |
| 914 if (buildCounterObjects < 3) { | 914 if (buildCounterObjects < 3) { |
| 915 o.items = buildUnnamed1114(); | 915 o.items = buildUnnamed1373(); |
| 916 o.kind = "foo"; | 916 o.kind = "foo"; |
| 917 o.nextPageToken = "foo"; | 917 o.nextPageToken = "foo"; |
| 918 o.prefixes = buildUnnamed1115(); | 918 o.prefixes = buildUnnamed1374(); |
| 919 } | 919 } |
| 920 buildCounterObjects--; | 920 buildCounterObjects--; |
| 921 return o; | 921 return o; |
| 922 } | 922 } |
| 923 | 923 |
| 924 checkObjects(api.Objects o) { | 924 checkObjects(api.Objects o) { |
| 925 buildCounterObjects++; | 925 buildCounterObjects++; |
| 926 if (buildCounterObjects < 3) { | 926 if (buildCounterObjects < 3) { |
| 927 checkUnnamed1114(o.items); | 927 checkUnnamed1373(o.items); |
| 928 unittest.expect(o.kind, unittest.equals('foo')); | 928 unittest.expect(o.kind, unittest.equals('foo')); |
| 929 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 929 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 930 checkUnnamed1115(o.prefixes); | 930 checkUnnamed1374(o.prefixes); |
| 931 } | 931 } |
| 932 buildCounterObjects--; | 932 buildCounterObjects--; |
| 933 } | 933 } |
| 934 | 934 |
| 935 core.int buildCounterRewriteResponse = 0; | 935 core.int buildCounterRewriteResponse = 0; |
| 936 buildRewriteResponse() { | 936 buildRewriteResponse() { |
| 937 var o = new api.RewriteResponse(); | 937 var o = new api.RewriteResponse(); |
| 938 buildCounterRewriteResponse++; | 938 buildCounterRewriteResponse++; |
| 939 if (buildCounterRewriteResponse < 3) { | 939 if (buildCounterRewriteResponse < 3) { |
| 940 o.done = true; | 940 o.done = true; |
| (...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3477 res.watchAll(arg_request, arg_bucket, delimiter: arg_delimiter, maxResults
: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix, projection: arg_
projection, versions: arg_versions).then(unittest.expectAsync(((api.Channel resp
onse) { | 3477 res.watchAll(arg_request, arg_bucket, delimiter: arg_delimiter, maxResults
: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix, projection: arg_
projection, versions: arg_versions).then(unittest.expectAsync(((api.Channel resp
onse) { |
| 3478 checkChannel(response); | 3478 checkChannel(response); |
| 3479 }))); | 3479 }))); |
| 3480 }); | 3480 }); |
| 3481 | 3481 |
| 3482 }); | 3482 }); |
| 3483 | 3483 |
| 3484 | 3484 |
| 3485 } | 3485 } |
| 3486 | 3486 |
| OLD | NEW |