| 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 buildUnnamed3019() { | 54 buildUnnamed3020() { |
| 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 checkUnnamed3019(core.List<core.String> o) { | 61 checkUnnamed3020(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 = buildUnnamed3019(); | 85 o.pphNames = buildUnnamed3020(); |
| 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 checkUnnamed3019(o.pphNames); | 126 checkUnnamed3020(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 buildUnnamed3020() { | |
| 151 var o = new core.List<core.String>(); | |
| 152 o.add("foo"); | |
| 153 o.add("foo"); | |
| 154 return o; | |
| 155 } | |
| 156 | |
| 157 checkUnnamed3020(core.List<core.String> o) { | |
| 158 unittest.expect(o, unittest.hasLength(2)); | |
| 159 unittest.expect(o[0], unittest.equals('foo')); | |
| 160 unittest.expect(o[1], unittest.equals('foo')); | |
| 161 } | |
| 162 | |
| 163 buildUnnamed3021() { | 150 buildUnnamed3021() { |
| 164 var o = new core.List<core.String>(); | |
| 165 o.add("foo"); | |
| 166 o.add("foo"); | |
| 167 return o; | |
| 168 } | |
| 169 | |
| 170 checkUnnamed3021(core.List<core.String> o) { | |
| 171 unittest.expect(o, unittest.hasLength(2)); | |
| 172 unittest.expect(o[0], unittest.equals('foo')); | |
| 173 unittest.expect(o[1], unittest.equals('foo')); | |
| 174 } | |
| 175 | |
| 176 buildUnnamed3022() { | |
| 177 var o = new core.List<core.String>(); | |
| 178 o.add("foo"); | |
| 179 o.add("foo"); | |
| 180 return o; | |
| 181 } | |
| 182 | |
| 183 checkUnnamed3022(core.List<core.String> o) { | |
| 184 unittest.expect(o, unittest.hasLength(2)); | |
| 185 unittest.expect(o[0], unittest.equals('foo')); | |
| 186 unittest.expect(o[1], unittest.equals('foo')); | |
| 187 } | |
| 188 | |
| 189 buildUnnamed3023() { | |
| 190 var o = new core.List<core.String>(); | |
| 191 o.add("foo"); | |
| 192 o.add("foo"); | |
| 193 return o; | |
| 194 } | |
| 195 | |
| 196 checkUnnamed3023(core.List<core.String> o) { | |
| 197 unittest.expect(o, unittest.hasLength(2)); | |
| 198 unittest.expect(o[0], unittest.equals('foo')); | |
| 199 unittest.expect(o[1], unittest.equals('foo')); | |
| 200 } | |
| 201 | |
| 202 buildUnnamed3024() { | |
| 203 var o = new core.List<core.String>(); | |
| 204 o.add("foo"); | |
| 205 o.add("foo"); | |
| 206 return o; | |
| 207 } | |
| 208 | |
| 209 checkUnnamed3024(core.List<core.String> o) { | |
| 210 unittest.expect(o, unittest.hasLength(2)); | |
| 211 unittest.expect(o[0], unittest.equals('foo')); | |
| 212 unittest.expect(o[1], unittest.equals('foo')); | |
| 213 } | |
| 214 | |
| 215 buildUnnamed3025() { | |
| 216 var o = new core.List<core.String>(); | |
| 217 o.add("foo"); | |
| 218 o.add("foo"); | |
| 219 return o; | |
| 220 } | |
| 221 | |
| 222 checkUnnamed3025(core.List<core.String> o) { | |
| 223 unittest.expect(o, unittest.hasLength(2)); | |
| 224 unittest.expect(o[0], unittest.equals('foo')); | |
| 225 unittest.expect(o[1], unittest.equals('foo')); | |
| 226 } | |
| 227 | |
| 228 core.int buildCounterComponent = 0; | |
| 229 buildComponent() { | |
| 230 var o = new api.Component(); | |
| 231 buildCounterComponent++; | |
| 232 if (buildCounterComponent < 3) { | |
| 233 o.altCutIds = buildUnnamed3020(); | |
| 234 o.approvedTime = "foo"; | |
| 235 o.componentDetailType = "foo"; | |
| 236 o.componentId = "foo"; | |
| 237 o.customIds = buildUnnamed3021(); | |
| 238 o.editLevelEidrs = buildUnnamed3022(); | |
| 239 o.elIds = buildUnnamed3023(); | |
| 240 o.filename = "foo"; | |
| 241 o.language = "foo"; | |
| 242 o.name = "foo"; | |
| 243 o.normalizedPriority = "foo"; | |
| 244 o.playableUnitType = "foo"; | |
| 245 o.pphName = "foo"; | |
| 246 o.priority = 42.0; | |
| 247 o.processingErrors = buildUnnamed3024(); | |
| 248 o.receivedTime = "foo"; | |
| 249 o.rejectionNote = "foo"; | |
| 250 o.status = "foo"; | |
| 251 o.statusDetail = "foo"; | |
| 252 o.studioName = "foo"; | |
| 253 o.titleLevelEidrs = buildUnnamed3025(); | |
| 254 o.type = "foo"; | |
| 255 } | |
| 256 buildCounterComponent--; | |
| 257 return o; | |
| 258 } | |
| 259 | |
| 260 checkComponent(api.Component o) { | |
| 261 buildCounterComponent++; | |
| 262 if (buildCounterComponent < 3) { | |
| 263 checkUnnamed3020(o.altCutIds); | |
| 264 unittest.expect(o.approvedTime, unittest.equals('foo')); | |
| 265 unittest.expect(o.componentDetailType, unittest.equals('foo')); | |
| 266 unittest.expect(o.componentId, unittest.equals('foo')); | |
| 267 checkUnnamed3021(o.customIds); | |
| 268 checkUnnamed3022(o.editLevelEidrs); | |
| 269 checkUnnamed3023(o.elIds); | |
| 270 unittest.expect(o.filename, unittest.equals('foo')); | |
| 271 unittest.expect(o.language, unittest.equals('foo')); | |
| 272 unittest.expect(o.name, unittest.equals('foo')); | |
| 273 unittest.expect(o.normalizedPriority, unittest.equals('foo')); | |
| 274 unittest.expect(o.playableUnitType, unittest.equals('foo')); | |
| 275 unittest.expect(o.pphName, unittest.equals('foo')); | |
| 276 unittest.expect(o.priority, unittest.equals(42.0)); | |
| 277 checkUnnamed3024(o.processingErrors); | |
| 278 unittest.expect(o.receivedTime, unittest.equals('foo')); | |
| 279 unittest.expect(o.rejectionNote, unittest.equals('foo')); | |
| 280 unittest.expect(o.status, unittest.equals('foo')); | |
| 281 unittest.expect(o.statusDetail, unittest.equals('foo')); | |
| 282 unittest.expect(o.studioName, unittest.equals('foo')); | |
| 283 checkUnnamed3025(o.titleLevelEidrs); | |
| 284 unittest.expect(o.type, unittest.equals('foo')); | |
| 285 } | |
| 286 buildCounterComponent--; | |
| 287 } | |
| 288 | |
| 289 buildUnnamed3026() { | |
| 290 var o = new core.List<core.String>(); | |
| 291 o.add("foo"); | |
| 292 o.add("foo"); | |
| 293 return o; | |
| 294 } | |
| 295 | |
| 296 checkUnnamed3026(core.List<core.String> o) { | |
| 297 unittest.expect(o, unittest.hasLength(2)); | |
| 298 unittest.expect(o[0], unittest.equals('foo')); | |
| 299 unittest.expect(o[1], unittest.equals('foo')); | |
| 300 } | |
| 301 | |
| 302 buildUnnamed3027() { | |
| 303 var o = new core.List<core.String>(); | |
| 304 o.add("foo"); | |
| 305 o.add("foo"); | |
| 306 return o; | |
| 307 } | |
| 308 | |
| 309 checkUnnamed3027(core.List<core.String> o) { | |
| 310 unittest.expect(o, unittest.hasLength(2)); | |
| 311 unittest.expect(o[0], unittest.equals('foo')); | |
| 312 unittest.expect(o[1], unittest.equals('foo')); | |
| 313 } | |
| 314 | |
| 315 core.int buildCounterExperienceLocale = 0; | |
| 316 buildExperienceLocale() { | |
| 317 var o = new api.ExperienceLocale(); | |
| 318 buildCounterExperienceLocale++; | |
| 319 if (buildCounterExperienceLocale < 3) { | |
| 320 o.altCutId = "foo"; | |
| 321 o.approvedTime = "foo"; | |
| 322 o.channelId = "foo"; | |
| 323 o.country = "foo"; | |
| 324 o.createdTime = "foo"; | |
| 325 o.customIds = buildUnnamed3026(); | |
| 326 o.earliestAvailStartTime = "foo"; | |
| 327 o.editLevelEidr = "foo"; | |
| 328 o.elId = "foo"; | |
| 329 o.inventoryId = "foo"; | |
| 330 o.language = "foo"; | |
| 331 o.name = "foo"; | |
| 332 o.normalizedPriority = "foo"; | |
| 333 o.playableSequenceId = "foo"; | |
| 334 o.pphNames = buildUnnamed3027(); | |
| 335 o.presentationId = "foo"; | |
| 336 o.priority = 42.0; | |
| 337 o.status = "foo"; | |
| 338 o.studioName = "foo"; | |
| 339 o.titleLevelEidr = "foo"; | |
| 340 o.trailerId = "foo"; | |
| 341 o.type = "foo"; | |
| 342 o.videoId = "foo"; | |
| 343 } | |
| 344 buildCounterExperienceLocale--; | |
| 345 return o; | |
| 346 } | |
| 347 | |
| 348 checkExperienceLocale(api.ExperienceLocale o) { | |
| 349 buildCounterExperienceLocale++; | |
| 350 if (buildCounterExperienceLocale < 3) { | |
| 351 unittest.expect(o.altCutId, unittest.equals('foo')); | |
| 352 unittest.expect(o.approvedTime, unittest.equals('foo')); | |
| 353 unittest.expect(o.channelId, unittest.equals('foo')); | |
| 354 unittest.expect(o.country, unittest.equals('foo')); | |
| 355 unittest.expect(o.createdTime, unittest.equals('foo')); | |
| 356 checkUnnamed3026(o.customIds); | |
| 357 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); | |
| 358 unittest.expect(o.editLevelEidr, unittest.equals('foo')); | |
| 359 unittest.expect(o.elId, unittest.equals('foo')); | |
| 360 unittest.expect(o.inventoryId, unittest.equals('foo')); | |
| 361 unittest.expect(o.language, unittest.equals('foo')); | |
| 362 unittest.expect(o.name, unittest.equals('foo')); | |
| 363 unittest.expect(o.normalizedPriority, unittest.equals('foo')); | |
| 364 unittest.expect(o.playableSequenceId, unittest.equals('foo')); | |
| 365 checkUnnamed3027(o.pphNames); | |
| 366 unittest.expect(o.presentationId, unittest.equals('foo')); | |
| 367 unittest.expect(o.priority, unittest.equals(42.0)); | |
| 368 unittest.expect(o.status, unittest.equals('foo')); | |
| 369 unittest.expect(o.studioName, unittest.equals('foo')); | |
| 370 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); | |
| 371 unittest.expect(o.trailerId, unittest.equals('foo')); | |
| 372 unittest.expect(o.type, unittest.equals('foo')); | |
| 373 unittest.expect(o.videoId, unittest.equals('foo')); | |
| 374 } | |
| 375 buildCounterExperienceLocale--; | |
| 376 } | |
| 377 | |
| 378 buildUnnamed3028() { | |
| 379 var o = new core.List<api.Avail>(); | 151 var o = new core.List<api.Avail>(); |
| 380 o.add(buildAvail()); | 152 o.add(buildAvail()); |
| 381 o.add(buildAvail()); | 153 o.add(buildAvail()); |
| 382 return o; | 154 return o; |
| 383 } | 155 } |
| 384 | 156 |
| 385 checkUnnamed3028(core.List<api.Avail> o) { | 157 checkUnnamed3021(core.List<api.Avail> o) { |
| 386 unittest.expect(o, unittest.hasLength(2)); | 158 unittest.expect(o, unittest.hasLength(2)); |
| 387 checkAvail(o[0]); | 159 checkAvail(o[0]); |
| 388 checkAvail(o[1]); | 160 checkAvail(o[1]); |
| 389 } | 161 } |
| 390 | 162 |
| 391 core.int buildCounterListAvailsResponse = 0; | 163 core.int buildCounterListAvailsResponse = 0; |
| 392 buildListAvailsResponse() { | 164 buildListAvailsResponse() { |
| 393 var o = new api.ListAvailsResponse(); | 165 var o = new api.ListAvailsResponse(); |
| 394 buildCounterListAvailsResponse++; | 166 buildCounterListAvailsResponse++; |
| 395 if (buildCounterListAvailsResponse < 3) { | 167 if (buildCounterListAvailsResponse < 3) { |
| 396 o.avails = buildUnnamed3028(); | 168 o.avails = buildUnnamed3021(); |
| 397 o.nextPageToken = "foo"; | 169 o.nextPageToken = "foo"; |
| 398 o.totalSize = 42; | 170 o.totalSize = 42; |
| 399 } | 171 } |
| 400 buildCounterListAvailsResponse--; | 172 buildCounterListAvailsResponse--; |
| 401 return o; | 173 return o; |
| 402 } | 174 } |
| 403 | 175 |
| 404 checkListAvailsResponse(api.ListAvailsResponse o) { | 176 checkListAvailsResponse(api.ListAvailsResponse o) { |
| 405 buildCounterListAvailsResponse++; | 177 buildCounterListAvailsResponse++; |
| 406 if (buildCounterListAvailsResponse < 3) { | 178 if (buildCounterListAvailsResponse < 3) { |
| 407 checkUnnamed3028(o.avails); | 179 checkUnnamed3021(o.avails); |
| 408 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 180 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 409 unittest.expect(o.totalSize, unittest.equals(42)); | 181 unittest.expect(o.totalSize, unittest.equals(42)); |
| 410 } | 182 } |
| 411 buildCounterListAvailsResponse--; | 183 buildCounterListAvailsResponse--; |
| 412 } | 184 } |
| 413 | 185 |
| 414 buildUnnamed3029() { | 186 buildUnnamed3022() { |
| 415 var o = new core.List<api.Component>(); | |
| 416 o.add(buildComponent()); | |
| 417 o.add(buildComponent()); | |
| 418 return o; | |
| 419 } | |
| 420 | |
| 421 checkUnnamed3029(core.List<api.Component> o) { | |
| 422 unittest.expect(o, unittest.hasLength(2)); | |
| 423 checkComponent(o[0]); | |
| 424 checkComponent(o[1]); | |
| 425 } | |
| 426 | |
| 427 core.int buildCounterListComponentsResponse = 0; | |
| 428 buildListComponentsResponse() { | |
| 429 var o = new api.ListComponentsResponse(); | |
| 430 buildCounterListComponentsResponse++; | |
| 431 if (buildCounterListComponentsResponse < 3) { | |
| 432 o.components = buildUnnamed3029(); | |
| 433 o.nextPageToken = "foo"; | |
| 434 o.totalSize = 42; | |
| 435 } | |
| 436 buildCounterListComponentsResponse--; | |
| 437 return o; | |
| 438 } | |
| 439 | |
| 440 checkListComponentsResponse(api.ListComponentsResponse o) { | |
| 441 buildCounterListComponentsResponse++; | |
| 442 if (buildCounterListComponentsResponse < 3) { | |
| 443 checkUnnamed3029(o.components); | |
| 444 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
| 445 unittest.expect(o.totalSize, unittest.equals(42)); | |
| 446 } | |
| 447 buildCounterListComponentsResponse--; | |
| 448 } | |
| 449 | |
| 450 buildUnnamed3030() { | |
| 451 var o = new core.List<api.ExperienceLocale>(); | |
| 452 o.add(buildExperienceLocale()); | |
| 453 o.add(buildExperienceLocale()); | |
| 454 return o; | |
| 455 } | |
| 456 | |
| 457 checkUnnamed3030(core.List<api.ExperienceLocale> o) { | |
| 458 unittest.expect(o, unittest.hasLength(2)); | |
| 459 checkExperienceLocale(o[0]); | |
| 460 checkExperienceLocale(o[1]); | |
| 461 } | |
| 462 | |
| 463 core.int buildCounterListExperienceLocalesResponse = 0; | |
| 464 buildListExperienceLocalesResponse() { | |
| 465 var o = new api.ListExperienceLocalesResponse(); | |
| 466 buildCounterListExperienceLocalesResponse++; | |
| 467 if (buildCounterListExperienceLocalesResponse < 3) { | |
| 468 o.experienceLocales = buildUnnamed3030(); | |
| 469 o.nextPageToken = "foo"; | |
| 470 o.totalSize = 42; | |
| 471 } | |
| 472 buildCounterListExperienceLocalesResponse--; | |
| 473 return o; | |
| 474 } | |
| 475 | |
| 476 checkListExperienceLocalesResponse(api.ListExperienceLocalesResponse o) { | |
| 477 buildCounterListExperienceLocalesResponse++; | |
| 478 if (buildCounterListExperienceLocalesResponse < 3) { | |
| 479 checkUnnamed3030(o.experienceLocales); | |
| 480 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
| 481 unittest.expect(o.totalSize, unittest.equals(42)); | |
| 482 } | |
| 483 buildCounterListExperienceLocalesResponse--; | |
| 484 } | |
| 485 | |
| 486 buildUnnamed3031() { | |
| 487 var o = new core.List<api.Order>(); | 187 var o = new core.List<api.Order>(); |
| 488 o.add(buildOrder()); | 188 o.add(buildOrder()); |
| 489 o.add(buildOrder()); | 189 o.add(buildOrder()); |
| 490 return o; | 190 return o; |
| 491 } | 191 } |
| 492 | 192 |
| 493 checkUnnamed3031(core.List<api.Order> o) { | 193 checkUnnamed3022(core.List<api.Order> o) { |
| 494 unittest.expect(o, unittest.hasLength(2)); | 194 unittest.expect(o, unittest.hasLength(2)); |
| 495 checkOrder(o[0]); | 195 checkOrder(o[0]); |
| 496 checkOrder(o[1]); | 196 checkOrder(o[1]); |
| 497 } | 197 } |
| 498 | 198 |
| 499 core.int buildCounterListOrdersResponse = 0; | 199 core.int buildCounterListOrdersResponse = 0; |
| 500 buildListOrdersResponse() { | 200 buildListOrdersResponse() { |
| 501 var o = new api.ListOrdersResponse(); | 201 var o = new api.ListOrdersResponse(); |
| 502 buildCounterListOrdersResponse++; | 202 buildCounterListOrdersResponse++; |
| 503 if (buildCounterListOrdersResponse < 3) { | 203 if (buildCounterListOrdersResponse < 3) { |
| 504 o.nextPageToken = "foo"; | 204 o.nextPageToken = "foo"; |
| 505 o.orders = buildUnnamed3031(); | 205 o.orders = buildUnnamed3022(); |
| 506 o.totalSize = 42; | 206 o.totalSize = 42; |
| 507 } | 207 } |
| 508 buildCounterListOrdersResponse--; | 208 buildCounterListOrdersResponse--; |
| 509 return o; | 209 return o; |
| 510 } | 210 } |
| 511 | 211 |
| 512 checkListOrdersResponse(api.ListOrdersResponse o) { | 212 checkListOrdersResponse(api.ListOrdersResponse o) { |
| 513 buildCounterListOrdersResponse++; | 213 buildCounterListOrdersResponse++; |
| 514 if (buildCounterListOrdersResponse < 3) { | 214 if (buildCounterListOrdersResponse < 3) { |
| 515 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 215 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 516 checkUnnamed3031(o.orders); | 216 checkUnnamed3022(o.orders); |
| 517 unittest.expect(o.totalSize, unittest.equals(42)); | 217 unittest.expect(o.totalSize, unittest.equals(42)); |
| 518 } | 218 } |
| 519 buildCounterListOrdersResponse--; | 219 buildCounterListOrdersResponse--; |
| 520 } | 220 } |
| 521 | 221 |
| 522 buildUnnamed3032() { | 222 buildUnnamed3023() { |
| 523 var o = new core.List<api.StoreInfo>(); | 223 var o = new core.List<api.StoreInfo>(); |
| 524 o.add(buildStoreInfo()); | 224 o.add(buildStoreInfo()); |
| 525 o.add(buildStoreInfo()); | 225 o.add(buildStoreInfo()); |
| 526 return o; | 226 return o; |
| 527 } | 227 } |
| 528 | 228 |
| 529 checkUnnamed3032(core.List<api.StoreInfo> o) { | 229 checkUnnamed3023(core.List<api.StoreInfo> o) { |
| 530 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 531 checkStoreInfo(o[0]); | 231 checkStoreInfo(o[0]); |
| 532 checkStoreInfo(o[1]); | 232 checkStoreInfo(o[1]); |
| 533 } | 233 } |
| 534 | 234 |
| 535 core.int buildCounterListStoreInfosResponse = 0; | 235 core.int buildCounterListStoreInfosResponse = 0; |
| 536 buildListStoreInfosResponse() { | 236 buildListStoreInfosResponse() { |
| 537 var o = new api.ListStoreInfosResponse(); | 237 var o = new api.ListStoreInfosResponse(); |
| 538 buildCounterListStoreInfosResponse++; | 238 buildCounterListStoreInfosResponse++; |
| 539 if (buildCounterListStoreInfosResponse < 3) { | 239 if (buildCounterListStoreInfosResponse < 3) { |
| 540 o.nextPageToken = "foo"; | 240 o.nextPageToken = "foo"; |
| 541 o.storeInfos = buildUnnamed3032(); | 241 o.storeInfos = buildUnnamed3023(); |
| 542 o.totalSize = 42; | 242 o.totalSize = 42; |
| 543 } | 243 } |
| 544 buildCounterListStoreInfosResponse--; | 244 buildCounterListStoreInfosResponse--; |
| 545 return o; | 245 return o; |
| 546 } | 246 } |
| 547 | 247 |
| 548 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { | 248 checkListStoreInfosResponse(api.ListStoreInfosResponse o) { |
| 549 buildCounterListStoreInfosResponse++; | 249 buildCounterListStoreInfosResponse++; |
| 550 if (buildCounterListStoreInfosResponse < 3) { | 250 if (buildCounterListStoreInfosResponse < 3) { |
| 551 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 251 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 552 checkUnnamed3032(o.storeInfos); | 252 checkUnnamed3023(o.storeInfos); |
| 553 unittest.expect(o.totalSize, unittest.equals(42)); | 253 unittest.expect(o.totalSize, unittest.equals(42)); |
| 554 } | 254 } |
| 555 buildCounterListStoreInfosResponse--; | 255 buildCounterListStoreInfosResponse--; |
| 556 } | 256 } |
| 557 | 257 |
| 558 buildUnnamed3033() { | 258 buildUnnamed3024() { |
| 559 var o = new core.List<core.String>(); | 259 var o = new core.List<core.String>(); |
| 560 o.add("foo"); | 260 o.add("foo"); |
| 561 o.add("foo"); | 261 o.add("foo"); |
| 562 return o; | 262 return o; |
| 563 } | 263 } |
| 564 | 264 |
| 565 checkUnnamed3033(core.List<core.String> o) { | 265 checkUnnamed3024(core.List<core.String> o) { |
| 566 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 567 unittest.expect(o[0], unittest.equals('foo')); | 267 unittest.expect(o[0], unittest.equals('foo')); |
| 568 unittest.expect(o[1], unittest.equals('foo')); | 268 unittest.expect(o[1], unittest.equals('foo')); |
| 569 } | 269 } |
| 570 | 270 |
| 571 core.int buildCounterOrder = 0; | 271 core.int buildCounterOrder = 0; |
| 572 buildOrder() { | 272 buildOrder() { |
| 573 var o = new api.Order(); | 273 var o = new api.Order(); |
| 574 buildCounterOrder++; | 274 buildCounterOrder++; |
| 575 if (buildCounterOrder < 3) { | 275 if (buildCounterOrder < 3) { |
| 576 o.approvedTime = "foo"; | 276 o.approvedTime = "foo"; |
| 577 o.channelId = "foo"; | 277 o.channelId = "foo"; |
| 578 o.channelName = "foo"; | 278 o.channelName = "foo"; |
| 579 o.countries = buildUnnamed3033(); | 279 o.countries = buildUnnamed3024(); |
| 580 o.customId = "foo"; | 280 o.customId = "foo"; |
| 581 o.earliestAvailStartTime = "foo"; | 281 o.earliestAvailStartTime = "foo"; |
| 582 o.episodeName = "foo"; | 282 o.episodeName = "foo"; |
| 583 o.legacyPriority = "foo"; | 283 o.legacyPriority = "foo"; |
| 584 o.name = "foo"; | 284 o.name = "foo"; |
| 585 o.normalizedPriority = "foo"; | 285 o.normalizedPriority = "foo"; |
| 586 o.orderId = "foo"; | 286 o.orderId = "foo"; |
| 587 o.orderedTime = "foo"; | 287 o.orderedTime = "foo"; |
| 588 o.pphName = "foo"; | 288 o.pphName = "foo"; |
| 589 o.priority = 42.0; | 289 o.priority = 42.0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 600 buildCounterOrder--; | 300 buildCounterOrder--; |
| 601 return o; | 301 return o; |
| 602 } | 302 } |
| 603 | 303 |
| 604 checkOrder(api.Order o) { | 304 checkOrder(api.Order o) { |
| 605 buildCounterOrder++; | 305 buildCounterOrder++; |
| 606 if (buildCounterOrder < 3) { | 306 if (buildCounterOrder < 3) { |
| 607 unittest.expect(o.approvedTime, unittest.equals('foo')); | 307 unittest.expect(o.approvedTime, unittest.equals('foo')); |
| 608 unittest.expect(o.channelId, unittest.equals('foo')); | 308 unittest.expect(o.channelId, unittest.equals('foo')); |
| 609 unittest.expect(o.channelName, unittest.equals('foo')); | 309 unittest.expect(o.channelName, unittest.equals('foo')); |
| 610 checkUnnamed3033(o.countries); | 310 checkUnnamed3024(o.countries); |
| 611 unittest.expect(o.customId, unittest.equals('foo')); | 311 unittest.expect(o.customId, unittest.equals('foo')); |
| 612 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); | 312 unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); |
| 613 unittest.expect(o.episodeName, unittest.equals('foo')); | 313 unittest.expect(o.episodeName, unittest.equals('foo')); |
| 614 unittest.expect(o.legacyPriority, unittest.equals('foo')); | 314 unittest.expect(o.legacyPriority, unittest.equals('foo')); |
| 615 unittest.expect(o.name, unittest.equals('foo')); | 315 unittest.expect(o.name, unittest.equals('foo')); |
| 616 unittest.expect(o.normalizedPriority, unittest.equals('foo')); | 316 unittest.expect(o.normalizedPriority, unittest.equals('foo')); |
| 617 unittest.expect(o.orderId, unittest.equals('foo')); | 317 unittest.expect(o.orderId, unittest.equals('foo')); |
| 618 unittest.expect(o.orderedTime, unittest.equals('foo')); | 318 unittest.expect(o.orderedTime, unittest.equals('foo')); |
| 619 unittest.expect(o.pphName, unittest.equals('foo')); | 319 unittest.expect(o.pphName, unittest.equals('foo')); |
| 620 unittest.expect(o.priority, unittest.equals(42.0)); | 320 unittest.expect(o.priority, unittest.equals(42.0)); |
| 621 unittest.expect(o.receivedTime, unittest.equals('foo')); | 321 unittest.expect(o.receivedTime, unittest.equals('foo')); |
| 622 unittest.expect(o.rejectionNote, unittest.equals('foo')); | 322 unittest.expect(o.rejectionNote, unittest.equals('foo')); |
| 623 unittest.expect(o.seasonName, unittest.equals('foo')); | 323 unittest.expect(o.seasonName, unittest.equals('foo')); |
| 624 unittest.expect(o.showName, unittest.equals('foo')); | 324 unittest.expect(o.showName, unittest.equals('foo')); |
| 625 unittest.expect(o.status, unittest.equals('foo')); | 325 unittest.expect(o.status, unittest.equals('foo')); |
| 626 unittest.expect(o.statusDetail, unittest.equals('foo')); | 326 unittest.expect(o.statusDetail, unittest.equals('foo')); |
| 627 unittest.expect(o.studioName, unittest.equals('foo')); | 327 unittest.expect(o.studioName, unittest.equals('foo')); |
| 628 unittest.expect(o.type, unittest.equals('foo')); | 328 unittest.expect(o.type, unittest.equals('foo')); |
| 629 unittest.expect(o.videoId, unittest.equals('foo')); | 329 unittest.expect(o.videoId, unittest.equals('foo')); |
| 630 } | 330 } |
| 631 buildCounterOrder--; | 331 buildCounterOrder--; |
| 632 } | 332 } |
| 633 | 333 |
| 634 buildUnnamed3034() { | 334 buildUnnamed3025() { |
| 635 var o = new core.List<core.String>(); | 335 var o = new core.List<core.String>(); |
| 636 o.add("foo"); | 336 o.add("foo"); |
| 637 o.add("foo"); | 337 o.add("foo"); |
| 638 return o; | 338 return o; |
| 639 } | 339 } |
| 640 | 340 |
| 641 checkUnnamed3034(core.List<core.String> o) { | 341 checkUnnamed3025(core.List<core.String> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 342 unittest.expect(o, unittest.hasLength(2)); |
| 643 unittest.expect(o[0], unittest.equals('foo')); | 343 unittest.expect(o[0], unittest.equals('foo')); |
| 644 unittest.expect(o[1], unittest.equals('foo')); | 344 unittest.expect(o[1], unittest.equals('foo')); |
| 645 } | 345 } |
| 646 | 346 |
| 647 buildUnnamed3035() { | 347 buildUnnamed3026() { |
| 648 var o = new core.List<core.String>(); | 348 var o = new core.List<core.String>(); |
| 649 o.add("foo"); | 349 o.add("foo"); |
| 650 o.add("foo"); | 350 o.add("foo"); |
| 651 return o; | 351 return o; |
| 652 } | 352 } |
| 653 | 353 |
| 654 checkUnnamed3035(core.List<core.String> o) { | 354 checkUnnamed3026(core.List<core.String> o) { |
| 655 unittest.expect(o, unittest.hasLength(2)); | 355 unittest.expect(o, unittest.hasLength(2)); |
| 656 unittest.expect(o[0], unittest.equals('foo')); | 356 unittest.expect(o[0], unittest.equals('foo')); |
| 657 unittest.expect(o[1], unittest.equals('foo')); | 357 unittest.expect(o[1], unittest.equals('foo')); |
| 658 } | 358 } |
| 659 | 359 |
| 660 buildUnnamed3036() { | 360 buildUnnamed3027() { |
| 661 var o = new core.List<core.String>(); | 361 var o = new core.List<core.String>(); |
| 662 o.add("foo"); | 362 o.add("foo"); |
| 663 o.add("foo"); | 363 o.add("foo"); |
| 664 return o; | 364 return o; |
| 665 } | 365 } |
| 666 | 366 |
| 667 checkUnnamed3036(core.List<core.String> o) { | 367 checkUnnamed3027(core.List<core.String> o) { |
| 668 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
| 669 unittest.expect(o[0], unittest.equals('foo')); | 369 unittest.expect(o[0], unittest.equals('foo')); |
| 670 unittest.expect(o[1], unittest.equals('foo')); | 370 unittest.expect(o[1], unittest.equals('foo')); |
| 671 } | 371 } |
| 672 | 372 |
| 673 core.int buildCounterStoreInfo = 0; | 373 core.int buildCounterStoreInfo = 0; |
| 674 buildStoreInfo() { | 374 buildStoreInfo() { |
| 675 var o = new api.StoreInfo(); | 375 var o = new api.StoreInfo(); |
| 676 buildCounterStoreInfo++; | 376 buildCounterStoreInfo++; |
| 677 if (buildCounterStoreInfo < 3) { | 377 if (buildCounterStoreInfo < 3) { |
| 678 o.audioTracks = buildUnnamed3034(); | 378 o.audioTracks = buildUnnamed3025(); |
| 679 o.country = "foo"; | 379 o.country = "foo"; |
| 680 o.editLevelEidr = "foo"; | 380 o.editLevelEidr = "foo"; |
| 681 o.episodeNumber = "foo"; | 381 o.episodeNumber = "foo"; |
| 682 o.hasAudio51 = true; | 382 o.hasAudio51 = true; |
| 683 o.hasEstOffer = true; | 383 o.hasEstOffer = true; |
| 684 o.hasHdOffer = true; | 384 o.hasHdOffer = true; |
| 685 o.hasInfoCards = true; | 385 o.hasInfoCards = true; |
| 686 o.hasSdOffer = true; | 386 o.hasSdOffer = true; |
| 687 o.hasVodOffer = true; | 387 o.hasVodOffer = true; |
| 688 o.liveTime = "foo"; | 388 o.liveTime = "foo"; |
| 689 o.mid = "foo"; | 389 o.mid = "foo"; |
| 690 o.name = "foo"; | 390 o.name = "foo"; |
| 691 o.pphNames = buildUnnamed3035(); | 391 o.pphNames = buildUnnamed3026(); |
| 692 o.seasonId = "foo"; | 392 o.seasonId = "foo"; |
| 693 o.seasonName = "foo"; | 393 o.seasonName = "foo"; |
| 694 o.seasonNumber = "foo"; | 394 o.seasonNumber = "foo"; |
| 695 o.showId = "foo"; | 395 o.showId = "foo"; |
| 696 o.showName = "foo"; | 396 o.showName = "foo"; |
| 697 o.studioName = "foo"; | 397 o.studioName = "foo"; |
| 698 o.subtitles = buildUnnamed3036(); | 398 o.subtitles = buildUnnamed3027(); |
| 699 o.titleLevelEidr = "foo"; | 399 o.titleLevelEidr = "foo"; |
| 700 o.trailerId = "foo"; | 400 o.trailerId = "foo"; |
| 701 o.type = "foo"; | 401 o.type = "foo"; |
| 702 o.videoId = "foo"; | 402 o.videoId = "foo"; |
| 703 } | 403 } |
| 704 buildCounterStoreInfo--; | 404 buildCounterStoreInfo--; |
| 705 return o; | 405 return o; |
| 706 } | 406 } |
| 707 | 407 |
| 708 checkStoreInfo(api.StoreInfo o) { | 408 checkStoreInfo(api.StoreInfo o) { |
| 709 buildCounterStoreInfo++; | 409 buildCounterStoreInfo++; |
| 710 if (buildCounterStoreInfo < 3) { | 410 if (buildCounterStoreInfo < 3) { |
| 711 checkUnnamed3034(o.audioTracks); | 411 checkUnnamed3025(o.audioTracks); |
| 712 unittest.expect(o.country, unittest.equals('foo')); | 412 unittest.expect(o.country, unittest.equals('foo')); |
| 713 unittest.expect(o.editLevelEidr, unittest.equals('foo')); | 413 unittest.expect(o.editLevelEidr, unittest.equals('foo')); |
| 714 unittest.expect(o.episodeNumber, unittest.equals('foo')); | 414 unittest.expect(o.episodeNumber, unittest.equals('foo')); |
| 715 unittest.expect(o.hasAudio51, unittest.isTrue); | 415 unittest.expect(o.hasAudio51, unittest.isTrue); |
| 716 unittest.expect(o.hasEstOffer, unittest.isTrue); | 416 unittest.expect(o.hasEstOffer, unittest.isTrue); |
| 717 unittest.expect(o.hasHdOffer, unittest.isTrue); | 417 unittest.expect(o.hasHdOffer, unittest.isTrue); |
| 718 unittest.expect(o.hasInfoCards, unittest.isTrue); | 418 unittest.expect(o.hasInfoCards, unittest.isTrue); |
| 719 unittest.expect(o.hasSdOffer, unittest.isTrue); | 419 unittest.expect(o.hasSdOffer, unittest.isTrue); |
| 720 unittest.expect(o.hasVodOffer, unittest.isTrue); | 420 unittest.expect(o.hasVodOffer, unittest.isTrue); |
| 721 unittest.expect(o.liveTime, unittest.equals('foo')); | 421 unittest.expect(o.liveTime, unittest.equals('foo')); |
| 722 unittest.expect(o.mid, unittest.equals('foo')); | 422 unittest.expect(o.mid, unittest.equals('foo')); |
| 723 unittest.expect(o.name, unittest.equals('foo')); | 423 unittest.expect(o.name, unittest.equals('foo')); |
| 724 checkUnnamed3035(o.pphNames); | 424 checkUnnamed3026(o.pphNames); |
| 725 unittest.expect(o.seasonId, unittest.equals('foo')); | 425 unittest.expect(o.seasonId, unittest.equals('foo')); |
| 726 unittest.expect(o.seasonName, unittest.equals('foo')); | 426 unittest.expect(o.seasonName, unittest.equals('foo')); |
| 727 unittest.expect(o.seasonNumber, unittest.equals('foo')); | 427 unittest.expect(o.seasonNumber, unittest.equals('foo')); |
| 728 unittest.expect(o.showId, unittest.equals('foo')); | 428 unittest.expect(o.showId, unittest.equals('foo')); |
| 729 unittest.expect(o.showName, unittest.equals('foo')); | 429 unittest.expect(o.showName, unittest.equals('foo')); |
| 730 unittest.expect(o.studioName, unittest.equals('foo')); | 430 unittest.expect(o.studioName, unittest.equals('foo')); |
| 731 checkUnnamed3036(o.subtitles); | 431 checkUnnamed3027(o.subtitles); |
| 732 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); | 432 unittest.expect(o.titleLevelEidr, unittest.equals('foo')); |
| 733 unittest.expect(o.trailerId, unittest.equals('foo')); | 433 unittest.expect(o.trailerId, unittest.equals('foo')); |
| 734 unittest.expect(o.type, unittest.equals('foo')); | 434 unittest.expect(o.type, unittest.equals('foo')); |
| 735 unittest.expect(o.videoId, unittest.equals('foo')); | 435 unittest.expect(o.videoId, unittest.equals('foo')); |
| 736 } | 436 } |
| 737 buildCounterStoreInfo--; | 437 buildCounterStoreInfo--; |
| 738 } | 438 } |
| 739 | 439 |
| 440 buildUnnamed3028() { |
| 441 var o = new core.List<core.String>(); |
| 442 o.add("foo"); |
| 443 o.add("foo"); |
| 444 return o; |
| 445 } |
| 446 |
| 447 checkUnnamed3028(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 buildUnnamed3029() { |
| 454 var o = new core.List<core.String>(); |
| 455 o.add("foo"); |
| 456 o.add("foo"); |
| 457 return o; |
| 458 } |
| 459 |
| 460 checkUnnamed3029(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 buildUnnamed3030() { |
| 467 var o = new core.List<core.String>(); |
| 468 o.add("foo"); |
| 469 o.add("foo"); |
| 470 return o; |
| 471 } |
| 472 |
| 473 checkUnnamed3030(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 buildUnnamed3031() { |
| 480 var o = new core.List<core.String>(); |
| 481 o.add("foo"); |
| 482 o.add("foo"); |
| 483 return o; |
| 484 } |
| 485 |
| 486 checkUnnamed3031(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 buildUnnamed3032() { |
| 493 var o = new core.List<core.String>(); |
| 494 o.add("foo"); |
| 495 o.add("foo"); |
| 496 return o; |
| 497 } |
| 498 |
| 499 checkUnnamed3032(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 buildUnnamed3033() { |
| 506 var o = new core.List<core.String>(); |
| 507 o.add("foo"); |
| 508 o.add("foo"); |
| 509 return o; |
| 510 } |
| 511 |
| 512 checkUnnamed3033(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 buildUnnamed3034() { |
| 519 var o = new core.List<core.String>(); |
| 520 o.add("foo"); |
| 521 o.add("foo"); |
| 522 return o; |
| 523 } |
| 524 |
| 525 checkUnnamed3034(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 buildUnnamed3035() { |
| 532 var o = new core.List<core.String>(); |
| 533 o.add("foo"); |
| 534 o.add("foo"); |
| 535 return o; |
| 536 } |
| 537 |
| 538 checkUnnamed3035(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 buildUnnamed3036() { |
| 545 var o = new core.List<core.String>(); |
| 546 o.add("foo"); |
| 547 o.add("foo"); |
| 548 return o; |
| 549 } |
| 550 |
| 551 checkUnnamed3036(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 |
| 740 buildUnnamed3037() { | 557 buildUnnamed3037() { |
| 741 var o = new core.List<core.String>(); | 558 var o = new core.List<core.String>(); |
| 742 o.add("foo"); | 559 o.add("foo"); |
| 743 o.add("foo"); | 560 o.add("foo"); |
| 744 return o; | 561 return o; |
| 745 } | 562 } |
| 746 | 563 |
| 747 checkUnnamed3037(core.List<core.String> o) { | 564 checkUnnamed3037(core.List<core.String> o) { |
| 748 unittest.expect(o, unittest.hasLength(2)); | 565 unittest.expect(o, unittest.hasLength(2)); |
| 749 unittest.expect(o[0], unittest.equals('foo')); | 566 unittest.expect(o[0], unittest.equals('foo')); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 var o = new core.List<core.String>(); | 623 var o = new core.List<core.String>(); |
| 807 o.add("foo"); | 624 o.add("foo"); |
| 808 o.add("foo"); | 625 o.add("foo"); |
| 809 return o; | 626 return o; |
| 810 } | 627 } |
| 811 | 628 |
| 812 checkUnnamed3042(core.List<core.String> o) { | 629 checkUnnamed3042(core.List<core.String> o) { |
| 813 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
| 814 unittest.expect(o[0], unittest.equals('foo')); | 631 unittest.expect(o[0], unittest.equals('foo')); |
| 815 unittest.expect(o[1], unittest.equals('foo')); | 632 unittest.expect(o[1], unittest.equals('foo')); |
| 816 } | |
| 817 | |
| 818 buildUnnamed3043() { | |
| 819 var o = new core.List<core.String>(); | |
| 820 o.add("foo"); | |
| 821 o.add("foo"); | |
| 822 return o; | |
| 823 } | |
| 824 | |
| 825 checkUnnamed3043(core.List<core.String> o) { | |
| 826 unittest.expect(o, unittest.hasLength(2)); | |
| 827 unittest.expect(o[0], unittest.equals('foo')); | |
| 828 unittest.expect(o[1], unittest.equals('foo')); | |
| 829 } | |
| 830 | |
| 831 buildUnnamed3044() { | |
| 832 var o = new core.List<core.String>(); | |
| 833 o.add("foo"); | |
| 834 o.add("foo"); | |
| 835 return o; | |
| 836 } | |
| 837 | |
| 838 checkUnnamed3044(core.List<core.String> o) { | |
| 839 unittest.expect(o, unittest.hasLength(2)); | |
| 840 unittest.expect(o[0], unittest.equals('foo')); | |
| 841 unittest.expect(o[1], unittest.equals('foo')); | |
| 842 } | |
| 843 | |
| 844 buildUnnamed3045() { | |
| 845 var o = new core.List<core.String>(); | |
| 846 o.add("foo"); | |
| 847 o.add("foo"); | |
| 848 return o; | |
| 849 } | |
| 850 | |
| 851 checkUnnamed3045(core.List<core.String> o) { | |
| 852 unittest.expect(o, unittest.hasLength(2)); | |
| 853 unittest.expect(o[0], unittest.equals('foo')); | |
| 854 unittest.expect(o[1], unittest.equals('foo')); | |
| 855 } | |
| 856 | |
| 857 buildUnnamed3046() { | |
| 858 var o = new core.List<core.String>(); | |
| 859 o.add("foo"); | |
| 860 o.add("foo"); | |
| 861 return o; | |
| 862 } | |
| 863 | |
| 864 checkUnnamed3046(core.List<core.String> o) { | |
| 865 unittest.expect(o, unittest.hasLength(2)); | |
| 866 unittest.expect(o[0], unittest.equals('foo')); | |
| 867 unittest.expect(o[1], unittest.equals('foo')); | |
| 868 } | |
| 869 | |
| 870 buildUnnamed3047() { | |
| 871 var o = new core.List<core.String>(); | |
| 872 o.add("foo"); | |
| 873 o.add("foo"); | |
| 874 return o; | |
| 875 } | |
| 876 | |
| 877 checkUnnamed3047(core.List<core.String> o) { | |
| 878 unittest.expect(o, unittest.hasLength(2)); | |
| 879 unittest.expect(o[0], unittest.equals('foo')); | |
| 880 unittest.expect(o[1], unittest.equals('foo')); | |
| 881 } | |
| 882 | |
| 883 buildUnnamed3048() { | |
| 884 var o = new core.List<core.String>(); | |
| 885 o.add("foo"); | |
| 886 o.add("foo"); | |
| 887 return o; | |
| 888 } | |
| 889 | |
| 890 checkUnnamed3048(core.List<core.String> o) { | |
| 891 unittest.expect(o, unittest.hasLength(2)); | |
| 892 unittest.expect(o[0], unittest.equals('foo')); | |
| 893 unittest.expect(o[1], unittest.equals('foo')); | |
| 894 } | |
| 895 | |
| 896 buildUnnamed3049() { | |
| 897 var o = new core.List<core.String>(); | |
| 898 o.add("foo"); | |
| 899 o.add("foo"); | |
| 900 return o; | |
| 901 } | |
| 902 | |
| 903 checkUnnamed3049(core.List<core.String> o) { | |
| 904 unittest.expect(o, unittest.hasLength(2)); | |
| 905 unittest.expect(o[0], unittest.equals('foo')); | |
| 906 unittest.expect(o[1], unittest.equals('foo')); | |
| 907 } | |
| 908 | |
| 909 buildUnnamed3050() { | |
| 910 var o = new core.List<core.String>(); | |
| 911 o.add("foo"); | |
| 912 o.add("foo"); | |
| 913 return o; | |
| 914 } | |
| 915 | |
| 916 checkUnnamed3050(core.List<core.String> o) { | |
| 917 unittest.expect(o, unittest.hasLength(2)); | |
| 918 unittest.expect(o[0], unittest.equals('foo')); | |
| 919 unittest.expect(o[1], unittest.equals('foo')); | |
| 920 } | |
| 921 | |
| 922 buildUnnamed3051() { | |
| 923 var o = new core.List<core.String>(); | |
| 924 o.add("foo"); | |
| 925 o.add("foo"); | |
| 926 return o; | |
| 927 } | |
| 928 | |
| 929 checkUnnamed3051(core.List<core.String> o) { | |
| 930 unittest.expect(o, unittest.hasLength(2)); | |
| 931 unittest.expect(o[0], unittest.equals('foo')); | |
| 932 unittest.expect(o[1], unittest.equals('foo')); | |
| 933 } | |
| 934 | |
| 935 buildUnnamed3052() { | |
| 936 var o = new core.List<core.String>(); | |
| 937 o.add("foo"); | |
| 938 o.add("foo"); | |
| 939 return o; | |
| 940 } | |
| 941 | |
| 942 checkUnnamed3052(core.List<core.String> o) { | |
| 943 unittest.expect(o, unittest.hasLength(2)); | |
| 944 unittest.expect(o[0], unittest.equals('foo')); | |
| 945 unittest.expect(o[1], unittest.equals('foo')); | |
| 946 } | |
| 947 | |
| 948 buildUnnamed3053() { | |
| 949 var o = new core.List<core.String>(); | |
| 950 o.add("foo"); | |
| 951 o.add("foo"); | |
| 952 return o; | |
| 953 } | |
| 954 | |
| 955 checkUnnamed3053(core.List<core.String> o) { | |
| 956 unittest.expect(o, unittest.hasLength(2)); | |
| 957 unittest.expect(o[0], unittest.equals('foo')); | |
| 958 unittest.expect(o[1], unittest.equals('foo')); | |
| 959 } | |
| 960 | |
| 961 buildUnnamed3054() { | |
| 962 var o = new core.List<core.String>(); | |
| 963 o.add("foo"); | |
| 964 o.add("foo"); | |
| 965 return o; | |
| 966 } | |
| 967 | |
| 968 checkUnnamed3054(core.List<core.String> o) { | |
| 969 unittest.expect(o, unittest.hasLength(2)); | |
| 970 unittest.expect(o[0], unittest.equals('foo')); | |
| 971 unittest.expect(o[1], unittest.equals('foo')); | |
| 972 } | |
| 973 | |
| 974 buildUnnamed3055() { | |
| 975 var o = new core.List<core.String>(); | |
| 976 o.add("foo"); | |
| 977 o.add("foo"); | |
| 978 return o; | |
| 979 } | |
| 980 | |
| 981 checkUnnamed3055(core.List<core.String> o) { | |
| 982 unittest.expect(o, unittest.hasLength(2)); | |
| 983 unittest.expect(o[0], unittest.equals('foo')); | |
| 984 unittest.expect(o[1], unittest.equals('foo')); | |
| 985 } | |
| 986 | |
| 987 buildUnnamed3056() { | |
| 988 var o = new core.List<core.String>(); | |
| 989 o.add("foo"); | |
| 990 o.add("foo"); | |
| 991 return o; | |
| 992 } | |
| 993 | |
| 994 checkUnnamed3056(core.List<core.String> o) { | |
| 995 unittest.expect(o, unittest.hasLength(2)); | |
| 996 unittest.expect(o[0], unittest.equals('foo')); | |
| 997 unittest.expect(o[1], unittest.equals('foo')); | |
| 998 } | |
| 999 | |
| 1000 buildUnnamed3057() { | |
| 1001 var o = new core.List<core.String>(); | |
| 1002 o.add("foo"); | |
| 1003 o.add("foo"); | |
| 1004 return o; | |
| 1005 } | |
| 1006 | |
| 1007 checkUnnamed3057(core.List<core.String> o) { | |
| 1008 unittest.expect(o, unittest.hasLength(2)); | |
| 1009 unittest.expect(o[0], unittest.equals('foo')); | |
| 1010 unittest.expect(o[1], unittest.equals('foo')); | |
| 1011 } | 633 } |
| 1012 | 634 |
| 1013 | 635 |
| 1014 main() { | 636 main() { |
| 1015 unittest.group("obj-schema-Avail", () { | 637 unittest.group("obj-schema-Avail", () { |
| 1016 unittest.test("to-json--from-json", () { | 638 unittest.test("to-json--from-json", () { |
| 1017 var o = buildAvail(); | 639 var o = buildAvail(); |
| 1018 var od = new api.Avail.fromJson(o.toJson()); | 640 var od = new api.Avail.fromJson(o.toJson()); |
| 1019 checkAvail(od); | 641 checkAvail(od); |
| 1020 }); | 642 }); |
| 1021 }); | 643 }); |
| 1022 | 644 |
| 1023 | 645 |
| 1024 unittest.group("obj-schema-Component", () { | |
| 1025 unittest.test("to-json--from-json", () { | |
| 1026 var o = buildComponent(); | |
| 1027 var od = new api.Component.fromJson(o.toJson()); | |
| 1028 checkComponent(od); | |
| 1029 }); | |
| 1030 }); | |
| 1031 | |
| 1032 | |
| 1033 unittest.group("obj-schema-ExperienceLocale", () { | |
| 1034 unittest.test("to-json--from-json", () { | |
| 1035 var o = buildExperienceLocale(); | |
| 1036 var od = new api.ExperienceLocale.fromJson(o.toJson()); | |
| 1037 checkExperienceLocale(od); | |
| 1038 }); | |
| 1039 }); | |
| 1040 | |
| 1041 | |
| 1042 unittest.group("obj-schema-ListAvailsResponse", () { | 646 unittest.group("obj-schema-ListAvailsResponse", () { |
| 1043 unittest.test("to-json--from-json", () { | 647 unittest.test("to-json--from-json", () { |
| 1044 var o = buildListAvailsResponse(); | 648 var o = buildListAvailsResponse(); |
| 1045 var od = new api.ListAvailsResponse.fromJson(o.toJson()); | 649 var od = new api.ListAvailsResponse.fromJson(o.toJson()); |
| 1046 checkListAvailsResponse(od); | 650 checkListAvailsResponse(od); |
| 1047 }); | 651 }); |
| 1048 }); | 652 }); |
| 1049 | 653 |
| 1050 | 654 |
| 1051 unittest.group("obj-schema-ListComponentsResponse", () { | |
| 1052 unittest.test("to-json--from-json", () { | |
| 1053 var o = buildListComponentsResponse(); | |
| 1054 var od = new api.ListComponentsResponse.fromJson(o.toJson()); | |
| 1055 checkListComponentsResponse(od); | |
| 1056 }); | |
| 1057 }); | |
| 1058 | |
| 1059 | |
| 1060 unittest.group("obj-schema-ListExperienceLocalesResponse", () { | |
| 1061 unittest.test("to-json--from-json", () { | |
| 1062 var o = buildListExperienceLocalesResponse(); | |
| 1063 var od = new api.ListExperienceLocalesResponse.fromJson(o.toJson()); | |
| 1064 checkListExperienceLocalesResponse(od); | |
| 1065 }); | |
| 1066 }); | |
| 1067 | |
| 1068 | |
| 1069 unittest.group("obj-schema-ListOrdersResponse", () { | 655 unittest.group("obj-schema-ListOrdersResponse", () { |
| 1070 unittest.test("to-json--from-json", () { | 656 unittest.test("to-json--from-json", () { |
| 1071 var o = buildListOrdersResponse(); | 657 var o = buildListOrdersResponse(); |
| 1072 var od = new api.ListOrdersResponse.fromJson(o.toJson()); | 658 var od = new api.ListOrdersResponse.fromJson(o.toJson()); |
| 1073 checkListOrdersResponse(od); | 659 checkListOrdersResponse(od); |
| 1074 }); | 660 }); |
| 1075 }); | 661 }); |
| 1076 | 662 |
| 1077 | 663 |
| 1078 unittest.group("obj-schema-ListStoreInfosResponse", () { | 664 unittest.group("obj-schema-ListStoreInfosResponse", () { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 }))); | 744 }))); |
| 1159 }); | 745 }); |
| 1160 | 746 |
| 1161 unittest.test("method--list", () { | 747 unittest.test("method--list", () { |
| 1162 | 748 |
| 1163 var mock = new HttpServerMock(); | 749 var mock = new HttpServerMock(); |
| 1164 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; | 750 api.AccountsAvailsResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.avails; |
| 1165 var arg_accountId = "foo"; | 751 var arg_accountId = "foo"; |
| 1166 var arg_pageSize = 42; | 752 var arg_pageSize = 42; |
| 1167 var arg_pageToken = "foo"; | 753 var arg_pageToken = "foo"; |
| 1168 var arg_pphNames = buildUnnamed3037(); | 754 var arg_pphNames = buildUnnamed3028(); |
| 1169 var arg_studioNames = buildUnnamed3038(); | 755 var arg_studioNames = buildUnnamed3029(); |
| 1170 var arg_title = "foo"; | 756 var arg_title = "foo"; |
| 1171 var arg_territories = buildUnnamed3039(); | 757 var arg_territories = buildUnnamed3030(); |
| 1172 var arg_altId = "foo"; | 758 var arg_altId = "foo"; |
| 1173 var arg_videoIds = buildUnnamed3040(); | 759 var arg_videoIds = buildUnnamed3031(); |
| 1174 var arg_altIds = buildUnnamed3041(); | 760 var arg_altIds = buildUnnamed3032(); |
| 1175 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1176 var path = (req.url).path; | 762 var path = (req.url).path; |
| 1177 var pathOffset = 0; | 763 var pathOffset = 0; |
| 1178 var index; | 764 var index; |
| 1179 var subPart; | 765 var subPart; |
| 1180 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1181 pathOffset += 1; | 767 pathOffset += 1; |
| 1182 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/")); |
| 1183 pathOffset += 12; | 769 pathOffset += 12; |
| 1184 index = path.indexOf("/avails", pathOffset); | 770 index = path.indexOf("/avails", pathOffset); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 return new async.Future.value(stringResponse(200, h, resp)); | 809 return new async.Future.value(stringResponse(200, h, resp)); |
| 1224 }), true); | 810 }), true); |
| 1225 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken,
pphNames: arg_pphNames, studioNames: arg_studioNames, title: arg_title, territor
ies: arg_territories, altId: arg_altId, videoIds: arg_videoIds, altIds: arg_altI
ds).then(unittest.expectAsync(((api.ListAvailsResponse response) { | 811 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken,
pphNames: arg_pphNames, studioNames: arg_studioNames, title: arg_title, territor
ies: arg_territories, altId: arg_altId, videoIds: arg_videoIds, altIds: arg_altI
ds).then(unittest.expectAsync(((api.ListAvailsResponse response) { |
| 1226 checkListAvailsResponse(response); | 812 checkListAvailsResponse(response); |
| 1227 }))); | 813 }))); |
| 1228 }); | 814 }); |
| 1229 | 815 |
| 1230 }); | 816 }); |
| 1231 | 817 |
| 1232 | 818 |
| 1233 unittest.group("resource-AccountsComponentsResourceApi", () { | |
| 1234 unittest.test("method--list", () { | |
| 1235 | |
| 1236 var mock = new HttpServerMock(); | |
| 1237 api.AccountsComponentsResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.components; | |
| 1238 var arg_accountId = "foo"; | |
| 1239 var arg_pageSize = 42; | |
| 1240 var arg_pageToken = "foo"; | |
| 1241 var arg_pphNames = buildUnnamed3042(); | |
| 1242 var arg_studioNames = buildUnnamed3043(); | |
| 1243 var arg_titleLevelEidr = "foo"; | |
| 1244 var arg_editLevelEidr = "foo"; | |
| 1245 var arg_status = buildUnnamed3044(); | |
| 1246 var arg_customId = "foo"; | |
| 1247 var arg_inventoryId = "foo"; | |
| 1248 var arg_presentationId = "foo"; | |
| 1249 var arg_playableSequenceId = "foo"; | |
| 1250 var arg_elId = "foo"; | |
| 1251 var arg_altCutId = "foo"; | |
| 1252 var arg_filename = "foo"; | |
| 1253 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 1254 var path = (req.url).path; | |
| 1255 var pathOffset = 0; | |
| 1256 var index; | |
| 1257 var subPart; | |
| 1258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 1259 pathOffset += 1; | |
| 1260 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | |
| 1261 pathOffset += 12; | |
| 1262 index = path.indexOf("/components", pathOffset); | |
| 1263 unittest.expect(index >= 0, unittest.isTrue); | |
| 1264 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 1265 pathOffset = index; | |
| 1266 unittest.expect(subPart, unittest.equals("$arg_accountId")); | |
| 1267 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/components")); | |
| 1268 pathOffset += 11; | |
| 1269 | |
| 1270 var query = (req.url).query; | |
| 1271 var queryOffset = 0; | |
| 1272 var queryMap = {}; | |
| 1273 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 1274 parseBool(n) { | |
| 1275 if (n == "true") return true; | |
| 1276 if (n == "false") return false; | |
| 1277 if (n == null) return null; | |
| 1278 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 1279 } | |
| 1280 if (query.length > 0) { | |
| 1281 for (var part in query.split("&")) { | |
| 1282 var keyvalue = part.split("="); | |
| 1283 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 1284 } | |
| 1285 } | |
| 1286 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 1287 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 1288 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); | |
| 1289 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); | |
| 1290 unittest.expect(queryMap["titleLevelEidr"].first, unittest.equals(arg_ti
tleLevelEidr)); | |
| 1291 unittest.expect(queryMap["editLevelEidr"].first, unittest.equals(arg_edi
tLevelEidr)); | |
| 1292 unittest.expect(queryMap["status"], unittest.equals(arg_status)); | |
| 1293 unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId
)); | |
| 1294 unittest.expect(queryMap["inventoryId"].first, unittest.equals(arg_inven
toryId)); | |
| 1295 unittest.expect(queryMap["presentationId"].first, unittest.equals(arg_pr
esentationId)); | |
| 1296 unittest.expect(queryMap["playableSequenceId"].first, unittest.equals(ar
g_playableSequenceId)); | |
| 1297 unittest.expect(queryMap["elId"].first, unittest.equals(arg_elId)); | |
| 1298 unittest.expect(queryMap["altCutId"].first, unittest.equals(arg_altCutId
)); | |
| 1299 unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename
)); | |
| 1300 | |
| 1301 | |
| 1302 var h = { | |
| 1303 "content-type" : "application/json; charset=utf-8", | |
| 1304 }; | |
| 1305 var resp = convert.JSON.encode(buildListComponentsResponse()); | |
| 1306 return new async.Future.value(stringResponse(200, h, resp)); | |
| 1307 }), true); | |
| 1308 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken,
pphNames: arg_pphNames, studioNames: arg_studioNames, titleLevelEidr: arg_titleL
evelEidr, editLevelEidr: arg_editLevelEidr, status: arg_status, customId: arg_cu
stomId, inventoryId: arg_inventoryId, presentationId: arg_presentationId, playab
leSequenceId: arg_playableSequenceId, elId: arg_elId, altCutId: arg_altCutId, fi
lename: arg_filename).then(unittest.expectAsync(((api.ListComponentsResponse res
ponse) { | |
| 1309 checkListComponentsResponse(response); | |
| 1310 }))); | |
| 1311 }); | |
| 1312 | |
| 1313 }); | |
| 1314 | |
| 1315 | |
| 1316 unittest.group("resource-AccountsComponentsTypeResourceApi", () { | |
| 1317 unittest.test("method--get", () { | |
| 1318 | |
| 1319 var mock = new HttpServerMock(); | |
| 1320 api.AccountsComponentsTypeResourceApi res = new api.PlaymoviespartnerApi(m
ock).accounts.components.type; | |
| 1321 var arg_accountId = "foo"; | |
| 1322 var arg_componentId = "foo"; | |
| 1323 var arg_type = "foo"; | |
| 1324 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 1325 var path = (req.url).path; | |
| 1326 var pathOffset = 0; | |
| 1327 var index; | |
| 1328 var subPart; | |
| 1329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 1330 pathOffset += 1; | |
| 1331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | |
| 1332 pathOffset += 12; | |
| 1333 index = path.indexOf("/components/", pathOffset); | |
| 1334 unittest.expect(index >= 0, unittest.isTrue); | |
| 1335 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 1336 pathOffset = index; | |
| 1337 unittest.expect(subPart, unittest.equals("$arg_accountId")); | |
| 1338 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/components/")); | |
| 1339 pathOffset += 12; | |
| 1340 index = path.indexOf("/type/", pathOffset); | |
| 1341 unittest.expect(index >= 0, unittest.isTrue); | |
| 1342 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 1343 pathOffset = index; | |
| 1344 unittest.expect(subPart, unittest.equals("$arg_componentId")); | |
| 1345 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/type/")); | |
| 1346 pathOffset += 6; | |
| 1347 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 1348 pathOffset = path.length; | |
| 1349 unittest.expect(subPart, unittest.equals("$arg_type")); | |
| 1350 | |
| 1351 var query = (req.url).query; | |
| 1352 var queryOffset = 0; | |
| 1353 var queryMap = {}; | |
| 1354 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 1355 parseBool(n) { | |
| 1356 if (n == "true") return true; | |
| 1357 if (n == "false") return false; | |
| 1358 if (n == null) return null; | |
| 1359 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 1360 } | |
| 1361 if (query.length > 0) { | |
| 1362 for (var part in query.split("&")) { | |
| 1363 var keyvalue = part.split("="); | |
| 1364 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 1365 } | |
| 1366 } | |
| 1367 | |
| 1368 | |
| 1369 var h = { | |
| 1370 "content-type" : "application/json; charset=utf-8", | |
| 1371 }; | |
| 1372 var resp = convert.JSON.encode(buildComponent()); | |
| 1373 return new async.Future.value(stringResponse(200, h, resp)); | |
| 1374 }), true); | |
| 1375 res.get(arg_accountId, arg_componentId, arg_type).then(unittest.expectAsyn
c(((api.Component response) { | |
| 1376 checkComponent(response); | |
| 1377 }))); | |
| 1378 }); | |
| 1379 | |
| 1380 }); | |
| 1381 | |
| 1382 | |
| 1383 unittest.group("resource-AccountsExperienceLocalesResourceApi", () { | |
| 1384 unittest.test("method--get", () { | |
| 1385 | |
| 1386 var mock = new HttpServerMock(); | |
| 1387 api.AccountsExperienceLocalesResourceApi res = new api.PlaymoviespartnerAp
i(mock).accounts.experienceLocales; | |
| 1388 var arg_accountId = "foo"; | |
| 1389 var arg_elId = "foo"; | |
| 1390 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 1391 var path = (req.url).path; | |
| 1392 var pathOffset = 0; | |
| 1393 var index; | |
| 1394 var subPart; | |
| 1395 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 1396 pathOffset += 1; | |
| 1397 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | |
| 1398 pathOffset += 12; | |
| 1399 index = path.indexOf("/experienceLocales/", pathOffset); | |
| 1400 unittest.expect(index >= 0, unittest.isTrue); | |
| 1401 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 1402 pathOffset = index; | |
| 1403 unittest.expect(subPart, unittest.equals("$arg_accountId")); | |
| 1404 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("/experienceLocales/")); | |
| 1405 pathOffset += 19; | |
| 1406 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
| 1407 pathOffset = path.length; | |
| 1408 unittest.expect(subPart, unittest.equals("$arg_elId")); | |
| 1409 | |
| 1410 var query = (req.url).query; | |
| 1411 var queryOffset = 0; | |
| 1412 var queryMap = {}; | |
| 1413 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 1414 parseBool(n) { | |
| 1415 if (n == "true") return true; | |
| 1416 if (n == "false") return false; | |
| 1417 if (n == null) return null; | |
| 1418 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 1419 } | |
| 1420 if (query.length > 0) { | |
| 1421 for (var part in query.split("&")) { | |
| 1422 var keyvalue = part.split("="); | |
| 1423 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 1424 } | |
| 1425 } | |
| 1426 | |
| 1427 | |
| 1428 var h = { | |
| 1429 "content-type" : "application/json; charset=utf-8", | |
| 1430 }; | |
| 1431 var resp = convert.JSON.encode(buildExperienceLocale()); | |
| 1432 return new async.Future.value(stringResponse(200, h, resp)); | |
| 1433 }), true); | |
| 1434 res.get(arg_accountId, arg_elId).then(unittest.expectAsync(((api.Experienc
eLocale response) { | |
| 1435 checkExperienceLocale(response); | |
| 1436 }))); | |
| 1437 }); | |
| 1438 | |
| 1439 unittest.test("method--list", () { | |
| 1440 | |
| 1441 var mock = new HttpServerMock(); | |
| 1442 api.AccountsExperienceLocalesResourceApi res = new api.PlaymoviespartnerAp
i(mock).accounts.experienceLocales; | |
| 1443 var arg_accountId = "foo"; | |
| 1444 var arg_pageSize = 42; | |
| 1445 var arg_pageToken = "foo"; | |
| 1446 var arg_pphNames = buildUnnamed3045(); | |
| 1447 var arg_studioNames = buildUnnamed3046(); | |
| 1448 var arg_titleLevelEidr = "foo"; | |
| 1449 var arg_editLevelEidr = "foo"; | |
| 1450 var arg_status = buildUnnamed3047(); | |
| 1451 var arg_customId = "foo"; | |
| 1452 var arg_altCutId = "foo"; | |
| 1453 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 1454 var path = (req.url).path; | |
| 1455 var pathOffset = 0; | |
| 1456 var index; | |
| 1457 var subPart; | |
| 1458 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
| 1459 pathOffset += 1; | |
| 1460 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/accounts/")); | |
| 1461 pathOffset += 12; | |
| 1462 index = path.indexOf("/experienceLocales", pathOffset); | |
| 1463 unittest.expect(index >= 0, unittest.isTrue); | |
| 1464 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
| 1465 pathOffset = index; | |
| 1466 unittest.expect(subPart, unittest.equals("$arg_accountId")); | |
| 1467 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/experienceLocales")); | |
| 1468 pathOffset += 18; | |
| 1469 | |
| 1470 var query = (req.url).query; | |
| 1471 var queryOffset = 0; | |
| 1472 var queryMap = {}; | |
| 1473 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
| 1474 parseBool(n) { | |
| 1475 if (n == "true") return true; | |
| 1476 if (n == "false") return false; | |
| 1477 if (n == null) return null; | |
| 1478 throw new core.ArgumentError("Invalid boolean: $n"); | |
| 1479 } | |
| 1480 if (query.length > 0) { | |
| 1481 for (var part in query.split("&")) { | |
| 1482 var keyvalue = part.split("="); | |
| 1483 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
| 1484 } | |
| 1485 } | |
| 1486 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 1487 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 1488 unittest.expect(queryMap["pphNames"], unittest.equals(arg_pphNames)); | |
| 1489 unittest.expect(queryMap["studioNames"], unittest.equals(arg_studioNames
)); | |
| 1490 unittest.expect(queryMap["titleLevelEidr"].first, unittest.equals(arg_ti
tleLevelEidr)); | |
| 1491 unittest.expect(queryMap["editLevelEidr"].first, unittest.equals(arg_edi
tLevelEidr)); | |
| 1492 unittest.expect(queryMap["status"], unittest.equals(arg_status)); | |
| 1493 unittest.expect(queryMap["customId"].first, unittest.equals(arg_customId
)); | |
| 1494 unittest.expect(queryMap["altCutId"].first, unittest.equals(arg_altCutId
)); | |
| 1495 | |
| 1496 | |
| 1497 var h = { | |
| 1498 "content-type" : "application/json; charset=utf-8", | |
| 1499 }; | |
| 1500 var resp = convert.JSON.encode(buildListExperienceLocalesResponse()); | |
| 1501 return new async.Future.value(stringResponse(200, h, resp)); | |
| 1502 }), true); | |
| 1503 res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken,
pphNames: arg_pphNames, studioNames: arg_studioNames, titleLevelEidr: arg_titleL
evelEidr, editLevelEidr: arg_editLevelEidr, status: arg_status, customId: arg_cu
stomId, altCutId: arg_altCutId).then(unittest.expectAsync(((api.ListExperienceLo
calesResponse response) { | |
| 1504 checkListExperienceLocalesResponse(response); | |
| 1505 }))); | |
| 1506 }); | |
| 1507 | |
| 1508 }); | |
| 1509 | |
| 1510 | |
| 1511 unittest.group("resource-AccountsOrdersResourceApi", () { | 819 unittest.group("resource-AccountsOrdersResourceApi", () { |
| 1512 unittest.test("method--get", () { | 820 unittest.test("method--get", () { |
| 1513 | 821 |
| 1514 var mock = new HttpServerMock(); | 822 var mock = new HttpServerMock(); |
| 1515 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; | 823 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; |
| 1516 var arg_accountId = "foo"; | 824 var arg_accountId = "foo"; |
| 1517 var arg_orderId = "foo"; | 825 var arg_orderId = "foo"; |
| 1518 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 826 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1519 var path = (req.url).path; | 827 var path = (req.url).path; |
| 1520 var pathOffset = 0; | 828 var pathOffset = 0; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 }))); | 872 }))); |
| 1565 }); | 873 }); |
| 1566 | 874 |
| 1567 unittest.test("method--list", () { | 875 unittest.test("method--list", () { |
| 1568 | 876 |
| 1569 var mock = new HttpServerMock(); | 877 var mock = new HttpServerMock(); |
| 1570 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; | 878 api.AccountsOrdersResourceApi res = new api.PlaymoviespartnerApi(mock).acc
ounts.orders; |
| 1571 var arg_accountId = "foo"; | 879 var arg_accountId = "foo"; |
| 1572 var arg_pageSize = 42; | 880 var arg_pageSize = 42; |
| 1573 var arg_pageToken = "foo"; | 881 var arg_pageToken = "foo"; |
| 1574 var arg_pphNames = buildUnnamed3048(); | 882 var arg_pphNames = buildUnnamed3033(); |
| 1575 var arg_studioNames = buildUnnamed3049(); | 883 var arg_studioNames = buildUnnamed3034(); |
| 1576 var arg_name = "foo"; | 884 var arg_name = "foo"; |
| 1577 var arg_status = buildUnnamed3050(); | 885 var arg_status = buildUnnamed3035(); |
| 1578 var arg_customId = "foo"; | 886 var arg_customId = "foo"; |
| 1579 var arg_videoIds = buildUnnamed3051(); | 887 var arg_videoIds = buildUnnamed3036(); |
| 1580 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1581 var path = (req.url).path; | 889 var path = (req.url).path; |
| 1582 var pathOffset = 0; | 890 var pathOffset = 0; |
| 1583 var index; | 891 var index; |
| 1584 var subPart; | 892 var subPart; |
| 1585 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 893 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1586 pathOffset += 1; | 894 pathOffset += 1; |
| 1587 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/")); |
| 1588 pathOffset += 12; | 896 pathOffset += 12; |
| 1589 index = path.indexOf("/orders", pathOffset); | 897 index = path.indexOf("/orders", pathOffset); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1635 | 943 |
| 1636 | 944 |
| 1637 unittest.group("resource-AccountsStoreInfosResourceApi", () { | 945 unittest.group("resource-AccountsStoreInfosResourceApi", () { |
| 1638 unittest.test("method--list", () { | 946 unittest.test("method--list", () { |
| 1639 | 947 |
| 1640 var mock = new HttpServerMock(); | 948 var mock = new HttpServerMock(); |
| 1641 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; | 949 api.AccountsStoreInfosResourceApi res = new api.PlaymoviespartnerApi(mock)
.accounts.storeInfos; |
| 1642 var arg_accountId = "foo"; | 950 var arg_accountId = "foo"; |
| 1643 var arg_pageSize = 42; | 951 var arg_pageSize = 42; |
| 1644 var arg_pageToken = "foo"; | 952 var arg_pageToken = "foo"; |
| 1645 var arg_pphNames = buildUnnamed3052(); | 953 var arg_pphNames = buildUnnamed3037(); |
| 1646 var arg_studioNames = buildUnnamed3053(); | 954 var arg_studioNames = buildUnnamed3038(); |
| 1647 var arg_videoId = "foo"; | 955 var arg_videoId = "foo"; |
| 1648 var arg_countries = buildUnnamed3054(); | 956 var arg_countries = buildUnnamed3039(); |
| 1649 var arg_name = "foo"; | 957 var arg_name = "foo"; |
| 1650 var arg_videoIds = buildUnnamed3055(); | 958 var arg_videoIds = buildUnnamed3040(); |
| 1651 var arg_mids = buildUnnamed3056(); | 959 var arg_mids = buildUnnamed3041(); |
| 1652 var arg_seasonIds = buildUnnamed3057(); | 960 var arg_seasonIds = buildUnnamed3042(); |
| 1653 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1654 var path = (req.url).path; | 962 var path = (req.url).path; |
| 1655 var pathOffset = 0; | 963 var pathOffset = 0; |
| 1656 var index; | 964 var index; |
| 1657 var subPart; | 965 var subPart; |
| 1658 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1659 pathOffset += 1; | 967 pathOffset += 1; |
| 1660 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/")); |
| 1661 pathOffset += 12; | 969 pathOffset += 12; |
| 1662 index = path.indexOf("/storeInfos", pathOffset); | 970 index = path.indexOf("/storeInfos", pathOffset); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1771 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) { |
| 1772 checkStoreInfo(response); | 1080 checkStoreInfo(response); |
| 1773 }))); | 1081 }))); |
| 1774 }); | 1082 }); |
| 1775 | 1083 |
| 1776 }); | 1084 }); |
| 1777 | 1085 |
| 1778 | 1086 |
| 1779 } | 1087 } |
| 1780 | 1088 |
| OLD | NEW |