Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: generated/googleapis/test/storage/v1_test.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 buildUnnamed783() { 54 buildUnnamed2083() {
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 checkUnnamed783(core.List<api.BucketAccessControl> o) { 61 checkUnnamed2083(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 buildUnnamed784() { 67 buildUnnamed2084() {
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 checkUnnamed784(core.List<core.String> o) { 74 checkUnnamed2084(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 buildUnnamed785() { 80 buildUnnamed2085() {
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 checkUnnamed785(core.List<core.String> o) { 87 checkUnnamed2085(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 buildUnnamed786() { 93 buildUnnamed2086() {
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 checkUnnamed786(core.List<core.String> o) { 100 checkUnnamed2086(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 = buildUnnamed784(); 112 o.method = buildUnnamed2084();
113 o.origin = buildUnnamed785(); 113 o.origin = buildUnnamed2085();
114 o.responseHeader = buildUnnamed786(); 114 o.responseHeader = buildUnnamed2086();
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 checkUnnamed784(o.method); 124 checkUnnamed2084(o.method);
125 checkUnnamed785(o.origin); 125 checkUnnamed2085(o.origin);
126 checkUnnamed786(o.responseHeader); 126 checkUnnamed2086(o.responseHeader);
127 } 127 }
128 buildCounterBucketCors--; 128 buildCounterBucketCors--;
129 } 129 }
130 130
131 buildUnnamed787() { 131 buildUnnamed2087() {
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 checkUnnamed787(core.List<api.BucketCors> o) { 138 checkUnnamed2087(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 buildUnnamed788() { 144 buildUnnamed2088() {
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 checkUnnamed788(core.List<api.ObjectAccessControl> o) { 151 checkUnnamed2088(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
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 buildUnnamed789() { 222 buildUnnamed2089() {
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 checkUnnamed789(core.List<api.BucketLifecycleRule> o) { 229 checkUnnamed2089(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 = buildUnnamed789(); 240 o.rule = buildUnnamed2089();
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 checkUnnamed789(o.rule); 249 checkUnnamed2089(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
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 = buildUnnamed783(); 341 o.acl = buildUnnamed2083();
342 o.cors = buildUnnamed787(); 342 o.cors = buildUnnamed2087();
343 o.defaultObjectAcl = buildUnnamed788(); 343 o.defaultObjectAcl = buildUnnamed2088();
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.versioning = buildBucketVersioning(); 357 o.versioning = buildBucketVersioning();
358 o.website = buildBucketWebsite(); 358 o.website = buildBucketWebsite();
359 } 359 }
360 buildCounterBucket--; 360 buildCounterBucket--;
361 return o; 361 return o;
362 } 362 }
363 363
364 checkBucket(api.Bucket o) { 364 checkBucket(api.Bucket o) {
365 buildCounterBucket++; 365 buildCounterBucket++;
366 if (buildCounterBucket < 3) { 366 if (buildCounterBucket < 3) {
367 checkUnnamed783(o.acl); 367 checkUnnamed2083(o.acl);
368 checkUnnamed787(o.cors); 368 checkUnnamed2087(o.cors);
369 checkUnnamed788(o.defaultObjectAcl); 369 checkUnnamed2088(o.defaultObjectAcl);
370 unittest.expect(o.etag, unittest.equals('foo')); 370 unittest.expect(o.etag, unittest.equals('foo'));
371 unittest.expect(o.id, unittest.equals('foo')); 371 unittest.expect(o.id, unittest.equals('foo'));
372 unittest.expect(o.kind, unittest.equals('foo')); 372 unittest.expect(o.kind, unittest.equals('foo'));
373 checkBucketLifecycle(o.lifecycle); 373 checkBucketLifecycle(o.lifecycle);
374 unittest.expect(o.location, unittest.equals('foo')); 374 unittest.expect(o.location, unittest.equals('foo'));
375 checkBucketLogging(o.logging); 375 checkBucketLogging(o.logging);
376 unittest.expect(o.metageneration, unittest.equals('foo')); 376 unittest.expect(o.metageneration, unittest.equals('foo'));
377 unittest.expect(o.name, unittest.equals('foo')); 377 unittest.expect(o.name, unittest.equals('foo'));
378 checkBucketOwner(o.owner); 378 checkBucketOwner(o.owner);
379 unittest.expect(o.projectNumber, unittest.equals('foo')); 379 unittest.expect(o.projectNumber, unittest.equals('foo'));
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 unittest.expect(o.etag, unittest.equals('foo')); 439 unittest.expect(o.etag, unittest.equals('foo'));
440 unittest.expect(o.id, unittest.equals('foo')); 440 unittest.expect(o.id, unittest.equals('foo'));
441 unittest.expect(o.kind, unittest.equals('foo')); 441 unittest.expect(o.kind, unittest.equals('foo'));
442 checkBucketAccessControlProjectTeam(o.projectTeam); 442 checkBucketAccessControlProjectTeam(o.projectTeam);
443 unittest.expect(o.role, unittest.equals('foo')); 443 unittest.expect(o.role, unittest.equals('foo'));
444 unittest.expect(o.selfLink, unittest.equals('foo')); 444 unittest.expect(o.selfLink, unittest.equals('foo'));
445 } 445 }
446 buildCounterBucketAccessControl--; 446 buildCounterBucketAccessControl--;
447 } 447 }
448 448
449 buildUnnamed790() { 449 buildUnnamed2090() {
450 var o = new core.List<api.BucketAccessControl>(); 450 var o = new core.List<api.BucketAccessControl>();
451 o.add(buildBucketAccessControl()); 451 o.add(buildBucketAccessControl());
452 o.add(buildBucketAccessControl()); 452 o.add(buildBucketAccessControl());
453 return o; 453 return o;
454 } 454 }
455 455
456 checkUnnamed790(core.List<api.BucketAccessControl> o) { 456 checkUnnamed2090(core.List<api.BucketAccessControl> o) {
457 unittest.expect(o, unittest.hasLength(2)); 457 unittest.expect(o, unittest.hasLength(2));
458 checkBucketAccessControl(o[0]); 458 checkBucketAccessControl(o[0]);
459 checkBucketAccessControl(o[1]); 459 checkBucketAccessControl(o[1]);
460 } 460 }
461 461
462 core.int buildCounterBucketAccessControls = 0; 462 core.int buildCounterBucketAccessControls = 0;
463 buildBucketAccessControls() { 463 buildBucketAccessControls() {
464 var o = new api.BucketAccessControls(); 464 var o = new api.BucketAccessControls();
465 buildCounterBucketAccessControls++; 465 buildCounterBucketAccessControls++;
466 if (buildCounterBucketAccessControls < 3) { 466 if (buildCounterBucketAccessControls < 3) {
467 o.items = buildUnnamed790(); 467 o.items = buildUnnamed2090();
468 o.kind = "foo"; 468 o.kind = "foo";
469 } 469 }
470 buildCounterBucketAccessControls--; 470 buildCounterBucketAccessControls--;
471 return o; 471 return o;
472 } 472 }
473 473
474 checkBucketAccessControls(api.BucketAccessControls o) { 474 checkBucketAccessControls(api.BucketAccessControls o) {
475 buildCounterBucketAccessControls++; 475 buildCounterBucketAccessControls++;
476 if (buildCounterBucketAccessControls < 3) { 476 if (buildCounterBucketAccessControls < 3) {
477 checkUnnamed790(o.items); 477 checkUnnamed2090(o.items);
478 unittest.expect(o.kind, unittest.equals('foo')); 478 unittest.expect(o.kind, unittest.equals('foo'));
479 } 479 }
480 buildCounterBucketAccessControls--; 480 buildCounterBucketAccessControls--;
481 } 481 }
482 482
483 buildUnnamed791() { 483 buildUnnamed2091() {
484 var o = new core.List<api.Bucket>(); 484 var o = new core.List<api.Bucket>();
485 o.add(buildBucket()); 485 o.add(buildBucket());
486 o.add(buildBucket()); 486 o.add(buildBucket());
487 return o; 487 return o;
488 } 488 }
489 489
490 checkUnnamed791(core.List<api.Bucket> o) { 490 checkUnnamed2091(core.List<api.Bucket> o) {
491 unittest.expect(o, unittest.hasLength(2)); 491 unittest.expect(o, unittest.hasLength(2));
492 checkBucket(o[0]); 492 checkBucket(o[0]);
493 checkBucket(o[1]); 493 checkBucket(o[1]);
494 } 494 }
495 495
496 core.int buildCounterBuckets = 0; 496 core.int buildCounterBuckets = 0;
497 buildBuckets() { 497 buildBuckets() {
498 var o = new api.Buckets(); 498 var o = new api.Buckets();
499 buildCounterBuckets++; 499 buildCounterBuckets++;
500 if (buildCounterBuckets < 3) { 500 if (buildCounterBuckets < 3) {
501 o.items = buildUnnamed791(); 501 o.items = buildUnnamed2091();
502 o.kind = "foo"; 502 o.kind = "foo";
503 o.nextPageToken = "foo"; 503 o.nextPageToken = "foo";
504 } 504 }
505 buildCounterBuckets--; 505 buildCounterBuckets--;
506 return o; 506 return o;
507 } 507 }
508 508
509 checkBuckets(api.Buckets o) { 509 checkBuckets(api.Buckets o) {
510 buildCounterBuckets++; 510 buildCounterBuckets++;
511 if (buildCounterBuckets < 3) { 511 if (buildCounterBuckets < 3) {
512 checkUnnamed791(o.items); 512 checkUnnamed2091(o.items);
513 unittest.expect(o.kind, unittest.equals('foo')); 513 unittest.expect(o.kind, unittest.equals('foo'));
514 unittest.expect(o.nextPageToken, unittest.equals('foo')); 514 unittest.expect(o.nextPageToken, unittest.equals('foo'));
515 } 515 }
516 buildCounterBuckets--; 516 buildCounterBuckets--;
517 } 517 }
518 518
519 buildUnnamed792() { 519 buildUnnamed2092() {
520 var o = new core.Map<core.String, core.String>(); 520 var o = new core.Map<core.String, core.String>();
521 o["x"] = "foo"; 521 o["x"] = "foo";
522 o["y"] = "foo"; 522 o["y"] = "foo";
523 return o; 523 return o;
524 } 524 }
525 525
526 checkUnnamed792(core.Map<core.String, core.String> o) { 526 checkUnnamed2092(core.Map<core.String, core.String> o) {
527 unittest.expect(o, unittest.hasLength(2)); 527 unittest.expect(o, unittest.hasLength(2));
528 unittest.expect(o["x"], unittest.equals('foo')); 528 unittest.expect(o["x"], unittest.equals('foo'));
529 unittest.expect(o["y"], unittest.equals('foo')); 529 unittest.expect(o["y"], unittest.equals('foo'));
530 } 530 }
531 531
532 core.int buildCounterChannel = 0; 532 core.int buildCounterChannel = 0;
533 buildChannel() { 533 buildChannel() {
534 var o = new api.Channel(); 534 var o = new api.Channel();
535 buildCounterChannel++; 535 buildCounterChannel++;
536 if (buildCounterChannel < 3) { 536 if (buildCounterChannel < 3) {
537 o.address = "foo"; 537 o.address = "foo";
538 o.expiration = "foo"; 538 o.expiration = "foo";
539 o.id = "foo"; 539 o.id = "foo";
540 o.kind = "foo"; 540 o.kind = "foo";
541 o.params = buildUnnamed792(); 541 o.params = buildUnnamed2092();
542 o.payload = true; 542 o.payload = true;
543 o.resourceId = "foo"; 543 o.resourceId = "foo";
544 o.resourceUri = "foo"; 544 o.resourceUri = "foo";
545 o.token = "foo"; 545 o.token = "foo";
546 o.type = "foo"; 546 o.type = "foo";
547 } 547 }
548 buildCounterChannel--; 548 buildCounterChannel--;
549 return o; 549 return o;
550 } 550 }
551 551
552 checkChannel(api.Channel o) { 552 checkChannel(api.Channel o) {
553 buildCounterChannel++; 553 buildCounterChannel++;
554 if (buildCounterChannel < 3) { 554 if (buildCounterChannel < 3) {
555 unittest.expect(o.address, unittest.equals('foo')); 555 unittest.expect(o.address, unittest.equals('foo'));
556 unittest.expect(o.expiration, unittest.equals('foo')); 556 unittest.expect(o.expiration, unittest.equals('foo'));
557 unittest.expect(o.id, unittest.equals('foo')); 557 unittest.expect(o.id, unittest.equals('foo'));
558 unittest.expect(o.kind, unittest.equals('foo')); 558 unittest.expect(o.kind, unittest.equals('foo'));
559 checkUnnamed792(o.params); 559 checkUnnamed2092(o.params);
560 unittest.expect(o.payload, unittest.isTrue); 560 unittest.expect(o.payload, unittest.isTrue);
561 unittest.expect(o.resourceId, unittest.equals('foo')); 561 unittest.expect(o.resourceId, unittest.equals('foo'));
562 unittest.expect(o.resourceUri, unittest.equals('foo')); 562 unittest.expect(o.resourceUri, unittest.equals('foo'));
563 unittest.expect(o.token, unittest.equals('foo')); 563 unittest.expect(o.token, unittest.equals('foo'));
564 unittest.expect(o.type, unittest.equals('foo')); 564 unittest.expect(o.type, unittest.equals('foo'));
565 } 565 }
566 buildCounterChannel--; 566 buildCounterChannel--;
567 } 567 }
568 568
569 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0; 569 core.int buildCounterComposeRequestSourceObjectsObjectPreconditions = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) { 601 checkComposeRequestSourceObjects(api.ComposeRequestSourceObjects o) {
602 buildCounterComposeRequestSourceObjects++; 602 buildCounterComposeRequestSourceObjects++;
603 if (buildCounterComposeRequestSourceObjects < 3) { 603 if (buildCounterComposeRequestSourceObjects < 3) {
604 unittest.expect(o.generation, unittest.equals('foo')); 604 unittest.expect(o.generation, unittest.equals('foo'));
605 unittest.expect(o.name, unittest.equals('foo')); 605 unittest.expect(o.name, unittest.equals('foo'));
606 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions); 606 checkComposeRequestSourceObjectsObjectPreconditions(o.objectPreconditions);
607 } 607 }
608 buildCounterComposeRequestSourceObjects--; 608 buildCounterComposeRequestSourceObjects--;
609 } 609 }
610 610
611 buildUnnamed793() { 611 buildUnnamed2093() {
612 var o = new core.List<api.ComposeRequestSourceObjects>(); 612 var o = new core.List<api.ComposeRequestSourceObjects>();
613 o.add(buildComposeRequestSourceObjects()); 613 o.add(buildComposeRequestSourceObjects());
614 o.add(buildComposeRequestSourceObjects()); 614 o.add(buildComposeRequestSourceObjects());
615 return o; 615 return o;
616 } 616 }
617 617
618 checkUnnamed793(core.List<api.ComposeRequestSourceObjects> o) { 618 checkUnnamed2093(core.List<api.ComposeRequestSourceObjects> o) {
619 unittest.expect(o, unittest.hasLength(2)); 619 unittest.expect(o, unittest.hasLength(2));
620 checkComposeRequestSourceObjects(o[0]); 620 checkComposeRequestSourceObjects(o[0]);
621 checkComposeRequestSourceObjects(o[1]); 621 checkComposeRequestSourceObjects(o[1]);
622 } 622 }
623 623
624 core.int buildCounterComposeRequest = 0; 624 core.int buildCounterComposeRequest = 0;
625 buildComposeRequest() { 625 buildComposeRequest() {
626 var o = new api.ComposeRequest(); 626 var o = new api.ComposeRequest();
627 buildCounterComposeRequest++; 627 buildCounterComposeRequest++;
628 if (buildCounterComposeRequest < 3) { 628 if (buildCounterComposeRequest < 3) {
629 o.destination = buildObject(); 629 o.destination = buildObject();
630 o.kind = "foo"; 630 o.kind = "foo";
631 o.sourceObjects = buildUnnamed793(); 631 o.sourceObjects = buildUnnamed2093();
632 } 632 }
633 buildCounterComposeRequest--; 633 buildCounterComposeRequest--;
634 return o; 634 return o;
635 } 635 }
636 636
637 checkComposeRequest(api.ComposeRequest o) { 637 checkComposeRequest(api.ComposeRequest o) {
638 buildCounterComposeRequest++; 638 buildCounterComposeRequest++;
639 if (buildCounterComposeRequest < 3) { 639 if (buildCounterComposeRequest < 3) {
640 checkObject(o.destination); 640 checkObject(o.destination);
641 unittest.expect(o.kind, unittest.equals('foo')); 641 unittest.expect(o.kind, unittest.equals('foo'));
642 checkUnnamed793(o.sourceObjects); 642 checkUnnamed2093(o.sourceObjects);
643 } 643 }
644 buildCounterComposeRequest--; 644 buildCounterComposeRequest--;
645 } 645 }
646 646
647 buildUnnamed794() { 647 buildUnnamed2094() {
648 var o = new core.List<api.ObjectAccessControl>(); 648 var o = new core.List<api.ObjectAccessControl>();
649 o.add(buildObjectAccessControl()); 649 o.add(buildObjectAccessControl());
650 o.add(buildObjectAccessControl()); 650 o.add(buildObjectAccessControl());
651 return o; 651 return o;
652 } 652 }
653 653
654 checkUnnamed794(core.List<api.ObjectAccessControl> o) { 654 checkUnnamed2094(core.List<api.ObjectAccessControl> o) {
655 unittest.expect(o, unittest.hasLength(2)); 655 unittest.expect(o, unittest.hasLength(2));
656 checkObjectAccessControl(o[0]); 656 checkObjectAccessControl(o[0]);
657 checkObjectAccessControl(o[1]); 657 checkObjectAccessControl(o[1]);
658 } 658 }
659 659
660 buildUnnamed795() { 660 buildUnnamed2095() {
661 var o = new core.Map<core.String, core.String>(); 661 var o = new core.Map<core.String, core.String>();
662 o["x"] = "foo"; 662 o["x"] = "foo";
663 o["y"] = "foo"; 663 o["y"] = "foo";
664 return o; 664 return o;
665 } 665 }
666 666
667 checkUnnamed795(core.Map<core.String, core.String> o) { 667 checkUnnamed2095(core.Map<core.String, core.String> o) {
668 unittest.expect(o, unittest.hasLength(2)); 668 unittest.expect(o, unittest.hasLength(2));
669 unittest.expect(o["x"], unittest.equals('foo')); 669 unittest.expect(o["x"], unittest.equals('foo'));
670 unittest.expect(o["y"], unittest.equals('foo')); 670 unittest.expect(o["y"], unittest.equals('foo'));
671 } 671 }
672 672
673 core.int buildCounterObjectOwner = 0; 673 core.int buildCounterObjectOwner = 0;
674 buildObjectOwner() { 674 buildObjectOwner() {
675 var o = new api.ObjectOwner(); 675 var o = new api.ObjectOwner();
676 buildCounterObjectOwner++; 676 buildCounterObjectOwner++;
677 if (buildCounterObjectOwner < 3) { 677 if (buildCounterObjectOwner < 3) {
(...skipping 11 matching lines...) Expand all
689 unittest.expect(o.entityId, unittest.equals('foo')); 689 unittest.expect(o.entityId, unittest.equals('foo'));
690 } 690 }
691 buildCounterObjectOwner--; 691 buildCounterObjectOwner--;
692 } 692 }
693 693
694 core.int buildCounterObject = 0; 694 core.int buildCounterObject = 0;
695 buildObject() { 695 buildObject() {
696 var o = new api.Object(); 696 var o = new api.Object();
697 buildCounterObject++; 697 buildCounterObject++;
698 if (buildCounterObject < 3) { 698 if (buildCounterObject < 3) {
699 o.acl = buildUnnamed794(); 699 o.acl = buildUnnamed2094();
700 o.bucket = "foo"; 700 o.bucket = "foo";
701 o.cacheControl = "foo"; 701 o.cacheControl = "foo";
702 o.componentCount = 42; 702 o.componentCount = 42;
703 o.contentDisposition = "foo"; 703 o.contentDisposition = "foo";
704 o.contentEncoding = "foo"; 704 o.contentEncoding = "foo";
705 o.contentLanguage = "foo"; 705 o.contentLanguage = "foo";
706 o.contentType = "foo"; 706 o.contentType = "foo";
707 o.crc32c = "foo"; 707 o.crc32c = "foo";
708 o.etag = "foo"; 708 o.etag = "foo";
709 o.generation = "foo"; 709 o.generation = "foo";
710 o.id = "foo"; 710 o.id = "foo";
711 o.kind = "foo"; 711 o.kind = "foo";
712 o.md5Hash = "foo"; 712 o.md5Hash = "foo";
713 o.mediaLink = "foo"; 713 o.mediaLink = "foo";
714 o.metadata = buildUnnamed795(); 714 o.metadata = buildUnnamed2095();
715 o.metageneration = "foo"; 715 o.metageneration = "foo";
716 o.name = "foo"; 716 o.name = "foo";
717 o.owner = buildObjectOwner(); 717 o.owner = buildObjectOwner();
718 o.selfLink = "foo"; 718 o.selfLink = "foo";
719 o.size = "foo"; 719 o.size = "foo";
720 o.storageClass = "foo"; 720 o.storageClass = "foo";
721 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); 721 o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02");
722 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 722 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
723 } 723 }
724 buildCounterObject--; 724 buildCounterObject--;
725 return o; 725 return o;
726 } 726 }
727 727
728 checkObject(api.Object o) { 728 checkObject(api.Object o) {
729 buildCounterObject++; 729 buildCounterObject++;
730 if (buildCounterObject < 3) { 730 if (buildCounterObject < 3) {
731 checkUnnamed794(o.acl); 731 checkUnnamed2094(o.acl);
732 unittest.expect(o.bucket, unittest.equals('foo')); 732 unittest.expect(o.bucket, unittest.equals('foo'));
733 unittest.expect(o.cacheControl, unittest.equals('foo')); 733 unittest.expect(o.cacheControl, unittest.equals('foo'));
734 unittest.expect(o.componentCount, unittest.equals(42)); 734 unittest.expect(o.componentCount, unittest.equals(42));
735 unittest.expect(o.contentDisposition, unittest.equals('foo')); 735 unittest.expect(o.contentDisposition, unittest.equals('foo'));
736 unittest.expect(o.contentEncoding, unittest.equals('foo')); 736 unittest.expect(o.contentEncoding, unittest.equals('foo'));
737 unittest.expect(o.contentLanguage, unittest.equals('foo')); 737 unittest.expect(o.contentLanguage, unittest.equals('foo'));
738 unittest.expect(o.contentType, unittest.equals('foo')); 738 unittest.expect(o.contentType, unittest.equals('foo'));
739 unittest.expect(o.crc32c, unittest.equals('foo')); 739 unittest.expect(o.crc32c, unittest.equals('foo'));
740 unittest.expect(o.etag, unittest.equals('foo')); 740 unittest.expect(o.etag, unittest.equals('foo'));
741 unittest.expect(o.generation, unittest.equals('foo')); 741 unittest.expect(o.generation, unittest.equals('foo'));
742 unittest.expect(o.id, unittest.equals('foo')); 742 unittest.expect(o.id, unittest.equals('foo'));
743 unittest.expect(o.kind, unittest.equals('foo')); 743 unittest.expect(o.kind, unittest.equals('foo'));
744 unittest.expect(o.md5Hash, unittest.equals('foo')); 744 unittest.expect(o.md5Hash, unittest.equals('foo'));
745 unittest.expect(o.mediaLink, unittest.equals('foo')); 745 unittest.expect(o.mediaLink, unittest.equals('foo'));
746 checkUnnamed795(o.metadata); 746 checkUnnamed2095(o.metadata);
747 unittest.expect(o.metageneration, unittest.equals('foo')); 747 unittest.expect(o.metageneration, unittest.equals('foo'));
748 unittest.expect(o.name, unittest.equals('foo')); 748 unittest.expect(o.name, unittest.equals('foo'));
749 checkObjectOwner(o.owner); 749 checkObjectOwner(o.owner);
750 unittest.expect(o.selfLink, unittest.equals('foo')); 750 unittest.expect(o.selfLink, unittest.equals('foo'));
751 unittest.expect(o.size, unittest.equals('foo')); 751 unittest.expect(o.size, unittest.equals('foo'));
752 unittest.expect(o.storageClass, unittest.equals('foo')); 752 unittest.expect(o.storageClass, unittest.equals('foo'));
753 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 753 unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
754 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 754 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
755 } 755 }
756 buildCounterObject--; 756 buildCounterObject--;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 unittest.expect(o.id, unittest.equals('foo')); 813 unittest.expect(o.id, unittest.equals('foo'));
814 unittest.expect(o.kind, unittest.equals('foo')); 814 unittest.expect(o.kind, unittest.equals('foo'));
815 unittest.expect(o.object, unittest.equals('foo')); 815 unittest.expect(o.object, unittest.equals('foo'));
816 checkObjectAccessControlProjectTeam(o.projectTeam); 816 checkObjectAccessControlProjectTeam(o.projectTeam);
817 unittest.expect(o.role, unittest.equals('foo')); 817 unittest.expect(o.role, unittest.equals('foo'));
818 unittest.expect(o.selfLink, unittest.equals('foo')); 818 unittest.expect(o.selfLink, unittest.equals('foo'));
819 } 819 }
820 buildCounterObjectAccessControl--; 820 buildCounterObjectAccessControl--;
821 } 821 }
822 822
823 buildUnnamed796() { 823 buildUnnamed2096() {
824 var o = new core.List<core.Object>(); 824 var o = new core.List<core.Object>();
825 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 825 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
826 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 826 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
827 return o; 827 return o;
828 } 828 }
829 829
830 checkUnnamed796(core.List<core.Object> o) { 830 checkUnnamed2096(core.List<core.Object> o) {
831 unittest.expect(o, unittest.hasLength(2)); 831 unittest.expect(o, unittest.hasLength(2));
832 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')); 832 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'));
833 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')); 833 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'));
834 } 834 }
835 835
836 core.int buildCounterObjectAccessControls = 0; 836 core.int buildCounterObjectAccessControls = 0;
837 buildObjectAccessControls() { 837 buildObjectAccessControls() {
838 var o = new api.ObjectAccessControls(); 838 var o = new api.ObjectAccessControls();
839 buildCounterObjectAccessControls++; 839 buildCounterObjectAccessControls++;
840 if (buildCounterObjectAccessControls < 3) { 840 if (buildCounterObjectAccessControls < 3) {
841 o.items = buildUnnamed796(); 841 o.items = buildUnnamed2096();
842 o.kind = "foo"; 842 o.kind = "foo";
843 } 843 }
844 buildCounterObjectAccessControls--; 844 buildCounterObjectAccessControls--;
845 return o; 845 return o;
846 } 846 }
847 847
848 checkObjectAccessControls(api.ObjectAccessControls o) { 848 checkObjectAccessControls(api.ObjectAccessControls o) {
849 buildCounterObjectAccessControls++; 849 buildCounterObjectAccessControls++;
850 if (buildCounterObjectAccessControls < 3) { 850 if (buildCounterObjectAccessControls < 3) {
851 checkUnnamed796(o.items); 851 checkUnnamed2096(o.items);
852 unittest.expect(o.kind, unittest.equals('foo')); 852 unittest.expect(o.kind, unittest.equals('foo'));
853 } 853 }
854 buildCounterObjectAccessControls--; 854 buildCounterObjectAccessControls--;
855 } 855 }
856 856
857 buildUnnamed797() { 857 buildUnnamed2097() {
858 var o = new core.List<api.Object>(); 858 var o = new core.List<api.Object>();
859 o.add(buildObject()); 859 o.add(buildObject());
860 o.add(buildObject()); 860 o.add(buildObject());
861 return o; 861 return o;
862 } 862 }
863 863
864 checkUnnamed797(core.List<api.Object> o) { 864 checkUnnamed2097(core.List<api.Object> o) {
865 unittest.expect(o, unittest.hasLength(2)); 865 unittest.expect(o, unittest.hasLength(2));
866 checkObject(o[0]); 866 checkObject(o[0]);
867 checkObject(o[1]); 867 checkObject(o[1]);
868 } 868 }
869 869
870 buildUnnamed798() { 870 buildUnnamed2098() {
871 var o = new core.List<core.String>(); 871 var o = new core.List<core.String>();
872 o.add("foo"); 872 o.add("foo");
873 o.add("foo"); 873 o.add("foo");
874 return o; 874 return o;
875 } 875 }
876 876
877 checkUnnamed798(core.List<core.String> o) { 877 checkUnnamed2098(core.List<core.String> o) {
878 unittest.expect(o, unittest.hasLength(2)); 878 unittest.expect(o, unittest.hasLength(2));
879 unittest.expect(o[0], unittest.equals('foo')); 879 unittest.expect(o[0], unittest.equals('foo'));
880 unittest.expect(o[1], unittest.equals('foo')); 880 unittest.expect(o[1], unittest.equals('foo'));
881 } 881 }
882 882
883 core.int buildCounterObjects = 0; 883 core.int buildCounterObjects = 0;
884 buildObjects() { 884 buildObjects() {
885 var o = new api.Objects(); 885 var o = new api.Objects();
886 buildCounterObjects++; 886 buildCounterObjects++;
887 if (buildCounterObjects < 3) { 887 if (buildCounterObjects < 3) {
888 o.items = buildUnnamed797(); 888 o.items = buildUnnamed2097();
889 o.kind = "foo"; 889 o.kind = "foo";
890 o.nextPageToken = "foo"; 890 o.nextPageToken = "foo";
891 o.prefixes = buildUnnamed798(); 891 o.prefixes = buildUnnamed2098();
892 } 892 }
893 buildCounterObjects--; 893 buildCounterObjects--;
894 return o; 894 return o;
895 } 895 }
896 896
897 checkObjects(api.Objects o) { 897 checkObjects(api.Objects o) {
898 buildCounterObjects++; 898 buildCounterObjects++;
899 if (buildCounterObjects < 3) { 899 if (buildCounterObjects < 3) {
900 checkUnnamed797(o.items); 900 checkUnnamed2097(o.items);
901 unittest.expect(o.kind, unittest.equals('foo')); 901 unittest.expect(o.kind, unittest.equals('foo'));
902 unittest.expect(o.nextPageToken, unittest.equals('foo')); 902 unittest.expect(o.nextPageToken, unittest.equals('foo'));
903 checkUnnamed798(o.prefixes); 903 checkUnnamed2098(o.prefixes);
904 } 904 }
905 buildCounterObjects--; 905 buildCounterObjects--;
906 } 906 }
907 907
908 core.int buildCounterRewriteResponse = 0; 908 core.int buildCounterRewriteResponse = 0;
909 buildRewriteResponse() { 909 buildRewriteResponse() {
910 var o = new api.RewriteResponse(); 910 var o = new api.RewriteResponse();
911 buildCounterRewriteResponse++; 911 buildCounterRewriteResponse++;
912 if (buildCounterRewriteResponse < 3) { 912 if (buildCounterRewriteResponse < 3) {
913 o.done = true; 913 o.done = true;
(...skipping 2527 matching lines...) Expand 10 before | Expand all | Expand 10 after
3441 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) { 3441 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) {
3442 checkChannel(response); 3442 checkChannel(response);
3443 }))); 3443 })));
3444 }); 3444 });
3445 3445
3446 }); 3446 });
3447 3447
3448 3448
3449 } 3449 }
3450 3450
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698