OLD | NEW |
1 library googleapis.slides.v1.test; | 1 library googleapis.slides.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 checkAutoText(api.AutoText o) { | 98 checkAutoText(api.AutoText o) { |
99 buildCounterAutoText++; | 99 buildCounterAutoText++; |
100 if (buildCounterAutoText < 3) { | 100 if (buildCounterAutoText < 3) { |
101 unittest.expect(o.content, unittest.equals('foo')); | 101 unittest.expect(o.content, unittest.equals('foo')); |
102 checkTextStyle(o.style); | 102 checkTextStyle(o.style); |
103 unittest.expect(o.type, unittest.equals('foo')); | 103 unittest.expect(o.type, unittest.equals('foo')); |
104 } | 104 } |
105 buildCounterAutoText--; | 105 buildCounterAutoText--; |
106 } | 106 } |
107 | 107 |
108 buildUnnamed1589() { | 108 buildUnnamed1681() { |
109 var o = new core.List<api.Request>(); | 109 var o = new core.List<api.Request>(); |
110 o.add(buildRequest()); | 110 o.add(buildRequest()); |
111 o.add(buildRequest()); | 111 o.add(buildRequest()); |
112 return o; | 112 return o; |
113 } | 113 } |
114 | 114 |
115 checkUnnamed1589(core.List<api.Request> o) { | 115 checkUnnamed1681(core.List<api.Request> o) { |
116 unittest.expect(o, unittest.hasLength(2)); | 116 unittest.expect(o, unittest.hasLength(2)); |
117 checkRequest(o[0]); | 117 checkRequest(o[0]); |
118 checkRequest(o[1]); | 118 checkRequest(o[1]); |
119 } | 119 } |
120 | 120 |
121 core.int buildCounterBatchUpdatePresentationRequest = 0; | 121 core.int buildCounterBatchUpdatePresentationRequest = 0; |
122 buildBatchUpdatePresentationRequest() { | 122 buildBatchUpdatePresentationRequest() { |
123 var o = new api.BatchUpdatePresentationRequest(); | 123 var o = new api.BatchUpdatePresentationRequest(); |
124 buildCounterBatchUpdatePresentationRequest++; | 124 buildCounterBatchUpdatePresentationRequest++; |
125 if (buildCounterBatchUpdatePresentationRequest < 3) { | 125 if (buildCounterBatchUpdatePresentationRequest < 3) { |
126 o.requests = buildUnnamed1589(); | 126 o.requests = buildUnnamed1681(); |
127 o.writeControl = buildWriteControl(); | 127 o.writeControl = buildWriteControl(); |
128 } | 128 } |
129 buildCounterBatchUpdatePresentationRequest--; | 129 buildCounterBatchUpdatePresentationRequest--; |
130 return o; | 130 return o; |
131 } | 131 } |
132 | 132 |
133 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { | 133 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { |
134 buildCounterBatchUpdatePresentationRequest++; | 134 buildCounterBatchUpdatePresentationRequest++; |
135 if (buildCounterBatchUpdatePresentationRequest < 3) { | 135 if (buildCounterBatchUpdatePresentationRequest < 3) { |
136 checkUnnamed1589(o.requests); | 136 checkUnnamed1681(o.requests); |
137 checkWriteControl(o.writeControl); | 137 checkWriteControl(o.writeControl); |
138 } | 138 } |
139 buildCounterBatchUpdatePresentationRequest--; | 139 buildCounterBatchUpdatePresentationRequest--; |
140 } | 140 } |
141 | 141 |
142 buildUnnamed1590() { | 142 buildUnnamed1682() { |
143 var o = new core.List<api.Response>(); | 143 var o = new core.List<api.Response>(); |
144 o.add(buildResponse()); | 144 o.add(buildResponse()); |
145 o.add(buildResponse()); | 145 o.add(buildResponse()); |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkUnnamed1590(core.List<api.Response> o) { | 149 checkUnnamed1682(core.List<api.Response> o) { |
150 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
151 checkResponse(o[0]); | 151 checkResponse(o[0]); |
152 checkResponse(o[1]); | 152 checkResponse(o[1]); |
153 } | 153 } |
154 | 154 |
155 core.int buildCounterBatchUpdatePresentationResponse = 0; | 155 core.int buildCounterBatchUpdatePresentationResponse = 0; |
156 buildBatchUpdatePresentationResponse() { | 156 buildBatchUpdatePresentationResponse() { |
157 var o = new api.BatchUpdatePresentationResponse(); | 157 var o = new api.BatchUpdatePresentationResponse(); |
158 buildCounterBatchUpdatePresentationResponse++; | 158 buildCounterBatchUpdatePresentationResponse++; |
159 if (buildCounterBatchUpdatePresentationResponse < 3) { | 159 if (buildCounterBatchUpdatePresentationResponse < 3) { |
160 o.presentationId = "foo"; | 160 o.presentationId = "foo"; |
161 o.replies = buildUnnamed1590(); | 161 o.replies = buildUnnamed1682(); |
162 } | 162 } |
163 buildCounterBatchUpdatePresentationResponse--; | 163 buildCounterBatchUpdatePresentationResponse--; |
164 return o; | 164 return o; |
165 } | 165 } |
166 | 166 |
167 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { | 167 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { |
168 buildCounterBatchUpdatePresentationResponse++; | 168 buildCounterBatchUpdatePresentationResponse++; |
169 if (buildCounterBatchUpdatePresentationResponse < 3) { | 169 if (buildCounterBatchUpdatePresentationResponse < 3) { |
170 unittest.expect(o.presentationId, unittest.equals('foo')); | 170 unittest.expect(o.presentationId, unittest.equals('foo')); |
171 checkUnnamed1590(o.replies); | 171 checkUnnamed1682(o.replies); |
172 } | 172 } |
173 buildCounterBatchUpdatePresentationResponse--; | 173 buildCounterBatchUpdatePresentationResponse--; |
174 } | 174 } |
175 | 175 |
176 core.int buildCounterBullet = 0; | 176 core.int buildCounterBullet = 0; |
177 buildBullet() { | 177 buildBullet() { |
178 var o = new api.Bullet(); | 178 var o = new api.Bullet(); |
179 buildCounterBullet++; | 179 buildCounterBullet++; |
180 if (buildCounterBullet < 3) { | 180 if (buildCounterBullet < 3) { |
181 o.bulletStyle = buildTextStyle(); | 181 o.bulletStyle = buildTextStyle(); |
182 o.glyph = "foo"; | 182 o.glyph = "foo"; |
183 o.listId = "foo"; | 183 o.listId = "foo"; |
184 o.nestingLevel = 42; | 184 o.nestingLevel = 42; |
185 } | 185 } |
186 buildCounterBullet--; | 186 buildCounterBullet--; |
187 return o; | 187 return o; |
188 } | 188 } |
189 | 189 |
190 checkBullet(api.Bullet o) { | 190 checkBullet(api.Bullet o) { |
191 buildCounterBullet++; | 191 buildCounterBullet++; |
192 if (buildCounterBullet < 3) { | 192 if (buildCounterBullet < 3) { |
193 checkTextStyle(o.bulletStyle); | 193 checkTextStyle(o.bulletStyle); |
194 unittest.expect(o.glyph, unittest.equals('foo')); | 194 unittest.expect(o.glyph, unittest.equals('foo')); |
195 unittest.expect(o.listId, unittest.equals('foo')); | 195 unittest.expect(o.listId, unittest.equals('foo')); |
196 unittest.expect(o.nestingLevel, unittest.equals(42)); | 196 unittest.expect(o.nestingLevel, unittest.equals(42)); |
197 } | 197 } |
198 buildCounterBullet--; | 198 buildCounterBullet--; |
199 } | 199 } |
200 | 200 |
201 buildUnnamed1591() { | 201 buildUnnamed1683() { |
202 var o = new core.List<api.ThemeColorPair>(); | 202 var o = new core.List<api.ThemeColorPair>(); |
203 o.add(buildThemeColorPair()); | 203 o.add(buildThemeColorPair()); |
204 o.add(buildThemeColorPair()); | 204 o.add(buildThemeColorPair()); |
205 return o; | 205 return o; |
206 } | 206 } |
207 | 207 |
208 checkUnnamed1591(core.List<api.ThemeColorPair> o) { | 208 checkUnnamed1683(core.List<api.ThemeColorPair> o) { |
209 unittest.expect(o, unittest.hasLength(2)); | 209 unittest.expect(o, unittest.hasLength(2)); |
210 checkThemeColorPair(o[0]); | 210 checkThemeColorPair(o[0]); |
211 checkThemeColorPair(o[1]); | 211 checkThemeColorPair(o[1]); |
212 } | 212 } |
213 | 213 |
214 core.int buildCounterColorScheme = 0; | 214 core.int buildCounterColorScheme = 0; |
215 buildColorScheme() { | 215 buildColorScheme() { |
216 var o = new api.ColorScheme(); | 216 var o = new api.ColorScheme(); |
217 buildCounterColorScheme++; | 217 buildCounterColorScheme++; |
218 if (buildCounterColorScheme < 3) { | 218 if (buildCounterColorScheme < 3) { |
219 o.colors = buildUnnamed1591(); | 219 o.colors = buildUnnamed1683(); |
220 } | 220 } |
221 buildCounterColorScheme--; | 221 buildCounterColorScheme--; |
222 return o; | 222 return o; |
223 } | 223 } |
224 | 224 |
225 checkColorScheme(api.ColorScheme o) { | 225 checkColorScheme(api.ColorScheme o) { |
226 buildCounterColorScheme++; | 226 buildCounterColorScheme++; |
227 if (buildCounterColorScheme < 3) { | 227 if (buildCounterColorScheme < 3) { |
228 checkUnnamed1591(o.colors); | 228 checkUnnamed1683(o.colors); |
229 } | 229 } |
230 buildCounterColorScheme--; | 230 buildCounterColorScheme--; |
231 } | 231 } |
232 | 232 |
233 core.int buildCounterColorStop = 0; | 233 core.int buildCounterColorStop = 0; |
234 buildColorStop() { | 234 buildColorStop() { |
235 var o = new api.ColorStop(); | 235 var o = new api.ColorStop(); |
236 buildCounterColorStop++; | 236 buildCounterColorStop++; |
237 if (buildCounterColorStop < 3) { | 237 if (buildCounterColorStop < 3) { |
238 o.alpha = 42.0; | 238 o.alpha = 42.0; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 443 } |
444 | 444 |
445 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { | 445 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { |
446 buildCounterCreateSheetsChartResponse++; | 446 buildCounterCreateSheetsChartResponse++; |
447 if (buildCounterCreateSheetsChartResponse < 3) { | 447 if (buildCounterCreateSheetsChartResponse < 3) { |
448 unittest.expect(o.objectId, unittest.equals('foo')); | 448 unittest.expect(o.objectId, unittest.equals('foo')); |
449 } | 449 } |
450 buildCounterCreateSheetsChartResponse--; | 450 buildCounterCreateSheetsChartResponse--; |
451 } | 451 } |
452 | 452 |
453 buildUnnamed1592() { | 453 buildUnnamed1684() { |
454 var o = new core.List<api.LayoutPlaceholderIdMapping>(); | 454 var o = new core.List<api.LayoutPlaceholderIdMapping>(); |
455 o.add(buildLayoutPlaceholderIdMapping()); | 455 o.add(buildLayoutPlaceholderIdMapping()); |
456 o.add(buildLayoutPlaceholderIdMapping()); | 456 o.add(buildLayoutPlaceholderIdMapping()); |
457 return o; | 457 return o; |
458 } | 458 } |
459 | 459 |
460 checkUnnamed1592(core.List<api.LayoutPlaceholderIdMapping> o) { | 460 checkUnnamed1684(core.List<api.LayoutPlaceholderIdMapping> o) { |
461 unittest.expect(o, unittest.hasLength(2)); | 461 unittest.expect(o, unittest.hasLength(2)); |
462 checkLayoutPlaceholderIdMapping(o[0]); | 462 checkLayoutPlaceholderIdMapping(o[0]); |
463 checkLayoutPlaceholderIdMapping(o[1]); | 463 checkLayoutPlaceholderIdMapping(o[1]); |
464 } | 464 } |
465 | 465 |
466 core.int buildCounterCreateSlideRequest = 0; | 466 core.int buildCounterCreateSlideRequest = 0; |
467 buildCreateSlideRequest() { | 467 buildCreateSlideRequest() { |
468 var o = new api.CreateSlideRequest(); | 468 var o = new api.CreateSlideRequest(); |
469 buildCounterCreateSlideRequest++; | 469 buildCounterCreateSlideRequest++; |
470 if (buildCounterCreateSlideRequest < 3) { | 470 if (buildCounterCreateSlideRequest < 3) { |
471 o.insertionIndex = 42; | 471 o.insertionIndex = 42; |
472 o.objectId = "foo"; | 472 o.objectId = "foo"; |
473 o.placeholderIdMappings = buildUnnamed1592(); | 473 o.placeholderIdMappings = buildUnnamed1684(); |
474 o.slideLayoutReference = buildLayoutReference(); | 474 o.slideLayoutReference = buildLayoutReference(); |
475 } | 475 } |
476 buildCounterCreateSlideRequest--; | 476 buildCounterCreateSlideRequest--; |
477 return o; | 477 return o; |
478 } | 478 } |
479 | 479 |
480 checkCreateSlideRequest(api.CreateSlideRequest o) { | 480 checkCreateSlideRequest(api.CreateSlideRequest o) { |
481 buildCounterCreateSlideRequest++; | 481 buildCounterCreateSlideRequest++; |
482 if (buildCounterCreateSlideRequest < 3) { | 482 if (buildCounterCreateSlideRequest < 3) { |
483 unittest.expect(o.insertionIndex, unittest.equals(42)); | 483 unittest.expect(o.insertionIndex, unittest.equals(42)); |
484 unittest.expect(o.objectId, unittest.equals('foo')); | 484 unittest.expect(o.objectId, unittest.equals('foo')); |
485 checkUnnamed1592(o.placeholderIdMappings); | 485 checkUnnamed1684(o.placeholderIdMappings); |
486 checkLayoutReference(o.slideLayoutReference); | 486 checkLayoutReference(o.slideLayoutReference); |
487 } | 487 } |
488 buildCounterCreateSlideRequest--; | 488 buildCounterCreateSlideRequest--; |
489 } | 489 } |
490 | 490 |
491 core.int buildCounterCreateSlideResponse = 0; | 491 core.int buildCounterCreateSlideResponse = 0; |
492 buildCreateSlideResponse() { | 492 buildCreateSlideResponse() { |
493 var o = new api.CreateSlideResponse(); | 493 var o = new api.CreateSlideResponse(); |
494 buildCounterCreateSlideResponse++; | 494 buildCounterCreateSlideResponse++; |
495 if (buildCounterCreateSlideResponse < 3) { | 495 if (buildCounterCreateSlideResponse < 3) { |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 | 743 |
744 checkDimension(api.Dimension o) { | 744 checkDimension(api.Dimension o) { |
745 buildCounterDimension++; | 745 buildCounterDimension++; |
746 if (buildCounterDimension < 3) { | 746 if (buildCounterDimension < 3) { |
747 unittest.expect(o.magnitude, unittest.equals(42.0)); | 747 unittest.expect(o.magnitude, unittest.equals(42.0)); |
748 unittest.expect(o.unit, unittest.equals('foo')); | 748 unittest.expect(o.unit, unittest.equals('foo')); |
749 } | 749 } |
750 buildCounterDimension--; | 750 buildCounterDimension--; |
751 } | 751 } |
752 | 752 |
753 buildUnnamed1593() { | 753 buildUnnamed1685() { |
754 var o = new core.Map<core.String, core.String>(); | 754 var o = new core.Map<core.String, core.String>(); |
755 o["x"] = "foo"; | 755 o["x"] = "foo"; |
756 o["y"] = "foo"; | 756 o["y"] = "foo"; |
757 return o; | 757 return o; |
758 } | 758 } |
759 | 759 |
760 checkUnnamed1593(core.Map<core.String, core.String> o) { | 760 checkUnnamed1685(core.Map<core.String, core.String> o) { |
761 unittest.expect(o, unittest.hasLength(2)); | 761 unittest.expect(o, unittest.hasLength(2)); |
762 unittest.expect(o["x"], unittest.equals('foo')); | 762 unittest.expect(o["x"], unittest.equals('foo')); |
763 unittest.expect(o["y"], unittest.equals('foo')); | 763 unittest.expect(o["y"], unittest.equals('foo')); |
764 } | 764 } |
765 | 765 |
766 core.int buildCounterDuplicateObjectRequest = 0; | 766 core.int buildCounterDuplicateObjectRequest = 0; |
767 buildDuplicateObjectRequest() { | 767 buildDuplicateObjectRequest() { |
768 var o = new api.DuplicateObjectRequest(); | 768 var o = new api.DuplicateObjectRequest(); |
769 buildCounterDuplicateObjectRequest++; | 769 buildCounterDuplicateObjectRequest++; |
770 if (buildCounterDuplicateObjectRequest < 3) { | 770 if (buildCounterDuplicateObjectRequest < 3) { |
771 o.objectId = "foo"; | 771 o.objectId = "foo"; |
772 o.objectIds = buildUnnamed1593(); | 772 o.objectIds = buildUnnamed1685(); |
773 } | 773 } |
774 buildCounterDuplicateObjectRequest--; | 774 buildCounterDuplicateObjectRequest--; |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { | 778 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { |
779 buildCounterDuplicateObjectRequest++; | 779 buildCounterDuplicateObjectRequest++; |
780 if (buildCounterDuplicateObjectRequest < 3) { | 780 if (buildCounterDuplicateObjectRequest < 3) { |
781 unittest.expect(o.objectId, unittest.equals('foo')); | 781 unittest.expect(o.objectId, unittest.equals('foo')); |
782 checkUnnamed1593(o.objectIds); | 782 checkUnnamed1685(o.objectIds); |
783 } | 783 } |
784 buildCounterDuplicateObjectRequest--; | 784 buildCounterDuplicateObjectRequest--; |
785 } | 785 } |
786 | 786 |
787 core.int buildCounterDuplicateObjectResponse = 0; | 787 core.int buildCounterDuplicateObjectResponse = 0; |
788 buildDuplicateObjectResponse() { | 788 buildDuplicateObjectResponse() { |
789 var o = new api.DuplicateObjectResponse(); | 789 var o = new api.DuplicateObjectResponse(); |
790 buildCounterDuplicateObjectResponse++; | 790 buildCounterDuplicateObjectResponse++; |
791 if (buildCounterDuplicateObjectResponse < 3) { | 791 if (buildCounterDuplicateObjectResponse < 3) { |
792 o.objectId = "foo"; | 792 o.objectId = "foo"; |
793 } | 793 } |
794 buildCounterDuplicateObjectResponse--; | 794 buildCounterDuplicateObjectResponse--; |
795 return o; | 795 return o; |
796 } | 796 } |
797 | 797 |
798 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { | 798 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { |
799 buildCounterDuplicateObjectResponse++; | 799 buildCounterDuplicateObjectResponse++; |
800 if (buildCounterDuplicateObjectResponse < 3) { | 800 if (buildCounterDuplicateObjectResponse < 3) { |
801 unittest.expect(o.objectId, unittest.equals('foo')); | 801 unittest.expect(o.objectId, unittest.equals('foo')); |
802 } | 802 } |
803 buildCounterDuplicateObjectResponse--; | 803 buildCounterDuplicateObjectResponse--; |
804 } | 804 } |
805 | 805 |
806 buildUnnamed1594() { | 806 buildUnnamed1686() { |
807 var o = new core.List<api.PageElement>(); | 807 var o = new core.List<api.PageElement>(); |
808 o.add(buildPageElement()); | 808 o.add(buildPageElement()); |
809 o.add(buildPageElement()); | 809 o.add(buildPageElement()); |
810 return o; | 810 return o; |
811 } | 811 } |
812 | 812 |
813 checkUnnamed1594(core.List<api.PageElement> o) { | 813 checkUnnamed1686(core.List<api.PageElement> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
815 checkPageElement(o[0]); | 815 checkPageElement(o[0]); |
816 checkPageElement(o[1]); | 816 checkPageElement(o[1]); |
817 } | 817 } |
818 | 818 |
819 core.int buildCounterGroup = 0; | 819 core.int buildCounterGroup = 0; |
820 buildGroup() { | 820 buildGroup() { |
821 var o = new api.Group(); | 821 var o = new api.Group(); |
822 buildCounterGroup++; | 822 buildCounterGroup++; |
823 if (buildCounterGroup < 3) { | 823 if (buildCounterGroup < 3) { |
824 o.children = buildUnnamed1594(); | 824 o.children = buildUnnamed1686(); |
825 } | 825 } |
826 buildCounterGroup--; | 826 buildCounterGroup--; |
827 return o; | 827 return o; |
828 } | 828 } |
829 | 829 |
830 checkGroup(api.Group o) { | 830 checkGroup(api.Group o) { |
831 buildCounterGroup++; | 831 buildCounterGroup++; |
832 if (buildCounterGroup < 3) { | 832 if (buildCounterGroup < 3) { |
833 checkUnnamed1594(o.children); | 833 checkUnnamed1686(o.children); |
834 } | 834 } |
835 buildCounterGroup--; | 835 buildCounterGroup--; |
836 } | 836 } |
837 | 837 |
838 core.int buildCounterImage = 0; | 838 core.int buildCounterImage = 0; |
839 buildImage() { | 839 buildImage() { |
840 var o = new api.Image(); | 840 var o = new api.Image(); |
841 buildCounterImage++; | 841 buildCounterImage++; |
842 if (buildCounterImage < 3) { | 842 if (buildCounterImage < 3) { |
843 o.contentUrl = "foo"; | 843 o.contentUrl = "foo"; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 buildCounterLink++; | 1118 buildCounterLink++; |
1119 if (buildCounterLink < 3) { | 1119 if (buildCounterLink < 3) { |
1120 unittest.expect(o.pageObjectId, unittest.equals('foo')); | 1120 unittest.expect(o.pageObjectId, unittest.equals('foo')); |
1121 unittest.expect(o.relativeLink, unittest.equals('foo')); | 1121 unittest.expect(o.relativeLink, unittest.equals('foo')); |
1122 unittest.expect(o.slideIndex, unittest.equals(42)); | 1122 unittest.expect(o.slideIndex, unittest.equals(42)); |
1123 unittest.expect(o.url, unittest.equals('foo')); | 1123 unittest.expect(o.url, unittest.equals('foo')); |
1124 } | 1124 } |
1125 buildCounterLink--; | 1125 buildCounterLink--; |
1126 } | 1126 } |
1127 | 1127 |
1128 buildUnnamed1595() { | 1128 buildUnnamed1687() { |
1129 var o = new core.Map<core.String, api.NestingLevel>(); | 1129 var o = new core.Map<core.String, api.NestingLevel>(); |
1130 o["x"] = buildNestingLevel(); | 1130 o["x"] = buildNestingLevel(); |
1131 o["y"] = buildNestingLevel(); | 1131 o["y"] = buildNestingLevel(); |
1132 return o; | 1132 return o; |
1133 } | 1133 } |
1134 | 1134 |
1135 checkUnnamed1595(core.Map<core.String, api.NestingLevel> o) { | 1135 checkUnnamed1687(core.Map<core.String, api.NestingLevel> o) { |
1136 unittest.expect(o, unittest.hasLength(2)); | 1136 unittest.expect(o, unittest.hasLength(2)); |
1137 checkNestingLevel(o["x"]); | 1137 checkNestingLevel(o["x"]); |
1138 checkNestingLevel(o["y"]); | 1138 checkNestingLevel(o["y"]); |
1139 } | 1139 } |
1140 | 1140 |
1141 core.int buildCounterList = 0; | 1141 core.int buildCounterList = 0; |
1142 buildList() { | 1142 buildList() { |
1143 var o = new api.List(); | 1143 var o = new api.List(); |
1144 buildCounterList++; | 1144 buildCounterList++; |
1145 if (buildCounterList < 3) { | 1145 if (buildCounterList < 3) { |
1146 o.listId = "foo"; | 1146 o.listId = "foo"; |
1147 o.nestingLevel = buildUnnamed1595(); | 1147 o.nestingLevel = buildUnnamed1687(); |
1148 } | 1148 } |
1149 buildCounterList--; | 1149 buildCounterList--; |
1150 return o; | 1150 return o; |
1151 } | 1151 } |
1152 | 1152 |
1153 checkList(api.List o) { | 1153 checkList(api.List o) { |
1154 buildCounterList++; | 1154 buildCounterList++; |
1155 if (buildCounterList < 3) { | 1155 if (buildCounterList < 3) { |
1156 unittest.expect(o.listId, unittest.equals('foo')); | 1156 unittest.expect(o.listId, unittest.equals('foo')); |
1157 checkUnnamed1595(o.nestingLevel); | 1157 checkUnnamed1687(o.nestingLevel); |
1158 } | 1158 } |
1159 buildCounterList--; | 1159 buildCounterList--; |
1160 } | 1160 } |
1161 | 1161 |
1162 core.int buildCounterNestingLevel = 0; | 1162 core.int buildCounterNestingLevel = 0; |
1163 buildNestingLevel() { | 1163 buildNestingLevel() { |
1164 var o = new api.NestingLevel(); | 1164 var o = new api.NestingLevel(); |
1165 buildCounterNestingLevel++; | 1165 buildCounterNestingLevel++; |
1166 if (buildCounterNestingLevel < 3) { | 1166 if (buildCounterNestingLevel < 3) { |
1167 o.bulletStyle = buildTextStyle(); | 1167 o.bulletStyle = buildTextStyle(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 } | 1274 } |
1275 | 1275 |
1276 checkOutlineFill(api.OutlineFill o) { | 1276 checkOutlineFill(api.OutlineFill o) { |
1277 buildCounterOutlineFill++; | 1277 buildCounterOutlineFill++; |
1278 if (buildCounterOutlineFill < 3) { | 1278 if (buildCounterOutlineFill < 3) { |
1279 checkSolidFill(o.solidFill); | 1279 checkSolidFill(o.solidFill); |
1280 } | 1280 } |
1281 buildCounterOutlineFill--; | 1281 buildCounterOutlineFill--; |
1282 } | 1282 } |
1283 | 1283 |
1284 buildUnnamed1596() { | 1284 buildUnnamed1688() { |
1285 var o = new core.List<api.PageElement>(); | 1285 var o = new core.List<api.PageElement>(); |
1286 o.add(buildPageElement()); | 1286 o.add(buildPageElement()); |
1287 o.add(buildPageElement()); | 1287 o.add(buildPageElement()); |
1288 return o; | 1288 return o; |
1289 } | 1289 } |
1290 | 1290 |
1291 checkUnnamed1596(core.List<api.PageElement> o) { | 1291 checkUnnamed1688(core.List<api.PageElement> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1293 checkPageElement(o[0]); | 1293 checkPageElement(o[0]); |
1294 checkPageElement(o[1]); | 1294 checkPageElement(o[1]); |
1295 } | 1295 } |
1296 | 1296 |
1297 core.int buildCounterPage = 0; | 1297 core.int buildCounterPage = 0; |
1298 buildPage() { | 1298 buildPage() { |
1299 var o = new api.Page(); | 1299 var o = new api.Page(); |
1300 buildCounterPage++; | 1300 buildCounterPage++; |
1301 if (buildCounterPage < 3) { | 1301 if (buildCounterPage < 3) { |
1302 o.layoutProperties = buildLayoutProperties(); | 1302 o.layoutProperties = buildLayoutProperties(); |
1303 o.notesProperties = buildNotesProperties(); | 1303 o.notesProperties = buildNotesProperties(); |
1304 o.objectId = "foo"; | 1304 o.objectId = "foo"; |
1305 o.pageElements = buildUnnamed1596(); | 1305 o.pageElements = buildUnnamed1688(); |
1306 o.pageProperties = buildPageProperties(); | 1306 o.pageProperties = buildPageProperties(); |
1307 o.pageType = "foo"; | 1307 o.pageType = "foo"; |
1308 o.revisionId = "foo"; | 1308 o.revisionId = "foo"; |
1309 o.slideProperties = buildSlideProperties(); | 1309 o.slideProperties = buildSlideProperties(); |
1310 } | 1310 } |
1311 buildCounterPage--; | 1311 buildCounterPage--; |
1312 return o; | 1312 return o; |
1313 } | 1313 } |
1314 | 1314 |
1315 checkPage(api.Page o) { | 1315 checkPage(api.Page o) { |
1316 buildCounterPage++; | 1316 buildCounterPage++; |
1317 if (buildCounterPage < 3) { | 1317 if (buildCounterPage < 3) { |
1318 checkLayoutProperties(o.layoutProperties); | 1318 checkLayoutProperties(o.layoutProperties); |
1319 checkNotesProperties(o.notesProperties); | 1319 checkNotesProperties(o.notesProperties); |
1320 unittest.expect(o.objectId, unittest.equals('foo')); | 1320 unittest.expect(o.objectId, unittest.equals('foo')); |
1321 checkUnnamed1596(o.pageElements); | 1321 checkUnnamed1688(o.pageElements); |
1322 checkPageProperties(o.pageProperties); | 1322 checkPageProperties(o.pageProperties); |
1323 unittest.expect(o.pageType, unittest.equals('foo')); | 1323 unittest.expect(o.pageType, unittest.equals('foo')); |
1324 unittest.expect(o.revisionId, unittest.equals('foo')); | 1324 unittest.expect(o.revisionId, unittest.equals('foo')); |
1325 checkSlideProperties(o.slideProperties); | 1325 checkSlideProperties(o.slideProperties); |
1326 } | 1326 } |
1327 buildCounterPage--; | 1327 buildCounterPage--; |
1328 } | 1328 } |
1329 | 1329 |
1330 core.int buildCounterPageBackgroundFill = 0; | 1330 core.int buildCounterPageBackgroundFill = 0; |
1331 buildPageBackgroundFill() { | 1331 buildPageBackgroundFill() { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 checkPlaceholder(api.Placeholder o) { | 1509 checkPlaceholder(api.Placeholder o) { |
1510 buildCounterPlaceholder++; | 1510 buildCounterPlaceholder++; |
1511 if (buildCounterPlaceholder < 3) { | 1511 if (buildCounterPlaceholder < 3) { |
1512 unittest.expect(o.index, unittest.equals(42)); | 1512 unittest.expect(o.index, unittest.equals(42)); |
1513 unittest.expect(o.parentObjectId, unittest.equals('foo')); | 1513 unittest.expect(o.parentObjectId, unittest.equals('foo')); |
1514 unittest.expect(o.type, unittest.equals('foo')); | 1514 unittest.expect(o.type, unittest.equals('foo')); |
1515 } | 1515 } |
1516 buildCounterPlaceholder--; | 1516 buildCounterPlaceholder--; |
1517 } | 1517 } |
1518 | 1518 |
1519 buildUnnamed1597() { | 1519 buildUnnamed1689() { |
1520 var o = new core.List<api.Page>(); | 1520 var o = new core.List<api.Page>(); |
1521 o.add(buildPage()); | 1521 o.add(buildPage()); |
1522 o.add(buildPage()); | 1522 o.add(buildPage()); |
1523 return o; | 1523 return o; |
1524 } | 1524 } |
1525 | 1525 |
1526 checkUnnamed1597(core.List<api.Page> o) { | 1526 checkUnnamed1689(core.List<api.Page> o) { |
1527 unittest.expect(o, unittest.hasLength(2)); | 1527 unittest.expect(o, unittest.hasLength(2)); |
1528 checkPage(o[0]); | 1528 checkPage(o[0]); |
1529 checkPage(o[1]); | 1529 checkPage(o[1]); |
1530 } | 1530 } |
1531 | 1531 |
1532 buildUnnamed1598() { | 1532 buildUnnamed1690() { |
1533 var o = new core.List<api.Page>(); | 1533 var o = new core.List<api.Page>(); |
1534 o.add(buildPage()); | 1534 o.add(buildPage()); |
1535 o.add(buildPage()); | 1535 o.add(buildPage()); |
1536 return o; | 1536 return o; |
1537 } | 1537 } |
1538 | 1538 |
1539 checkUnnamed1598(core.List<api.Page> o) { | 1539 checkUnnamed1690(core.List<api.Page> o) { |
1540 unittest.expect(o, unittest.hasLength(2)); | 1540 unittest.expect(o, unittest.hasLength(2)); |
1541 checkPage(o[0]); | 1541 checkPage(o[0]); |
1542 checkPage(o[1]); | 1542 checkPage(o[1]); |
1543 } | 1543 } |
1544 | 1544 |
1545 buildUnnamed1599() { | 1545 buildUnnamed1691() { |
1546 var o = new core.List<api.Page>(); | 1546 var o = new core.List<api.Page>(); |
1547 o.add(buildPage()); | 1547 o.add(buildPage()); |
1548 o.add(buildPage()); | 1548 o.add(buildPage()); |
1549 return o; | 1549 return o; |
1550 } | 1550 } |
1551 | 1551 |
1552 checkUnnamed1599(core.List<api.Page> o) { | 1552 checkUnnamed1691(core.List<api.Page> o) { |
1553 unittest.expect(o, unittest.hasLength(2)); | 1553 unittest.expect(o, unittest.hasLength(2)); |
1554 checkPage(o[0]); | 1554 checkPage(o[0]); |
1555 checkPage(o[1]); | 1555 checkPage(o[1]); |
1556 } | 1556 } |
1557 | 1557 |
1558 core.int buildCounterPresentation = 0; | 1558 core.int buildCounterPresentation = 0; |
1559 buildPresentation() { | 1559 buildPresentation() { |
1560 var o = new api.Presentation(); | 1560 var o = new api.Presentation(); |
1561 buildCounterPresentation++; | 1561 buildCounterPresentation++; |
1562 if (buildCounterPresentation < 3) { | 1562 if (buildCounterPresentation < 3) { |
1563 o.layouts = buildUnnamed1597(); | 1563 o.layouts = buildUnnamed1689(); |
1564 o.locale = "foo"; | 1564 o.locale = "foo"; |
1565 o.masters = buildUnnamed1598(); | 1565 o.masters = buildUnnamed1690(); |
1566 o.notesMaster = buildPage(); | 1566 o.notesMaster = buildPage(); |
1567 o.pageSize = buildSize(); | 1567 o.pageSize = buildSize(); |
1568 o.presentationId = "foo"; | 1568 o.presentationId = "foo"; |
1569 o.revisionId = "foo"; | 1569 o.revisionId = "foo"; |
1570 o.slides = buildUnnamed1599(); | 1570 o.slides = buildUnnamed1691(); |
1571 o.title = "foo"; | 1571 o.title = "foo"; |
1572 } | 1572 } |
1573 buildCounterPresentation--; | 1573 buildCounterPresentation--; |
1574 return o; | 1574 return o; |
1575 } | 1575 } |
1576 | 1576 |
1577 checkPresentation(api.Presentation o) { | 1577 checkPresentation(api.Presentation o) { |
1578 buildCounterPresentation++; | 1578 buildCounterPresentation++; |
1579 if (buildCounterPresentation < 3) { | 1579 if (buildCounterPresentation < 3) { |
1580 checkUnnamed1597(o.layouts); | 1580 checkUnnamed1689(o.layouts); |
1581 unittest.expect(o.locale, unittest.equals('foo')); | 1581 unittest.expect(o.locale, unittest.equals('foo')); |
1582 checkUnnamed1598(o.masters); | 1582 checkUnnamed1690(o.masters); |
1583 checkPage(o.notesMaster); | 1583 checkPage(o.notesMaster); |
1584 checkSize(o.pageSize); | 1584 checkSize(o.pageSize); |
1585 unittest.expect(o.presentationId, unittest.equals('foo')); | 1585 unittest.expect(o.presentationId, unittest.equals('foo')); |
1586 unittest.expect(o.revisionId, unittest.equals('foo')); | 1586 unittest.expect(o.revisionId, unittest.equals('foo')); |
1587 checkUnnamed1599(o.slides); | 1587 checkUnnamed1691(o.slides); |
1588 unittest.expect(o.title, unittest.equals('foo')); | 1588 unittest.expect(o.title, unittest.equals('foo')); |
1589 } | 1589 } |
1590 buildCounterPresentation--; | 1590 buildCounterPresentation--; |
1591 } | 1591 } |
1592 | 1592 |
1593 core.int buildCounterRange = 0; | 1593 core.int buildCounterRange = 0; |
1594 buildRange() { | 1594 buildRange() { |
1595 var o = new api.Range(); | 1595 var o = new api.Range(); |
1596 buildCounterRange++; | 1596 buildCounterRange++; |
1597 if (buildCounterRange < 3) { | 1597 if (buildCounterRange < 3) { |
1598 o.endIndex = 42; | 1598 o.endIndex = 42; |
1599 o.startIndex = 42; | 1599 o.startIndex = 42; |
1600 o.type = "foo"; | 1600 o.type = "foo"; |
1601 } | 1601 } |
1602 buildCounterRange--; | 1602 buildCounterRange--; |
1603 return o; | 1603 return o; |
1604 } | 1604 } |
1605 | 1605 |
1606 checkRange(api.Range o) { | 1606 checkRange(api.Range o) { |
1607 buildCounterRange++; | 1607 buildCounterRange++; |
1608 if (buildCounterRange < 3) { | 1608 if (buildCounterRange < 3) { |
1609 unittest.expect(o.endIndex, unittest.equals(42)); | 1609 unittest.expect(o.endIndex, unittest.equals(42)); |
1610 unittest.expect(o.startIndex, unittest.equals(42)); | 1610 unittest.expect(o.startIndex, unittest.equals(42)); |
1611 unittest.expect(o.type, unittest.equals('foo')); | 1611 unittest.expect(o.type, unittest.equals('foo')); |
1612 } | 1612 } |
1613 buildCounterRange--; | 1613 buildCounterRange--; |
1614 } | 1614 } |
1615 | 1615 |
1616 buildUnnamed1600() { | 1616 buildUnnamed1692() { |
1617 var o = new core.List<api.ColorStop>(); | 1617 var o = new core.List<api.ColorStop>(); |
1618 o.add(buildColorStop()); | 1618 o.add(buildColorStop()); |
1619 o.add(buildColorStop()); | 1619 o.add(buildColorStop()); |
1620 return o; | 1620 return o; |
1621 } | 1621 } |
1622 | 1622 |
1623 checkUnnamed1600(core.List<api.ColorStop> o) { | 1623 checkUnnamed1692(core.List<api.ColorStop> o) { |
1624 unittest.expect(o, unittest.hasLength(2)); | 1624 unittest.expect(o, unittest.hasLength(2)); |
1625 checkColorStop(o[0]); | 1625 checkColorStop(o[0]); |
1626 checkColorStop(o[1]); | 1626 checkColorStop(o[1]); |
1627 } | 1627 } |
1628 | 1628 |
1629 core.int buildCounterRecolor = 0; | 1629 core.int buildCounterRecolor = 0; |
1630 buildRecolor() { | 1630 buildRecolor() { |
1631 var o = new api.Recolor(); | 1631 var o = new api.Recolor(); |
1632 buildCounterRecolor++; | 1632 buildCounterRecolor++; |
1633 if (buildCounterRecolor < 3) { | 1633 if (buildCounterRecolor < 3) { |
1634 o.name = "foo"; | 1634 o.name = "foo"; |
1635 o.recolorStops = buildUnnamed1600(); | 1635 o.recolorStops = buildUnnamed1692(); |
1636 } | 1636 } |
1637 buildCounterRecolor--; | 1637 buildCounterRecolor--; |
1638 return o; | 1638 return o; |
1639 } | 1639 } |
1640 | 1640 |
1641 checkRecolor(api.Recolor o) { | 1641 checkRecolor(api.Recolor o) { |
1642 buildCounterRecolor++; | 1642 buildCounterRecolor++; |
1643 if (buildCounterRecolor < 3) { | 1643 if (buildCounterRecolor < 3) { |
1644 unittest.expect(o.name, unittest.equals('foo')); | 1644 unittest.expect(o.name, unittest.equals('foo')); |
1645 checkUnnamed1600(o.recolorStops); | 1645 checkUnnamed1692(o.recolorStops); |
1646 } | 1646 } |
1647 buildCounterRecolor--; | 1647 buildCounterRecolor--; |
1648 } | 1648 } |
1649 | 1649 |
1650 core.int buildCounterRefreshSheetsChartRequest = 0; | 1650 core.int buildCounterRefreshSheetsChartRequest = 0; |
1651 buildRefreshSheetsChartRequest() { | 1651 buildRefreshSheetsChartRequest() { |
1652 var o = new api.RefreshSheetsChartRequest(); | 1652 var o = new api.RefreshSheetsChartRequest(); |
1653 buildCounterRefreshSheetsChartRequest++; | 1653 buildCounterRefreshSheetsChartRequest++; |
1654 if (buildCounterRefreshSheetsChartRequest < 3) { | 1654 if (buildCounterRefreshSheetsChartRequest < 3) { |
1655 o.objectId = "foo"; | 1655 o.objectId = "foo"; |
1656 } | 1656 } |
1657 buildCounterRefreshSheetsChartRequest--; | 1657 buildCounterRefreshSheetsChartRequest--; |
1658 return o; | 1658 return o; |
1659 } | 1659 } |
1660 | 1660 |
1661 checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { | 1661 checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { |
1662 buildCounterRefreshSheetsChartRequest++; | 1662 buildCounterRefreshSheetsChartRequest++; |
1663 if (buildCounterRefreshSheetsChartRequest < 3) { | 1663 if (buildCounterRefreshSheetsChartRequest < 3) { |
1664 unittest.expect(o.objectId, unittest.equals('foo')); | 1664 unittest.expect(o.objectId, unittest.equals('foo')); |
1665 } | 1665 } |
1666 buildCounterRefreshSheetsChartRequest--; | 1666 buildCounterRefreshSheetsChartRequest--; |
1667 } | 1667 } |
1668 | 1668 |
1669 buildUnnamed1601() { | 1669 buildUnnamed1693() { |
1670 var o = new core.List<core.String>(); | 1670 var o = new core.List<core.String>(); |
1671 o.add("foo"); | 1671 o.add("foo"); |
1672 o.add("foo"); | 1672 o.add("foo"); |
1673 return o; | 1673 return o; |
1674 } | 1674 } |
1675 | 1675 |
1676 checkUnnamed1601(core.List<core.String> o) { | 1676 checkUnnamed1693(core.List<core.String> o) { |
1677 unittest.expect(o, unittest.hasLength(2)); | 1677 unittest.expect(o, unittest.hasLength(2)); |
1678 unittest.expect(o[0], unittest.equals('foo')); | 1678 unittest.expect(o[0], unittest.equals('foo')); |
1679 unittest.expect(o[1], unittest.equals('foo')); | 1679 unittest.expect(o[1], unittest.equals('foo')); |
1680 } | 1680 } |
1681 | 1681 |
1682 core.int buildCounterReplaceAllShapesWithImageRequest = 0; | 1682 core.int buildCounterReplaceAllShapesWithImageRequest = 0; |
1683 buildReplaceAllShapesWithImageRequest() { | 1683 buildReplaceAllShapesWithImageRequest() { |
1684 var o = new api.ReplaceAllShapesWithImageRequest(); | 1684 var o = new api.ReplaceAllShapesWithImageRequest(); |
1685 buildCounterReplaceAllShapesWithImageRequest++; | 1685 buildCounterReplaceAllShapesWithImageRequest++; |
1686 if (buildCounterReplaceAllShapesWithImageRequest < 3) { | 1686 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
1687 o.containsText = buildSubstringMatchCriteria(); | 1687 o.containsText = buildSubstringMatchCriteria(); |
1688 o.imageUrl = "foo"; | 1688 o.imageUrl = "foo"; |
1689 o.pageObjectIds = buildUnnamed1601(); | 1689 o.pageObjectIds = buildUnnamed1693(); |
1690 o.replaceMethod = "foo"; | 1690 o.replaceMethod = "foo"; |
1691 } | 1691 } |
1692 buildCounterReplaceAllShapesWithImageRequest--; | 1692 buildCounterReplaceAllShapesWithImageRequest--; |
1693 return o; | 1693 return o; |
1694 } | 1694 } |
1695 | 1695 |
1696 checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { | 1696 checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { |
1697 buildCounterReplaceAllShapesWithImageRequest++; | 1697 buildCounterReplaceAllShapesWithImageRequest++; |
1698 if (buildCounterReplaceAllShapesWithImageRequest < 3) { | 1698 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
1699 checkSubstringMatchCriteria(o.containsText); | 1699 checkSubstringMatchCriteria(o.containsText); |
1700 unittest.expect(o.imageUrl, unittest.equals('foo')); | 1700 unittest.expect(o.imageUrl, unittest.equals('foo')); |
1701 checkUnnamed1601(o.pageObjectIds); | 1701 checkUnnamed1693(o.pageObjectIds); |
1702 unittest.expect(o.replaceMethod, unittest.equals('foo')); | 1702 unittest.expect(o.replaceMethod, unittest.equals('foo')); |
1703 } | 1703 } |
1704 buildCounterReplaceAllShapesWithImageRequest--; | 1704 buildCounterReplaceAllShapesWithImageRequest--; |
1705 } | 1705 } |
1706 | 1706 |
1707 core.int buildCounterReplaceAllShapesWithImageResponse = 0; | 1707 core.int buildCounterReplaceAllShapesWithImageResponse = 0; |
1708 buildReplaceAllShapesWithImageResponse() { | 1708 buildReplaceAllShapesWithImageResponse() { |
1709 var o = new api.ReplaceAllShapesWithImageResponse(); | 1709 var o = new api.ReplaceAllShapesWithImageResponse(); |
1710 buildCounterReplaceAllShapesWithImageResponse++; | 1710 buildCounterReplaceAllShapesWithImageResponse++; |
1711 if (buildCounterReplaceAllShapesWithImageResponse < 3) { | 1711 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
1712 o.occurrencesChanged = 42; | 1712 o.occurrencesChanged = 42; |
1713 } | 1713 } |
1714 buildCounterReplaceAllShapesWithImageResponse--; | 1714 buildCounterReplaceAllShapesWithImageResponse--; |
1715 return o; | 1715 return o; |
1716 } | 1716 } |
1717 | 1717 |
1718 checkReplaceAllShapesWithImageResponse(api.ReplaceAllShapesWithImageResponse o)
{ | 1718 checkReplaceAllShapesWithImageResponse(api.ReplaceAllShapesWithImageResponse o)
{ |
1719 buildCounterReplaceAllShapesWithImageResponse++; | 1719 buildCounterReplaceAllShapesWithImageResponse++; |
1720 if (buildCounterReplaceAllShapesWithImageResponse < 3) { | 1720 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
1721 unittest.expect(o.occurrencesChanged, unittest.equals(42)); | 1721 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
1722 } | 1722 } |
1723 buildCounterReplaceAllShapesWithImageResponse--; | 1723 buildCounterReplaceAllShapesWithImageResponse--; |
1724 } | 1724 } |
1725 | 1725 |
1726 buildUnnamed1602() { | 1726 buildUnnamed1694() { |
1727 var o = new core.List<core.String>(); | 1727 var o = new core.List<core.String>(); |
1728 o.add("foo"); | 1728 o.add("foo"); |
1729 o.add("foo"); | 1729 o.add("foo"); |
1730 return o; | 1730 return o; |
1731 } | 1731 } |
1732 | 1732 |
1733 checkUnnamed1602(core.List<core.String> o) { | 1733 checkUnnamed1694(core.List<core.String> o) { |
1734 unittest.expect(o, unittest.hasLength(2)); | 1734 unittest.expect(o, unittest.hasLength(2)); |
1735 unittest.expect(o[0], unittest.equals('foo')); | 1735 unittest.expect(o[0], unittest.equals('foo')); |
1736 unittest.expect(o[1], unittest.equals('foo')); | 1736 unittest.expect(o[1], unittest.equals('foo')); |
1737 } | 1737 } |
1738 | 1738 |
1739 core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; | 1739 core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; |
1740 buildReplaceAllShapesWithSheetsChartRequest() { | 1740 buildReplaceAllShapesWithSheetsChartRequest() { |
1741 var o = new api.ReplaceAllShapesWithSheetsChartRequest(); | 1741 var o = new api.ReplaceAllShapesWithSheetsChartRequest(); |
1742 buildCounterReplaceAllShapesWithSheetsChartRequest++; | 1742 buildCounterReplaceAllShapesWithSheetsChartRequest++; |
1743 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { | 1743 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
1744 o.chartId = 42; | 1744 o.chartId = 42; |
1745 o.containsText = buildSubstringMatchCriteria(); | 1745 o.containsText = buildSubstringMatchCriteria(); |
1746 o.linkingMode = "foo"; | 1746 o.linkingMode = "foo"; |
1747 o.pageObjectIds = buildUnnamed1602(); | 1747 o.pageObjectIds = buildUnnamed1694(); |
1748 o.spreadsheetId = "foo"; | 1748 o.spreadsheetId = "foo"; |
1749 } | 1749 } |
1750 buildCounterReplaceAllShapesWithSheetsChartRequest--; | 1750 buildCounterReplaceAllShapesWithSheetsChartRequest--; |
1751 return o; | 1751 return o; |
1752 } | 1752 } |
1753 | 1753 |
1754 checkReplaceAllShapesWithSheetsChartRequest(api.ReplaceAllShapesWithSheetsChartR
equest o) { | 1754 checkReplaceAllShapesWithSheetsChartRequest(api.ReplaceAllShapesWithSheetsChartR
equest o) { |
1755 buildCounterReplaceAllShapesWithSheetsChartRequest++; | 1755 buildCounterReplaceAllShapesWithSheetsChartRequest++; |
1756 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { | 1756 if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
1757 unittest.expect(o.chartId, unittest.equals(42)); | 1757 unittest.expect(o.chartId, unittest.equals(42)); |
1758 checkSubstringMatchCriteria(o.containsText); | 1758 checkSubstringMatchCriteria(o.containsText); |
1759 unittest.expect(o.linkingMode, unittest.equals('foo')); | 1759 unittest.expect(o.linkingMode, unittest.equals('foo')); |
1760 checkUnnamed1602(o.pageObjectIds); | 1760 checkUnnamed1694(o.pageObjectIds); |
1761 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 1761 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
1762 } | 1762 } |
1763 buildCounterReplaceAllShapesWithSheetsChartRequest--; | 1763 buildCounterReplaceAllShapesWithSheetsChartRequest--; |
1764 } | 1764 } |
1765 | 1765 |
1766 core.int buildCounterReplaceAllShapesWithSheetsChartResponse = 0; | 1766 core.int buildCounterReplaceAllShapesWithSheetsChartResponse = 0; |
1767 buildReplaceAllShapesWithSheetsChartResponse() { | 1767 buildReplaceAllShapesWithSheetsChartResponse() { |
1768 var o = new api.ReplaceAllShapesWithSheetsChartResponse(); | 1768 var o = new api.ReplaceAllShapesWithSheetsChartResponse(); |
1769 buildCounterReplaceAllShapesWithSheetsChartResponse++; | 1769 buildCounterReplaceAllShapesWithSheetsChartResponse++; |
1770 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { | 1770 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
1771 o.occurrencesChanged = 42; | 1771 o.occurrencesChanged = 42; |
1772 } | 1772 } |
1773 buildCounterReplaceAllShapesWithSheetsChartResponse--; | 1773 buildCounterReplaceAllShapesWithSheetsChartResponse--; |
1774 return o; | 1774 return o; |
1775 } | 1775 } |
1776 | 1776 |
1777 checkReplaceAllShapesWithSheetsChartResponse(api.ReplaceAllShapesWithSheetsChart
Response o) { | 1777 checkReplaceAllShapesWithSheetsChartResponse(api.ReplaceAllShapesWithSheetsChart
Response o) { |
1778 buildCounterReplaceAllShapesWithSheetsChartResponse++; | 1778 buildCounterReplaceAllShapesWithSheetsChartResponse++; |
1779 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { | 1779 if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
1780 unittest.expect(o.occurrencesChanged, unittest.equals(42)); | 1780 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
1781 } | 1781 } |
1782 buildCounterReplaceAllShapesWithSheetsChartResponse--; | 1782 buildCounterReplaceAllShapesWithSheetsChartResponse--; |
1783 } | 1783 } |
1784 | 1784 |
1785 buildUnnamed1603() { | 1785 buildUnnamed1695() { |
1786 var o = new core.List<core.String>(); | 1786 var o = new core.List<core.String>(); |
1787 o.add("foo"); | 1787 o.add("foo"); |
1788 o.add("foo"); | 1788 o.add("foo"); |
1789 return o; | 1789 return o; |
1790 } | 1790 } |
1791 | 1791 |
1792 checkUnnamed1603(core.List<core.String> o) { | 1792 checkUnnamed1695(core.List<core.String> o) { |
1793 unittest.expect(o, unittest.hasLength(2)); | 1793 unittest.expect(o, unittest.hasLength(2)); |
1794 unittest.expect(o[0], unittest.equals('foo')); | 1794 unittest.expect(o[0], unittest.equals('foo')); |
1795 unittest.expect(o[1], unittest.equals('foo')); | 1795 unittest.expect(o[1], unittest.equals('foo')); |
1796 } | 1796 } |
1797 | 1797 |
1798 core.int buildCounterReplaceAllTextRequest = 0; | 1798 core.int buildCounterReplaceAllTextRequest = 0; |
1799 buildReplaceAllTextRequest() { | 1799 buildReplaceAllTextRequest() { |
1800 var o = new api.ReplaceAllTextRequest(); | 1800 var o = new api.ReplaceAllTextRequest(); |
1801 buildCounterReplaceAllTextRequest++; | 1801 buildCounterReplaceAllTextRequest++; |
1802 if (buildCounterReplaceAllTextRequest < 3) { | 1802 if (buildCounterReplaceAllTextRequest < 3) { |
1803 o.containsText = buildSubstringMatchCriteria(); | 1803 o.containsText = buildSubstringMatchCriteria(); |
1804 o.pageObjectIds = buildUnnamed1603(); | 1804 o.pageObjectIds = buildUnnamed1695(); |
1805 o.replaceText = "foo"; | 1805 o.replaceText = "foo"; |
1806 } | 1806 } |
1807 buildCounterReplaceAllTextRequest--; | 1807 buildCounterReplaceAllTextRequest--; |
1808 return o; | 1808 return o; |
1809 } | 1809 } |
1810 | 1810 |
1811 checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { | 1811 checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { |
1812 buildCounterReplaceAllTextRequest++; | 1812 buildCounterReplaceAllTextRequest++; |
1813 if (buildCounterReplaceAllTextRequest < 3) { | 1813 if (buildCounterReplaceAllTextRequest < 3) { |
1814 checkSubstringMatchCriteria(o.containsText); | 1814 checkSubstringMatchCriteria(o.containsText); |
1815 checkUnnamed1603(o.pageObjectIds); | 1815 checkUnnamed1695(o.pageObjectIds); |
1816 unittest.expect(o.replaceText, unittest.equals('foo')); | 1816 unittest.expect(o.replaceText, unittest.equals('foo')); |
1817 } | 1817 } |
1818 buildCounterReplaceAllTextRequest--; | 1818 buildCounterReplaceAllTextRequest--; |
1819 } | 1819 } |
1820 | 1820 |
1821 core.int buildCounterReplaceAllTextResponse = 0; | 1821 core.int buildCounterReplaceAllTextResponse = 0; |
1822 buildReplaceAllTextResponse() { | 1822 buildReplaceAllTextResponse() { |
1823 var o = new api.ReplaceAllTextResponse(); | 1823 var o = new api.ReplaceAllTextResponse(); |
1824 buildCounterReplaceAllTextResponse++; | 1824 buildCounterReplaceAllTextResponse++; |
1825 if (buildCounterReplaceAllTextResponse < 3) { | 1825 if (buildCounterReplaceAllTextResponse < 3) { |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2226 | 2226 |
2227 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { | 2227 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { |
2228 buildCounterSubstringMatchCriteria++; | 2228 buildCounterSubstringMatchCriteria++; |
2229 if (buildCounterSubstringMatchCriteria < 3) { | 2229 if (buildCounterSubstringMatchCriteria < 3) { |
2230 unittest.expect(o.matchCase, unittest.isTrue); | 2230 unittest.expect(o.matchCase, unittest.isTrue); |
2231 unittest.expect(o.text, unittest.equals('foo')); | 2231 unittest.expect(o.text, unittest.equals('foo')); |
2232 } | 2232 } |
2233 buildCounterSubstringMatchCriteria--; | 2233 buildCounterSubstringMatchCriteria--; |
2234 } | 2234 } |
2235 | 2235 |
2236 buildUnnamed1604() { | 2236 buildUnnamed1696() { |
2237 var o = new core.List<api.TableColumnProperties>(); | 2237 var o = new core.List<api.TableColumnProperties>(); |
2238 o.add(buildTableColumnProperties()); | 2238 o.add(buildTableColumnProperties()); |
2239 o.add(buildTableColumnProperties()); | 2239 o.add(buildTableColumnProperties()); |
2240 return o; | 2240 return o; |
2241 } | 2241 } |
2242 | 2242 |
2243 checkUnnamed1604(core.List<api.TableColumnProperties> o) { | 2243 checkUnnamed1696(core.List<api.TableColumnProperties> o) { |
2244 unittest.expect(o, unittest.hasLength(2)); | 2244 unittest.expect(o, unittest.hasLength(2)); |
2245 checkTableColumnProperties(o[0]); | 2245 checkTableColumnProperties(o[0]); |
2246 checkTableColumnProperties(o[1]); | 2246 checkTableColumnProperties(o[1]); |
2247 } | 2247 } |
2248 | 2248 |
2249 buildUnnamed1605() { | 2249 buildUnnamed1697() { |
2250 var o = new core.List<api.TableRow>(); | 2250 var o = new core.List<api.TableRow>(); |
2251 o.add(buildTableRow()); | 2251 o.add(buildTableRow()); |
2252 o.add(buildTableRow()); | 2252 o.add(buildTableRow()); |
2253 return o; | 2253 return o; |
2254 } | 2254 } |
2255 | 2255 |
2256 checkUnnamed1605(core.List<api.TableRow> o) { | 2256 checkUnnamed1697(core.List<api.TableRow> o) { |
2257 unittest.expect(o, unittest.hasLength(2)); | 2257 unittest.expect(o, unittest.hasLength(2)); |
2258 checkTableRow(o[0]); | 2258 checkTableRow(o[0]); |
2259 checkTableRow(o[1]); | 2259 checkTableRow(o[1]); |
2260 } | 2260 } |
2261 | 2261 |
2262 core.int buildCounterTable = 0; | 2262 core.int buildCounterTable = 0; |
2263 buildTable() { | 2263 buildTable() { |
2264 var o = new api.Table(); | 2264 var o = new api.Table(); |
2265 buildCounterTable++; | 2265 buildCounterTable++; |
2266 if (buildCounterTable < 3) { | 2266 if (buildCounterTable < 3) { |
2267 o.columns = 42; | 2267 o.columns = 42; |
2268 o.rows = 42; | 2268 o.rows = 42; |
2269 o.tableColumns = buildUnnamed1604(); | 2269 o.tableColumns = buildUnnamed1696(); |
2270 o.tableRows = buildUnnamed1605(); | 2270 o.tableRows = buildUnnamed1697(); |
2271 } | 2271 } |
2272 buildCounterTable--; | 2272 buildCounterTable--; |
2273 return o; | 2273 return o; |
2274 } | 2274 } |
2275 | 2275 |
2276 checkTable(api.Table o) { | 2276 checkTable(api.Table o) { |
2277 buildCounterTable++; | 2277 buildCounterTable++; |
2278 if (buildCounterTable < 3) { | 2278 if (buildCounterTable < 3) { |
2279 unittest.expect(o.columns, unittest.equals(42)); | 2279 unittest.expect(o.columns, unittest.equals(42)); |
2280 unittest.expect(o.rows, unittest.equals(42)); | 2280 unittest.expect(o.rows, unittest.equals(42)); |
2281 checkUnnamed1604(o.tableColumns); | 2281 checkUnnamed1696(o.tableColumns); |
2282 checkUnnamed1605(o.tableRows); | 2282 checkUnnamed1697(o.tableRows); |
2283 } | 2283 } |
2284 buildCounterTable--; | 2284 buildCounterTable--; |
2285 } | 2285 } |
2286 | 2286 |
2287 core.int buildCounterTableCell = 0; | 2287 core.int buildCounterTableCell = 0; |
2288 buildTableCell() { | 2288 buildTableCell() { |
2289 var o = new api.TableCell(); | 2289 var o = new api.TableCell(); |
2290 buildCounterTableCell++; | 2290 buildCounterTableCell++; |
2291 if (buildCounterTableCell < 3) { | 2291 if (buildCounterTableCell < 3) { |
2292 o.columnSpan = 42; | 2292 o.columnSpan = 42; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 checkTableRange(api.TableRange o) { | 2407 checkTableRange(api.TableRange o) { |
2408 buildCounterTableRange++; | 2408 buildCounterTableRange++; |
2409 if (buildCounterTableRange < 3) { | 2409 if (buildCounterTableRange < 3) { |
2410 unittest.expect(o.columnSpan, unittest.equals(42)); | 2410 unittest.expect(o.columnSpan, unittest.equals(42)); |
2411 checkTableCellLocation(o.location); | 2411 checkTableCellLocation(o.location); |
2412 unittest.expect(o.rowSpan, unittest.equals(42)); | 2412 unittest.expect(o.rowSpan, unittest.equals(42)); |
2413 } | 2413 } |
2414 buildCounterTableRange--; | 2414 buildCounterTableRange--; |
2415 } | 2415 } |
2416 | 2416 |
2417 buildUnnamed1606() { | 2417 buildUnnamed1698() { |
2418 var o = new core.List<api.TableCell>(); | 2418 var o = new core.List<api.TableCell>(); |
2419 o.add(buildTableCell()); | 2419 o.add(buildTableCell()); |
2420 o.add(buildTableCell()); | 2420 o.add(buildTableCell()); |
2421 return o; | 2421 return o; |
2422 } | 2422 } |
2423 | 2423 |
2424 checkUnnamed1606(core.List<api.TableCell> o) { | 2424 checkUnnamed1698(core.List<api.TableCell> o) { |
2425 unittest.expect(o, unittest.hasLength(2)); | 2425 unittest.expect(o, unittest.hasLength(2)); |
2426 checkTableCell(o[0]); | 2426 checkTableCell(o[0]); |
2427 checkTableCell(o[1]); | 2427 checkTableCell(o[1]); |
2428 } | 2428 } |
2429 | 2429 |
2430 core.int buildCounterTableRow = 0; | 2430 core.int buildCounterTableRow = 0; |
2431 buildTableRow() { | 2431 buildTableRow() { |
2432 var o = new api.TableRow(); | 2432 var o = new api.TableRow(); |
2433 buildCounterTableRow++; | 2433 buildCounterTableRow++; |
2434 if (buildCounterTableRow < 3) { | 2434 if (buildCounterTableRow < 3) { |
2435 o.rowHeight = buildDimension(); | 2435 o.rowHeight = buildDimension(); |
2436 o.tableCells = buildUnnamed1606(); | 2436 o.tableCells = buildUnnamed1698(); |
2437 } | 2437 } |
2438 buildCounterTableRow--; | 2438 buildCounterTableRow--; |
2439 return o; | 2439 return o; |
2440 } | 2440 } |
2441 | 2441 |
2442 checkTableRow(api.TableRow o) { | 2442 checkTableRow(api.TableRow o) { |
2443 buildCounterTableRow++; | 2443 buildCounterTableRow++; |
2444 if (buildCounterTableRow < 3) { | 2444 if (buildCounterTableRow < 3) { |
2445 checkDimension(o.rowHeight); | 2445 checkDimension(o.rowHeight); |
2446 checkUnnamed1606(o.tableCells); | 2446 checkUnnamed1698(o.tableCells); |
2447 } | 2447 } |
2448 buildCounterTableRow--; | 2448 buildCounterTableRow--; |
2449 } | 2449 } |
2450 | 2450 |
2451 buildUnnamed1607() { | 2451 buildUnnamed1699() { |
2452 var o = new core.Map<core.String, api.List>(); | 2452 var o = new core.Map<core.String, api.List>(); |
2453 o["x"] = buildList(); | 2453 o["x"] = buildList(); |
2454 o["y"] = buildList(); | 2454 o["y"] = buildList(); |
2455 return o; | 2455 return o; |
2456 } | 2456 } |
2457 | 2457 |
2458 checkUnnamed1607(core.Map<core.String, api.List> o) { | 2458 checkUnnamed1699(core.Map<core.String, api.List> o) { |
2459 unittest.expect(o, unittest.hasLength(2)); | 2459 unittest.expect(o, unittest.hasLength(2)); |
2460 checkList(o["x"]); | 2460 checkList(o["x"]); |
2461 checkList(o["y"]); | 2461 checkList(o["y"]); |
2462 } | 2462 } |
2463 | 2463 |
2464 buildUnnamed1608() { | 2464 buildUnnamed1700() { |
2465 var o = new core.List<api.TextElement>(); | 2465 var o = new core.List<api.TextElement>(); |
2466 o.add(buildTextElement()); | 2466 o.add(buildTextElement()); |
2467 o.add(buildTextElement()); | 2467 o.add(buildTextElement()); |
2468 return o; | 2468 return o; |
2469 } | 2469 } |
2470 | 2470 |
2471 checkUnnamed1608(core.List<api.TextElement> o) { | 2471 checkUnnamed1700(core.List<api.TextElement> o) { |
2472 unittest.expect(o, unittest.hasLength(2)); | 2472 unittest.expect(o, unittest.hasLength(2)); |
2473 checkTextElement(o[0]); | 2473 checkTextElement(o[0]); |
2474 checkTextElement(o[1]); | 2474 checkTextElement(o[1]); |
2475 } | 2475 } |
2476 | 2476 |
2477 core.int buildCounterTextContent = 0; | 2477 core.int buildCounterTextContent = 0; |
2478 buildTextContent() { | 2478 buildTextContent() { |
2479 var o = new api.TextContent(); | 2479 var o = new api.TextContent(); |
2480 buildCounterTextContent++; | 2480 buildCounterTextContent++; |
2481 if (buildCounterTextContent < 3) { | 2481 if (buildCounterTextContent < 3) { |
2482 o.lists = buildUnnamed1607(); | 2482 o.lists = buildUnnamed1699(); |
2483 o.textElements = buildUnnamed1608(); | 2483 o.textElements = buildUnnamed1700(); |
2484 } | 2484 } |
2485 buildCounterTextContent--; | 2485 buildCounterTextContent--; |
2486 return o; | 2486 return o; |
2487 } | 2487 } |
2488 | 2488 |
2489 checkTextContent(api.TextContent o) { | 2489 checkTextContent(api.TextContent o) { |
2490 buildCounterTextContent++; | 2490 buildCounterTextContent++; |
2491 if (buildCounterTextContent < 3) { | 2491 if (buildCounterTextContent < 3) { |
2492 checkUnnamed1607(o.lists); | 2492 checkUnnamed1699(o.lists); |
2493 checkUnnamed1608(o.textElements); | 2493 checkUnnamed1700(o.textElements); |
2494 } | 2494 } |
2495 buildCounterTextContent--; | 2495 buildCounterTextContent--; |
2496 } | 2496 } |
2497 | 2497 |
2498 core.int buildCounterTextElement = 0; | 2498 core.int buildCounterTextElement = 0; |
2499 buildTextElement() { | 2499 buildTextElement() { |
2500 var o = new api.TextElement(); | 2500 var o = new api.TextElement(); |
2501 buildCounterTextElement++; | 2501 buildCounterTextElement++; |
2502 if (buildCounterTextElement < 3) { | 2502 if (buildCounterTextElement < 3) { |
2503 o.autoText = buildAutoText(); | 2503 o.autoText = buildAutoText(); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2763 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { | 2763 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { |
2764 buildCounterUpdateShapePropertiesRequest++; | 2764 buildCounterUpdateShapePropertiesRequest++; |
2765 if (buildCounterUpdateShapePropertiesRequest < 3) { | 2765 if (buildCounterUpdateShapePropertiesRequest < 3) { |
2766 unittest.expect(o.fields, unittest.equals('foo')); | 2766 unittest.expect(o.fields, unittest.equals('foo')); |
2767 unittest.expect(o.objectId, unittest.equals('foo')); | 2767 unittest.expect(o.objectId, unittest.equals('foo')); |
2768 checkShapeProperties(o.shapeProperties); | 2768 checkShapeProperties(o.shapeProperties); |
2769 } | 2769 } |
2770 buildCounterUpdateShapePropertiesRequest--; | 2770 buildCounterUpdateShapePropertiesRequest--; |
2771 } | 2771 } |
2772 | 2772 |
2773 buildUnnamed1609() { | 2773 buildUnnamed1701() { |
2774 var o = new core.List<core.String>(); | 2774 var o = new core.List<core.String>(); |
2775 o.add("foo"); | 2775 o.add("foo"); |
2776 o.add("foo"); | 2776 o.add("foo"); |
2777 return o; | 2777 return o; |
2778 } | 2778 } |
2779 | 2779 |
2780 checkUnnamed1609(core.List<core.String> o) { | 2780 checkUnnamed1701(core.List<core.String> o) { |
2781 unittest.expect(o, unittest.hasLength(2)); | 2781 unittest.expect(o, unittest.hasLength(2)); |
2782 unittest.expect(o[0], unittest.equals('foo')); | 2782 unittest.expect(o[0], unittest.equals('foo')); |
2783 unittest.expect(o[1], unittest.equals('foo')); | 2783 unittest.expect(o[1], unittest.equals('foo')); |
2784 } | 2784 } |
2785 | 2785 |
2786 core.int buildCounterUpdateSlidesPositionRequest = 0; | 2786 core.int buildCounterUpdateSlidesPositionRequest = 0; |
2787 buildUpdateSlidesPositionRequest() { | 2787 buildUpdateSlidesPositionRequest() { |
2788 var o = new api.UpdateSlidesPositionRequest(); | 2788 var o = new api.UpdateSlidesPositionRequest(); |
2789 buildCounterUpdateSlidesPositionRequest++; | 2789 buildCounterUpdateSlidesPositionRequest++; |
2790 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2790 if (buildCounterUpdateSlidesPositionRequest < 3) { |
2791 o.insertionIndex = 42; | 2791 o.insertionIndex = 42; |
2792 o.slideObjectIds = buildUnnamed1609(); | 2792 o.slideObjectIds = buildUnnamed1701(); |
2793 } | 2793 } |
2794 buildCounterUpdateSlidesPositionRequest--; | 2794 buildCounterUpdateSlidesPositionRequest--; |
2795 return o; | 2795 return o; |
2796 } | 2796 } |
2797 | 2797 |
2798 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { | 2798 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { |
2799 buildCounterUpdateSlidesPositionRequest++; | 2799 buildCounterUpdateSlidesPositionRequest++; |
2800 if (buildCounterUpdateSlidesPositionRequest < 3) { | 2800 if (buildCounterUpdateSlidesPositionRequest < 3) { |
2801 unittest.expect(o.insertionIndex, unittest.equals(42)); | 2801 unittest.expect(o.insertionIndex, unittest.equals(42)); |
2802 checkUnnamed1609(o.slideObjectIds); | 2802 checkUnnamed1701(o.slideObjectIds); |
2803 } | 2803 } |
2804 buildCounterUpdateSlidesPositionRequest--; | 2804 buildCounterUpdateSlidesPositionRequest--; |
2805 } | 2805 } |
2806 | 2806 |
2807 core.int buildCounterUpdateTableCellPropertiesRequest = 0; | 2807 core.int buildCounterUpdateTableCellPropertiesRequest = 0; |
2808 buildUpdateTableCellPropertiesRequest() { | 2808 buildUpdateTableCellPropertiesRequest() { |
2809 var o = new api.UpdateTableCellPropertiesRequest(); | 2809 var o = new api.UpdateTableCellPropertiesRequest(); |
2810 buildCounterUpdateTableCellPropertiesRequest++; | 2810 buildCounterUpdateTableCellPropertiesRequest++; |
2811 if (buildCounterUpdateTableCellPropertiesRequest < 3) { | 2811 if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
2812 o.fields = "foo"; | 2812 o.fields = "foo"; |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4198 checkPage(response); | 4198 checkPage(response); |
4199 }))); | 4199 }))); |
4200 }); | 4200 }); |
4201 | 4201 |
4202 unittest.test("method--getThumbnail", () { | 4202 unittest.test("method--getThumbnail", () { |
4203 | 4203 |
4204 var mock = new HttpServerMock(); | 4204 var mock = new HttpServerMock(); |
4205 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; | 4205 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; |
4206 var arg_presentationId = "foo"; | 4206 var arg_presentationId = "foo"; |
4207 var arg_pageObjectId = "foo"; | 4207 var arg_pageObjectId = "foo"; |
| 4208 var arg_thumbnailProperties_thumbnailSize = "foo"; |
4208 var arg_thumbnailProperties_mimeType = "foo"; | 4209 var arg_thumbnailProperties_mimeType = "foo"; |
4209 var arg_thumbnailProperties_thumbnailSize = "foo"; | |
4210 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4210 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4211 var path = (req.url).path; | 4211 var path = (req.url).path; |
4212 var pathOffset = 0; | 4212 var pathOffset = 0; |
4213 var index; | 4213 var index; |
4214 var subPart; | 4214 var subPart; |
4215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4216 pathOffset += 1; | 4216 pathOffset += 1; |
4217 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); | 4217 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); |
4218 pathOffset += 17; | 4218 pathOffset += 17; |
4219 index = path.indexOf("/pages/", pathOffset); | 4219 index = path.indexOf("/pages/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
4240 if (n == "false") return false; | 4240 if (n == "false") return false; |
4241 if (n == null) return null; | 4241 if (n == null) return null; |
4242 throw new core.ArgumentError("Invalid boolean: $n"); | 4242 throw new core.ArgumentError("Invalid boolean: $n"); |
4243 } | 4243 } |
4244 if (query.length > 0) { | 4244 if (query.length > 0) { |
4245 for (var part in query.split("&")) { | 4245 for (var part in query.split("&")) { |
4246 var keyvalue = part.split("="); | 4246 var keyvalue = part.split("="); |
4247 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4247 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4248 } | 4248 } |
4249 } | 4249 } |
| 4250 unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, uni
ttest.equals(arg_thumbnailProperties_thumbnailSize)); |
4250 unittest.expect(queryMap["thumbnailProperties.mimeType"].first, unittest
.equals(arg_thumbnailProperties_mimeType)); | 4251 unittest.expect(queryMap["thumbnailProperties.mimeType"].first, unittest
.equals(arg_thumbnailProperties_mimeType)); |
4251 unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, uni
ttest.equals(arg_thumbnailProperties_thumbnailSize)); | |
4252 | 4252 |
4253 | 4253 |
4254 var h = { | 4254 var h = { |
4255 "content-type" : "application/json; charset=utf-8", | 4255 "content-type" : "application/json; charset=utf-8", |
4256 }; | 4256 }; |
4257 var resp = convert.JSON.encode(buildThumbnail()); | 4257 var resp = convert.JSON.encode(buildThumbnail()); |
4258 return new async.Future.value(stringResponse(200, h, resp)); | 4258 return new async.Future.value(stringResponse(200, h, resp)); |
4259 }), true); | 4259 }), true); |
4260 res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties
_mimeType: arg_thumbnailProperties_mimeType, thumbnailProperties_thumbnailSize:
arg_thumbnailProperties_thumbnailSize).then(unittest.expectAsync1(((api.Thumbnai
l response) { | 4260 res.getThumbnail(arg_presentationId, arg_pageObjectId, thumbnailProperties
_thumbnailSize: arg_thumbnailProperties_thumbnailSize, thumbnailProperties_mimeT
ype: arg_thumbnailProperties_mimeType).then(unittest.expectAsync1(((api.Thumbnai
l response) { |
4261 checkThumbnail(response); | 4261 checkThumbnail(response); |
4262 }))); | 4262 }))); |
4263 }); | 4263 }); |
4264 | 4264 |
4265 }); | 4265 }); |
4266 | 4266 |
4267 | 4267 |
4268 } | 4268 } |
4269 | 4269 |
OLD | NEW |