OLD | NEW |
1 library googleapis.plusDomains.v1.test; | 1 library googleapis.plusDomains.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; | |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
13 import '../common/common_internal_test.dart' as common_test; | |
14 | 11 |
15 import 'package:googleapis/plusdomains/v1.dart' as api; | 12 import 'package:googleapis/plusdomains/v1.dart' as api; |
16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
18 | 22 |
19 buildUnnamed951() { | 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 53 |
| 54 buildUnnamed1272() { |
20 var o = new core.List<api.PlusDomainsAclentryResource>(); | 55 var o = new core.List<api.PlusDomainsAclentryResource>(); |
21 o.add(buildPlusDomainsAclentryResource()); | 56 o.add(buildPlusDomainsAclentryResource()); |
22 o.add(buildPlusDomainsAclentryResource()); | 57 o.add(buildPlusDomainsAclentryResource()); |
23 return o; | 58 return o; |
24 } | 59 } |
25 | 60 |
26 checkUnnamed951(core.List<api.PlusDomainsAclentryResource> o) { | 61 checkUnnamed1272(core.List<api.PlusDomainsAclentryResource> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
28 checkPlusDomainsAclentryResource(o[0]); | 63 checkPlusDomainsAclentryResource(o[0]); |
29 checkPlusDomainsAclentryResource(o[1]); | 64 checkPlusDomainsAclentryResource(o[1]); |
30 } | 65 } |
31 | 66 |
32 core.int buildCounterAcl = 0; | 67 core.int buildCounterAcl = 0; |
33 buildAcl() { | 68 buildAcl() { |
34 var o = new api.Acl(); | 69 var o = new api.Acl(); |
35 buildCounterAcl++; | 70 buildCounterAcl++; |
36 if (buildCounterAcl < 3) { | 71 if (buildCounterAcl < 3) { |
37 o.description = "foo"; | 72 o.description = "foo"; |
38 o.domainRestricted = true; | 73 o.domainRestricted = true; |
39 o.items = buildUnnamed951(); | 74 o.items = buildUnnamed1272(); |
40 o.kind = "foo"; | 75 o.kind = "foo"; |
41 } | 76 } |
42 buildCounterAcl--; | 77 buildCounterAcl--; |
43 return o; | 78 return o; |
44 } | 79 } |
45 | 80 |
46 checkAcl(api.Acl o) { | 81 checkAcl(api.Acl o) { |
47 buildCounterAcl++; | 82 buildCounterAcl++; |
48 if (buildCounterAcl < 3) { | 83 if (buildCounterAcl < 3) { |
49 unittest.expect(o.description, unittest.equals('foo')); | 84 unittest.expect(o.description, unittest.equals('foo')); |
50 unittest.expect(o.domainRestricted, unittest.isTrue); | 85 unittest.expect(o.domainRestricted, unittest.isTrue); |
51 checkUnnamed951(o.items); | 86 checkUnnamed1272(o.items); |
52 unittest.expect(o.kind, unittest.equals('foo')); | 87 unittest.expect(o.kind, unittest.equals('foo')); |
53 } | 88 } |
54 buildCounterAcl--; | 89 buildCounterAcl--; |
55 } | 90 } |
56 | 91 |
57 core.int buildCounterActivityActorImage = 0; | 92 core.int buildCounterActivityActorImage = 0; |
58 buildActivityActorImage() { | 93 buildActivityActorImage() { |
59 var o = new api.ActivityActorImage(); | 94 var o = new api.ActivityActorImage(); |
60 buildCounterActivityActorImage++; | 95 buildCounterActivityActorImage++; |
61 if (buildCounterActivityActorImage < 3) { | 96 if (buildCounterActivityActorImage < 3) { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 283 } |
249 | 284 |
250 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { | 285 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { |
251 buildCounterActivityObjectAttachmentsPreviewThumbnails++; | 286 buildCounterActivityObjectAttachmentsPreviewThumbnails++; |
252 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { | 287 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { |
253 unittest.expect(o.url, unittest.equals('foo')); | 288 unittest.expect(o.url, unittest.equals('foo')); |
254 } | 289 } |
255 buildCounterActivityObjectAttachmentsPreviewThumbnails--; | 290 buildCounterActivityObjectAttachmentsPreviewThumbnails--; |
256 } | 291 } |
257 | 292 |
258 buildUnnamed952() { | 293 buildUnnamed1273() { |
259 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); | 294 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); |
260 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 295 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
261 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 296 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
262 return o; | 297 return o; |
263 } | 298 } |
264 | 299 |
265 checkUnnamed952(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { | 300 checkUnnamed1273(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { |
266 unittest.expect(o, unittest.hasLength(2)); | 301 unittest.expect(o, unittest.hasLength(2)); |
267 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); | 302 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); |
268 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); | 303 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); |
269 } | 304 } |
270 | 305 |
271 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; | 306 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; |
272 buildActivityObjectAttachmentsThumbnailsImage() { | 307 buildActivityObjectAttachmentsThumbnailsImage() { |
273 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); | 308 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); |
274 buildCounterActivityObjectAttachmentsThumbnailsImage++; | 309 buildCounterActivityObjectAttachmentsThumbnailsImage++; |
275 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { | 310 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { | 344 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { |
310 buildCounterActivityObjectAttachmentsThumbnails++; | 345 buildCounterActivityObjectAttachmentsThumbnails++; |
311 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { | 346 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { |
312 unittest.expect(o.description, unittest.equals('foo')); | 347 unittest.expect(o.description, unittest.equals('foo')); |
313 checkActivityObjectAttachmentsThumbnailsImage(o.image); | 348 checkActivityObjectAttachmentsThumbnailsImage(o.image); |
314 unittest.expect(o.url, unittest.equals('foo')); | 349 unittest.expect(o.url, unittest.equals('foo')); |
315 } | 350 } |
316 buildCounterActivityObjectAttachmentsThumbnails--; | 351 buildCounterActivityObjectAttachmentsThumbnails--; |
317 } | 352 } |
318 | 353 |
319 buildUnnamed953() { | 354 buildUnnamed1274() { |
320 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); | 355 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); |
321 o.add(buildActivityObjectAttachmentsThumbnails()); | 356 o.add(buildActivityObjectAttachmentsThumbnails()); |
322 o.add(buildActivityObjectAttachmentsThumbnails()); | 357 o.add(buildActivityObjectAttachmentsThumbnails()); |
323 return o; | 358 return o; |
324 } | 359 } |
325 | 360 |
326 checkUnnamed953(core.List<api.ActivityObjectAttachmentsThumbnails> o) { | 361 checkUnnamed1274(core.List<api.ActivityObjectAttachmentsThumbnails> o) { |
327 unittest.expect(o, unittest.hasLength(2)); | 362 unittest.expect(o, unittest.hasLength(2)); |
328 checkActivityObjectAttachmentsThumbnails(o[0]); | 363 checkActivityObjectAttachmentsThumbnails(o[0]); |
329 checkActivityObjectAttachmentsThumbnails(o[1]); | 364 checkActivityObjectAttachmentsThumbnails(o[1]); |
330 } | 365 } |
331 | 366 |
332 core.int buildCounterActivityObjectAttachments = 0; | 367 core.int buildCounterActivityObjectAttachments = 0; |
333 buildActivityObjectAttachments() { | 368 buildActivityObjectAttachments() { |
334 var o = new api.ActivityObjectAttachments(); | 369 var o = new api.ActivityObjectAttachments(); |
335 buildCounterActivityObjectAttachments++; | 370 buildCounterActivityObjectAttachments++; |
336 if (buildCounterActivityObjectAttachments < 3) { | 371 if (buildCounterActivityObjectAttachments < 3) { |
337 o.content = "foo"; | 372 o.content = "foo"; |
338 o.displayName = "foo"; | 373 o.displayName = "foo"; |
339 o.embed = buildActivityObjectAttachmentsEmbed(); | 374 o.embed = buildActivityObjectAttachmentsEmbed(); |
340 o.fullImage = buildActivityObjectAttachmentsFullImage(); | 375 o.fullImage = buildActivityObjectAttachmentsFullImage(); |
341 o.id = "foo"; | 376 o.id = "foo"; |
342 o.image = buildActivityObjectAttachmentsImage(); | 377 o.image = buildActivityObjectAttachmentsImage(); |
343 o.objectType = "foo"; | 378 o.objectType = "foo"; |
344 o.previewThumbnails = buildUnnamed952(); | 379 o.previewThumbnails = buildUnnamed1273(); |
345 o.thumbnails = buildUnnamed953(); | 380 o.thumbnails = buildUnnamed1274(); |
346 o.url = "foo"; | 381 o.url = "foo"; |
347 } | 382 } |
348 buildCounterActivityObjectAttachments--; | 383 buildCounterActivityObjectAttachments--; |
349 return o; | 384 return o; |
350 } | 385 } |
351 | 386 |
352 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { | 387 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { |
353 buildCounterActivityObjectAttachments++; | 388 buildCounterActivityObjectAttachments++; |
354 if (buildCounterActivityObjectAttachments < 3) { | 389 if (buildCounterActivityObjectAttachments < 3) { |
355 unittest.expect(o.content, unittest.equals('foo')); | 390 unittest.expect(o.content, unittest.equals('foo')); |
356 unittest.expect(o.displayName, unittest.equals('foo')); | 391 unittest.expect(o.displayName, unittest.equals('foo')); |
357 checkActivityObjectAttachmentsEmbed(o.embed); | 392 checkActivityObjectAttachmentsEmbed(o.embed); |
358 checkActivityObjectAttachmentsFullImage(o.fullImage); | 393 checkActivityObjectAttachmentsFullImage(o.fullImage); |
359 unittest.expect(o.id, unittest.equals('foo')); | 394 unittest.expect(o.id, unittest.equals('foo')); |
360 checkActivityObjectAttachmentsImage(o.image); | 395 checkActivityObjectAttachmentsImage(o.image); |
361 unittest.expect(o.objectType, unittest.equals('foo')); | 396 unittest.expect(o.objectType, unittest.equals('foo')); |
362 checkUnnamed952(o.previewThumbnails); | 397 checkUnnamed1273(o.previewThumbnails); |
363 checkUnnamed953(o.thumbnails); | 398 checkUnnamed1274(o.thumbnails); |
364 unittest.expect(o.url, unittest.equals('foo')); | 399 unittest.expect(o.url, unittest.equals('foo')); |
365 } | 400 } |
366 buildCounterActivityObjectAttachments--; | 401 buildCounterActivityObjectAttachments--; |
367 } | 402 } |
368 | 403 |
369 buildUnnamed954() { | 404 buildUnnamed1275() { |
370 var o = new core.List<api.ActivityObjectAttachments>(); | 405 var o = new core.List<api.ActivityObjectAttachments>(); |
371 o.add(buildActivityObjectAttachments()); | 406 o.add(buildActivityObjectAttachments()); |
372 o.add(buildActivityObjectAttachments()); | 407 o.add(buildActivityObjectAttachments()); |
373 return o; | 408 return o; |
374 } | 409 } |
375 | 410 |
376 checkUnnamed954(core.List<api.ActivityObjectAttachments> o) { | 411 checkUnnamed1275(core.List<api.ActivityObjectAttachments> o) { |
377 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
378 checkActivityObjectAttachments(o[0]); | 413 checkActivityObjectAttachments(o[0]); |
379 checkActivityObjectAttachments(o[1]); | 414 checkActivityObjectAttachments(o[1]); |
380 } | 415 } |
381 | 416 |
382 core.int buildCounterActivityObjectPlusoners = 0; | 417 core.int buildCounterActivityObjectPlusoners = 0; |
383 buildActivityObjectPlusoners() { | 418 buildActivityObjectPlusoners() { |
384 var o = new api.ActivityObjectPlusoners(); | 419 var o = new api.ActivityObjectPlusoners(); |
385 buildCounterActivityObjectPlusoners++; | 420 buildCounterActivityObjectPlusoners++; |
386 if (buildCounterActivityObjectPlusoners < 3) { | 421 if (buildCounterActivityObjectPlusoners < 3) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 503 } |
469 buildCounterActivityObjectStatusForViewer--; | 504 buildCounterActivityObjectStatusForViewer--; |
470 } | 505 } |
471 | 506 |
472 core.int buildCounterActivityObject = 0; | 507 core.int buildCounterActivityObject = 0; |
473 buildActivityObject() { | 508 buildActivityObject() { |
474 var o = new api.ActivityObject(); | 509 var o = new api.ActivityObject(); |
475 buildCounterActivityObject++; | 510 buildCounterActivityObject++; |
476 if (buildCounterActivityObject < 3) { | 511 if (buildCounterActivityObject < 3) { |
477 o.actor = buildActivityObjectActor(); | 512 o.actor = buildActivityObjectActor(); |
478 o.attachments = buildUnnamed954(); | 513 o.attachments = buildUnnamed1275(); |
479 o.content = "foo"; | 514 o.content = "foo"; |
480 o.id = "foo"; | 515 o.id = "foo"; |
481 o.objectType = "foo"; | 516 o.objectType = "foo"; |
482 o.originalContent = "foo"; | 517 o.originalContent = "foo"; |
483 o.plusoners = buildActivityObjectPlusoners(); | 518 o.plusoners = buildActivityObjectPlusoners(); |
484 o.replies = buildActivityObjectReplies(); | 519 o.replies = buildActivityObjectReplies(); |
485 o.resharers = buildActivityObjectResharers(); | 520 o.resharers = buildActivityObjectResharers(); |
486 o.statusForViewer = buildActivityObjectStatusForViewer(); | 521 o.statusForViewer = buildActivityObjectStatusForViewer(); |
487 o.url = "foo"; | 522 o.url = "foo"; |
488 } | 523 } |
489 buildCounterActivityObject--; | 524 buildCounterActivityObject--; |
490 return o; | 525 return o; |
491 } | 526 } |
492 | 527 |
493 checkActivityObject(api.ActivityObject o) { | 528 checkActivityObject(api.ActivityObject o) { |
494 buildCounterActivityObject++; | 529 buildCounterActivityObject++; |
495 if (buildCounterActivityObject < 3) { | 530 if (buildCounterActivityObject < 3) { |
496 checkActivityObjectActor(o.actor); | 531 checkActivityObjectActor(o.actor); |
497 checkUnnamed954(o.attachments); | 532 checkUnnamed1275(o.attachments); |
498 unittest.expect(o.content, unittest.equals('foo')); | 533 unittest.expect(o.content, unittest.equals('foo')); |
499 unittest.expect(o.id, unittest.equals('foo')); | 534 unittest.expect(o.id, unittest.equals('foo')); |
500 unittest.expect(o.objectType, unittest.equals('foo')); | 535 unittest.expect(o.objectType, unittest.equals('foo')); |
501 unittest.expect(o.originalContent, unittest.equals('foo')); | 536 unittest.expect(o.originalContent, unittest.equals('foo')); |
502 checkActivityObjectPlusoners(o.plusoners); | 537 checkActivityObjectPlusoners(o.plusoners); |
503 checkActivityObjectReplies(o.replies); | 538 checkActivityObjectReplies(o.replies); |
504 checkActivityObjectResharers(o.resharers); | 539 checkActivityObjectResharers(o.resharers); |
505 checkActivityObjectStatusForViewer(o.statusForViewer); | 540 checkActivityObjectStatusForViewer(o.statusForViewer); |
506 unittest.expect(o.url, unittest.equals('foo')); | 541 unittest.expect(o.url, unittest.equals('foo')); |
507 } | 542 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 612 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
578 unittest.expect(o.radius, unittest.equals('foo')); | 613 unittest.expect(o.radius, unittest.equals('foo')); |
579 unittest.expect(o.title, unittest.equals('foo')); | 614 unittest.expect(o.title, unittest.equals('foo')); |
580 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 615 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
581 unittest.expect(o.url, unittest.equals('foo')); | 616 unittest.expect(o.url, unittest.equals('foo')); |
582 unittest.expect(o.verb, unittest.equals('foo')); | 617 unittest.expect(o.verb, unittest.equals('foo')); |
583 } | 618 } |
584 buildCounterActivity--; | 619 buildCounterActivity--; |
585 } | 620 } |
586 | 621 |
587 buildUnnamed955() { | 622 buildUnnamed1276() { |
588 var o = new core.List<api.Activity>(); | 623 var o = new core.List<api.Activity>(); |
589 o.add(buildActivity()); | 624 o.add(buildActivity()); |
590 o.add(buildActivity()); | 625 o.add(buildActivity()); |
591 return o; | 626 return o; |
592 } | 627 } |
593 | 628 |
594 checkUnnamed955(core.List<api.Activity> o) { | 629 checkUnnamed1276(core.List<api.Activity> o) { |
595 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
596 checkActivity(o[0]); | 631 checkActivity(o[0]); |
597 checkActivity(o[1]); | 632 checkActivity(o[1]); |
598 } | 633 } |
599 | 634 |
600 core.int buildCounterActivityFeed = 0; | 635 core.int buildCounterActivityFeed = 0; |
601 buildActivityFeed() { | 636 buildActivityFeed() { |
602 var o = new api.ActivityFeed(); | 637 var o = new api.ActivityFeed(); |
603 buildCounterActivityFeed++; | 638 buildCounterActivityFeed++; |
604 if (buildCounterActivityFeed < 3) { | 639 if (buildCounterActivityFeed < 3) { |
605 o.etag = "foo"; | 640 o.etag = "foo"; |
606 o.id = "foo"; | 641 o.id = "foo"; |
607 o.items = buildUnnamed955(); | 642 o.items = buildUnnamed1276(); |
608 o.kind = "foo"; | 643 o.kind = "foo"; |
609 o.nextLink = "foo"; | 644 o.nextLink = "foo"; |
610 o.nextPageToken = "foo"; | 645 o.nextPageToken = "foo"; |
611 o.selfLink = "foo"; | 646 o.selfLink = "foo"; |
612 o.title = "foo"; | 647 o.title = "foo"; |
613 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 648 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
614 } | 649 } |
615 buildCounterActivityFeed--; | 650 buildCounterActivityFeed--; |
616 return o; | 651 return o; |
617 } | 652 } |
618 | 653 |
619 checkActivityFeed(api.ActivityFeed o) { | 654 checkActivityFeed(api.ActivityFeed o) { |
620 buildCounterActivityFeed++; | 655 buildCounterActivityFeed++; |
621 if (buildCounterActivityFeed < 3) { | 656 if (buildCounterActivityFeed < 3) { |
622 unittest.expect(o.etag, unittest.equals('foo')); | 657 unittest.expect(o.etag, unittest.equals('foo')); |
623 unittest.expect(o.id, unittest.equals('foo')); | 658 unittest.expect(o.id, unittest.equals('foo')); |
624 checkUnnamed955(o.items); | 659 checkUnnamed1276(o.items); |
625 unittest.expect(o.kind, unittest.equals('foo')); | 660 unittest.expect(o.kind, unittest.equals('foo')); |
626 unittest.expect(o.nextLink, unittest.equals('foo')); | 661 unittest.expect(o.nextLink, unittest.equals('foo')); |
627 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 662 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
628 unittest.expect(o.selfLink, unittest.equals('foo')); | 663 unittest.expect(o.selfLink, unittest.equals('foo')); |
629 unittest.expect(o.title, unittest.equals('foo')); | 664 unittest.expect(o.title, unittest.equals('foo')); |
630 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 665 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
631 } | 666 } |
632 buildCounterActivityFeed--; | 667 buildCounterActivityFeed--; |
633 } | 668 } |
634 | 669 |
(...skipping 17 matching lines...) Expand all Loading... |
652 if (buildCounterAudience < 3) { | 687 if (buildCounterAudience < 3) { |
653 unittest.expect(o.etag, unittest.equals('foo')); | 688 unittest.expect(o.etag, unittest.equals('foo')); |
654 checkPlusDomainsAclentryResource(o.item); | 689 checkPlusDomainsAclentryResource(o.item); |
655 unittest.expect(o.kind, unittest.equals('foo')); | 690 unittest.expect(o.kind, unittest.equals('foo')); |
656 unittest.expect(o.memberCount, unittest.equals(42)); | 691 unittest.expect(o.memberCount, unittest.equals(42)); |
657 unittest.expect(o.visibility, unittest.equals('foo')); | 692 unittest.expect(o.visibility, unittest.equals('foo')); |
658 } | 693 } |
659 buildCounterAudience--; | 694 buildCounterAudience--; |
660 } | 695 } |
661 | 696 |
662 buildUnnamed956() { | 697 buildUnnamed1277() { |
663 var o = new core.List<api.Audience>(); | 698 var o = new core.List<api.Audience>(); |
664 o.add(buildAudience()); | 699 o.add(buildAudience()); |
665 o.add(buildAudience()); | 700 o.add(buildAudience()); |
666 return o; | 701 return o; |
667 } | 702 } |
668 | 703 |
669 checkUnnamed956(core.List<api.Audience> o) { | 704 checkUnnamed1277(core.List<api.Audience> o) { |
670 unittest.expect(o, unittest.hasLength(2)); | 705 unittest.expect(o, unittest.hasLength(2)); |
671 checkAudience(o[0]); | 706 checkAudience(o[0]); |
672 checkAudience(o[1]); | 707 checkAudience(o[1]); |
673 } | 708 } |
674 | 709 |
675 core.int buildCounterAudiencesFeed = 0; | 710 core.int buildCounterAudiencesFeed = 0; |
676 buildAudiencesFeed() { | 711 buildAudiencesFeed() { |
677 var o = new api.AudiencesFeed(); | 712 var o = new api.AudiencesFeed(); |
678 buildCounterAudiencesFeed++; | 713 buildCounterAudiencesFeed++; |
679 if (buildCounterAudiencesFeed < 3) { | 714 if (buildCounterAudiencesFeed < 3) { |
680 o.etag = "foo"; | 715 o.etag = "foo"; |
681 o.items = buildUnnamed956(); | 716 o.items = buildUnnamed1277(); |
682 o.kind = "foo"; | 717 o.kind = "foo"; |
683 o.nextPageToken = "foo"; | 718 o.nextPageToken = "foo"; |
684 o.totalItems = 42; | 719 o.totalItems = 42; |
685 } | 720 } |
686 buildCounterAudiencesFeed--; | 721 buildCounterAudiencesFeed--; |
687 return o; | 722 return o; |
688 } | 723 } |
689 | 724 |
690 checkAudiencesFeed(api.AudiencesFeed o) { | 725 checkAudiencesFeed(api.AudiencesFeed o) { |
691 buildCounterAudiencesFeed++; | 726 buildCounterAudiencesFeed++; |
692 if (buildCounterAudiencesFeed < 3) { | 727 if (buildCounterAudiencesFeed < 3) { |
693 unittest.expect(o.etag, unittest.equals('foo')); | 728 unittest.expect(o.etag, unittest.equals('foo')); |
694 checkUnnamed956(o.items); | 729 checkUnnamed1277(o.items); |
695 unittest.expect(o.kind, unittest.equals('foo')); | 730 unittest.expect(o.kind, unittest.equals('foo')); |
696 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 731 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
697 unittest.expect(o.totalItems, unittest.equals(42)); | 732 unittest.expect(o.totalItems, unittest.equals(42)); |
698 } | 733 } |
699 buildCounterAudiencesFeed--; | 734 buildCounterAudiencesFeed--; |
700 } | 735 } |
701 | 736 |
702 core.int buildCounterCirclePeople = 0; | 737 core.int buildCounterCirclePeople = 0; |
703 buildCirclePeople() { | 738 buildCirclePeople() { |
704 var o = new api.CirclePeople(); | 739 var o = new api.CirclePeople(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 unittest.expect(o.displayName, unittest.equals('foo')); | 777 unittest.expect(o.displayName, unittest.equals('foo')); |
743 unittest.expect(o.etag, unittest.equals('foo')); | 778 unittest.expect(o.etag, unittest.equals('foo')); |
744 unittest.expect(o.id, unittest.equals('foo')); | 779 unittest.expect(o.id, unittest.equals('foo')); |
745 unittest.expect(o.kind, unittest.equals('foo')); | 780 unittest.expect(o.kind, unittest.equals('foo')); |
746 checkCirclePeople(o.people); | 781 checkCirclePeople(o.people); |
747 unittest.expect(o.selfLink, unittest.equals('foo')); | 782 unittest.expect(o.selfLink, unittest.equals('foo')); |
748 } | 783 } |
749 buildCounterCircle--; | 784 buildCounterCircle--; |
750 } | 785 } |
751 | 786 |
752 buildUnnamed957() { | 787 buildUnnamed1278() { |
753 var o = new core.List<api.Circle>(); | 788 var o = new core.List<api.Circle>(); |
754 o.add(buildCircle()); | 789 o.add(buildCircle()); |
755 o.add(buildCircle()); | 790 o.add(buildCircle()); |
756 return o; | 791 return o; |
757 } | 792 } |
758 | 793 |
759 checkUnnamed957(core.List<api.Circle> o) { | 794 checkUnnamed1278(core.List<api.Circle> o) { |
760 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
761 checkCircle(o[0]); | 796 checkCircle(o[0]); |
762 checkCircle(o[1]); | 797 checkCircle(o[1]); |
763 } | 798 } |
764 | 799 |
765 core.int buildCounterCircleFeed = 0; | 800 core.int buildCounterCircleFeed = 0; |
766 buildCircleFeed() { | 801 buildCircleFeed() { |
767 var o = new api.CircleFeed(); | 802 var o = new api.CircleFeed(); |
768 buildCounterCircleFeed++; | 803 buildCounterCircleFeed++; |
769 if (buildCounterCircleFeed < 3) { | 804 if (buildCounterCircleFeed < 3) { |
770 o.etag = "foo"; | 805 o.etag = "foo"; |
771 o.items = buildUnnamed957(); | 806 o.items = buildUnnamed1278(); |
772 o.kind = "foo"; | 807 o.kind = "foo"; |
773 o.nextLink = "foo"; | 808 o.nextLink = "foo"; |
774 o.nextPageToken = "foo"; | 809 o.nextPageToken = "foo"; |
775 o.selfLink = "foo"; | 810 o.selfLink = "foo"; |
776 o.title = "foo"; | 811 o.title = "foo"; |
777 o.totalItems = 42; | 812 o.totalItems = 42; |
778 } | 813 } |
779 buildCounterCircleFeed--; | 814 buildCounterCircleFeed--; |
780 return o; | 815 return o; |
781 } | 816 } |
782 | 817 |
783 checkCircleFeed(api.CircleFeed o) { | 818 checkCircleFeed(api.CircleFeed o) { |
784 buildCounterCircleFeed++; | 819 buildCounterCircleFeed++; |
785 if (buildCounterCircleFeed < 3) { | 820 if (buildCounterCircleFeed < 3) { |
786 unittest.expect(o.etag, unittest.equals('foo')); | 821 unittest.expect(o.etag, unittest.equals('foo')); |
787 checkUnnamed957(o.items); | 822 checkUnnamed1278(o.items); |
788 unittest.expect(o.kind, unittest.equals('foo')); | 823 unittest.expect(o.kind, unittest.equals('foo')); |
789 unittest.expect(o.nextLink, unittest.equals('foo')); | 824 unittest.expect(o.nextLink, unittest.equals('foo')); |
790 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 825 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
791 unittest.expect(o.selfLink, unittest.equals('foo')); | 826 unittest.expect(o.selfLink, unittest.equals('foo')); |
792 unittest.expect(o.title, unittest.equals('foo')); | 827 unittest.expect(o.title, unittest.equals('foo')); |
793 unittest.expect(o.totalItems, unittest.equals(42)); | 828 unittest.expect(o.totalItems, unittest.equals(42)); |
794 } | 829 } |
795 buildCounterCircleFeed--; | 830 buildCounterCircleFeed--; |
796 } | 831 } |
797 | 832 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 | 888 |
854 checkCommentInReplyTo(api.CommentInReplyTo o) { | 889 checkCommentInReplyTo(api.CommentInReplyTo o) { |
855 buildCounterCommentInReplyTo++; | 890 buildCounterCommentInReplyTo++; |
856 if (buildCounterCommentInReplyTo < 3) { | 891 if (buildCounterCommentInReplyTo < 3) { |
857 unittest.expect(o.id, unittest.equals('foo')); | 892 unittest.expect(o.id, unittest.equals('foo')); |
858 unittest.expect(o.url, unittest.equals('foo')); | 893 unittest.expect(o.url, unittest.equals('foo')); |
859 } | 894 } |
860 buildCounterCommentInReplyTo--; | 895 buildCounterCommentInReplyTo--; |
861 } | 896 } |
862 | 897 |
863 buildUnnamed958() { | 898 buildUnnamed1279() { |
864 var o = new core.List<api.CommentInReplyTo>(); | 899 var o = new core.List<api.CommentInReplyTo>(); |
865 o.add(buildCommentInReplyTo()); | 900 o.add(buildCommentInReplyTo()); |
866 o.add(buildCommentInReplyTo()); | 901 o.add(buildCommentInReplyTo()); |
867 return o; | 902 return o; |
868 } | 903 } |
869 | 904 |
870 checkUnnamed958(core.List<api.CommentInReplyTo> o) { | 905 checkUnnamed1279(core.List<api.CommentInReplyTo> o) { |
871 unittest.expect(o, unittest.hasLength(2)); | 906 unittest.expect(o, unittest.hasLength(2)); |
872 checkCommentInReplyTo(o[0]); | 907 checkCommentInReplyTo(o[0]); |
873 checkCommentInReplyTo(o[1]); | 908 checkCommentInReplyTo(o[1]); |
874 } | 909 } |
875 | 910 |
876 core.int buildCounterCommentObject = 0; | 911 core.int buildCounterCommentObject = 0; |
877 buildCommentObject() { | 912 buildCommentObject() { |
878 var o = new api.CommentObject(); | 913 var o = new api.CommentObject(); |
879 buildCounterCommentObject++; | 914 buildCounterCommentObject++; |
880 if (buildCounterCommentObject < 3) { | 915 if (buildCounterCommentObject < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 } | 951 } |
917 | 952 |
918 core.int buildCounterComment = 0; | 953 core.int buildCounterComment = 0; |
919 buildComment() { | 954 buildComment() { |
920 var o = new api.Comment(); | 955 var o = new api.Comment(); |
921 buildCounterComment++; | 956 buildCounterComment++; |
922 if (buildCounterComment < 3) { | 957 if (buildCounterComment < 3) { |
923 o.actor = buildCommentActor(); | 958 o.actor = buildCommentActor(); |
924 o.etag = "foo"; | 959 o.etag = "foo"; |
925 o.id = "foo"; | 960 o.id = "foo"; |
926 o.inReplyTo = buildUnnamed958(); | 961 o.inReplyTo = buildUnnamed1279(); |
927 o.kind = "foo"; | 962 o.kind = "foo"; |
928 o.object = buildCommentObject(); | 963 o.object = buildCommentObject(); |
929 o.plusoners = buildCommentPlusoners(); | 964 o.plusoners = buildCommentPlusoners(); |
930 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 965 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
931 o.selfLink = "foo"; | 966 o.selfLink = "foo"; |
932 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 967 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
933 o.verb = "foo"; | 968 o.verb = "foo"; |
934 } | 969 } |
935 buildCounterComment--; | 970 buildCounterComment--; |
936 return o; | 971 return o; |
937 } | 972 } |
938 | 973 |
939 checkComment(api.Comment o) { | 974 checkComment(api.Comment o) { |
940 buildCounterComment++; | 975 buildCounterComment++; |
941 if (buildCounterComment < 3) { | 976 if (buildCounterComment < 3) { |
942 checkCommentActor(o.actor); | 977 checkCommentActor(o.actor); |
943 unittest.expect(o.etag, unittest.equals('foo')); | 978 unittest.expect(o.etag, unittest.equals('foo')); |
944 unittest.expect(o.id, unittest.equals('foo')); | 979 unittest.expect(o.id, unittest.equals('foo')); |
945 checkUnnamed958(o.inReplyTo); | 980 checkUnnamed1279(o.inReplyTo); |
946 unittest.expect(o.kind, unittest.equals('foo')); | 981 unittest.expect(o.kind, unittest.equals('foo')); |
947 checkCommentObject(o.object); | 982 checkCommentObject(o.object); |
948 checkCommentPlusoners(o.plusoners); | 983 checkCommentPlusoners(o.plusoners); |
949 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 984 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
950 unittest.expect(o.selfLink, unittest.equals('foo')); | 985 unittest.expect(o.selfLink, unittest.equals('foo')); |
951 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 986 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
952 unittest.expect(o.verb, unittest.equals('foo')); | 987 unittest.expect(o.verb, unittest.equals('foo')); |
953 } | 988 } |
954 buildCounterComment--; | 989 buildCounterComment--; |
955 } | 990 } |
956 | 991 |
957 buildUnnamed959() { | 992 buildUnnamed1280() { |
958 var o = new core.List<api.Comment>(); | 993 var o = new core.List<api.Comment>(); |
959 o.add(buildComment()); | 994 o.add(buildComment()); |
960 o.add(buildComment()); | 995 o.add(buildComment()); |
961 return o; | 996 return o; |
962 } | 997 } |
963 | 998 |
964 checkUnnamed959(core.List<api.Comment> o) { | 999 checkUnnamed1280(core.List<api.Comment> o) { |
965 unittest.expect(o, unittest.hasLength(2)); | 1000 unittest.expect(o, unittest.hasLength(2)); |
966 checkComment(o[0]); | 1001 checkComment(o[0]); |
967 checkComment(o[1]); | 1002 checkComment(o[1]); |
968 } | 1003 } |
969 | 1004 |
970 core.int buildCounterCommentFeed = 0; | 1005 core.int buildCounterCommentFeed = 0; |
971 buildCommentFeed() { | 1006 buildCommentFeed() { |
972 var o = new api.CommentFeed(); | 1007 var o = new api.CommentFeed(); |
973 buildCounterCommentFeed++; | 1008 buildCounterCommentFeed++; |
974 if (buildCounterCommentFeed < 3) { | 1009 if (buildCounterCommentFeed < 3) { |
975 o.etag = "foo"; | 1010 o.etag = "foo"; |
976 o.id = "foo"; | 1011 o.id = "foo"; |
977 o.items = buildUnnamed959(); | 1012 o.items = buildUnnamed1280(); |
978 o.kind = "foo"; | 1013 o.kind = "foo"; |
979 o.nextLink = "foo"; | 1014 o.nextLink = "foo"; |
980 o.nextPageToken = "foo"; | 1015 o.nextPageToken = "foo"; |
981 o.title = "foo"; | 1016 o.title = "foo"; |
982 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1017 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
983 } | 1018 } |
984 buildCounterCommentFeed--; | 1019 buildCounterCommentFeed--; |
985 return o; | 1020 return o; |
986 } | 1021 } |
987 | 1022 |
988 checkCommentFeed(api.CommentFeed o) { | 1023 checkCommentFeed(api.CommentFeed o) { |
989 buildCounterCommentFeed++; | 1024 buildCounterCommentFeed++; |
990 if (buildCounterCommentFeed < 3) { | 1025 if (buildCounterCommentFeed < 3) { |
991 unittest.expect(o.etag, unittest.equals('foo')); | 1026 unittest.expect(o.etag, unittest.equals('foo')); |
992 unittest.expect(o.id, unittest.equals('foo')); | 1027 unittest.expect(o.id, unittest.equals('foo')); |
993 checkUnnamed959(o.items); | 1028 checkUnnamed1280(o.items); |
994 unittest.expect(o.kind, unittest.equals('foo')); | 1029 unittest.expect(o.kind, unittest.equals('foo')); |
995 unittest.expect(o.nextLink, unittest.equals('foo')); | 1030 unittest.expect(o.nextLink, unittest.equals('foo')); |
996 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1031 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
997 unittest.expect(o.title, unittest.equals('foo')); | 1032 unittest.expect(o.title, unittest.equals('foo')); |
998 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1033 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
999 } | 1034 } |
1000 buildCounterCommentFeed--; | 1035 buildCounterCommentFeed--; |
1001 } | 1036 } |
1002 | 1037 |
1003 core.int buildCounterMediaAuthorImage = 0; | 1038 core.int buildCounterMediaAuthorImage = 0; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 } | 1091 } |
1057 | 1092 |
1058 checkMediaExif(api.MediaExif o) { | 1093 checkMediaExif(api.MediaExif o) { |
1059 buildCounterMediaExif++; | 1094 buildCounterMediaExif++; |
1060 if (buildCounterMediaExif < 3) { | 1095 if (buildCounterMediaExif < 3) { |
1061 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); | 1096 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); |
1062 } | 1097 } |
1063 buildCounterMediaExif--; | 1098 buildCounterMediaExif--; |
1064 } | 1099 } |
1065 | 1100 |
1066 buildUnnamed960() { | 1101 buildUnnamed1281() { |
1067 var o = new core.List<api.Videostream>(); | 1102 var o = new core.List<api.Videostream>(); |
1068 o.add(buildVideostream()); | 1103 o.add(buildVideostream()); |
1069 o.add(buildVideostream()); | 1104 o.add(buildVideostream()); |
1070 return o; | 1105 return o; |
1071 } | 1106 } |
1072 | 1107 |
1073 checkUnnamed960(core.List<api.Videostream> o) { | 1108 checkUnnamed1281(core.List<api.Videostream> o) { |
1074 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
1075 checkVideostream(o[0]); | 1110 checkVideostream(o[0]); |
1076 checkVideostream(o[1]); | 1111 checkVideostream(o[1]); |
1077 } | 1112 } |
1078 | 1113 |
1079 core.int buildCounterMedia = 0; | 1114 core.int buildCounterMedia = 0; |
1080 buildMedia() { | 1115 buildMedia() { |
1081 var o = new api.Media(); | 1116 var o = new api.Media(); |
1082 buildCounterMedia++; | 1117 buildCounterMedia++; |
1083 if (buildCounterMedia < 3) { | 1118 if (buildCounterMedia < 3) { |
1084 o.author = buildMediaAuthor(); | 1119 o.author = buildMediaAuthor(); |
1085 o.displayName = "foo"; | 1120 o.displayName = "foo"; |
1086 o.etag = "foo"; | 1121 o.etag = "foo"; |
1087 o.exif = buildMediaExif(); | 1122 o.exif = buildMediaExif(); |
1088 o.height = 42; | 1123 o.height = 42; |
1089 o.id = "foo"; | 1124 o.id = "foo"; |
1090 o.kind = "foo"; | 1125 o.kind = "foo"; |
1091 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1126 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
1092 o.mediaUrl = "foo"; | 1127 o.mediaUrl = "foo"; |
1093 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 1128 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
1094 o.sizeBytes = "foo"; | 1129 o.sizeBytes = "foo"; |
1095 o.streams = buildUnnamed960(); | 1130 o.streams = buildUnnamed1281(); |
1096 o.summary = "foo"; | 1131 o.summary = "foo"; |
1097 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1132 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1098 o.url = "foo"; | 1133 o.url = "foo"; |
1099 o.videoDuration = "foo"; | 1134 o.videoDuration = "foo"; |
1100 o.videoStatus = "foo"; | 1135 o.videoStatus = "foo"; |
1101 o.width = 42; | 1136 o.width = 42; |
1102 } | 1137 } |
1103 buildCounterMedia--; | 1138 buildCounterMedia--; |
1104 return o; | 1139 return o; |
1105 } | 1140 } |
1106 | 1141 |
1107 checkMedia(api.Media o) { | 1142 checkMedia(api.Media o) { |
1108 buildCounterMedia++; | 1143 buildCounterMedia++; |
1109 if (buildCounterMedia < 3) { | 1144 if (buildCounterMedia < 3) { |
1110 checkMediaAuthor(o.author); | 1145 checkMediaAuthor(o.author); |
1111 unittest.expect(o.displayName, unittest.equals('foo')); | 1146 unittest.expect(o.displayName, unittest.equals('foo')); |
1112 unittest.expect(o.etag, unittest.equals('foo')); | 1147 unittest.expect(o.etag, unittest.equals('foo')); |
1113 checkMediaExif(o.exif); | 1148 checkMediaExif(o.exif); |
1114 unittest.expect(o.height, unittest.equals(42)); | 1149 unittest.expect(o.height, unittest.equals(42)); |
1115 unittest.expect(o.id, unittest.equals('foo')); | 1150 unittest.expect(o.id, unittest.equals('foo')); |
1116 unittest.expect(o.kind, unittest.equals('foo')); | 1151 unittest.expect(o.kind, unittest.equals('foo')); |
1117 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1152 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
1118 unittest.expect(o.mediaUrl, unittest.equals('foo')); | 1153 unittest.expect(o.mediaUrl, unittest.equals('foo')); |
1119 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1154 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
1120 unittest.expect(o.sizeBytes, unittest.equals('foo')); | 1155 unittest.expect(o.sizeBytes, unittest.equals('foo')); |
1121 checkUnnamed960(o.streams); | 1156 checkUnnamed1281(o.streams); |
1122 unittest.expect(o.summary, unittest.equals('foo')); | 1157 unittest.expect(o.summary, unittest.equals('foo')); |
1123 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1158 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1124 unittest.expect(o.url, unittest.equals('foo')); | 1159 unittest.expect(o.url, unittest.equals('foo')); |
1125 unittest.expect(o.videoDuration, unittest.equals('foo')); | 1160 unittest.expect(o.videoDuration, unittest.equals('foo')); |
1126 unittest.expect(o.videoStatus, unittest.equals('foo')); | 1161 unittest.expect(o.videoStatus, unittest.equals('foo')); |
1127 unittest.expect(o.width, unittest.equals(42)); | 1162 unittest.expect(o.width, unittest.equals(42)); |
1128 } | 1163 } |
1129 buildCounterMedia--; | 1164 buildCounterMedia--; |
1130 } | 1165 } |
1131 | 1166 |
1132 buildUnnamed961() { | 1167 buildUnnamed1282() { |
1133 var o = new core.List<api.Person>(); | 1168 var o = new core.List<api.Person>(); |
1134 o.add(buildPerson()); | 1169 o.add(buildPerson()); |
1135 o.add(buildPerson()); | 1170 o.add(buildPerson()); |
1136 return o; | 1171 return o; |
1137 } | 1172 } |
1138 | 1173 |
1139 checkUnnamed961(core.List<api.Person> o) { | 1174 checkUnnamed1282(core.List<api.Person> o) { |
1140 unittest.expect(o, unittest.hasLength(2)); | 1175 unittest.expect(o, unittest.hasLength(2)); |
1141 checkPerson(o[0]); | 1176 checkPerson(o[0]); |
1142 checkPerson(o[1]); | 1177 checkPerson(o[1]); |
1143 } | 1178 } |
1144 | 1179 |
1145 core.int buildCounterPeopleFeed = 0; | 1180 core.int buildCounterPeopleFeed = 0; |
1146 buildPeopleFeed() { | 1181 buildPeopleFeed() { |
1147 var o = new api.PeopleFeed(); | 1182 var o = new api.PeopleFeed(); |
1148 buildCounterPeopleFeed++; | 1183 buildCounterPeopleFeed++; |
1149 if (buildCounterPeopleFeed < 3) { | 1184 if (buildCounterPeopleFeed < 3) { |
1150 o.etag = "foo"; | 1185 o.etag = "foo"; |
1151 o.items = buildUnnamed961(); | 1186 o.items = buildUnnamed1282(); |
1152 o.kind = "foo"; | 1187 o.kind = "foo"; |
1153 o.nextPageToken = "foo"; | 1188 o.nextPageToken = "foo"; |
1154 o.selfLink = "foo"; | 1189 o.selfLink = "foo"; |
1155 o.title = "foo"; | 1190 o.title = "foo"; |
1156 o.totalItems = 42; | 1191 o.totalItems = 42; |
1157 } | 1192 } |
1158 buildCounterPeopleFeed--; | 1193 buildCounterPeopleFeed--; |
1159 return o; | 1194 return o; |
1160 } | 1195 } |
1161 | 1196 |
1162 checkPeopleFeed(api.PeopleFeed o) { | 1197 checkPeopleFeed(api.PeopleFeed o) { |
1163 buildCounterPeopleFeed++; | 1198 buildCounterPeopleFeed++; |
1164 if (buildCounterPeopleFeed < 3) { | 1199 if (buildCounterPeopleFeed < 3) { |
1165 unittest.expect(o.etag, unittest.equals('foo')); | 1200 unittest.expect(o.etag, unittest.equals('foo')); |
1166 checkUnnamed961(o.items); | 1201 checkUnnamed1282(o.items); |
1167 unittest.expect(o.kind, unittest.equals('foo')); | 1202 unittest.expect(o.kind, unittest.equals('foo')); |
1168 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1203 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1169 unittest.expect(o.selfLink, unittest.equals('foo')); | 1204 unittest.expect(o.selfLink, unittest.equals('foo')); |
1170 unittest.expect(o.title, unittest.equals('foo')); | 1205 unittest.expect(o.title, unittest.equals('foo')); |
1171 unittest.expect(o.totalItems, unittest.equals(42)); | 1206 unittest.expect(o.totalItems, unittest.equals(42)); |
1172 } | 1207 } |
1173 buildCounterPeopleFeed--; | 1208 buildCounterPeopleFeed--; |
1174 } | 1209 } |
1175 | 1210 |
1176 core.int buildCounterPersonCoverCoverInfo = 0; | 1211 core.int buildCounterPersonCoverCoverInfo = 0; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 | 1289 |
1255 checkPersonEmails(api.PersonEmails o) { | 1290 checkPersonEmails(api.PersonEmails o) { |
1256 buildCounterPersonEmails++; | 1291 buildCounterPersonEmails++; |
1257 if (buildCounterPersonEmails < 3) { | 1292 if (buildCounterPersonEmails < 3) { |
1258 unittest.expect(o.type, unittest.equals('foo')); | 1293 unittest.expect(o.type, unittest.equals('foo')); |
1259 unittest.expect(o.value, unittest.equals('foo')); | 1294 unittest.expect(o.value, unittest.equals('foo')); |
1260 } | 1295 } |
1261 buildCounterPersonEmails--; | 1296 buildCounterPersonEmails--; |
1262 } | 1297 } |
1263 | 1298 |
1264 buildUnnamed962() { | 1299 buildUnnamed1283() { |
1265 var o = new core.List<api.PersonEmails>(); | 1300 var o = new core.List<api.PersonEmails>(); |
1266 o.add(buildPersonEmails()); | 1301 o.add(buildPersonEmails()); |
1267 o.add(buildPersonEmails()); | 1302 o.add(buildPersonEmails()); |
1268 return o; | 1303 return o; |
1269 } | 1304 } |
1270 | 1305 |
1271 checkUnnamed962(core.List<api.PersonEmails> o) { | 1306 checkUnnamed1283(core.List<api.PersonEmails> o) { |
1272 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
1273 checkPersonEmails(o[0]); | 1308 checkPersonEmails(o[0]); |
1274 checkPersonEmails(o[1]); | 1309 checkPersonEmails(o[1]); |
1275 } | 1310 } |
1276 | 1311 |
1277 core.int buildCounterPersonImage = 0; | 1312 core.int buildCounterPersonImage = 0; |
1278 buildPersonImage() { | 1313 buildPersonImage() { |
1279 var o = new api.PersonImage(); | 1314 var o = new api.PersonImage(); |
1280 buildCounterPersonImage++; | 1315 buildCounterPersonImage++; |
1281 if (buildCounterPersonImage < 3) { | 1316 if (buildCounterPersonImage < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 unittest.expect(o.location, unittest.equals('foo')); | 1387 unittest.expect(o.location, unittest.equals('foo')); |
1353 unittest.expect(o.name, unittest.equals('foo')); | 1388 unittest.expect(o.name, unittest.equals('foo')); |
1354 unittest.expect(o.primary, unittest.isTrue); | 1389 unittest.expect(o.primary, unittest.isTrue); |
1355 unittest.expect(o.startDate, unittest.equals('foo')); | 1390 unittest.expect(o.startDate, unittest.equals('foo')); |
1356 unittest.expect(o.title, unittest.equals('foo')); | 1391 unittest.expect(o.title, unittest.equals('foo')); |
1357 unittest.expect(o.type, unittest.equals('foo')); | 1392 unittest.expect(o.type, unittest.equals('foo')); |
1358 } | 1393 } |
1359 buildCounterPersonOrganizations--; | 1394 buildCounterPersonOrganizations--; |
1360 } | 1395 } |
1361 | 1396 |
1362 buildUnnamed963() { | 1397 buildUnnamed1284() { |
1363 var o = new core.List<api.PersonOrganizations>(); | 1398 var o = new core.List<api.PersonOrganizations>(); |
1364 o.add(buildPersonOrganizations()); | 1399 o.add(buildPersonOrganizations()); |
1365 o.add(buildPersonOrganizations()); | 1400 o.add(buildPersonOrganizations()); |
1366 return o; | 1401 return o; |
1367 } | 1402 } |
1368 | 1403 |
1369 checkUnnamed963(core.List<api.PersonOrganizations> o) { | 1404 checkUnnamed1284(core.List<api.PersonOrganizations> o) { |
1370 unittest.expect(o, unittest.hasLength(2)); | 1405 unittest.expect(o, unittest.hasLength(2)); |
1371 checkPersonOrganizations(o[0]); | 1406 checkPersonOrganizations(o[0]); |
1372 checkPersonOrganizations(o[1]); | 1407 checkPersonOrganizations(o[1]); |
1373 } | 1408 } |
1374 | 1409 |
1375 core.int buildCounterPersonPlacesLived = 0; | 1410 core.int buildCounterPersonPlacesLived = 0; |
1376 buildPersonPlacesLived() { | 1411 buildPersonPlacesLived() { |
1377 var o = new api.PersonPlacesLived(); | 1412 var o = new api.PersonPlacesLived(); |
1378 buildCounterPersonPlacesLived++; | 1413 buildCounterPersonPlacesLived++; |
1379 if (buildCounterPersonPlacesLived < 3) { | 1414 if (buildCounterPersonPlacesLived < 3) { |
1380 o.primary = true; | 1415 o.primary = true; |
1381 o.value = "foo"; | 1416 o.value = "foo"; |
1382 } | 1417 } |
1383 buildCounterPersonPlacesLived--; | 1418 buildCounterPersonPlacesLived--; |
1384 return o; | 1419 return o; |
1385 } | 1420 } |
1386 | 1421 |
1387 checkPersonPlacesLived(api.PersonPlacesLived o) { | 1422 checkPersonPlacesLived(api.PersonPlacesLived o) { |
1388 buildCounterPersonPlacesLived++; | 1423 buildCounterPersonPlacesLived++; |
1389 if (buildCounterPersonPlacesLived < 3) { | 1424 if (buildCounterPersonPlacesLived < 3) { |
1390 unittest.expect(o.primary, unittest.isTrue); | 1425 unittest.expect(o.primary, unittest.isTrue); |
1391 unittest.expect(o.value, unittest.equals('foo')); | 1426 unittest.expect(o.value, unittest.equals('foo')); |
1392 } | 1427 } |
1393 buildCounterPersonPlacesLived--; | 1428 buildCounterPersonPlacesLived--; |
1394 } | 1429 } |
1395 | 1430 |
1396 buildUnnamed964() { | 1431 buildUnnamed1285() { |
1397 var o = new core.List<api.PersonPlacesLived>(); | 1432 var o = new core.List<api.PersonPlacesLived>(); |
1398 o.add(buildPersonPlacesLived()); | 1433 o.add(buildPersonPlacesLived()); |
1399 o.add(buildPersonPlacesLived()); | 1434 o.add(buildPersonPlacesLived()); |
1400 return o; | 1435 return o; |
1401 } | 1436 } |
1402 | 1437 |
1403 checkUnnamed964(core.List<api.PersonPlacesLived> o) { | 1438 checkUnnamed1285(core.List<api.PersonPlacesLived> o) { |
1404 unittest.expect(o, unittest.hasLength(2)); | 1439 unittest.expect(o, unittest.hasLength(2)); |
1405 checkPersonPlacesLived(o[0]); | 1440 checkPersonPlacesLived(o[0]); |
1406 checkPersonPlacesLived(o[1]); | 1441 checkPersonPlacesLived(o[1]); |
1407 } | 1442 } |
1408 | 1443 |
1409 core.int buildCounterPersonUrls = 0; | 1444 core.int buildCounterPersonUrls = 0; |
1410 buildPersonUrls() { | 1445 buildPersonUrls() { |
1411 var o = new api.PersonUrls(); | 1446 var o = new api.PersonUrls(); |
1412 buildCounterPersonUrls++; | 1447 buildCounterPersonUrls++; |
1413 if (buildCounterPersonUrls < 3) { | 1448 if (buildCounterPersonUrls < 3) { |
1414 o.label = "foo"; | 1449 o.label = "foo"; |
1415 o.type = "foo"; | 1450 o.type = "foo"; |
1416 o.value = "foo"; | 1451 o.value = "foo"; |
1417 } | 1452 } |
1418 buildCounterPersonUrls--; | 1453 buildCounterPersonUrls--; |
1419 return o; | 1454 return o; |
1420 } | 1455 } |
1421 | 1456 |
1422 checkPersonUrls(api.PersonUrls o) { | 1457 checkPersonUrls(api.PersonUrls o) { |
1423 buildCounterPersonUrls++; | 1458 buildCounterPersonUrls++; |
1424 if (buildCounterPersonUrls < 3) { | 1459 if (buildCounterPersonUrls < 3) { |
1425 unittest.expect(o.label, unittest.equals('foo')); | 1460 unittest.expect(o.label, unittest.equals('foo')); |
1426 unittest.expect(o.type, unittest.equals('foo')); | 1461 unittest.expect(o.type, unittest.equals('foo')); |
1427 unittest.expect(o.value, unittest.equals('foo')); | 1462 unittest.expect(o.value, unittest.equals('foo')); |
1428 } | 1463 } |
1429 buildCounterPersonUrls--; | 1464 buildCounterPersonUrls--; |
1430 } | 1465 } |
1431 | 1466 |
1432 buildUnnamed965() { | 1467 buildUnnamed1286() { |
1433 var o = new core.List<api.PersonUrls>(); | 1468 var o = new core.List<api.PersonUrls>(); |
1434 o.add(buildPersonUrls()); | 1469 o.add(buildPersonUrls()); |
1435 o.add(buildPersonUrls()); | 1470 o.add(buildPersonUrls()); |
1436 return o; | 1471 return o; |
1437 } | 1472 } |
1438 | 1473 |
1439 checkUnnamed965(core.List<api.PersonUrls> o) { | 1474 checkUnnamed1286(core.List<api.PersonUrls> o) { |
1440 unittest.expect(o, unittest.hasLength(2)); | 1475 unittest.expect(o, unittest.hasLength(2)); |
1441 checkPersonUrls(o[0]); | 1476 checkPersonUrls(o[0]); |
1442 checkPersonUrls(o[1]); | 1477 checkPersonUrls(o[1]); |
1443 } | 1478 } |
1444 | 1479 |
1445 core.int buildCounterPerson = 0; | 1480 core.int buildCounterPerson = 0; |
1446 buildPerson() { | 1481 buildPerson() { |
1447 var o = new api.Person(); | 1482 var o = new api.Person(); |
1448 buildCounterPerson++; | 1483 buildCounterPerson++; |
1449 if (buildCounterPerson < 3) { | 1484 if (buildCounterPerson < 3) { |
1450 o.aboutMe = "foo"; | 1485 o.aboutMe = "foo"; |
1451 o.birthday = "foo"; | 1486 o.birthday = "foo"; |
1452 o.braggingRights = "foo"; | 1487 o.braggingRights = "foo"; |
1453 o.circledByCount = 42; | 1488 o.circledByCount = 42; |
1454 o.cover = buildPersonCover(); | 1489 o.cover = buildPersonCover(); |
1455 o.currentLocation = "foo"; | 1490 o.currentLocation = "foo"; |
1456 o.displayName = "foo"; | 1491 o.displayName = "foo"; |
1457 o.domain = "foo"; | 1492 o.domain = "foo"; |
1458 o.emails = buildUnnamed962(); | 1493 o.emails = buildUnnamed1283(); |
1459 o.etag = "foo"; | 1494 o.etag = "foo"; |
1460 o.gender = "foo"; | 1495 o.gender = "foo"; |
1461 o.id = "foo"; | 1496 o.id = "foo"; |
1462 o.image = buildPersonImage(); | 1497 o.image = buildPersonImage(); |
1463 o.isPlusUser = true; | 1498 o.isPlusUser = true; |
1464 o.kind = "foo"; | 1499 o.kind = "foo"; |
1465 o.name = buildPersonName(); | 1500 o.name = buildPersonName(); |
1466 o.nickname = "foo"; | 1501 o.nickname = "foo"; |
1467 o.objectType = "foo"; | 1502 o.objectType = "foo"; |
1468 o.occupation = "foo"; | 1503 o.occupation = "foo"; |
1469 o.organizations = buildUnnamed963(); | 1504 o.organizations = buildUnnamed1284(); |
1470 o.placesLived = buildUnnamed964(); | 1505 o.placesLived = buildUnnamed1285(); |
1471 o.plusOneCount = 42; | 1506 o.plusOneCount = 42; |
1472 o.relationshipStatus = "foo"; | 1507 o.relationshipStatus = "foo"; |
1473 o.skills = "foo"; | 1508 o.skills = "foo"; |
1474 o.tagline = "foo"; | 1509 o.tagline = "foo"; |
1475 o.url = "foo"; | 1510 o.url = "foo"; |
1476 o.urls = buildUnnamed965(); | 1511 o.urls = buildUnnamed1286(); |
1477 o.verified = true; | 1512 o.verified = true; |
1478 } | 1513 } |
1479 buildCounterPerson--; | 1514 buildCounterPerson--; |
1480 return o; | 1515 return o; |
1481 } | 1516 } |
1482 | 1517 |
1483 checkPerson(api.Person o) { | 1518 checkPerson(api.Person o) { |
1484 buildCounterPerson++; | 1519 buildCounterPerson++; |
1485 if (buildCounterPerson < 3) { | 1520 if (buildCounterPerson < 3) { |
1486 unittest.expect(o.aboutMe, unittest.equals('foo')); | 1521 unittest.expect(o.aboutMe, unittest.equals('foo')); |
1487 unittest.expect(o.birthday, unittest.equals('foo')); | 1522 unittest.expect(o.birthday, unittest.equals('foo')); |
1488 unittest.expect(o.braggingRights, unittest.equals('foo')); | 1523 unittest.expect(o.braggingRights, unittest.equals('foo')); |
1489 unittest.expect(o.circledByCount, unittest.equals(42)); | 1524 unittest.expect(o.circledByCount, unittest.equals(42)); |
1490 checkPersonCover(o.cover); | 1525 checkPersonCover(o.cover); |
1491 unittest.expect(o.currentLocation, unittest.equals('foo')); | 1526 unittest.expect(o.currentLocation, unittest.equals('foo')); |
1492 unittest.expect(o.displayName, unittest.equals('foo')); | 1527 unittest.expect(o.displayName, unittest.equals('foo')); |
1493 unittest.expect(o.domain, unittest.equals('foo')); | 1528 unittest.expect(o.domain, unittest.equals('foo')); |
1494 checkUnnamed962(o.emails); | 1529 checkUnnamed1283(o.emails); |
1495 unittest.expect(o.etag, unittest.equals('foo')); | 1530 unittest.expect(o.etag, unittest.equals('foo')); |
1496 unittest.expect(o.gender, unittest.equals('foo')); | 1531 unittest.expect(o.gender, unittest.equals('foo')); |
1497 unittest.expect(o.id, unittest.equals('foo')); | 1532 unittest.expect(o.id, unittest.equals('foo')); |
1498 checkPersonImage(o.image); | 1533 checkPersonImage(o.image); |
1499 unittest.expect(o.isPlusUser, unittest.isTrue); | 1534 unittest.expect(o.isPlusUser, unittest.isTrue); |
1500 unittest.expect(o.kind, unittest.equals('foo')); | 1535 unittest.expect(o.kind, unittest.equals('foo')); |
1501 checkPersonName(o.name); | 1536 checkPersonName(o.name); |
1502 unittest.expect(o.nickname, unittest.equals('foo')); | 1537 unittest.expect(o.nickname, unittest.equals('foo')); |
1503 unittest.expect(o.objectType, unittest.equals('foo')); | 1538 unittest.expect(o.objectType, unittest.equals('foo')); |
1504 unittest.expect(o.occupation, unittest.equals('foo')); | 1539 unittest.expect(o.occupation, unittest.equals('foo')); |
1505 checkUnnamed963(o.organizations); | 1540 checkUnnamed1284(o.organizations); |
1506 checkUnnamed964(o.placesLived); | 1541 checkUnnamed1285(o.placesLived); |
1507 unittest.expect(o.plusOneCount, unittest.equals(42)); | 1542 unittest.expect(o.plusOneCount, unittest.equals(42)); |
1508 unittest.expect(o.relationshipStatus, unittest.equals('foo')); | 1543 unittest.expect(o.relationshipStatus, unittest.equals('foo')); |
1509 unittest.expect(o.skills, unittest.equals('foo')); | 1544 unittest.expect(o.skills, unittest.equals('foo')); |
1510 unittest.expect(o.tagline, unittest.equals('foo')); | 1545 unittest.expect(o.tagline, unittest.equals('foo')); |
1511 unittest.expect(o.url, unittest.equals('foo')); | 1546 unittest.expect(o.url, unittest.equals('foo')); |
1512 checkUnnamed965(o.urls); | 1547 checkUnnamed1286(o.urls); |
1513 unittest.expect(o.verified, unittest.isTrue); | 1548 unittest.expect(o.verified, unittest.isTrue); |
1514 } | 1549 } |
1515 buildCounterPerson--; | 1550 buildCounterPerson--; |
1516 } | 1551 } |
1517 | 1552 |
1518 core.int buildCounterPlaceAddress = 0; | 1553 core.int buildCounterPlaceAddress = 0; |
1519 buildPlaceAddress() { | 1554 buildPlaceAddress() { |
1520 var o = new api.PlaceAddress(); | 1555 var o = new api.PlaceAddress(); |
1521 buildCounterPlaceAddress++; | 1556 buildCounterPlaceAddress++; |
1522 if (buildCounterPlaceAddress < 3) { | 1557 if (buildCounterPlaceAddress < 3) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 buildCounterVideostream++; | 1658 buildCounterVideostream++; |
1624 if (buildCounterVideostream < 3) { | 1659 if (buildCounterVideostream < 3) { |
1625 unittest.expect(o.height, unittest.equals(42)); | 1660 unittest.expect(o.height, unittest.equals(42)); |
1626 unittest.expect(o.type, unittest.equals('foo')); | 1661 unittest.expect(o.type, unittest.equals('foo')); |
1627 unittest.expect(o.url, unittest.equals('foo')); | 1662 unittest.expect(o.url, unittest.equals('foo')); |
1628 unittest.expect(o.width, unittest.equals(42)); | 1663 unittest.expect(o.width, unittest.equals(42)); |
1629 } | 1664 } |
1630 buildCounterVideostream--; | 1665 buildCounterVideostream--; |
1631 } | 1666 } |
1632 | 1667 |
1633 buildUnnamed966() { | 1668 buildUnnamed1287() { |
1634 var o = new core.List<core.String>(); | 1669 var o = new core.List<core.String>(); |
1635 o.add("foo"); | 1670 o.add("foo"); |
1636 o.add("foo"); | 1671 o.add("foo"); |
1637 return o; | 1672 return o; |
1638 } | 1673 } |
1639 | 1674 |
1640 checkUnnamed966(core.List<core.String> o) { | 1675 checkUnnamed1287(core.List<core.String> o) { |
1641 unittest.expect(o, unittest.hasLength(2)); | 1676 unittest.expect(o, unittest.hasLength(2)); |
1642 unittest.expect(o[0], unittest.equals('foo')); | 1677 unittest.expect(o[0], unittest.equals('foo')); |
1643 unittest.expect(o[1], unittest.equals('foo')); | 1678 unittest.expect(o[1], unittest.equals('foo')); |
1644 } | 1679 } |
1645 | 1680 |
1646 buildUnnamed967() { | 1681 buildUnnamed1288() { |
1647 var o = new core.List<core.String>(); | 1682 var o = new core.List<core.String>(); |
1648 o.add("foo"); | 1683 o.add("foo"); |
1649 o.add("foo"); | 1684 o.add("foo"); |
1650 return o; | 1685 return o; |
1651 } | 1686 } |
1652 | 1687 |
1653 checkUnnamed967(core.List<core.String> o) { | 1688 checkUnnamed1288(core.List<core.String> o) { |
1654 unittest.expect(o, unittest.hasLength(2)); | 1689 unittest.expect(o, unittest.hasLength(2)); |
1655 unittest.expect(o[0], unittest.equals('foo')); | 1690 unittest.expect(o[0], unittest.equals('foo')); |
1656 unittest.expect(o[1], unittest.equals('foo')); | 1691 unittest.expect(o[1], unittest.equals('foo')); |
1657 } | 1692 } |
1658 | 1693 |
1659 buildUnnamed968() { | 1694 buildUnnamed1289() { |
1660 var o = new core.List<core.String>(); | 1695 var o = new core.List<core.String>(); |
1661 o.add("foo"); | 1696 o.add("foo"); |
1662 o.add("foo"); | 1697 o.add("foo"); |
1663 return o; | 1698 return o; |
1664 } | 1699 } |
1665 | 1700 |
1666 checkUnnamed968(core.List<core.String> o) { | 1701 checkUnnamed1289(core.List<core.String> o) { |
1667 unittest.expect(o, unittest.hasLength(2)); | 1702 unittest.expect(o, unittest.hasLength(2)); |
1668 unittest.expect(o[0], unittest.equals('foo')); | 1703 unittest.expect(o[0], unittest.equals('foo')); |
1669 unittest.expect(o[1], unittest.equals('foo')); | 1704 unittest.expect(o[1], unittest.equals('foo')); |
1670 } | 1705 } |
1671 | 1706 |
1672 buildUnnamed969() { | 1707 buildUnnamed1290() { |
1673 var o = new core.List<core.String>(); | 1708 var o = new core.List<core.String>(); |
1674 o.add("foo"); | 1709 o.add("foo"); |
1675 o.add("foo"); | 1710 o.add("foo"); |
1676 return o; | 1711 return o; |
1677 } | 1712 } |
1678 | 1713 |
1679 checkUnnamed969(core.List<core.String> o) { | 1714 checkUnnamed1290(core.List<core.String> o) { |
1680 unittest.expect(o, unittest.hasLength(2)); | 1715 unittest.expect(o, unittest.hasLength(2)); |
1681 unittest.expect(o[0], unittest.equals('foo')); | 1716 unittest.expect(o[0], unittest.equals('foo')); |
1682 unittest.expect(o[1], unittest.equals('foo')); | 1717 unittest.expect(o[1], unittest.equals('foo')); |
1683 } | 1718 } |
1684 | 1719 |
1685 | 1720 |
1686 main() { | 1721 main() { |
1687 unittest.group("obj-schema-Acl", () { | 1722 unittest.group("obj-schema-Acl", () { |
1688 unittest.test("to-json--from-json", () { | 1723 unittest.test("to-json--from-json", () { |
1689 var o = buildAcl(); | 1724 var o = buildAcl(); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2157 var o = buildVideostream(); | 2192 var o = buildVideostream(); |
2158 var od = new api.Videostream.fromJson(o.toJson()); | 2193 var od = new api.Videostream.fromJson(o.toJson()); |
2159 checkVideostream(od); | 2194 checkVideostream(od); |
2160 }); | 2195 }); |
2161 }); | 2196 }); |
2162 | 2197 |
2163 | 2198 |
2164 unittest.group("resource-ActivitiesResourceApi", () { | 2199 unittest.group("resource-ActivitiesResourceApi", () { |
2165 unittest.test("method--get", () { | 2200 unittest.test("method--get", () { |
2166 | 2201 |
2167 var mock = new common_test.HttpServerMock(); | 2202 var mock = new HttpServerMock(); |
2168 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; | 2203 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; |
2169 var arg_activityId = "foo"; | 2204 var arg_activityId = "foo"; |
2170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2205 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2171 var path = (req.url).path; | 2206 var path = (req.url).path; |
2172 var pathOffset = 0; | 2207 var pathOffset = 0; |
2173 var index; | 2208 var index; |
2174 var subPart; | 2209 var subPart; |
2175 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2210 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2176 pathOffset += 1; | 2211 pathOffset += 1; |
2177 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2212 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2197 var keyvalue = part.split("="); | 2232 var keyvalue = part.split("="); |
2198 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2233 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2199 } | 2234 } |
2200 } | 2235 } |
2201 | 2236 |
2202 | 2237 |
2203 var h = { | 2238 var h = { |
2204 "content-type" : "application/json; charset=utf-8", | 2239 "content-type" : "application/json; charset=utf-8", |
2205 }; | 2240 }; |
2206 var resp = convert.JSON.encode(buildActivity()); | 2241 var resp = convert.JSON.encode(buildActivity()); |
2207 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2242 return new async.Future.value(stringResponse(200, h, resp)); |
2208 }), true); | 2243 }), true); |
2209 res.get(arg_activityId).then(unittest.expectAsync(((api.Activity response)
{ | 2244 res.get(arg_activityId).then(unittest.expectAsync(((api.Activity response)
{ |
2210 checkActivity(response); | 2245 checkActivity(response); |
2211 }))); | 2246 }))); |
2212 }); | 2247 }); |
2213 | 2248 |
2214 unittest.test("method--insert", () { | 2249 unittest.test("method--insert", () { |
2215 | 2250 |
2216 var mock = new common_test.HttpServerMock(); | 2251 var mock = new HttpServerMock(); |
2217 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; | 2252 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; |
2218 var arg_request = buildActivity(); | 2253 var arg_request = buildActivity(); |
2219 var arg_userId = "foo"; | 2254 var arg_userId = "foo"; |
2220 var arg_preview = true; | 2255 var arg_preview = true; |
2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2256 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2222 var obj = new api.Activity.fromJson(json); | 2257 var obj = new api.Activity.fromJson(json); |
2223 checkActivity(obj); | 2258 checkActivity(obj); |
2224 | 2259 |
2225 var path = (req.url).path; | 2260 var path = (req.url).path; |
2226 var pathOffset = 0; | 2261 var pathOffset = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
2256 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2291 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2257 } | 2292 } |
2258 } | 2293 } |
2259 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); | 2294 unittest.expect(queryMap["preview"].first, unittest.equals("$arg_preview
")); |
2260 | 2295 |
2261 | 2296 |
2262 var h = { | 2297 var h = { |
2263 "content-type" : "application/json; charset=utf-8", | 2298 "content-type" : "application/json; charset=utf-8", |
2264 }; | 2299 }; |
2265 var resp = convert.JSON.encode(buildActivity()); | 2300 var resp = convert.JSON.encode(buildActivity()); |
2266 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2301 return new async.Future.value(stringResponse(200, h, resp)); |
2267 }), true); | 2302 }), true); |
2268 res.insert(arg_request, arg_userId, preview: arg_preview).then(unittest.ex
pectAsync(((api.Activity response) { | 2303 res.insert(arg_request, arg_userId, preview: arg_preview).then(unittest.ex
pectAsync(((api.Activity response) { |
2269 checkActivity(response); | 2304 checkActivity(response); |
2270 }))); | 2305 }))); |
2271 }); | 2306 }); |
2272 | 2307 |
2273 unittest.test("method--list", () { | 2308 unittest.test("method--list", () { |
2274 | 2309 |
2275 var mock = new common_test.HttpServerMock(); | 2310 var mock = new HttpServerMock(); |
2276 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; | 2311 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; |
2277 var arg_userId = "foo"; | 2312 var arg_userId = "foo"; |
2278 var arg_collection = "foo"; | 2313 var arg_collection = "foo"; |
2279 var arg_maxResults = 42; | 2314 var arg_maxResults = 42; |
2280 var arg_pageToken = "foo"; | 2315 var arg_pageToken = "foo"; |
2281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2316 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2282 var path = (req.url).path; | 2317 var path = (req.url).path; |
2283 var pathOffset = 0; | 2318 var pathOffset = 0; |
2284 var index; | 2319 var index; |
2285 var subPart; | 2320 var subPart; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2317 } | 2352 } |
2318 } | 2353 } |
2319 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2354 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2320 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2355 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2321 | 2356 |
2322 | 2357 |
2323 var h = { | 2358 var h = { |
2324 "content-type" : "application/json; charset=utf-8", | 2359 "content-type" : "application/json; charset=utf-8", |
2325 }; | 2360 }; |
2326 var resp = convert.JSON.encode(buildActivityFeed()); | 2361 var resp = convert.JSON.encode(buildActivityFeed()); |
2327 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2362 return new async.Future.value(stringResponse(200, h, resp)); |
2328 }), true); | 2363 }), true); |
2329 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ActivityFeed response) { | 2364 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ActivityFeed response) { |
2330 checkActivityFeed(response); | 2365 checkActivityFeed(response); |
2331 }))); | 2366 }))); |
2332 }); | 2367 }); |
2333 | 2368 |
2334 }); | 2369 }); |
2335 | 2370 |
2336 | 2371 |
2337 unittest.group("resource-AudiencesResourceApi", () { | 2372 unittest.group("resource-AudiencesResourceApi", () { |
2338 unittest.test("method--list", () { | 2373 unittest.test("method--list", () { |
2339 | 2374 |
2340 var mock = new common_test.HttpServerMock(); | 2375 var mock = new HttpServerMock(); |
2341 api.AudiencesResourceApi res = new api.PlusDomainsApi(mock).audiences; | 2376 api.AudiencesResourceApi res = new api.PlusDomainsApi(mock).audiences; |
2342 var arg_userId = "foo"; | 2377 var arg_userId = "foo"; |
2343 var arg_maxResults = 42; | 2378 var arg_maxResults = 42; |
2344 var arg_pageToken = "foo"; | 2379 var arg_pageToken = "foo"; |
2345 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2346 var path = (req.url).path; | 2381 var path = (req.url).path; |
2347 var pathOffset = 0; | 2382 var pathOffset = 0; |
2348 var index; | 2383 var index; |
2349 var subPart; | 2384 var subPart; |
2350 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2385 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 27 matching lines...) Expand all Loading... |
2378 } | 2413 } |
2379 } | 2414 } |
2380 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2415 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2381 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2416 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2382 | 2417 |
2383 | 2418 |
2384 var h = { | 2419 var h = { |
2385 "content-type" : "application/json; charset=utf-8", | 2420 "content-type" : "application/json; charset=utf-8", |
2386 }; | 2421 }; |
2387 var resp = convert.JSON.encode(buildAudiencesFeed()); | 2422 var resp = convert.JSON.encode(buildAudiencesFeed()); |
2388 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2423 return new async.Future.value(stringResponse(200, h, resp)); |
2389 }), true); | 2424 }), true); |
2390 res.list(arg_userId, maxResults: arg_maxResults, pageToken: arg_pageToken)
.then(unittest.expectAsync(((api.AudiencesFeed response) { | 2425 res.list(arg_userId, maxResults: arg_maxResults, pageToken: arg_pageToken)
.then(unittest.expectAsync(((api.AudiencesFeed response) { |
2391 checkAudiencesFeed(response); | 2426 checkAudiencesFeed(response); |
2392 }))); | 2427 }))); |
2393 }); | 2428 }); |
2394 | 2429 |
2395 }); | 2430 }); |
2396 | 2431 |
2397 | 2432 |
2398 unittest.group("resource-CirclesResourceApi", () { | 2433 unittest.group("resource-CirclesResourceApi", () { |
2399 unittest.test("method--addPeople", () { | 2434 unittest.test("method--addPeople", () { |
2400 | 2435 |
2401 var mock = new common_test.HttpServerMock(); | 2436 var mock = new HttpServerMock(); |
2402 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2437 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2403 var arg_circleId = "foo"; | 2438 var arg_circleId = "foo"; |
2404 var arg_email = buildUnnamed966(); | 2439 var arg_email = buildUnnamed1287(); |
2405 var arg_userId = buildUnnamed967(); | 2440 var arg_userId = buildUnnamed1288(); |
2406 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2441 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2407 var path = (req.url).path; | 2442 var path = (req.url).path; |
2408 var pathOffset = 0; | 2443 var pathOffset = 0; |
2409 var index; | 2444 var index; |
2410 var subPart; | 2445 var subPart; |
2411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2446 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2412 pathOffset += 1; | 2447 pathOffset += 1; |
2413 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2448 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
2414 pathOffset += 15; | 2449 pathOffset += 15; |
2415 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2450 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
(...skipping 23 matching lines...) Expand all Loading... |
2439 } | 2474 } |
2440 } | 2475 } |
2441 unittest.expect(queryMap["email"], unittest.equals(arg_email)); | 2476 unittest.expect(queryMap["email"], unittest.equals(arg_email)); |
2442 unittest.expect(queryMap["userId"], unittest.equals(arg_userId)); | 2477 unittest.expect(queryMap["userId"], unittest.equals(arg_userId)); |
2443 | 2478 |
2444 | 2479 |
2445 var h = { | 2480 var h = { |
2446 "content-type" : "application/json; charset=utf-8", | 2481 "content-type" : "application/json; charset=utf-8", |
2447 }; | 2482 }; |
2448 var resp = convert.JSON.encode(buildCircle()); | 2483 var resp = convert.JSON.encode(buildCircle()); |
2449 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2484 return new async.Future.value(stringResponse(200, h, resp)); |
2450 }), true); | 2485 }), true); |
2451 res.addPeople(arg_circleId, email: arg_email, userId: arg_userId).then(uni
ttest.expectAsync(((api.Circle response) { | 2486 res.addPeople(arg_circleId, email: arg_email, userId: arg_userId).then(uni
ttest.expectAsync(((api.Circle response) { |
2452 checkCircle(response); | 2487 checkCircle(response); |
2453 }))); | 2488 }))); |
2454 }); | 2489 }); |
2455 | 2490 |
2456 unittest.test("method--get", () { | 2491 unittest.test("method--get", () { |
2457 | 2492 |
2458 var mock = new common_test.HttpServerMock(); | 2493 var mock = new HttpServerMock(); |
2459 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2494 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2460 var arg_circleId = "foo"; | 2495 var arg_circleId = "foo"; |
2461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2462 var path = (req.url).path; | 2497 var path = (req.url).path; |
2463 var pathOffset = 0; | 2498 var pathOffset = 0; |
2464 var index; | 2499 var index; |
2465 var subPart; | 2500 var subPart; |
2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2467 pathOffset += 1; | 2502 pathOffset += 1; |
2468 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2503 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2488 var keyvalue = part.split("="); | 2523 var keyvalue = part.split("="); |
2489 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2524 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2490 } | 2525 } |
2491 } | 2526 } |
2492 | 2527 |
2493 | 2528 |
2494 var h = { | 2529 var h = { |
2495 "content-type" : "application/json; charset=utf-8", | 2530 "content-type" : "application/json; charset=utf-8", |
2496 }; | 2531 }; |
2497 var resp = convert.JSON.encode(buildCircle()); | 2532 var resp = convert.JSON.encode(buildCircle()); |
2498 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2533 return new async.Future.value(stringResponse(200, h, resp)); |
2499 }), true); | 2534 }), true); |
2500 res.get(arg_circleId).then(unittest.expectAsync(((api.Circle response) { | 2535 res.get(arg_circleId).then(unittest.expectAsync(((api.Circle response) { |
2501 checkCircle(response); | 2536 checkCircle(response); |
2502 }))); | 2537 }))); |
2503 }); | 2538 }); |
2504 | 2539 |
2505 unittest.test("method--insert", () { | 2540 unittest.test("method--insert", () { |
2506 | 2541 |
2507 var mock = new common_test.HttpServerMock(); | 2542 var mock = new HttpServerMock(); |
2508 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2543 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2509 var arg_request = buildCircle(); | 2544 var arg_request = buildCircle(); |
2510 var arg_userId = "foo"; | 2545 var arg_userId = "foo"; |
2511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2546 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2512 var obj = new api.Circle.fromJson(json); | 2547 var obj = new api.Circle.fromJson(json); |
2513 checkCircle(obj); | 2548 checkCircle(obj); |
2514 | 2549 |
2515 var path = (req.url).path; | 2550 var path = (req.url).path; |
2516 var pathOffset = 0; | 2551 var pathOffset = 0; |
2517 var index; | 2552 var index; |
(...skipping 27 matching lines...) Expand all Loading... |
2545 var keyvalue = part.split("="); | 2580 var keyvalue = part.split("="); |
2546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2581 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2547 } | 2582 } |
2548 } | 2583 } |
2549 | 2584 |
2550 | 2585 |
2551 var h = { | 2586 var h = { |
2552 "content-type" : "application/json; charset=utf-8", | 2587 "content-type" : "application/json; charset=utf-8", |
2553 }; | 2588 }; |
2554 var resp = convert.JSON.encode(buildCircle()); | 2589 var resp = convert.JSON.encode(buildCircle()); |
2555 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2590 return new async.Future.value(stringResponse(200, h, resp)); |
2556 }), true); | 2591 }), true); |
2557 res.insert(arg_request, arg_userId).then(unittest.expectAsync(((api.Circle
response) { | 2592 res.insert(arg_request, arg_userId).then(unittest.expectAsync(((api.Circle
response) { |
2558 checkCircle(response); | 2593 checkCircle(response); |
2559 }))); | 2594 }))); |
2560 }); | 2595 }); |
2561 | 2596 |
2562 unittest.test("method--list", () { | 2597 unittest.test("method--list", () { |
2563 | 2598 |
2564 var mock = new common_test.HttpServerMock(); | 2599 var mock = new HttpServerMock(); |
2565 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2600 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2566 var arg_userId = "foo"; | 2601 var arg_userId = "foo"; |
2567 var arg_maxResults = 42; | 2602 var arg_maxResults = 42; |
2568 var arg_pageToken = "foo"; | 2603 var arg_pageToken = "foo"; |
2569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2604 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2570 var path = (req.url).path; | 2605 var path = (req.url).path; |
2571 var pathOffset = 0; | 2606 var pathOffset = 0; |
2572 var index; | 2607 var index; |
2573 var subPart; | 2608 var subPart; |
2574 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2609 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 27 matching lines...) Expand all Loading... |
2602 } | 2637 } |
2603 } | 2638 } |
2604 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 2639 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2605 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2640 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2606 | 2641 |
2607 | 2642 |
2608 var h = { | 2643 var h = { |
2609 "content-type" : "application/json; charset=utf-8", | 2644 "content-type" : "application/json; charset=utf-8", |
2610 }; | 2645 }; |
2611 var resp = convert.JSON.encode(buildCircleFeed()); | 2646 var resp = convert.JSON.encode(buildCircleFeed()); |
2612 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2647 return new async.Future.value(stringResponse(200, h, resp)); |
2613 }), true); | 2648 }), true); |
2614 res.list(arg_userId, maxResults: arg_maxResults, pageToken: arg_pageToken)
.then(unittest.expectAsync(((api.CircleFeed response) { | 2649 res.list(arg_userId, maxResults: arg_maxResults, pageToken: arg_pageToken)
.then(unittest.expectAsync(((api.CircleFeed response) { |
2615 checkCircleFeed(response); | 2650 checkCircleFeed(response); |
2616 }))); | 2651 }))); |
2617 }); | 2652 }); |
2618 | 2653 |
2619 unittest.test("method--patch", () { | 2654 unittest.test("method--patch", () { |
2620 | 2655 |
2621 var mock = new common_test.HttpServerMock(); | 2656 var mock = new HttpServerMock(); |
2622 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2657 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2623 var arg_request = buildCircle(); | 2658 var arg_request = buildCircle(); |
2624 var arg_circleId = "foo"; | 2659 var arg_circleId = "foo"; |
2625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2660 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2626 var obj = new api.Circle.fromJson(json); | 2661 var obj = new api.Circle.fromJson(json); |
2627 checkCircle(obj); | 2662 checkCircle(obj); |
2628 | 2663 |
2629 var path = (req.url).path; | 2664 var path = (req.url).path; |
2630 var pathOffset = 0; | 2665 var pathOffset = 0; |
2631 var index; | 2666 var index; |
(...skipping 23 matching lines...) Expand all Loading... |
2655 var keyvalue = part.split("="); | 2690 var keyvalue = part.split("="); |
2656 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2691 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2657 } | 2692 } |
2658 } | 2693 } |
2659 | 2694 |
2660 | 2695 |
2661 var h = { | 2696 var h = { |
2662 "content-type" : "application/json; charset=utf-8", | 2697 "content-type" : "application/json; charset=utf-8", |
2663 }; | 2698 }; |
2664 var resp = convert.JSON.encode(buildCircle()); | 2699 var resp = convert.JSON.encode(buildCircle()); |
2665 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2700 return new async.Future.value(stringResponse(200, h, resp)); |
2666 }), true); | 2701 }), true); |
2667 res.patch(arg_request, arg_circleId).then(unittest.expectAsync(((api.Circl
e response) { | 2702 res.patch(arg_request, arg_circleId).then(unittest.expectAsync(((api.Circl
e response) { |
2668 checkCircle(response); | 2703 checkCircle(response); |
2669 }))); | 2704 }))); |
2670 }); | 2705 }); |
2671 | 2706 |
2672 unittest.test("method--remove", () { | 2707 unittest.test("method--remove", () { |
2673 | 2708 |
2674 var mock = new common_test.HttpServerMock(); | 2709 var mock = new HttpServerMock(); |
2675 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2710 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2676 var arg_circleId = "foo"; | 2711 var arg_circleId = "foo"; |
2677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2678 var path = (req.url).path; | 2713 var path = (req.url).path; |
2679 var pathOffset = 0; | 2714 var pathOffset = 0; |
2680 var index; | 2715 var index; |
2681 var subPart; | 2716 var subPart; |
2682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2683 pathOffset += 1; | 2718 pathOffset += 1; |
2684 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2719 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2704 var keyvalue = part.split("="); | 2739 var keyvalue = part.split("="); |
2705 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2740 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2706 } | 2741 } |
2707 } | 2742 } |
2708 | 2743 |
2709 | 2744 |
2710 var h = { | 2745 var h = { |
2711 "content-type" : "application/json; charset=utf-8", | 2746 "content-type" : "application/json; charset=utf-8", |
2712 }; | 2747 }; |
2713 var resp = ""; | 2748 var resp = ""; |
2714 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2749 return new async.Future.value(stringResponse(200, h, resp)); |
2715 }), true); | 2750 }), true); |
2716 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); | 2751 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); |
2717 }); | 2752 }); |
2718 | 2753 |
2719 unittest.test("method--removePeople", () { | 2754 unittest.test("method--removePeople", () { |
2720 | 2755 |
2721 var mock = new common_test.HttpServerMock(); | 2756 var mock = new HttpServerMock(); |
2722 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2757 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2723 var arg_circleId = "foo"; | 2758 var arg_circleId = "foo"; |
2724 var arg_email = buildUnnamed968(); | 2759 var arg_email = buildUnnamed1289(); |
2725 var arg_userId = buildUnnamed969(); | 2760 var arg_userId = buildUnnamed1290(); |
2726 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2727 var path = (req.url).path; | 2762 var path = (req.url).path; |
2728 var pathOffset = 0; | 2763 var pathOffset = 0; |
2729 var index; | 2764 var index; |
2730 var subPart; | 2765 var subPart; |
2731 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2732 pathOffset += 1; | 2767 pathOffset += 1; |
2733 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2768 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
2734 pathOffset += 15; | 2769 pathOffset += 15; |
2735 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2770 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
(...skipping 23 matching lines...) Expand all Loading... |
2759 } | 2794 } |
2760 } | 2795 } |
2761 unittest.expect(queryMap["email"], unittest.equals(arg_email)); | 2796 unittest.expect(queryMap["email"], unittest.equals(arg_email)); |
2762 unittest.expect(queryMap["userId"], unittest.equals(arg_userId)); | 2797 unittest.expect(queryMap["userId"], unittest.equals(arg_userId)); |
2763 | 2798 |
2764 | 2799 |
2765 var h = { | 2800 var h = { |
2766 "content-type" : "application/json; charset=utf-8", | 2801 "content-type" : "application/json; charset=utf-8", |
2767 }; | 2802 }; |
2768 var resp = ""; | 2803 var resp = ""; |
2769 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2804 return new async.Future.value(stringResponse(200, h, resp)); |
2770 }), true); | 2805 }), true); |
2771 res.removePeople(arg_circleId, email: arg_email, userId: arg_userId).then(
unittest.expectAsync((_) {})); | 2806 res.removePeople(arg_circleId, email: arg_email, userId: arg_userId).then(
unittest.expectAsync((_) {})); |
2772 }); | 2807 }); |
2773 | 2808 |
2774 unittest.test("method--update", () { | 2809 unittest.test("method--update", () { |
2775 | 2810 |
2776 var mock = new common_test.HttpServerMock(); | 2811 var mock = new HttpServerMock(); |
2777 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2812 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
2778 var arg_request = buildCircle(); | 2813 var arg_request = buildCircle(); |
2779 var arg_circleId = "foo"; | 2814 var arg_circleId = "foo"; |
2780 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2781 var obj = new api.Circle.fromJson(json); | 2816 var obj = new api.Circle.fromJson(json); |
2782 checkCircle(obj); | 2817 checkCircle(obj); |
2783 | 2818 |
2784 var path = (req.url).path; | 2819 var path = (req.url).path; |
2785 var pathOffset = 0; | 2820 var pathOffset = 0; |
2786 var index; | 2821 var index; |
(...skipping 23 matching lines...) Expand all Loading... |
2810 var keyvalue = part.split("="); | 2845 var keyvalue = part.split("="); |
2811 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2846 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2812 } | 2847 } |
2813 } | 2848 } |
2814 | 2849 |
2815 | 2850 |
2816 var h = { | 2851 var h = { |
2817 "content-type" : "application/json; charset=utf-8", | 2852 "content-type" : "application/json; charset=utf-8", |
2818 }; | 2853 }; |
2819 var resp = convert.JSON.encode(buildCircle()); | 2854 var resp = convert.JSON.encode(buildCircle()); |
2820 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2855 return new async.Future.value(stringResponse(200, h, resp)); |
2821 }), true); | 2856 }), true); |
2822 res.update(arg_request, arg_circleId).then(unittest.expectAsync(((api.Circ
le response) { | 2857 res.update(arg_request, arg_circleId).then(unittest.expectAsync(((api.Circ
le response) { |
2823 checkCircle(response); | 2858 checkCircle(response); |
2824 }))); | 2859 }))); |
2825 }); | 2860 }); |
2826 | 2861 |
2827 }); | 2862 }); |
2828 | 2863 |
2829 | 2864 |
2830 unittest.group("resource-CommentsResourceApi", () { | 2865 unittest.group("resource-CommentsResourceApi", () { |
2831 unittest.test("method--get", () { | 2866 unittest.test("method--get", () { |
2832 | 2867 |
2833 var mock = new common_test.HttpServerMock(); | 2868 var mock = new HttpServerMock(); |
2834 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; | 2869 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; |
2835 var arg_commentId = "foo"; | 2870 var arg_commentId = "foo"; |
2836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2871 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2837 var path = (req.url).path; | 2872 var path = (req.url).path; |
2838 var pathOffset = 0; | 2873 var pathOffset = 0; |
2839 var index; | 2874 var index; |
2840 var subPart; | 2875 var subPart; |
2841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2876 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2842 pathOffset += 1; | 2877 pathOffset += 1; |
2843 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 2878 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
(...skipping 19 matching lines...) Expand all Loading... |
2863 var keyvalue = part.split("="); | 2898 var keyvalue = part.split("="); |
2864 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2899 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2865 } | 2900 } |
2866 } | 2901 } |
2867 | 2902 |
2868 | 2903 |
2869 var h = { | 2904 var h = { |
2870 "content-type" : "application/json; charset=utf-8", | 2905 "content-type" : "application/json; charset=utf-8", |
2871 }; | 2906 }; |
2872 var resp = convert.JSON.encode(buildComment()); | 2907 var resp = convert.JSON.encode(buildComment()); |
2873 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2908 return new async.Future.value(stringResponse(200, h, resp)); |
2874 }), true); | 2909 }), true); |
2875 res.get(arg_commentId).then(unittest.expectAsync(((api.Comment response) { | 2910 res.get(arg_commentId).then(unittest.expectAsync(((api.Comment response) { |
2876 checkComment(response); | 2911 checkComment(response); |
2877 }))); | 2912 }))); |
2878 }); | 2913 }); |
2879 | 2914 |
2880 unittest.test("method--insert", () { | 2915 unittest.test("method--insert", () { |
2881 | 2916 |
2882 var mock = new common_test.HttpServerMock(); | 2917 var mock = new HttpServerMock(); |
2883 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; | 2918 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; |
2884 var arg_request = buildComment(); | 2919 var arg_request = buildComment(); |
2885 var arg_activityId = "foo"; | 2920 var arg_activityId = "foo"; |
2886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2887 var obj = new api.Comment.fromJson(json); | 2922 var obj = new api.Comment.fromJson(json); |
2888 checkComment(obj); | 2923 checkComment(obj); |
2889 | 2924 |
2890 var path = (req.url).path; | 2925 var path = (req.url).path; |
2891 var pathOffset = 0; | 2926 var pathOffset = 0; |
2892 var index; | 2927 var index; |
(...skipping 27 matching lines...) Expand all Loading... |
2920 var keyvalue = part.split("="); | 2955 var keyvalue = part.split("="); |
2921 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2956 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2922 } | 2957 } |
2923 } | 2958 } |
2924 | 2959 |
2925 | 2960 |
2926 var h = { | 2961 var h = { |
2927 "content-type" : "application/json; charset=utf-8", | 2962 "content-type" : "application/json; charset=utf-8", |
2928 }; | 2963 }; |
2929 var resp = convert.JSON.encode(buildComment()); | 2964 var resp = convert.JSON.encode(buildComment()); |
2930 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2965 return new async.Future.value(stringResponse(200, h, resp)); |
2931 }), true); | 2966 }), true); |
2932 res.insert(arg_request, arg_activityId).then(unittest.expectAsync(((api.Co
mment response) { | 2967 res.insert(arg_request, arg_activityId).then(unittest.expectAsync(((api.Co
mment response) { |
2933 checkComment(response); | 2968 checkComment(response); |
2934 }))); | 2969 }))); |
2935 }); | 2970 }); |
2936 | 2971 |
2937 unittest.test("method--list", () { | 2972 unittest.test("method--list", () { |
2938 | 2973 |
2939 var mock = new common_test.HttpServerMock(); | 2974 var mock = new HttpServerMock(); |
2940 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; | 2975 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; |
2941 var arg_activityId = "foo"; | 2976 var arg_activityId = "foo"; |
2942 var arg_maxResults = 42; | 2977 var arg_maxResults = 42; |
2943 var arg_pageToken = "foo"; | 2978 var arg_pageToken = "foo"; |
2944 var arg_sortOrder = "foo"; | 2979 var arg_sortOrder = "foo"; |
2945 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2946 var path = (req.url).path; | 2981 var path = (req.url).path; |
2947 var pathOffset = 0; | 2982 var pathOffset = 0; |
2948 var index; | 2983 var index; |
2949 var subPart; | 2984 var subPart; |
(...skipping 29 matching lines...) Expand all Loading... |
2979 } | 3014 } |
2980 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3015 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
2981 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3016 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2982 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 3017 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
2983 | 3018 |
2984 | 3019 |
2985 var h = { | 3020 var h = { |
2986 "content-type" : "application/json; charset=utf-8", | 3021 "content-type" : "application/json; charset=utf-8", |
2987 }; | 3022 }; |
2988 var resp = convert.JSON.encode(buildCommentFeed()); | 3023 var resp = convert.JSON.encode(buildCommentFeed()); |
2989 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3024 return new async.Future.value(stringResponse(200, h, resp)); |
2990 }), true); | 3025 }), true); |
2991 res.list(arg_activityId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CommentFeed respo
nse) { | 3026 res.list(arg_activityId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CommentFeed respo
nse) { |
2992 checkCommentFeed(response); | 3027 checkCommentFeed(response); |
2993 }))); | 3028 }))); |
2994 }); | 3029 }); |
2995 | 3030 |
2996 }); | 3031 }); |
2997 | 3032 |
2998 | 3033 |
2999 unittest.group("resource-MediaResourceApi", () { | 3034 unittest.group("resource-MediaResourceApi", () { |
3000 unittest.test("method--insert", () { | 3035 unittest.test("method--insert", () { |
3001 // TODO: Implement tests for media upload; | 3036 // TODO: Implement tests for media upload; |
3002 // TODO: Implement tests for media download; | 3037 // TODO: Implement tests for media download; |
3003 | 3038 |
3004 var mock = new common_test.HttpServerMock(); | 3039 var mock = new HttpServerMock(); |
3005 api.MediaResourceApi res = new api.PlusDomainsApi(mock).media; | 3040 api.MediaResourceApi res = new api.PlusDomainsApi(mock).media; |
3006 var arg_request = buildMedia(); | 3041 var arg_request = buildMedia(); |
3007 var arg_userId = "foo"; | 3042 var arg_userId = "foo"; |
3008 var arg_collection = "foo"; | 3043 var arg_collection = "foo"; |
3009 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3044 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3010 var obj = new api.Media.fromJson(json); | 3045 var obj = new api.Media.fromJson(json); |
3011 checkMedia(obj); | 3046 checkMedia(obj); |
3012 | 3047 |
3013 var path = (req.url).path; | 3048 var path = (req.url).path; |
3014 var pathOffset = 0; | 3049 var pathOffset = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3046 var keyvalue = part.split("="); | 3081 var keyvalue = part.split("="); |
3047 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3082 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3048 } | 3083 } |
3049 } | 3084 } |
3050 | 3085 |
3051 | 3086 |
3052 var h = { | 3087 var h = { |
3053 "content-type" : "application/json; charset=utf-8", | 3088 "content-type" : "application/json; charset=utf-8", |
3054 }; | 3089 }; |
3055 var resp = convert.JSON.encode(buildMedia()); | 3090 var resp = convert.JSON.encode(buildMedia()); |
3056 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3091 return new async.Future.value(stringResponse(200, h, resp)); |
3057 }), true); | 3092 }), true); |
3058 res.insert(arg_request, arg_userId, arg_collection).then(unittest.expectAs
ync(((api.Media response) { | 3093 res.insert(arg_request, arg_userId, arg_collection).then(unittest.expectAs
ync(((api.Media response) { |
3059 checkMedia(response); | 3094 checkMedia(response); |
3060 }))); | 3095 }))); |
3061 }); | 3096 }); |
3062 | 3097 |
3063 }); | 3098 }); |
3064 | 3099 |
3065 | 3100 |
3066 unittest.group("resource-PeopleResourceApi", () { | 3101 unittest.group("resource-PeopleResourceApi", () { |
3067 unittest.test("method--get", () { | 3102 unittest.test("method--get", () { |
3068 | 3103 |
3069 var mock = new common_test.HttpServerMock(); | 3104 var mock = new HttpServerMock(); |
3070 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3105 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
3071 var arg_userId = "foo"; | 3106 var arg_userId = "foo"; |
3072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3073 var path = (req.url).path; | 3108 var path = (req.url).path; |
3074 var pathOffset = 0; | 3109 var pathOffset = 0; |
3075 var index; | 3110 var index; |
3076 var subPart; | 3111 var subPart; |
3077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3078 pathOffset += 1; | 3113 pathOffset += 1; |
3079 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); | 3114 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
(...skipping 19 matching lines...) Expand all Loading... |
3099 var keyvalue = part.split("="); | 3134 var keyvalue = part.split("="); |
3100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3135 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3101 } | 3136 } |
3102 } | 3137 } |
3103 | 3138 |
3104 | 3139 |
3105 var h = { | 3140 var h = { |
3106 "content-type" : "application/json; charset=utf-8", | 3141 "content-type" : "application/json; charset=utf-8", |
3107 }; | 3142 }; |
3108 var resp = convert.JSON.encode(buildPerson()); | 3143 var resp = convert.JSON.encode(buildPerson()); |
3109 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3144 return new async.Future.value(stringResponse(200, h, resp)); |
3110 }), true); | 3145 }), true); |
3111 res.get(arg_userId).then(unittest.expectAsync(((api.Person response) { | 3146 res.get(arg_userId).then(unittest.expectAsync(((api.Person response) { |
3112 checkPerson(response); | 3147 checkPerson(response); |
3113 }))); | 3148 }))); |
3114 }); | 3149 }); |
3115 | 3150 |
3116 unittest.test("method--list", () { | 3151 unittest.test("method--list", () { |
3117 | 3152 |
3118 var mock = new common_test.HttpServerMock(); | 3153 var mock = new HttpServerMock(); |
3119 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3154 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
3120 var arg_userId = "foo"; | 3155 var arg_userId = "foo"; |
3121 var arg_collection = "foo"; | 3156 var arg_collection = "foo"; |
3122 var arg_maxResults = 42; | 3157 var arg_maxResults = 42; |
3123 var arg_orderBy = "foo"; | 3158 var arg_orderBy = "foo"; |
3124 var arg_pageToken = "foo"; | 3159 var arg_pageToken = "foo"; |
3125 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3126 var path = (req.url).path; | 3161 var path = (req.url).path; |
3127 var pathOffset = 0; | 3162 var pathOffset = 0; |
3128 var index; | 3163 var index; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3162 } | 3197 } |
3163 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3198 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
3164 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 3199 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
3165 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3200 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3166 | 3201 |
3167 | 3202 |
3168 var h = { | 3203 var h = { |
3169 "content-type" : "application/json; charset=utf-8", | 3204 "content-type" : "application/json; charset=utf-8", |
3170 }; | 3205 }; |
3171 var resp = convert.JSON.encode(buildPeopleFeed()); | 3206 var resp = convert.JSON.encode(buildPeopleFeed()); |
3172 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3207 return new async.Future.value(stringResponse(200, h, resp)); |
3173 }), true); | 3208 }), true); |
3174 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, orderBy:
arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFee
d response) { | 3209 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, orderBy:
arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFee
d response) { |
3175 checkPeopleFeed(response); | 3210 checkPeopleFeed(response); |
3176 }))); | 3211 }))); |
3177 }); | 3212 }); |
3178 | 3213 |
3179 unittest.test("method--listByActivity", () { | 3214 unittest.test("method--listByActivity", () { |
3180 | 3215 |
3181 var mock = new common_test.HttpServerMock(); | 3216 var mock = new HttpServerMock(); |
3182 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3217 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
3183 var arg_activityId = "foo"; | 3218 var arg_activityId = "foo"; |
3184 var arg_collection = "foo"; | 3219 var arg_collection = "foo"; |
3185 var arg_maxResults = 42; | 3220 var arg_maxResults = 42; |
3186 var arg_pageToken = "foo"; | 3221 var arg_pageToken = "foo"; |
3187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3222 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3188 var path = (req.url).path; | 3223 var path = (req.url).path; |
3189 var pathOffset = 0; | 3224 var pathOffset = 0; |
3190 var index; | 3225 var index; |
3191 var subPart; | 3226 var subPart; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3223 } | 3258 } |
3224 } | 3259 } |
3225 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3260 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
3226 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3261 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3227 | 3262 |
3228 | 3263 |
3229 var h = { | 3264 var h = { |
3230 "content-type" : "application/json; charset=utf-8", | 3265 "content-type" : "application/json; charset=utf-8", |
3231 }; | 3266 }; |
3232 var resp = convert.JSON.encode(buildPeopleFeed()); | 3267 var resp = convert.JSON.encode(buildPeopleFeed()); |
3233 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3268 return new async.Future.value(stringResponse(200, h, resp)); |
3234 }), true); | 3269 }), true); |
3235 res.listByActivity(arg_activityId, arg_collection, maxResults: arg_maxResu
lts, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed respon
se) { | 3270 res.listByActivity(arg_activityId, arg_collection, maxResults: arg_maxResu
lts, pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed respon
se) { |
3236 checkPeopleFeed(response); | 3271 checkPeopleFeed(response); |
3237 }))); | 3272 }))); |
3238 }); | 3273 }); |
3239 | 3274 |
3240 unittest.test("method--listByCircle", () { | 3275 unittest.test("method--listByCircle", () { |
3241 | 3276 |
3242 var mock = new common_test.HttpServerMock(); | 3277 var mock = new HttpServerMock(); |
3243 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3278 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
3244 var arg_circleId = "foo"; | 3279 var arg_circleId = "foo"; |
3245 var arg_maxResults = 42; | 3280 var arg_maxResults = 42; |
3246 var arg_pageToken = "foo"; | 3281 var arg_pageToken = "foo"; |
3247 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3248 var path = (req.url).path; | 3283 var path = (req.url).path; |
3249 var pathOffset = 0; | 3284 var pathOffset = 0; |
3250 var index; | 3285 var index; |
3251 var subPart; | 3286 var subPart; |
3252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 27 matching lines...) Expand all Loading... |
3280 } | 3315 } |
3281 } | 3316 } |
3282 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3317 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
3283 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3318 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3284 | 3319 |
3285 | 3320 |
3286 var h = { | 3321 var h = { |
3287 "content-type" : "application/json; charset=utf-8", | 3322 "content-type" : "application/json; charset=utf-8", |
3288 }; | 3323 }; |
3289 var resp = convert.JSON.encode(buildPeopleFeed()); | 3324 var resp = convert.JSON.encode(buildPeopleFeed()); |
3290 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3325 return new async.Future.value(stringResponse(200, h, resp)); |
3291 }), true); | 3326 }), true); |
3292 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { | 3327 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { |
3293 checkPeopleFeed(response); | 3328 checkPeopleFeed(response); |
3294 }))); | 3329 }))); |
3295 }); | 3330 }); |
3296 | 3331 |
3297 }); | 3332 }); |
3298 | 3333 |
3299 | 3334 |
3300 } | 3335 } |
3301 | 3336 |
OLD | NEW |