| 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; |
| 11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/storage/v1.dart' as api; | 15 import 'package:googleapis/storage/v1.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed1055() { | 19 buildUnnamed521() { |
| 20 var o = new core.List<api.BucketAccessControl>(); | 20 var o = new core.List<api.BucketAccessControl>(); |
| 21 o.add(buildBucketAccessControl()); | 21 o.add(buildBucketAccessControl()); |
| 22 o.add(buildBucketAccessControl()); | 22 o.add(buildBucketAccessControl()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed1055(core.List<api.BucketAccessControl> o) { | 26 checkUnnamed521(core.List<api.BucketAccessControl> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkBucketAccessControl(o[0]); | 28 checkBucketAccessControl(o[0]); |
| 29 checkBucketAccessControl(o[1]); | 29 checkBucketAccessControl(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 buildUnnamed1056() { | 32 buildUnnamed522() { |
| 33 var o = new core.List<core.String>(); | 33 var o = new core.List<core.String>(); |
| 34 o.add("foo"); | 34 o.add("foo"); |
| 35 o.add("foo"); | 35 o.add("foo"); |
| 36 return o; | 36 return o; |
| 37 } | 37 } |
| 38 | 38 |
| 39 checkUnnamed1056(core.List<core.String> o) { | 39 checkUnnamed522(core.List<core.String> o) { |
| 40 unittest.expect(o, unittest.hasLength(2)); | 40 unittest.expect(o, unittest.hasLength(2)); |
| 41 unittest.expect(o[0], unittest.equals('foo')); | 41 unittest.expect(o[0], unittest.equals('foo')); |
| 42 unittest.expect(o[1], unittest.equals('foo')); | 42 unittest.expect(o[1], unittest.equals('foo')); |
| 43 } | 43 } |
| 44 | 44 |
| 45 buildUnnamed1057() { | 45 buildUnnamed523() { |
| 46 var o = new core.List<core.String>(); | 46 var o = new core.List<core.String>(); |
| 47 o.add("foo"); | 47 o.add("foo"); |
| 48 o.add("foo"); | 48 o.add("foo"); |
| 49 return o; | 49 return o; |
| 50 } | 50 } |
| 51 | 51 |
| 52 checkUnnamed1057(core.List<core.String> o) { | 52 checkUnnamed523(core.List<core.String> o) { |
| 53 unittest.expect(o, unittest.hasLength(2)); | 53 unittest.expect(o, unittest.hasLength(2)); |
| 54 unittest.expect(o[0], unittest.equals('foo')); | 54 unittest.expect(o[0], unittest.equals('foo')); |
| 55 unittest.expect(o[1], unittest.equals('foo')); | 55 unittest.expect(o[1], unittest.equals('foo')); |
| 56 } | 56 } |
| 57 | 57 |
| 58 buildUnnamed1058() { | 58 buildUnnamed524() { |
| 59 var o = new core.List<core.String>(); | 59 var o = new core.List<core.String>(); |
| 60 o.add("foo"); | 60 o.add("foo"); |
| 61 o.add("foo"); | 61 o.add("foo"); |
| 62 return o; | 62 return o; |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkUnnamed1058(core.List<core.String> o) { | 65 checkUnnamed524(core.List<core.String> o) { |
| 66 unittest.expect(o, unittest.hasLength(2)); | 66 unittest.expect(o, unittest.hasLength(2)); |
| 67 unittest.expect(o[0], unittest.equals('foo')); | 67 unittest.expect(o[0], unittest.equals('foo')); |
| 68 unittest.expect(o[1], unittest.equals('foo')); | 68 unittest.expect(o[1], unittest.equals('foo')); |
| 69 } | 69 } |
| 70 | 70 |
| 71 core.int buildCounterBucketCors = 0; | 71 core.int buildCounterBucketCors = 0; |
| 72 buildBucketCors() { | 72 buildBucketCors() { |
| 73 var o = new api.BucketCors(); | 73 var o = new api.BucketCors(); |
| 74 buildCounterBucketCors++; | 74 buildCounterBucketCors++; |
| 75 if (buildCounterBucketCors < 3) { | 75 if (buildCounterBucketCors < 3) { |
| 76 o.maxAgeSeconds = 42; | 76 o.maxAgeSeconds = 42; |
| 77 o.method = buildUnnamed1056(); | 77 o.method = buildUnnamed522(); |
| 78 o.origin = buildUnnamed1057(); | 78 o.origin = buildUnnamed523(); |
| 79 o.responseHeader = buildUnnamed1058(); | 79 o.responseHeader = buildUnnamed524(); |
| 80 } | 80 } |
| 81 buildCounterBucketCors--; | 81 buildCounterBucketCors--; |
| 82 return o; | 82 return o; |
| 83 } | 83 } |
| 84 | 84 |
| 85 checkBucketCors(api.BucketCors o) { | 85 checkBucketCors(api.BucketCors o) { |
| 86 buildCounterBucketCors++; | 86 buildCounterBucketCors++; |
| 87 if (buildCounterBucketCors < 3) { | 87 if (buildCounterBucketCors < 3) { |
| 88 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); | 88 unittest.expect(o.maxAgeSeconds, unittest.equals(42)); |
| 89 checkUnnamed1056(o.method); | 89 checkUnnamed522(o.method); |
| 90 checkUnnamed1057(o.origin); | 90 checkUnnamed523(o.origin); |
| 91 checkUnnamed1058(o.responseHeader); | 91 checkUnnamed524(o.responseHeader); |
| 92 } | 92 } |
| 93 buildCounterBucketCors--; | 93 buildCounterBucketCors--; |
| 94 } | 94 } |
| 95 | 95 |
| 96 buildUnnamed1059() { | 96 buildUnnamed525() { |
| 97 var o = new core.List<api.BucketCors>(); | 97 var o = new core.List<api.BucketCors>(); |
| 98 o.add(buildBucketCors()); | 98 o.add(buildBucketCors()); |
| 99 o.add(buildBucketCors()); | 99 o.add(buildBucketCors()); |
| 100 return o; | 100 return o; |
| 101 } | 101 } |
| 102 | 102 |
| 103 checkUnnamed1059(core.List<api.BucketCors> o) { | 103 checkUnnamed525(core.List<api.BucketCors> o) { |
| 104 unittest.expect(o, unittest.hasLength(2)); | 104 unittest.expect(o, unittest.hasLength(2)); |
| 105 checkBucketCors(o[0]); | 105 checkBucketCors(o[0]); |
| 106 checkBucketCors(o[1]); | 106 checkBucketCors(o[1]); |
| 107 } | 107 } |
| 108 | 108 |
| 109 buildUnnamed1060() { | 109 buildUnnamed526() { |
| 110 var o = new core.List<api.ObjectAccessControl>(); | 110 var o = new core.List<api.ObjectAccessControl>(); |
| 111 o.add(buildObjectAccessControl()); | 111 o.add(buildObjectAccessControl()); |
| 112 o.add(buildObjectAccessControl()); | 112 o.add(buildObjectAccessControl()); |
| 113 return o; | 113 return o; |
| 114 } | 114 } |
| 115 | 115 |
| 116 checkUnnamed1060(core.List<api.ObjectAccessControl> o) { | 116 checkUnnamed526(core.List<api.ObjectAccessControl> o) { |
| 117 unittest.expect(o, unittest.hasLength(2)); | 117 unittest.expect(o, unittest.hasLength(2)); |
| 118 checkObjectAccessControl(o[0]); | 118 checkObjectAccessControl(o[0]); |
| 119 checkObjectAccessControl(o[1]); | 119 checkObjectAccessControl(o[1]); |
| 120 } | 120 } |
| 121 | 121 |
| 122 core.int buildCounterBucketLifecycleRuleAction = 0; | 122 core.int buildCounterBucketLifecycleRuleAction = 0; |
| 123 buildBucketLifecycleRuleAction() { | 123 buildBucketLifecycleRuleAction() { |
| 124 var o = new api.BucketLifecycleRuleAction(); | 124 var o = new api.BucketLifecycleRuleAction(); |
| 125 buildCounterBucketLifecycleRuleAction++; | 125 buildCounterBucketLifecycleRuleAction++; |
| 126 if (buildCounterBucketLifecycleRuleAction < 3) { | 126 if (buildCounterBucketLifecycleRuleAction < 3) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 checkBucketLifecycleRule(api.BucketLifecycleRule o) { | 178 checkBucketLifecycleRule(api.BucketLifecycleRule o) { |
| 179 buildCounterBucketLifecycleRule++; | 179 buildCounterBucketLifecycleRule++; |
| 180 if (buildCounterBucketLifecycleRule < 3) { | 180 if (buildCounterBucketLifecycleRule < 3) { |
| 181 checkBucketLifecycleRuleAction(o.action); | 181 checkBucketLifecycleRuleAction(o.action); |
| 182 checkBucketLifecycleRuleCondition(o.condition); | 182 checkBucketLifecycleRuleCondition(o.condition); |
| 183 } | 183 } |
| 184 buildCounterBucketLifecycleRule--; | 184 buildCounterBucketLifecycleRule--; |
| 185 } | 185 } |
| 186 | 186 |
| 187 buildUnnamed1061() { | 187 buildUnnamed527() { |
| 188 var o = new core.List<api.BucketLifecycleRule>(); | 188 var o = new core.List<api.BucketLifecycleRule>(); |
| 189 o.add(buildBucketLifecycleRule()); | 189 o.add(buildBucketLifecycleRule()); |
| 190 o.add(buildBucketLifecycleRule()); | 190 o.add(buildBucketLifecycleRule()); |
| 191 return o; | 191 return o; |
| 192 } | 192 } |
| 193 | 193 |
| 194 checkUnnamed1061(core.List<api.BucketLifecycleRule> o) { | 194 checkUnnamed527(core.List<api.BucketLifecycleRule> o) { |
| 195 unittest.expect(o, unittest.hasLength(2)); | 195 unittest.expect(o, unittest.hasLength(2)); |
| 196 checkBucketLifecycleRule(o[0]); | 196 checkBucketLifecycleRule(o[0]); |
| 197 checkBucketLifecycleRule(o[1]); | 197 checkBucketLifecycleRule(o[1]); |
| 198 } | 198 } |
| 199 | 199 |
| 200 core.int buildCounterBucketLifecycle = 0; | 200 core.int buildCounterBucketLifecycle = 0; |
| 201 buildBucketLifecycle() { | 201 buildBucketLifecycle() { |
| 202 var o = new api.BucketLifecycle(); | 202 var o = new api.BucketLifecycle(); |
| 203 buildCounterBucketLifecycle++; | 203 buildCounterBucketLifecycle++; |
| 204 if (buildCounterBucketLifecycle < 3) { | 204 if (buildCounterBucketLifecycle < 3) { |
| 205 o.rule = buildUnnamed1061(); | 205 o.rule = buildUnnamed527(); |
| 206 } | 206 } |
| 207 buildCounterBucketLifecycle--; | 207 buildCounterBucketLifecycle--; |
| 208 return o; | 208 return o; |
| 209 } | 209 } |
| 210 | 210 |
| 211 checkBucketLifecycle(api.BucketLifecycle o) { | 211 checkBucketLifecycle(api.BucketLifecycle o) { |
| 212 buildCounterBucketLifecycle++; | 212 buildCounterBucketLifecycle++; |
| 213 if (buildCounterBucketLifecycle < 3) { | 213 if (buildCounterBucketLifecycle < 3) { |
| 214 checkUnnamed1061(o.rule); | 214 checkUnnamed527(o.rule); |
| 215 } | 215 } |
| 216 buildCounterBucketLifecycle--; | 216 buildCounterBucketLifecycle--; |
| 217 } | 217 } |
| 218 | 218 |
| 219 core.int buildCounterBucketLogging = 0; | 219 core.int buildCounterBucketLogging = 0; |
| 220 buildBucketLogging() { | 220 buildBucketLogging() { |
| 221 var o = new api.BucketLogging(); | 221 var o = new api.BucketLogging(); |
| 222 buildCounterBucketLogging++; | 222 buildCounterBucketLogging++; |
| 223 if (buildCounterBucketLogging < 3) { | 223 if (buildCounterBucketLogging < 3) { |
| 224 o.logBucket = "foo"; | 224 o.logBucket = "foo"; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 unittest.expect(o.notFoundPage, unittest.equals('foo')); | 296 unittest.expect(o.notFoundPage, unittest.equals('foo')); |
| 297 } | 297 } |
| 298 buildCounterBucketWebsite--; | 298 buildCounterBucketWebsite--; |
| 299 } | 299 } |
| 300 | 300 |
| 301 core.int buildCounterBucket = 0; | 301 core.int buildCounterBucket = 0; |
| 302 buildBucket() { | 302 buildBucket() { |
| 303 var o = new api.Bucket(); | 303 var o = new api.Bucket(); |
| 304 buildCounterBucket++; | 304 buildCounterBucket++; |
| 305 if (buildCounterBucket < 3) { | 305 if (buildCounterBucket < 3) { |
| 306 o.acl = buildUnnamed1055(); | 306 o.acl = buildUnnamed521(); |
| 307 o.cors = buildUnnamed1059(); | 307 o.cors = buildUnnamed525(); |
| 308 o.defaultObjectAcl = buildUnnamed1060(); | 308 o.defaultObjectAcl = buildUnnamed526(); |
| 309 o.etag = "foo"; | 309 o.etag = "foo"; |
| 310 o.id = "foo"; | 310 o.id = "foo"; |
| 311 o.kind = "foo"; | 311 o.kind = "foo"; |
| 312 o.lifecycle = buildBucketLifecycle(); | 312 o.lifecycle = buildBucketLifecycle(); |
| 313 o.location = "foo"; | 313 o.location = "foo"; |
| 314 o.logging = buildBucketLogging(); | 314 o.logging = buildBucketLogging(); |
| 315 o.metageneration = "foo"; | 315 o.metageneration = "foo"; |
| 316 o.name = "foo"; | 316 o.name = "foo"; |
| 317 o.owner = buildBucketOwner(); | 317 o.owner = buildBucketOwner(); |
| 318 o.projectNumber = "foo"; | 318 o.projectNumber = "foo"; |
| 319 o.selfLink = "foo"; | 319 o.selfLink = "foo"; |
| 320 o.storageClass = "foo"; | 320 o.storageClass = "foo"; |
| 321 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); | 321 o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 322 o.versioning = buildBucketVersioning(); | 322 o.versioning = buildBucketVersioning(); |
| 323 o.website = buildBucketWebsite(); | 323 o.website = buildBucketWebsite(); |
| 324 } | 324 } |
| 325 buildCounterBucket--; | 325 buildCounterBucket--; |
| 326 return o; | 326 return o; |
| 327 } | 327 } |
| 328 | 328 |
| 329 checkBucket(api.Bucket o) { | 329 checkBucket(api.Bucket o) { |
| 330 buildCounterBucket++; | 330 buildCounterBucket++; |
| 331 if (buildCounterBucket < 3) { | 331 if (buildCounterBucket < 3) { |
| 332 checkUnnamed1055(o.acl); | 332 checkUnnamed521(o.acl); |
| 333 checkUnnamed1059(o.cors); | 333 checkUnnamed525(o.cors); |
| 334 checkUnnamed1060(o.defaultObjectAcl); | 334 checkUnnamed526(o.defaultObjectAcl); |
| 335 unittest.expect(o.etag, unittest.equals('foo')); | 335 unittest.expect(o.etag, unittest.equals('foo')); |
| 336 unittest.expect(o.id, unittest.equals('foo')); | 336 unittest.expect(o.id, unittest.equals('foo')); |
| 337 unittest.expect(o.kind, unittest.equals('foo')); | 337 unittest.expect(o.kind, unittest.equals('foo')); |
| 338 checkBucketLifecycle(o.lifecycle); | 338 checkBucketLifecycle(o.lifecycle); |
| 339 unittest.expect(o.location, unittest.equals('foo')); | 339 unittest.expect(o.location, unittest.equals('foo')); |
| 340 checkBucketLogging(o.logging); | 340 checkBucketLogging(o.logging); |
| 341 unittest.expect(o.metageneration, unittest.equals('foo')); | 341 unittest.expect(o.metageneration, unittest.equals('foo')); |
| 342 unittest.expect(o.name, unittest.equals('foo')); | 342 unittest.expect(o.name, unittest.equals('foo')); |
| 343 checkBucketOwner(o.owner); | 343 checkBucketOwner(o.owner); |
| 344 unittest.expect(o.projectNumber, unittest.equals('foo')); | 344 unittest.expect(o.projectNumber, unittest.equals('foo')); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 unittest.expect(o.etag, unittest.equals('foo')); | 404 unittest.expect(o.etag, unittest.equals('foo')); |
| 405 unittest.expect(o.id, unittest.equals('foo')); | 405 unittest.expect(o.id, unittest.equals('foo')); |
| 406 unittest.expect(o.kind, unittest.equals('foo')); | 406 unittest.expect(o.kind, unittest.equals('foo')); |
| 407 checkBucketAccessControlProjectTeam(o.projectTeam); | 407 checkBucketAccessControlProjectTeam(o.projectTeam); |
| 408 unittest.expect(o.role, unittest.equals('foo')); | 408 unittest.expect(o.role, unittest.equals('foo')); |
| 409 unittest.expect(o.selfLink, unittest.equals('foo')); | 409 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 410 } | 410 } |
| 411 buildCounterBucketAccessControl--; | 411 buildCounterBucketAccessControl--; |
| 412 } | 412 } |
| 413 | 413 |
| 414 buildUnnamed1062() { | 414 buildUnnamed528() { |
| 415 var o = new core.List<api.BucketAccessControl>(); | 415 var o = new core.List<api.BucketAccessControl>(); |
| 416 o.add(buildBucketAccessControl()); | 416 o.add(buildBucketAccessControl()); |
| 417 o.add(buildBucketAccessControl()); | 417 o.add(buildBucketAccessControl()); |
| 418 return o; | 418 return o; |
| 419 } | 419 } |
| 420 | 420 |
| 421 checkUnnamed1062(core.List<api.BucketAccessControl> o) { | 421 checkUnnamed528(core.List<api.BucketAccessControl> o) { |
| 422 unittest.expect(o, unittest.hasLength(2)); | 422 unittest.expect(o, unittest.hasLength(2)); |
| 423 checkBucketAccessControl(o[0]); | 423 checkBucketAccessControl(o[0]); |
| 424 checkBucketAccessControl(o[1]); | 424 checkBucketAccessControl(o[1]); |
| 425 } | 425 } |
| 426 | 426 |
| 427 core.int buildCounterBucketAccessControls = 0; | 427 core.int buildCounterBucketAccessControls = 0; |
| 428 buildBucketAccessControls() { | 428 buildBucketAccessControls() { |
| 429 var o = new api.BucketAccessControls(); | 429 var o = new api.BucketAccessControls(); |
| 430 buildCounterBucketAccessControls++; | 430 buildCounterBucketAccessControls++; |
| 431 if (buildCounterBucketAccessControls < 3) { | 431 if (buildCounterBucketAccessControls < 3) { |
| 432 o.items = buildUnnamed1062(); | 432 o.items = buildUnnamed528(); |
| 433 o.kind = "foo"; | 433 o.kind = "foo"; |
| 434 } | 434 } |
| 435 buildCounterBucketAccessControls--; | 435 buildCounterBucketAccessControls--; |
| 436 return o; | 436 return o; |
| 437 } | 437 } |
| 438 | 438 |
| 439 checkBucketAccessControls(api.BucketAccessControls o) { | 439 checkBucketAccessControls(api.BucketAccessControls o) { |
| 440 buildCounterBucketAccessControls++; | 440 buildCounterBucketAccessControls++; |
| 441 if (buildCounterBucketAccessControls < 3) { | 441 if (buildCounterBucketAccessControls < 3) { |
| 442 checkUnnamed1062(o.items); | 442 checkUnnamed528(o.items); |
| 443 unittest.expect(o.kind, unittest.equals('foo')); | 443 unittest.expect(o.kind, unittest.equals('foo')); |
| 444 } | 444 } |
| 445 buildCounterBucketAccessControls--; | 445 buildCounterBucketAccessControls--; |
| 446 } | 446 } |
| 447 | 447 |
| 448 buildUnnamed1063() { | 448 buildUnnamed529() { |
| 449 var o = new core.List<api.Bucket>(); | 449 var o = new core.List<api.Bucket>(); |
| 450 o.add(buildBucket()); | 450 o.add(buildBucket()); |
| 451 o.add(buildBucket()); | 451 o.add(buildBucket()); |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkUnnamed1063(core.List<api.Bucket> o) { | 455 checkUnnamed529(core.List<api.Bucket> o) { |
| 456 unittest.expect(o, unittest.hasLength(2)); | 456 unittest.expect(o, unittest.hasLength(2)); |
| 457 checkBucket(o[0]); | 457 checkBucket(o[0]); |
| 458 checkBucket(o[1]); | 458 checkBucket(o[1]); |
| 459 } | 459 } |
| 460 | 460 |
| 461 core.int buildCounterBuckets = 0; | 461 core.int buildCounterBuckets = 0; |
| 462 buildBuckets() { | 462 buildBuckets() { |
| 463 var o = new api.Buckets(); | 463 var o = new api.Buckets(); |
| 464 buildCounterBuckets++; | 464 buildCounterBuckets++; |
| 465 if (buildCounterBuckets < 3) { | 465 if (buildCounterBuckets < 3) { |
| 466 o.items = buildUnnamed1063(); | 466 o.items = buildUnnamed529(); |
| 467 o.kind = "foo"; | 467 o.kind = "foo"; |
| 468 o.nextPageToken = "foo"; | 468 o.nextPageToken = "foo"; |
| 469 } | 469 } |
| 470 buildCounterBuckets--; | 470 buildCounterBuckets--; |
| 471 return o; | 471 return o; |
| 472 } | 472 } |
| 473 | 473 |
| 474 checkBuckets(api.Buckets o) { | 474 checkBuckets(api.Buckets o) { |
| 475 buildCounterBuckets++; | 475 buildCounterBuckets++; |
| 476 if (buildCounterBuckets < 3) { | 476 if (buildCounterBuckets < 3) { |
| 477 checkUnnamed1063(o.items); | 477 checkUnnamed529(o.items); |
| 478 unittest.expect(o.kind, unittest.equals('foo')); | 478 unittest.expect(o.kind, unittest.equals('foo')); |
| 479 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 479 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 480 } | 480 } |
| 481 buildCounterBuckets--; | 481 buildCounterBuckets--; |
| 482 } | 482 } |
| 483 | 483 |
| 484 buildUnnamed1064() { | 484 buildUnnamed530() { |
| 485 var o = new core.Map<core.String, core.String>(); | 485 var o = new core.Map<core.String, core.String>(); |
| 486 o["x"] = "foo"; | 486 o["x"] = "foo"; |
| 487 o["y"] = "foo"; | 487 o["y"] = "foo"; |
| 488 return o; | 488 return o; |
| 489 } | 489 } |
| 490 | 490 |
| 491 checkUnnamed1064(core.Map<core.String, core.String> o) { | 491 checkUnnamed530(core.Map<core.String, core.String> o) { |
| 492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
| 493 unittest.expect(o["x"], unittest.equals('foo')); | 493 unittest.expect(o["x"], unittest.equals('foo')); |
| 494 unittest.expect(o["y"], unittest.equals('foo')); | 494 unittest.expect(o["y"], unittest.equals('foo')); |
| 495 } | 495 } |
| 496 | 496 |
| 497 core.int buildCounterChannel = 0; | 497 core.int buildCounterChannel = 0; |
| 498 buildChannel() { | 498 buildChannel() { |
| 499 var o = new api.Channel(); | 499 var o = new api.Channel(); |
| 500 buildCounterChannel++; | 500 buildCounterChannel++; |
| 501 if (buildCounterChannel < 3) { | 501 if (buildCounterChannel < 3) { |
| 502 o.address = "foo"; | 502 o.address = "foo"; |
| 503 o.expiration = "foo"; | 503 o.expiration = "foo"; |
| 504 o.id = "foo"; | 504 o.id = "foo"; |
| 505 o.kind = "foo"; | 505 o.kind = "foo"; |
| 506 o.params = buildUnnamed1064(); | 506 o.params = buildUnnamed530(); |
| 507 o.payload = true; | 507 o.payload = true; |
| 508 o.resourceId = "foo"; | 508 o.resourceId = "foo"; |
| 509 o.resourceUri = "foo"; | 509 o.resourceUri = "foo"; |
| 510 o.token = "foo"; | 510 o.token = "foo"; |
| 511 o.type = "foo"; | 511 o.type = "foo"; |
| 512 } | 512 } |
| 513 buildCounterChannel--; | 513 buildCounterChannel--; |
| 514 return o; | 514 return o; |
| 515 } | 515 } |
| 516 | 516 |
| 517 checkChannel(api.Channel o) { | 517 checkChannel(api.Channel o) { |
| 518 buildCounterChannel++; | 518 buildCounterChannel++; |
| 519 if (buildCounterChannel < 3) { | 519 if (buildCounterChannel < 3) { |
| 520 unittest.expect(o.address, unittest.equals('foo')); | 520 unittest.expect(o.address, unittest.equals('foo')); |
| 521 unittest.expect(o.expiration, unittest.equals('foo')); | 521 unittest.expect(o.expiration, unittest.equals('foo')); |
| 522 unittest.expect(o.id, unittest.equals('foo')); | 522 unittest.expect(o.id, unittest.equals('foo')); |
| 523 unittest.expect(o.kind, unittest.equals('foo')); | 523 unittest.expect(o.kind, unittest.equals('foo')); |
| 524 checkUnnamed1064(o.params); | 524 checkUnnamed530(o.params); |
| 525 unittest.expect(o.payload, unittest.isTrue); | 525 unittest.expect(o.payload, unittest.isTrue); |
| 526 unittest.expect(o.resourceId, unittest.equals('foo')); | 526 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 527 unittest.expect(o.resourceUri, unittest.equals('foo')); | 527 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 528 unittest.expect(o.token, unittest.equals('foo')); | 528 unittest.expect(o.token, unittest.equals('foo')); |
| 529 unittest.expect(o.type, unittest.equals('foo')); | 529 unittest.expect(o.type, unittest.equals('foo')); |
| 530 } | 530 } |
| 531 buildCounterChannel--; | 531 buildCounterChannel--; |
| 532 } | 532 } |
| 533 | 533 |
| 534 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; | 534 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { | 566 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { |
| 567 buildCounterComposeRequestSourceObjects++; | 567 buildCounterComposeRequestSourceObjects++; |
| 568 if (buildCounterComposeRequestSourceObjects < 3) { | 568 if (buildCounterComposeRequestSourceObjects < 3) { |
| 569 unittest.expect(o.generation, unittest.equals('foo')); | 569 unittest.expect(o.generation, unittest.equals('foo')); |
| 570 unittest.expect(o.name, unittest.equals('foo')); | 570 unittest.expect(o.name, unittest.equals('foo')); |
| 571 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); | 571 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); |
| 572 } | 572 } |
| 573 buildCounterComposeRequestSourceObjects--; | 573 buildCounterComposeRequestSourceObjects--; |
| 574 } | 574 } |
| 575 | 575 |
| 576 buildUnnamed1065() { | 576 buildUnnamed531() { |
| 577 var o = new core.List<api.ComposeRequestSourceObjects>(); | 577 var o = new core.List<api.ComposeRequestSourceObjects>(); |
| 578 o.add(buildComposeRequestSourceObjects()); | 578 o.add(buildComposeRequestSourceObjects()); |
| 579 o.add(buildComposeRequestSourceObjects()); | 579 o.add(buildComposeRequestSourceObjects()); |
| 580 return o; | 580 return o; |
| 581 } | 581 } |
| 582 | 582 |
| 583 checkUnnamed1065(core.List<api.ComposeRequestSourceObjects> o) { | 583 checkUnnamed531(core.List<api.ComposeRequestSourceObjects> o) { |
| 584 unittest.expect(o, unittest.hasLength(2)); | 584 unittest.expect(o, unittest.hasLength(2)); |
| 585 checkComposeRequestSourceObjects(o[0]); | 585 checkComposeRequestSourceObjects(o[0]); |
| 586 checkComposeRequestSourceObjects(o[1]); | 586 checkComposeRequestSourceObjects(o[1]); |
| 587 } | 587 } |
| 588 | 588 |
| 589 core.int buildCounterComposeRequest = 0; | 589 core.int buildCounterComposeRequest = 0; |
| 590 buildComposeRequest() { | 590 buildComposeRequest() { |
| 591 var o = new api.ComposeRequest(); | 591 var o = new api.ComposeRequest(); |
| 592 buildCounterComposeRequest++; | 592 buildCounterComposeRequest++; |
| 593 if (buildCounterComposeRequest < 3) { | 593 if (buildCounterComposeRequest < 3) { |
| 594 o.destination = buildObject(); | 594 o.destination = buildObject(); |
| 595 o.kind = "foo"; | 595 o.kind = "foo"; |
| 596 o.sourceObjects = buildUnnamed1065(); | 596 o.sourceObjects = buildUnnamed531(); |
| 597 } | 597 } |
| 598 buildCounterComposeRequest--; | 598 buildCounterComposeRequest--; |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkComposeRequest(api.ComposeRequest o) { | 602 checkComposeRequest(api.ComposeRequest o) { |
| 603 buildCounterComposeRequest++; | 603 buildCounterComposeRequest++; |
| 604 if (buildCounterComposeRequest < 3) { | 604 if (buildCounterComposeRequest < 3) { |
| 605 checkObject(o.destination); | 605 checkObject(o.destination); |
| 606 unittest.expect(o.kind, unittest.equals('foo')); | 606 unittest.expect(o.kind, unittest.equals('foo')); |
| 607 checkUnnamed1065(o.sourceObjects); | 607 checkUnnamed531(o.sourceObjects); |
| 608 } | 608 } |
| 609 buildCounterComposeRequest--; | 609 buildCounterComposeRequest--; |
| 610 } | 610 } |
| 611 | 611 |
| 612 buildUnnamed1066() { | 612 buildUnnamed532() { |
| 613 var o = new core.List<api.ObjectAccessControl>(); | 613 var o = new core.List<api.ObjectAccessControl>(); |
| 614 o.add(buildObjectAccessControl()); | 614 o.add(buildObjectAccessControl()); |
| 615 o.add(buildObjectAccessControl()); | 615 o.add(buildObjectAccessControl()); |
| 616 return o; | 616 return o; |
| 617 } | 617 } |
| 618 | 618 |
| 619 checkUnnamed1066(core.List<api.ObjectAccessControl> o) { | 619 checkUnnamed532(core.List<api.ObjectAccessControl> o) { |
| 620 unittest.expect(o, unittest.hasLength(2)); | 620 unittest.expect(o, unittest.hasLength(2)); |
| 621 checkObjectAccessControl(o[0]); | 621 checkObjectAccessControl(o[0]); |
| 622 checkObjectAccessControl(o[1]); | 622 checkObjectAccessControl(o[1]); |
| 623 } | 623 } |
| 624 | 624 |
| 625 buildUnnamed1067() { | 625 buildUnnamed533() { |
| 626 var o = new core.Map<core.String, core.String>(); | 626 var o = new core.Map<core.String, core.String>(); |
| 627 o["x"] = "foo"; | 627 o["x"] = "foo"; |
| 628 o["y"] = "foo"; | 628 o["y"] = "foo"; |
| 629 return o; | 629 return o; |
| 630 } | 630 } |
| 631 | 631 |
| 632 checkUnnamed1067(core.Map<core.String, core.String> o) { | 632 checkUnnamed533(core.Map<core.String, core.String> o) { |
| 633 unittest.expect(o, unittest.hasLength(2)); | 633 unittest.expect(o, unittest.hasLength(2)); |
| 634 unittest.expect(o["x"], unittest.equals('foo')); | 634 unittest.expect(o["x"], unittest.equals('foo')); |
| 635 unittest.expect(o["y"], unittest.equals('foo')); | 635 unittest.expect(o["y"], unittest.equals('foo')); |
| 636 } | 636 } |
| 637 | 637 |
| 638 core.int buildCounterObjectOwner = 0; | 638 core.int buildCounterObjectOwner = 0; |
| 639 buildObjectOwner() { | 639 buildObjectOwner() { |
| 640 var o = new api.ObjectOwner(); | 640 var o = new api.ObjectOwner(); |
| 641 buildCounterObjectOwner++; | 641 buildCounterObjectOwner++; |
| 642 if (buildCounterObjectOwner < 3) { | 642 if (buildCounterObjectOwner < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 654 unittest.expect(o.entityId, unittest.equals('foo')); | 654 unittest.expect(o.entityId, unittest.equals('foo')); |
| 655 } | 655 } |
| 656 buildCounterObjectOwner--; | 656 buildCounterObjectOwner--; |
| 657 } | 657 } |
| 658 | 658 |
| 659 core.int buildCounterObject = 0; | 659 core.int buildCounterObject = 0; |
| 660 buildObject() { | 660 buildObject() { |
| 661 var o = new api.Object(); | 661 var o = new api.Object(); |
| 662 buildCounterObject++; | 662 buildCounterObject++; |
| 663 if (buildCounterObject < 3) { | 663 if (buildCounterObject < 3) { |
| 664 o.acl = buildUnnamed1066(); | 664 o.acl = buildUnnamed532(); |
| 665 o.bucket = "foo"; | 665 o.bucket = "foo"; |
| 666 o.cacheControl = "foo"; | 666 o.cacheControl = "foo"; |
| 667 o.componentCount = 42; | 667 o.componentCount = 42; |
| 668 o.contentDisposition = "foo"; | 668 o.contentDisposition = "foo"; |
| 669 o.contentEncoding = "foo"; | 669 o.contentEncoding = "foo"; |
| 670 o.contentLanguage = "foo"; | 670 o.contentLanguage = "foo"; |
| 671 o.contentType = "foo"; | 671 o.contentType = "foo"; |
| 672 o.crc32c = "foo"; | 672 o.crc32c = "foo"; |
| 673 o.etag = "foo"; | 673 o.etag = "foo"; |
| 674 o.generation = "foo"; | 674 o.generation = "foo"; |
| 675 o.id = "foo"; | 675 o.id = "foo"; |
| 676 o.kind = "foo"; | 676 o.kind = "foo"; |
| 677 o.md5Hash = "foo"; | 677 o.md5Hash = "foo"; |
| 678 o.mediaLink = "foo"; | 678 o.mediaLink = "foo"; |
| 679 o.metadata = buildUnnamed1067(); | 679 o.metadata = buildUnnamed533(); |
| 680 o.metageneration = "foo"; | 680 o.metageneration = "foo"; |
| 681 o.name = "foo"; | 681 o.name = "foo"; |
| 682 o.owner = buildObjectOwner(); | 682 o.owner = buildObjectOwner(); |
| 683 o.selfLink = "foo"; | 683 o.selfLink = "foo"; |
| 684 o.size = "foo"; | 684 o.size = "foo"; |
| 685 o.storageClass = "foo"; | 685 o.storageClass = "foo"; |
| 686 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); | 686 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); |
| 687 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 687 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 688 } | 688 } |
| 689 buildCounterObject--; | 689 buildCounterObject--; |
| 690 return o; | 690 return o; |
| 691 } | 691 } |
| 692 | 692 |
| 693 checkObject(api.Object o) { | 693 checkObject(api.Object o) { |
| 694 buildCounterObject++; | 694 buildCounterObject++; |
| 695 if (buildCounterObject < 3) { | 695 if (buildCounterObject < 3) { |
| 696 checkUnnamed1066(o.acl); | 696 checkUnnamed532(o.acl); |
| 697 unittest.expect(o.bucket, unittest.equals('foo')); | 697 unittest.expect(o.bucket, unittest.equals('foo')); |
| 698 unittest.expect(o.cacheControl, unittest.equals('foo')); | 698 unittest.expect(o.cacheControl, unittest.equals('foo')); |
| 699 unittest.expect(o.componentCount, unittest.equals(42)); | 699 unittest.expect(o.componentCount, unittest.equals(42)); |
| 700 unittest.expect(o.contentDisposition, unittest.equals('foo')); | 700 unittest.expect(o.contentDisposition, unittest.equals('foo')); |
| 701 unittest.expect(o.contentEncoding, unittest.equals('foo')); | 701 unittest.expect(o.contentEncoding, unittest.equals('foo')); |
| 702 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 702 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
| 703 unittest.expect(o.contentType, unittest.equals('foo')); | 703 unittest.expect(o.contentType, unittest.equals('foo')); |
| 704 unittest.expect(o.crc32c, unittest.equals('foo')); | 704 unittest.expect(o.crc32c, unittest.equals('foo')); |
| 705 unittest.expect(o.etag, unittest.equals('foo')); | 705 unittest.expect(o.etag, unittest.equals('foo')); |
| 706 unittest.expect(o.generation, unittest.equals('foo')); | 706 unittest.expect(o.generation, unittest.equals('foo')); |
| 707 unittest.expect(o.id, unittest.equals('foo')); | 707 unittest.expect(o.id, unittest.equals('foo')); |
| 708 unittest.expect(o.kind, unittest.equals('foo')); | 708 unittest.expect(o.kind, unittest.equals('foo')); |
| 709 unittest.expect(o.md5Hash, unittest.equals('foo')); | 709 unittest.expect(o.md5Hash, unittest.equals('foo')); |
| 710 unittest.expect(o.mediaLink, unittest.equals('foo')); | 710 unittest.expect(o.mediaLink, unittest.equals('foo')); |
| 711 checkUnnamed1067(o.metadata); | 711 checkUnnamed533(o.metadata); |
| 712 unittest.expect(o.metageneration, unittest.equals('foo')); | 712 unittest.expect(o.metageneration, unittest.equals('foo')); |
| 713 unittest.expect(o.name, unittest.equals('foo')); | 713 unittest.expect(o.name, unittest.equals('foo')); |
| 714 checkObjectOwner(o.owner); | 714 checkObjectOwner(o.owner); |
| 715 unittest.expect(o.selfLink, unittest.equals('foo')); | 715 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 716 unittest.expect(o.size, unittest.equals('foo')); | 716 unittest.expect(o.size, unittest.equals('foo')); |
| 717 unittest.expect(o.storageClass, unittest.equals('foo')); | 717 unittest.expect(o.storageClass, unittest.equals('foo')); |
| 718 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 718 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 719 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 719 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 720 } | 720 } |
| 721 buildCounterObject--; | 721 buildCounterObject--; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 unittest.expect(o.id, unittest.equals('foo')); | 778 unittest.expect(o.id, unittest.equals('foo')); |
| 779 unittest.expect(o.kind, unittest.equals('foo')); | 779 unittest.expect(o.kind, unittest.equals('foo')); |
| 780 unittest.expect(o.object, unittest.equals('foo')); | 780 unittest.expect(o.object, unittest.equals('foo')); |
| 781 checkObjectAccessControlProjectTeam(o.projectTeam); | 781 checkObjectAccessControlProjectTeam(o.projectTeam); |
| 782 unittest.expect(o.role, unittest.equals('foo')); | 782 unittest.expect(o.role, unittest.equals('foo')); |
| 783 unittest.expect(o.selfLink, unittest.equals('foo')); | 783 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 784 } | 784 } |
| 785 buildCounterObjectAccessControl--; | 785 buildCounterObjectAccessControl--; |
| 786 } | 786 } |
| 787 | 787 |
| 788 buildUnnamed1068() { | 788 buildUnnamed534() { |
| 789 var o = new core.List<core.Object>(); | 789 var o = new core.List<core.Object>(); |
| 790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 790 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 791 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 791 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 792 return o; | 792 return o; |
| 793 } | 793 } |
| 794 | 794 |
| 795 checkUnnamed1068(core.List<core.Object> o) { | 795 checkUnnamed534(core.List<core.Object> o) { |
| 796 unittest.expect(o, unittest.hasLength(2)); | 796 unittest.expect(o, unittest.hasLength(2)); |
| 797 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')); | 797 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')); |
| 798 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')); | 798 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')); |
| 799 } | 799 } |
| 800 | 800 |
| 801 core.int buildCounterObjectAccessControls = 0; | 801 core.int buildCounterObjectAccessControls = 0; |
| 802 buildObjectAccessControls() { | 802 buildObjectAccessControls() { |
| 803 var o = new api.ObjectAccessControls(); | 803 var o = new api.ObjectAccessControls(); |
| 804 buildCounterObjectAccessControls++; | 804 buildCounterObjectAccessControls++; |
| 805 if (buildCounterObjectAccessControls < 3) { | 805 if (buildCounterObjectAccessControls < 3) { |
| 806 o.items = buildUnnamed1068(); | 806 o.items = buildUnnamed534(); |
| 807 o.kind = "foo"; | 807 o.kind = "foo"; |
| 808 } | 808 } |
| 809 buildCounterObjectAccessControls--; | 809 buildCounterObjectAccessControls--; |
| 810 return o; | 810 return o; |
| 811 } | 811 } |
| 812 | 812 |
| 813 checkObjectAccessControls(api.ObjectAccessControls o) { | 813 checkObjectAccessControls(api.ObjectAccessControls o) { |
| 814 buildCounterObjectAccessControls++; | 814 buildCounterObjectAccessControls++; |
| 815 if (buildCounterObjectAccessControls < 3) { | 815 if (buildCounterObjectAccessControls < 3) { |
| 816 checkUnnamed1068(o.items); | 816 checkUnnamed534(o.items); |
| 817 unittest.expect(o.kind, unittest.equals('foo')); | 817 unittest.expect(o.kind, unittest.equals('foo')); |
| 818 } | 818 } |
| 819 buildCounterObjectAccessControls--; | 819 buildCounterObjectAccessControls--; |
| 820 } | 820 } |
| 821 | 821 |
| 822 buildUnnamed1069() { | 822 buildUnnamed535() { |
| 823 var o = new core.List<api.Object>(); | 823 var o = new core.List<api.Object>(); |
| 824 o.add(buildObject()); | 824 o.add(buildObject()); |
| 825 o.add(buildObject()); | 825 o.add(buildObject()); |
| 826 return o; | 826 return o; |
| 827 } | 827 } |
| 828 | 828 |
| 829 checkUnnamed1069(core.List<api.Object> o) { | 829 checkUnnamed535(core.List<api.Object> o) { |
| 830 unittest.expect(o, unittest.hasLength(2)); | 830 unittest.expect(o, unittest.hasLength(2)); |
| 831 checkObject(o[0]); | 831 checkObject(o[0]); |
| 832 checkObject(o[1]); | 832 checkObject(o[1]); |
| 833 } | 833 } |
| 834 | 834 |
| 835 buildUnnamed1070() { | 835 buildUnnamed536() { |
| 836 var o = new core.List<core.String>(); | 836 var o = new core.List<core.String>(); |
| 837 o.add("foo"); | 837 o.add("foo"); |
| 838 o.add("foo"); | 838 o.add("foo"); |
| 839 return o; | 839 return o; |
| 840 } | 840 } |
| 841 | 841 |
| 842 checkUnnamed1070(core.List<core.String> o) { | 842 checkUnnamed536(core.List<core.String> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
| 844 unittest.expect(o[0], unittest.equals('foo')); | 844 unittest.expect(o[0], unittest.equals('foo')); |
| 845 unittest.expect(o[1], unittest.equals('foo')); | 845 unittest.expect(o[1], unittest.equals('foo')); |
| 846 } | 846 } |
| 847 | 847 |
| 848 core.int buildCounterObjects = 0; | 848 core.int buildCounterObjects = 0; |
| 849 buildObjects() { | 849 buildObjects() { |
| 850 var o = new api.Objects(); | 850 var o = new api.Objects(); |
| 851 buildCounterObjects++; | 851 buildCounterObjects++; |
| 852 if (buildCounterObjects < 3) { | 852 if (buildCounterObjects < 3) { |
| 853 o.items = buildUnnamed1069(); | 853 o.items = buildUnnamed535(); |
| 854 o.kind = "foo"; | 854 o.kind = "foo"; |
| 855 o.nextPageToken = "foo"; | 855 o.nextPageToken = "foo"; |
| 856 o.prefixes = buildUnnamed1070(); | 856 o.prefixes = buildUnnamed536(); |
| 857 } | 857 } |
| 858 buildCounterObjects--; | 858 buildCounterObjects--; |
| 859 return o; | 859 return o; |
| 860 } | 860 } |
| 861 | 861 |
| 862 checkObjects(api.Objects o) { | 862 checkObjects(api.Objects o) { |
| 863 buildCounterObjects++; | 863 buildCounterObjects++; |
| 864 if (buildCounterObjects < 3) { | 864 if (buildCounterObjects < 3) { |
| 865 checkUnnamed1069(o.items); | 865 checkUnnamed535(o.items); |
| 866 unittest.expect(o.kind, unittest.equals('foo')); | 866 unittest.expect(o.kind, unittest.equals('foo')); |
| 867 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 867 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 868 checkUnnamed1070(o.prefixes); | 868 checkUnnamed536(o.prefixes); |
| 869 } | 869 } |
| 870 buildCounterObjects--; | 870 buildCounterObjects--; |
| 871 } | 871 } |
| 872 | 872 |
| 873 | 873 |
| 874 main() { | 874 main() { |
| 875 unittest.group("obj-schema-BucketCors", () { | 875 unittest.group("obj-schema-BucketCors", () { |
| 876 unittest.test("to-json--from-json", () { | 876 unittest.test("to-json--from-json", () { |
| 877 var o = buildBucketCors(); | 877 var o = buildBucketCors(); |
| 878 var od = new api.BucketCors.fromJson(o.toJson()); | 878 var od = new api.BucketCors.fromJson(o.toJson()); |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 }))); | 1543 }))); |
| 1544 }); | 1544 }); |
| 1545 | 1545 |
| 1546 unittest.test("method--insert", () { | 1546 unittest.test("method--insert", () { |
| 1547 | 1547 |
| 1548 var mock = new common_test.HttpServerMock(); | 1548 var mock = new common_test.HttpServerMock(); |
| 1549 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; | 1549 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; |
| 1550 var arg_request = buildBucket(); | 1550 var arg_request = buildBucket(); |
| 1551 var arg_project = "foo"; | 1551 var arg_project = "foo"; |
| 1552 var arg_predefinedAcl = "foo"; | 1552 var arg_predefinedAcl = "foo"; |
| 1553 var arg_predefinedDefaultObjectAcl = "foo"; |
| 1553 var arg_projection = "foo"; | 1554 var arg_projection = "foo"; |
| 1554 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1555 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1555 var obj = new api.Bucket.fromJson(json); | 1556 var obj = new api.Bucket.fromJson(json); |
| 1556 checkBucket(obj); | 1557 checkBucket(obj); |
| 1557 | 1558 |
| 1558 var path = (req.url).path; | 1559 var path = (req.url).path; |
| 1559 var pathOffset = 0; | 1560 var pathOffset = 0; |
| 1560 var index; | 1561 var index; |
| 1561 var subPart; | 1562 var subPart; |
| 1562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1563 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1577 throw new core.ArgumentError("Invalid boolean: $n"); | 1578 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1578 } | 1579 } |
| 1579 if (query.length > 0) { | 1580 if (query.length > 0) { |
| 1580 for (var part in query.split("&")) { | 1581 for (var part in query.split("&")) { |
| 1581 var keyvalue = part.split("="); | 1582 var keyvalue = part.split("="); |
| 1582 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1583 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1583 } | 1584 } |
| 1584 } | 1585 } |
| 1585 unittest.expect(queryMap["project"].first, unittest.equals(arg_project))
; | 1586 unittest.expect(queryMap["project"].first, unittest.equals(arg_project))
; |
| 1586 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); | 1587 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); |
| 1588 unittest.expect(queryMap["predefinedDefaultObjectAcl"].first, unittest.e
quals(arg_predefinedDefaultObjectAcl)); |
| 1587 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 1589 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
| 1588 | 1590 |
| 1589 | 1591 |
| 1590 var h = { | 1592 var h = { |
| 1591 "content-type" : "application/json; charset=utf-8", | 1593 "content-type" : "application/json; charset=utf-8", |
| 1592 }; | 1594 }; |
| 1593 var resp = convert.JSON.encode(buildBucket()); | 1595 var resp = convert.JSON.encode(buildBucket()); |
| 1594 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1596 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1595 }), true); | 1597 }), true); |
| 1596 res.insert(arg_request, arg_project, predefinedAcl: arg_predefinedAcl, pro
jection: arg_projection).then(unittest.expectAsync(((api.Bucket response) { | 1598 res.insert(arg_request, arg_project, predefinedAcl: arg_predefinedAcl, pre
definedDefaultObjectAcl: arg_predefinedDefaultObjectAcl, projection: arg_project
ion).then(unittest.expectAsync(((api.Bucket response) { |
| 1597 checkBucket(response); | 1599 checkBucket(response); |
| 1598 }))); | 1600 }))); |
| 1599 }); | 1601 }); |
| 1600 | 1602 |
| 1601 unittest.test("method--list", () { | 1603 unittest.test("method--list", () { |
| 1602 | 1604 |
| 1603 var mock = new common_test.HttpServerMock(); | 1605 var mock = new common_test.HttpServerMock(); |
| 1604 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; | 1606 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; |
| 1605 var arg_project = "foo"; | 1607 var arg_project = "foo"; |
| 1606 var arg_maxResults = 42; | 1608 var arg_maxResults = 42; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 | 1655 |
| 1654 unittest.test("method--patch", () { | 1656 unittest.test("method--patch", () { |
| 1655 | 1657 |
| 1656 var mock = new common_test.HttpServerMock(); | 1658 var mock = new common_test.HttpServerMock(); |
| 1657 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; | 1659 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; |
| 1658 var arg_request = buildBucket(); | 1660 var arg_request = buildBucket(); |
| 1659 var arg_bucket = "foo"; | 1661 var arg_bucket = "foo"; |
| 1660 var arg_ifMetagenerationMatch = "foo"; | 1662 var arg_ifMetagenerationMatch = "foo"; |
| 1661 var arg_ifMetagenerationNotMatch = "foo"; | 1663 var arg_ifMetagenerationNotMatch = "foo"; |
| 1662 var arg_predefinedAcl = "foo"; | 1664 var arg_predefinedAcl = "foo"; |
| 1665 var arg_predefinedDefaultObjectAcl = "foo"; |
| 1663 var arg_projection = "foo"; | 1666 var arg_projection = "foo"; |
| 1664 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1667 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1665 var obj = new api.Bucket.fromJson(json); | 1668 var obj = new api.Bucket.fromJson(json); |
| 1666 checkBucket(obj); | 1669 checkBucket(obj); |
| 1667 | 1670 |
| 1668 var path = (req.url).path; | 1671 var path = (req.url).path; |
| 1669 var pathOffset = 0; | 1672 var pathOffset = 0; |
| 1670 var index; | 1673 var index; |
| 1671 var subPart; | 1674 var subPart; |
| 1672 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1691 } | 1694 } |
| 1692 if (query.length > 0) { | 1695 if (query.length > 0) { |
| 1693 for (var part in query.split("&")) { | 1696 for (var part in query.split("&")) { |
| 1694 var keyvalue = part.split("="); | 1697 var keyvalue = part.split("="); |
| 1695 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1698 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1696 } | 1699 } |
| 1697 } | 1700 } |
| 1698 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals
(arg_ifMetagenerationMatch)); | 1701 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals
(arg_ifMetagenerationMatch)); |
| 1699 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ
als(arg_ifMetagenerationNotMatch)); | 1702 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ
als(arg_ifMetagenerationNotMatch)); |
| 1700 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); | 1703 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); |
| 1704 unittest.expect(queryMap["predefinedDefaultObjectAcl"].first, unittest.e
quals(arg_predefinedDefaultObjectAcl)); |
| 1701 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 1705 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
| 1702 | 1706 |
| 1703 | 1707 |
| 1704 var h = { | 1708 var h = { |
| 1705 "content-type" : "application/json; charset=utf-8", | 1709 "content-type" : "application/json; charset=utf-8", |
| 1706 }; | 1710 }; |
| 1707 var resp = convert.JSON.encode(buildBucket()); | 1711 var resp = convert.JSON.encode(buildBucket()); |
| 1708 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1712 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1709 }), true); | 1713 }), true); |
| 1710 res.patch(arg_request, arg_bucket, ifMetagenerationMatch: arg_ifMetagenera
tionMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, predefinedAcl
: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((api
.Bucket response) { | 1714 res.patch(arg_request, arg_bucket, ifMetagenerationMatch: arg_ifMetagenera
tionMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, predefinedAcl
: arg_predefinedAcl, predefinedDefaultObjectAcl: arg_predefinedDefaultObjectAcl,
projection: arg_projection).then(unittest.expectAsync(((api.Bucket response) { |
| 1711 checkBucket(response); | 1715 checkBucket(response); |
| 1712 }))); | 1716 }))); |
| 1713 }); | 1717 }); |
| 1714 | 1718 |
| 1715 unittest.test("method--update", () { | 1719 unittest.test("method--update", () { |
| 1716 | 1720 |
| 1717 var mock = new common_test.HttpServerMock(); | 1721 var mock = new common_test.HttpServerMock(); |
| 1718 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; | 1722 api.BucketsResourceApi res = new api.StorageApi(mock).buckets; |
| 1719 var arg_request = buildBucket(); | 1723 var arg_request = buildBucket(); |
| 1720 var arg_bucket = "foo"; | 1724 var arg_bucket = "foo"; |
| 1721 var arg_ifMetagenerationMatch = "foo"; | 1725 var arg_ifMetagenerationMatch = "foo"; |
| 1722 var arg_ifMetagenerationNotMatch = "foo"; | 1726 var arg_ifMetagenerationNotMatch = "foo"; |
| 1723 var arg_predefinedAcl = "foo"; | 1727 var arg_predefinedAcl = "foo"; |
| 1728 var arg_predefinedDefaultObjectAcl = "foo"; |
| 1724 var arg_projection = "foo"; | 1729 var arg_projection = "foo"; |
| 1725 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1730 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1726 var obj = new api.Bucket.fromJson(json); | 1731 var obj = new api.Bucket.fromJson(json); |
| 1727 checkBucket(obj); | 1732 checkBucket(obj); |
| 1728 | 1733 |
| 1729 var path = (req.url).path; | 1734 var path = (req.url).path; |
| 1730 var pathOffset = 0; | 1735 var pathOffset = 0; |
| 1731 var index; | 1736 var index; |
| 1732 var subPart; | 1737 var subPart; |
| 1733 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1752 } | 1757 } |
| 1753 if (query.length > 0) { | 1758 if (query.length > 0) { |
| 1754 for (var part in query.split("&")) { | 1759 for (var part in query.split("&")) { |
| 1755 var keyvalue = part.split("="); | 1760 var keyvalue = part.split("="); |
| 1756 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1761 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1757 } | 1762 } |
| 1758 } | 1763 } |
| 1759 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals
(arg_ifMetagenerationMatch)); | 1764 unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals
(arg_ifMetagenerationMatch)); |
| 1760 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ
als(arg_ifMetagenerationNotMatch)); | 1765 unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equ
als(arg_ifMetagenerationNotMatch)); |
| 1761 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); | 1766 unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_pre
definedAcl)); |
| 1767 unittest.expect(queryMap["predefinedDefaultObjectAcl"].first, unittest.e
quals(arg_predefinedDefaultObjectAcl)); |
| 1762 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); | 1768 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec
tion)); |
| 1763 | 1769 |
| 1764 | 1770 |
| 1765 var h = { | 1771 var h = { |
| 1766 "content-type" : "application/json; charset=utf-8", | 1772 "content-type" : "application/json; charset=utf-8", |
| 1767 }; | 1773 }; |
| 1768 var resp = convert.JSON.encode(buildBucket()); | 1774 var resp = convert.JSON.encode(buildBucket()); |
| 1769 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1775 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 1770 }), true); | 1776 }), true); |
| 1771 res.update(arg_request, arg_bucket, ifMetagenerationMatch: arg_ifMetagener
ationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, predefinedAc
l: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((ap
i.Bucket response) { | 1777 res.update(arg_request, arg_bucket, ifMetagenerationMatch: arg_ifMetagener
ationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, predefinedAc
l: arg_predefinedAcl, predefinedDefaultObjectAcl: arg_predefinedDefaultObjectAcl
, projection: arg_projection).then(unittest.expectAsync(((api.Bucket response) { |
| 1772 checkBucket(response); | 1778 checkBucket(response); |
| 1773 }))); | 1779 }))); |
| 1774 }); | 1780 }); |
| 1775 | 1781 |
| 1776 }); | 1782 }); |
| 1777 | 1783 |
| 1778 | 1784 |
| 1779 unittest.group("resource-ChannelsResourceApi", () { | 1785 unittest.group("resource-ChannelsResourceApi", () { |
| 1780 unittest.test("method--stop", () { | 1786 unittest.test("method--stop", () { |
| 1781 | 1787 |
| (...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3257 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) { | 3263 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) { |
| 3258 checkChannel(response); | 3264 checkChannel(response); |
| 3259 }))); | 3265 }))); |
| 3260 }); | 3266 }); |
| 3261 | 3267 |
| 3262 }); | 3268 }); |
| 3263 | 3269 |
| 3264 | 3270 |
| 3265 } | 3271 } |
| 3266 | 3272 |
| OLD | NEW |