| OLD | NEW |
| 1 library googleapis.androidenterprise.v1.test; | 1 library googleapis.androidenterprise.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 checkAuthenticationToken(api.AuthenticationToken o) { | 368 checkAuthenticationToken(api.AuthenticationToken o) { |
| 369 buildCounterAuthenticationToken++; | 369 buildCounterAuthenticationToken++; |
| 370 if (buildCounterAuthenticationToken < 3) { | 370 if (buildCounterAuthenticationToken < 3) { |
| 371 unittest.expect(o.kind, unittest.equals('foo')); | 371 unittest.expect(o.kind, unittest.equals('foo')); |
| 372 unittest.expect(o.token, unittest.equals('foo')); | 372 unittest.expect(o.token, unittest.equals('foo')); |
| 373 } | 373 } |
| 374 buildCounterAuthenticationToken--; | 374 buildCounterAuthenticationToken--; |
| 375 } | 375 } |
| 376 | 376 |
| 377 buildUnnamed1911() { | |
| 378 var o = new core.List<core.String>(); | |
| 379 o.add("foo"); | |
| 380 o.add("foo"); | |
| 381 return o; | |
| 382 } | |
| 383 | |
| 384 checkUnnamed1911(core.List<core.String> o) { | |
| 385 unittest.expect(o, unittest.hasLength(2)); | |
| 386 unittest.expect(o[0], unittest.equals('foo')); | |
| 387 unittest.expect(o[1], unittest.equals('foo')); | |
| 388 } | |
| 389 | |
| 390 core.int buildCounterCollection = 0; | |
| 391 buildCollection() { | |
| 392 var o = new api.Collection(); | |
| 393 buildCounterCollection++; | |
| 394 if (buildCounterCollection < 3) { | |
| 395 o.collectionId = "foo"; | |
| 396 o.kind = "foo"; | |
| 397 o.name = "foo"; | |
| 398 o.productId = buildUnnamed1911(); | |
| 399 o.visibility = "foo"; | |
| 400 } | |
| 401 buildCounterCollection--; | |
| 402 return o; | |
| 403 } | |
| 404 | |
| 405 checkCollection(api.Collection o) { | |
| 406 buildCounterCollection++; | |
| 407 if (buildCounterCollection < 3) { | |
| 408 unittest.expect(o.collectionId, unittest.equals('foo')); | |
| 409 unittest.expect(o.kind, unittest.equals('foo')); | |
| 410 unittest.expect(o.name, unittest.equals('foo')); | |
| 411 checkUnnamed1911(o.productId); | |
| 412 unittest.expect(o.visibility, unittest.equals('foo')); | |
| 413 } | |
| 414 buildCounterCollection--; | |
| 415 } | |
| 416 | |
| 417 buildUnnamed1912() { | |
| 418 var o = new core.List<api.User>(); | |
| 419 o.add(buildUser()); | |
| 420 o.add(buildUser()); | |
| 421 return o; | |
| 422 } | |
| 423 | |
| 424 checkUnnamed1912(core.List<api.User> o) { | |
| 425 unittest.expect(o, unittest.hasLength(2)); | |
| 426 checkUser(o[0]); | |
| 427 checkUser(o[1]); | |
| 428 } | |
| 429 | |
| 430 core.int buildCounterCollectionViewersListResponse = 0; | |
| 431 buildCollectionViewersListResponse() { | |
| 432 var o = new api.CollectionViewersListResponse(); | |
| 433 buildCounterCollectionViewersListResponse++; | |
| 434 if (buildCounterCollectionViewersListResponse < 3) { | |
| 435 o.kind = "foo"; | |
| 436 o.user = buildUnnamed1912(); | |
| 437 } | |
| 438 buildCounterCollectionViewersListResponse--; | |
| 439 return o; | |
| 440 } | |
| 441 | |
| 442 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { | |
| 443 buildCounterCollectionViewersListResponse++; | |
| 444 if (buildCounterCollectionViewersListResponse < 3) { | |
| 445 unittest.expect(o.kind, unittest.equals('foo')); | |
| 446 checkUnnamed1912(o.user); | |
| 447 } | |
| 448 buildCounterCollectionViewersListResponse--; | |
| 449 } | |
| 450 | |
| 451 buildUnnamed1913() { | |
| 452 var o = new core.List<api.Collection>(); | |
| 453 o.add(buildCollection()); | |
| 454 o.add(buildCollection()); | |
| 455 return o; | |
| 456 } | |
| 457 | |
| 458 checkUnnamed1913(core.List<api.Collection> o) { | |
| 459 unittest.expect(o, unittest.hasLength(2)); | |
| 460 checkCollection(o[0]); | |
| 461 checkCollection(o[1]); | |
| 462 } | |
| 463 | |
| 464 core.int buildCounterCollectionsListResponse = 0; | |
| 465 buildCollectionsListResponse() { | |
| 466 var o = new api.CollectionsListResponse(); | |
| 467 buildCounterCollectionsListResponse++; | |
| 468 if (buildCounterCollectionsListResponse < 3) { | |
| 469 o.collection = buildUnnamed1913(); | |
| 470 o.kind = "foo"; | |
| 471 } | |
| 472 buildCounterCollectionsListResponse--; | |
| 473 return o; | |
| 474 } | |
| 475 | |
| 476 checkCollectionsListResponse(api.CollectionsListResponse o) { | |
| 477 buildCounterCollectionsListResponse++; | |
| 478 if (buildCounterCollectionsListResponse < 3) { | |
| 479 checkUnnamed1913(o.collection); | |
| 480 unittest.expect(o.kind, unittest.equals('foo')); | |
| 481 } | |
| 482 buildCounterCollectionsListResponse--; | |
| 483 } | |
| 484 | |
| 485 core.int buildCounterDevice = 0; | 377 core.int buildCounterDevice = 0; |
| 486 buildDevice() { | 378 buildDevice() { |
| 487 var o = new api.Device(); | 379 var o = new api.Device(); |
| 488 buildCounterDevice++; | 380 buildCounterDevice++; |
| 489 if (buildCounterDevice < 3) { | 381 if (buildCounterDevice < 3) { |
| 490 o.androidId = "foo"; | 382 o.androidId = "foo"; |
| 491 o.kind = "foo"; | 383 o.kind = "foo"; |
| 492 o.managementType = "foo"; | 384 o.managementType = "foo"; |
| 493 } | 385 } |
| 494 buildCounterDevice--; | 386 buildCounterDevice--; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 519 | 411 |
| 520 checkDeviceState(api.DeviceState o) { | 412 checkDeviceState(api.DeviceState o) { |
| 521 buildCounterDeviceState++; | 413 buildCounterDeviceState++; |
| 522 if (buildCounterDeviceState < 3) { | 414 if (buildCounterDeviceState < 3) { |
| 523 unittest.expect(o.accountState, unittest.equals('foo')); | 415 unittest.expect(o.accountState, unittest.equals('foo')); |
| 524 unittest.expect(o.kind, unittest.equals('foo')); | 416 unittest.expect(o.kind, unittest.equals('foo')); |
| 525 } | 417 } |
| 526 buildCounterDeviceState--; | 418 buildCounterDeviceState--; |
| 527 } | 419 } |
| 528 | 420 |
| 529 buildUnnamed1914() { | 421 buildUnnamed1911() { |
| 530 var o = new core.List<api.Device>(); | 422 var o = new core.List<api.Device>(); |
| 531 o.add(buildDevice()); | 423 o.add(buildDevice()); |
| 532 o.add(buildDevice()); | 424 o.add(buildDevice()); |
| 533 return o; | 425 return o; |
| 534 } | 426 } |
| 535 | 427 |
| 536 checkUnnamed1914(core.List<api.Device> o) { | 428 checkUnnamed1911(core.List<api.Device> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 538 checkDevice(o[0]); | 430 checkDevice(o[0]); |
| 539 checkDevice(o[1]); | 431 checkDevice(o[1]); |
| 540 } | 432 } |
| 541 | 433 |
| 542 core.int buildCounterDevicesListResponse = 0; | 434 core.int buildCounterDevicesListResponse = 0; |
| 543 buildDevicesListResponse() { | 435 buildDevicesListResponse() { |
| 544 var o = new api.DevicesListResponse(); | 436 var o = new api.DevicesListResponse(); |
| 545 buildCounterDevicesListResponse++; | 437 buildCounterDevicesListResponse++; |
| 546 if (buildCounterDevicesListResponse < 3) { | 438 if (buildCounterDevicesListResponse < 3) { |
| 547 o.device = buildUnnamed1914(); | 439 o.device = buildUnnamed1911(); |
| 548 o.kind = "foo"; | 440 o.kind = "foo"; |
| 549 } | 441 } |
| 550 buildCounterDevicesListResponse--; | 442 buildCounterDevicesListResponse--; |
| 551 return o; | 443 return o; |
| 552 } | 444 } |
| 553 | 445 |
| 554 checkDevicesListResponse(api.DevicesListResponse o) { | 446 checkDevicesListResponse(api.DevicesListResponse o) { |
| 555 buildCounterDevicesListResponse++; | 447 buildCounterDevicesListResponse++; |
| 556 if (buildCounterDevicesListResponse < 3) { | 448 if (buildCounterDevicesListResponse < 3) { |
| 557 checkUnnamed1914(o.device); | 449 checkUnnamed1911(o.device); |
| 558 unittest.expect(o.kind, unittest.equals('foo')); | 450 unittest.expect(o.kind, unittest.equals('foo')); |
| 559 } | 451 } |
| 560 buildCounterDevicesListResponse--; | 452 buildCounterDevicesListResponse--; |
| 561 } | 453 } |
| 562 | 454 |
| 563 buildUnnamed1915() { | 455 buildUnnamed1912() { |
| 564 var o = new core.List<api.Administrator>(); | 456 var o = new core.List<api.Administrator>(); |
| 565 o.add(buildAdministrator()); | 457 o.add(buildAdministrator()); |
| 566 o.add(buildAdministrator()); | 458 o.add(buildAdministrator()); |
| 567 return o; | 459 return o; |
| 568 } | 460 } |
| 569 | 461 |
| 570 checkUnnamed1915(core.List<api.Administrator> o) { | 462 checkUnnamed1912(core.List<api.Administrator> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 463 unittest.expect(o, unittest.hasLength(2)); |
| 572 checkAdministrator(o[0]); | 464 checkAdministrator(o[0]); |
| 573 checkAdministrator(o[1]); | 465 checkAdministrator(o[1]); |
| 574 } | 466 } |
| 575 | 467 |
| 576 core.int buildCounterEnterprise = 0; | 468 core.int buildCounterEnterprise = 0; |
| 577 buildEnterprise() { | 469 buildEnterprise() { |
| 578 var o = new api.Enterprise(); | 470 var o = new api.Enterprise(); |
| 579 buildCounterEnterprise++; | 471 buildCounterEnterprise++; |
| 580 if (buildCounterEnterprise < 3) { | 472 if (buildCounterEnterprise < 3) { |
| 581 o.administrator = buildUnnamed1915(); | 473 o.administrator = buildUnnamed1912(); |
| 582 o.id = "foo"; | 474 o.id = "foo"; |
| 583 o.kind = "foo"; | 475 o.kind = "foo"; |
| 584 o.name = "foo"; | 476 o.name = "foo"; |
| 585 o.primaryDomain = "foo"; | 477 o.primaryDomain = "foo"; |
| 586 } | 478 } |
| 587 buildCounterEnterprise--; | 479 buildCounterEnterprise--; |
| 588 return o; | 480 return o; |
| 589 } | 481 } |
| 590 | 482 |
| 591 checkEnterprise(api.Enterprise o) { | 483 checkEnterprise(api.Enterprise o) { |
| 592 buildCounterEnterprise++; | 484 buildCounterEnterprise++; |
| 593 if (buildCounterEnterprise < 3) { | 485 if (buildCounterEnterprise < 3) { |
| 594 checkUnnamed1915(o.administrator); | 486 checkUnnamed1912(o.administrator); |
| 595 unittest.expect(o.id, unittest.equals('foo')); | 487 unittest.expect(o.id, unittest.equals('foo')); |
| 596 unittest.expect(o.kind, unittest.equals('foo')); | 488 unittest.expect(o.kind, unittest.equals('foo')); |
| 597 unittest.expect(o.name, unittest.equals('foo')); | 489 unittest.expect(o.name, unittest.equals('foo')); |
| 598 unittest.expect(o.primaryDomain, unittest.equals('foo')); | 490 unittest.expect(o.primaryDomain, unittest.equals('foo')); |
| 599 } | 491 } |
| 600 buildCounterEnterprise--; | 492 buildCounterEnterprise--; |
| 601 } | 493 } |
| 602 | 494 |
| 603 core.int buildCounterEnterpriseAccount = 0; | 495 core.int buildCounterEnterpriseAccount = 0; |
| 604 buildEnterpriseAccount() { | 496 buildEnterpriseAccount() { |
| 605 var o = new api.EnterpriseAccount(); | 497 var o = new api.EnterpriseAccount(); |
| 606 buildCounterEnterpriseAccount++; | 498 buildCounterEnterpriseAccount++; |
| 607 if (buildCounterEnterpriseAccount < 3) { | 499 if (buildCounterEnterpriseAccount < 3) { |
| 608 o.accountEmail = "foo"; | 500 o.accountEmail = "foo"; |
| 609 o.kind = "foo"; | 501 o.kind = "foo"; |
| 610 } | 502 } |
| 611 buildCounterEnterpriseAccount--; | 503 buildCounterEnterpriseAccount--; |
| 612 return o; | 504 return o; |
| 613 } | 505 } |
| 614 | 506 |
| 615 checkEnterpriseAccount(api.EnterpriseAccount o) { | 507 checkEnterpriseAccount(api.EnterpriseAccount o) { |
| 616 buildCounterEnterpriseAccount++; | 508 buildCounterEnterpriseAccount++; |
| 617 if (buildCounterEnterpriseAccount < 3) { | 509 if (buildCounterEnterpriseAccount < 3) { |
| 618 unittest.expect(o.accountEmail, unittest.equals('foo')); | 510 unittest.expect(o.accountEmail, unittest.equals('foo')); |
| 619 unittest.expect(o.kind, unittest.equals('foo')); | 511 unittest.expect(o.kind, unittest.equals('foo')); |
| 620 } | 512 } |
| 621 buildCounterEnterpriseAccount--; | 513 buildCounterEnterpriseAccount--; |
| 622 } | 514 } |
| 623 | 515 |
| 624 buildUnnamed1916() { | 516 buildUnnamed1913() { |
| 625 var o = new core.List<api.Enterprise>(); | 517 var o = new core.List<api.Enterprise>(); |
| 626 o.add(buildEnterprise()); | 518 o.add(buildEnterprise()); |
| 627 o.add(buildEnterprise()); | 519 o.add(buildEnterprise()); |
| 628 return o; | 520 return o; |
| 629 } | 521 } |
| 630 | 522 |
| 631 checkUnnamed1916(core.List<api.Enterprise> o) { | 523 checkUnnamed1913(core.List<api.Enterprise> o) { |
| 632 unittest.expect(o, unittest.hasLength(2)); | 524 unittest.expect(o, unittest.hasLength(2)); |
| 633 checkEnterprise(o[0]); | 525 checkEnterprise(o[0]); |
| 634 checkEnterprise(o[1]); | 526 checkEnterprise(o[1]); |
| 635 } | 527 } |
| 636 | 528 |
| 637 core.int buildCounterEnterprisesListResponse = 0; | 529 core.int buildCounterEnterprisesListResponse = 0; |
| 638 buildEnterprisesListResponse() { | 530 buildEnterprisesListResponse() { |
| 639 var o = new api.EnterprisesListResponse(); | 531 var o = new api.EnterprisesListResponse(); |
| 640 buildCounterEnterprisesListResponse++; | 532 buildCounterEnterprisesListResponse++; |
| 641 if (buildCounterEnterprisesListResponse < 3) { | 533 if (buildCounterEnterprisesListResponse < 3) { |
| 642 o.enterprise = buildUnnamed1916(); | 534 o.enterprise = buildUnnamed1913(); |
| 643 o.kind = "foo"; | 535 o.kind = "foo"; |
| 644 } | 536 } |
| 645 buildCounterEnterprisesListResponse--; | 537 buildCounterEnterprisesListResponse--; |
| 646 return o; | 538 return o; |
| 647 } | 539 } |
| 648 | 540 |
| 649 checkEnterprisesListResponse(api.EnterprisesListResponse o) { | 541 checkEnterprisesListResponse(api.EnterprisesListResponse o) { |
| 650 buildCounterEnterprisesListResponse++; | 542 buildCounterEnterprisesListResponse++; |
| 651 if (buildCounterEnterprisesListResponse < 3) { | 543 if (buildCounterEnterprisesListResponse < 3) { |
| 652 checkUnnamed1916(o.enterprise); | 544 checkUnnamed1913(o.enterprise); |
| 653 unittest.expect(o.kind, unittest.equals('foo')); | 545 unittest.expect(o.kind, unittest.equals('foo')); |
| 654 } | 546 } |
| 655 buildCounterEnterprisesListResponse--; | 547 buildCounterEnterprisesListResponse--; |
| 656 } | 548 } |
| 657 | 549 |
| 658 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; | 550 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; |
| 659 buildEnterprisesSendTestPushNotificationResponse() { | 551 buildEnterprisesSendTestPushNotificationResponse() { |
| 660 var o = new api.EnterprisesSendTestPushNotificationResponse(); | 552 var o = new api.EnterprisesSendTestPushNotificationResponse(); |
| 661 buildCounterEnterprisesSendTestPushNotificationResponse++; | 553 buildCounterEnterprisesSendTestPushNotificationResponse++; |
| 662 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { | 554 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 692 checkEntitlement(api.Entitlement o) { | 584 checkEntitlement(api.Entitlement o) { |
| 693 buildCounterEntitlement++; | 585 buildCounterEntitlement++; |
| 694 if (buildCounterEntitlement < 3) { | 586 if (buildCounterEntitlement < 3) { |
| 695 unittest.expect(o.kind, unittest.equals('foo')); | 587 unittest.expect(o.kind, unittest.equals('foo')); |
| 696 unittest.expect(o.productId, unittest.equals('foo')); | 588 unittest.expect(o.productId, unittest.equals('foo')); |
| 697 unittest.expect(o.reason, unittest.equals('foo')); | 589 unittest.expect(o.reason, unittest.equals('foo')); |
| 698 } | 590 } |
| 699 buildCounterEntitlement--; | 591 buildCounterEntitlement--; |
| 700 } | 592 } |
| 701 | 593 |
| 702 buildUnnamed1917() { | 594 buildUnnamed1914() { |
| 703 var o = new core.List<api.Entitlement>(); | 595 var o = new core.List<api.Entitlement>(); |
| 704 o.add(buildEntitlement()); | 596 o.add(buildEntitlement()); |
| 705 o.add(buildEntitlement()); | 597 o.add(buildEntitlement()); |
| 706 return o; | 598 return o; |
| 707 } | 599 } |
| 708 | 600 |
| 709 checkUnnamed1917(core.List<api.Entitlement> o) { | 601 checkUnnamed1914(core.List<api.Entitlement> o) { |
| 710 unittest.expect(o, unittest.hasLength(2)); | 602 unittest.expect(o, unittest.hasLength(2)); |
| 711 checkEntitlement(o[0]); | 603 checkEntitlement(o[0]); |
| 712 checkEntitlement(o[1]); | 604 checkEntitlement(o[1]); |
| 713 } | 605 } |
| 714 | 606 |
| 715 core.int buildCounterEntitlementsListResponse = 0; | 607 core.int buildCounterEntitlementsListResponse = 0; |
| 716 buildEntitlementsListResponse() { | 608 buildEntitlementsListResponse() { |
| 717 var o = new api.EntitlementsListResponse(); | 609 var o = new api.EntitlementsListResponse(); |
| 718 buildCounterEntitlementsListResponse++; | 610 buildCounterEntitlementsListResponse++; |
| 719 if (buildCounterEntitlementsListResponse < 3) { | 611 if (buildCounterEntitlementsListResponse < 3) { |
| 720 o.entitlement = buildUnnamed1917(); | 612 o.entitlement = buildUnnamed1914(); |
| 721 o.kind = "foo"; | 613 o.kind = "foo"; |
| 722 } | 614 } |
| 723 buildCounterEntitlementsListResponse--; | 615 buildCounterEntitlementsListResponse--; |
| 724 return o; | 616 return o; |
| 725 } | 617 } |
| 726 | 618 |
| 727 checkEntitlementsListResponse(api.EntitlementsListResponse o) { | 619 checkEntitlementsListResponse(api.EntitlementsListResponse o) { |
| 728 buildCounterEntitlementsListResponse++; | 620 buildCounterEntitlementsListResponse++; |
| 729 if (buildCounterEntitlementsListResponse < 3) { | 621 if (buildCounterEntitlementsListResponse < 3) { |
| 730 checkUnnamed1917(o.entitlement); | 622 checkUnnamed1914(o.entitlement); |
| 731 unittest.expect(o.kind, unittest.equals('foo')); | 623 unittest.expect(o.kind, unittest.equals('foo')); |
| 732 } | 624 } |
| 733 buildCounterEntitlementsListResponse--; | 625 buildCounterEntitlementsListResponse--; |
| 734 } | 626 } |
| 735 | 627 |
| 736 core.int buildCounterGroupLicense = 0; | 628 core.int buildCounterGroupLicense = 0; |
| 737 buildGroupLicense() { | 629 buildGroupLicense() { |
| 738 var o = new api.GroupLicense(); | 630 var o = new api.GroupLicense(); |
| 739 buildCounterGroupLicense++; | 631 buildCounterGroupLicense++; |
| 740 if (buildCounterGroupLicense < 3) { | 632 if (buildCounterGroupLicense < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 755 unittest.expect(o.acquisitionKind, unittest.equals('foo')); | 647 unittest.expect(o.acquisitionKind, unittest.equals('foo')); |
| 756 unittest.expect(o.approval, unittest.equals('foo')); | 648 unittest.expect(o.approval, unittest.equals('foo')); |
| 757 unittest.expect(o.kind, unittest.equals('foo')); | 649 unittest.expect(o.kind, unittest.equals('foo')); |
| 758 unittest.expect(o.numProvisioned, unittest.equals(42)); | 650 unittest.expect(o.numProvisioned, unittest.equals(42)); |
| 759 unittest.expect(o.numPurchased, unittest.equals(42)); | 651 unittest.expect(o.numPurchased, unittest.equals(42)); |
| 760 unittest.expect(o.productId, unittest.equals('foo')); | 652 unittest.expect(o.productId, unittest.equals('foo')); |
| 761 } | 653 } |
| 762 buildCounterGroupLicense--; | 654 buildCounterGroupLicense--; |
| 763 } | 655 } |
| 764 | 656 |
| 765 buildUnnamed1918() { | 657 buildUnnamed1915() { |
| 766 var o = new core.List<api.User>(); | 658 var o = new core.List<api.User>(); |
| 767 o.add(buildUser()); | 659 o.add(buildUser()); |
| 768 o.add(buildUser()); | 660 o.add(buildUser()); |
| 769 return o; | 661 return o; |
| 770 } | 662 } |
| 771 | 663 |
| 772 checkUnnamed1918(core.List<api.User> o) { | 664 checkUnnamed1915(core.List<api.User> o) { |
| 773 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
| 774 checkUser(o[0]); | 666 checkUser(o[0]); |
| 775 checkUser(o[1]); | 667 checkUser(o[1]); |
| 776 } | 668 } |
| 777 | 669 |
| 778 core.int buildCounterGroupLicenseUsersListResponse = 0; | 670 core.int buildCounterGroupLicenseUsersListResponse = 0; |
| 779 buildGroupLicenseUsersListResponse() { | 671 buildGroupLicenseUsersListResponse() { |
| 780 var o = new api.GroupLicenseUsersListResponse(); | 672 var o = new api.GroupLicenseUsersListResponse(); |
| 781 buildCounterGroupLicenseUsersListResponse++; | 673 buildCounterGroupLicenseUsersListResponse++; |
| 782 if (buildCounterGroupLicenseUsersListResponse < 3) { | 674 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 783 o.kind = "foo"; | 675 o.kind = "foo"; |
| 784 o.user = buildUnnamed1918(); | 676 o.user = buildUnnamed1915(); |
| 785 } | 677 } |
| 786 buildCounterGroupLicenseUsersListResponse--; | 678 buildCounterGroupLicenseUsersListResponse--; |
| 787 return o; | 679 return o; |
| 788 } | 680 } |
| 789 | 681 |
| 790 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { | 682 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { |
| 791 buildCounterGroupLicenseUsersListResponse++; | 683 buildCounterGroupLicenseUsersListResponse++; |
| 792 if (buildCounterGroupLicenseUsersListResponse < 3) { | 684 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 793 unittest.expect(o.kind, unittest.equals('foo')); | 685 unittest.expect(o.kind, unittest.equals('foo')); |
| 794 checkUnnamed1918(o.user); | 686 checkUnnamed1915(o.user); |
| 795 } | 687 } |
| 796 buildCounterGroupLicenseUsersListResponse--; | 688 buildCounterGroupLicenseUsersListResponse--; |
| 797 } | 689 } |
| 798 | 690 |
| 799 buildUnnamed1919() { | 691 buildUnnamed1916() { |
| 800 var o = new core.List<api.GroupLicense>(); | 692 var o = new core.List<api.GroupLicense>(); |
| 801 o.add(buildGroupLicense()); | 693 o.add(buildGroupLicense()); |
| 802 o.add(buildGroupLicense()); | 694 o.add(buildGroupLicense()); |
| 803 return o; | 695 return o; |
| 804 } | 696 } |
| 805 | 697 |
| 806 checkUnnamed1919(core.List<api.GroupLicense> o) { | 698 checkUnnamed1916(core.List<api.GroupLicense> o) { |
| 807 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
| 808 checkGroupLicense(o[0]); | 700 checkGroupLicense(o[0]); |
| 809 checkGroupLicense(o[1]); | 701 checkGroupLicense(o[1]); |
| 810 } | 702 } |
| 811 | 703 |
| 812 core.int buildCounterGroupLicensesListResponse = 0; | 704 core.int buildCounterGroupLicensesListResponse = 0; |
| 813 buildGroupLicensesListResponse() { | 705 buildGroupLicensesListResponse() { |
| 814 var o = new api.GroupLicensesListResponse(); | 706 var o = new api.GroupLicensesListResponse(); |
| 815 buildCounterGroupLicensesListResponse++; | 707 buildCounterGroupLicensesListResponse++; |
| 816 if (buildCounterGroupLicensesListResponse < 3) { | 708 if (buildCounterGroupLicensesListResponse < 3) { |
| 817 o.groupLicense = buildUnnamed1919(); | 709 o.groupLicense = buildUnnamed1916(); |
| 818 o.kind = "foo"; | 710 o.kind = "foo"; |
| 819 } | 711 } |
| 820 buildCounterGroupLicensesListResponse--; | 712 buildCounterGroupLicensesListResponse--; |
| 821 return o; | 713 return o; |
| 822 } | 714 } |
| 823 | 715 |
| 824 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { | 716 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { |
| 825 buildCounterGroupLicensesListResponse++; | 717 buildCounterGroupLicensesListResponse++; |
| 826 if (buildCounterGroupLicensesListResponse < 3) { | 718 if (buildCounterGroupLicensesListResponse < 3) { |
| 827 checkUnnamed1919(o.groupLicense); | 719 checkUnnamed1916(o.groupLicense); |
| 828 unittest.expect(o.kind, unittest.equals('foo')); | 720 unittest.expect(o.kind, unittest.equals('foo')); |
| 829 } | 721 } |
| 830 buildCounterGroupLicensesListResponse--; | 722 buildCounterGroupLicensesListResponse--; |
| 831 } | 723 } |
| 832 | 724 |
| 833 core.int buildCounterInstall = 0; | 725 core.int buildCounterInstall = 0; |
| 834 buildInstall() { | 726 buildInstall() { |
| 835 var o = new api.Install(); | 727 var o = new api.Install(); |
| 836 buildCounterInstall++; | 728 buildCounterInstall++; |
| 837 if (buildCounterInstall < 3) { | 729 if (buildCounterInstall < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 if (buildCounterInstallFailureEvent < 3) { | 767 if (buildCounterInstallFailureEvent < 3) { |
| 876 unittest.expect(o.deviceId, unittest.equals('foo')); | 768 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 877 unittest.expect(o.failureDetails, unittest.equals('foo')); | 769 unittest.expect(o.failureDetails, unittest.equals('foo')); |
| 878 unittest.expect(o.failureReason, unittest.equals('foo')); | 770 unittest.expect(o.failureReason, unittest.equals('foo')); |
| 879 unittest.expect(o.productId, unittest.equals('foo')); | 771 unittest.expect(o.productId, unittest.equals('foo')); |
| 880 unittest.expect(o.userId, unittest.equals('foo')); | 772 unittest.expect(o.userId, unittest.equals('foo')); |
| 881 } | 773 } |
| 882 buildCounterInstallFailureEvent--; | 774 buildCounterInstallFailureEvent--; |
| 883 } | 775 } |
| 884 | 776 |
| 885 buildUnnamed1920() { | 777 buildUnnamed1917() { |
| 886 var o = new core.List<api.Install>(); | 778 var o = new core.List<api.Install>(); |
| 887 o.add(buildInstall()); | 779 o.add(buildInstall()); |
| 888 o.add(buildInstall()); | 780 o.add(buildInstall()); |
| 889 return o; | 781 return o; |
| 890 } | 782 } |
| 891 | 783 |
| 892 checkUnnamed1920(core.List<api.Install> o) { | 784 checkUnnamed1917(core.List<api.Install> o) { |
| 893 unittest.expect(o, unittest.hasLength(2)); | 785 unittest.expect(o, unittest.hasLength(2)); |
| 894 checkInstall(o[0]); | 786 checkInstall(o[0]); |
| 895 checkInstall(o[1]); | 787 checkInstall(o[1]); |
| 896 } | 788 } |
| 897 | 789 |
| 898 core.int buildCounterInstallsListResponse = 0; | 790 core.int buildCounterInstallsListResponse = 0; |
| 899 buildInstallsListResponse() { | 791 buildInstallsListResponse() { |
| 900 var o = new api.InstallsListResponse(); | 792 var o = new api.InstallsListResponse(); |
| 901 buildCounterInstallsListResponse++; | 793 buildCounterInstallsListResponse++; |
| 902 if (buildCounterInstallsListResponse < 3) { | 794 if (buildCounterInstallsListResponse < 3) { |
| 903 o.install = buildUnnamed1920(); | 795 o.install = buildUnnamed1917(); |
| 904 o.kind = "foo"; | 796 o.kind = "foo"; |
| 905 } | 797 } |
| 906 buildCounterInstallsListResponse--; | 798 buildCounterInstallsListResponse--; |
| 907 return o; | 799 return o; |
| 908 } | 800 } |
| 909 | 801 |
| 910 checkInstallsListResponse(api.InstallsListResponse o) { | 802 checkInstallsListResponse(api.InstallsListResponse o) { |
| 911 buildCounterInstallsListResponse++; | 803 buildCounterInstallsListResponse++; |
| 912 if (buildCounterInstallsListResponse < 3) { | 804 if (buildCounterInstallsListResponse < 3) { |
| 913 checkUnnamed1920(o.install); | 805 checkUnnamed1917(o.install); |
| 914 unittest.expect(o.kind, unittest.equals('foo')); | 806 unittest.expect(o.kind, unittest.equals('foo')); |
| 915 } | 807 } |
| 916 buildCounterInstallsListResponse--; | 808 buildCounterInstallsListResponse--; |
| 917 } | 809 } |
| 918 | 810 |
| 919 core.int buildCounterLocalizedText = 0; | 811 core.int buildCounterLocalizedText = 0; |
| 920 buildLocalizedText() { | 812 buildLocalizedText() { |
| 921 var o = new api.LocalizedText(); | 813 var o = new api.LocalizedText(); |
| 922 buildCounterLocalizedText++; | 814 buildCounterLocalizedText++; |
| 923 if (buildCounterLocalizedText < 3) { | 815 if (buildCounterLocalizedText < 3) { |
| 924 o.locale = "foo"; | 816 o.locale = "foo"; |
| 925 o.text = "foo"; | 817 o.text = "foo"; |
| 926 } | 818 } |
| 927 buildCounterLocalizedText--; | 819 buildCounterLocalizedText--; |
| 928 return o; | 820 return o; |
| 929 } | 821 } |
| 930 | 822 |
| 931 checkLocalizedText(api.LocalizedText o) { | 823 checkLocalizedText(api.LocalizedText o) { |
| 932 buildCounterLocalizedText++; | 824 buildCounterLocalizedText++; |
| 933 if (buildCounterLocalizedText < 3) { | 825 if (buildCounterLocalizedText < 3) { |
| 934 unittest.expect(o.locale, unittest.equals('foo')); | 826 unittest.expect(o.locale, unittest.equals('foo')); |
| 935 unittest.expect(o.text, unittest.equals('foo')); | 827 unittest.expect(o.text, unittest.equals('foo')); |
| 936 } | 828 } |
| 937 buildCounterLocalizedText--; | 829 buildCounterLocalizedText--; |
| 938 } | 830 } |
| 939 | 831 |
| 940 buildUnnamed1921() { | 832 buildUnnamed1918() { |
| 941 var o = new core.List<api.ManagedProperty>(); | 833 var o = new core.List<api.ManagedProperty>(); |
| 942 o.add(buildManagedProperty()); | 834 o.add(buildManagedProperty()); |
| 943 o.add(buildManagedProperty()); | 835 o.add(buildManagedProperty()); |
| 944 return o; | 836 return o; |
| 945 } | 837 } |
| 946 | 838 |
| 947 checkUnnamed1921(core.List<api.ManagedProperty> o) { | 839 checkUnnamed1918(core.List<api.ManagedProperty> o) { |
| 948 unittest.expect(o, unittest.hasLength(2)); | 840 unittest.expect(o, unittest.hasLength(2)); |
| 949 checkManagedProperty(o[0]); | 841 checkManagedProperty(o[0]); |
| 950 checkManagedProperty(o[1]); | 842 checkManagedProperty(o[1]); |
| 951 } | 843 } |
| 952 | 844 |
| 953 core.int buildCounterManagedConfiguration = 0; | 845 core.int buildCounterManagedConfiguration = 0; |
| 954 buildManagedConfiguration() { | 846 buildManagedConfiguration() { |
| 955 var o = new api.ManagedConfiguration(); | 847 var o = new api.ManagedConfiguration(); |
| 956 buildCounterManagedConfiguration++; | 848 buildCounterManagedConfiguration++; |
| 957 if (buildCounterManagedConfiguration < 3) { | 849 if (buildCounterManagedConfiguration < 3) { |
| 958 o.kind = "foo"; | 850 o.kind = "foo"; |
| 959 o.managedProperty = buildUnnamed1921(); | 851 o.managedProperty = buildUnnamed1918(); |
| 960 o.productId = "foo"; | 852 o.productId = "foo"; |
| 961 } | 853 } |
| 962 buildCounterManagedConfiguration--; | 854 buildCounterManagedConfiguration--; |
| 963 return o; | 855 return o; |
| 964 } | 856 } |
| 965 | 857 |
| 966 checkManagedConfiguration(api.ManagedConfiguration o) { | 858 checkManagedConfiguration(api.ManagedConfiguration o) { |
| 967 buildCounterManagedConfiguration++; | 859 buildCounterManagedConfiguration++; |
| 968 if (buildCounterManagedConfiguration < 3) { | 860 if (buildCounterManagedConfiguration < 3) { |
| 969 unittest.expect(o.kind, unittest.equals('foo')); | 861 unittest.expect(o.kind, unittest.equals('foo')); |
| 970 checkUnnamed1921(o.managedProperty); | 862 checkUnnamed1918(o.managedProperty); |
| 971 unittest.expect(o.productId, unittest.equals('foo')); | 863 unittest.expect(o.productId, unittest.equals('foo')); |
| 972 } | 864 } |
| 973 buildCounterManagedConfiguration--; | 865 buildCounterManagedConfiguration--; |
| 974 } | 866 } |
| 975 | 867 |
| 976 buildUnnamed1922() { | 868 buildUnnamed1919() { |
| 977 var o = new core.List<api.ManagedConfiguration>(); | 869 var o = new core.List<api.ManagedConfiguration>(); |
| 978 o.add(buildManagedConfiguration()); | 870 o.add(buildManagedConfiguration()); |
| 979 o.add(buildManagedConfiguration()); | 871 o.add(buildManagedConfiguration()); |
| 980 return o; | 872 return o; |
| 981 } | 873 } |
| 982 | 874 |
| 983 checkUnnamed1922(core.List<api.ManagedConfiguration> o) { | 875 checkUnnamed1919(core.List<api.ManagedConfiguration> o) { |
| 984 unittest.expect(o, unittest.hasLength(2)); | 876 unittest.expect(o, unittest.hasLength(2)); |
| 985 checkManagedConfiguration(o[0]); | 877 checkManagedConfiguration(o[0]); |
| 986 checkManagedConfiguration(o[1]); | 878 checkManagedConfiguration(o[1]); |
| 987 } | 879 } |
| 988 | 880 |
| 989 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; | 881 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; |
| 990 buildManagedConfigurationsForDeviceListResponse() { | 882 buildManagedConfigurationsForDeviceListResponse() { |
| 991 var o = new api.ManagedConfigurationsForDeviceListResponse(); | 883 var o = new api.ManagedConfigurationsForDeviceListResponse(); |
| 992 buildCounterManagedConfigurationsForDeviceListResponse++; | 884 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 993 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { | 885 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 994 o.kind = "foo"; | 886 o.kind = "foo"; |
| 995 o.managedConfigurationForDevice = buildUnnamed1922(); | 887 o.managedConfigurationForDevice = buildUnnamed1919(); |
| 996 } | 888 } |
| 997 buildCounterManagedConfigurationsForDeviceListResponse--; | 889 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 998 return o; | 890 return o; |
| 999 } | 891 } |
| 1000 | 892 |
| 1001 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi
ceListResponse o) { | 893 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi
ceListResponse o) { |
| 1002 buildCounterManagedConfigurationsForDeviceListResponse++; | 894 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 1003 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { | 895 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 1004 unittest.expect(o.kind, unittest.equals('foo')); | 896 unittest.expect(o.kind, unittest.equals('foo')); |
| 1005 checkUnnamed1922(o.managedConfigurationForDevice); | 897 checkUnnamed1919(o.managedConfigurationForDevice); |
| 1006 } | 898 } |
| 1007 buildCounterManagedConfigurationsForDeviceListResponse--; | 899 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 1008 } | 900 } |
| 1009 | 901 |
| 1010 buildUnnamed1923() { | 902 buildUnnamed1920() { |
| 1011 var o = new core.List<api.ManagedConfiguration>(); | 903 var o = new core.List<api.ManagedConfiguration>(); |
| 1012 o.add(buildManagedConfiguration()); | 904 o.add(buildManagedConfiguration()); |
| 1013 o.add(buildManagedConfiguration()); | 905 o.add(buildManagedConfiguration()); |
| 1014 return o; | 906 return o; |
| 1015 } | 907 } |
| 1016 | 908 |
| 1017 checkUnnamed1923(core.List<api.ManagedConfiguration> o) { | 909 checkUnnamed1920(core.List<api.ManagedConfiguration> o) { |
| 1018 unittest.expect(o, unittest.hasLength(2)); | 910 unittest.expect(o, unittest.hasLength(2)); |
| 1019 checkManagedConfiguration(o[0]); | 911 checkManagedConfiguration(o[0]); |
| 1020 checkManagedConfiguration(o[1]); | 912 checkManagedConfiguration(o[1]); |
| 1021 } | 913 } |
| 1022 | 914 |
| 1023 core.int buildCounterManagedConfigurationsForUserListResponse = 0; | 915 core.int buildCounterManagedConfigurationsForUserListResponse = 0; |
| 1024 buildManagedConfigurationsForUserListResponse() { | 916 buildManagedConfigurationsForUserListResponse() { |
| 1025 var o = new api.ManagedConfigurationsForUserListResponse(); | 917 var o = new api.ManagedConfigurationsForUserListResponse(); |
| 1026 buildCounterManagedConfigurationsForUserListResponse++; | 918 buildCounterManagedConfigurationsForUserListResponse++; |
| 1027 if (buildCounterManagedConfigurationsForUserListResponse < 3) { | 919 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 1028 o.kind = "foo"; | 920 o.kind = "foo"; |
| 1029 o.managedConfigurationForUser = buildUnnamed1923(); | 921 o.managedConfigurationForUser = buildUnnamed1920(); |
| 1030 } | 922 } |
| 1031 buildCounterManagedConfigurationsForUserListResponse--; | 923 buildCounterManagedConfigurationsForUserListResponse--; |
| 1032 return o; | 924 return o; |
| 1033 } | 925 } |
| 1034 | 926 |
| 1035 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi
stResponse o) { | 927 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi
stResponse o) { |
| 1036 buildCounterManagedConfigurationsForUserListResponse++; | 928 buildCounterManagedConfigurationsForUserListResponse++; |
| 1037 if (buildCounterManagedConfigurationsForUserListResponse < 3) { | 929 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 1038 unittest.expect(o.kind, unittest.equals('foo')); | 930 unittest.expect(o.kind, unittest.equals('foo')); |
| 1039 checkUnnamed1923(o.managedConfigurationForUser); | 931 checkUnnamed1920(o.managedConfigurationForUser); |
| 1040 } | 932 } |
| 1041 buildCounterManagedConfigurationsForUserListResponse--; | 933 buildCounterManagedConfigurationsForUserListResponse--; |
| 1042 } | 934 } |
| 1043 | 935 |
| 1044 buildUnnamed1924() { | 936 buildUnnamed1921() { |
| 1045 var o = new core.List<api.ManagedPropertyBundle>(); | 937 var o = new core.List<api.ManagedPropertyBundle>(); |
| 1046 o.add(buildManagedPropertyBundle()); | 938 o.add(buildManagedPropertyBundle()); |
| 1047 o.add(buildManagedPropertyBundle()); | 939 o.add(buildManagedPropertyBundle()); |
| 1048 return o; | 940 return o; |
| 1049 } | 941 } |
| 1050 | 942 |
| 1051 checkUnnamed1924(core.List<api.ManagedPropertyBundle> o) { | 943 checkUnnamed1921(core.List<api.ManagedPropertyBundle> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); | 944 unittest.expect(o, unittest.hasLength(2)); |
| 1053 checkManagedPropertyBundle(o[0]); | 945 checkManagedPropertyBundle(o[0]); |
| 1054 checkManagedPropertyBundle(o[1]); | 946 checkManagedPropertyBundle(o[1]); |
| 1055 } | 947 } |
| 1056 | 948 |
| 1057 buildUnnamed1925() { | 949 buildUnnamed1922() { |
| 1058 var o = new core.List<core.String>(); | 950 var o = new core.List<core.String>(); |
| 1059 o.add("foo"); | 951 o.add("foo"); |
| 1060 o.add("foo"); | 952 o.add("foo"); |
| 1061 return o; | 953 return o; |
| 1062 } | 954 } |
| 1063 | 955 |
| 1064 checkUnnamed1925(core.List<core.String> o) { | 956 checkUnnamed1922(core.List<core.String> o) { |
| 1065 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
| 1066 unittest.expect(o[0], unittest.equals('foo')); | 958 unittest.expect(o[0], unittest.equals('foo')); |
| 1067 unittest.expect(o[1], unittest.equals('foo')); | 959 unittest.expect(o[1], unittest.equals('foo')); |
| 1068 } | 960 } |
| 1069 | 961 |
| 1070 core.int buildCounterManagedProperty = 0; | 962 core.int buildCounterManagedProperty = 0; |
| 1071 buildManagedProperty() { | 963 buildManagedProperty() { |
| 1072 var o = new api.ManagedProperty(); | 964 var o = new api.ManagedProperty(); |
| 1073 buildCounterManagedProperty++; | 965 buildCounterManagedProperty++; |
| 1074 if (buildCounterManagedProperty < 3) { | 966 if (buildCounterManagedProperty < 3) { |
| 1075 o.key = "foo"; | 967 o.key = "foo"; |
| 1076 o.valueBool = true; | 968 o.valueBool = true; |
| 1077 o.valueBundle = buildManagedPropertyBundle(); | 969 o.valueBundle = buildManagedPropertyBundle(); |
| 1078 o.valueBundleArray = buildUnnamed1924(); | 970 o.valueBundleArray = buildUnnamed1921(); |
| 1079 o.valueInteger = 42; | 971 o.valueInteger = 42; |
| 1080 o.valueString = "foo"; | 972 o.valueString = "foo"; |
| 1081 o.valueStringArray = buildUnnamed1925(); | 973 o.valueStringArray = buildUnnamed1922(); |
| 1082 } | 974 } |
| 1083 buildCounterManagedProperty--; | 975 buildCounterManagedProperty--; |
| 1084 return o; | 976 return o; |
| 1085 } | 977 } |
| 1086 | 978 |
| 1087 checkManagedProperty(api.ManagedProperty o) { | 979 checkManagedProperty(api.ManagedProperty o) { |
| 1088 buildCounterManagedProperty++; | 980 buildCounterManagedProperty++; |
| 1089 if (buildCounterManagedProperty < 3) { | 981 if (buildCounterManagedProperty < 3) { |
| 1090 unittest.expect(o.key, unittest.equals('foo')); | 982 unittest.expect(o.key, unittest.equals('foo')); |
| 1091 unittest.expect(o.valueBool, unittest.isTrue); | 983 unittest.expect(o.valueBool, unittest.isTrue); |
| 1092 checkManagedPropertyBundle(o.valueBundle); | 984 checkManagedPropertyBundle(o.valueBundle); |
| 1093 checkUnnamed1924(o.valueBundleArray); | 985 checkUnnamed1921(o.valueBundleArray); |
| 1094 unittest.expect(o.valueInteger, unittest.equals(42)); | 986 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 1095 unittest.expect(o.valueString, unittest.equals('foo')); | 987 unittest.expect(o.valueString, unittest.equals('foo')); |
| 1096 checkUnnamed1925(o.valueStringArray); | 988 checkUnnamed1922(o.valueStringArray); |
| 1097 } | 989 } |
| 1098 buildCounterManagedProperty--; | 990 buildCounterManagedProperty--; |
| 1099 } | 991 } |
| 1100 | 992 |
| 1101 buildUnnamed1926() { | 993 buildUnnamed1923() { |
| 1102 var o = new core.List<api.ManagedProperty>(); | 994 var o = new core.List<api.ManagedProperty>(); |
| 1103 o.add(buildManagedProperty()); | 995 o.add(buildManagedProperty()); |
| 1104 o.add(buildManagedProperty()); | 996 o.add(buildManagedProperty()); |
| 1105 return o; | 997 return o; |
| 1106 } | 998 } |
| 1107 | 999 |
| 1108 checkUnnamed1926(core.List<api.ManagedProperty> o) { | 1000 checkUnnamed1923(core.List<api.ManagedProperty> o) { |
| 1109 unittest.expect(o, unittest.hasLength(2)); | 1001 unittest.expect(o, unittest.hasLength(2)); |
| 1110 checkManagedProperty(o[0]); | 1002 checkManagedProperty(o[0]); |
| 1111 checkManagedProperty(o[1]); | 1003 checkManagedProperty(o[1]); |
| 1112 } | 1004 } |
| 1113 | 1005 |
| 1114 core.int buildCounterManagedPropertyBundle = 0; | 1006 core.int buildCounterManagedPropertyBundle = 0; |
| 1115 buildManagedPropertyBundle() { | 1007 buildManagedPropertyBundle() { |
| 1116 var o = new api.ManagedPropertyBundle(); | 1008 var o = new api.ManagedPropertyBundle(); |
| 1117 buildCounterManagedPropertyBundle++; | 1009 buildCounterManagedPropertyBundle++; |
| 1118 if (buildCounterManagedPropertyBundle < 3) { | 1010 if (buildCounterManagedPropertyBundle < 3) { |
| 1119 o.managedProperty = buildUnnamed1926(); | 1011 o.managedProperty = buildUnnamed1923(); |
| 1120 } | 1012 } |
| 1121 buildCounterManagedPropertyBundle--; | 1013 buildCounterManagedPropertyBundle--; |
| 1122 return o; | 1014 return o; |
| 1123 } | 1015 } |
| 1124 | 1016 |
| 1125 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { | 1017 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { |
| 1126 buildCounterManagedPropertyBundle++; | 1018 buildCounterManagedPropertyBundle++; |
| 1127 if (buildCounterManagedPropertyBundle < 3) { | 1019 if (buildCounterManagedPropertyBundle < 3) { |
| 1128 checkUnnamed1926(o.managedProperty); | 1020 checkUnnamed1923(o.managedProperty); |
| 1129 } | 1021 } |
| 1130 buildCounterManagedPropertyBundle--; | 1022 buildCounterManagedPropertyBundle--; |
| 1131 } | 1023 } |
| 1132 | 1024 |
| 1133 buildUnnamed1927() { | 1025 core.int buildCounterNewDeviceEvent = 0; |
| 1026 buildNewDeviceEvent() { |
| 1027 var o = new api.NewDeviceEvent(); |
| 1028 buildCounterNewDeviceEvent++; |
| 1029 if (buildCounterNewDeviceEvent < 3) { |
| 1030 o.deviceId = "foo"; |
| 1031 o.managementType = "foo"; |
| 1032 o.userId = "foo"; |
| 1033 } |
| 1034 buildCounterNewDeviceEvent--; |
| 1035 return o; |
| 1036 } |
| 1037 |
| 1038 checkNewDeviceEvent(api.NewDeviceEvent o) { |
| 1039 buildCounterNewDeviceEvent++; |
| 1040 if (buildCounterNewDeviceEvent < 3) { |
| 1041 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 1042 unittest.expect(o.managementType, unittest.equals('foo')); |
| 1043 unittest.expect(o.userId, unittest.equals('foo')); |
| 1044 } |
| 1045 buildCounterNewDeviceEvent--; |
| 1046 } |
| 1047 |
| 1048 buildUnnamed1924() { |
| 1134 var o = new core.List<core.String>(); | 1049 var o = new core.List<core.String>(); |
| 1135 o.add("foo"); | 1050 o.add("foo"); |
| 1136 o.add("foo"); | 1051 o.add("foo"); |
| 1137 return o; | 1052 return o; |
| 1138 } | 1053 } |
| 1139 | 1054 |
| 1140 checkUnnamed1927(core.List<core.String> o) { | 1055 checkUnnamed1924(core.List<core.String> o) { |
| 1141 unittest.expect(o, unittest.hasLength(2)); | 1056 unittest.expect(o, unittest.hasLength(2)); |
| 1142 unittest.expect(o[0], unittest.equals('foo')); | 1057 unittest.expect(o[0], unittest.equals('foo')); |
| 1143 unittest.expect(o[1], unittest.equals('foo')); | 1058 unittest.expect(o[1], unittest.equals('foo')); |
| 1144 } | 1059 } |
| 1145 | 1060 |
| 1146 buildUnnamed1928() { | 1061 buildUnnamed1925() { |
| 1147 var o = new core.List<core.String>(); | 1062 var o = new core.List<core.String>(); |
| 1148 o.add("foo"); | 1063 o.add("foo"); |
| 1149 o.add("foo"); | 1064 o.add("foo"); |
| 1150 return o; | 1065 return o; |
| 1151 } | 1066 } |
| 1152 | 1067 |
| 1153 checkUnnamed1928(core.List<core.String> o) { | 1068 checkUnnamed1925(core.List<core.String> o) { |
| 1154 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
| 1155 unittest.expect(o[0], unittest.equals('foo')); | 1070 unittest.expect(o[0], unittest.equals('foo')); |
| 1156 unittest.expect(o[1], unittest.equals('foo')); | 1071 unittest.expect(o[1], unittest.equals('foo')); |
| 1157 } | 1072 } |
| 1158 | 1073 |
| 1159 core.int buildCounterNewPermissionsEvent = 0; | 1074 core.int buildCounterNewPermissionsEvent = 0; |
| 1160 buildNewPermissionsEvent() { | 1075 buildNewPermissionsEvent() { |
| 1161 var o = new api.NewPermissionsEvent(); | 1076 var o = new api.NewPermissionsEvent(); |
| 1162 buildCounterNewPermissionsEvent++; | 1077 buildCounterNewPermissionsEvent++; |
| 1163 if (buildCounterNewPermissionsEvent < 3) { | 1078 if (buildCounterNewPermissionsEvent < 3) { |
| 1164 o.approvedPermissions = buildUnnamed1927(); | 1079 o.approvedPermissions = buildUnnamed1924(); |
| 1165 o.productId = "foo"; | 1080 o.productId = "foo"; |
| 1166 o.requestedPermissions = buildUnnamed1928(); | 1081 o.requestedPermissions = buildUnnamed1925(); |
| 1167 } | 1082 } |
| 1168 buildCounterNewPermissionsEvent--; | 1083 buildCounterNewPermissionsEvent--; |
| 1169 return o; | 1084 return o; |
| 1170 } | 1085 } |
| 1171 | 1086 |
| 1172 checkNewPermissionsEvent(api.NewPermissionsEvent o) { | 1087 checkNewPermissionsEvent(api.NewPermissionsEvent o) { |
| 1173 buildCounterNewPermissionsEvent++; | 1088 buildCounterNewPermissionsEvent++; |
| 1174 if (buildCounterNewPermissionsEvent < 3) { | 1089 if (buildCounterNewPermissionsEvent < 3) { |
| 1175 checkUnnamed1927(o.approvedPermissions); | 1090 checkUnnamed1924(o.approvedPermissions); |
| 1176 unittest.expect(o.productId, unittest.equals('foo')); | 1091 unittest.expect(o.productId, unittest.equals('foo')); |
| 1177 checkUnnamed1928(o.requestedPermissions); | 1092 checkUnnamed1925(o.requestedPermissions); |
| 1178 } | 1093 } |
| 1179 buildCounterNewPermissionsEvent--; | 1094 buildCounterNewPermissionsEvent--; |
| 1180 } | 1095 } |
| 1181 | 1096 |
| 1182 core.int buildCounterNotification = 0; | 1097 core.int buildCounterNotification = 0; |
| 1183 buildNotification() { | 1098 buildNotification() { |
| 1184 var o = new api.Notification(); | 1099 var o = new api.Notification(); |
| 1185 buildCounterNotification++; | 1100 buildCounterNotification++; |
| 1186 if (buildCounterNotification < 3) { | 1101 if (buildCounterNotification < 3) { |
| 1187 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; | 1102 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; |
| 1188 o.appUpdateEvent = buildAppUpdateEvent(); | 1103 o.appUpdateEvent = buildAppUpdateEvent(); |
| 1189 o.enterpriseId = "foo"; | 1104 o.enterpriseId = "foo"; |
| 1190 o.installFailureEvent = buildInstallFailureEvent(); | 1105 o.installFailureEvent = buildInstallFailureEvent(); |
| 1106 o.newDeviceEvent = buildNewDeviceEvent(); |
| 1191 o.newPermissionsEvent = buildNewPermissionsEvent(); | 1107 o.newPermissionsEvent = buildNewPermissionsEvent(); |
| 1192 o.productApprovalEvent = buildProductApprovalEvent(); | 1108 o.productApprovalEvent = buildProductApprovalEvent(); |
| 1193 o.productAvailabilityChangeEvent = buildProductAvailabilityChangeEvent(); | 1109 o.productAvailabilityChangeEvent = buildProductAvailabilityChangeEvent(); |
| 1194 o.timestampMillis = "foo"; | 1110 o.timestampMillis = "foo"; |
| 1195 } | 1111 } |
| 1196 buildCounterNotification--; | 1112 buildCounterNotification--; |
| 1197 return o; | 1113 return o; |
| 1198 } | 1114 } |
| 1199 | 1115 |
| 1200 checkNotification(api.Notification o) { | 1116 checkNotification(api.Notification o) { |
| 1201 buildCounterNotification++; | 1117 buildCounterNotification++; |
| 1202 if (buildCounterNotification < 3) { | 1118 if (buildCounterNotification < 3) { |
| 1203 checkAppRestrictionsSchemaChangeEvent(o.appRestrictionsSchemaChangeEvent); | 1119 checkAppRestrictionsSchemaChangeEvent(o.appRestrictionsSchemaChangeEvent); |
| 1204 checkAppUpdateEvent(o.appUpdateEvent); | 1120 checkAppUpdateEvent(o.appUpdateEvent); |
| 1205 unittest.expect(o.enterpriseId, unittest.equals('foo')); | 1121 unittest.expect(o.enterpriseId, unittest.equals('foo')); |
| 1206 checkInstallFailureEvent(o.installFailureEvent); | 1122 checkInstallFailureEvent(o.installFailureEvent); |
| 1123 checkNewDeviceEvent(o.newDeviceEvent); |
| 1207 checkNewPermissionsEvent(o.newPermissionsEvent); | 1124 checkNewPermissionsEvent(o.newPermissionsEvent); |
| 1208 checkProductApprovalEvent(o.productApprovalEvent); | 1125 checkProductApprovalEvent(o.productApprovalEvent); |
| 1209 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); | 1126 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); |
| 1210 unittest.expect(o.timestampMillis, unittest.equals('foo')); | 1127 unittest.expect(o.timestampMillis, unittest.equals('foo')); |
| 1211 } | 1128 } |
| 1212 buildCounterNotification--; | 1129 buildCounterNotification--; |
| 1213 } | 1130 } |
| 1214 | 1131 |
| 1215 buildUnnamed1929() { | 1132 buildUnnamed1926() { |
| 1216 var o = new core.List<api.Notification>(); | 1133 var o = new core.List<api.Notification>(); |
| 1217 o.add(buildNotification()); | 1134 o.add(buildNotification()); |
| 1218 o.add(buildNotification()); | 1135 o.add(buildNotification()); |
| 1219 return o; | 1136 return o; |
| 1220 } | 1137 } |
| 1221 | 1138 |
| 1222 checkUnnamed1929(core.List<api.Notification> o) { | 1139 checkUnnamed1926(core.List<api.Notification> o) { |
| 1223 unittest.expect(o, unittest.hasLength(2)); | 1140 unittest.expect(o, unittest.hasLength(2)); |
| 1224 checkNotification(o[0]); | 1141 checkNotification(o[0]); |
| 1225 checkNotification(o[1]); | 1142 checkNotification(o[1]); |
| 1226 } | 1143 } |
| 1227 | 1144 |
| 1228 core.int buildCounterNotificationSet = 0; | 1145 core.int buildCounterNotificationSet = 0; |
| 1229 buildNotificationSet() { | 1146 buildNotificationSet() { |
| 1230 var o = new api.NotificationSet(); | 1147 var o = new api.NotificationSet(); |
| 1231 buildCounterNotificationSet++; | 1148 buildCounterNotificationSet++; |
| 1232 if (buildCounterNotificationSet < 3) { | 1149 if (buildCounterNotificationSet < 3) { |
| 1233 o.kind = "foo"; | 1150 o.kind = "foo"; |
| 1234 o.notification = buildUnnamed1929(); | 1151 o.notification = buildUnnamed1926(); |
| 1235 o.notificationSetId = "foo"; | 1152 o.notificationSetId = "foo"; |
| 1236 } | 1153 } |
| 1237 buildCounterNotificationSet--; | 1154 buildCounterNotificationSet--; |
| 1238 return o; | 1155 return o; |
| 1239 } | 1156 } |
| 1240 | 1157 |
| 1241 checkNotificationSet(api.NotificationSet o) { | 1158 checkNotificationSet(api.NotificationSet o) { |
| 1242 buildCounterNotificationSet++; | 1159 buildCounterNotificationSet++; |
| 1243 if (buildCounterNotificationSet < 3) { | 1160 if (buildCounterNotificationSet < 3) { |
| 1244 unittest.expect(o.kind, unittest.equals('foo')); | 1161 unittest.expect(o.kind, unittest.equals('foo')); |
| 1245 checkUnnamed1929(o.notification); | 1162 checkUnnamed1926(o.notification); |
| 1246 unittest.expect(o.notificationSetId, unittest.equals('foo')); | 1163 unittest.expect(o.notificationSetId, unittest.equals('foo')); |
| 1247 } | 1164 } |
| 1248 buildCounterNotificationSet--; | 1165 buildCounterNotificationSet--; |
| 1249 } | 1166 } |
| 1250 | 1167 |
| 1251 core.int buildCounterPageInfo = 0; | 1168 core.int buildCounterPageInfo = 0; |
| 1252 buildPageInfo() { | 1169 buildPageInfo() { |
| 1253 var o = new api.PageInfo(); | 1170 var o = new api.PageInfo(); |
| 1254 buildCounterPageInfo++; | 1171 buildCounterPageInfo++; |
| 1255 if (buildCounterPageInfo < 3) { | 1172 if (buildCounterPageInfo < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 buildCounterPermission++; | 1206 buildCounterPermission++; |
| 1290 if (buildCounterPermission < 3) { | 1207 if (buildCounterPermission < 3) { |
| 1291 unittest.expect(o.description, unittest.equals('foo')); | 1208 unittest.expect(o.description, unittest.equals('foo')); |
| 1292 unittest.expect(o.kind, unittest.equals('foo')); | 1209 unittest.expect(o.kind, unittest.equals('foo')); |
| 1293 unittest.expect(o.name, unittest.equals('foo')); | 1210 unittest.expect(o.name, unittest.equals('foo')); |
| 1294 unittest.expect(o.permissionId, unittest.equals('foo')); | 1211 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1295 } | 1212 } |
| 1296 buildCounterPermission--; | 1213 buildCounterPermission--; |
| 1297 } | 1214 } |
| 1298 | 1215 |
| 1299 buildUnnamed1930() { | 1216 buildUnnamed1927() { |
| 1300 var o = new core.List<api.AppVersion>(); | 1217 var o = new core.List<api.AppVersion>(); |
| 1301 o.add(buildAppVersion()); | 1218 o.add(buildAppVersion()); |
| 1302 o.add(buildAppVersion()); | 1219 o.add(buildAppVersion()); |
| 1303 return o; | 1220 return o; |
| 1304 } | 1221 } |
| 1305 | 1222 |
| 1306 checkUnnamed1930(core.List<api.AppVersion> o) { | 1223 checkUnnamed1927(core.List<api.AppVersion> o) { |
| 1307 unittest.expect(o, unittest.hasLength(2)); | 1224 unittest.expect(o, unittest.hasLength(2)); |
| 1308 checkAppVersion(o[0]); | 1225 checkAppVersion(o[0]); |
| 1309 checkAppVersion(o[1]); | 1226 checkAppVersion(o[1]); |
| 1310 } | 1227 } |
| 1311 | 1228 |
| 1312 core.int buildCounterProduct = 0; | 1229 core.int buildCounterProduct = 0; |
| 1313 buildProduct() { | 1230 buildProduct() { |
| 1314 var o = new api.Product(); | 1231 var o = new api.Product(); |
| 1315 buildCounterProduct++; | 1232 buildCounterProduct++; |
| 1316 if (buildCounterProduct < 3) { | 1233 if (buildCounterProduct < 3) { |
| 1317 o.appVersion = buildUnnamed1930(); | 1234 o.appVersion = buildUnnamed1927(); |
| 1318 o.authorName = "foo"; | 1235 o.authorName = "foo"; |
| 1319 o.detailsUrl = "foo"; | 1236 o.detailsUrl = "foo"; |
| 1320 o.distributionChannel = "foo"; | 1237 o.distributionChannel = "foo"; |
| 1321 o.iconUrl = "foo"; | 1238 o.iconUrl = "foo"; |
| 1322 o.kind = "foo"; | 1239 o.kind = "foo"; |
| 1323 o.productId = "foo"; | 1240 o.productId = "foo"; |
| 1324 o.productPricing = "foo"; | 1241 o.productPricing = "foo"; |
| 1325 o.requiresContainerApp = true; | 1242 o.requiresContainerApp = true; |
| 1326 o.smallIconUrl = "foo"; | 1243 o.smallIconUrl = "foo"; |
| 1327 o.title = "foo"; | 1244 o.title = "foo"; |
| 1328 o.workDetailsUrl = "foo"; | 1245 o.workDetailsUrl = "foo"; |
| 1329 } | 1246 } |
| 1330 buildCounterProduct--; | 1247 buildCounterProduct--; |
| 1331 return o; | 1248 return o; |
| 1332 } | 1249 } |
| 1333 | 1250 |
| 1334 checkProduct(api.Product o) { | 1251 checkProduct(api.Product o) { |
| 1335 buildCounterProduct++; | 1252 buildCounterProduct++; |
| 1336 if (buildCounterProduct < 3) { | 1253 if (buildCounterProduct < 3) { |
| 1337 checkUnnamed1930(o.appVersion); | 1254 checkUnnamed1927(o.appVersion); |
| 1338 unittest.expect(o.authorName, unittest.equals('foo')); | 1255 unittest.expect(o.authorName, unittest.equals('foo')); |
| 1339 unittest.expect(o.detailsUrl, unittest.equals('foo')); | 1256 unittest.expect(o.detailsUrl, unittest.equals('foo')); |
| 1340 unittest.expect(o.distributionChannel, unittest.equals('foo')); | 1257 unittest.expect(o.distributionChannel, unittest.equals('foo')); |
| 1341 unittest.expect(o.iconUrl, unittest.equals('foo')); | 1258 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 1342 unittest.expect(o.kind, unittest.equals('foo')); | 1259 unittest.expect(o.kind, unittest.equals('foo')); |
| 1343 unittest.expect(o.productId, unittest.equals('foo')); | 1260 unittest.expect(o.productId, unittest.equals('foo')); |
| 1344 unittest.expect(o.productPricing, unittest.equals('foo')); | 1261 unittest.expect(o.productPricing, unittest.equals('foo')); |
| 1345 unittest.expect(o.requiresContainerApp, unittest.isTrue); | 1262 unittest.expect(o.requiresContainerApp, unittest.isTrue); |
| 1346 unittest.expect(o.smallIconUrl, unittest.equals('foo')); | 1263 unittest.expect(o.smallIconUrl, unittest.equals('foo')); |
| 1347 unittest.expect(o.title, unittest.equals('foo')); | 1264 unittest.expect(o.title, unittest.equals('foo')); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 | 1323 |
| 1407 checkProductPermission(api.ProductPermission o) { | 1324 checkProductPermission(api.ProductPermission o) { |
| 1408 buildCounterProductPermission++; | 1325 buildCounterProductPermission++; |
| 1409 if (buildCounterProductPermission < 3) { | 1326 if (buildCounterProductPermission < 3) { |
| 1410 unittest.expect(o.permissionId, unittest.equals('foo')); | 1327 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1411 unittest.expect(o.state, unittest.equals('foo')); | 1328 unittest.expect(o.state, unittest.equals('foo')); |
| 1412 } | 1329 } |
| 1413 buildCounterProductPermission--; | 1330 buildCounterProductPermission--; |
| 1414 } | 1331 } |
| 1415 | 1332 |
| 1416 buildUnnamed1931() { | 1333 buildUnnamed1928() { |
| 1417 var o = new core.List<api.ProductPermission>(); | 1334 var o = new core.List<api.ProductPermission>(); |
| 1418 o.add(buildProductPermission()); | 1335 o.add(buildProductPermission()); |
| 1419 o.add(buildProductPermission()); | 1336 o.add(buildProductPermission()); |
| 1420 return o; | 1337 return o; |
| 1421 } | 1338 } |
| 1422 | 1339 |
| 1423 checkUnnamed1931(core.List<api.ProductPermission> o) { | 1340 checkUnnamed1928(core.List<api.ProductPermission> o) { |
| 1424 unittest.expect(o, unittest.hasLength(2)); | 1341 unittest.expect(o, unittest.hasLength(2)); |
| 1425 checkProductPermission(o[0]); | 1342 checkProductPermission(o[0]); |
| 1426 checkProductPermission(o[1]); | 1343 checkProductPermission(o[1]); |
| 1427 } | 1344 } |
| 1428 | 1345 |
| 1429 core.int buildCounterProductPermissions = 0; | 1346 core.int buildCounterProductPermissions = 0; |
| 1430 buildProductPermissions() { | 1347 buildProductPermissions() { |
| 1431 var o = new api.ProductPermissions(); | 1348 var o = new api.ProductPermissions(); |
| 1432 buildCounterProductPermissions++; | 1349 buildCounterProductPermissions++; |
| 1433 if (buildCounterProductPermissions < 3) { | 1350 if (buildCounterProductPermissions < 3) { |
| 1434 o.kind = "foo"; | 1351 o.kind = "foo"; |
| 1435 o.permission = buildUnnamed1931(); | 1352 o.permission = buildUnnamed1928(); |
| 1436 o.productId = "foo"; | 1353 o.productId = "foo"; |
| 1437 } | 1354 } |
| 1438 buildCounterProductPermissions--; | 1355 buildCounterProductPermissions--; |
| 1439 return o; | 1356 return o; |
| 1440 } | 1357 } |
| 1441 | 1358 |
| 1442 checkProductPermissions(api.ProductPermissions o) { | 1359 checkProductPermissions(api.ProductPermissions o) { |
| 1443 buildCounterProductPermissions++; | 1360 buildCounterProductPermissions++; |
| 1444 if (buildCounterProductPermissions < 3) { | 1361 if (buildCounterProductPermissions < 3) { |
| 1445 unittest.expect(o.kind, unittest.equals('foo')); | 1362 unittest.expect(o.kind, unittest.equals('foo')); |
| 1446 checkUnnamed1931(o.permission); | 1363 checkUnnamed1928(o.permission); |
| 1447 unittest.expect(o.productId, unittest.equals('foo')); | 1364 unittest.expect(o.productId, unittest.equals('foo')); |
| 1448 } | 1365 } |
| 1449 buildCounterProductPermissions--; | 1366 buildCounterProductPermissions--; |
| 1450 } | 1367 } |
| 1451 | 1368 |
| 1452 buildUnnamed1932() { | 1369 buildUnnamed1929() { |
| 1453 var o = new core.List<core.String>(); | 1370 var o = new core.List<core.String>(); |
| 1454 o.add("foo"); | 1371 o.add("foo"); |
| 1455 o.add("foo"); | 1372 o.add("foo"); |
| 1456 return o; | 1373 return o; |
| 1457 } | 1374 } |
| 1458 | 1375 |
| 1459 checkUnnamed1932(core.List<core.String> o) { | 1376 checkUnnamed1929(core.List<core.String> o) { |
| 1460 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
| 1461 unittest.expect(o[0], unittest.equals('foo')); | 1378 unittest.expect(o[0], unittest.equals('foo')); |
| 1462 unittest.expect(o[1], unittest.equals('foo')); | 1379 unittest.expect(o[1], unittest.equals('foo')); |
| 1463 } | 1380 } |
| 1464 | 1381 |
| 1465 core.int buildCounterProductSet = 0; | 1382 core.int buildCounterProductSet = 0; |
| 1466 buildProductSet() { | 1383 buildProductSet() { |
| 1467 var o = new api.ProductSet(); | 1384 var o = new api.ProductSet(); |
| 1468 buildCounterProductSet++; | 1385 buildCounterProductSet++; |
| 1469 if (buildCounterProductSet < 3) { | 1386 if (buildCounterProductSet < 3) { |
| 1470 o.kind = "foo"; | 1387 o.kind = "foo"; |
| 1471 o.productId = buildUnnamed1932(); | 1388 o.productId = buildUnnamed1929(); |
| 1472 o.productSetBehavior = "foo"; | 1389 o.productSetBehavior = "foo"; |
| 1473 } | 1390 } |
| 1474 buildCounterProductSet--; | 1391 buildCounterProductSet--; |
| 1475 return o; | 1392 return o; |
| 1476 } | 1393 } |
| 1477 | 1394 |
| 1478 checkProductSet(api.ProductSet o) { | 1395 checkProductSet(api.ProductSet o) { |
| 1479 buildCounterProductSet++; | 1396 buildCounterProductSet++; |
| 1480 if (buildCounterProductSet < 3) { | 1397 if (buildCounterProductSet < 3) { |
| 1481 unittest.expect(o.kind, unittest.equals('foo')); | 1398 unittest.expect(o.kind, unittest.equals('foo')); |
| 1482 checkUnnamed1932(o.productId); | 1399 checkUnnamed1929(o.productId); |
| 1483 unittest.expect(o.productSetBehavior, unittest.equals('foo')); | 1400 unittest.expect(o.productSetBehavior, unittest.equals('foo')); |
| 1484 } | 1401 } |
| 1485 buildCounterProductSet--; | 1402 buildCounterProductSet--; |
| 1486 } | 1403 } |
| 1487 | 1404 |
| 1488 core.int buildCounterProductsApproveRequest = 0; | 1405 core.int buildCounterProductsApproveRequest = 0; |
| 1489 buildProductsApproveRequest() { | 1406 buildProductsApproveRequest() { |
| 1490 var o = new api.ProductsApproveRequest(); | 1407 var o = new api.ProductsApproveRequest(); |
| 1491 buildCounterProductsApproveRequest++; | 1408 buildCounterProductsApproveRequest++; |
| 1492 if (buildCounterProductsApproveRequest < 3) { | 1409 if (buildCounterProductsApproveRequest < 3) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1516 } | 1433 } |
| 1517 | 1434 |
| 1518 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { | 1435 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { |
| 1519 buildCounterProductsGenerateApprovalUrlResponse++; | 1436 buildCounterProductsGenerateApprovalUrlResponse++; |
| 1520 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { | 1437 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { |
| 1521 unittest.expect(o.url, unittest.equals('foo')); | 1438 unittest.expect(o.url, unittest.equals('foo')); |
| 1522 } | 1439 } |
| 1523 buildCounterProductsGenerateApprovalUrlResponse--; | 1440 buildCounterProductsGenerateApprovalUrlResponse--; |
| 1524 } | 1441 } |
| 1525 | 1442 |
| 1526 buildUnnamed1933() { | 1443 buildUnnamed1930() { |
| 1527 var o = new core.List<api.Product>(); | 1444 var o = new core.List<api.Product>(); |
| 1528 o.add(buildProduct()); | 1445 o.add(buildProduct()); |
| 1529 o.add(buildProduct()); | 1446 o.add(buildProduct()); |
| 1530 return o; | 1447 return o; |
| 1531 } | 1448 } |
| 1532 | 1449 |
| 1533 checkUnnamed1933(core.List<api.Product> o) { | 1450 checkUnnamed1930(core.List<api.Product> o) { |
| 1534 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
| 1535 checkProduct(o[0]); | 1452 checkProduct(o[0]); |
| 1536 checkProduct(o[1]); | 1453 checkProduct(o[1]); |
| 1537 } | 1454 } |
| 1538 | 1455 |
| 1539 core.int buildCounterProductsListResponse = 0; | 1456 core.int buildCounterProductsListResponse = 0; |
| 1540 buildProductsListResponse() { | 1457 buildProductsListResponse() { |
| 1541 var o = new api.ProductsListResponse(); | 1458 var o = new api.ProductsListResponse(); |
| 1542 buildCounterProductsListResponse++; | 1459 buildCounterProductsListResponse++; |
| 1543 if (buildCounterProductsListResponse < 3) { | 1460 if (buildCounterProductsListResponse < 3) { |
| 1544 o.kind = "foo"; | 1461 o.kind = "foo"; |
| 1545 o.pageInfo = buildPageInfo(); | 1462 o.pageInfo = buildPageInfo(); |
| 1546 o.product = buildUnnamed1933(); | 1463 o.product = buildUnnamed1930(); |
| 1547 o.tokenPagination = buildTokenPagination(); | 1464 o.tokenPagination = buildTokenPagination(); |
| 1548 } | 1465 } |
| 1549 buildCounterProductsListResponse--; | 1466 buildCounterProductsListResponse--; |
| 1550 return o; | 1467 return o; |
| 1551 } | 1468 } |
| 1552 | 1469 |
| 1553 checkProductsListResponse(api.ProductsListResponse o) { | 1470 checkProductsListResponse(api.ProductsListResponse o) { |
| 1554 buildCounterProductsListResponse++; | 1471 buildCounterProductsListResponse++; |
| 1555 if (buildCounterProductsListResponse < 3) { | 1472 if (buildCounterProductsListResponse < 3) { |
| 1556 unittest.expect(o.kind, unittest.equals('foo')); | 1473 unittest.expect(o.kind, unittest.equals('foo')); |
| 1557 checkPageInfo(o.pageInfo); | 1474 checkPageInfo(o.pageInfo); |
| 1558 checkUnnamed1933(o.product); | 1475 checkUnnamed1930(o.product); |
| 1559 checkTokenPagination(o.tokenPagination); | 1476 checkTokenPagination(o.tokenPagination); |
| 1560 } | 1477 } |
| 1561 buildCounterProductsListResponse--; | 1478 buildCounterProductsListResponse--; |
| 1562 } | 1479 } |
| 1563 | 1480 |
| 1564 core.int buildCounterServiceAccount = 0; | 1481 core.int buildCounterServiceAccount = 0; |
| 1565 buildServiceAccount() { | 1482 buildServiceAccount() { |
| 1566 var o = new api.ServiceAccount(); | 1483 var o = new api.ServiceAccount(); |
| 1567 buildCounterServiceAccount++; | 1484 buildCounterServiceAccount++; |
| 1568 if (buildCounterServiceAccount < 3) { | 1485 if (buildCounterServiceAccount < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1604 if (buildCounterServiceAccountKey < 3) { | 1521 if (buildCounterServiceAccountKey < 3) { |
| 1605 unittest.expect(o.data, unittest.equals('foo')); | 1522 unittest.expect(o.data, unittest.equals('foo')); |
| 1606 unittest.expect(o.id, unittest.equals('foo')); | 1523 unittest.expect(o.id, unittest.equals('foo')); |
| 1607 unittest.expect(o.kind, unittest.equals('foo')); | 1524 unittest.expect(o.kind, unittest.equals('foo')); |
| 1608 unittest.expect(o.publicData, unittest.equals('foo')); | 1525 unittest.expect(o.publicData, unittest.equals('foo')); |
| 1609 unittest.expect(o.type, unittest.equals('foo')); | 1526 unittest.expect(o.type, unittest.equals('foo')); |
| 1610 } | 1527 } |
| 1611 buildCounterServiceAccountKey--; | 1528 buildCounterServiceAccountKey--; |
| 1612 } | 1529 } |
| 1613 | 1530 |
| 1614 buildUnnamed1934() { | 1531 buildUnnamed1931() { |
| 1615 var o = new core.List<api.ServiceAccountKey>(); | 1532 var o = new core.List<api.ServiceAccountKey>(); |
| 1616 o.add(buildServiceAccountKey()); | 1533 o.add(buildServiceAccountKey()); |
| 1617 o.add(buildServiceAccountKey()); | 1534 o.add(buildServiceAccountKey()); |
| 1618 return o; | 1535 return o; |
| 1619 } | 1536 } |
| 1620 | 1537 |
| 1621 checkUnnamed1934(core.List<api.ServiceAccountKey> o) { | 1538 checkUnnamed1931(core.List<api.ServiceAccountKey> o) { |
| 1622 unittest.expect(o, unittest.hasLength(2)); | 1539 unittest.expect(o, unittest.hasLength(2)); |
| 1623 checkServiceAccountKey(o[0]); | 1540 checkServiceAccountKey(o[0]); |
| 1624 checkServiceAccountKey(o[1]); | 1541 checkServiceAccountKey(o[1]); |
| 1625 } | 1542 } |
| 1626 | 1543 |
| 1627 core.int buildCounterServiceAccountKeysListResponse = 0; | 1544 core.int buildCounterServiceAccountKeysListResponse = 0; |
| 1628 buildServiceAccountKeysListResponse() { | 1545 buildServiceAccountKeysListResponse() { |
| 1629 var o = new api.ServiceAccountKeysListResponse(); | 1546 var o = new api.ServiceAccountKeysListResponse(); |
| 1630 buildCounterServiceAccountKeysListResponse++; | 1547 buildCounterServiceAccountKeysListResponse++; |
| 1631 if (buildCounterServiceAccountKeysListResponse < 3) { | 1548 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1632 o.serviceAccountKey = buildUnnamed1934(); | 1549 o.serviceAccountKey = buildUnnamed1931(); |
| 1633 } | 1550 } |
| 1634 buildCounterServiceAccountKeysListResponse--; | 1551 buildCounterServiceAccountKeysListResponse--; |
| 1635 return o; | 1552 return o; |
| 1636 } | 1553 } |
| 1637 | 1554 |
| 1638 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { | 1555 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { |
| 1639 buildCounterServiceAccountKeysListResponse++; | 1556 buildCounterServiceAccountKeysListResponse++; |
| 1640 if (buildCounterServiceAccountKeysListResponse < 3) { | 1557 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1641 checkUnnamed1934(o.serviceAccountKey); | 1558 checkUnnamed1931(o.serviceAccountKey); |
| 1642 } | 1559 } |
| 1643 buildCounterServiceAccountKeysListResponse--; | 1560 buildCounterServiceAccountKeysListResponse--; |
| 1644 } | 1561 } |
| 1645 | 1562 |
| 1646 core.int buildCounterSignupInfo = 0; | 1563 core.int buildCounterSignupInfo = 0; |
| 1647 buildSignupInfo() { | 1564 buildSignupInfo() { |
| 1648 var o = new api.SignupInfo(); | 1565 var o = new api.SignupInfo(); |
| 1649 buildCounterSignupInfo++; | 1566 buildCounterSignupInfo++; |
| 1650 if (buildCounterSignupInfo < 3) { | 1567 if (buildCounterSignupInfo < 3) { |
| 1651 o.completionToken = "foo"; | 1568 o.completionToken = "foo"; |
| 1652 o.kind = "foo"; | 1569 o.kind = "foo"; |
| 1653 o.url = "foo"; | 1570 o.url = "foo"; |
| 1654 } | 1571 } |
| 1655 buildCounterSignupInfo--; | 1572 buildCounterSignupInfo--; |
| 1656 return o; | 1573 return o; |
| 1657 } | 1574 } |
| 1658 | 1575 |
| 1659 checkSignupInfo(api.SignupInfo o) { | 1576 checkSignupInfo(api.SignupInfo o) { |
| 1660 buildCounterSignupInfo++; | 1577 buildCounterSignupInfo++; |
| 1661 if (buildCounterSignupInfo < 3) { | 1578 if (buildCounterSignupInfo < 3) { |
| 1662 unittest.expect(o.completionToken, unittest.equals('foo')); | 1579 unittest.expect(o.completionToken, unittest.equals('foo')); |
| 1663 unittest.expect(o.kind, unittest.equals('foo')); | 1580 unittest.expect(o.kind, unittest.equals('foo')); |
| 1664 unittest.expect(o.url, unittest.equals('foo')); | 1581 unittest.expect(o.url, unittest.equals('foo')); |
| 1665 } | 1582 } |
| 1666 buildCounterSignupInfo--; | 1583 buildCounterSignupInfo--; |
| 1667 } | 1584 } |
| 1668 | 1585 |
| 1669 buildUnnamed1935() { | 1586 buildUnnamed1932() { |
| 1670 var o = new core.List<api.LocalizedText>(); | 1587 var o = new core.List<api.LocalizedText>(); |
| 1671 o.add(buildLocalizedText()); | 1588 o.add(buildLocalizedText()); |
| 1672 o.add(buildLocalizedText()); | 1589 o.add(buildLocalizedText()); |
| 1673 return o; | 1590 return o; |
| 1674 } | 1591 } |
| 1675 | 1592 |
| 1676 checkUnnamed1935(core.List<api.LocalizedText> o) { | 1593 checkUnnamed1932(core.List<api.LocalizedText> o) { |
| 1677 unittest.expect(o, unittest.hasLength(2)); | 1594 unittest.expect(o, unittest.hasLength(2)); |
| 1678 checkLocalizedText(o[0]); | 1595 checkLocalizedText(o[0]); |
| 1679 checkLocalizedText(o[1]); | 1596 checkLocalizedText(o[1]); |
| 1680 } | 1597 } |
| 1681 | 1598 |
| 1682 buildUnnamed1936() { | 1599 buildUnnamed1933() { |
| 1683 var o = new core.List<core.String>(); | 1600 var o = new core.List<core.String>(); |
| 1684 o.add("foo"); | 1601 o.add("foo"); |
| 1685 o.add("foo"); | 1602 o.add("foo"); |
| 1686 return o; | 1603 return o; |
| 1687 } | 1604 } |
| 1688 | 1605 |
| 1689 checkUnnamed1936(core.List<core.String> o) { | 1606 checkUnnamed1933(core.List<core.String> o) { |
| 1690 unittest.expect(o, unittest.hasLength(2)); | 1607 unittest.expect(o, unittest.hasLength(2)); |
| 1691 unittest.expect(o[0], unittest.equals('foo')); | 1608 unittest.expect(o[0], unittest.equals('foo')); |
| 1692 unittest.expect(o[1], unittest.equals('foo')); | 1609 unittest.expect(o[1], unittest.equals('foo')); |
| 1693 } | 1610 } |
| 1694 | 1611 |
| 1695 core.int buildCounterStoreCluster = 0; | 1612 core.int buildCounterStoreCluster = 0; |
| 1696 buildStoreCluster() { | 1613 buildStoreCluster() { |
| 1697 var o = new api.StoreCluster(); | 1614 var o = new api.StoreCluster(); |
| 1698 buildCounterStoreCluster++; | 1615 buildCounterStoreCluster++; |
| 1699 if (buildCounterStoreCluster < 3) { | 1616 if (buildCounterStoreCluster < 3) { |
| 1700 o.id = "foo"; | 1617 o.id = "foo"; |
| 1701 o.kind = "foo"; | 1618 o.kind = "foo"; |
| 1702 o.name = buildUnnamed1935(); | 1619 o.name = buildUnnamed1932(); |
| 1703 o.orderInPage = "foo"; | 1620 o.orderInPage = "foo"; |
| 1704 o.productId = buildUnnamed1936(); | 1621 o.productId = buildUnnamed1933(); |
| 1705 } | 1622 } |
| 1706 buildCounterStoreCluster--; | 1623 buildCounterStoreCluster--; |
| 1707 return o; | 1624 return o; |
| 1708 } | 1625 } |
| 1709 | 1626 |
| 1710 checkStoreCluster(api.StoreCluster o) { | 1627 checkStoreCluster(api.StoreCluster o) { |
| 1711 buildCounterStoreCluster++; | 1628 buildCounterStoreCluster++; |
| 1712 if (buildCounterStoreCluster < 3) { | 1629 if (buildCounterStoreCluster < 3) { |
| 1713 unittest.expect(o.id, unittest.equals('foo')); | 1630 unittest.expect(o.id, unittest.equals('foo')); |
| 1714 unittest.expect(o.kind, unittest.equals('foo')); | 1631 unittest.expect(o.kind, unittest.equals('foo')); |
| 1715 checkUnnamed1935(o.name); | 1632 checkUnnamed1932(o.name); |
| 1716 unittest.expect(o.orderInPage, unittest.equals('foo')); | 1633 unittest.expect(o.orderInPage, unittest.equals('foo')); |
| 1717 checkUnnamed1936(o.productId); | 1634 checkUnnamed1933(o.productId); |
| 1718 } | 1635 } |
| 1719 buildCounterStoreCluster--; | 1636 buildCounterStoreCluster--; |
| 1720 } | 1637 } |
| 1721 | 1638 |
| 1722 core.int buildCounterStoreLayout = 0; | 1639 core.int buildCounterStoreLayout = 0; |
| 1723 buildStoreLayout() { | 1640 buildStoreLayout() { |
| 1724 var o = new api.StoreLayout(); | 1641 var o = new api.StoreLayout(); |
| 1725 buildCounterStoreLayout++; | 1642 buildCounterStoreLayout++; |
| 1726 if (buildCounterStoreLayout < 3) { | 1643 if (buildCounterStoreLayout < 3) { |
| 1727 o.homepageId = "foo"; | 1644 o.homepageId = "foo"; |
| 1728 o.kind = "foo"; | 1645 o.kind = "foo"; |
| 1729 o.storeLayoutType = "foo"; | 1646 o.storeLayoutType = "foo"; |
| 1730 } | 1647 } |
| 1731 buildCounterStoreLayout--; | 1648 buildCounterStoreLayout--; |
| 1732 return o; | 1649 return o; |
| 1733 } | 1650 } |
| 1734 | 1651 |
| 1735 checkStoreLayout(api.StoreLayout o) { | 1652 checkStoreLayout(api.StoreLayout o) { |
| 1736 buildCounterStoreLayout++; | 1653 buildCounterStoreLayout++; |
| 1737 if (buildCounterStoreLayout < 3) { | 1654 if (buildCounterStoreLayout < 3) { |
| 1738 unittest.expect(o.homepageId, unittest.equals('foo')); | 1655 unittest.expect(o.homepageId, unittest.equals('foo')); |
| 1739 unittest.expect(o.kind, unittest.equals('foo')); | 1656 unittest.expect(o.kind, unittest.equals('foo')); |
| 1740 unittest.expect(o.storeLayoutType, unittest.equals('foo')); | 1657 unittest.expect(o.storeLayoutType, unittest.equals('foo')); |
| 1741 } | 1658 } |
| 1742 buildCounterStoreLayout--; | 1659 buildCounterStoreLayout--; |
| 1743 } | 1660 } |
| 1744 | 1661 |
| 1745 buildUnnamed1937() { | 1662 buildUnnamed1934() { |
| 1746 var o = new core.List<api.StoreCluster>(); | 1663 var o = new core.List<api.StoreCluster>(); |
| 1747 o.add(buildStoreCluster()); | 1664 o.add(buildStoreCluster()); |
| 1748 o.add(buildStoreCluster()); | 1665 o.add(buildStoreCluster()); |
| 1749 return o; | 1666 return o; |
| 1750 } | 1667 } |
| 1751 | 1668 |
| 1752 checkUnnamed1937(core.List<api.StoreCluster> o) { | 1669 checkUnnamed1934(core.List<api.StoreCluster> o) { |
| 1753 unittest.expect(o, unittest.hasLength(2)); | 1670 unittest.expect(o, unittest.hasLength(2)); |
| 1754 checkStoreCluster(o[0]); | 1671 checkStoreCluster(o[0]); |
| 1755 checkStoreCluster(o[1]); | 1672 checkStoreCluster(o[1]); |
| 1756 } | 1673 } |
| 1757 | 1674 |
| 1758 core.int buildCounterStoreLayoutClustersListResponse = 0; | 1675 core.int buildCounterStoreLayoutClustersListResponse = 0; |
| 1759 buildStoreLayoutClustersListResponse() { | 1676 buildStoreLayoutClustersListResponse() { |
| 1760 var o = new api.StoreLayoutClustersListResponse(); | 1677 var o = new api.StoreLayoutClustersListResponse(); |
| 1761 buildCounterStoreLayoutClustersListResponse++; | 1678 buildCounterStoreLayoutClustersListResponse++; |
| 1762 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1679 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1763 o.cluster = buildUnnamed1937(); | 1680 o.cluster = buildUnnamed1934(); |
| 1764 o.kind = "foo"; | 1681 o.kind = "foo"; |
| 1765 } | 1682 } |
| 1766 buildCounterStoreLayoutClustersListResponse--; | 1683 buildCounterStoreLayoutClustersListResponse--; |
| 1767 return o; | 1684 return o; |
| 1768 } | 1685 } |
| 1769 | 1686 |
| 1770 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { | 1687 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { |
| 1771 buildCounterStoreLayoutClustersListResponse++; | 1688 buildCounterStoreLayoutClustersListResponse++; |
| 1772 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1689 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1773 checkUnnamed1937(o.cluster); | 1690 checkUnnamed1934(o.cluster); |
| 1774 unittest.expect(o.kind, unittest.equals('foo')); | 1691 unittest.expect(o.kind, unittest.equals('foo')); |
| 1775 } | 1692 } |
| 1776 buildCounterStoreLayoutClustersListResponse--; | 1693 buildCounterStoreLayoutClustersListResponse--; |
| 1777 } | 1694 } |
| 1778 | 1695 |
| 1779 buildUnnamed1938() { | 1696 buildUnnamed1935() { |
| 1780 var o = new core.List<api.StorePage>(); | 1697 var o = new core.List<api.StorePage>(); |
| 1781 o.add(buildStorePage()); | 1698 o.add(buildStorePage()); |
| 1782 o.add(buildStorePage()); | 1699 o.add(buildStorePage()); |
| 1783 return o; | 1700 return o; |
| 1784 } | 1701 } |
| 1785 | 1702 |
| 1786 checkUnnamed1938(core.List<api.StorePage> o) { | 1703 checkUnnamed1935(core.List<api.StorePage> o) { |
| 1787 unittest.expect(o, unittest.hasLength(2)); | 1704 unittest.expect(o, unittest.hasLength(2)); |
| 1788 checkStorePage(o[0]); | 1705 checkStorePage(o[0]); |
| 1789 checkStorePage(o[1]); | 1706 checkStorePage(o[1]); |
| 1790 } | 1707 } |
| 1791 | 1708 |
| 1792 core.int buildCounterStoreLayoutPagesListResponse = 0; | 1709 core.int buildCounterStoreLayoutPagesListResponse = 0; |
| 1793 buildStoreLayoutPagesListResponse() { | 1710 buildStoreLayoutPagesListResponse() { |
| 1794 var o = new api.StoreLayoutPagesListResponse(); | 1711 var o = new api.StoreLayoutPagesListResponse(); |
| 1795 buildCounterStoreLayoutPagesListResponse++; | 1712 buildCounterStoreLayoutPagesListResponse++; |
| 1796 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1713 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1797 o.kind = "foo"; | 1714 o.kind = "foo"; |
| 1798 o.page = buildUnnamed1938(); | 1715 o.page = buildUnnamed1935(); |
| 1799 } | 1716 } |
| 1800 buildCounterStoreLayoutPagesListResponse--; | 1717 buildCounterStoreLayoutPagesListResponse--; |
| 1801 return o; | 1718 return o; |
| 1802 } | 1719 } |
| 1803 | 1720 |
| 1804 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { | 1721 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { |
| 1805 buildCounterStoreLayoutPagesListResponse++; | 1722 buildCounterStoreLayoutPagesListResponse++; |
| 1806 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1723 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1807 unittest.expect(o.kind, unittest.equals('foo')); | 1724 unittest.expect(o.kind, unittest.equals('foo')); |
| 1808 checkUnnamed1938(o.page); | 1725 checkUnnamed1935(o.page); |
| 1809 } | 1726 } |
| 1810 buildCounterStoreLayoutPagesListResponse--; | 1727 buildCounterStoreLayoutPagesListResponse--; |
| 1811 } | 1728 } |
| 1812 | 1729 |
| 1813 buildUnnamed1939() { | 1730 buildUnnamed1936() { |
| 1814 var o = new core.List<core.String>(); | 1731 var o = new core.List<core.String>(); |
| 1815 o.add("foo"); | 1732 o.add("foo"); |
| 1816 o.add("foo"); | 1733 o.add("foo"); |
| 1817 return o; | 1734 return o; |
| 1818 } | 1735 } |
| 1819 | 1736 |
| 1820 checkUnnamed1939(core.List<core.String> o) { | 1737 checkUnnamed1936(core.List<core.String> o) { |
| 1821 unittest.expect(o, unittest.hasLength(2)); | 1738 unittest.expect(o, unittest.hasLength(2)); |
| 1822 unittest.expect(o[0], unittest.equals('foo')); | 1739 unittest.expect(o[0], unittest.equals('foo')); |
| 1823 unittest.expect(o[1], unittest.equals('foo')); | 1740 unittest.expect(o[1], unittest.equals('foo')); |
| 1824 } | 1741 } |
| 1825 | 1742 |
| 1826 buildUnnamed1940() { | 1743 buildUnnamed1937() { |
| 1827 var o = new core.List<api.LocalizedText>(); | 1744 var o = new core.List<api.LocalizedText>(); |
| 1828 o.add(buildLocalizedText()); | 1745 o.add(buildLocalizedText()); |
| 1829 o.add(buildLocalizedText()); | 1746 o.add(buildLocalizedText()); |
| 1830 return o; | 1747 return o; |
| 1831 } | 1748 } |
| 1832 | 1749 |
| 1833 checkUnnamed1940(core.List<api.LocalizedText> o) { | 1750 checkUnnamed1937(core.List<api.LocalizedText> o) { |
| 1834 unittest.expect(o, unittest.hasLength(2)); | 1751 unittest.expect(o, unittest.hasLength(2)); |
| 1835 checkLocalizedText(o[0]); | 1752 checkLocalizedText(o[0]); |
| 1836 checkLocalizedText(o[1]); | 1753 checkLocalizedText(o[1]); |
| 1837 } | 1754 } |
| 1838 | 1755 |
| 1839 core.int buildCounterStorePage = 0; | 1756 core.int buildCounterStorePage = 0; |
| 1840 buildStorePage() { | 1757 buildStorePage() { |
| 1841 var o = new api.StorePage(); | 1758 var o = new api.StorePage(); |
| 1842 buildCounterStorePage++; | 1759 buildCounterStorePage++; |
| 1843 if (buildCounterStorePage < 3) { | 1760 if (buildCounterStorePage < 3) { |
| 1844 o.id = "foo"; | 1761 o.id = "foo"; |
| 1845 o.kind = "foo"; | 1762 o.kind = "foo"; |
| 1846 o.link = buildUnnamed1939(); | 1763 o.link = buildUnnamed1936(); |
| 1847 o.name = buildUnnamed1940(); | 1764 o.name = buildUnnamed1937(); |
| 1848 } | 1765 } |
| 1849 buildCounterStorePage--; | 1766 buildCounterStorePage--; |
| 1850 return o; | 1767 return o; |
| 1851 } | 1768 } |
| 1852 | 1769 |
| 1853 checkStorePage(api.StorePage o) { | 1770 checkStorePage(api.StorePage o) { |
| 1854 buildCounterStorePage++; | 1771 buildCounterStorePage++; |
| 1855 if (buildCounterStorePage < 3) { | 1772 if (buildCounterStorePage < 3) { |
| 1856 unittest.expect(o.id, unittest.equals('foo')); | 1773 unittest.expect(o.id, unittest.equals('foo')); |
| 1857 unittest.expect(o.kind, unittest.equals('foo')); | 1774 unittest.expect(o.kind, unittest.equals('foo')); |
| 1858 checkUnnamed1939(o.link); | 1775 checkUnnamed1936(o.link); |
| 1859 checkUnnamed1940(o.name); | 1776 checkUnnamed1937(o.name); |
| 1860 } | 1777 } |
| 1861 buildCounterStorePage--; | 1778 buildCounterStorePage--; |
| 1862 } | 1779 } |
| 1863 | 1780 |
| 1864 core.int buildCounterTokenPagination = 0; | 1781 core.int buildCounterTokenPagination = 0; |
| 1865 buildTokenPagination() { | 1782 buildTokenPagination() { |
| 1866 var o = new api.TokenPagination(); | 1783 var o = new api.TokenPagination(); |
| 1867 buildCounterTokenPagination++; | 1784 buildCounterTokenPagination++; |
| 1868 if (buildCounterTokenPagination < 3) { | 1785 if (buildCounterTokenPagination < 3) { |
| 1869 o.nextPageToken = "foo"; | 1786 o.nextPageToken = "foo"; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1929 checkUserToken(api.UserToken o) { | 1846 checkUserToken(api.UserToken o) { |
| 1930 buildCounterUserToken++; | 1847 buildCounterUserToken++; |
| 1931 if (buildCounterUserToken < 3) { | 1848 if (buildCounterUserToken < 3) { |
| 1932 unittest.expect(o.kind, unittest.equals('foo')); | 1849 unittest.expect(o.kind, unittest.equals('foo')); |
| 1933 unittest.expect(o.token, unittest.equals('foo')); | 1850 unittest.expect(o.token, unittest.equals('foo')); |
| 1934 unittest.expect(o.userId, unittest.equals('foo')); | 1851 unittest.expect(o.userId, unittest.equals('foo')); |
| 1935 } | 1852 } |
| 1936 buildCounterUserToken--; | 1853 buildCounterUserToken--; |
| 1937 } | 1854 } |
| 1938 | 1855 |
| 1939 buildUnnamed1941() { | 1856 buildUnnamed1938() { |
| 1940 var o = new core.List<api.User>(); | 1857 var o = new core.List<api.User>(); |
| 1941 o.add(buildUser()); | 1858 o.add(buildUser()); |
| 1942 o.add(buildUser()); | 1859 o.add(buildUser()); |
| 1943 return o; | 1860 return o; |
| 1944 } | 1861 } |
| 1945 | 1862 |
| 1946 checkUnnamed1941(core.List<api.User> o) { | 1863 checkUnnamed1938(core.List<api.User> o) { |
| 1947 unittest.expect(o, unittest.hasLength(2)); | 1864 unittest.expect(o, unittest.hasLength(2)); |
| 1948 checkUser(o[0]); | 1865 checkUser(o[0]); |
| 1949 checkUser(o[1]); | 1866 checkUser(o[1]); |
| 1950 } | 1867 } |
| 1951 | 1868 |
| 1952 core.int buildCounterUsersListResponse = 0; | 1869 core.int buildCounterUsersListResponse = 0; |
| 1953 buildUsersListResponse() { | 1870 buildUsersListResponse() { |
| 1954 var o = new api.UsersListResponse(); | 1871 var o = new api.UsersListResponse(); |
| 1955 buildCounterUsersListResponse++; | 1872 buildCounterUsersListResponse++; |
| 1956 if (buildCounterUsersListResponse < 3) { | 1873 if (buildCounterUsersListResponse < 3) { |
| 1957 o.kind = "foo"; | 1874 o.kind = "foo"; |
| 1958 o.user = buildUnnamed1941(); | 1875 o.user = buildUnnamed1938(); |
| 1959 } | 1876 } |
| 1960 buildCounterUsersListResponse--; | 1877 buildCounterUsersListResponse--; |
| 1961 return o; | 1878 return o; |
| 1962 } | 1879 } |
| 1963 | 1880 |
| 1964 checkUsersListResponse(api.UsersListResponse o) { | 1881 checkUsersListResponse(api.UsersListResponse o) { |
| 1965 buildCounterUsersListResponse++; | 1882 buildCounterUsersListResponse++; |
| 1966 if (buildCounterUsersListResponse < 3) { | 1883 if (buildCounterUsersListResponse < 3) { |
| 1967 unittest.expect(o.kind, unittest.equals('foo')); | 1884 unittest.expect(o.kind, unittest.equals('foo')); |
| 1968 checkUnnamed1941(o.user); | 1885 checkUnnamed1938(o.user); |
| 1969 } | 1886 } |
| 1970 buildCounterUsersListResponse--; | 1887 buildCounterUsersListResponse--; |
| 1971 } | 1888 } |
| 1972 | 1889 |
| 1973 | 1890 |
| 1974 main() { | 1891 main() { |
| 1975 unittest.group("obj-schema-Administrator", () { | 1892 unittest.group("obj-schema-Administrator", () { |
| 1976 unittest.test("to-json--from-json", () { | 1893 unittest.test("to-json--from-json", () { |
| 1977 var o = buildAdministrator(); | 1894 var o = buildAdministrator(); |
| 1978 var od = new api.Administrator.fromJson(o.toJson()); | 1895 var od = new api.Administrator.fromJson(o.toJson()); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 | 1981 |
| 2065 unittest.group("obj-schema-AuthenticationToken", () { | 1982 unittest.group("obj-schema-AuthenticationToken", () { |
| 2066 unittest.test("to-json--from-json", () { | 1983 unittest.test("to-json--from-json", () { |
| 2067 var o = buildAuthenticationToken(); | 1984 var o = buildAuthenticationToken(); |
| 2068 var od = new api.AuthenticationToken.fromJson(o.toJson()); | 1985 var od = new api.AuthenticationToken.fromJson(o.toJson()); |
| 2069 checkAuthenticationToken(od); | 1986 checkAuthenticationToken(od); |
| 2070 }); | 1987 }); |
| 2071 }); | 1988 }); |
| 2072 | 1989 |
| 2073 | 1990 |
| 2074 unittest.group("obj-schema-Collection", () { | |
| 2075 unittest.test("to-json--from-json", () { | |
| 2076 var o = buildCollection(); | |
| 2077 var od = new api.Collection.fromJson(o.toJson()); | |
| 2078 checkCollection(od); | |
| 2079 }); | |
| 2080 }); | |
| 2081 | |
| 2082 | |
| 2083 unittest.group("obj-schema-CollectionViewersListResponse", () { | |
| 2084 unittest.test("to-json--from-json", () { | |
| 2085 var o = buildCollectionViewersListResponse(); | |
| 2086 var od = new api.CollectionViewersListResponse.fromJson(o.toJson()); | |
| 2087 checkCollectionViewersListResponse(od); | |
| 2088 }); | |
| 2089 }); | |
| 2090 | |
| 2091 | |
| 2092 unittest.group("obj-schema-CollectionsListResponse", () { | |
| 2093 unittest.test("to-json--from-json", () { | |
| 2094 var o = buildCollectionsListResponse(); | |
| 2095 var od = new api.CollectionsListResponse.fromJson(o.toJson()); | |
| 2096 checkCollectionsListResponse(od); | |
| 2097 }); | |
| 2098 }); | |
| 2099 | |
| 2100 | |
| 2101 unittest.group("obj-schema-Device", () { | 1991 unittest.group("obj-schema-Device", () { |
| 2102 unittest.test("to-json--from-json", () { | 1992 unittest.test("to-json--from-json", () { |
| 2103 var o = buildDevice(); | 1993 var o = buildDevice(); |
| 2104 var od = new api.Device.fromJson(o.toJson()); | 1994 var od = new api.Device.fromJson(o.toJson()); |
| 2105 checkDevice(od); | 1995 checkDevice(od); |
| 2106 }); | 1996 }); |
| 2107 }); | 1997 }); |
| 2108 | 1998 |
| 2109 | 1999 |
| 2110 unittest.group("obj-schema-DeviceState", () { | 2000 unittest.group("obj-schema-DeviceState", () { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2280 | 2170 |
| 2281 unittest.group("obj-schema-ManagedPropertyBundle", () { | 2171 unittest.group("obj-schema-ManagedPropertyBundle", () { |
| 2282 unittest.test("to-json--from-json", () { | 2172 unittest.test("to-json--from-json", () { |
| 2283 var o = buildManagedPropertyBundle(); | 2173 var o = buildManagedPropertyBundle(); |
| 2284 var od = new api.ManagedPropertyBundle.fromJson(o.toJson()); | 2174 var od = new api.ManagedPropertyBundle.fromJson(o.toJson()); |
| 2285 checkManagedPropertyBundle(od); | 2175 checkManagedPropertyBundle(od); |
| 2286 }); | 2176 }); |
| 2287 }); | 2177 }); |
| 2288 | 2178 |
| 2289 | 2179 |
| 2180 unittest.group("obj-schema-NewDeviceEvent", () { |
| 2181 unittest.test("to-json--from-json", () { |
| 2182 var o = buildNewDeviceEvent(); |
| 2183 var od = new api.NewDeviceEvent.fromJson(o.toJson()); |
| 2184 checkNewDeviceEvent(od); |
| 2185 }); |
| 2186 }); |
| 2187 |
| 2188 |
| 2290 unittest.group("obj-schema-NewPermissionsEvent", () { | 2189 unittest.group("obj-schema-NewPermissionsEvent", () { |
| 2291 unittest.test("to-json--from-json", () { | 2190 unittest.test("to-json--from-json", () { |
| 2292 var o = buildNewPermissionsEvent(); | 2191 var o = buildNewPermissionsEvent(); |
| 2293 var od = new api.NewPermissionsEvent.fromJson(o.toJson()); | 2192 var od = new api.NewPermissionsEvent.fromJson(o.toJson()); |
| 2294 checkNewPermissionsEvent(od); | 2193 checkNewPermissionsEvent(od); |
| 2295 }); | 2194 }); |
| 2296 }); | 2195 }); |
| 2297 | 2196 |
| 2298 | 2197 |
| 2299 unittest.group("obj-schema-Notification", () { | 2198 unittest.group("obj-schema-Notification", () { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2523 | 2422 |
| 2524 unittest.group("obj-schema-UsersListResponse", () { | 2423 unittest.group("obj-schema-UsersListResponse", () { |
| 2525 unittest.test("to-json--from-json", () { | 2424 unittest.test("to-json--from-json", () { |
| 2526 var o = buildUsersListResponse(); | 2425 var o = buildUsersListResponse(); |
| 2527 var od = new api.UsersListResponse.fromJson(o.toJson()); | 2426 var od = new api.UsersListResponse.fromJson(o.toJson()); |
| 2528 checkUsersListResponse(od); | 2427 checkUsersListResponse(od); |
| 2529 }); | 2428 }); |
| 2530 }); | 2429 }); |
| 2531 | 2430 |
| 2532 | 2431 |
| 2533 unittest.group("resource-CollectionsResourceApi", () { | |
| 2534 unittest.test("method--delete", () { | |
| 2535 | |
| 2536 var mock = new HttpServerMock(); | |
| 2537 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2538 var arg_enterpriseId = "foo"; | |
| 2539 var arg_collectionId = "foo"; | |
| 2540 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2541 var path = (req.url).path; | |
| 2542 var pathOffset = 0; | |
| 2543 var index; | |
| 2544 var subPart; | |
| 2545 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2546 pathOffset += 1; | |
| 2547 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2548 pathOffset += 21; | |
| 2549 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2550 pathOffset += 12; | |
| 2551 index = path.indexOf("/collections/", pathOffset); | |
| 2552 unittest.expect(index >= 0, unittest.isTrue); | |
| 2553 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2554 pathOffset = index; | |
| 2555 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2556 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2557 pathOffset += 13; | |
| 2558 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2559 pathOffset = path.length; | |
| 2560 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2561 | |
| 2562 var query = (req.url).query; | |
| 2563 var queryOffset = 0; | |
| 2564 var queryMap = {}; | |
| 2565 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2566 parseBool(n) { | |
| 2567 if (n == "true") return true; | |
| 2568 if (n == "false") return false; | |
| 2569 if (n == null) return null; | |
| 2570 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2571 } | |
| 2572 if (query.length > 0) { | |
| 2573 for (var part in query.split("&")) { | |
| 2574 var keyvalue = part.split("="); | |
| 2575 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2576 } | |
| 2577 } | |
| 2578 | |
| 2579 | |
| 2580 var h = { | |
| 2581 "content-type" : "application/json; charset=utf-8", | |
| 2582 }; | |
| 2583 var resp = ""; | |
| 2584 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2585 }), true); | |
| 2586 res.delete(arg_enterpriseId, arg_collectionId).then(unittest.expectAsync((
_) {})); | |
| 2587 }); | |
| 2588 | |
| 2589 unittest.test("method--get", () { | |
| 2590 | |
| 2591 var mock = new HttpServerMock(); | |
| 2592 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2593 var arg_enterpriseId = "foo"; | |
| 2594 var arg_collectionId = "foo"; | |
| 2595 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2596 var path = (req.url).path; | |
| 2597 var pathOffset = 0; | |
| 2598 var index; | |
| 2599 var subPart; | |
| 2600 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2601 pathOffset += 1; | |
| 2602 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2603 pathOffset += 21; | |
| 2604 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2605 pathOffset += 12; | |
| 2606 index = path.indexOf("/collections/", pathOffset); | |
| 2607 unittest.expect(index >= 0, unittest.isTrue); | |
| 2608 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2609 pathOffset = index; | |
| 2610 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2612 pathOffset += 13; | |
| 2613 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2614 pathOffset = path.length; | |
| 2615 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2616 | |
| 2617 var query = (req.url).query; | |
| 2618 var queryOffset = 0; | |
| 2619 var queryMap = {}; | |
| 2620 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2621 parseBool(n) { | |
| 2622 if (n == "true") return true; | |
| 2623 if (n == "false") return false; | |
| 2624 if (n == null) return null; | |
| 2625 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2626 } | |
| 2627 if (query.length > 0) { | |
| 2628 for (var part in query.split("&")) { | |
| 2629 var keyvalue = part.split("="); | |
| 2630 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2631 } | |
| 2632 } | |
| 2633 | |
| 2634 | |
| 2635 var h = { | |
| 2636 "content-type" : "application/json; charset=utf-8", | |
| 2637 }; | |
| 2638 var resp = convert.JSON.encode(buildCollection()); | |
| 2639 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2640 }), true); | |
| 2641 res.get(arg_enterpriseId, arg_collectionId).then(unittest.expectAsync(((ap
i.Collection response) { | |
| 2642 checkCollection(response); | |
| 2643 }))); | |
| 2644 }); | |
| 2645 | |
| 2646 unittest.test("method--insert", () { | |
| 2647 | |
| 2648 var mock = new HttpServerMock(); | |
| 2649 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2650 var arg_request = buildCollection(); | |
| 2651 var arg_enterpriseId = "foo"; | |
| 2652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2653 var obj = new api.Collection.fromJson(json); | |
| 2654 checkCollection(obj); | |
| 2655 | |
| 2656 var path = (req.url).path; | |
| 2657 var pathOffset = 0; | |
| 2658 var index; | |
| 2659 var subPart; | |
| 2660 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2661 pathOffset += 1; | |
| 2662 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2663 pathOffset += 21; | |
| 2664 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2665 pathOffset += 12; | |
| 2666 index = path.indexOf("/collections", pathOffset); | |
| 2667 unittest.expect(index >= 0, unittest.isTrue); | |
| 2668 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2669 pathOffset = index; | |
| 2670 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2671 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/collections")); | |
| 2672 pathOffset += 12; | |
| 2673 | |
| 2674 var query = (req.url).query; | |
| 2675 var queryOffset = 0; | |
| 2676 var queryMap = {}; | |
| 2677 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2678 parseBool(n) { | |
| 2679 if (n == "true") return true; | |
| 2680 if (n == "false") return false; | |
| 2681 if (n == null) return null; | |
| 2682 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2683 } | |
| 2684 if (query.length > 0) { | |
| 2685 for (var part in query.split("&")) { | |
| 2686 var keyvalue = part.split("="); | |
| 2687 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2688 } | |
| 2689 } | |
| 2690 | |
| 2691 | |
| 2692 var h = { | |
| 2693 "content-type" : "application/json; charset=utf-8", | |
| 2694 }; | |
| 2695 var resp = convert.JSON.encode(buildCollection()); | |
| 2696 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2697 }), true); | |
| 2698 res.insert(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.
Collection response) { | |
| 2699 checkCollection(response); | |
| 2700 }))); | |
| 2701 }); | |
| 2702 | |
| 2703 unittest.test("method--list", () { | |
| 2704 | |
| 2705 var mock = new HttpServerMock(); | |
| 2706 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2707 var arg_enterpriseId = "foo"; | |
| 2708 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2709 var path = (req.url).path; | |
| 2710 var pathOffset = 0; | |
| 2711 var index; | |
| 2712 var subPart; | |
| 2713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2714 pathOffset += 1; | |
| 2715 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2716 pathOffset += 21; | |
| 2717 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2718 pathOffset += 12; | |
| 2719 index = path.indexOf("/collections", pathOffset); | |
| 2720 unittest.expect(index >= 0, unittest.isTrue); | |
| 2721 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2722 pathOffset = index; | |
| 2723 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2724 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/collections")); | |
| 2725 pathOffset += 12; | |
| 2726 | |
| 2727 var query = (req.url).query; | |
| 2728 var queryOffset = 0; | |
| 2729 var queryMap = {}; | |
| 2730 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2731 parseBool(n) { | |
| 2732 if (n == "true") return true; | |
| 2733 if (n == "false") return false; | |
| 2734 if (n == null) return null; | |
| 2735 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2736 } | |
| 2737 if (query.length > 0) { | |
| 2738 for (var part in query.split("&")) { | |
| 2739 var keyvalue = part.split("="); | |
| 2740 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2741 } | |
| 2742 } | |
| 2743 | |
| 2744 | |
| 2745 var h = { | |
| 2746 "content-type" : "application/json; charset=utf-8", | |
| 2747 }; | |
| 2748 var resp = convert.JSON.encode(buildCollectionsListResponse()); | |
| 2749 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2750 }), true); | |
| 2751 res.list(arg_enterpriseId).then(unittest.expectAsync(((api.CollectionsList
Response response) { | |
| 2752 checkCollectionsListResponse(response); | |
| 2753 }))); | |
| 2754 }); | |
| 2755 | |
| 2756 unittest.test("method--patch", () { | |
| 2757 | |
| 2758 var mock = new HttpServerMock(); | |
| 2759 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2760 var arg_request = buildCollection(); | |
| 2761 var arg_enterpriseId = "foo"; | |
| 2762 var arg_collectionId = "foo"; | |
| 2763 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2764 var obj = new api.Collection.fromJson(json); | |
| 2765 checkCollection(obj); | |
| 2766 | |
| 2767 var path = (req.url).path; | |
| 2768 var pathOffset = 0; | |
| 2769 var index; | |
| 2770 var subPart; | |
| 2771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2772 pathOffset += 1; | |
| 2773 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2774 pathOffset += 21; | |
| 2775 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2776 pathOffset += 12; | |
| 2777 index = path.indexOf("/collections/", pathOffset); | |
| 2778 unittest.expect(index >= 0, unittest.isTrue); | |
| 2779 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2780 pathOffset = index; | |
| 2781 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2782 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2783 pathOffset += 13; | |
| 2784 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2785 pathOffset = path.length; | |
| 2786 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2787 | |
| 2788 var query = (req.url).query; | |
| 2789 var queryOffset = 0; | |
| 2790 var queryMap = {}; | |
| 2791 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2792 parseBool(n) { | |
| 2793 if (n == "true") return true; | |
| 2794 if (n == "false") return false; | |
| 2795 if (n == null) return null; | |
| 2796 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2797 } | |
| 2798 if (query.length > 0) { | |
| 2799 for (var part in query.split("&")) { | |
| 2800 var keyvalue = part.split("="); | |
| 2801 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2802 } | |
| 2803 } | |
| 2804 | |
| 2805 | |
| 2806 var h = { | |
| 2807 "content-type" : "application/json; charset=utf-8", | |
| 2808 }; | |
| 2809 var resp = convert.JSON.encode(buildCollection()); | |
| 2810 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2811 }), true); | |
| 2812 res.patch(arg_request, arg_enterpriseId, arg_collectionId).then(unittest.e
xpectAsync(((api.Collection response) { | |
| 2813 checkCollection(response); | |
| 2814 }))); | |
| 2815 }); | |
| 2816 | |
| 2817 unittest.test("method--update", () { | |
| 2818 | |
| 2819 var mock = new HttpServerMock(); | |
| 2820 api.CollectionsResourceApi res = new api.AndroidenterpriseApi(mock).collec
tions; | |
| 2821 var arg_request = buildCollection(); | |
| 2822 var arg_enterpriseId = "foo"; | |
| 2823 var arg_collectionId = "foo"; | |
| 2824 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2825 var obj = new api.Collection.fromJson(json); | |
| 2826 checkCollection(obj); | |
| 2827 | |
| 2828 var path = (req.url).path; | |
| 2829 var pathOffset = 0; | |
| 2830 var index; | |
| 2831 var subPart; | |
| 2832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2833 pathOffset += 1; | |
| 2834 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2835 pathOffset += 21; | |
| 2836 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2837 pathOffset += 12; | |
| 2838 index = path.indexOf("/collections/", pathOffset); | |
| 2839 unittest.expect(index >= 0, unittest.isTrue); | |
| 2840 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2841 pathOffset = index; | |
| 2842 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2843 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2844 pathOffset += 13; | |
| 2845 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2846 pathOffset = path.length; | |
| 2847 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2848 | |
| 2849 var query = (req.url).query; | |
| 2850 var queryOffset = 0; | |
| 2851 var queryMap = {}; | |
| 2852 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2853 parseBool(n) { | |
| 2854 if (n == "true") return true; | |
| 2855 if (n == "false") return false; | |
| 2856 if (n == null) return null; | |
| 2857 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2858 } | |
| 2859 if (query.length > 0) { | |
| 2860 for (var part in query.split("&")) { | |
| 2861 var keyvalue = part.split("="); | |
| 2862 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2863 } | |
| 2864 } | |
| 2865 | |
| 2866 | |
| 2867 var h = { | |
| 2868 "content-type" : "application/json; charset=utf-8", | |
| 2869 }; | |
| 2870 var resp = convert.JSON.encode(buildCollection()); | |
| 2871 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2872 }), true); | |
| 2873 res.update(arg_request, arg_enterpriseId, arg_collectionId).then(unittest.
expectAsync(((api.Collection response) { | |
| 2874 checkCollection(response); | |
| 2875 }))); | |
| 2876 }); | |
| 2877 | |
| 2878 }); | |
| 2879 | |
| 2880 | |
| 2881 unittest.group("resource-CollectionviewersResourceApi", () { | |
| 2882 unittest.test("method--delete", () { | |
| 2883 | |
| 2884 var mock = new HttpServerMock(); | |
| 2885 api.CollectionviewersResourceApi res = new api.AndroidenterpriseApi(mock).
collectionviewers; | |
| 2886 var arg_enterpriseId = "foo"; | |
| 2887 var arg_collectionId = "foo"; | |
| 2888 var arg_userId = "foo"; | |
| 2889 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2890 var path = (req.url).path; | |
| 2891 var pathOffset = 0; | |
| 2892 var index; | |
| 2893 var subPart; | |
| 2894 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2895 pathOffset += 1; | |
| 2896 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2897 pathOffset += 21; | |
| 2898 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2899 pathOffset += 12; | |
| 2900 index = path.indexOf("/collections/", pathOffset); | |
| 2901 unittest.expect(index >= 0, unittest.isTrue); | |
| 2902 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2903 pathOffset = index; | |
| 2904 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2905 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2906 pathOffset += 13; | |
| 2907 index = path.indexOf("/users/", pathOffset); | |
| 2908 unittest.expect(index >= 0, unittest.isTrue); | |
| 2909 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2910 pathOffset = index; | |
| 2911 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2912 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); | |
| 2913 pathOffset += 7; | |
| 2914 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2915 pathOffset = path.length; | |
| 2916 unittest.expect(subPart, unittest.equals("$arg_userId")); | |
| 2917 | |
| 2918 var query = (req.url).query; | |
| 2919 var queryOffset = 0; | |
| 2920 var queryMap = {}; | |
| 2921 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2922 parseBool(n) { | |
| 2923 if (n == "true") return true; | |
| 2924 if (n == "false") return false; | |
| 2925 if (n == null) return null; | |
| 2926 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2927 } | |
| 2928 if (query.length > 0) { | |
| 2929 for (var part in query.split("&")) { | |
| 2930 var keyvalue = part.split("="); | |
| 2931 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2932 } | |
| 2933 } | |
| 2934 | |
| 2935 | |
| 2936 var h = { | |
| 2937 "content-type" : "application/json; charset=utf-8", | |
| 2938 }; | |
| 2939 var resp = ""; | |
| 2940 return new async.Future.value(stringResponse(200, h, resp)); | |
| 2941 }), true); | |
| 2942 res.delete(arg_enterpriseId, arg_collectionId, arg_userId).then(unittest.e
xpectAsync((_) {})); | |
| 2943 }); | |
| 2944 | |
| 2945 unittest.test("method--get", () { | |
| 2946 | |
| 2947 var mock = new HttpServerMock(); | |
| 2948 api.CollectionviewersResourceApi res = new api.AndroidenterpriseApi(mock).
collectionviewers; | |
| 2949 var arg_enterpriseId = "foo"; | |
| 2950 var arg_collectionId = "foo"; | |
| 2951 var arg_userId = "foo"; | |
| 2952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 2953 var path = (req.url).path; | |
| 2954 var pathOffset = 0; | |
| 2955 var index; | |
| 2956 var subPart; | |
| 2957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 2958 pathOffset += 1; | |
| 2959 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 2960 pathOffset += 21; | |
| 2961 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 2962 pathOffset += 12; | |
| 2963 index = path.indexOf("/collections/", pathOffset); | |
| 2964 unittest.expect(index >= 0, unittest.isTrue); | |
| 2965 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2966 pathOffset = index; | |
| 2967 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 2968 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 2969 pathOffset += 13; | |
| 2970 index = path.indexOf("/users/", pathOffset); | |
| 2971 unittest.expect(index >= 0, unittest.isTrue); | |
| 2972 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 2973 pathOffset = index; | |
| 2974 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 2975 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); | |
| 2976 pathOffset += 7; | |
| 2977 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 2978 pathOffset = path.length; | |
| 2979 unittest.expect(subPart, unittest.equals("$arg_userId")); | |
| 2980 | |
| 2981 var query = (req.url).query; | |
| 2982 var queryOffset = 0; | |
| 2983 var queryMap = {}; | |
| 2984 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 2985 parseBool(n) { | |
| 2986 if (n == "true") return true; | |
| 2987 if (n == "false") return false; | |
| 2988 if (n == null) return null; | |
| 2989 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 2990 } | |
| 2991 if (query.length > 0) { | |
| 2992 for (var part in query.split("&")) { | |
| 2993 var keyvalue = part.split("="); | |
| 2994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 2995 } | |
| 2996 } | |
| 2997 | |
| 2998 | |
| 2999 var h = { | |
| 3000 "content-type" : "application/json; charset=utf-8", | |
| 3001 }; | |
| 3002 var resp = convert.JSON.encode(buildUser()); | |
| 3003 return new async.Future.value(stringResponse(200, h, resp)); | |
| 3004 }), true); | |
| 3005 res.get(arg_enterpriseId, arg_collectionId, arg_userId).then(unittest.expe
ctAsync(((api.User response) { | |
| 3006 checkUser(response); | |
| 3007 }))); | |
| 3008 }); | |
| 3009 | |
| 3010 unittest.test("method--list", () { | |
| 3011 | |
| 3012 var mock = new HttpServerMock(); | |
| 3013 api.CollectionviewersResourceApi res = new api.AndroidenterpriseApi(mock).
collectionviewers; | |
| 3014 var arg_enterpriseId = "foo"; | |
| 3015 var arg_collectionId = "foo"; | |
| 3016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 3017 var path = (req.url).path; | |
| 3018 var pathOffset = 0; | |
| 3019 var index; | |
| 3020 var subPart; | |
| 3021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 3022 pathOffset += 1; | |
| 3023 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 3024 pathOffset += 21; | |
| 3025 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 3026 pathOffset += 12; | |
| 3027 index = path.indexOf("/collections/", pathOffset); | |
| 3028 unittest.expect(index >= 0, unittest.isTrue); | |
| 3029 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3030 pathOffset = index; | |
| 3031 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 3032 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 3033 pathOffset += 13; | |
| 3034 index = path.indexOf("/users", pathOffset); | |
| 3035 unittest.expect(index >= 0, unittest.isTrue); | |
| 3036 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3037 pathOffset = index; | |
| 3038 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 3039 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/users")); | |
| 3040 pathOffset += 6; | |
| 3041 | |
| 3042 var query = (req.url).query; | |
| 3043 var queryOffset = 0; | |
| 3044 var queryMap = {}; | |
| 3045 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 3046 parseBool(n) { | |
| 3047 if (n == "true") return true; | |
| 3048 if (n == "false") return false; | |
| 3049 if (n == null) return null; | |
| 3050 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 3051 } | |
| 3052 if (query.length > 0) { | |
| 3053 for (var part in query.split("&")) { | |
| 3054 var keyvalue = part.split("="); | |
| 3055 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 3056 } | |
| 3057 } | |
| 3058 | |
| 3059 | |
| 3060 var h = { | |
| 3061 "content-type" : "application/json; charset=utf-8", | |
| 3062 }; | |
| 3063 var resp = convert.JSON.encode(buildCollectionViewersListResponse()); | |
| 3064 return new async.Future.value(stringResponse(200, h, resp)); | |
| 3065 }), true); | |
| 3066 res.list(arg_enterpriseId, arg_collectionId).then(unittest.expectAsync(((a
pi.CollectionViewersListResponse response) { | |
| 3067 checkCollectionViewersListResponse(response); | |
| 3068 }))); | |
| 3069 }); | |
| 3070 | |
| 3071 unittest.test("method--patch", () { | |
| 3072 | |
| 3073 var mock = new HttpServerMock(); | |
| 3074 api.CollectionviewersResourceApi res = new api.AndroidenterpriseApi(mock).
collectionviewers; | |
| 3075 var arg_request = buildUser(); | |
| 3076 var arg_enterpriseId = "foo"; | |
| 3077 var arg_collectionId = "foo"; | |
| 3078 var arg_userId = "foo"; | |
| 3079 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 3080 var obj = new api.User.fromJson(json); | |
| 3081 checkUser(obj); | |
| 3082 | |
| 3083 var path = (req.url).path; | |
| 3084 var pathOffset = 0; | |
| 3085 var index; | |
| 3086 var subPart; | |
| 3087 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 3088 pathOffset += 1; | |
| 3089 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 3090 pathOffset += 21; | |
| 3091 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 3092 pathOffset += 12; | |
| 3093 index = path.indexOf("/collections/", pathOffset); | |
| 3094 unittest.expect(index >= 0, unittest.isTrue); | |
| 3095 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3096 pathOffset = index; | |
| 3097 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 3098 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 3099 pathOffset += 13; | |
| 3100 index = path.indexOf("/users/", pathOffset); | |
| 3101 unittest.expect(index >= 0, unittest.isTrue); | |
| 3102 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3103 pathOffset = index; | |
| 3104 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 3105 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); | |
| 3106 pathOffset += 7; | |
| 3107 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 3108 pathOffset = path.length; | |
| 3109 unittest.expect(subPart, unittest.equals("$arg_userId")); | |
| 3110 | |
| 3111 var query = (req.url).query; | |
| 3112 var queryOffset = 0; | |
| 3113 var queryMap = {}; | |
| 3114 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 3115 parseBool(n) { | |
| 3116 if (n == "true") return true; | |
| 3117 if (n == "false") return false; | |
| 3118 if (n == null) return null; | |
| 3119 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 3120 } | |
| 3121 if (query.length > 0) { | |
| 3122 for (var part in query.split("&")) { | |
| 3123 var keyvalue = part.split("="); | |
| 3124 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 3125 } | |
| 3126 } | |
| 3127 | |
| 3128 | |
| 3129 var h = { | |
| 3130 "content-type" : "application/json; charset=utf-8", | |
| 3131 }; | |
| 3132 var resp = convert.JSON.encode(buildUser()); | |
| 3133 return new async.Future.value(stringResponse(200, h, resp)); | |
| 3134 }), true); | |
| 3135 res.patch(arg_request, arg_enterpriseId, arg_collectionId, arg_userId).the
n(unittest.expectAsync(((api.User response) { | |
| 3136 checkUser(response); | |
| 3137 }))); | |
| 3138 }); | |
| 3139 | |
| 3140 unittest.test("method--update", () { | |
| 3141 | |
| 3142 var mock = new HttpServerMock(); | |
| 3143 api.CollectionviewersResourceApi res = new api.AndroidenterpriseApi(mock).
collectionviewers; | |
| 3144 var arg_request = buildUser(); | |
| 3145 var arg_enterpriseId = "foo"; | |
| 3146 var arg_collectionId = "foo"; | |
| 3147 var arg_userId = "foo"; | |
| 3148 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 3149 var obj = new api.User.fromJson(json); | |
| 3150 checkUser(obj); | |
| 3151 | |
| 3152 var path = (req.url).path; | |
| 3153 var pathOffset = 0; | |
| 3154 var index; | |
| 3155 var subPart; | |
| 3156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 3157 pathOffset += 1; | |
| 3158 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); | |
| 3159 pathOffset += 21; | |
| 3160 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); | |
| 3161 pathOffset += 12; | |
| 3162 index = path.indexOf("/collections/", pathOffset); | |
| 3163 unittest.expect(index >= 0, unittest.isTrue); | |
| 3164 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3165 pathOffset = index; | |
| 3166 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); | |
| 3167 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/collections/")); | |
| 3168 pathOffset += 13; | |
| 3169 index = path.indexOf("/users/", pathOffset); | |
| 3170 unittest.expect(index >= 0, unittest.isTrue); | |
| 3171 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 3172 pathOffset = index; | |
| 3173 unittest.expect(subPart, unittest.equals("$arg_collectionId")); | |
| 3174 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); | |
| 3175 pathOffset += 7; | |
| 3176 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 3177 pathOffset = path.length; | |
| 3178 unittest.expect(subPart, unittest.equals("$arg_userId")); | |
| 3179 | |
| 3180 var query = (req.url).query; | |
| 3181 var queryOffset = 0; | |
| 3182 var queryMap = {}; | |
| 3183 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 3184 parseBool(n) { | |
| 3185 if (n == "true") return true; | |
| 3186 if (n == "false") return false; | |
| 3187 if (n == null) return null; | |
| 3188 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 3189 } | |
| 3190 if (query.length > 0) { | |
| 3191 for (var part in query.split("&")) { | |
| 3192 var keyvalue = part.split("="); | |
| 3193 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 3194 } | |
| 3195 } | |
| 3196 | |
| 3197 | |
| 3198 var h = { | |
| 3199 "content-type" : "application/json; charset=utf-8", | |
| 3200 }; | |
| 3201 var resp = convert.JSON.encode(buildUser()); | |
| 3202 return new async.Future.value(stringResponse(200, h, resp)); | |
| 3203 }), true); | |
| 3204 res.update(arg_request, arg_enterpriseId, arg_collectionId, arg_userId).th
en(unittest.expectAsync(((api.User response) { | |
| 3205 checkUser(response); | |
| 3206 }))); | |
| 3207 }); | |
| 3208 | |
| 3209 }); | |
| 3210 | |
| 3211 | |
| 3212 unittest.group("resource-DevicesResourceApi", () { | 2432 unittest.group("resource-DevicesResourceApi", () { |
| 3213 unittest.test("method--get", () { | 2433 unittest.test("method--get", () { |
| 3214 | 2434 |
| 3215 var mock = new HttpServerMock(); | 2435 var mock = new HttpServerMock(); |
| 3216 api.DevicesResourceApi res = new api.AndroidenterpriseApi(mock).devices; | 2436 api.DevicesResourceApi res = new api.AndroidenterpriseApi(mock).devices; |
| 3217 var arg_enterpriseId = "foo"; | 2437 var arg_enterpriseId = "foo"; |
| 3218 var arg_userId = "foo"; | 2438 var arg_userId = "foo"; |
| 3219 var arg_deviceId = "foo"; | 2439 var arg_deviceId = "foo"; |
| 3220 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2440 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3221 var path = (req.url).path; | 2441 var path = (req.url).path; |
| (...skipping 4786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8008 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { | 7228 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { |
| 8009 checkUser(response); | 7229 checkUser(response); |
| 8010 }))); | 7230 }))); |
| 8011 }); | 7231 }); |
| 8012 | 7232 |
| 8013 }); | 7233 }); |
| 8014 | 7234 |
| 8015 | 7235 |
| 8016 } | 7236 } |
| 8017 | 7237 |
| OLD | NEW |