| 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; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/plusdomains/v1.dart' as api; | 15 import 'package:googleapis/plusdomains/v1.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed637() { | 19 buildUnnamed665() { |
| 20 var o = new core.List<api.PlusDomainsAclentryResource>(); | 20 var o = new core.List<api.PlusDomainsAclentryResource>(); |
| 21 o.add(buildPlusDomainsAclentryResource()); | 21 o.add(buildPlusDomainsAclentryResource()); |
| 22 o.add(buildPlusDomainsAclentryResource()); | 22 o.add(buildPlusDomainsAclentryResource()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed637(core.List<api.PlusDomainsAclentryResource> o) { | 26 checkUnnamed665(core.List<api.PlusDomainsAclentryResource> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkPlusDomainsAclentryResource(o[0]); | 28 checkPlusDomainsAclentryResource(o[0]); |
| 29 checkPlusDomainsAclentryResource(o[1]); | 29 checkPlusDomainsAclentryResource(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterAcl = 0; | 32 core.int buildCounterAcl = 0; |
| 33 buildAcl() { | 33 buildAcl() { |
| 34 var o = new api.Acl(); | 34 var o = new api.Acl(); |
| 35 buildCounterAcl++; | 35 buildCounterAcl++; |
| 36 if (buildCounterAcl < 3) { | 36 if (buildCounterAcl < 3) { |
| 37 o.description = "foo"; | 37 o.description = "foo"; |
| 38 o.domainRestricted = true; | 38 o.domainRestricted = true; |
| 39 o.items = buildUnnamed637(); | 39 o.items = buildUnnamed665(); |
| 40 o.kind = "foo"; | 40 o.kind = "foo"; |
| 41 } | 41 } |
| 42 buildCounterAcl--; | 42 buildCounterAcl--; |
| 43 return o; | 43 return o; |
| 44 } | 44 } |
| 45 | 45 |
| 46 checkAcl(api.Acl o) { | 46 checkAcl(api.Acl o) { |
| 47 buildCounterAcl++; | 47 buildCounterAcl++; |
| 48 if (buildCounterAcl < 3) { | 48 if (buildCounterAcl < 3) { |
| 49 unittest.expect(o.description, unittest.equals('foo')); | 49 unittest.expect(o.description, unittest.equals('foo')); |
| 50 unittest.expect(o.domainRestricted, unittest.isTrue); | 50 unittest.expect(o.domainRestricted, unittest.isTrue); |
| 51 checkUnnamed637(o.items); | 51 checkUnnamed665(o.items); |
| 52 unittest.expect(o.kind, unittest.equals('foo')); | 52 unittest.expect(o.kind, unittest.equals('foo')); |
| 53 } | 53 } |
| 54 buildCounterAcl--; | 54 buildCounterAcl--; |
| 55 } | 55 } |
| 56 | 56 |
| 57 core.int buildCounterActivityActorImage = 0; | 57 core.int buildCounterActivityActorImage = 0; |
| 58 buildActivityActorImage() { | 58 buildActivityActorImage() { |
| 59 var o = new api.ActivityActorImage(); | 59 var o = new api.ActivityActorImage(); |
| 60 buildCounterActivityActorImage++; | 60 buildCounterActivityActorImage++; |
| 61 if (buildCounterActivityActorImage < 3) { | 61 if (buildCounterActivityActorImage < 3) { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 | 249 |
| 250 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { | 250 checkActivityObjectAttachmentsPreviewThumbnails(api.ActivityObjectAttachmentsPre
viewThumbnails o) { |
| 251 buildCounterActivityObjectAttachmentsPreviewThumbnails++; | 251 buildCounterActivityObjectAttachmentsPreviewThumbnails++; |
| 252 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { | 252 if (buildCounterActivityObjectAttachmentsPreviewThumbnails < 3) { |
| 253 unittest.expect(o.url, unittest.equals('foo')); | 253 unittest.expect(o.url, unittest.equals('foo')); |
| 254 } | 254 } |
| 255 buildCounterActivityObjectAttachmentsPreviewThumbnails--; | 255 buildCounterActivityObjectAttachmentsPreviewThumbnails--; |
| 256 } | 256 } |
| 257 | 257 |
| 258 buildUnnamed638() { | 258 buildUnnamed666() { |
| 259 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); | 259 var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); |
| 260 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 260 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
| 261 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); | 261 o.add(buildActivityObjectAttachmentsPreviewThumbnails()); |
| 262 return o; | 262 return o; |
| 263 } | 263 } |
| 264 | 264 |
| 265 checkUnnamed638(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { | 265 checkUnnamed666(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { |
| 266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 267 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); | 267 checkActivityObjectAttachmentsPreviewThumbnails(o[0]); |
| 268 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); | 268 checkActivityObjectAttachmentsPreviewThumbnails(o[1]); |
| 269 } | 269 } |
| 270 | 270 |
| 271 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; | 271 core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; |
| 272 buildActivityObjectAttachmentsThumbnailsImage() { | 272 buildActivityObjectAttachmentsThumbnailsImage() { |
| 273 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); | 273 var o = new api.ActivityObjectAttachmentsThumbnailsImage(); |
| 274 buildCounterActivityObjectAttachmentsThumbnailsImage++; | 274 buildCounterActivityObjectAttachmentsThumbnailsImage++; |
| 275 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { | 275 if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { | 309 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { |
| 310 buildCounterActivityObjectAttachmentsThumbnails++; | 310 buildCounterActivityObjectAttachmentsThumbnails++; |
| 311 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { | 311 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { |
| 312 unittest.expect(o.description, unittest.equals('foo')); | 312 unittest.expect(o.description, unittest.equals('foo')); |
| 313 checkActivityObjectAttachmentsThumbnailsImage(o.image); | 313 checkActivityObjectAttachmentsThumbnailsImage(o.image); |
| 314 unittest.expect(o.url, unittest.equals('foo')); | 314 unittest.expect(o.url, unittest.equals('foo')); |
| 315 } | 315 } |
| 316 buildCounterActivityObjectAttachmentsThumbnails--; | 316 buildCounterActivityObjectAttachmentsThumbnails--; |
| 317 } | 317 } |
| 318 | 318 |
| 319 buildUnnamed639() { | 319 buildUnnamed667() { |
| 320 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); | 320 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); |
| 321 o.add(buildActivityObjectAttachmentsThumbnails()); | 321 o.add(buildActivityObjectAttachmentsThumbnails()); |
| 322 o.add(buildActivityObjectAttachmentsThumbnails()); | 322 o.add(buildActivityObjectAttachmentsThumbnails()); |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkUnnamed639(core.List<api.ActivityObjectAttachmentsThumbnails> o) { | 326 checkUnnamed667(core.List<api.ActivityObjectAttachmentsThumbnails> o) { |
| 327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
| 328 checkActivityObjectAttachmentsThumbnails(o[0]); | 328 checkActivityObjectAttachmentsThumbnails(o[0]); |
| 329 checkActivityObjectAttachmentsThumbnails(o[1]); | 329 checkActivityObjectAttachmentsThumbnails(o[1]); |
| 330 } | 330 } |
| 331 | 331 |
| 332 core.int buildCounterActivityObjectAttachments = 0; | 332 core.int buildCounterActivityObjectAttachments = 0; |
| 333 buildActivityObjectAttachments() { | 333 buildActivityObjectAttachments() { |
| 334 var o = new api.ActivityObjectAttachments(); | 334 var o = new api.ActivityObjectAttachments(); |
| 335 buildCounterActivityObjectAttachments++; | 335 buildCounterActivityObjectAttachments++; |
| 336 if (buildCounterActivityObjectAttachments < 3) { | 336 if (buildCounterActivityObjectAttachments < 3) { |
| 337 o.content = "foo"; | 337 o.content = "foo"; |
| 338 o.displayName = "foo"; | 338 o.displayName = "foo"; |
| 339 o.embed = buildActivityObjectAttachmentsEmbed(); | 339 o.embed = buildActivityObjectAttachmentsEmbed(); |
| 340 o.fullImage = buildActivityObjectAttachmentsFullImage(); | 340 o.fullImage = buildActivityObjectAttachmentsFullImage(); |
| 341 o.id = "foo"; | 341 o.id = "foo"; |
| 342 o.image = buildActivityObjectAttachmentsImage(); | 342 o.image = buildActivityObjectAttachmentsImage(); |
| 343 o.objectType = "foo"; | 343 o.objectType = "foo"; |
| 344 o.previewThumbnails = buildUnnamed638(); | 344 o.previewThumbnails = buildUnnamed666(); |
| 345 o.thumbnails = buildUnnamed639(); | 345 o.thumbnails = buildUnnamed667(); |
| 346 o.url = "foo"; | 346 o.url = "foo"; |
| 347 } | 347 } |
| 348 buildCounterActivityObjectAttachments--; | 348 buildCounterActivityObjectAttachments--; |
| 349 return o; | 349 return o; |
| 350 } | 350 } |
| 351 | 351 |
| 352 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { | 352 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { |
| 353 buildCounterActivityObjectAttachments++; | 353 buildCounterActivityObjectAttachments++; |
| 354 if (buildCounterActivityObjectAttachments < 3) { | 354 if (buildCounterActivityObjectAttachments < 3) { |
| 355 unittest.expect(o.content, unittest.equals('foo')); | 355 unittest.expect(o.content, unittest.equals('foo')); |
| 356 unittest.expect(o.displayName, unittest.equals('foo')); | 356 unittest.expect(o.displayName, unittest.equals('foo')); |
| 357 checkActivityObjectAttachmentsEmbed(o.embed); | 357 checkActivityObjectAttachmentsEmbed(o.embed); |
| 358 checkActivityObjectAttachmentsFullImage(o.fullImage); | 358 checkActivityObjectAttachmentsFullImage(o.fullImage); |
| 359 unittest.expect(o.id, unittest.equals('foo')); | 359 unittest.expect(o.id, unittest.equals('foo')); |
| 360 checkActivityObjectAttachmentsImage(o.image); | 360 checkActivityObjectAttachmentsImage(o.image); |
| 361 unittest.expect(o.objectType, unittest.equals('foo')); | 361 unittest.expect(o.objectType, unittest.equals('foo')); |
| 362 checkUnnamed638(o.previewThumbnails); | 362 checkUnnamed666(o.previewThumbnails); |
| 363 checkUnnamed639(o.thumbnails); | 363 checkUnnamed667(o.thumbnails); |
| 364 unittest.expect(o.url, unittest.equals('foo')); | 364 unittest.expect(o.url, unittest.equals('foo')); |
| 365 } | 365 } |
| 366 buildCounterActivityObjectAttachments--; | 366 buildCounterActivityObjectAttachments--; |
| 367 } | 367 } |
| 368 | 368 |
| 369 buildUnnamed640() { | 369 buildUnnamed668() { |
| 370 var o = new core.List<api.ActivityObjectAttachments>(); | 370 var o = new core.List<api.ActivityObjectAttachments>(); |
| 371 o.add(buildActivityObjectAttachments()); | 371 o.add(buildActivityObjectAttachments()); |
| 372 o.add(buildActivityObjectAttachments()); | 372 o.add(buildActivityObjectAttachments()); |
| 373 return o; | 373 return o; |
| 374 } | 374 } |
| 375 | 375 |
| 376 checkUnnamed640(core.List<api.ActivityObjectAttachments> o) { | 376 checkUnnamed668(core.List<api.ActivityObjectAttachments> o) { |
| 377 unittest.expect(o, unittest.hasLength(2)); | 377 unittest.expect(o, unittest.hasLength(2)); |
| 378 checkActivityObjectAttachments(o[0]); | 378 checkActivityObjectAttachments(o[0]); |
| 379 checkActivityObjectAttachments(o[1]); | 379 checkActivityObjectAttachments(o[1]); |
| 380 } | 380 } |
| 381 | 381 |
| 382 core.int buildCounterActivityObjectPlusoners = 0; | 382 core.int buildCounterActivityObjectPlusoners = 0; |
| 383 buildActivityObjectPlusoners() { | 383 buildActivityObjectPlusoners() { |
| 384 var o = new api.ActivityObjectPlusoners(); | 384 var o = new api.ActivityObjectPlusoners(); |
| 385 buildCounterActivityObjectPlusoners++; | 385 buildCounterActivityObjectPlusoners++; |
| 386 if (buildCounterActivityObjectPlusoners < 3) { | 386 if (buildCounterActivityObjectPlusoners < 3) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 } | 468 } |
| 469 buildCounterActivityObjectStatusForViewer--; | 469 buildCounterActivityObjectStatusForViewer--; |
| 470 } | 470 } |
| 471 | 471 |
| 472 core.int buildCounterActivityObject = 0; | 472 core.int buildCounterActivityObject = 0; |
| 473 buildActivityObject() { | 473 buildActivityObject() { |
| 474 var o = new api.ActivityObject(); | 474 var o = new api.ActivityObject(); |
| 475 buildCounterActivityObject++; | 475 buildCounterActivityObject++; |
| 476 if (buildCounterActivityObject < 3) { | 476 if (buildCounterActivityObject < 3) { |
| 477 o.actor = buildActivityObjectActor(); | 477 o.actor = buildActivityObjectActor(); |
| 478 o.attachments = buildUnnamed640(); | 478 o.attachments = buildUnnamed668(); |
| 479 o.content = "foo"; | 479 o.content = "foo"; |
| 480 o.id = "foo"; | 480 o.id = "foo"; |
| 481 o.objectType = "foo"; | 481 o.objectType = "foo"; |
| 482 o.originalContent = "foo"; | 482 o.originalContent = "foo"; |
| 483 o.plusoners = buildActivityObjectPlusoners(); | 483 o.plusoners = buildActivityObjectPlusoners(); |
| 484 o.replies = buildActivityObjectReplies(); | 484 o.replies = buildActivityObjectReplies(); |
| 485 o.resharers = buildActivityObjectResharers(); | 485 o.resharers = buildActivityObjectResharers(); |
| 486 o.statusForViewer = buildActivityObjectStatusForViewer(); | 486 o.statusForViewer = buildActivityObjectStatusForViewer(); |
| 487 o.url = "foo"; | 487 o.url = "foo"; |
| 488 } | 488 } |
| 489 buildCounterActivityObject--; | 489 buildCounterActivityObject--; |
| 490 return o; | 490 return o; |
| 491 } | 491 } |
| 492 | 492 |
| 493 checkActivityObject(api.ActivityObject o) { | 493 checkActivityObject(api.ActivityObject o) { |
| 494 buildCounterActivityObject++; | 494 buildCounterActivityObject++; |
| 495 if (buildCounterActivityObject < 3) { | 495 if (buildCounterActivityObject < 3) { |
| 496 checkActivityObjectActor(o.actor); | 496 checkActivityObjectActor(o.actor); |
| 497 checkUnnamed640(o.attachments); | 497 checkUnnamed668(o.attachments); |
| 498 unittest.expect(o.content, unittest.equals('foo')); | 498 unittest.expect(o.content, unittest.equals('foo')); |
| 499 unittest.expect(o.id, unittest.equals('foo')); | 499 unittest.expect(o.id, unittest.equals('foo')); |
| 500 unittest.expect(o.objectType, unittest.equals('foo')); | 500 unittest.expect(o.objectType, unittest.equals('foo')); |
| 501 unittest.expect(o.originalContent, unittest.equals('foo')); | 501 unittest.expect(o.originalContent, unittest.equals('foo')); |
| 502 checkActivityObjectPlusoners(o.plusoners); | 502 checkActivityObjectPlusoners(o.plusoners); |
| 503 checkActivityObjectReplies(o.replies); | 503 checkActivityObjectReplies(o.replies); |
| 504 checkActivityObjectResharers(o.resharers); | 504 checkActivityObjectResharers(o.resharers); |
| 505 checkActivityObjectStatusForViewer(o.statusForViewer); | 505 checkActivityObjectStatusForViewer(o.statusForViewer); |
| 506 unittest.expect(o.url, unittest.equals('foo')); | 506 unittest.expect(o.url, unittest.equals('foo')); |
| 507 } | 507 } |
| (...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"))); | 577 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 578 unittest.expect(o.radius, unittest.equals('foo')); | 578 unittest.expect(o.radius, unittest.equals('foo')); |
| 579 unittest.expect(o.title, unittest.equals('foo')); | 579 unittest.expect(o.title, unittest.equals('foo')); |
| 580 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 580 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 581 unittest.expect(o.url, unittest.equals('foo')); | 581 unittest.expect(o.url, unittest.equals('foo')); |
| 582 unittest.expect(o.verb, unittest.equals('foo')); | 582 unittest.expect(o.verb, unittest.equals('foo')); |
| 583 } | 583 } |
| 584 buildCounterActivity--; | 584 buildCounterActivity--; |
| 585 } | 585 } |
| 586 | 586 |
| 587 buildUnnamed641() { | 587 buildUnnamed669() { |
| 588 var o = new core.List<api.Activity>(); | 588 var o = new core.List<api.Activity>(); |
| 589 o.add(buildActivity()); | 589 o.add(buildActivity()); |
| 590 o.add(buildActivity()); | 590 o.add(buildActivity()); |
| 591 return o; | 591 return o; |
| 592 } | 592 } |
| 593 | 593 |
| 594 checkUnnamed641(core.List<api.Activity> o) { | 594 checkUnnamed669(core.List<api.Activity> o) { |
| 595 unittest.expect(o, unittest.hasLength(2)); | 595 unittest.expect(o, unittest.hasLength(2)); |
| 596 checkActivity(o[0]); | 596 checkActivity(o[0]); |
| 597 checkActivity(o[1]); | 597 checkActivity(o[1]); |
| 598 } | 598 } |
| 599 | 599 |
| 600 core.int buildCounterActivityFeed = 0; | 600 core.int buildCounterActivityFeed = 0; |
| 601 buildActivityFeed() { | 601 buildActivityFeed() { |
| 602 var o = new api.ActivityFeed(); | 602 var o = new api.ActivityFeed(); |
| 603 buildCounterActivityFeed++; | 603 buildCounterActivityFeed++; |
| 604 if (buildCounterActivityFeed < 3) { | 604 if (buildCounterActivityFeed < 3) { |
| 605 o.etag = "foo"; | 605 o.etag = "foo"; |
| 606 o.id = "foo"; | 606 o.id = "foo"; |
| 607 o.items = buildUnnamed641(); | 607 o.items = buildUnnamed669(); |
| 608 o.kind = "foo"; | 608 o.kind = "foo"; |
| 609 o.nextLink = "foo"; | 609 o.nextLink = "foo"; |
| 610 o.nextPageToken = "foo"; | 610 o.nextPageToken = "foo"; |
| 611 o.selfLink = "foo"; | 611 o.selfLink = "foo"; |
| 612 o.title = "foo"; | 612 o.title = "foo"; |
| 613 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 613 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 614 } | 614 } |
| 615 buildCounterActivityFeed--; | 615 buildCounterActivityFeed--; |
| 616 return o; | 616 return o; |
| 617 } | 617 } |
| 618 | 618 |
| 619 checkActivityFeed(api.ActivityFeed o) { | 619 checkActivityFeed(api.ActivityFeed o) { |
| 620 buildCounterActivityFeed++; | 620 buildCounterActivityFeed++; |
| 621 if (buildCounterActivityFeed < 3) { | 621 if (buildCounterActivityFeed < 3) { |
| 622 unittest.expect(o.etag, unittest.equals('foo')); | 622 unittest.expect(o.etag, unittest.equals('foo')); |
| 623 unittest.expect(o.id, unittest.equals('foo')); | 623 unittest.expect(o.id, unittest.equals('foo')); |
| 624 checkUnnamed641(o.items); | 624 checkUnnamed669(o.items); |
| 625 unittest.expect(o.kind, unittest.equals('foo')); | 625 unittest.expect(o.kind, unittest.equals('foo')); |
| 626 unittest.expect(o.nextLink, unittest.equals('foo')); | 626 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 627 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 627 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 628 unittest.expect(o.selfLink, unittest.equals('foo')); | 628 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 629 unittest.expect(o.title, unittest.equals('foo')); | 629 unittest.expect(o.title, unittest.equals('foo')); |
| 630 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 630 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 631 } | 631 } |
| 632 buildCounterActivityFeed--; | 632 buildCounterActivityFeed--; |
| 633 } | 633 } |
| 634 | 634 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 652 if (buildCounterAudience < 3) { | 652 if (buildCounterAudience < 3) { |
| 653 unittest.expect(o.etag, unittest.equals('foo')); | 653 unittest.expect(o.etag, unittest.equals('foo')); |
| 654 checkPlusDomainsAclentryResource(o.item); | 654 checkPlusDomainsAclentryResource(o.item); |
| 655 unittest.expect(o.kind, unittest.equals('foo')); | 655 unittest.expect(o.kind, unittest.equals('foo')); |
| 656 unittest.expect(o.memberCount, unittest.equals(42)); | 656 unittest.expect(o.memberCount, unittest.equals(42)); |
| 657 unittest.expect(o.visibility, unittest.equals('foo')); | 657 unittest.expect(o.visibility, unittest.equals('foo')); |
| 658 } | 658 } |
| 659 buildCounterAudience--; | 659 buildCounterAudience--; |
| 660 } | 660 } |
| 661 | 661 |
| 662 buildUnnamed642() { | 662 buildUnnamed670() { |
| 663 var o = new core.List<api.Audience>(); | 663 var o = new core.List<api.Audience>(); |
| 664 o.add(buildAudience()); | 664 o.add(buildAudience()); |
| 665 o.add(buildAudience()); | 665 o.add(buildAudience()); |
| 666 return o; | 666 return o; |
| 667 } | 667 } |
| 668 | 668 |
| 669 checkUnnamed642(core.List<api.Audience> o) { | 669 checkUnnamed670(core.List<api.Audience> o) { |
| 670 unittest.expect(o, unittest.hasLength(2)); | 670 unittest.expect(o, unittest.hasLength(2)); |
| 671 checkAudience(o[0]); | 671 checkAudience(o[0]); |
| 672 checkAudience(o[1]); | 672 checkAudience(o[1]); |
| 673 } | 673 } |
| 674 | 674 |
| 675 core.int buildCounterAudiencesFeed = 0; | 675 core.int buildCounterAudiencesFeed = 0; |
| 676 buildAudiencesFeed() { | 676 buildAudiencesFeed() { |
| 677 var o = new api.AudiencesFeed(); | 677 var o = new api.AudiencesFeed(); |
| 678 buildCounterAudiencesFeed++; | 678 buildCounterAudiencesFeed++; |
| 679 if (buildCounterAudiencesFeed < 3) { | 679 if (buildCounterAudiencesFeed < 3) { |
| 680 o.etag = "foo"; | 680 o.etag = "foo"; |
| 681 o.items = buildUnnamed642(); | 681 o.items = buildUnnamed670(); |
| 682 o.kind = "foo"; | 682 o.kind = "foo"; |
| 683 o.nextPageToken = "foo"; | 683 o.nextPageToken = "foo"; |
| 684 o.totalItems = 42; | 684 o.totalItems = 42; |
| 685 } | 685 } |
| 686 buildCounterAudiencesFeed--; | 686 buildCounterAudiencesFeed--; |
| 687 return o; | 687 return o; |
| 688 } | 688 } |
| 689 | 689 |
| 690 checkAudiencesFeed(api.AudiencesFeed o) { | 690 checkAudiencesFeed(api.AudiencesFeed o) { |
| 691 buildCounterAudiencesFeed++; | 691 buildCounterAudiencesFeed++; |
| 692 if (buildCounterAudiencesFeed < 3) { | 692 if (buildCounterAudiencesFeed < 3) { |
| 693 unittest.expect(o.etag, unittest.equals('foo')); | 693 unittest.expect(o.etag, unittest.equals('foo')); |
| 694 checkUnnamed642(o.items); | 694 checkUnnamed670(o.items); |
| 695 unittest.expect(o.kind, unittest.equals('foo')); | 695 unittest.expect(o.kind, unittest.equals('foo')); |
| 696 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 696 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 697 unittest.expect(o.totalItems, unittest.equals(42)); | 697 unittest.expect(o.totalItems, unittest.equals(42)); |
| 698 } | 698 } |
| 699 buildCounterAudiencesFeed--; | 699 buildCounterAudiencesFeed--; |
| 700 } | 700 } |
| 701 | 701 |
| 702 core.int buildCounterCirclePeople = 0; | 702 core.int buildCounterCirclePeople = 0; |
| 703 buildCirclePeople() { | 703 buildCirclePeople() { |
| 704 var o = new api.CirclePeople(); | 704 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')); | 742 unittest.expect(o.displayName, unittest.equals('foo')); |
| 743 unittest.expect(o.etag, unittest.equals('foo')); | 743 unittest.expect(o.etag, unittest.equals('foo')); |
| 744 unittest.expect(o.id, unittest.equals('foo')); | 744 unittest.expect(o.id, unittest.equals('foo')); |
| 745 unittest.expect(o.kind, unittest.equals('foo')); | 745 unittest.expect(o.kind, unittest.equals('foo')); |
| 746 checkCirclePeople(o.people); | 746 checkCirclePeople(o.people); |
| 747 unittest.expect(o.selfLink, unittest.equals('foo')); | 747 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 748 } | 748 } |
| 749 buildCounterCircle--; | 749 buildCounterCircle--; |
| 750 } | 750 } |
| 751 | 751 |
| 752 buildUnnamed643() { | 752 buildUnnamed671() { |
| 753 var o = new core.List<api.Circle>(); | 753 var o = new core.List<api.Circle>(); |
| 754 o.add(buildCircle()); | 754 o.add(buildCircle()); |
| 755 o.add(buildCircle()); | 755 o.add(buildCircle()); |
| 756 return o; | 756 return o; |
| 757 } | 757 } |
| 758 | 758 |
| 759 checkUnnamed643(core.List<api.Circle> o) { | 759 checkUnnamed671(core.List<api.Circle> o) { |
| 760 unittest.expect(o, unittest.hasLength(2)); | 760 unittest.expect(o, unittest.hasLength(2)); |
| 761 checkCircle(o[0]); | 761 checkCircle(o[0]); |
| 762 checkCircle(o[1]); | 762 checkCircle(o[1]); |
| 763 } | 763 } |
| 764 | 764 |
| 765 core.int buildCounterCircleFeed = 0; | 765 core.int buildCounterCircleFeed = 0; |
| 766 buildCircleFeed() { | 766 buildCircleFeed() { |
| 767 var o = new api.CircleFeed(); | 767 var o = new api.CircleFeed(); |
| 768 buildCounterCircleFeed++; | 768 buildCounterCircleFeed++; |
| 769 if (buildCounterCircleFeed < 3) { | 769 if (buildCounterCircleFeed < 3) { |
| 770 o.etag = "foo"; | 770 o.etag = "foo"; |
| 771 o.items = buildUnnamed643(); | 771 o.items = buildUnnamed671(); |
| 772 o.kind = "foo"; | 772 o.kind = "foo"; |
| 773 o.nextLink = "foo"; | 773 o.nextLink = "foo"; |
| 774 o.nextPageToken = "foo"; | 774 o.nextPageToken = "foo"; |
| 775 o.selfLink = "foo"; | 775 o.selfLink = "foo"; |
| 776 o.title = "foo"; | 776 o.title = "foo"; |
| 777 o.totalItems = 42; | 777 o.totalItems = 42; |
| 778 } | 778 } |
| 779 buildCounterCircleFeed--; | 779 buildCounterCircleFeed--; |
| 780 return o; | 780 return o; |
| 781 } | 781 } |
| 782 | 782 |
| 783 checkCircleFeed(api.CircleFeed o) { | 783 checkCircleFeed(api.CircleFeed o) { |
| 784 buildCounterCircleFeed++; | 784 buildCounterCircleFeed++; |
| 785 if (buildCounterCircleFeed < 3) { | 785 if (buildCounterCircleFeed < 3) { |
| 786 unittest.expect(o.etag, unittest.equals('foo')); | 786 unittest.expect(o.etag, unittest.equals('foo')); |
| 787 checkUnnamed643(o.items); | 787 checkUnnamed671(o.items); |
| 788 unittest.expect(o.kind, unittest.equals('foo')); | 788 unittest.expect(o.kind, unittest.equals('foo')); |
| 789 unittest.expect(o.nextLink, unittest.equals('foo')); | 789 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 790 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 790 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 791 unittest.expect(o.selfLink, unittest.equals('foo')); | 791 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 792 unittest.expect(o.title, unittest.equals('foo')); | 792 unittest.expect(o.title, unittest.equals('foo')); |
| 793 unittest.expect(o.totalItems, unittest.equals(42)); | 793 unittest.expect(o.totalItems, unittest.equals(42)); |
| 794 } | 794 } |
| 795 buildCounterCircleFeed--; | 795 buildCounterCircleFeed--; |
| 796 } | 796 } |
| 797 | 797 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 | 853 |
| 854 checkCommentInReplyTo(api.CommentInReplyTo o) { | 854 checkCommentInReplyTo(api.CommentInReplyTo o) { |
| 855 buildCounterCommentInReplyTo++; | 855 buildCounterCommentInReplyTo++; |
| 856 if (buildCounterCommentInReplyTo < 3) { | 856 if (buildCounterCommentInReplyTo < 3) { |
| 857 unittest.expect(o.id, unittest.equals('foo')); | 857 unittest.expect(o.id, unittest.equals('foo')); |
| 858 unittest.expect(o.url, unittest.equals('foo')); | 858 unittest.expect(o.url, unittest.equals('foo')); |
| 859 } | 859 } |
| 860 buildCounterCommentInReplyTo--; | 860 buildCounterCommentInReplyTo--; |
| 861 } | 861 } |
| 862 | 862 |
| 863 buildUnnamed644() { | 863 buildUnnamed672() { |
| 864 var o = new core.List<api.CommentInReplyTo>(); | 864 var o = new core.List<api.CommentInReplyTo>(); |
| 865 o.add(buildCommentInReplyTo()); | 865 o.add(buildCommentInReplyTo()); |
| 866 o.add(buildCommentInReplyTo()); | 866 o.add(buildCommentInReplyTo()); |
| 867 return o; | 867 return o; |
| 868 } | 868 } |
| 869 | 869 |
| 870 checkUnnamed644(core.List<api.CommentInReplyTo> o) { | 870 checkUnnamed672(core.List<api.CommentInReplyTo> o) { |
| 871 unittest.expect(o, unittest.hasLength(2)); | 871 unittest.expect(o, unittest.hasLength(2)); |
| 872 checkCommentInReplyTo(o[0]); | 872 checkCommentInReplyTo(o[0]); |
| 873 checkCommentInReplyTo(o[1]); | 873 checkCommentInReplyTo(o[1]); |
| 874 } | 874 } |
| 875 | 875 |
| 876 core.int buildCounterCommentObject = 0; | 876 core.int buildCounterCommentObject = 0; |
| 877 buildCommentObject() { | 877 buildCommentObject() { |
| 878 var o = new api.CommentObject(); | 878 var o = new api.CommentObject(); |
| 879 buildCounterCommentObject++; | 879 buildCounterCommentObject++; |
| 880 if (buildCounterCommentObject < 3) { | 880 if (buildCounterCommentObject < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 } | 916 } |
| 917 | 917 |
| 918 core.int buildCounterComment = 0; | 918 core.int buildCounterComment = 0; |
| 919 buildComment() { | 919 buildComment() { |
| 920 var o = new api.Comment(); | 920 var o = new api.Comment(); |
| 921 buildCounterComment++; | 921 buildCounterComment++; |
| 922 if (buildCounterComment < 3) { | 922 if (buildCounterComment < 3) { |
| 923 o.actor = buildCommentActor(); | 923 o.actor = buildCommentActor(); |
| 924 o.etag = "foo"; | 924 o.etag = "foo"; |
| 925 o.id = "foo"; | 925 o.id = "foo"; |
| 926 o.inReplyTo = buildUnnamed644(); | 926 o.inReplyTo = buildUnnamed672(); |
| 927 o.kind = "foo"; | 927 o.kind = "foo"; |
| 928 o.object = buildCommentObject(); | 928 o.object = buildCommentObject(); |
| 929 o.plusoners = buildCommentPlusoners(); | 929 o.plusoners = buildCommentPlusoners(); |
| 930 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 930 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
| 931 o.selfLink = "foo"; | 931 o.selfLink = "foo"; |
| 932 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 932 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 933 o.verb = "foo"; | 933 o.verb = "foo"; |
| 934 } | 934 } |
| 935 buildCounterComment--; | 935 buildCounterComment--; |
| 936 return o; | 936 return o; |
| 937 } | 937 } |
| 938 | 938 |
| 939 checkComment(api.Comment o) { | 939 checkComment(api.Comment o) { |
| 940 buildCounterComment++; | 940 buildCounterComment++; |
| 941 if (buildCounterComment < 3) { | 941 if (buildCounterComment < 3) { |
| 942 checkCommentActor(o.actor); | 942 checkCommentActor(o.actor); |
| 943 unittest.expect(o.etag, unittest.equals('foo')); | 943 unittest.expect(o.etag, unittest.equals('foo')); |
| 944 unittest.expect(o.id, unittest.equals('foo')); | 944 unittest.expect(o.id, unittest.equals('foo')); |
| 945 checkUnnamed644(o.inReplyTo); | 945 checkUnnamed672(o.inReplyTo); |
| 946 unittest.expect(o.kind, unittest.equals('foo')); | 946 unittest.expect(o.kind, unittest.equals('foo')); |
| 947 checkCommentObject(o.object); | 947 checkCommentObject(o.object); |
| 948 checkCommentPlusoners(o.plusoners); | 948 checkCommentPlusoners(o.plusoners); |
| 949 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 949 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 950 unittest.expect(o.selfLink, unittest.equals('foo')); | 950 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 951 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 951 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 952 unittest.expect(o.verb, unittest.equals('foo')); | 952 unittest.expect(o.verb, unittest.equals('foo')); |
| 953 } | 953 } |
| 954 buildCounterComment--; | 954 buildCounterComment--; |
| 955 } | 955 } |
| 956 | 956 |
| 957 buildUnnamed645() { | 957 buildUnnamed673() { |
| 958 var o = new core.List<api.Comment>(); | 958 var o = new core.List<api.Comment>(); |
| 959 o.add(buildComment()); | 959 o.add(buildComment()); |
| 960 o.add(buildComment()); | 960 o.add(buildComment()); |
| 961 return o; | 961 return o; |
| 962 } | 962 } |
| 963 | 963 |
| 964 checkUnnamed645(core.List<api.Comment> o) { | 964 checkUnnamed673(core.List<api.Comment> o) { |
| 965 unittest.expect(o, unittest.hasLength(2)); | 965 unittest.expect(o, unittest.hasLength(2)); |
| 966 checkComment(o[0]); | 966 checkComment(o[0]); |
| 967 checkComment(o[1]); | 967 checkComment(o[1]); |
| 968 } | 968 } |
| 969 | 969 |
| 970 core.int buildCounterCommentFeed = 0; | 970 core.int buildCounterCommentFeed = 0; |
| 971 buildCommentFeed() { | 971 buildCommentFeed() { |
| 972 var o = new api.CommentFeed(); | 972 var o = new api.CommentFeed(); |
| 973 buildCounterCommentFeed++; | 973 buildCounterCommentFeed++; |
| 974 if (buildCounterCommentFeed < 3) { | 974 if (buildCounterCommentFeed < 3) { |
| 975 o.etag = "foo"; | 975 o.etag = "foo"; |
| 976 o.id = "foo"; | 976 o.id = "foo"; |
| 977 o.items = buildUnnamed645(); | 977 o.items = buildUnnamed673(); |
| 978 o.kind = "foo"; | 978 o.kind = "foo"; |
| 979 o.nextLink = "foo"; | 979 o.nextLink = "foo"; |
| 980 o.nextPageToken = "foo"; | 980 o.nextPageToken = "foo"; |
| 981 o.title = "foo"; | 981 o.title = "foo"; |
| 982 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 982 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 983 } | 983 } |
| 984 buildCounterCommentFeed--; | 984 buildCounterCommentFeed--; |
| 985 return o; | 985 return o; |
| 986 } | 986 } |
| 987 | 987 |
| 988 checkCommentFeed(api.CommentFeed o) { | 988 checkCommentFeed(api.CommentFeed o) { |
| 989 buildCounterCommentFeed++; | 989 buildCounterCommentFeed++; |
| 990 if (buildCounterCommentFeed < 3) { | 990 if (buildCounterCommentFeed < 3) { |
| 991 unittest.expect(o.etag, unittest.equals('foo')); | 991 unittest.expect(o.etag, unittest.equals('foo')); |
| 992 unittest.expect(o.id, unittest.equals('foo')); | 992 unittest.expect(o.id, unittest.equals('foo')); |
| 993 checkUnnamed645(o.items); | 993 checkUnnamed673(o.items); |
| 994 unittest.expect(o.kind, unittest.equals('foo')); | 994 unittest.expect(o.kind, unittest.equals('foo')); |
| 995 unittest.expect(o.nextLink, unittest.equals('foo')); | 995 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 996 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 996 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 997 unittest.expect(o.title, unittest.equals('foo')); | 997 unittest.expect(o.title, unittest.equals('foo')); |
| 998 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 998 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 999 } | 999 } |
| 1000 buildCounterCommentFeed--; | 1000 buildCounterCommentFeed--; |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 core.int buildCounterMediaAuthorImage = 0; | 1003 core.int buildCounterMediaAuthorImage = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 checkMediaExif(api.MediaExif o) { | 1058 checkMediaExif(api.MediaExif o) { |
| 1059 buildCounterMediaExif++; | 1059 buildCounterMediaExif++; |
| 1060 if (buildCounterMediaExif < 3) { | 1060 if (buildCounterMediaExif < 3) { |
| 1061 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); | 1061 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); |
| 1062 } | 1062 } |
| 1063 buildCounterMediaExif--; | 1063 buildCounterMediaExif--; |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 buildUnnamed646() { | 1066 buildUnnamed674() { |
| 1067 var o = new core.List<api.Videostream>(); | 1067 var o = new core.List<api.Videostream>(); |
| 1068 o.add(buildVideostream()); | 1068 o.add(buildVideostream()); |
| 1069 o.add(buildVideostream()); | 1069 o.add(buildVideostream()); |
| 1070 return o; | 1070 return o; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 checkUnnamed646(core.List<api.Videostream> o) { | 1073 checkUnnamed674(core.List<api.Videostream> o) { |
| 1074 unittest.expect(o, unittest.hasLength(2)); | 1074 unittest.expect(o, unittest.hasLength(2)); |
| 1075 checkVideostream(o[0]); | 1075 checkVideostream(o[0]); |
| 1076 checkVideostream(o[1]); | 1076 checkVideostream(o[1]); |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 core.int buildCounterMedia = 0; | 1079 core.int buildCounterMedia = 0; |
| 1080 buildMedia() { | 1080 buildMedia() { |
| 1081 var o = new api.Media(); | 1081 var o = new api.Media(); |
| 1082 buildCounterMedia++; | 1082 buildCounterMedia++; |
| 1083 if (buildCounterMedia < 3) { | 1083 if (buildCounterMedia < 3) { |
| 1084 o.author = buildMediaAuthor(); | 1084 o.author = buildMediaAuthor(); |
| 1085 o.displayName = "foo"; | 1085 o.displayName = "foo"; |
| 1086 o.etag = "foo"; | 1086 o.etag = "foo"; |
| 1087 o.exif = buildMediaExif(); | 1087 o.exif = buildMediaExif(); |
| 1088 o.height = 42; | 1088 o.height = 42; |
| 1089 o.id = "foo"; | 1089 o.id = "foo"; |
| 1090 o.kind = "foo"; | 1090 o.kind = "foo"; |
| 1091 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1091 o.mediaCreatedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1092 o.mediaUrl = "foo"; | 1092 o.mediaUrl = "foo"; |
| 1093 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 1093 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1094 o.sizeBytes = "foo"; | 1094 o.sizeBytes = "foo"; |
| 1095 o.streams = buildUnnamed646(); | 1095 o.streams = buildUnnamed674(); |
| 1096 o.summary = "foo"; | 1096 o.summary = "foo"; |
| 1097 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1097 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1098 o.url = "foo"; | 1098 o.url = "foo"; |
| 1099 o.videoDuration = "foo"; | 1099 o.videoDuration = "foo"; |
| 1100 o.videoStatus = "foo"; | 1100 o.videoStatus = "foo"; |
| 1101 o.width = 42; | 1101 o.width = 42; |
| 1102 } | 1102 } |
| 1103 buildCounterMedia--; | 1103 buildCounterMedia--; |
| 1104 return o; | 1104 return o; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 checkMedia(api.Media o) { | 1107 checkMedia(api.Media o) { |
| 1108 buildCounterMedia++; | 1108 buildCounterMedia++; |
| 1109 if (buildCounterMedia < 3) { | 1109 if (buildCounterMedia < 3) { |
| 1110 checkMediaAuthor(o.author); | 1110 checkMediaAuthor(o.author); |
| 1111 unittest.expect(o.displayName, unittest.equals('foo')); | 1111 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1112 unittest.expect(o.etag, unittest.equals('foo')); | 1112 unittest.expect(o.etag, unittest.equals('foo')); |
| 1113 checkMediaExif(o.exif); | 1113 checkMediaExif(o.exif); |
| 1114 unittest.expect(o.height, unittest.equals(42)); | 1114 unittest.expect(o.height, unittest.equals(42)); |
| 1115 unittest.expect(o.id, unittest.equals('foo')); | 1115 unittest.expect(o.id, unittest.equals('foo')); |
| 1116 unittest.expect(o.kind, unittest.equals('foo')); | 1116 unittest.expect(o.kind, unittest.equals('foo')); |
| 1117 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1117 unittest.expect(o.mediaCreatedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1118 unittest.expect(o.mediaUrl, unittest.equals('foo')); | 1118 unittest.expect(o.mediaUrl, unittest.equals('foo')); |
| 1119 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1119 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 1120 unittest.expect(o.sizeBytes, unittest.equals('foo')); | 1120 unittest.expect(o.sizeBytes, unittest.equals('foo')); |
| 1121 checkUnnamed646(o.streams); | 1121 checkUnnamed674(o.streams); |
| 1122 unittest.expect(o.summary, unittest.equals('foo')); | 1122 unittest.expect(o.summary, unittest.equals('foo')); |
| 1123 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1123 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 1124 unittest.expect(o.url, unittest.equals('foo')); | 1124 unittest.expect(o.url, unittest.equals('foo')); |
| 1125 unittest.expect(o.videoDuration, unittest.equals('foo')); | 1125 unittest.expect(o.videoDuration, unittest.equals('foo')); |
| 1126 unittest.expect(o.videoStatus, unittest.equals('foo')); | 1126 unittest.expect(o.videoStatus, unittest.equals('foo')); |
| 1127 unittest.expect(o.width, unittest.equals(42)); | 1127 unittest.expect(o.width, unittest.equals(42)); |
| 1128 } | 1128 } |
| 1129 buildCounterMedia--; | 1129 buildCounterMedia--; |
| 1130 } | 1130 } |
| 1131 | 1131 |
| 1132 buildUnnamed647() { | 1132 buildUnnamed675() { |
| 1133 var o = new core.List<api.Person>(); | 1133 var o = new core.List<api.Person>(); |
| 1134 o.add(buildPerson()); | 1134 o.add(buildPerson()); |
| 1135 o.add(buildPerson()); | 1135 o.add(buildPerson()); |
| 1136 return o; | 1136 return o; |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 checkUnnamed647(core.List<api.Person> o) { | 1139 checkUnnamed675(core.List<api.Person> o) { |
| 1140 unittest.expect(o, unittest.hasLength(2)); | 1140 unittest.expect(o, unittest.hasLength(2)); |
| 1141 checkPerson(o[0]); | 1141 checkPerson(o[0]); |
| 1142 checkPerson(o[1]); | 1142 checkPerson(o[1]); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 core.int buildCounterPeopleFeed = 0; | 1145 core.int buildCounterPeopleFeed = 0; |
| 1146 buildPeopleFeed() { | 1146 buildPeopleFeed() { |
| 1147 var o = new api.PeopleFeed(); | 1147 var o = new api.PeopleFeed(); |
| 1148 buildCounterPeopleFeed++; | 1148 buildCounterPeopleFeed++; |
| 1149 if (buildCounterPeopleFeed < 3) { | 1149 if (buildCounterPeopleFeed < 3) { |
| 1150 o.etag = "foo"; | 1150 o.etag = "foo"; |
| 1151 o.items = buildUnnamed647(); | 1151 o.items = buildUnnamed675(); |
| 1152 o.kind = "foo"; | 1152 o.kind = "foo"; |
| 1153 o.nextPageToken = "foo"; | 1153 o.nextPageToken = "foo"; |
| 1154 o.selfLink = "foo"; | 1154 o.selfLink = "foo"; |
| 1155 o.title = "foo"; | 1155 o.title = "foo"; |
| 1156 o.totalItems = 42; | 1156 o.totalItems = 42; |
| 1157 } | 1157 } |
| 1158 buildCounterPeopleFeed--; | 1158 buildCounterPeopleFeed--; |
| 1159 return o; | 1159 return o; |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 checkPeopleFeed(api.PeopleFeed o) { | 1162 checkPeopleFeed(api.PeopleFeed o) { |
| 1163 buildCounterPeopleFeed++; | 1163 buildCounterPeopleFeed++; |
| 1164 if (buildCounterPeopleFeed < 3) { | 1164 if (buildCounterPeopleFeed < 3) { |
| 1165 unittest.expect(o.etag, unittest.equals('foo')); | 1165 unittest.expect(o.etag, unittest.equals('foo')); |
| 1166 checkUnnamed647(o.items); | 1166 checkUnnamed675(o.items); |
| 1167 unittest.expect(o.kind, unittest.equals('foo')); | 1167 unittest.expect(o.kind, unittest.equals('foo')); |
| 1168 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1168 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1169 unittest.expect(o.selfLink, unittest.equals('foo')); | 1169 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1170 unittest.expect(o.title, unittest.equals('foo')); | 1170 unittest.expect(o.title, unittest.equals('foo')); |
| 1171 unittest.expect(o.totalItems, unittest.equals(42)); | 1171 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1172 } | 1172 } |
| 1173 buildCounterPeopleFeed--; | 1173 buildCounterPeopleFeed--; |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 core.int buildCounterPersonCoverCoverInfo = 0; | 1176 core.int buildCounterPersonCoverCoverInfo = 0; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 | 1254 |
| 1255 checkPersonEmails(api.PersonEmails o) { | 1255 checkPersonEmails(api.PersonEmails o) { |
| 1256 buildCounterPersonEmails++; | 1256 buildCounterPersonEmails++; |
| 1257 if (buildCounterPersonEmails < 3) { | 1257 if (buildCounterPersonEmails < 3) { |
| 1258 unittest.expect(o.type, unittest.equals('foo')); | 1258 unittest.expect(o.type, unittest.equals('foo')); |
| 1259 unittest.expect(o.value, unittest.equals('foo')); | 1259 unittest.expect(o.value, unittest.equals('foo')); |
| 1260 } | 1260 } |
| 1261 buildCounterPersonEmails--; | 1261 buildCounterPersonEmails--; |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 buildUnnamed648() { | 1264 buildUnnamed676() { |
| 1265 var o = new core.List<api.PersonEmails>(); | 1265 var o = new core.List<api.PersonEmails>(); |
| 1266 o.add(buildPersonEmails()); | 1266 o.add(buildPersonEmails()); |
| 1267 o.add(buildPersonEmails()); | 1267 o.add(buildPersonEmails()); |
| 1268 return o; | 1268 return o; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 checkUnnamed648(core.List<api.PersonEmails> o) { | 1271 checkUnnamed676(core.List<api.PersonEmails> o) { |
| 1272 unittest.expect(o, unittest.hasLength(2)); | 1272 unittest.expect(o, unittest.hasLength(2)); |
| 1273 checkPersonEmails(o[0]); | 1273 checkPersonEmails(o[0]); |
| 1274 checkPersonEmails(o[1]); | 1274 checkPersonEmails(o[1]); |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 core.int buildCounterPersonImage = 0; | 1277 core.int buildCounterPersonImage = 0; |
| 1278 buildPersonImage() { | 1278 buildPersonImage() { |
| 1279 var o = new api.PersonImage(); | 1279 var o = new api.PersonImage(); |
| 1280 buildCounterPersonImage++; | 1280 buildCounterPersonImage++; |
| 1281 if (buildCounterPersonImage < 3) { | 1281 if (buildCounterPersonImage < 3) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 unittest.expect(o.location, unittest.equals('foo')); | 1352 unittest.expect(o.location, unittest.equals('foo')); |
| 1353 unittest.expect(o.name, unittest.equals('foo')); | 1353 unittest.expect(o.name, unittest.equals('foo')); |
| 1354 unittest.expect(o.primary, unittest.isTrue); | 1354 unittest.expect(o.primary, unittest.isTrue); |
| 1355 unittest.expect(o.startDate, unittest.equals('foo')); | 1355 unittest.expect(o.startDate, unittest.equals('foo')); |
| 1356 unittest.expect(o.title, unittest.equals('foo')); | 1356 unittest.expect(o.title, unittest.equals('foo')); |
| 1357 unittest.expect(o.type, unittest.equals('foo')); | 1357 unittest.expect(o.type, unittest.equals('foo')); |
| 1358 } | 1358 } |
| 1359 buildCounterPersonOrganizations--; | 1359 buildCounterPersonOrganizations--; |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 buildUnnamed649() { | 1362 buildUnnamed677() { |
| 1363 var o = new core.List<api.PersonOrganizations>(); | 1363 var o = new core.List<api.PersonOrganizations>(); |
| 1364 o.add(buildPersonOrganizations()); | 1364 o.add(buildPersonOrganizations()); |
| 1365 o.add(buildPersonOrganizations()); | 1365 o.add(buildPersonOrganizations()); |
| 1366 return o; | 1366 return o; |
| 1367 } | 1367 } |
| 1368 | 1368 |
| 1369 checkUnnamed649(core.List<api.PersonOrganizations> o) { | 1369 checkUnnamed677(core.List<api.PersonOrganizations> o) { |
| 1370 unittest.expect(o, unittest.hasLength(2)); | 1370 unittest.expect(o, unittest.hasLength(2)); |
| 1371 checkPersonOrganizations(o[0]); | 1371 checkPersonOrganizations(o[0]); |
| 1372 checkPersonOrganizations(o[1]); | 1372 checkPersonOrganizations(o[1]); |
| 1373 } | 1373 } |
| 1374 | 1374 |
| 1375 core.int buildCounterPersonPlacesLived = 0; | 1375 core.int buildCounterPersonPlacesLived = 0; |
| 1376 buildPersonPlacesLived() { | 1376 buildPersonPlacesLived() { |
| 1377 var o = new api.PersonPlacesLived(); | 1377 var o = new api.PersonPlacesLived(); |
| 1378 buildCounterPersonPlacesLived++; | 1378 buildCounterPersonPlacesLived++; |
| 1379 if (buildCounterPersonPlacesLived < 3) { | 1379 if (buildCounterPersonPlacesLived < 3) { |
| 1380 o.primary = true; | 1380 o.primary = true; |
| 1381 o.value = "foo"; | 1381 o.value = "foo"; |
| 1382 } | 1382 } |
| 1383 buildCounterPersonPlacesLived--; | 1383 buildCounterPersonPlacesLived--; |
| 1384 return o; | 1384 return o; |
| 1385 } | 1385 } |
| 1386 | 1386 |
| 1387 checkPersonPlacesLived(api.PersonPlacesLived o) { | 1387 checkPersonPlacesLived(api.PersonPlacesLived o) { |
| 1388 buildCounterPersonPlacesLived++; | 1388 buildCounterPersonPlacesLived++; |
| 1389 if (buildCounterPersonPlacesLived < 3) { | 1389 if (buildCounterPersonPlacesLived < 3) { |
| 1390 unittest.expect(o.primary, unittest.isTrue); | 1390 unittest.expect(o.primary, unittest.isTrue); |
| 1391 unittest.expect(o.value, unittest.equals('foo')); | 1391 unittest.expect(o.value, unittest.equals('foo')); |
| 1392 } | 1392 } |
| 1393 buildCounterPersonPlacesLived--; | 1393 buildCounterPersonPlacesLived--; |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 buildUnnamed650() { | 1396 buildUnnamed678() { |
| 1397 var o = new core.List<api.PersonPlacesLived>(); | 1397 var o = new core.List<api.PersonPlacesLived>(); |
| 1398 o.add(buildPersonPlacesLived()); | 1398 o.add(buildPersonPlacesLived()); |
| 1399 o.add(buildPersonPlacesLived()); | 1399 o.add(buildPersonPlacesLived()); |
| 1400 return o; | 1400 return o; |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 checkUnnamed650(core.List<api.PersonPlacesLived> o) { | 1403 checkUnnamed678(core.List<api.PersonPlacesLived> o) { |
| 1404 unittest.expect(o, unittest.hasLength(2)); | 1404 unittest.expect(o, unittest.hasLength(2)); |
| 1405 checkPersonPlacesLived(o[0]); | 1405 checkPersonPlacesLived(o[0]); |
| 1406 checkPersonPlacesLived(o[1]); | 1406 checkPersonPlacesLived(o[1]); |
| 1407 } | 1407 } |
| 1408 | 1408 |
| 1409 core.int buildCounterPersonUrls = 0; | 1409 core.int buildCounterPersonUrls = 0; |
| 1410 buildPersonUrls() { | 1410 buildPersonUrls() { |
| 1411 var o = new api.PersonUrls(); | 1411 var o = new api.PersonUrls(); |
| 1412 buildCounterPersonUrls++; | 1412 buildCounterPersonUrls++; |
| 1413 if (buildCounterPersonUrls < 3) { | 1413 if (buildCounterPersonUrls < 3) { |
| 1414 o.label = "foo"; | 1414 o.label = "foo"; |
| 1415 o.type = "foo"; | 1415 o.type = "foo"; |
| 1416 o.value = "foo"; | 1416 o.value = "foo"; |
| 1417 } | 1417 } |
| 1418 buildCounterPersonUrls--; | 1418 buildCounterPersonUrls--; |
| 1419 return o; | 1419 return o; |
| 1420 } | 1420 } |
| 1421 | 1421 |
| 1422 checkPersonUrls(api.PersonUrls o) { | 1422 checkPersonUrls(api.PersonUrls o) { |
| 1423 buildCounterPersonUrls++; | 1423 buildCounterPersonUrls++; |
| 1424 if (buildCounterPersonUrls < 3) { | 1424 if (buildCounterPersonUrls < 3) { |
| 1425 unittest.expect(o.label, unittest.equals('foo')); | 1425 unittest.expect(o.label, unittest.equals('foo')); |
| 1426 unittest.expect(o.type, unittest.equals('foo')); | 1426 unittest.expect(o.type, unittest.equals('foo')); |
| 1427 unittest.expect(o.value, unittest.equals('foo')); | 1427 unittest.expect(o.value, unittest.equals('foo')); |
| 1428 } | 1428 } |
| 1429 buildCounterPersonUrls--; | 1429 buildCounterPersonUrls--; |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 buildUnnamed651() { | 1432 buildUnnamed679() { |
| 1433 var o = new core.List<api.PersonUrls>(); | 1433 var o = new core.List<api.PersonUrls>(); |
| 1434 o.add(buildPersonUrls()); | 1434 o.add(buildPersonUrls()); |
| 1435 o.add(buildPersonUrls()); | 1435 o.add(buildPersonUrls()); |
| 1436 return o; | 1436 return o; |
| 1437 } | 1437 } |
| 1438 | 1438 |
| 1439 checkUnnamed651(core.List<api.PersonUrls> o) { | 1439 checkUnnamed679(core.List<api.PersonUrls> o) { |
| 1440 unittest.expect(o, unittest.hasLength(2)); | 1440 unittest.expect(o, unittest.hasLength(2)); |
| 1441 checkPersonUrls(o[0]); | 1441 checkPersonUrls(o[0]); |
| 1442 checkPersonUrls(o[1]); | 1442 checkPersonUrls(o[1]); |
| 1443 } | 1443 } |
| 1444 | 1444 |
| 1445 core.int buildCounterPerson = 0; | 1445 core.int buildCounterPerson = 0; |
| 1446 buildPerson() { | 1446 buildPerson() { |
| 1447 var o = new api.Person(); | 1447 var o = new api.Person(); |
| 1448 buildCounterPerson++; | 1448 buildCounterPerson++; |
| 1449 if (buildCounterPerson < 3) { | 1449 if (buildCounterPerson < 3) { |
| 1450 o.aboutMe = "foo"; | 1450 o.aboutMe = "foo"; |
| 1451 o.birthday = "foo"; | 1451 o.birthday = "foo"; |
| 1452 o.braggingRights = "foo"; | 1452 o.braggingRights = "foo"; |
| 1453 o.circledByCount = 42; | 1453 o.circledByCount = 42; |
| 1454 o.cover = buildPersonCover(); | 1454 o.cover = buildPersonCover(); |
| 1455 o.currentLocation = "foo"; | 1455 o.currentLocation = "foo"; |
| 1456 o.displayName = "foo"; | 1456 o.displayName = "foo"; |
| 1457 o.domain = "foo"; | 1457 o.domain = "foo"; |
| 1458 o.emails = buildUnnamed648(); | 1458 o.emails = buildUnnamed676(); |
| 1459 o.etag = "foo"; | 1459 o.etag = "foo"; |
| 1460 o.gender = "foo"; | 1460 o.gender = "foo"; |
| 1461 o.id = "foo"; | 1461 o.id = "foo"; |
| 1462 o.image = buildPersonImage(); | 1462 o.image = buildPersonImage(); |
| 1463 o.isPlusUser = true; | 1463 o.isPlusUser = true; |
| 1464 o.kind = "foo"; | 1464 o.kind = "foo"; |
| 1465 o.name = buildPersonName(); | 1465 o.name = buildPersonName(); |
| 1466 o.nickname = "foo"; | 1466 o.nickname = "foo"; |
| 1467 o.objectType = "foo"; | 1467 o.objectType = "foo"; |
| 1468 o.occupation = "foo"; | 1468 o.occupation = "foo"; |
| 1469 o.organizations = buildUnnamed649(); | 1469 o.organizations = buildUnnamed677(); |
| 1470 o.placesLived = buildUnnamed650(); | 1470 o.placesLived = buildUnnamed678(); |
| 1471 o.plusOneCount = 42; | 1471 o.plusOneCount = 42; |
| 1472 o.relationshipStatus = "foo"; | 1472 o.relationshipStatus = "foo"; |
| 1473 o.skills = "foo"; | 1473 o.skills = "foo"; |
| 1474 o.tagline = "foo"; | 1474 o.tagline = "foo"; |
| 1475 o.url = "foo"; | 1475 o.url = "foo"; |
| 1476 o.urls = buildUnnamed651(); | 1476 o.urls = buildUnnamed679(); |
| 1477 o.verified = true; | 1477 o.verified = true; |
| 1478 } | 1478 } |
| 1479 buildCounterPerson--; | 1479 buildCounterPerson--; |
| 1480 return o; | 1480 return o; |
| 1481 } | 1481 } |
| 1482 | 1482 |
| 1483 checkPerson(api.Person o) { | 1483 checkPerson(api.Person o) { |
| 1484 buildCounterPerson++; | 1484 buildCounterPerson++; |
| 1485 if (buildCounterPerson < 3) { | 1485 if (buildCounterPerson < 3) { |
| 1486 unittest.expect(o.aboutMe, unittest.equals('foo')); | 1486 unittest.expect(o.aboutMe, unittest.equals('foo')); |
| 1487 unittest.expect(o.birthday, unittest.equals('foo')); | 1487 unittest.expect(o.birthday, unittest.equals('foo')); |
| 1488 unittest.expect(o.braggingRights, unittest.equals('foo')); | 1488 unittest.expect(o.braggingRights, unittest.equals('foo')); |
| 1489 unittest.expect(o.circledByCount, unittest.equals(42)); | 1489 unittest.expect(o.circledByCount, unittest.equals(42)); |
| 1490 checkPersonCover(o.cover); | 1490 checkPersonCover(o.cover); |
| 1491 unittest.expect(o.currentLocation, unittest.equals('foo')); | 1491 unittest.expect(o.currentLocation, unittest.equals('foo')); |
| 1492 unittest.expect(o.displayName, unittest.equals('foo')); | 1492 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1493 unittest.expect(o.domain, unittest.equals('foo')); | 1493 unittest.expect(o.domain, unittest.equals('foo')); |
| 1494 checkUnnamed648(o.emails); | 1494 checkUnnamed676(o.emails); |
| 1495 unittest.expect(o.etag, unittest.equals('foo')); | 1495 unittest.expect(o.etag, unittest.equals('foo')); |
| 1496 unittest.expect(o.gender, unittest.equals('foo')); | 1496 unittest.expect(o.gender, unittest.equals('foo')); |
| 1497 unittest.expect(o.id, unittest.equals('foo')); | 1497 unittest.expect(o.id, unittest.equals('foo')); |
| 1498 checkPersonImage(o.image); | 1498 checkPersonImage(o.image); |
| 1499 unittest.expect(o.isPlusUser, unittest.isTrue); | 1499 unittest.expect(o.isPlusUser, unittest.isTrue); |
| 1500 unittest.expect(o.kind, unittest.equals('foo')); | 1500 unittest.expect(o.kind, unittest.equals('foo')); |
| 1501 checkPersonName(o.name); | 1501 checkPersonName(o.name); |
| 1502 unittest.expect(o.nickname, unittest.equals('foo')); | 1502 unittest.expect(o.nickname, unittest.equals('foo')); |
| 1503 unittest.expect(o.objectType, unittest.equals('foo')); | 1503 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1504 unittest.expect(o.occupation, unittest.equals('foo')); | 1504 unittest.expect(o.occupation, unittest.equals('foo')); |
| 1505 checkUnnamed649(o.organizations); | 1505 checkUnnamed677(o.organizations); |
| 1506 checkUnnamed650(o.placesLived); | 1506 checkUnnamed678(o.placesLived); |
| 1507 unittest.expect(o.plusOneCount, unittest.equals(42)); | 1507 unittest.expect(o.plusOneCount, unittest.equals(42)); |
| 1508 unittest.expect(o.relationshipStatus, unittest.equals('foo')); | 1508 unittest.expect(o.relationshipStatus, unittest.equals('foo')); |
| 1509 unittest.expect(o.skills, unittest.equals('foo')); | 1509 unittest.expect(o.skills, unittest.equals('foo')); |
| 1510 unittest.expect(o.tagline, unittest.equals('foo')); | 1510 unittest.expect(o.tagline, unittest.equals('foo')); |
| 1511 unittest.expect(o.url, unittest.equals('foo')); | 1511 unittest.expect(o.url, unittest.equals('foo')); |
| 1512 checkUnnamed651(o.urls); | 1512 checkUnnamed679(o.urls); |
| 1513 unittest.expect(o.verified, unittest.isTrue); | 1513 unittest.expect(o.verified, unittest.isTrue); |
| 1514 } | 1514 } |
| 1515 buildCounterPerson--; | 1515 buildCounterPerson--; |
| 1516 } | 1516 } |
| 1517 | 1517 |
| 1518 core.int buildCounterPlaceAddress = 0; | 1518 core.int buildCounterPlaceAddress = 0; |
| 1519 buildPlaceAddress() { | 1519 buildPlaceAddress() { |
| 1520 var o = new api.PlaceAddress(); | 1520 var o = new api.PlaceAddress(); |
| 1521 buildCounterPlaceAddress++; | 1521 buildCounterPlaceAddress++; |
| 1522 if (buildCounterPlaceAddress < 3) { | 1522 if (buildCounterPlaceAddress < 3) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 buildCounterVideostream++; | 1623 buildCounterVideostream++; |
| 1624 if (buildCounterVideostream < 3) { | 1624 if (buildCounterVideostream < 3) { |
| 1625 unittest.expect(o.height, unittest.equals(42)); | 1625 unittest.expect(o.height, unittest.equals(42)); |
| 1626 unittest.expect(o.type, unittest.equals('foo')); | 1626 unittest.expect(o.type, unittest.equals('foo')); |
| 1627 unittest.expect(o.url, unittest.equals('foo')); | 1627 unittest.expect(o.url, unittest.equals('foo')); |
| 1628 unittest.expect(o.width, unittest.equals(42)); | 1628 unittest.expect(o.width, unittest.equals(42)); |
| 1629 } | 1629 } |
| 1630 buildCounterVideostream--; | 1630 buildCounterVideostream--; |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 buildUnnamed652() { | 1633 buildUnnamed680() { |
| 1634 var o = new core.List<core.String>(); | 1634 var o = new core.List<core.String>(); |
| 1635 o.add("foo"); | 1635 o.add("foo"); |
| 1636 o.add("foo"); | 1636 o.add("foo"); |
| 1637 return o; | 1637 return o; |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 checkUnnamed652(core.List<core.String> o) { | 1640 checkUnnamed680(core.List<core.String> o) { |
| 1641 unittest.expect(o, unittest.hasLength(2)); | 1641 unittest.expect(o, unittest.hasLength(2)); |
| 1642 unittest.expect(o[0], unittest.equals('foo')); | 1642 unittest.expect(o[0], unittest.equals('foo')); |
| 1643 unittest.expect(o[1], unittest.equals('foo')); | 1643 unittest.expect(o[1], unittest.equals('foo')); |
| 1644 } | 1644 } |
| 1645 | 1645 |
| 1646 buildUnnamed653() { | 1646 buildUnnamed681() { |
| 1647 var o = new core.List<core.String>(); | 1647 var o = new core.List<core.String>(); |
| 1648 o.add("foo"); | 1648 o.add("foo"); |
| 1649 o.add("foo"); | 1649 o.add("foo"); |
| 1650 return o; | 1650 return o; |
| 1651 } | 1651 } |
| 1652 | 1652 |
| 1653 checkUnnamed653(core.List<core.String> o) { | 1653 checkUnnamed681(core.List<core.String> o) { |
| 1654 unittest.expect(o, unittest.hasLength(2)); | 1654 unittest.expect(o, unittest.hasLength(2)); |
| 1655 unittest.expect(o[0], unittest.equals('foo')); | 1655 unittest.expect(o[0], unittest.equals('foo')); |
| 1656 unittest.expect(o[1], unittest.equals('foo')); | 1656 unittest.expect(o[1], unittest.equals('foo')); |
| 1657 } | 1657 } |
| 1658 | 1658 |
| 1659 buildUnnamed654() { | 1659 buildUnnamed682() { |
| 1660 var o = new core.List<core.String>(); | 1660 var o = new core.List<core.String>(); |
| 1661 o.add("foo"); | 1661 o.add("foo"); |
| 1662 o.add("foo"); | 1662 o.add("foo"); |
| 1663 return o; | 1663 return o; |
| 1664 } | 1664 } |
| 1665 | 1665 |
| 1666 checkUnnamed654(core.List<core.String> o) { | 1666 checkUnnamed682(core.List<core.String> o) { |
| 1667 unittest.expect(o, unittest.hasLength(2)); | 1667 unittest.expect(o, unittest.hasLength(2)); |
| 1668 unittest.expect(o[0], unittest.equals('foo')); | 1668 unittest.expect(o[0], unittest.equals('foo')); |
| 1669 unittest.expect(o[1], unittest.equals('foo')); | 1669 unittest.expect(o[1], unittest.equals('foo')); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 buildUnnamed655() { | 1672 buildUnnamed683() { |
| 1673 var o = new core.List<core.String>(); | 1673 var o = new core.List<core.String>(); |
| 1674 o.add("foo"); | 1674 o.add("foo"); |
| 1675 o.add("foo"); | 1675 o.add("foo"); |
| 1676 return o; | 1676 return o; |
| 1677 } | 1677 } |
| 1678 | 1678 |
| 1679 checkUnnamed655(core.List<core.String> o) { | 1679 checkUnnamed683(core.List<core.String> o) { |
| 1680 unittest.expect(o, unittest.hasLength(2)); | 1680 unittest.expect(o, unittest.hasLength(2)); |
| 1681 unittest.expect(o[0], unittest.equals('foo')); | 1681 unittest.expect(o[0], unittest.equals('foo')); |
| 1682 unittest.expect(o[1], unittest.equals('foo')); | 1682 unittest.expect(o[1], unittest.equals('foo')); |
| 1683 } | 1683 } |
| 1684 | 1684 |
| 1685 | 1685 |
| 1686 main() { | 1686 main() { |
| 1687 unittest.group("obj-schema-Acl", () { | 1687 unittest.group("obj-schema-Acl", () { |
| 1688 unittest.test("to-json--from-json", () { | 1688 unittest.test("to-json--from-json", () { |
| 1689 var o = buildAcl(); | 1689 var o = buildAcl(); |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2165 unittest.test("method--get", () { | 2165 unittest.test("method--get", () { |
| 2166 | 2166 |
| 2167 var mock = new common_test.HttpServerMock(); | 2167 var mock = new common_test.HttpServerMock(); |
| 2168 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; | 2168 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; |
| 2169 var arg_activityId = "foo"; | 2169 var arg_activityId = "foo"; |
| 2170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2171 var path = (req.url).path; | 2171 var path = (req.url).path; |
| 2172 var pathOffset = 0; | 2172 var pathOffset = 0; |
| 2173 var index; | 2173 var index; |
| 2174 var subPart; | 2174 var subPart; |
| 2175 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2175 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2176 pathOffset += 16; | 2176 pathOffset += 1; |
| 2177 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2178 pathOffset += 15; |
| 2177 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2179 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2178 pathOffset += 11; | 2180 pathOffset += 11; |
| 2179 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2181 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2180 pathOffset = path.length; | 2182 pathOffset = path.length; |
| 2181 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2183 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2182 | 2184 |
| 2183 var query = (req.url).query; | 2185 var query = (req.url).query; |
| 2184 var queryOffset = 0; | 2186 var queryOffset = 0; |
| 2185 var queryMap = {}; | 2187 var queryMap = {}; |
| 2186 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2188 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2217 var arg_userId = "foo"; | 2219 var arg_userId = "foo"; |
| 2218 var arg_preview = true; | 2220 var arg_preview = true; |
| 2219 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2220 var obj = new api.Activity.fromJson(json); | 2222 var obj = new api.Activity.fromJson(json); |
| 2221 checkActivity(obj); | 2223 checkActivity(obj); |
| 2222 | 2224 |
| 2223 var path = (req.url).path; | 2225 var path = (req.url).path; |
| 2224 var pathOffset = 0; | 2226 var pathOffset = 0; |
| 2225 var index; | 2227 var index; |
| 2226 var subPart; | 2228 var subPart; |
| 2227 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2228 pathOffset += 16; | 2230 pathOffset += 1; |
| 2231 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2232 pathOffset += 15; |
| 2229 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2233 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2230 pathOffset += 7; | 2234 pathOffset += 7; |
| 2231 index = path.indexOf("/activities", pathOffset); | 2235 index = path.indexOf("/activities", pathOffset); |
| 2232 unittest.expect(index >= 0, unittest.isTrue); | 2236 unittest.expect(index >= 0, unittest.isTrue); |
| 2233 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2237 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2234 pathOffset = index; | 2238 pathOffset = index; |
| 2235 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2239 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2236 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/activities")); | 2240 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/activities")); |
| 2237 pathOffset += 11; | 2241 pathOffset += 11; |
| 2238 | 2242 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; | 2276 api.ActivitiesResourceApi res = new api.PlusDomainsApi(mock).activities; |
| 2273 var arg_userId = "foo"; | 2277 var arg_userId = "foo"; |
| 2274 var arg_collection = "foo"; | 2278 var arg_collection = "foo"; |
| 2275 var arg_maxResults = 42; | 2279 var arg_maxResults = 42; |
| 2276 var arg_pageToken = "foo"; | 2280 var arg_pageToken = "foo"; |
| 2277 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2278 var path = (req.url).path; | 2282 var path = (req.url).path; |
| 2279 var pathOffset = 0; | 2283 var pathOffset = 0; |
| 2280 var index; | 2284 var index; |
| 2281 var subPart; | 2285 var subPart; |
| 2282 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2283 pathOffset += 16; | 2287 pathOffset += 1; |
| 2288 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2289 pathOffset += 15; |
| 2284 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2290 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2285 pathOffset += 7; | 2291 pathOffset += 7; |
| 2286 index = path.indexOf("/activities/", pathOffset); | 2292 index = path.indexOf("/activities/", pathOffset); |
| 2287 unittest.expect(index >= 0, unittest.isTrue); | 2293 unittest.expect(index >= 0, unittest.isTrue); |
| 2288 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2294 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2289 pathOffset = index; | 2295 pathOffset = index; |
| 2290 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2296 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2291 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/activities/")); | 2297 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/activities/")); |
| 2292 pathOffset += 12; | 2298 pathOffset += 12; |
| 2293 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2299 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 var mock = new common_test.HttpServerMock(); | 2340 var mock = new common_test.HttpServerMock(); |
| 2335 api.AudiencesResourceApi res = new api.PlusDomainsApi(mock).audiences; | 2341 api.AudiencesResourceApi res = new api.PlusDomainsApi(mock).audiences; |
| 2336 var arg_userId = "foo"; | 2342 var arg_userId = "foo"; |
| 2337 var arg_maxResults = 42; | 2343 var arg_maxResults = 42; |
| 2338 var arg_pageToken = "foo"; | 2344 var arg_pageToken = "foo"; |
| 2339 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2345 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2340 var path = (req.url).path; | 2346 var path = (req.url).path; |
| 2341 var pathOffset = 0; | 2347 var pathOffset = 0; |
| 2342 var index; | 2348 var index; |
| 2343 var subPart; | 2349 var subPart; |
| 2344 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2350 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2345 pathOffset += 16; | 2351 pathOffset += 1; |
| 2352 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2353 pathOffset += 15; |
| 2346 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2354 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2347 pathOffset += 7; | 2355 pathOffset += 7; |
| 2348 index = path.indexOf("/audiences", pathOffset); | 2356 index = path.indexOf("/audiences", pathOffset); |
| 2349 unittest.expect(index >= 0, unittest.isTrue); | 2357 unittest.expect(index >= 0, unittest.isTrue); |
| 2350 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2358 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2351 pathOffset = index; | 2359 pathOffset = index; |
| 2352 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2360 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2353 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/audiences")); | 2361 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/audiences")); |
| 2354 pathOffset += 10; | 2362 pathOffset += 10; |
| 2355 | 2363 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2386 | 2394 |
| 2387 }); | 2395 }); |
| 2388 | 2396 |
| 2389 | 2397 |
| 2390 unittest.group("resource-CirclesResourceApi", () { | 2398 unittest.group("resource-CirclesResourceApi", () { |
| 2391 unittest.test("method--addPeople", () { | 2399 unittest.test("method--addPeople", () { |
| 2392 | 2400 |
| 2393 var mock = new common_test.HttpServerMock(); | 2401 var mock = new common_test.HttpServerMock(); |
| 2394 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2402 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
| 2395 var arg_circleId = "foo"; | 2403 var arg_circleId = "foo"; |
| 2396 var arg_email = buildUnnamed652(); | 2404 var arg_email = buildUnnamed680(); |
| 2397 var arg_userId = buildUnnamed653(); | 2405 var arg_userId = buildUnnamed681(); |
| 2398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2406 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2399 var path = (req.url).path; | 2407 var path = (req.url).path; |
| 2400 var pathOffset = 0; | 2408 var pathOffset = 0; |
| 2401 var index; | 2409 var index; |
| 2402 var subPart; | 2410 var subPart; |
| 2403 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2404 pathOffset += 16; | 2412 pathOffset += 1; |
| 2413 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2414 pathOffset += 15; |
| 2405 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2415 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2406 pathOffset += 8; | 2416 pathOffset += 8; |
| 2407 index = path.indexOf("/people", pathOffset); | 2417 index = path.indexOf("/people", pathOffset); |
| 2408 unittest.expect(index >= 0, unittest.isTrue); | 2418 unittest.expect(index >= 0, unittest.isTrue); |
| 2409 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2419 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2410 pathOffset = index; | 2420 pathOffset = index; |
| 2411 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2421 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2412 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); | 2422 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); |
| 2413 pathOffset += 7; | 2423 pathOffset += 7; |
| 2414 | 2424 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2446 unittest.test("method--get", () { | 2456 unittest.test("method--get", () { |
| 2447 | 2457 |
| 2448 var mock = new common_test.HttpServerMock(); | 2458 var mock = new common_test.HttpServerMock(); |
| 2449 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2459 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
| 2450 var arg_circleId = "foo"; | 2460 var arg_circleId = "foo"; |
| 2451 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2452 var path = (req.url).path; | 2462 var path = (req.url).path; |
| 2453 var pathOffset = 0; | 2463 var pathOffset = 0; |
| 2454 var index; | 2464 var index; |
| 2455 var subPart; | 2465 var subPart; |
| 2456 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2457 pathOffset += 16; | 2467 pathOffset += 1; |
| 2468 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2469 pathOffset += 15; |
| 2458 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2470 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2459 pathOffset += 8; | 2471 pathOffset += 8; |
| 2460 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2472 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2461 pathOffset = path.length; | 2473 pathOffset = path.length; |
| 2462 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2474 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2463 | 2475 |
| 2464 var query = (req.url).query; | 2476 var query = (req.url).query; |
| 2465 var queryOffset = 0; | 2477 var queryOffset = 0; |
| 2466 var queryMap = {}; | 2478 var queryMap = {}; |
| 2467 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2479 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2497 var arg_request = buildCircle(); | 2509 var arg_request = buildCircle(); |
| 2498 var arg_userId = "foo"; | 2510 var arg_userId = "foo"; |
| 2499 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2500 var obj = new api.Circle.fromJson(json); | 2512 var obj = new api.Circle.fromJson(json); |
| 2501 checkCircle(obj); | 2513 checkCircle(obj); |
| 2502 | 2514 |
| 2503 var path = (req.url).path; | 2515 var path = (req.url).path; |
| 2504 var pathOffset = 0; | 2516 var pathOffset = 0; |
| 2505 var index; | 2517 var index; |
| 2506 var subPart; | 2518 var subPart; |
| 2507 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2519 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2508 pathOffset += 16; | 2520 pathOffset += 1; |
| 2521 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2522 pathOffset += 15; |
| 2509 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2523 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2510 pathOffset += 7; | 2524 pathOffset += 7; |
| 2511 index = path.indexOf("/circles", pathOffset); | 2525 index = path.indexOf("/circles", pathOffset); |
| 2512 unittest.expect(index >= 0, unittest.isTrue); | 2526 unittest.expect(index >= 0, unittest.isTrue); |
| 2513 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2527 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2514 pathOffset = index; | 2528 pathOffset = index; |
| 2515 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2529 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2516 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/circles")); | 2530 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/circles")); |
| 2517 pathOffset += 8; | 2531 pathOffset += 8; |
| 2518 | 2532 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 var mock = new common_test.HttpServerMock(); | 2564 var mock = new common_test.HttpServerMock(); |
| 2551 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2565 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
| 2552 var arg_userId = "foo"; | 2566 var arg_userId = "foo"; |
| 2553 var arg_maxResults = 42; | 2567 var arg_maxResults = 42; |
| 2554 var arg_pageToken = "foo"; | 2568 var arg_pageToken = "foo"; |
| 2555 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2556 var path = (req.url).path; | 2570 var path = (req.url).path; |
| 2557 var pathOffset = 0; | 2571 var pathOffset = 0; |
| 2558 var index; | 2572 var index; |
| 2559 var subPart; | 2573 var subPart; |
| 2560 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2574 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2561 pathOffset += 16; | 2575 pathOffset += 1; |
| 2576 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2577 pathOffset += 15; |
| 2562 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 2578 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2563 pathOffset += 7; | 2579 pathOffset += 7; |
| 2564 index = path.indexOf("/circles", pathOffset); | 2580 index = path.indexOf("/circles", pathOffset); |
| 2565 unittest.expect(index >= 0, unittest.isTrue); | 2581 unittest.expect(index >= 0, unittest.isTrue); |
| 2566 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2582 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2567 pathOffset = index; | 2583 pathOffset = index; |
| 2568 unittest.expect(subPart, unittest.equals("$arg_userId")); | 2584 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2569 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/circles")); | 2585 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/circles")); |
| 2570 pathOffset += 8; | 2586 pathOffset += 8; |
| 2571 | 2587 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2607 var arg_request = buildCircle(); | 2623 var arg_request = buildCircle(); |
| 2608 var arg_circleId = "foo"; | 2624 var arg_circleId = "foo"; |
| 2609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2610 var obj = new api.Circle.fromJson(json); | 2626 var obj = new api.Circle.fromJson(json); |
| 2611 checkCircle(obj); | 2627 checkCircle(obj); |
| 2612 | 2628 |
| 2613 var path = (req.url).path; | 2629 var path = (req.url).path; |
| 2614 var pathOffset = 0; | 2630 var pathOffset = 0; |
| 2615 var index; | 2631 var index; |
| 2616 var subPart; | 2632 var subPart; |
| 2617 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2618 pathOffset += 16; | 2634 pathOffset += 1; |
| 2635 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2636 pathOffset += 15; |
| 2619 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2637 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2620 pathOffset += 8; | 2638 pathOffset += 8; |
| 2621 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2639 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2622 pathOffset = path.length; | 2640 pathOffset = path.length; |
| 2623 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2641 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2624 | 2642 |
| 2625 var query = (req.url).query; | 2643 var query = (req.url).query; |
| 2626 var queryOffset = 0; | 2644 var queryOffset = 0; |
| 2627 var queryMap = {}; | 2645 var queryMap = {}; |
| 2628 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2646 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2654 unittest.test("method--remove", () { | 2672 unittest.test("method--remove", () { |
| 2655 | 2673 |
| 2656 var mock = new common_test.HttpServerMock(); | 2674 var mock = new common_test.HttpServerMock(); |
| 2657 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2675 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
| 2658 var arg_circleId = "foo"; | 2676 var arg_circleId = "foo"; |
| 2659 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2660 var path = (req.url).path; | 2678 var path = (req.url).path; |
| 2661 var pathOffset = 0; | 2679 var pathOffset = 0; |
| 2662 var index; | 2680 var index; |
| 2663 var subPart; | 2681 var subPart; |
| 2664 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2665 pathOffset += 16; | 2683 pathOffset += 1; |
| 2684 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2685 pathOffset += 15; |
| 2666 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2686 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2667 pathOffset += 8; | 2687 pathOffset += 8; |
| 2668 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2669 pathOffset = path.length; | 2689 pathOffset = path.length; |
| 2670 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2690 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2671 | 2691 |
| 2672 var query = (req.url).query; | 2692 var query = (req.url).query; |
| 2673 var queryOffset = 0; | 2693 var queryOffset = 0; |
| 2674 var queryMap = {}; | 2694 var queryMap = {}; |
| 2675 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2695 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2694 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 2714 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 2695 }), true); | 2715 }), true); |
| 2696 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); | 2716 res.remove(arg_circleId).then(unittest.expectAsync((_) {})); |
| 2697 }); | 2717 }); |
| 2698 | 2718 |
| 2699 unittest.test("method--removePeople", () { | 2719 unittest.test("method--removePeople", () { |
| 2700 | 2720 |
| 2701 var mock = new common_test.HttpServerMock(); | 2721 var mock = new common_test.HttpServerMock(); |
| 2702 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; | 2722 api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; |
| 2703 var arg_circleId = "foo"; | 2723 var arg_circleId = "foo"; |
| 2704 var arg_email = buildUnnamed654(); | 2724 var arg_email = buildUnnamed682(); |
| 2705 var arg_userId = buildUnnamed655(); | 2725 var arg_userId = buildUnnamed683(); |
| 2706 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2726 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2707 var path = (req.url).path; | 2727 var path = (req.url).path; |
| 2708 var pathOffset = 0; | 2728 var pathOffset = 0; |
| 2709 var index; | 2729 var index; |
| 2710 var subPart; | 2730 var subPart; |
| 2711 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2731 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2712 pathOffset += 16; | 2732 pathOffset += 1; |
| 2733 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2734 pathOffset += 15; |
| 2713 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2735 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2714 pathOffset += 8; | 2736 pathOffset += 8; |
| 2715 index = path.indexOf("/people", pathOffset); | 2737 index = path.indexOf("/people", pathOffset); |
| 2716 unittest.expect(index >= 0, unittest.isTrue); | 2738 unittest.expect(index >= 0, unittest.isTrue); |
| 2717 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2739 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2718 pathOffset = index; | 2740 pathOffset = index; |
| 2719 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2741 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2720 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); | 2742 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); |
| 2721 pathOffset += 7; | 2743 pathOffset += 7; |
| 2722 | 2744 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 var arg_request = buildCircle(); | 2778 var arg_request = buildCircle(); |
| 2757 var arg_circleId = "foo"; | 2779 var arg_circleId = "foo"; |
| 2758 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2780 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2759 var obj = new api.Circle.fromJson(json); | 2781 var obj = new api.Circle.fromJson(json); |
| 2760 checkCircle(obj); | 2782 checkCircle(obj); |
| 2761 | 2783 |
| 2762 var path = (req.url).path; | 2784 var path = (req.url).path; |
| 2763 var pathOffset = 0; | 2785 var pathOffset = 0; |
| 2764 var index; | 2786 var index; |
| 2765 var subPart; | 2787 var subPart; |
| 2766 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2767 pathOffset += 16; | 2789 pathOffset += 1; |
| 2790 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2791 pathOffset += 15; |
| 2768 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 2792 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 2769 pathOffset += 8; | 2793 pathOffset += 8; |
| 2770 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2794 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2771 pathOffset = path.length; | 2795 pathOffset = path.length; |
| 2772 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 2796 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 2773 | 2797 |
| 2774 var query = (req.url).query; | 2798 var query = (req.url).query; |
| 2775 var queryOffset = 0; | 2799 var queryOffset = 0; |
| 2776 var queryMap = {}; | 2800 var queryMap = {}; |
| 2777 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2801 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2807 unittest.test("method--get", () { | 2831 unittest.test("method--get", () { |
| 2808 | 2832 |
| 2809 var mock = new common_test.HttpServerMock(); | 2833 var mock = new common_test.HttpServerMock(); |
| 2810 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; | 2834 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; |
| 2811 var arg_commentId = "foo"; | 2835 var arg_commentId = "foo"; |
| 2812 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2836 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2813 var path = (req.url).path; | 2837 var path = (req.url).path; |
| 2814 var pathOffset = 0; | 2838 var pathOffset = 0; |
| 2815 var index; | 2839 var index; |
| 2816 var subPart; | 2840 var subPart; |
| 2817 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2818 pathOffset += 16; | 2842 pathOffset += 1; |
| 2843 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2844 pathOffset += 15; |
| 2819 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); | 2845 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("comments/")); |
| 2820 pathOffset += 9; | 2846 pathOffset += 9; |
| 2821 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2847 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2822 pathOffset = path.length; | 2848 pathOffset = path.length; |
| 2823 unittest.expect(subPart, unittest.equals("$arg_commentId")); | 2849 unittest.expect(subPart, unittest.equals("$arg_commentId")); |
| 2824 | 2850 |
| 2825 var query = (req.url).query; | 2851 var query = (req.url).query; |
| 2826 var queryOffset = 0; | 2852 var queryOffset = 0; |
| 2827 var queryMap = {}; | 2853 var queryMap = {}; |
| 2828 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2854 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2858 var arg_request = buildComment(); | 2884 var arg_request = buildComment(); |
| 2859 var arg_activityId = "foo"; | 2885 var arg_activityId = "foo"; |
| 2860 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2861 var obj = new api.Comment.fromJson(json); | 2887 var obj = new api.Comment.fromJson(json); |
| 2862 checkComment(obj); | 2888 checkComment(obj); |
| 2863 | 2889 |
| 2864 var path = (req.url).path; | 2890 var path = (req.url).path; |
| 2865 var pathOffset = 0; | 2891 var pathOffset = 0; |
| 2866 var index; | 2892 var index; |
| 2867 var subPart; | 2893 var subPart; |
| 2868 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2894 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2869 pathOffset += 16; | 2895 pathOffset += 1; |
| 2896 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2897 pathOffset += 15; |
| 2870 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2898 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2871 pathOffset += 11; | 2899 pathOffset += 11; |
| 2872 index = path.indexOf("/comments", pathOffset); | 2900 index = path.indexOf("/comments", pathOffset); |
| 2873 unittest.expect(index >= 0, unittest.isTrue); | 2901 unittest.expect(index >= 0, unittest.isTrue); |
| 2874 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2902 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2875 pathOffset = index; | 2903 pathOffset = index; |
| 2876 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2904 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2877 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2905 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2878 pathOffset += 9; | 2906 pathOffset += 9; |
| 2879 | 2907 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2912 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; | 2940 api.CommentsResourceApi res = new api.PlusDomainsApi(mock).comments; |
| 2913 var arg_activityId = "foo"; | 2941 var arg_activityId = "foo"; |
| 2914 var arg_maxResults = 42; | 2942 var arg_maxResults = 42; |
| 2915 var arg_pageToken = "foo"; | 2943 var arg_pageToken = "foo"; |
| 2916 var arg_sortOrder = "foo"; | 2944 var arg_sortOrder = "foo"; |
| 2917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2945 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2918 var path = (req.url).path; | 2946 var path = (req.url).path; |
| 2919 var pathOffset = 0; | 2947 var pathOffset = 0; |
| 2920 var index; | 2948 var index; |
| 2921 var subPart; | 2949 var subPart; |
| 2922 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 2950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2923 pathOffset += 16; | 2951 pathOffset += 1; |
| 2952 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 2953 pathOffset += 15; |
| 2924 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 2954 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 2925 pathOffset += 11; | 2955 pathOffset += 11; |
| 2926 index = path.indexOf("/comments", pathOffset); | 2956 index = path.indexOf("/comments", pathOffset); |
| 2927 unittest.expect(index >= 0, unittest.isTrue); | 2957 unittest.expect(index >= 0, unittest.isTrue); |
| 2928 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2958 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2929 pathOffset = index; | 2959 pathOffset = index; |
| 2930 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 2960 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 2931 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); | 2961 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/comments")); |
| 2932 pathOffset += 9; | 2962 pathOffset += 9; |
| 2933 | 2963 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2977 var arg_userId = "foo"; | 3007 var arg_userId = "foo"; |
| 2978 var arg_collection = "foo"; | 3008 var arg_collection = "foo"; |
| 2979 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3009 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2980 var obj = new api.Media.fromJson(json); | 3010 var obj = new api.Media.fromJson(json); |
| 2981 checkMedia(obj); | 3011 checkMedia(obj); |
| 2982 | 3012 |
| 2983 var path = (req.url).path; | 3013 var path = (req.url).path; |
| 2984 var pathOffset = 0; | 3014 var pathOffset = 0; |
| 2985 var index; | 3015 var index; |
| 2986 var subPart; | 3016 var subPart; |
| 2987 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 3017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2988 pathOffset += 16; | 3018 pathOffset += 1; |
| 3019 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 3020 pathOffset += 15; |
| 2989 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 3021 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 2990 pathOffset += 7; | 3022 pathOffset += 7; |
| 2991 index = path.indexOf("/media/", pathOffset); | 3023 index = path.indexOf("/media/", pathOffset); |
| 2992 unittest.expect(index >= 0, unittest.isTrue); | 3024 unittest.expect(index >= 0, unittest.isTrue); |
| 2993 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3025 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2994 pathOffset = index; | 3026 pathOffset = index; |
| 2995 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3027 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 2996 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/media/")); | 3028 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/media/")); |
| 2997 pathOffset += 7; | 3029 pathOffset += 7; |
| 2998 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3030 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3035 unittest.test("method--get", () { | 3067 unittest.test("method--get", () { |
| 3036 | 3068 |
| 3037 var mock = new common_test.HttpServerMock(); | 3069 var mock = new common_test.HttpServerMock(); |
| 3038 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3070 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
| 3039 var arg_userId = "foo"; | 3071 var arg_userId = "foo"; |
| 3040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3041 var path = (req.url).path; | 3073 var path = (req.url).path; |
| 3042 var pathOffset = 0; | 3074 var pathOffset = 0; |
| 3043 var index; | 3075 var index; |
| 3044 var subPart; | 3076 var subPart; |
| 3045 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 3077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3046 pathOffset += 16; | 3078 pathOffset += 1; |
| 3079 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 3080 pathOffset += 15; |
| 3047 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 3081 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 3048 pathOffset += 7; | 3082 pathOffset += 7; |
| 3049 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3083 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3050 pathOffset = path.length; | 3084 pathOffset = path.length; |
| 3051 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3085 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 3052 | 3086 |
| 3053 var query = (req.url).query; | 3087 var query = (req.url).query; |
| 3054 var queryOffset = 0; | 3088 var queryOffset = 0; |
| 3055 var queryMap = {}; | 3089 var queryMap = {}; |
| 3056 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3090 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3086 var arg_userId = "foo"; | 3120 var arg_userId = "foo"; |
| 3087 var arg_collection = "foo"; | 3121 var arg_collection = "foo"; |
| 3088 var arg_maxResults = 42; | 3122 var arg_maxResults = 42; |
| 3089 var arg_orderBy = "foo"; | 3123 var arg_orderBy = "foo"; |
| 3090 var arg_pageToken = "foo"; | 3124 var arg_pageToken = "foo"; |
| 3091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3125 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3092 var path = (req.url).path; | 3126 var path = (req.url).path; |
| 3093 var pathOffset = 0; | 3127 var pathOffset = 0; |
| 3094 var index; | 3128 var index; |
| 3095 var subPart; | 3129 var subPart; |
| 3096 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 3130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3097 pathOffset += 16; | 3131 pathOffset += 1; |
| 3132 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 3133 pathOffset += 15; |
| 3098 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); | 3134 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("people/")); |
| 3099 pathOffset += 7; | 3135 pathOffset += 7; |
| 3100 index = path.indexOf("/people/", pathOffset); | 3136 index = path.indexOf("/people/", pathOffset); |
| 3101 unittest.expect(index >= 0, unittest.isTrue); | 3137 unittest.expect(index >= 0, unittest.isTrue); |
| 3102 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3138 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3103 pathOffset = index; | 3139 pathOffset = index; |
| 3104 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3140 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 3105 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/people/")); | 3141 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/people/")); |
| 3106 pathOffset += 8; | 3142 pathOffset += 8; |
| 3107 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3143 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3146 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3182 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
| 3147 var arg_activityId = "foo"; | 3183 var arg_activityId = "foo"; |
| 3148 var arg_collection = "foo"; | 3184 var arg_collection = "foo"; |
| 3149 var arg_maxResults = 42; | 3185 var arg_maxResults = 42; |
| 3150 var arg_pageToken = "foo"; | 3186 var arg_pageToken = "foo"; |
| 3151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3152 var path = (req.url).path; | 3188 var path = (req.url).path; |
| 3153 var pathOffset = 0; | 3189 var pathOffset = 0; |
| 3154 var index; | 3190 var index; |
| 3155 var subPart; | 3191 var subPart; |
| 3156 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 3192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3157 pathOffset += 16; | 3193 pathOffset += 1; |
| 3194 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 3195 pathOffset += 15; |
| 3158 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); | 3196 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("activities/")); |
| 3159 pathOffset += 11; | 3197 pathOffset += 11; |
| 3160 index = path.indexOf("/people/", pathOffset); | 3198 index = path.indexOf("/people/", pathOffset); |
| 3161 unittest.expect(index >= 0, unittest.isTrue); | 3199 unittest.expect(index >= 0, unittest.isTrue); |
| 3162 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3163 pathOffset = index; | 3201 pathOffset = index; |
| 3164 unittest.expect(subPart, unittest.equals("$arg_activityId")); | 3202 unittest.expect(subPart, unittest.equals("$arg_activityId")); |
| 3165 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/people/")); | 3203 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/people/")); |
| 3166 pathOffset += 8; | 3204 pathOffset += 8; |
| 3167 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3205 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3204 var mock = new common_test.HttpServerMock(); | 3242 var mock = new common_test.HttpServerMock(); |
| 3205 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; | 3243 api.PeopleResourceApi res = new api.PlusDomainsApi(mock).people; |
| 3206 var arg_circleId = "foo"; | 3244 var arg_circleId = "foo"; |
| 3207 var arg_maxResults = 42; | 3245 var arg_maxResults = 42; |
| 3208 var arg_pageToken = "foo"; | 3246 var arg_pageToken = "foo"; |
| 3209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3247 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3210 var path = (req.url).path; | 3248 var path = (req.url).path; |
| 3211 var pathOffset = 0; | 3249 var pathOffset = 0; |
| 3212 var index; | 3250 var index; |
| 3213 var subPart; | 3251 var subPart; |
| 3214 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/plusDomains/v1/")); | 3252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3215 pathOffset += 16; | 3253 pathOffset += 1; |
| 3254 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("plusDomains/v1/")); |
| 3255 pathOffset += 15; |
| 3216 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); | 3256 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("circles/")); |
| 3217 pathOffset += 8; | 3257 pathOffset += 8; |
| 3218 index = path.indexOf("/people", pathOffset); | 3258 index = path.indexOf("/people", pathOffset); |
| 3219 unittest.expect(index >= 0, unittest.isTrue); | 3259 unittest.expect(index >= 0, unittest.isTrue); |
| 3220 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3260 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3221 pathOffset = index; | 3261 pathOffset = index; |
| 3222 unittest.expect(subPart, unittest.equals("$arg_circleId")); | 3262 unittest.expect(subPart, unittest.equals("$arg_circleId")); |
| 3223 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); | 3263 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/people")); |
| 3224 pathOffset += 7; | 3264 pathOffset += 7; |
| 3225 | 3265 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3252 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { | 3292 res.listByCircle(arg_circleId, maxResults: arg_maxResults, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { |
| 3253 checkPeopleFeed(response); | 3293 checkPeopleFeed(response); |
| 3254 }))); | 3294 }))); |
| 3255 }); | 3295 }); |
| 3256 | 3296 |
| 3257 }); | 3297 }); |
| 3258 | 3298 |
| 3259 | 3299 |
| 3260 } | 3300 } |
| 3261 | 3301 |
| OLD | NEW |