OLD | NEW |
1 library googleapis.playmoviespartner.v1.test; | 1 library googleapis.playmoviespartner.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed3041() { | 54 buildUnnamed3055() { |
55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
56 o.add("foo"); | 56 o.add("foo"); |
57 o.add("foo"); | 57 o.add("foo"); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed3041(core.List<core.String> o) { | 61 checkUnnamed3055(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAvail = 0; | 67 core.int buildCounterAvail = 0; |
68 buildAvail() { | 68 buildAvail() { |
69 var o = new api.Avail(); | 69 var o = new api.Avail(); |
70 buildCounterAvail++; | 70 buildCounterAvail++; |
71 if (buildCounterAvail < 3) { | 71 if (buildCounterAvail < 3) { |
72 o.altId = "foo"; | 72 o.altId = "foo"; |
73 o.availId = "foo"; | 73 o.availId = "foo"; |
74 o.captionExemption = "foo"; | 74 o.captionExemption = "foo"; |
75 o.captionIncluded = true; | 75 o.captionIncluded = true; |
76 o.contentId = "foo"; | 76 o.contentId = "foo"; |
77 o.displayName = "foo"; | 77 o.displayName = "foo"; |
78 o.encodeId = "foo"; | 78 o.encodeId = "foo"; |
79 o.end = "foo"; | 79 o.end = "foo"; |
80 o.episodeAltId = "foo"; | 80 o.episodeAltId = "foo"; |
81 o.episodeNumber = "foo"; | 81 o.episodeNumber = "foo"; |
82 o.episodeTitleInternalAlias = "foo"; | 82 o.episodeTitleInternalAlias = "foo"; |
83 o.formatProfile = "foo"; | 83 o.formatProfile = "foo"; |
84 o.licenseType = "foo"; | 84 o.licenseType = "foo"; |
85 o.pphNames = buildUnnamed3041(); | 85 o.pphNames = buildUnnamed3055(); |
86 o.priceType = "foo"; | 86 o.priceType = "foo"; |
87 o.priceValue = "foo"; | 87 o.priceValue = "foo"; |
88 o.productId = "foo"; | 88 o.productId = "foo"; |
89 o.ratingReason = "foo"; | 89 o.ratingReason = "foo"; |
90 o.ratingSystem = "foo"; | 90 o.ratingSystem = "foo"; |
91 o.ratingValue = "foo"; | 91 o.ratingValue = "foo"; |
92 o.releaseDate = "foo"; | 92 o.releaseDate = "foo"; |
93 o.seasonAltId = "foo"; | 93 o.seasonAltId = "foo"; |
94 o.seasonNumber = "foo"; | 94 o.seasonNumber = "foo"; |
95 o.seasonTitleInternalAlias = "foo"; | 95 o.seasonTitleInternalAlias = "foo"; |
(...skipping 20 matching lines...) Expand all Loading... |
116 unittest.expect(o.captionIncluded, unittest.isTrue); | 116 unittest.expect(o.captionIncluded, unittest.isTrue); |
117 unittest.expect(o.contentId, unittest.equals('foo')); | 117 unittest.expect(o.contentId, unittest.equals('foo')); |
118 unittest.expect(o.displayName, unittest.equals('foo')); | 118 unittest.expect(o.displayName, unittest.equals('foo')); |
119 unittest.expect(o.encodeId, unittest.equals('foo')); | 119 unittest.expect(o.encodeId, unittest.equals('foo')); |
120 unittest.expect(o.end, unittest.equals('foo')); | 120 unittest.expect(o.end, unittest.equals('foo')); |
121 unittest.expect(o.episodeAltId, unittest.equals('foo')); | 121 unittest.expect(o.episodeAltId, unittest.equals('foo')); |
122 unittest.expect(o.episodeNumber, unittest.equals('foo')); | 122 unittest.expect(o.episodeNumber, unittest.equals('foo')); |
123 unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); | 123 unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); |
124 unittest.expect(o.formatProfile, unittest.equals('foo')); | 124 unittest.expect(o.formatProfile, unittest.equals('foo')); |
125 unittest.expect(o.licenseType, unittest.equals('foo')); | 125 unittest.expect(o.licenseType, unittest.equals('foo')); |
126 checkUnnamed3041(o.pphNames); | 126 checkUnnamed3055(o.pphNames); |
127 unittest.expect(o.priceType, unittest.equals('foo')); | 127 unittest.expect(o.priceType, unittest.equals('foo')); |
128 unittest.expect(o.priceValue, unittest.equals('foo')); | 128 unittest.expect(o.priceValue, unittest.equals('foo')); |
129 unittest.expect(o.productId, unittest.equals('foo')); | 129 unittest.expect(o.productId, unittest.equals('foo')); |
130 unittest.expect(o.ratingReason, unittest.equals('foo')); | 130 unittest.expect(o.ratingReason, unittest.equals('foo')); |
131 unittest.expect(o.ratingSystem, unittest.equals('foo')); | 131 unittest.expect(o.ratingSystem, unittest.equals('foo')); |
132 unittest.expect(o.ratingValue, unittest.equals('foo')); | 132 unittest.expect(o.ratingValue, unittest.equals('foo')); |
133 unittest.expect(o.releaseDate, unittest.equals('foo')); | 133 unittest.expect(o.releaseDate, unittest.equals('foo')); |
134 unittest.expect(o.seasonAltId, unittest.equals('foo')); | 134 unittest.expect(o.seasonAltId, unittest.equals('foo')); |
135 unittest.expect(o.seasonNumber, unittest.equals('foo')); | 135 unittest.expect(o.seasonNumber, unittest.equals('foo')); |
136 unittest.expect(o.seasonTitleInternalAlias, unittest.equals('foo')); | 136 unittest.expect(o.seasonTitleInternalAlias, unittest.equals('foo')); |
137 unittest.expect(o.seriesAltId, unittest.equals('foo')); | 137 unittest.expect(o.seriesAltId, unittest.equals('foo')); |
138 unittest.expect(o.seriesTitleInternalAlias, unittest.equals('foo')); | 138 unittest.expect(o.seriesTitleInternalAlias, unittest.equals('foo')); |
139 unittest.expect(o.start, unittest.equals('foo')); | 139 unittest.expect(o.start, unittest.equals('foo')); |
140 unittest.expect(o.storeLanguage, unittest.equals('foo')); | 140 unittest.expect(o.storeLanguage, unittest.equals('foo')); |
141 unittest.expect(o.suppressionLiftDate, unittest.equals('foo')); | 141 unittest.expect(o.suppressionLiftDate, unittest.equals('foo')); |
142 unittest.expect(o.territory, unittest.equals('foo')); | 142 unittest.expect(o.territory, unittest.equals('foo')); |
143 unittest.expect(o.titleInternalAlias, unittest.equals('foo')); | 143 unittest.expect(o.titleInternalAlias, unittest.equals('foo')); |
144 unittest.expect(o.videoId, unittest.equals('foo')); | 144 unittest.expect(o.videoId, unittest.equals('foo')); |
145 unittest.expect(o.workType, unittest.equals('foo')); | 145 unittest.expect(o.workType, unittest.equals('foo')); |
146 } | 146 } |
147 buildCounterAvail--; | 147 buildCounterAvail--; |
148 } | 148 } |
149 | 149 |
150 buildUnnamed3042() { | 150 buildUnnamed3056() { |
151 var o = new core.List<api.Avail>(); | 151 var o = new core.List<api.Avail>(); |
152 o.add(buildAvail()); | 152 o.add(buildAvail()); |
153 o.add(buildAvail()); | 153 o.add(buildAvail()); |
154 return o; | 154 return o; |
155 } | 155 } |
156 | 156 |
157 checkUnnamed3042(core.List<api.Avail> o) { | 157 checkUnnamed3056(core.List<api.Avail> o) { |
158 unittest.expect(o, unittest.hasLength(2)); | 158 unittest.expect(o, unittest.hasLength(2)); |
159 checkAvail(o[0]); | 159 checkAvail(o[0]); |
160 checkAvail(o[1]); | 160 checkAvail(o[1]); |
161 } | 161 } |
162 | 162 |
163 core.int buildCounterListAvailsResponse = 0; | 163 core.int buildCounterListAvailsResponse = 0; |
164 buildListAvailsResponse() { | 164 buildListAvailsResponse() { |
165 var o = new api.ListAvailsResponse(); | 165 var o = new api.ListAvailsResponse(); |
166 buildCounterListAvailsResponse++; | 166 buildCounterListAvailsResponse++; |
167 if (buildCounterListAvailsResponse < 3) { | 167 if (buildCounterListAvailsResponse < 3) { |
168 o.avails = buildUnnamed3042(); | 168 o.avails = buildUnnamed3056(); |
169 o.nextPageToken = "foo"; | 169 o.nextPageToken = "foo"; |
170 o.totalSize = 42; | 170 o.totalSize = 42; |
171 } | 171 } |
172 buildCounterListAvailsResponse--; | 172 buildCounterListAvailsResponse--; |
173 return o; | 173 return o; |
174 } | 174 } |
175 | 175 |
176 checkListAvailsResponse(api.ListAvailsResponse o) { | 176 checkListAvailsResponse(api.ListAvailsResponse o) { |
177 buildCounterListAvailsResponse++; | 177 buildCounterListAvailsResponse++; |
178 if (buildCounterListAvailsResponse < 3) { | 178 if (buildCounterListAvailsResponse < 3) { |
179 checkUnnamed3042(o.avails); | 179 checkUnnamed3056(o.avails); |
180 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 180 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
181 unittest.expect(o.totalSize, unittest.equals(42)); | 181 unittest.expect(o.totalSize, unittest.equals(42)); |
182 } | 182 } |
183 buildCounterListAvailsResponse--; | 183 buildCounterListAvailsResponse--; |
184 } | 184 } |
185 | 185 |
186 buildUnnamed3043() { | 186 buildUnnamed3057() { |
187 var o = new core.List<api.Order>(); | 187 var o = new core.List<api.Order>(); |
188 o.add(buildOrder()); | 188 o.add(buildOrder()); |
189 o.add(buildOrder()); | 189 o.add(buildOrder()); |
190 return o; | 190 return o; |
191 } | 191 } |
192 | 192 |
193 checkUnnamed3043(core.List<api.Order> o) { | 193 checkUnnamed3057(core.List<api.Order> o) { |
194 unittest.expect(o, unittest.hasLength(2)); | 194 unittest.expect(o, unittest.hasLength(2)); |
195 checkOrder(o[0]); | 195 checkOrder(o[0]); |
196 checkOrder(o[1]); | 196 checkOrder(o[1]); |
197 } | 197 } |
198 | 198 |
199 core.int buildCounterListOrdersResponse = 0; | 199 core.int buildCounterListOrdersResponse = 0; |
200 buildListOrdersResponse() { | 200 buildListOrdersResponse() { |
201 var o = new api.ListOrdersResponse(); | 201 var o = new api.ListOrdersResponse(); |
202 buildCounterListOrdersResponse++; | 202 buildCounterListOrdersResponse++; |
203 if (buildCounterListOrdersResponse < 3) { | 203 if (buildCounterListOrdersResponse < 3) { |
204 o.nextPageToken = "foo"; | 204 o.nextPageToken = "foo"; |
205 o.orders = buildUnnamed3043(); | 205 o.orders = buildUnnamed3057(); |
206 o.totalSize = 42; | 206 o.totalSize = 42; |
207 } | 207 } |
208 buildCounterListOrdersResponse--; | 208 buildCounterListOrdersResponse--; |
209 return o; | 209 return o; |
210 } | 210 } |
211 | 211 |
212 checkListOrdersResponse(api.ListOrdersResponse o) { | 212 checkListOrdersResponse(api.ListOrdersResponse o) { |
213 buildCounterListOrdersResponse++; | 213 buildCounterListOrdersResponse++; |
214 if (buildCounterListOrdersResponse < 3) { | 214 if (buildCounterListOrdersResponse < 3) { |
215 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 215 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
216 checkUnnamed3043(o.orders); | 216 checkUnnamed3057(o.orders); |
217 unittest.expect(o.totalSize, unittest.equals(42)); | 217 unittest.expect(o.totalSize, unittest.equals(42)); |
218 } | 218 } |
219 buildCounterListOrdersResponse--; | 219 buildCounterListOrdersResponse--; |
220 } | 220 } |
221 | 221 |
222 buildUnnamed3044() { | 222 buildUnnamed3058() { |
223 var o = new core.List<api.StoreInfo>(); | 223 var o = new core.List<api.StoreInfo>(); |
224 o.add(buildStoreInfo()); | 224 o.add(buildStoreInfo()); |
225 o.add(buildStoreInfo()); | 225 o.add(buildStoreInfo()); |
226 return o; | 226 return o; |
227 } | 227 } |
228 | 228 |
229 checkUnnamed3044(core.List<api.StoreInfo> o) { | 229 checkUnnamed3058(core.List<api.StoreInfo> o) { |
230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
231 checkStoreInfo(o[0]); | 231 checkStoreInfo(o[0]); |
232 checkStoreInfo(o[1]); | 232 checkStoreInfo(o[1]); |
233 } | 233 } |
234 | 234 |
235 core.int buildCounterListStoreInfosResponse = 0; | 235 core.int buildCounterListStoreInfosResponse = 0; |
236 buildListStoreInfosResponse() { | 236 buildListStoreInfosResponse() { |
237 var o = new api.ListStoreInfosResponse(); | 237 var o = new api.ListStoreInfosResponse(); |
238 buildCounterListStoreInfosResponse++; | 238 buildCounterListStoreInfosResponse++; |
239 if (buildCounterListStoreInfosResponse < 3) { | 239 if (buildCounterListStoreInfosResponse < 3) { |
240 o.nextPageToken = "foo"; | 240 o.nextPageToken = "foo"; |
241 o.storeInfos = buildUnnamed3044(); | 241 o.storeInfos = buildUnnamed3058(); |
242 o.totalSize = 42; | 242 o.totalSize = 42; |
243 } | 243 } |
244 buildCounterListStoreInfosResponse--; | 244 buildCounterListStoreInfosResponse--; |
245 return o; | 245 return o; |
246 } | 246 } |
247 | 247 |
248 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { | 248 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { |
249 buildCounterListStoreInfosResponse++; | 249 buildCounterListStoreInfosResponse++; |
250 if (buildCounterListStoreInfosResponse < 3) { | 250 if (buildCounterListStoreInfosResponse < 3) { |
251 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 251 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
252 checkUnnamed3044(o.storeInfos); | 252 checkUnnamed3058(o.storeInfos); |
253 unittest.expect(o.totalSize, unittest.equals(42)); | 253 unittest.expect(o.totalSize, unittest.equals(42)); |
254 } | 254 } |
255 buildCounterListStoreInfosResponse--; | 255 buildCounterListStoreInfosResponse--; |
256 } | 256 } |
257 | 257 |
258 buildUnnamed3045() { | 258 buildUnnamed3059() { |
259 var o = new core.List<core.String>(); | 259 var o = new core.List<core.String>(); |
260 o.add("foo"); | 260 o.add("foo"); |
261 o.add("foo"); | 261 o.add("foo"); |
262 return o; | 262 return o; |
263 } | 263 } |
264 | 264 |
265 checkUnnamed3045(core.List<core.String> o) { | 265 checkUnnamed3059(core.List<core.String> o) { |
266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
267 unittest.expect(o[0], unittest.equals('foo')); | 267 unittest.expect(o[0], unittest.equals('foo')); |
268 unittest.expect(o[1], unittest.equals('foo')); | 268 unittest.expect(o[1], unittest.equals('foo')); |
269 } | 269 } |
270 | 270 |
271 core.int buildCounterOrder = 0; | 271 core.int buildCounterOrder = 0; |
272 buildOrder() { | 272 buildOrder() { |
273 var o = new api.Order(); | 273 var o = new api.Order(); |
274 buildCounterOrder++; | 274 buildCounterOrder++; |
275 if (buildCounterOrder < 3) { | 275 if (buildCounterOrder < 3) { |
276 o.approvedTime = "foo"; | 276 o.approvedTime = "foo"; |
277 o.channelId = "foo"; | 277 o.channelId = "foo"; |
278 o.channelName = "foo"; | 278 o.channelName = "foo"; |
279 o.countries = buildUnnamed3045(); | 279 o.countries = buildUnnamed3059(); |
280 o.customId = "foo"; | 280 o.customId = "foo"; |
281 o.earliestAvailStartTime = "foo"; | 281 o.earliestAvailStartTime = "foo"; |
282 o.episodeName = "foo"; | 282 o.episodeName = "foo"; |
283 o.legacyPriority = "foo"; | 283 o.legacyPriority = "foo"; |
284 o.name = "foo"; | 284 o.name = "foo"; |
285 o.normalizedPriority = "foo"; | 285 o.normalizedPriority = "foo"; |
286 o.orderId = "foo"; | 286 o.orderId = "foo"; |
287 o.orderedTime = "foo"; | 287 o.orderedTime = "foo"; |
288 o.pphName = "foo"; | 288 o.pphName = "foo"; |
289 o.priority = 42.0; | 289 o.priority = 42.0; |
(...skipping 10 matching lines...) Expand all Loading... |
300 buildCounterOrder--; | 300 buildCounterOrder--; |
301 return o; | 301 return o; |
302 } | 302 } |
303 | 303 |
304 checkOrder(api.Order o) { | 304 checkOrder(api.Order o) { |
305 buildCounterOrder++; | 305 buildCounterOrder++; |
306 if (buildCounterOrder < 3) { | 306 if (buildCounterOrder < 3) { |
307 unittest.expect(o.approvedTime, unittest.equals('foo')); | 307 unittest.expect(o.approvedTime, unittest.equals('foo')); |
308 unittest.expect(o.channelId, unittest.equals('foo')); | 308 unittest.expect(o.channelId, unittest.equals('foo')); |
309 unittest.expect(o.channelName, unittest.equals('foo')); | 309 unittest.expect(o.channelName, unittest.equals('foo')); |
310 checkUnnamed3045(o.countries); | 310 checkUnnamed3059(o.countries); |
311 unittest.expect(o.customId, unittest.equals('foo')); | 311 unittest.expect(o.customId, unittest.equals('foo')); |
312 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); | 312 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); |
313 unittest.expect(o.episodeName, unittest.equals('foo')); | 313 unittest.expect(o.episodeName, unittest.equals('foo')); |
314 unittest.expect(o.legacyPriority, unittest.equals('foo')); | 314 unittest.expect(o.legacyPriority, unittest.equals('foo')); |
315 unittest.expect(o.name, unittest.equals('foo')); | 315 unittest.expect(o.name, unittest.equals('foo')); |
316 unittest.expect(o.normalizedPriority, unittest.equals('foo')); | 316 unittest.expect(o.normalizedPriority, unittest.equals('foo')); |
317 unittest.expect(o.orderId, unittest.equals('foo')); | 317 unittest.expect(o.orderId, unittest.equals('foo')); |
318 unittest.expect(o.orderedTime, unittest.equals('foo')); | 318 unittest.expect(o.orderedTime, unittest.equals('foo')); |
319 unittest.expect(o.pphName, unittest.equals('foo')); | 319 unittest.expect(o.pphName, unittest.equals('foo')); |
320 unittest.expect(o.priority, unittest.equals(42.0)); | 320 unittest.expect(o.priority, unittest.equals(42.0)); |
321 unittest.expect(o.receivedTime, unittest.equals('foo')); | 321 unittest.expect(o.receivedTime, unittest.equals('foo')); |
322 unittest.expect(o.rejectionNote, unittest.equals('foo')); | 322 unittest.expect(o.rejectionNote, unittest.equals('foo')); |
323 unittest.expect(o.seasonName, unittest.equals('foo')); | 323 unittest.expect(o.seasonName, unittest.equals('foo')); |
324 unittest.expect(o.showName, unittest.equals('foo')); | 324 unittest.expect(o.showName, unittest.equals('foo')); |
325 unittest.expect(o.status, unittest.equals('foo')); | 325 unittest.expect(o.status, unittest.equals('foo')); |
326 unittest.expect(o.statusDetail, unittest.equals('foo')); | 326 unittest.expect(o.statusDetail, unittest.equals('foo')); |
327 unittest.expect(o.studioName, unittest.equals('foo')); | 327 unittest.expect(o.studioName, unittest.equals('foo')); |
328 unittest.expect(o.type, unittest.equals('foo')); | 328 unittest.expect(o.type, unittest.equals('foo')); |
329 unittest.expect(o.videoId, unittest.equals('foo')); | 329 unittest.expect(o.videoId, unittest.equals('foo')); |
330 } | 330 } |
331 buildCounterOrder--; | 331 buildCounterOrder--; |
332 } | 332 } |
333 | 333 |
334 buildUnnamed3046() { | 334 buildUnnamed3060() { |
335 var o = new core.List<core.String>(); | 335 var o = new core.List<core.String>(); |
336 o.add("foo"); | 336 o.add("foo"); |
337 o.add("foo"); | 337 o.add("foo"); |
338 return o; | 338 return o; |
339 } | 339 } |
340 | 340 |
341 checkUnnamed3046(core.List<core.String> o) { | 341 checkUnnamed3060(core.List<core.String> o) { |
342 unittest.expect(o, unittest.hasLength(2)); | 342 unittest.expect(o, unittest.hasLength(2)); |
343 unittest.expect(o[0], unittest.equals('foo')); | 343 unittest.expect(o[0], unittest.equals('foo')); |
344 unittest.expect(o[1], unittest.equals('foo')); | 344 unittest.expect(o[1], unittest.equals('foo')); |
345 } | 345 } |
346 | 346 |
347 buildUnnamed3047() { | 347 buildUnnamed3061() { |
348 var o = new core.List<core.String>(); | 348 var o = new core.List<core.String>(); |
349 o.add("foo"); | 349 o.add("foo"); |
350 o.add("foo"); | 350 o.add("foo"); |
351 return o; | 351 return o; |
352 } | 352 } |
353 | 353 |
354 checkUnnamed3047(core.List<core.String> o) { | 354 checkUnnamed3061(core.List<core.String> o) { |
355 unittest.expect(o, unittest.hasLength(2)); | 355 unittest.expect(o, unittest.hasLength(2)); |
356 unittest.expect(o[0], unittest.equals('foo')); | 356 unittest.expect(o[0], unittest.equals('foo')); |
357 unittest.expect(o[1], unittest.equals('foo')); | 357 unittest.expect(o[1], unittest.equals('foo')); |
358 } | 358 } |
359 | 359 |
360 buildUnnamed3048() { | 360 buildUnnamed3062() { |
361 var o = new core.List<core.String>(); | 361 var o = new core.List<core.String>(); |
362 o.add("foo"); | 362 o.add("foo"); |
363 o.add("foo"); | 363 o.add("foo"); |
364 return o; | 364 return o; |
365 } | 365 } |
366 | 366 |
367 checkUnnamed3048(core.List<core.String> o) { | 367 checkUnnamed3062(core.List<core.String> o) { |
368 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
369 unittest.expect(o[0], unittest.equals('foo')); | 369 unittest.expect(o[0], unittest.equals('foo')); |
370 unittest.expect(o[1], unittest.equals('foo')); | 370 unittest.expect(o[1], unittest.equals('foo')); |
371 } | 371 } |
372 | 372 |
373 core.int buildCounterStoreInfo = 0; | 373 core.int buildCounterStoreInfo = 0; |
374 buildStoreInfo() { | 374 buildStoreInfo() { |
375 var o = new api.StoreInfo(); | 375 var o = new api.StoreInfo(); |
376 buildCounterStoreInfo++; | 376 buildCounterStoreInfo++; |
377 if (buildCounterStoreInfo < 3) { | 377 if (buildCounterStoreInfo < 3) { |
378 o.audioTracks = buildUnnamed3046(); | 378 o.audioTracks = buildUnnamed3060(); |
379 o.country = "foo"; | 379 o.country = "foo"; |
380 o.editLevelEidr = "foo"; | 380 o.editLevelEidr = "foo"; |
381 o.episodeNumber = "foo"; | 381 o.episodeNumber = "foo"; |
382 o.hasAudio51 = true; | 382 o.hasAudio51 = true; |
383 o.hasEstOffer = true; | 383 o.hasEstOffer = true; |
384 o.hasHdOffer = true; | 384 o.hasHdOffer = true; |
385 o.hasInfoCards = true; | 385 o.hasInfoCards = true; |
386 o.hasSdOffer = true; | 386 o.hasSdOffer = true; |
387 o.hasVodOffer = true; | 387 o.hasVodOffer = true; |
388 o.liveTime = "foo"; | 388 o.liveTime = "foo"; |
389 o.mid = "foo"; | 389 o.mid = "foo"; |
390 o.name = "foo"; | 390 o.name = "foo"; |
391 o.pphNames = buildUnnamed3047(); | 391 o.pphNames = buildUnnamed3061(); |
392 o.seasonId = "foo"; | 392 o.seasonId = "foo"; |
393 o.seasonName = "foo"; | 393 o.seasonName = "foo"; |
394 o.seasonNumber = "foo"; | 394 o.seasonNumber = "foo"; |
395 o.showId = "foo"; | 395 o.showId = "foo"; |
396 o.showName = "foo"; | 396 o.showName = "foo"; |
397 o.studioName = "foo"; | 397 o.studioName = "foo"; |
398 o.subtitles = buildUnnamed3048(); | 398 o.subtitles = buildUnnamed3062(); |
399 o.titleLevelEidr = "foo"; | 399 o.titleLevelEidr = "foo"; |
400 o.trailerId = "foo"; | 400 o.trailerId = "foo"; |
401 o.type = "foo"; | 401 o.type = "foo"; |
402 o.videoId = "foo"; | 402 o.videoId = "foo"; |
403 } | 403 } |
404 buildCounterStoreInfo--; | 404 buildCounterStoreInfo--; |
405 return o; | 405 return o; |
406 } | 406 } |
407 | 407 |
408 checkStoreInfo(api.StoreInfo o) { | 408 checkStoreInfo(api.StoreInfo o) { |
409 buildCounterStoreInfo++; | 409 buildCounterStoreInfo++; |
410 if (buildCounterStoreInfo < 3) { | 410 if (buildCounterStoreInfo < 3) { |
411 checkUnnamed3046(o.audioTracks); | 411 checkUnnamed3060(o.audioTracks); |
412 unittest.expect(o.country, unittest.equals('foo')); | 412 unittest.expect(o.country, unittest.equals('foo')); |
413 unittest.expect(o.editLevelEidr, unittest.equals('foo')); | 413 unittest.expect(o.editLevelEidr, unittest.equals('foo')); |
414 unittest.expect(o.episodeNumber, unittest.equals('foo')); | 414 unittest.expect(o.episodeNumber, unittest.equals('foo')); |
415 unittest.expect(o.hasAudio51, unittest.isTrue); | 415 unittest.expect(o.hasAudio51, unittest.isTrue); |
416 unittest.expect(o.hasEstOffer, unittest.isTrue); | 416 unittest.expect(o.hasEstOffer, unittest.isTrue); |
417 unittest.expect(o.hasHdOffer, unittest.isTrue); | 417 unittest.expect(o.hasHdOffer, unittest.isTrue); |
418 unittest.expect(o.hasInfoCards, unittest.isTrue); | 418 unittest.expect(o.hasInfoCards, unittest.isTrue); |
419 unittest.expect(o.hasSdOffer, unittest.isTrue); | 419 unittest.expect(o.hasSdOffer, unittest.isTrue); |
420 unittest.expect(o.hasVodOffer, unittest.isTrue); | 420 unittest.expect(o.hasVodOffer, unittest.isTrue); |
421 unittest.expect(o.liveTime, unittest.equals('foo')); | 421 unittest.expect(o.liveTime, unittest.equals('foo')); |
422 unittest.expect(o.mid, unittest.equals('foo')); | 422 unittest.expect(o.mid, unittest.equals('foo')); |
423 unittest.expect(o.name, unittest.equals('foo')); | 423 unittest.expect(o.name, unittest.equals('foo')); |
424 checkUnnamed3047(o.pphNames); | 424 checkUnnamed3061(o.pphNames); |
425 unittest.expect(o.seasonId, unittest.equals('foo')); | 425 unittest.expect(o.seasonId, unittest.equals('foo')); |
426 unittest.expect(o.seasonName, unittest.equals('foo')); | 426 unittest.expect(o.seasonName, unittest.equals('foo')); |
427 unittest.expect(o.seasonNumber, unittest.equals('foo')); | 427 unittest.expect(o.seasonNumber, unittest.equals('foo')); |
428 unittest.expect(o.showId, unittest.equals('foo')); | 428 unittest.expect(o.showId, unittest.equals('foo')); |
429 unittest.expect(o.showName, unittest.equals('foo')); | 429 unittest.expect(o.showName, unittest.equals('foo')); |
430 unittest.expect(o.studioName, unittest.equals('foo')); | 430 unittest.expect(o.studioName, unittest.equals('foo')); |
431 checkUnnamed3048(o.subtitles); | 431 checkUnnamed3062(o.subtitles); |
432 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); | 432 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); |
433 unittest.expect(o.trailerId, unittest.equals('foo')); | 433 unittest.expect(o.trailerId, unittest.equals('foo')); |
434 unittest.expect(o.type, unittest.equals('foo')); | 434 unittest.expect(o.type, unittest.equals('foo')); |
435 unittest.expect(o.videoId, unittest.equals('foo')); | 435 unittest.expect(o.videoId, unittest.equals('foo')); |
436 } | 436 } |
437 buildCounterStoreInfo--; | 437 buildCounterStoreInfo--; |
438 } | 438 } |
439 | 439 |
440 buildUnnamed3049() { | |
441 var o = new core.List<core.String>(); | |
442 o.add("foo"); | |
443 o.add("foo"); | |
444 return o; | |
445 } | |
446 | |
447 checkUnnamed3049(core.List<core.String> o) { | |
448 unittest.expect(o, unittest.hasLength(2)); | |
449 unittest.expect(o[0], unittest.equals('foo')); | |
450 unittest.expect(o[1], unittest.equals('foo')); | |
451 } | |
452 | |
453 buildUnnamed3050() { | |
454 var o = new core.List<core.String>(); | |
455 o.add("foo"); | |
456 o.add("foo"); | |
457 return o; | |
458 } | |
459 | |
460 checkUnnamed3050(core.List<core.String> o) { | |
461 unittest.expect(o, unittest.hasLength(2)); | |
462 unittest.expect(o[0], unittest.equals('foo')); | |
463 unittest.expect(o[1], unittest.equals('foo')); | |
464 } | |
465 | |
466 buildUnnamed3051() { | |
467 var o = new core.List<core.String>(); | |
468 o.add("foo"); | |
469 o.add("foo"); | |
470 return o; | |
471 } | |
472 | |
473 checkUnnamed3051(core.List<core.String> o) { | |
474 unittest.expect(o, unittest.hasLength(2)); | |
475 unittest.expect(o[0], unittest.equals('foo')); | |
476 unittest.expect(o[1], unittest.equals('foo')); | |
477 } | |
478 | |
479 buildUnnamed3052() { | |
480 var o = new core.List<core.String>(); | |
481 o.add("foo"); | |
482 o.add("foo"); | |
483 return o; | |
484 } | |
485 | |
486 checkUnnamed3052(core.List<core.String> o) { | |
487 unittest.expect(o, unittest.hasLength(2)); | |
488 unittest.expect(o[0], unittest.equals('foo')); | |
489 unittest.expect(o[1], unittest.equals('foo')); | |
490 } | |
491 | |
492 buildUnnamed3053() { | |
493 var o = new core.List<core.String>(); | |
494 o.add("foo"); | |
495 o.add("foo"); | |
496 return o; | |
497 } | |
498 | |
499 checkUnnamed3053(core.List<core.String> o) { | |
500 unittest.expect(o, unittest.hasLength(2)); | |
501 unittest.expect(o[0], unittest.equals('foo')); | |
502 unittest.expect(o[1], unittest.equals('foo')); | |
503 } | |
504 | |
505 buildUnnamed3054() { | |
506 var o = new core.List<core.String>(); | |
507 o.add("foo"); | |
508 o.add("foo"); | |
509 return o; | |
510 } | |
511 | |
512 checkUnnamed3054(core.List<core.String> o) { | |
513 unittest.expect(o, unittest.hasLength(2)); | |
514 unittest.expect(o[0], unittest.equals('foo')); | |
515 unittest.expect(o[1], unittest.equals('foo')); | |
516 } | |
517 | |
518 buildUnnamed3055() { | |
519 var o = new core.List<core.String>(); | |
520 o.add("foo"); | |
521 o.add("foo"); | |
522 return o; | |
523 } | |
524 | |
525 checkUnnamed3055(core.List<core.String> o) { | |
526 unittest.expect(o, unittest.hasLength(2)); | |
527 unittest.expect(o[0], unittest.equals('foo')); | |
528 unittest.expect(o[1], unittest.equals('foo')); | |
529 } | |
530 | |
531 buildUnnamed3056() { | |
532 var o = new core.List<core.String>(); | |
533 o.add("foo"); | |
534 o.add("foo"); | |
535 return o; | |
536 } | |
537 | |
538 checkUnnamed3056(core.List<core.String> o) { | |
539 unittest.expect(o, unittest.hasLength(2)); | |
540 unittest.expect(o[0], unittest.equals('foo')); | |
541 unittest.expect(o[1], unittest.equals('foo')); | |
542 } | |
543 | |
544 buildUnnamed3057() { | |
545 var o = new core.List<core.String>(); | |
546 o.add("foo"); | |
547 o.add("foo"); | |
548 return o; | |
549 } | |
550 | |
551 checkUnnamed3057(core.List<core.String> o) { | |
552 unittest.expect(o, unittest.hasLength(2)); | |
553 unittest.expect(o[0], unittest.equals('foo')); | |
554 unittest.expect(o[1], unittest.equals('foo')); | |
555 } | |
556 | |
557 buildUnnamed3058() { | |
558 var o = new core.List<core.String>(); | |
559 o.add("foo"); | |
560 o.add("foo"); | |
561 return o; | |
562 } | |
563 | |
564 checkUnnamed3058(core.List<core.String> o) { | |
565 unittest.expect(o, unittest.hasLength(2)); | |
566 unittest.expect(o[0], unittest.equals('foo')); | |
567 unittest.expect(o[1], unittest.equals('foo')); | |
568 } | |
569 | |
570 buildUnnamed3059() { | |
571 var o = new core.List<core.String>(); | |
572 o.add("foo"); | |
573 o.add("foo"); | |
574 return o; | |
575 } | |
576 | |
577 checkUnnamed3059(core.List<core.String> o) { | |
578 unittest.expect(o, unittest.hasLength(2)); | |
579 unittest.expect(o[0], unittest.equals('foo')); | |
580 unittest.expect(o[1], unittest.equals('foo')); | |
581 } | |
582 | |
583 buildUnnamed3060() { | |
584 var o = new core.List<core.String>(); | |
585 o.add("foo"); | |
586 o.add("foo"); | |
587 return o; | |
588 } | |
589 | |
590 checkUnnamed3060(core.List<core.String> o) { | |
591 unittest.expect(o, unittest.hasLength(2)); | |
592 unittest.expect(o[0], unittest.equals('foo')); | |
593 unittest.expect(o[1], unittest.equals('foo')); | |
594 } | |
595 | |
596 buildUnnamed3061() { | |
597 var o = new core.List<core.String>(); | |
598 o.add("foo"); | |
599 o.add("foo"); | |
600 return o; | |
601 } | |
602 | |
603 checkUnnamed3061(core.List<core.String> o) { | |
604 unittest.expect(o, unittest.hasLength(2)); | |
605 unittest.expect(o[0], unittest.equals('foo')); | |
606 unittest.expect(o[1], unittest.equals('foo')); | |
607 } | |
608 | |
609 buildUnnamed3062() { | |
610 var o = new core.List<core.String>(); | |
611 o.add("foo"); | |
612 o.add("foo"); | |
613 return o; | |
614 } | |
615 | |
616 checkUnnamed3062(core.List<core.String> o) { | |
617 unittest.expect(o, unittest.hasLength(2)); | |
618 unittest.expect(o[0], unittest.equals('foo')); | |
619 unittest.expect(o[1], unittest.equals('foo')); | |
620 } | |
621 | |
622 buildUnnamed3063() { | 440 buildUnnamed3063() { |
623 var o = new core.List<core.String>(); | 441 var o = new core.List<core.String>(); |
624 o.add("foo"); | 442 o.add("foo"); |
625 o.add("foo"); | 443 o.add("foo"); |
626 return o; | 444 return o; |
627 } | 445 } |
628 | 446 |
629 checkUnnamed3063(core.List<core.String> o) { | 447 checkUnnamed3063(core.List<core.String> o) { |
630 unittest.expect(o, unittest.hasLength(2)); | 448 unittest.expect(o, unittest.hasLength(2)); |
631 unittest.expect(o[0], unittest.equals('foo')); | 449 unittest.expect(o[0], unittest.equals('foo')); |
632 unittest.expect(o[1], unittest.equals('foo')); | 450 unittest.expect(o[1], unittest.equals('foo')); |
| 451 } |
| 452 |
| 453 buildUnnamed3064() { |
| 454 var o = new core.List<core.String>(); |
| 455 o.add("foo"); |
| 456 o.add("foo"); |
| 457 return o; |
| 458 } |
| 459 |
| 460 checkUnnamed3064(core.List<core.String> o) { |
| 461 unittest.expect(o, unittest.hasLength(2)); |
| 462 unittest.expect(o[0], unittest.equals('foo')); |
| 463 unittest.expect(o[1], unittest.equals('foo')); |
| 464 } |
| 465 |
| 466 buildUnnamed3065() { |
| 467 var o = new core.List<core.String>(); |
| 468 o.add("foo"); |
| 469 o.add("foo"); |
| 470 return o; |
| 471 } |
| 472 |
| 473 checkUnnamed3065(core.List<core.String> o) { |
| 474 unittest.expect(o, unittest.hasLength(2)); |
| 475 unittest.expect(o[0], unittest.equals('foo')); |
| 476 unittest.expect(o[1], unittest.equals('foo')); |
| 477 } |
| 478 |
| 479 buildUnnamed3066() { |
| 480 var o = new core.List<core.String>(); |
| 481 o.add("foo"); |
| 482 o.add("foo"); |
| 483 return o; |
| 484 } |
| 485 |
| 486 checkUnnamed3066(core.List<core.String> o) { |
| 487 unittest.expect(o, unittest.hasLength(2)); |
| 488 unittest.expect(o[0], unittest.equals('foo')); |
| 489 unittest.expect(o[1], unittest.equals('foo')); |
| 490 } |
| 491 |
| 492 buildUnnamed3067() { |
| 493 var o = new core.List<core.String>(); |
| 494 o.add("foo"); |
| 495 o.add("foo"); |
| 496 return o; |
| 497 } |
| 498 |
| 499 checkUnnamed3067(core.List<core.String> o) { |
| 500 unittest.expect(o, unittest.hasLength(2)); |
| 501 unittest.expect(o[0], unittest.equals('foo')); |
| 502 unittest.expect(o[1], unittest.equals('foo')); |
| 503 } |
| 504 |
| 505 buildUnnamed3068() { |
| 506 var o = new core.List<core.String>(); |
| 507 o.add("foo"); |
| 508 o.add("foo"); |
| 509 return o; |
| 510 } |
| 511 |
| 512 checkUnnamed3068(core.List<core.String> o) { |
| 513 unittest.expect(o, unittest.hasLength(2)); |
| 514 unittest.expect(o[0], unittest.equals('foo')); |
| 515 unittest.expect(o[1], unittest.equals('foo')); |
| 516 } |
| 517 |
| 518 buildUnnamed3069() { |
| 519 var o = new core.List<core.String>(); |
| 520 o.add("foo"); |
| 521 o.add("foo"); |
| 522 return o; |
| 523 } |
| 524 |
| 525 checkUnnamed3069(core.List<core.String> o) { |
| 526 unittest.expect(o, unittest.hasLength(2)); |
| 527 unittest.expect(o[0], unittest.equals('foo')); |
| 528 unittest.expect(o[1], unittest.equals('foo')); |
| 529 } |
| 530 |
| 531 buildUnnamed3070() { |
| 532 var o = new core.List<core.String>(); |
| 533 o.add("foo"); |
| 534 o.add("foo"); |
| 535 return o; |
| 536 } |
| 537 |
| 538 checkUnnamed3070(core.List<core.String> o) { |
| 539 unittest.expect(o, unittest.hasLength(2)); |
| 540 unittest.expect(o[0], unittest.equals('foo')); |
| 541 unittest.expect(o[1], unittest.equals('foo')); |
| 542 } |
| 543 |
| 544 buildUnnamed3071() { |
| 545 var o = new core.List<core.String>(); |
| 546 o.add("foo"); |
| 547 o.add("foo"); |
| 548 return o; |
| 549 } |
| 550 |
| 551 checkUnnamed3071(core.List<core.String> o) { |
| 552 unittest.expect(o, unittest.hasLength(2)); |
| 553 unittest.expect(o[0], unittest.equals('foo')); |
| 554 unittest.expect(o[1], unittest.equals('foo')); |
| 555 } |
| 556 |
| 557 buildUnnamed3072() { |
| 558 var o = new core.List<core.String>(); |
| 559 o.add("foo"); |
| 560 o.add("foo"); |
| 561 return o; |
| 562 } |
| 563 |
| 564 checkUnnamed3072(core.List<core.String> o) { |
| 565 unittest.expect(o, unittest.hasLength(2)); |
| 566 unittest.expect(o[0], unittest.equals('foo')); |
| 567 unittest.expect(o[1], unittest.equals('foo')); |
| 568 } |
| 569 |
| 570 buildUnnamed3073() { |
| 571 var o = new core.List<core.String>(); |
| 572 o.add("foo"); |
| 573 o.add("foo"); |
| 574 return o; |
| 575 } |
| 576 |
| 577 checkUnnamed3073(core.List<core.String> o) { |
| 578 unittest.expect(o, unittest.hasLength(2)); |
| 579 unittest.expect(o[0], unittest.equals('foo')); |
| 580 unittest.expect(o[1], unittest.equals('foo')); |
| 581 } |
| 582 |
| 583 buildUnnamed3074() { |
| 584 var o = new core.List<core.String>(); |
| 585 o.add("foo"); |
| 586 o.add("foo"); |
| 587 return o; |
| 588 } |
| 589 |
| 590 checkUnnamed3074(core.List<core.String> o) { |
| 591 unittest.expect(o, unittest.hasLength(2)); |
| 592 unittest.expect(o[0], unittest.equals('foo')); |
| 593 unittest.expect(o[1], unittest.equals('foo')); |
| 594 } |
| 595 |
| 596 buildUnnamed3075() { |
| 597 var o = new core.List<core.String>(); |
| 598 o.add("foo"); |
| 599 o.add("foo"); |
| 600 return o; |
| 601 } |
| 602 |
| 603 checkUnnamed3075(core.List<core.String> o) { |
| 604 unittest.expect(o, unittest.hasLength(2)); |
| 605 unittest.expect(o[0], unittest.equals('foo')); |
| 606 unittest.expect(o[1], unittest.equals('foo')); |
| 607 } |
| 608 |
| 609 buildUnnamed3076() { |
| 610 var o = new core.List<core.String>(); |
| 611 o.add("foo"); |
| 612 o.add("foo"); |
| 613 return o; |
| 614 } |
| 615 |
| 616 checkUnnamed3076(core.List<core.String> o) { |
| 617 unittest.expect(o, unittest.hasLength(2)); |
| 618 unittest.expect(o[0], unittest.equals('foo')); |
| 619 unittest.expect(o[1], unittest.equals('foo')); |
| 620 } |
| 621 |
| 622 buildUnnamed3077() { |
| 623 var o = new core.List<core.String>(); |
| 624 o.add("foo"); |
| 625 o.add("foo"); |
| 626 return o; |
| 627 } |
| 628 |
| 629 checkUnnamed3077(core.List<core.String> o) { |
| 630 unittest.expect(o, unittest.hasLength(2)); |
| 631 unittest.expect(o[0], unittest.equals('foo')); |
| 632 unittest.expect(o[1], unittest.equals('foo')); |
633 } | 633 } |
634 | 634 |
635 | 635 |
636 main() { | 636 main() { |
637 unittest.group("obj-schema-Avail", () { | 637 unittest.group("obj-schema-Avail", () { |
638 unittest.test("to-json--from-json", () { | 638 unittest.test("to-json--from-json", () { |
639 var o = buildAvail(); | 639 var o = buildAvail(); |
640 var od = new api.Avail.fromJson(o.toJson()); | 640 var od = new api.Avail.fromJson(o.toJson()); |
641 checkAvail(od); | 641 checkAvail(od); |
642 }); | 642 }); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 res.get(arg_accountId, arg_availId).then(unittest.expectAsync(((api.Avail
response) { | 742 res.get(arg_accountId, arg_availId).then(unittest.expectAsync(((api.Avail
response) { |
743 checkAvail(response); | 743 checkAvail(response); |
744 }))); | 744 }))); |
745 }); | 745 }); |
746 | 746 |
747 unittest.test("method--list", () { | 747 unittest.test("method--list", () { |
748 | 748 |
749 var mock = new HttpServerMock(); | 749 var mock = new HttpServerMock(); |
750 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; | 750 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; |
751 var arg_accountId = "foo"; | 751 var arg_accountId = "foo"; |
| 752 var arg_title = "foo"; |
| 753 var arg_videoIds = buildUnnamed3063(); |
752 var arg_pageToken = "foo"; | 754 var arg_pageToken = "foo"; |
753 var arg_videoIds = buildUnnamed3049(); | |
754 var arg_pageSize = 42; | 755 var arg_pageSize = 42; |
755 var arg_altIds = buildUnnamed3050(); | 756 var arg_altIds = buildUnnamed3064(); |
756 var arg_pphNames = buildUnnamed3051(); | 757 var arg_pphNames = buildUnnamed3065(); |
757 var arg_altId = "foo"; | 758 var arg_altId = "foo"; |
758 var arg_studioNames = buildUnnamed3052(); | 759 var arg_studioNames = buildUnnamed3066(); |
759 var arg_territories = buildUnnamed3053(); | 760 var arg_territories = buildUnnamed3067(); |
760 var arg_title = "foo"; | |
761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
762 var path = (req.url).path; | 762 var path = (req.url).path; |
763 var pathOffset = 0; | 763 var pathOffset = 0; |
764 var index; | 764 var index; |
765 var subPart; | 765 var subPart; |
766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
767 pathOffset += 1; | 767 pathOffset += 1; |
768 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 768 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
769 pathOffset += 12; | 769 pathOffset += 12; |
770 index = path.indexOf("/avails", pathOffset); | 770 index = path.indexOf("/avails", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
784 if (n == "false") return false; | 784 if (n == "false") return false; |
785 if (n == null) return null; | 785 if (n == null) return null; |
786 throw new core.ArgumentError("Invalid boolean: $n"); | 786 throw new core.ArgumentError("Invalid boolean: $n"); |
787 } | 787 } |
788 if (query.length > 0) { | 788 if (query.length > 0) { |
789 for (var part in query.split("&")) { | 789 for (var part in query.split("&")) { |
790 var keyvalue = part.split("="); | 790 var keyvalue = part.split("="); |
791 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 791 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
792 } | 792 } |
793 } | 793 } |
| 794 unittest.expect(queryMap["title"].first, unittest.equals(arg_title)); |
| 795 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); |
794 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 796 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
795 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); | |
796 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 797 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
797 unittest.expect(queryMap["altIds"], unittest.equals(arg_altIds)); | 798 unittest.expect(queryMap["altIds"], unittest.equals(arg_altIds)); |
798 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); | 799 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); |
799 unittest.expect(queryMap["altId"].first, unittest.equals(arg_altId)); | 800 unittest.expect(queryMap["altId"].first, unittest.equals(arg_altId)); |
800 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); | 801 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); |
801 unittest.expect(queryMap["territories"], unittest.equals(arg_territories
)); | 802 unittest.expect(queryMap["territories"], unittest.equals(arg_territories
)); |
802 unittest.expect(queryMap["title"].first, unittest.equals(arg_title)); | |
803 | 803 |
804 | 804 |
805 var h = { | 805 var h = { |
806 "content-type" : "application/json; charset=utf-8", | 806 "content-type" : "application/json; charset=utf-8", |
807 }; | 807 }; |
808 var resp = convert.JSON.encode(buildListAvailsResponse()); | 808 var resp = convert.JSON.encode(buildListAvailsResponse()); |
809 return new async.Future.value(stringResponse(200, h, resp)); | 809 return new async.Future.value(stringResponse(200, h, resp)); |
810 }), true); | 810 }), true); |
811 res.list(arg_accountId, pageToken: arg_pageToken, videoIds: arg_videoIds,
pageSize: arg_pageSize, altIds: arg_altIds, pphNames: arg_pphNames, altId: arg_a
ltId, studioNames: arg_studioNames, territories: arg_territories, title: arg_tit
le).then(unittest.expectAsync(((api.ListAvailsResponse response) { | 811 res.list(arg_accountId, title: arg_title, videoIds: arg_videoIds, pageToke
n: arg_pageToken, pageSize: arg_pageSize, altIds: arg_altIds, pphNames: arg_pphN
ames, altId: arg_altId, studioNames: arg_studioNames, territories: arg_territori
es).then(unittest.expectAsync(((api.ListAvailsResponse response) { |
812 checkListAvailsResponse(response); | 812 checkListAvailsResponse(response); |
813 }))); | 813 }))); |
814 }); | 814 }); |
815 | 815 |
816 }); | 816 }); |
817 | 817 |
818 | 818 |
819 unittest.group("resource-AccountsOrdersResourceApi", () { | 819 unittest.group("resource-AccountsOrdersResourceApi", () { |
820 unittest.test("method--get", () { | 820 unittest.test("method--get", () { |
821 | 821 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 res.get(arg_accountId, arg_orderId).then(unittest.expectAsync(((api.Order
response) { | 870 res.get(arg_accountId, arg_orderId).then(unittest.expectAsync(((api.Order
response) { |
871 checkOrder(response); | 871 checkOrder(response); |
872 }))); | 872 }))); |
873 }); | 873 }); |
874 | 874 |
875 unittest.test("method--list", () { | 875 unittest.test("method--list", () { |
876 | 876 |
877 var mock = new HttpServerMock(); | 877 var mock = new HttpServerMock(); |
878 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; | 878 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; |
879 var arg_accountId = "foo"; | 879 var arg_accountId = "foo"; |
880 var arg_videoIds = buildUnnamed3054(); | 880 var arg_studioNames = buildUnnamed3068(); |
| 881 var arg_name = "foo"; |
| 882 var arg_videoIds = buildUnnamed3069(); |
881 var arg_customId = "foo"; | 883 var arg_customId = "foo"; |
882 var arg_pageToken = "foo"; | 884 var arg_pageToken = "foo"; |
883 var arg_pageSize = 42; | 885 var arg_pageSize = 42; |
884 var arg_pphNames = buildUnnamed3055(); | 886 var arg_pphNames = buildUnnamed3070(); |
885 var arg_status = buildUnnamed3056(); | 887 var arg_status = buildUnnamed3071(); |
886 var arg_studioNames = buildUnnamed3057(); | |
887 var arg_name = "foo"; | |
888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
889 var path = (req.url).path; | 889 var path = (req.url).path; |
890 var pathOffset = 0; | 890 var pathOffset = 0; |
891 var index; | 891 var index; |
892 var subPart; | 892 var subPart; |
893 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 893 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
894 pathOffset += 1; | 894 pathOffset += 1; |
895 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 895 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
896 pathOffset += 12; | 896 pathOffset += 12; |
897 index = path.indexOf("/orders", pathOffset); | 897 index = path.indexOf("/orders", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
911 if (n == "false") return false; | 911 if (n == "false") return false; |
912 if (n == null) return null; | 912 if (n == null) return null; |
913 throw new core.ArgumentError("Invalid boolean: $n"); | 913 throw new core.ArgumentError("Invalid boolean: $n"); |
914 } | 914 } |
915 if (query.length > 0) { | 915 if (query.length > 0) { |
916 for (var part in query.split("&")) { | 916 for (var part in query.split("&")) { |
917 var keyvalue = part.split("="); | 917 var keyvalue = part.split("="); |
918 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 918 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
919 } | 919 } |
920 } | 920 } |
| 921 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); |
| 922 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
921 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); | 923 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); |
922 unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId
)); | 924 unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId
)); |
923 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 925 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
924 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 926 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
925 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); | 927 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); |
926 unittest.expect(queryMap["status"], unittest.equals(arg_status)); | 928 unittest.expect(queryMap["status"], unittest.equals(arg_status)); |
927 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); | |
928 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); | |
929 | 929 |
930 | 930 |
931 var h = { | 931 var h = { |
932 "content-type" : "application/json; charset=utf-8", | 932 "content-type" : "application/json; charset=utf-8", |
933 }; | 933 }; |
934 var resp = convert.JSON.encode(buildListOrdersResponse()); | 934 var resp = convert.JSON.encode(buildListOrdersResponse()); |
935 return new async.Future.value(stringResponse(200, h, resp)); | 935 return new async.Future.value(stringResponse(200, h, resp)); |
936 }), true); | 936 }), true); |
937 res.list(arg_accountId, videoIds: arg_videoIds, customId: arg_customId, pa
geToken: arg_pageToken, pageSize: arg_pageSize, pphNames: arg_pphNames, status:
arg_status, studioNames: arg_studioNames, name: arg_name).then(unittest.expectAs
ync(((api.ListOrdersResponse response) { | 937 res.list(arg_accountId, studioNames: arg_studioNames, name: arg_name, vide
oIds: arg_videoIds, customId: arg_customId, pageToken: arg_pageToken, pageSize:
arg_pageSize, pphNames: arg_pphNames, status: arg_status).then(unittest.expectAs
ync(((api.ListOrdersResponse response) { |
938 checkListOrdersResponse(response); | 938 checkListOrdersResponse(response); |
939 }))); | 939 }))); |
940 }); | 940 }); |
941 | 941 |
942 }); | 942 }); |
943 | 943 |
944 | 944 |
945 unittest.group("resource-AccountsStoreInfosResourceApi", () { | 945 unittest.group("resource-AccountsStoreInfosResourceApi", () { |
946 unittest.test("method--list", () { | 946 unittest.test("method--list", () { |
947 | 947 |
948 var mock = new HttpServerMock(); | 948 var mock = new HttpServerMock(); |
949 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; | 949 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; |
950 var arg_accountId = "foo"; | 950 var arg_accountId = "foo"; |
951 var arg_studioNames = buildUnnamed3058(); | 951 var arg_seasonIds = buildUnnamed3072(); |
| 952 var arg_pageToken = "foo"; |
| 953 var arg_videoId = "foo"; |
| 954 var arg_videoIds = buildUnnamed3073(); |
| 955 var arg_pageSize = 42; |
| 956 var arg_mids = buildUnnamed3074(); |
| 957 var arg_pphNames = buildUnnamed3075(); |
| 958 var arg_countries = buildUnnamed3076(); |
| 959 var arg_studioNames = buildUnnamed3077(); |
952 var arg_name = "foo"; | 960 var arg_name = "foo"; |
953 var arg_seasonIds = buildUnnamed3059(); | |
954 var arg_videoIds = buildUnnamed3060(); | |
955 var arg_videoId = "foo"; | |
956 var arg_pageToken = "foo"; | |
957 var arg_pageSize = 42; | |
958 var arg_mids = buildUnnamed3061(); | |
959 var arg_pphNames = buildUnnamed3062(); | |
960 var arg_countries = buildUnnamed3063(); | |
961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
962 var path = (req.url).path; | 962 var path = (req.url).path; |
963 var pathOffset = 0; | 963 var pathOffset = 0; |
964 var index; | 964 var index; |
965 var subPart; | 965 var subPart; |
966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
967 pathOffset += 1; | 967 pathOffset += 1; |
968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | 968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); |
969 pathOffset += 12; | 969 pathOffset += 12; |
970 index = path.indexOf("/storeInfos", pathOffset); | 970 index = path.indexOf("/storeInfos", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
984 if (n == "false") return false; | 984 if (n == "false") return false; |
985 if (n == null) return null; | 985 if (n == null) return null; |
986 throw new core.ArgumentError("Invalid boolean: $n"); | 986 throw new core.ArgumentError("Invalid boolean: $n"); |
987 } | 987 } |
988 if (query.length > 0) { | 988 if (query.length > 0) { |
989 for (var part in query.split("&")) { | 989 for (var part in query.split("&")) { |
990 var keyvalue = part.split("="); | 990 var keyvalue = part.split("="); |
991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
992 } | 992 } |
993 } | 993 } |
994 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); | |
995 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); | |
996 unittest.expect(queryMap["seasonIds"], unittest.equals(arg_seasonIds)); | 994 unittest.expect(queryMap["seasonIds"], unittest.equals(arg_seasonIds)); |
| 995 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 996 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; |
997 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); | 997 unittest.expect(queryMap["videoIds"], unittest.equals(arg_videoIds)); |
998 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; | |
999 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
1000 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 998 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
1001 unittest.expect(queryMap["mids"], unittest.equals(arg_mids)); | 999 unittest.expect(queryMap["mids"], unittest.equals(arg_mids)); |
1002 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); | 1000 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); |
1003 unittest.expect(queryMap["countries"], unittest.equals(arg_countries)); | 1001 unittest.expect(queryMap["countries"], unittest.equals(arg_countries)); |
| 1002 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); |
| 1003 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
1004 | 1004 |
1005 | 1005 |
1006 var h = { | 1006 var h = { |
1007 "content-type" : "application/json; charset=utf-8", | 1007 "content-type" : "application/json; charset=utf-8", |
1008 }; | 1008 }; |
1009 var resp = convert.JSON.encode(buildListStoreInfosResponse()); | 1009 var resp = convert.JSON.encode(buildListStoreInfosResponse()); |
1010 return new async.Future.value(stringResponse(200, h, resp)); | 1010 return new async.Future.value(stringResponse(200, h, resp)); |
1011 }), true); | 1011 }), true); |
1012 res.list(arg_accountId, studioNames: arg_studioNames, name: arg_name, seas
onIds: arg_seasonIds, videoIds: arg_videoIds, videoId: arg_videoId, pageToken: a
rg_pageToken, pageSize: arg_pageSize, mids: arg_mids, pphNames: arg_pphNames, co
untries: arg_countries).then(unittest.expectAsync(((api.ListStoreInfosResponse r
esponse) { | 1012 res.list(arg_accountId, seasonIds: arg_seasonIds, pageToken: arg_pageToken
, videoId: arg_videoId, videoIds: arg_videoIds, pageSize: arg_pageSize, mids: ar
g_mids, pphNames: arg_pphNames, countries: arg_countries, studioNames: arg_studi
oNames, name: arg_name).then(unittest.expectAsync(((api.ListStoreInfosResponse r
esponse) { |
1013 checkListStoreInfosResponse(response); | 1013 checkListStoreInfosResponse(response); |
1014 }))); | 1014 }))); |
1015 }); | 1015 }); |
1016 | 1016 |
1017 }); | 1017 }); |
1018 | 1018 |
1019 | 1019 |
1020 unittest.group("resource-AccountsStoreInfosCountryResourceApi", () { | 1020 unittest.group("resource-AccountsStoreInfosCountryResourceApi", () { |
1021 unittest.test("method--get", () { | 1021 unittest.test("method--get", () { |
1022 | 1022 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 res.get(arg_accountId, arg_videoId, arg_country).then(unittest.expectAsync
(((api.StoreInfo response) { | 1079 res.get(arg_accountId, arg_videoId, arg_country).then(unittest.expectAsync
(((api.StoreInfo response) { |
1080 checkStoreInfo(response); | 1080 checkStoreInfo(response); |
1081 }))); | 1081 }))); |
1082 }); | 1082 }); |
1083 | 1083 |
1084 }); | 1084 }); |
1085 | 1085 |
1086 | 1086 |
1087 } | 1087 } |
1088 | 1088 |
OLD | NEW |