OLD | NEW |
1 library googleapis.consumersurveys.v2.test; | 1 library googleapis.consumersurveys.v2.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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 } | 633 } |
634 buildCounterSurveysStartRequest--; | 634 buildCounterSurveysStartRequest--; |
635 } | 635 } |
636 | 636 |
637 core.int buildCounterSurveysStartResponse = 0; | 637 core.int buildCounterSurveysStartResponse = 0; |
638 buildSurveysStartResponse() { | 638 buildSurveysStartResponse() { |
639 var o = new api.SurveysStartResponse(); | 639 var o = new api.SurveysStartResponse(); |
640 buildCounterSurveysStartResponse++; | 640 buildCounterSurveysStartResponse++; |
641 if (buildCounterSurveysStartResponse < 3) { | 641 if (buildCounterSurveysStartResponse < 3) { |
642 o.requestId = "foo"; | 642 o.requestId = "foo"; |
643 o.resource = buildSurvey(); | |
644 } | 643 } |
645 buildCounterSurveysStartResponse--; | 644 buildCounterSurveysStartResponse--; |
646 return o; | 645 return o; |
647 } | 646 } |
648 | 647 |
649 checkSurveysStartResponse(api.SurveysStartResponse o) { | 648 checkSurveysStartResponse(api.SurveysStartResponse o) { |
650 buildCounterSurveysStartResponse++; | 649 buildCounterSurveysStartResponse++; |
651 if (buildCounterSurveysStartResponse < 3) { | 650 if (buildCounterSurveysStartResponse < 3) { |
652 unittest.expect(o.requestId, unittest.equals('foo')); | 651 unittest.expect(o.requestId, unittest.equals('foo')); |
653 checkSurvey(o.resource); | |
654 } | 652 } |
655 buildCounterSurveysStartResponse--; | 653 buildCounterSurveysStartResponse--; |
656 } | 654 } |
657 | 655 |
658 core.int buildCounterSurveysStopResponse = 0; | 656 core.int buildCounterSurveysStopResponse = 0; |
659 buildSurveysStopResponse() { | 657 buildSurveysStopResponse() { |
660 var o = new api.SurveysStopResponse(); | 658 var o = new api.SurveysStopResponse(); |
661 buildCounterSurveysStopResponse++; | 659 buildCounterSurveysStopResponse++; |
662 if (buildCounterSurveysStopResponse < 3) { | 660 if (buildCounterSurveysStopResponse < 3) { |
663 o.requestId = "foo"; | 661 o.requestId = "foo"; |
664 o.resource = buildSurvey(); | |
665 } | 662 } |
666 buildCounterSurveysStopResponse--; | 663 buildCounterSurveysStopResponse--; |
667 return o; | 664 return o; |
668 } | 665 } |
669 | 666 |
670 checkSurveysStopResponse(api.SurveysStopResponse o) { | 667 checkSurveysStopResponse(api.SurveysStopResponse o) { |
671 buildCounterSurveysStopResponse++; | 668 buildCounterSurveysStopResponse++; |
672 if (buildCounterSurveysStopResponse < 3) { | 669 if (buildCounterSurveysStopResponse < 3) { |
673 unittest.expect(o.requestId, unittest.equals('foo')); | 670 unittest.expect(o.requestId, unittest.equals('foo')); |
674 checkSurvey(o.resource); | |
675 } | 671 } |
676 buildCounterSurveysStopResponse--; | 672 buildCounterSurveysStopResponse--; |
677 } | 673 } |
678 | 674 |
679 core.int buildCounterTokenPagination = 0; | 675 core.int buildCounterTokenPagination = 0; |
680 buildTokenPagination() { | 676 buildTokenPagination() { |
681 var o = new api.TokenPagination(); | 677 var o = new api.TokenPagination(); |
682 buildCounterTokenPagination++; | 678 buildCounterTokenPagination++; |
683 if (buildCounterTokenPagination < 3) { | 679 if (buildCounterTokenPagination < 3) { |
684 o.nextPageToken = "foo"; | 680 o.nextPageToken = "foo"; |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S
urvey response) { | 1446 res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.S
urvey response) { |
1451 checkSurvey(response); | 1447 checkSurvey(response); |
1452 }))); | 1448 }))); |
1453 }); | 1449 }); |
1454 | 1450 |
1455 }); | 1451 }); |
1456 | 1452 |
1457 | 1453 |
1458 } | 1454 } |
1459 | 1455 |
OLD | NEW |