OLD | NEW |
1 library googleapis.youtube.v3.test; | 1 library googleapis.youtube.v3.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; |
11 import 'package:googleapis/common/common.dart' as common; | |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
13 import '../common/common_internal_test.dart' as common_test; | |
14 | 11 |
15 import 'package:googleapis/youtube/v3.dart' as api; | 12 import 'package:googleapis/youtube/v3.dart' as api; |
16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
18 | 22 |
19 buildUnnamed619() { | 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 53 |
| 54 buildUnnamed1410() { |
20 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
21 o.add("foo"); | 56 o.add("foo"); |
22 o.add("foo"); | 57 o.add("foo"); |
23 return o; | 58 return o; |
24 } | 59 } |
25 | 60 |
26 checkUnnamed619(core.List<core.String> o) { | 61 checkUnnamed1410(core.List<core.String> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
28 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
29 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
30 } | 65 } |
31 | 66 |
32 core.int buildCounterAccessPolicy = 0; | 67 core.int buildCounterAccessPolicy = 0; |
33 buildAccessPolicy() { | 68 buildAccessPolicy() { |
34 var o = new api.AccessPolicy(); | 69 var o = new api.AccessPolicy(); |
35 buildCounterAccessPolicy++; | 70 buildCounterAccessPolicy++; |
36 if (buildCounterAccessPolicy < 3) { | 71 if (buildCounterAccessPolicy < 3) { |
37 o.allowed = true; | 72 o.allowed = true; |
38 o.exception = buildUnnamed619(); | 73 o.exception = buildUnnamed1410(); |
39 } | 74 } |
40 buildCounterAccessPolicy--; | 75 buildCounterAccessPolicy--; |
41 return o; | 76 return o; |
42 } | 77 } |
43 | 78 |
44 checkAccessPolicy(api.AccessPolicy o) { | 79 checkAccessPolicy(api.AccessPolicy o) { |
45 buildCounterAccessPolicy++; | 80 buildCounterAccessPolicy++; |
46 if (buildCounterAccessPolicy < 3) { | 81 if (buildCounterAccessPolicy < 3) { |
47 unittest.expect(o.allowed, unittest.isTrue); | 82 unittest.expect(o.allowed, unittest.isTrue); |
48 checkUnnamed619(o.exception); | 83 checkUnnamed1410(o.exception); |
49 } | 84 } |
50 buildCounterAccessPolicy--; | 85 buildCounterAccessPolicy--; |
51 } | 86 } |
52 | 87 |
53 core.int buildCounterActivity = 0; | 88 core.int buildCounterActivity = 0; |
54 buildActivity() { | 89 buildActivity() { |
55 var o = new api.Activity(); | 90 var o = new api.Activity(); |
56 buildCounterActivity++; | 91 buildCounterActivity++; |
57 if (buildCounterActivity < 3) { | 92 if (buildCounterActivity < 3) { |
58 o.contentDetails = buildActivityContentDetails(); | 93 o.contentDetails = buildActivityContentDetails(); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
) { | 262 checkActivityContentDetailsPlaylistItem(api.ActivityContentDetailsPlaylistItem o
) { |
228 buildCounterActivityContentDetailsPlaylistItem++; | 263 buildCounterActivityContentDetailsPlaylistItem++; |
229 if (buildCounterActivityContentDetailsPlaylistItem < 3) { | 264 if (buildCounterActivityContentDetailsPlaylistItem < 3) { |
230 unittest.expect(o.playlistId, unittest.equals('foo')); | 265 unittest.expect(o.playlistId, unittest.equals('foo')); |
231 unittest.expect(o.playlistItemId, unittest.equals('foo')); | 266 unittest.expect(o.playlistItemId, unittest.equals('foo')); |
232 checkResourceId(o.resourceId); | 267 checkResourceId(o.resourceId); |
233 } | 268 } |
234 buildCounterActivityContentDetailsPlaylistItem--; | 269 buildCounterActivityContentDetailsPlaylistItem--; |
235 } | 270 } |
236 | 271 |
237 buildUnnamed620() { | 272 buildUnnamed1411() { |
238 var o = new core.List<core.String>(); | 273 var o = new core.List<core.String>(); |
239 o.add("foo"); | 274 o.add("foo"); |
240 o.add("foo"); | 275 o.add("foo"); |
241 return o; | 276 return o; |
242 } | 277 } |
243 | 278 |
244 checkUnnamed620(core.List<core.String> o) { | 279 checkUnnamed1411(core.List<core.String> o) { |
245 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
246 unittest.expect(o[0], unittest.equals('foo')); | 281 unittest.expect(o[0], unittest.equals('foo')); |
247 unittest.expect(o[1], unittest.equals('foo')); | 282 unittest.expect(o[1], unittest.equals('foo')); |
248 } | 283 } |
249 | 284 |
250 buildUnnamed621() { | 285 buildUnnamed1412() { |
251 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
252 o.add("foo"); | 287 o.add("foo"); |
253 o.add("foo"); | 288 o.add("foo"); |
254 return o; | 289 return o; |
255 } | 290 } |
256 | 291 |
257 checkUnnamed621(core.List<core.String> o) { | 292 checkUnnamed1412(core.List<core.String> o) { |
258 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
259 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
260 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
261 } | 296 } |
262 | 297 |
263 core.int buildCounterActivityContentDetailsPromotedItem = 0; | 298 core.int buildCounterActivityContentDetailsPromotedItem = 0; |
264 buildActivityContentDetailsPromotedItem() { | 299 buildActivityContentDetailsPromotedItem() { |
265 var o = new api.ActivityContentDetailsPromotedItem(); | 300 var o = new api.ActivityContentDetailsPromotedItem(); |
266 buildCounterActivityContentDetailsPromotedItem++; | 301 buildCounterActivityContentDetailsPromotedItem++; |
267 if (buildCounterActivityContentDetailsPromotedItem < 3) { | 302 if (buildCounterActivityContentDetailsPromotedItem < 3) { |
268 o.adTag = "foo"; | 303 o.adTag = "foo"; |
269 o.clickTrackingUrl = "foo"; | 304 o.clickTrackingUrl = "foo"; |
270 o.creativeViewUrl = "foo"; | 305 o.creativeViewUrl = "foo"; |
271 o.ctaType = "foo"; | 306 o.ctaType = "foo"; |
272 o.customCtaButtonText = "foo"; | 307 o.customCtaButtonText = "foo"; |
273 o.descriptionText = "foo"; | 308 o.descriptionText = "foo"; |
274 o.destinationUrl = "foo"; | 309 o.destinationUrl = "foo"; |
275 o.forecastingUrl = buildUnnamed620(); | 310 o.forecastingUrl = buildUnnamed1411(); |
276 o.impressionUrl = buildUnnamed621(); | 311 o.impressionUrl = buildUnnamed1412(); |
277 o.videoId = "foo"; | 312 o.videoId = "foo"; |
278 } | 313 } |
279 buildCounterActivityContentDetailsPromotedItem--; | 314 buildCounterActivityContentDetailsPromotedItem--; |
280 return o; | 315 return o; |
281 } | 316 } |
282 | 317 |
283 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o
) { | 318 checkActivityContentDetailsPromotedItem(api.ActivityContentDetailsPromotedItem o
) { |
284 buildCounterActivityContentDetailsPromotedItem++; | 319 buildCounterActivityContentDetailsPromotedItem++; |
285 if (buildCounterActivityContentDetailsPromotedItem < 3) { | 320 if (buildCounterActivityContentDetailsPromotedItem < 3) { |
286 unittest.expect(o.adTag, unittest.equals('foo')); | 321 unittest.expect(o.adTag, unittest.equals('foo')); |
287 unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); | 322 unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); |
288 unittest.expect(o.creativeViewUrl, unittest.equals('foo')); | 323 unittest.expect(o.creativeViewUrl, unittest.equals('foo')); |
289 unittest.expect(o.ctaType, unittest.equals('foo')); | 324 unittest.expect(o.ctaType, unittest.equals('foo')); |
290 unittest.expect(o.customCtaButtonText, unittest.equals('foo')); | 325 unittest.expect(o.customCtaButtonText, unittest.equals('foo')); |
291 unittest.expect(o.descriptionText, unittest.equals('foo')); | 326 unittest.expect(o.descriptionText, unittest.equals('foo')); |
292 unittest.expect(o.destinationUrl, unittest.equals('foo')); | 327 unittest.expect(o.destinationUrl, unittest.equals('foo')); |
293 checkUnnamed620(o.forecastingUrl); | 328 checkUnnamed1411(o.forecastingUrl); |
294 checkUnnamed621(o.impressionUrl); | 329 checkUnnamed1412(o.impressionUrl); |
295 unittest.expect(o.videoId, unittest.equals('foo')); | 330 unittest.expect(o.videoId, unittest.equals('foo')); |
296 } | 331 } |
297 buildCounterActivityContentDetailsPromotedItem--; | 332 buildCounterActivityContentDetailsPromotedItem--; |
298 } | 333 } |
299 | 334 |
300 core.int buildCounterActivityContentDetailsRecommendation = 0; | 335 core.int buildCounterActivityContentDetailsRecommendation = 0; |
301 buildActivityContentDetailsRecommendation() { | 336 buildActivityContentDetailsRecommendation() { |
302 var o = new api.ActivityContentDetailsRecommendation(); | 337 var o = new api.ActivityContentDetailsRecommendation(); |
303 buildCounterActivityContentDetailsRecommendation++; | 338 buildCounterActivityContentDetailsRecommendation++; |
304 if (buildCounterActivityContentDetailsRecommendation < 3) { | 339 if (buildCounterActivityContentDetailsRecommendation < 3) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 } | 413 } |
379 | 414 |
380 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) { | 415 checkActivityContentDetailsUpload(api.ActivityContentDetailsUpload o) { |
381 buildCounterActivityContentDetailsUpload++; | 416 buildCounterActivityContentDetailsUpload++; |
382 if (buildCounterActivityContentDetailsUpload < 3) { | 417 if (buildCounterActivityContentDetailsUpload < 3) { |
383 unittest.expect(o.videoId, unittest.equals('foo')); | 418 unittest.expect(o.videoId, unittest.equals('foo')); |
384 } | 419 } |
385 buildCounterActivityContentDetailsUpload--; | 420 buildCounterActivityContentDetailsUpload--; |
386 } | 421 } |
387 | 422 |
388 buildUnnamed622() { | 423 buildUnnamed1413() { |
389 var o = new core.List<api.Activity>(); | 424 var o = new core.List<api.Activity>(); |
390 o.add(buildActivity()); | 425 o.add(buildActivity()); |
391 o.add(buildActivity()); | 426 o.add(buildActivity()); |
392 return o; | 427 return o; |
393 } | 428 } |
394 | 429 |
395 checkUnnamed622(core.List<api.Activity> o) { | 430 checkUnnamed1413(core.List<api.Activity> o) { |
396 unittest.expect(o, unittest.hasLength(2)); | 431 unittest.expect(o, unittest.hasLength(2)); |
397 checkActivity(o[0]); | 432 checkActivity(o[0]); |
398 checkActivity(o[1]); | 433 checkActivity(o[1]); |
399 } | 434 } |
400 | 435 |
401 core.int buildCounterActivityListResponse = 0; | 436 core.int buildCounterActivityListResponse = 0; |
402 buildActivityListResponse() { | 437 buildActivityListResponse() { |
403 var o = new api.ActivityListResponse(); | 438 var o = new api.ActivityListResponse(); |
404 buildCounterActivityListResponse++; | 439 buildCounterActivityListResponse++; |
405 if (buildCounterActivityListResponse < 3) { | 440 if (buildCounterActivityListResponse < 3) { |
406 o.etag = "foo"; | 441 o.etag = "foo"; |
407 o.eventId = "foo"; | 442 o.eventId = "foo"; |
408 o.items = buildUnnamed622(); | 443 o.items = buildUnnamed1413(); |
409 o.kind = "foo"; | 444 o.kind = "foo"; |
410 o.nextPageToken = "foo"; | 445 o.nextPageToken = "foo"; |
411 o.pageInfo = buildPageInfo(); | 446 o.pageInfo = buildPageInfo(); |
412 o.prevPageToken = "foo"; | 447 o.prevPageToken = "foo"; |
413 o.tokenPagination = buildTokenPagination(); | 448 o.tokenPagination = buildTokenPagination(); |
414 o.visitorId = "foo"; | 449 o.visitorId = "foo"; |
415 } | 450 } |
416 buildCounterActivityListResponse--; | 451 buildCounterActivityListResponse--; |
417 return o; | 452 return o; |
418 } | 453 } |
419 | 454 |
420 checkActivityListResponse(api.ActivityListResponse o) { | 455 checkActivityListResponse(api.ActivityListResponse o) { |
421 buildCounterActivityListResponse++; | 456 buildCounterActivityListResponse++; |
422 if (buildCounterActivityListResponse < 3) { | 457 if (buildCounterActivityListResponse < 3) { |
423 unittest.expect(o.etag, unittest.equals('foo')); | 458 unittest.expect(o.etag, unittest.equals('foo')); |
424 unittest.expect(o.eventId, unittest.equals('foo')); | 459 unittest.expect(o.eventId, unittest.equals('foo')); |
425 checkUnnamed622(o.items); | 460 checkUnnamed1413(o.items); |
426 unittest.expect(o.kind, unittest.equals('foo')); | 461 unittest.expect(o.kind, unittest.equals('foo')); |
427 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 462 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
428 checkPageInfo(o.pageInfo); | 463 checkPageInfo(o.pageInfo); |
429 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 464 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
430 checkTokenPagination(o.tokenPagination); | 465 checkTokenPagination(o.tokenPagination); |
431 unittest.expect(o.visitorId, unittest.equals('foo')); | 466 unittest.expect(o.visitorId, unittest.equals('foo')); |
432 } | 467 } |
433 buildCounterActivityListResponse--; | 468 buildCounterActivityListResponse--; |
434 } | 469 } |
435 | 470 |
(...skipping 23 matching lines...) Expand all Loading... |
459 unittest.expect(o.description, unittest.equals('foo')); | 494 unittest.expect(o.description, unittest.equals('foo')); |
460 unittest.expect(o.groupId, unittest.equals('foo')); | 495 unittest.expect(o.groupId, unittest.equals('foo')); |
461 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 496 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
462 checkThumbnailDetails(o.thumbnails); | 497 checkThumbnailDetails(o.thumbnails); |
463 unittest.expect(o.title, unittest.equals('foo')); | 498 unittest.expect(o.title, unittest.equals('foo')); |
464 unittest.expect(o.type, unittest.equals('foo')); | 499 unittest.expect(o.type, unittest.equals('foo')); |
465 } | 500 } |
466 buildCounterActivitySnippet--; | 501 buildCounterActivitySnippet--; |
467 } | 502 } |
468 | 503 |
| 504 core.int buildCounterCaption = 0; |
| 505 buildCaption() { |
| 506 var o = new api.Caption(); |
| 507 buildCounterCaption++; |
| 508 if (buildCounterCaption < 3) { |
| 509 o.etag = "foo"; |
| 510 o.id = "foo"; |
| 511 o.kind = "foo"; |
| 512 o.snippet = buildCaptionSnippet(); |
| 513 } |
| 514 buildCounterCaption--; |
| 515 return o; |
| 516 } |
| 517 |
| 518 checkCaption(api.Caption o) { |
| 519 buildCounterCaption++; |
| 520 if (buildCounterCaption < 3) { |
| 521 unittest.expect(o.etag, unittest.equals('foo')); |
| 522 unittest.expect(o.id, unittest.equals('foo')); |
| 523 unittest.expect(o.kind, unittest.equals('foo')); |
| 524 checkCaptionSnippet(o.snippet); |
| 525 } |
| 526 buildCounterCaption--; |
| 527 } |
| 528 |
| 529 buildUnnamed1414() { |
| 530 var o = new core.List<api.Caption>(); |
| 531 o.add(buildCaption()); |
| 532 o.add(buildCaption()); |
| 533 return o; |
| 534 } |
| 535 |
| 536 checkUnnamed1414(core.List<api.Caption> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); |
| 538 checkCaption(o[0]); |
| 539 checkCaption(o[1]); |
| 540 } |
| 541 |
| 542 core.int buildCounterCaptionListResponse = 0; |
| 543 buildCaptionListResponse() { |
| 544 var o = new api.CaptionListResponse(); |
| 545 buildCounterCaptionListResponse++; |
| 546 if (buildCounterCaptionListResponse < 3) { |
| 547 o.etag = "foo"; |
| 548 o.eventId = "foo"; |
| 549 o.items = buildUnnamed1414(); |
| 550 o.kind = "foo"; |
| 551 o.visitorId = "foo"; |
| 552 } |
| 553 buildCounterCaptionListResponse--; |
| 554 return o; |
| 555 } |
| 556 |
| 557 checkCaptionListResponse(api.CaptionListResponse o) { |
| 558 buildCounterCaptionListResponse++; |
| 559 if (buildCounterCaptionListResponse < 3) { |
| 560 unittest.expect(o.etag, unittest.equals('foo')); |
| 561 unittest.expect(o.eventId, unittest.equals('foo')); |
| 562 checkUnnamed1414(o.items); |
| 563 unittest.expect(o.kind, unittest.equals('foo')); |
| 564 unittest.expect(o.visitorId, unittest.equals('foo')); |
| 565 } |
| 566 buildCounterCaptionListResponse--; |
| 567 } |
| 568 |
| 569 core.int buildCounterCaptionSnippet = 0; |
| 570 buildCaptionSnippet() { |
| 571 var o = new api.CaptionSnippet(); |
| 572 buildCounterCaptionSnippet++; |
| 573 if (buildCounterCaptionSnippet < 3) { |
| 574 o.audioTrackType = "foo"; |
| 575 o.failureReason = "foo"; |
| 576 o.isAutoSynced = true; |
| 577 o.isCC = true; |
| 578 o.isDraft = true; |
| 579 o.isEasyReader = true; |
| 580 o.isLarge = true; |
| 581 o.language = "foo"; |
| 582 o.lastUpdated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 583 o.name = "foo"; |
| 584 o.status = "foo"; |
| 585 o.trackKind = "foo"; |
| 586 o.videoId = "foo"; |
| 587 } |
| 588 buildCounterCaptionSnippet--; |
| 589 return o; |
| 590 } |
| 591 |
| 592 checkCaptionSnippet(api.CaptionSnippet o) { |
| 593 buildCounterCaptionSnippet++; |
| 594 if (buildCounterCaptionSnippet < 3) { |
| 595 unittest.expect(o.audioTrackType, unittest.equals('foo')); |
| 596 unittest.expect(o.failureReason, unittest.equals('foo')); |
| 597 unittest.expect(o.isAutoSynced, unittest.isTrue); |
| 598 unittest.expect(o.isCC, unittest.isTrue); |
| 599 unittest.expect(o.isDraft, unittest.isTrue); |
| 600 unittest.expect(o.isEasyReader, unittest.isTrue); |
| 601 unittest.expect(o.isLarge, unittest.isTrue); |
| 602 unittest.expect(o.language, unittest.equals('foo')); |
| 603 unittest.expect(o.lastUpdated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 604 unittest.expect(o.name, unittest.equals('foo')); |
| 605 unittest.expect(o.status, unittest.equals('foo')); |
| 606 unittest.expect(o.trackKind, unittest.equals('foo')); |
| 607 unittest.expect(o.videoId, unittest.equals('foo')); |
| 608 } |
| 609 buildCounterCaptionSnippet--; |
| 610 } |
| 611 |
469 core.int buildCounterCdnSettings = 0; | 612 core.int buildCounterCdnSettings = 0; |
470 buildCdnSettings() { | 613 buildCdnSettings() { |
471 var o = new api.CdnSettings(); | 614 var o = new api.CdnSettings(); |
472 buildCounterCdnSettings++; | 615 buildCounterCdnSettings++; |
473 if (buildCounterCdnSettings < 3) { | 616 if (buildCounterCdnSettings < 3) { |
474 o.format = "foo"; | 617 o.format = "foo"; |
475 o.ingestionInfo = buildIngestionInfo(); | 618 o.ingestionInfo = buildIngestionInfo(); |
476 o.ingestionType = "foo"; | 619 o.ingestionType = "foo"; |
477 } | 620 } |
478 buildCounterCdnSettings--; | 621 buildCounterCdnSettings--; |
479 return o; | 622 return o; |
480 } | 623 } |
481 | 624 |
482 checkCdnSettings(api.CdnSettings o) { | 625 checkCdnSettings(api.CdnSettings o) { |
483 buildCounterCdnSettings++; | 626 buildCounterCdnSettings++; |
484 if (buildCounterCdnSettings < 3) { | 627 if (buildCounterCdnSettings < 3) { |
485 unittest.expect(o.format, unittest.equals('foo')); | 628 unittest.expect(o.format, unittest.equals('foo')); |
486 checkIngestionInfo(o.ingestionInfo); | 629 checkIngestionInfo(o.ingestionInfo); |
487 unittest.expect(o.ingestionType, unittest.equals('foo')); | 630 unittest.expect(o.ingestionType, unittest.equals('foo')); |
488 } | 631 } |
489 buildCounterCdnSettings--; | 632 buildCounterCdnSettings--; |
490 } | 633 } |
491 | 634 |
492 buildUnnamed623() { | 635 buildUnnamed1415() { |
493 var o = new core.Map<core.String, api.ChannelLocalization>(); | 636 var o = new core.Map<core.String, api.ChannelLocalization>(); |
494 o["x"] = buildChannelLocalization(); | 637 o["x"] = buildChannelLocalization(); |
495 o["y"] = buildChannelLocalization(); | 638 o["y"] = buildChannelLocalization(); |
496 return o; | 639 return o; |
497 } | 640 } |
498 | 641 |
499 checkUnnamed623(core.Map<core.String, api.ChannelLocalization> o) { | 642 checkUnnamed1415(core.Map<core.String, api.ChannelLocalization> o) { |
500 unittest.expect(o, unittest.hasLength(2)); | 643 unittest.expect(o, unittest.hasLength(2)); |
501 checkChannelLocalization(o["x"]); | 644 checkChannelLocalization(o["x"]); |
502 checkChannelLocalization(o["y"]); | 645 checkChannelLocalization(o["y"]); |
503 } | 646 } |
504 | 647 |
505 core.int buildCounterChannel = 0; | 648 core.int buildCounterChannel = 0; |
506 buildChannel() { | 649 buildChannel() { |
507 var o = new api.Channel(); | 650 var o = new api.Channel(); |
508 buildCounterChannel++; | 651 buildCounterChannel++; |
509 if (buildCounterChannel < 3) { | 652 if (buildCounterChannel < 3) { |
510 o.auditDetails = buildChannelAuditDetails(); | 653 o.auditDetails = buildChannelAuditDetails(); |
511 o.brandingSettings = buildChannelBrandingSettings(); | 654 o.brandingSettings = buildChannelBrandingSettings(); |
512 o.contentDetails = buildChannelContentDetails(); | 655 o.contentDetails = buildChannelContentDetails(); |
513 o.contentOwnerDetails = buildChannelContentOwnerDetails(); | 656 o.contentOwnerDetails = buildChannelContentOwnerDetails(); |
514 o.conversionPings = buildChannelConversionPings(); | 657 o.conversionPings = buildChannelConversionPings(); |
515 o.etag = "foo"; | 658 o.etag = "foo"; |
516 o.id = "foo"; | 659 o.id = "foo"; |
517 o.invideoPromotion = buildInvideoPromotion(); | 660 o.invideoPromotion = buildInvideoPromotion(); |
518 o.kind = "foo"; | 661 o.kind = "foo"; |
519 o.localizations = buildUnnamed623(); | 662 o.localizations = buildUnnamed1415(); |
520 o.snippet = buildChannelSnippet(); | 663 o.snippet = buildChannelSnippet(); |
521 o.statistics = buildChannelStatistics(); | 664 o.statistics = buildChannelStatistics(); |
522 o.status = buildChannelStatus(); | 665 o.status = buildChannelStatus(); |
523 o.topicDetails = buildChannelTopicDetails(); | 666 o.topicDetails = buildChannelTopicDetails(); |
524 } | 667 } |
525 buildCounterChannel--; | 668 buildCounterChannel--; |
526 return o; | 669 return o; |
527 } | 670 } |
528 | 671 |
529 checkChannel(api.Channel o) { | 672 checkChannel(api.Channel o) { |
530 buildCounterChannel++; | 673 buildCounterChannel++; |
531 if (buildCounterChannel < 3) { | 674 if (buildCounterChannel < 3) { |
532 checkChannelAuditDetails(o.auditDetails); | 675 checkChannelAuditDetails(o.auditDetails); |
533 checkChannelBrandingSettings(o.brandingSettings); | 676 checkChannelBrandingSettings(o.brandingSettings); |
534 checkChannelContentDetails(o.contentDetails); | 677 checkChannelContentDetails(o.contentDetails); |
535 checkChannelContentOwnerDetails(o.contentOwnerDetails); | 678 checkChannelContentOwnerDetails(o.contentOwnerDetails); |
536 checkChannelConversionPings(o.conversionPings); | 679 checkChannelConversionPings(o.conversionPings); |
537 unittest.expect(o.etag, unittest.equals('foo')); | 680 unittest.expect(o.etag, unittest.equals('foo')); |
538 unittest.expect(o.id, unittest.equals('foo')); | 681 unittest.expect(o.id, unittest.equals('foo')); |
539 checkInvideoPromotion(o.invideoPromotion); | 682 checkInvideoPromotion(o.invideoPromotion); |
540 unittest.expect(o.kind, unittest.equals('foo')); | 683 unittest.expect(o.kind, unittest.equals('foo')); |
541 checkUnnamed623(o.localizations); | 684 checkUnnamed1415(o.localizations); |
542 checkChannelSnippet(o.snippet); | 685 checkChannelSnippet(o.snippet); |
543 checkChannelStatistics(o.statistics); | 686 checkChannelStatistics(o.statistics); |
544 checkChannelStatus(o.status); | 687 checkChannelStatus(o.status); |
545 checkChannelTopicDetails(o.topicDetails); | 688 checkChannelTopicDetails(o.topicDetails); |
546 } | 689 } |
547 buildCounterChannel--; | 690 buildCounterChannel--; |
548 } | 691 } |
549 | 692 |
550 core.int buildCounterChannelAuditDetails = 0; | 693 core.int buildCounterChannelAuditDetails = 0; |
551 buildChannelAuditDetails() { | 694 buildChannelAuditDetails() { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 checkChannelBannerResource(api.ChannelBannerResource o) { | 731 checkChannelBannerResource(api.ChannelBannerResource o) { |
589 buildCounterChannelBannerResource++; | 732 buildCounterChannelBannerResource++; |
590 if (buildCounterChannelBannerResource < 3) { | 733 if (buildCounterChannelBannerResource < 3) { |
591 unittest.expect(o.etag, unittest.equals('foo')); | 734 unittest.expect(o.etag, unittest.equals('foo')); |
592 unittest.expect(o.kind, unittest.equals('foo')); | 735 unittest.expect(o.kind, unittest.equals('foo')); |
593 unittest.expect(o.url, unittest.equals('foo')); | 736 unittest.expect(o.url, unittest.equals('foo')); |
594 } | 737 } |
595 buildCounterChannelBannerResource--; | 738 buildCounterChannelBannerResource--; |
596 } | 739 } |
597 | 740 |
598 buildUnnamed624() { | 741 buildUnnamed1416() { |
599 var o = new core.List<api.PropertyValue>(); | 742 var o = new core.List<api.PropertyValue>(); |
600 o.add(buildPropertyValue()); | 743 o.add(buildPropertyValue()); |
601 o.add(buildPropertyValue()); | 744 o.add(buildPropertyValue()); |
602 return o; | 745 return o; |
603 } | 746 } |
604 | 747 |
605 checkUnnamed624(core.List<api.PropertyValue> o) { | 748 checkUnnamed1416(core.List<api.PropertyValue> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 749 unittest.expect(o, unittest.hasLength(2)); |
607 checkPropertyValue(o[0]); | 750 checkPropertyValue(o[0]); |
608 checkPropertyValue(o[1]); | 751 checkPropertyValue(o[1]); |
609 } | 752 } |
610 | 753 |
611 core.int buildCounterChannelBrandingSettings = 0; | 754 core.int buildCounterChannelBrandingSettings = 0; |
612 buildChannelBrandingSettings() { | 755 buildChannelBrandingSettings() { |
613 var o = new api.ChannelBrandingSettings(); | 756 var o = new api.ChannelBrandingSettings(); |
614 buildCounterChannelBrandingSettings++; | 757 buildCounterChannelBrandingSettings++; |
615 if (buildCounterChannelBrandingSettings < 3) { | 758 if (buildCounterChannelBrandingSettings < 3) { |
616 o.channel = buildChannelSettings(); | 759 o.channel = buildChannelSettings(); |
617 o.hints = buildUnnamed624(); | 760 o.hints = buildUnnamed1416(); |
618 o.image = buildImageSettings(); | 761 o.image = buildImageSettings(); |
619 o.watch = buildWatchSettings(); | 762 o.watch = buildWatchSettings(); |
620 } | 763 } |
621 buildCounterChannelBrandingSettings--; | 764 buildCounterChannelBrandingSettings--; |
622 return o; | 765 return o; |
623 } | 766 } |
624 | 767 |
625 checkChannelBrandingSettings(api.ChannelBrandingSettings o) { | 768 checkChannelBrandingSettings(api.ChannelBrandingSettings o) { |
626 buildCounterChannelBrandingSettings++; | 769 buildCounterChannelBrandingSettings++; |
627 if (buildCounterChannelBrandingSettings < 3) { | 770 if (buildCounterChannelBrandingSettings < 3) { |
628 checkChannelSettings(o.channel); | 771 checkChannelSettings(o.channel); |
629 checkUnnamed624(o.hints); | 772 checkUnnamed1416(o.hints); |
630 checkImageSettings(o.image); | 773 checkImageSettings(o.image); |
631 checkWatchSettings(o.watch); | 774 checkWatchSettings(o.watch); |
632 } | 775 } |
633 buildCounterChannelBrandingSettings--; | 776 buildCounterChannelBrandingSettings--; |
634 } | 777 } |
635 | 778 |
636 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0; | 779 core.int buildCounterChannelContentDetailsRelatedPlaylists = 0; |
637 buildChannelContentDetailsRelatedPlaylists() { | 780 buildChannelContentDetailsRelatedPlaylists() { |
638 var o = new api.ChannelContentDetailsRelatedPlaylists(); | 781 var o = new api.ChannelContentDetailsRelatedPlaylists(); |
639 buildCounterChannelContentDetailsRelatedPlaylists++; | 782 buildCounterChannelContentDetailsRelatedPlaylists++; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 | 859 |
717 checkChannelConversionPing(api.ChannelConversionPing o) { | 860 checkChannelConversionPing(api.ChannelConversionPing o) { |
718 buildCounterChannelConversionPing++; | 861 buildCounterChannelConversionPing++; |
719 if (buildCounterChannelConversionPing < 3) { | 862 if (buildCounterChannelConversionPing < 3) { |
720 unittest.expect(o.context, unittest.equals('foo')); | 863 unittest.expect(o.context, unittest.equals('foo')); |
721 unittest.expect(o.conversionUrl, unittest.equals('foo')); | 864 unittest.expect(o.conversionUrl, unittest.equals('foo')); |
722 } | 865 } |
723 buildCounterChannelConversionPing--; | 866 buildCounterChannelConversionPing--; |
724 } | 867 } |
725 | 868 |
726 buildUnnamed625() { | 869 buildUnnamed1417() { |
727 var o = new core.List<api.ChannelConversionPing>(); | 870 var o = new core.List<api.ChannelConversionPing>(); |
728 o.add(buildChannelConversionPing()); | 871 o.add(buildChannelConversionPing()); |
729 o.add(buildChannelConversionPing()); | 872 o.add(buildChannelConversionPing()); |
730 return o; | 873 return o; |
731 } | 874 } |
732 | 875 |
733 checkUnnamed625(core.List<api.ChannelConversionPing> o) { | 876 checkUnnamed1417(core.List<api.ChannelConversionPing> o) { |
734 unittest.expect(o, unittest.hasLength(2)); | 877 unittest.expect(o, unittest.hasLength(2)); |
735 checkChannelConversionPing(o[0]); | 878 checkChannelConversionPing(o[0]); |
736 checkChannelConversionPing(o[1]); | 879 checkChannelConversionPing(o[1]); |
737 } | 880 } |
738 | 881 |
739 core.int buildCounterChannelConversionPings = 0; | 882 core.int buildCounterChannelConversionPings = 0; |
740 buildChannelConversionPings() { | 883 buildChannelConversionPings() { |
741 var o = new api.ChannelConversionPings(); | 884 var o = new api.ChannelConversionPings(); |
742 buildCounterChannelConversionPings++; | 885 buildCounterChannelConversionPings++; |
743 if (buildCounterChannelConversionPings < 3) { | 886 if (buildCounterChannelConversionPings < 3) { |
744 o.pings = buildUnnamed625(); | 887 o.pings = buildUnnamed1417(); |
745 } | 888 } |
746 buildCounterChannelConversionPings--; | 889 buildCounterChannelConversionPings--; |
747 return o; | 890 return o; |
748 } | 891 } |
749 | 892 |
750 checkChannelConversionPings(api.ChannelConversionPings o) { | 893 checkChannelConversionPings(api.ChannelConversionPings o) { |
751 buildCounterChannelConversionPings++; | 894 buildCounterChannelConversionPings++; |
752 if (buildCounterChannelConversionPings < 3) { | 895 if (buildCounterChannelConversionPings < 3) { |
753 checkUnnamed625(o.pings); | 896 checkUnnamed1417(o.pings); |
754 } | 897 } |
755 buildCounterChannelConversionPings--; | 898 buildCounterChannelConversionPings--; |
756 } | 899 } |
757 | 900 |
758 buildUnnamed626() { | 901 buildUnnamed1418() { |
759 var o = new core.List<api.Channel>(); | 902 var o = new core.List<api.Channel>(); |
760 o.add(buildChannel()); | 903 o.add(buildChannel()); |
761 o.add(buildChannel()); | 904 o.add(buildChannel()); |
762 return o; | 905 return o; |
763 } | 906 } |
764 | 907 |
765 checkUnnamed626(core.List<api.Channel> o) { | 908 checkUnnamed1418(core.List<api.Channel> o) { |
766 unittest.expect(o, unittest.hasLength(2)); | 909 unittest.expect(o, unittest.hasLength(2)); |
767 checkChannel(o[0]); | 910 checkChannel(o[0]); |
768 checkChannel(o[1]); | 911 checkChannel(o[1]); |
769 } | 912 } |
770 | 913 |
771 core.int buildCounterChannelListResponse = 0; | 914 core.int buildCounterChannelListResponse = 0; |
772 buildChannelListResponse() { | 915 buildChannelListResponse() { |
773 var o = new api.ChannelListResponse(); | 916 var o = new api.ChannelListResponse(); |
774 buildCounterChannelListResponse++; | 917 buildCounterChannelListResponse++; |
775 if (buildCounterChannelListResponse < 3) { | 918 if (buildCounterChannelListResponse < 3) { |
776 o.etag = "foo"; | 919 o.etag = "foo"; |
777 o.eventId = "foo"; | 920 o.eventId = "foo"; |
778 o.items = buildUnnamed626(); | 921 o.items = buildUnnamed1418(); |
779 o.kind = "foo"; | 922 o.kind = "foo"; |
780 o.nextPageToken = "foo"; | 923 o.nextPageToken = "foo"; |
781 o.pageInfo = buildPageInfo(); | 924 o.pageInfo = buildPageInfo(); |
782 o.prevPageToken = "foo"; | 925 o.prevPageToken = "foo"; |
783 o.tokenPagination = buildTokenPagination(); | 926 o.tokenPagination = buildTokenPagination(); |
784 o.visitorId = "foo"; | 927 o.visitorId = "foo"; |
785 } | 928 } |
786 buildCounterChannelListResponse--; | 929 buildCounterChannelListResponse--; |
787 return o; | 930 return o; |
788 } | 931 } |
789 | 932 |
790 checkChannelListResponse(api.ChannelListResponse o) { | 933 checkChannelListResponse(api.ChannelListResponse o) { |
791 buildCounterChannelListResponse++; | 934 buildCounterChannelListResponse++; |
792 if (buildCounterChannelListResponse < 3) { | 935 if (buildCounterChannelListResponse < 3) { |
793 unittest.expect(o.etag, unittest.equals('foo')); | 936 unittest.expect(o.etag, unittest.equals('foo')); |
794 unittest.expect(o.eventId, unittest.equals('foo')); | 937 unittest.expect(o.eventId, unittest.equals('foo')); |
795 checkUnnamed626(o.items); | 938 checkUnnamed1418(o.items); |
796 unittest.expect(o.kind, unittest.equals('foo')); | 939 unittest.expect(o.kind, unittest.equals('foo')); |
797 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 940 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
798 checkPageInfo(o.pageInfo); | 941 checkPageInfo(o.pageInfo); |
799 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 942 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
800 checkTokenPagination(o.tokenPagination); | 943 checkTokenPagination(o.tokenPagination); |
801 unittest.expect(o.visitorId, unittest.equals('foo')); | 944 unittest.expect(o.visitorId, unittest.equals('foo')); |
802 } | 945 } |
803 buildCounterChannelListResponse--; | 946 buildCounterChannelListResponse--; |
804 } | 947 } |
805 | 948 |
(...skipping 11 matching lines...) Expand all Loading... |
817 | 960 |
818 checkChannelLocalization(api.ChannelLocalization o) { | 961 checkChannelLocalization(api.ChannelLocalization o) { |
819 buildCounterChannelLocalization++; | 962 buildCounterChannelLocalization++; |
820 if (buildCounterChannelLocalization < 3) { | 963 if (buildCounterChannelLocalization < 3) { |
821 unittest.expect(o.description, unittest.equals('foo')); | 964 unittest.expect(o.description, unittest.equals('foo')); |
822 unittest.expect(o.title, unittest.equals('foo')); | 965 unittest.expect(o.title, unittest.equals('foo')); |
823 } | 966 } |
824 buildCounterChannelLocalization--; | 967 buildCounterChannelLocalization--; |
825 } | 968 } |
826 | 969 |
827 buildUnnamed627() { | 970 buildUnnamed1419() { |
828 var o = new core.Map<core.String, api.ChannelSectionLocalization>(); | 971 var o = new core.Map<core.String, api.ChannelSectionLocalization>(); |
829 o["x"] = buildChannelSectionLocalization(); | 972 o["x"] = buildChannelSectionLocalization(); |
830 o["y"] = buildChannelSectionLocalization(); | 973 o["y"] = buildChannelSectionLocalization(); |
831 return o; | 974 return o; |
832 } | 975 } |
833 | 976 |
834 checkUnnamed627(core.Map<core.String, api.ChannelSectionLocalization> o) { | 977 checkUnnamed1419(core.Map<core.String, api.ChannelSectionLocalization> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 978 unittest.expect(o, unittest.hasLength(2)); |
836 checkChannelSectionLocalization(o["x"]); | 979 checkChannelSectionLocalization(o["x"]); |
837 checkChannelSectionLocalization(o["y"]); | 980 checkChannelSectionLocalization(o["y"]); |
838 } | 981 } |
839 | 982 |
840 core.int buildCounterChannelSection = 0; | 983 core.int buildCounterChannelSection = 0; |
841 buildChannelSection() { | 984 buildChannelSection() { |
842 var o = new api.ChannelSection(); | 985 var o = new api.ChannelSection(); |
843 buildCounterChannelSection++; | 986 buildCounterChannelSection++; |
844 if (buildCounterChannelSection < 3) { | 987 if (buildCounterChannelSection < 3) { |
845 o.contentDetails = buildChannelSectionContentDetails(); | 988 o.contentDetails = buildChannelSectionContentDetails(); |
846 o.etag = "foo"; | 989 o.etag = "foo"; |
847 o.id = "foo"; | 990 o.id = "foo"; |
848 o.kind = "foo"; | 991 o.kind = "foo"; |
849 o.localizations = buildUnnamed627(); | 992 o.localizations = buildUnnamed1419(); |
850 o.snippet = buildChannelSectionSnippet(); | 993 o.snippet = buildChannelSectionSnippet(); |
851 } | 994 } |
852 buildCounterChannelSection--; | 995 buildCounterChannelSection--; |
853 return o; | 996 return o; |
854 } | 997 } |
855 | 998 |
856 checkChannelSection(api.ChannelSection o) { | 999 checkChannelSection(api.ChannelSection o) { |
857 buildCounterChannelSection++; | 1000 buildCounterChannelSection++; |
858 if (buildCounterChannelSection < 3) { | 1001 if (buildCounterChannelSection < 3) { |
859 checkChannelSectionContentDetails(o.contentDetails); | 1002 checkChannelSectionContentDetails(o.contentDetails); |
860 unittest.expect(o.etag, unittest.equals('foo')); | 1003 unittest.expect(o.etag, unittest.equals('foo')); |
861 unittest.expect(o.id, unittest.equals('foo')); | 1004 unittest.expect(o.id, unittest.equals('foo')); |
862 unittest.expect(o.kind, unittest.equals('foo')); | 1005 unittest.expect(o.kind, unittest.equals('foo')); |
863 checkUnnamed627(o.localizations); | 1006 checkUnnamed1419(o.localizations); |
864 checkChannelSectionSnippet(o.snippet); | 1007 checkChannelSectionSnippet(o.snippet); |
865 } | 1008 } |
866 buildCounterChannelSection--; | 1009 buildCounterChannelSection--; |
867 } | 1010 } |
868 | 1011 |
869 buildUnnamed628() { | 1012 buildUnnamed1420() { |
870 var o = new core.List<core.String>(); | 1013 var o = new core.List<core.String>(); |
871 o.add("foo"); | 1014 o.add("foo"); |
872 o.add("foo"); | 1015 o.add("foo"); |
873 return o; | 1016 return o; |
874 } | 1017 } |
875 | 1018 |
876 checkUnnamed628(core.List<core.String> o) { | 1019 checkUnnamed1420(core.List<core.String> o) { |
877 unittest.expect(o, unittest.hasLength(2)); | 1020 unittest.expect(o, unittest.hasLength(2)); |
878 unittest.expect(o[0], unittest.equals('foo')); | 1021 unittest.expect(o[0], unittest.equals('foo')); |
879 unittest.expect(o[1], unittest.equals('foo')); | 1022 unittest.expect(o[1], unittest.equals('foo')); |
880 } | 1023 } |
881 | 1024 |
882 buildUnnamed629() { | 1025 buildUnnamed1421() { |
883 var o = new core.List<core.String>(); | 1026 var o = new core.List<core.String>(); |
884 o.add("foo"); | 1027 o.add("foo"); |
885 o.add("foo"); | 1028 o.add("foo"); |
886 return o; | 1029 return o; |
887 } | 1030 } |
888 | 1031 |
889 checkUnnamed629(core.List<core.String> o) { | 1032 checkUnnamed1421(core.List<core.String> o) { |
890 unittest.expect(o, unittest.hasLength(2)); | 1033 unittest.expect(o, unittest.hasLength(2)); |
891 unittest.expect(o[0], unittest.equals('foo')); | 1034 unittest.expect(o[0], unittest.equals('foo')); |
892 unittest.expect(o[1], unittest.equals('foo')); | 1035 unittest.expect(o[1], unittest.equals('foo')); |
893 } | 1036 } |
894 | 1037 |
895 core.int buildCounterChannelSectionContentDetails = 0; | 1038 core.int buildCounterChannelSectionContentDetails = 0; |
896 buildChannelSectionContentDetails() { | 1039 buildChannelSectionContentDetails() { |
897 var o = new api.ChannelSectionContentDetails(); | 1040 var o = new api.ChannelSectionContentDetails(); |
898 buildCounterChannelSectionContentDetails++; | 1041 buildCounterChannelSectionContentDetails++; |
899 if (buildCounterChannelSectionContentDetails < 3) { | 1042 if (buildCounterChannelSectionContentDetails < 3) { |
900 o.channels = buildUnnamed628(); | 1043 o.channels = buildUnnamed1420(); |
901 o.playlists = buildUnnamed629(); | 1044 o.playlists = buildUnnamed1421(); |
902 } | 1045 } |
903 buildCounterChannelSectionContentDetails--; | 1046 buildCounterChannelSectionContentDetails--; |
904 return o; | 1047 return o; |
905 } | 1048 } |
906 | 1049 |
907 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { | 1050 checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { |
908 buildCounterChannelSectionContentDetails++; | 1051 buildCounterChannelSectionContentDetails++; |
909 if (buildCounterChannelSectionContentDetails < 3) { | 1052 if (buildCounterChannelSectionContentDetails < 3) { |
910 checkUnnamed628(o.channels); | 1053 checkUnnamed1420(o.channels); |
911 checkUnnamed629(o.playlists); | 1054 checkUnnamed1421(o.playlists); |
912 } | 1055 } |
913 buildCounterChannelSectionContentDetails--; | 1056 buildCounterChannelSectionContentDetails--; |
914 } | 1057 } |
915 | 1058 |
916 buildUnnamed630() { | 1059 buildUnnamed1422() { |
917 var o = new core.List<api.ChannelSection>(); | 1060 var o = new core.List<api.ChannelSection>(); |
918 o.add(buildChannelSection()); | 1061 o.add(buildChannelSection()); |
919 o.add(buildChannelSection()); | 1062 o.add(buildChannelSection()); |
920 return o; | 1063 return o; |
921 } | 1064 } |
922 | 1065 |
923 checkUnnamed630(core.List<api.ChannelSection> o) { | 1066 checkUnnamed1422(core.List<api.ChannelSection> o) { |
924 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
925 checkChannelSection(o[0]); | 1068 checkChannelSection(o[0]); |
926 checkChannelSection(o[1]); | 1069 checkChannelSection(o[1]); |
927 } | 1070 } |
928 | 1071 |
929 core.int buildCounterChannelSectionListResponse = 0; | 1072 core.int buildCounterChannelSectionListResponse = 0; |
930 buildChannelSectionListResponse() { | 1073 buildChannelSectionListResponse() { |
931 var o = new api.ChannelSectionListResponse(); | 1074 var o = new api.ChannelSectionListResponse(); |
932 buildCounterChannelSectionListResponse++; | 1075 buildCounterChannelSectionListResponse++; |
933 if (buildCounterChannelSectionListResponse < 3) { | 1076 if (buildCounterChannelSectionListResponse < 3) { |
934 o.etag = "foo"; | 1077 o.etag = "foo"; |
935 o.eventId = "foo"; | 1078 o.eventId = "foo"; |
936 o.items = buildUnnamed630(); | 1079 o.items = buildUnnamed1422(); |
937 o.kind = "foo"; | 1080 o.kind = "foo"; |
938 o.visitorId = "foo"; | 1081 o.visitorId = "foo"; |
939 } | 1082 } |
940 buildCounterChannelSectionListResponse--; | 1083 buildCounterChannelSectionListResponse--; |
941 return o; | 1084 return o; |
942 } | 1085 } |
943 | 1086 |
944 checkChannelSectionListResponse(api.ChannelSectionListResponse o) { | 1087 checkChannelSectionListResponse(api.ChannelSectionListResponse o) { |
945 buildCounterChannelSectionListResponse++; | 1088 buildCounterChannelSectionListResponse++; |
946 if (buildCounterChannelSectionListResponse < 3) { | 1089 if (buildCounterChannelSectionListResponse < 3) { |
947 unittest.expect(o.etag, unittest.equals('foo')); | 1090 unittest.expect(o.etag, unittest.equals('foo')); |
948 unittest.expect(o.eventId, unittest.equals('foo')); | 1091 unittest.expect(o.eventId, unittest.equals('foo')); |
949 checkUnnamed630(o.items); | 1092 checkUnnamed1422(o.items); |
950 unittest.expect(o.kind, unittest.equals('foo')); | 1093 unittest.expect(o.kind, unittest.equals('foo')); |
951 unittest.expect(o.visitorId, unittest.equals('foo')); | 1094 unittest.expect(o.visitorId, unittest.equals('foo')); |
952 } | 1095 } |
953 buildCounterChannelSectionListResponse--; | 1096 buildCounterChannelSectionListResponse--; |
954 } | 1097 } |
955 | 1098 |
956 core.int buildCounterChannelSectionLocalization = 0; | 1099 core.int buildCounterChannelSectionLocalization = 0; |
957 buildChannelSectionLocalization() { | 1100 buildChannelSectionLocalization() { |
958 var o = new api.ChannelSectionLocalization(); | 1101 var o = new api.ChannelSectionLocalization(); |
959 buildCounterChannelSectionLocalization++; | 1102 buildCounterChannelSectionLocalization++; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 1139 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
997 checkChannelSectionLocalization(o.localized); | 1140 checkChannelSectionLocalization(o.localized); |
998 unittest.expect(o.position, unittest.equals(42)); | 1141 unittest.expect(o.position, unittest.equals(42)); |
999 unittest.expect(o.style, unittest.equals('foo')); | 1142 unittest.expect(o.style, unittest.equals('foo')); |
1000 unittest.expect(o.title, unittest.equals('foo')); | 1143 unittest.expect(o.title, unittest.equals('foo')); |
1001 unittest.expect(o.type, unittest.equals('foo')); | 1144 unittest.expect(o.type, unittest.equals('foo')); |
1002 } | 1145 } |
1003 buildCounterChannelSectionSnippet--; | 1146 buildCounterChannelSectionSnippet--; |
1004 } | 1147 } |
1005 | 1148 |
1006 buildUnnamed631() { | 1149 buildUnnamed1423() { |
1007 var o = new core.List<core.String>(); | 1150 var o = new core.List<core.String>(); |
1008 o.add("foo"); | 1151 o.add("foo"); |
1009 o.add("foo"); | 1152 o.add("foo"); |
1010 return o; | 1153 return o; |
1011 } | 1154 } |
1012 | 1155 |
1013 checkUnnamed631(core.List<core.String> o) { | 1156 checkUnnamed1423(core.List<core.String> o) { |
1014 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
1015 unittest.expect(o[0], unittest.equals('foo')); | 1158 unittest.expect(o[0], unittest.equals('foo')); |
1016 unittest.expect(o[1], unittest.equals('foo')); | 1159 unittest.expect(o[1], unittest.equals('foo')); |
1017 } | 1160 } |
1018 | 1161 |
1019 core.int buildCounterChannelSettings = 0; | 1162 core.int buildCounterChannelSettings = 0; |
1020 buildChannelSettings() { | 1163 buildChannelSettings() { |
1021 var o = new api.ChannelSettings(); | 1164 var o = new api.ChannelSettings(); |
1022 buildCounterChannelSettings++; | 1165 buildCounterChannelSettings++; |
1023 if (buildCounterChannelSettings < 3) { | 1166 if (buildCounterChannelSettings < 3) { |
1024 o.defaultLanguage = "foo"; | 1167 o.defaultLanguage = "foo"; |
1025 o.defaultTab = "foo"; | 1168 o.defaultTab = "foo"; |
1026 o.description = "foo"; | 1169 o.description = "foo"; |
1027 o.featuredChannelsTitle = "foo"; | 1170 o.featuredChannelsTitle = "foo"; |
1028 o.featuredChannelsUrls = buildUnnamed631(); | 1171 o.featuredChannelsUrls = buildUnnamed1423(); |
1029 o.keywords = "foo"; | 1172 o.keywords = "foo"; |
1030 o.moderateComments = true; | 1173 o.moderateComments = true; |
1031 o.profileColor = "foo"; | 1174 o.profileColor = "foo"; |
1032 o.showBrowseView = true; | 1175 o.showBrowseView = true; |
1033 o.showRelatedChannels = true; | 1176 o.showRelatedChannels = true; |
1034 o.title = "foo"; | 1177 o.title = "foo"; |
1035 o.trackingAnalyticsAccountId = "foo"; | 1178 o.trackingAnalyticsAccountId = "foo"; |
1036 o.unsubscribedTrailer = "foo"; | 1179 o.unsubscribedTrailer = "foo"; |
1037 } | 1180 } |
1038 buildCounterChannelSettings--; | 1181 buildCounterChannelSettings--; |
1039 return o; | 1182 return o; |
1040 } | 1183 } |
1041 | 1184 |
1042 checkChannelSettings(api.ChannelSettings o) { | 1185 checkChannelSettings(api.ChannelSettings o) { |
1043 buildCounterChannelSettings++; | 1186 buildCounterChannelSettings++; |
1044 if (buildCounterChannelSettings < 3) { | 1187 if (buildCounterChannelSettings < 3) { |
1045 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 1188 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
1046 unittest.expect(o.defaultTab, unittest.equals('foo')); | 1189 unittest.expect(o.defaultTab, unittest.equals('foo')); |
1047 unittest.expect(o.description, unittest.equals('foo')); | 1190 unittest.expect(o.description, unittest.equals('foo')); |
1048 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); | 1191 unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); |
1049 checkUnnamed631(o.featuredChannelsUrls); | 1192 checkUnnamed1423(o.featuredChannelsUrls); |
1050 unittest.expect(o.keywords, unittest.equals('foo')); | 1193 unittest.expect(o.keywords, unittest.equals('foo')); |
1051 unittest.expect(o.moderateComments, unittest.isTrue); | 1194 unittest.expect(o.moderateComments, unittest.isTrue); |
1052 unittest.expect(o.profileColor, unittest.equals('foo')); | 1195 unittest.expect(o.profileColor, unittest.equals('foo')); |
1053 unittest.expect(o.showBrowseView, unittest.isTrue); | 1196 unittest.expect(o.showBrowseView, unittest.isTrue); |
1054 unittest.expect(o.showRelatedChannels, unittest.isTrue); | 1197 unittest.expect(o.showRelatedChannels, unittest.isTrue); |
1055 unittest.expect(o.title, unittest.equals('foo')); | 1198 unittest.expect(o.title, unittest.equals('foo')); |
1056 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo')); | 1199 unittest.expect(o.trackingAnalyticsAccountId, unittest.equals('foo')); |
1057 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo')); | 1200 unittest.expect(o.unsubscribedTrailer, unittest.equals('foo')); |
1058 } | 1201 } |
1059 buildCounterChannelSettings--; | 1202 buildCounterChannelSettings--; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 checkChannelStatus(api.ChannelStatus o) { | 1274 checkChannelStatus(api.ChannelStatus o) { |
1132 buildCounterChannelStatus++; | 1275 buildCounterChannelStatus++; |
1133 if (buildCounterChannelStatus < 3) { | 1276 if (buildCounterChannelStatus < 3) { |
1134 unittest.expect(o.isLinked, unittest.isTrue); | 1277 unittest.expect(o.isLinked, unittest.isTrue); |
1135 unittest.expect(o.longUploadsStatus, unittest.equals('foo')); | 1278 unittest.expect(o.longUploadsStatus, unittest.equals('foo')); |
1136 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 1279 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
1137 } | 1280 } |
1138 buildCounterChannelStatus--; | 1281 buildCounterChannelStatus--; |
1139 } | 1282 } |
1140 | 1283 |
1141 buildUnnamed632() { | 1284 buildUnnamed1424() { |
1142 var o = new core.List<core.String>(); | 1285 var o = new core.List<core.String>(); |
1143 o.add("foo"); | 1286 o.add("foo"); |
1144 o.add("foo"); | 1287 o.add("foo"); |
1145 return o; | 1288 return o; |
1146 } | 1289 } |
1147 | 1290 |
1148 checkUnnamed632(core.List<core.String> o) { | 1291 checkUnnamed1424(core.List<core.String> o) { |
1149 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1150 unittest.expect(o[0], unittest.equals('foo')); | 1293 unittest.expect(o[0], unittest.equals('foo')); |
1151 unittest.expect(o[1], unittest.equals('foo')); | 1294 unittest.expect(o[1], unittest.equals('foo')); |
1152 } | 1295 } |
1153 | 1296 |
1154 core.int buildCounterChannelTopicDetails = 0; | 1297 core.int buildCounterChannelTopicDetails = 0; |
1155 buildChannelTopicDetails() { | 1298 buildChannelTopicDetails() { |
1156 var o = new api.ChannelTopicDetails(); | 1299 var o = new api.ChannelTopicDetails(); |
1157 buildCounterChannelTopicDetails++; | 1300 buildCounterChannelTopicDetails++; |
1158 if (buildCounterChannelTopicDetails < 3) { | 1301 if (buildCounterChannelTopicDetails < 3) { |
1159 o.topicIds = buildUnnamed632(); | 1302 o.topicIds = buildUnnamed1424(); |
1160 } | 1303 } |
1161 buildCounterChannelTopicDetails--; | 1304 buildCounterChannelTopicDetails--; |
1162 return o; | 1305 return o; |
1163 } | 1306 } |
1164 | 1307 |
1165 checkChannelTopicDetails(api.ChannelTopicDetails o) { | 1308 checkChannelTopicDetails(api.ChannelTopicDetails o) { |
1166 buildCounterChannelTopicDetails++; | 1309 buildCounterChannelTopicDetails++; |
1167 if (buildCounterChannelTopicDetails < 3) { | 1310 if (buildCounterChannelTopicDetails < 3) { |
1168 checkUnnamed632(o.topicIds); | 1311 checkUnnamed1424(o.topicIds); |
1169 } | 1312 } |
1170 buildCounterChannelTopicDetails--; | 1313 buildCounterChannelTopicDetails--; |
1171 } | 1314 } |
1172 | 1315 |
1173 buildUnnamed633() { | 1316 buildUnnamed1425() { |
1174 var o = new core.List<core.String>(); | 1317 var o = new core.List<core.String>(); |
1175 o.add("foo"); | 1318 o.add("foo"); |
1176 o.add("foo"); | 1319 o.add("foo"); |
1177 return o; | 1320 return o; |
1178 } | 1321 } |
1179 | 1322 |
1180 checkUnnamed633(core.List<core.String> o) { | 1323 checkUnnamed1425(core.List<core.String> o) { |
1181 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
1182 unittest.expect(o[0], unittest.equals('foo')); | 1325 unittest.expect(o[0], unittest.equals('foo')); |
1183 unittest.expect(o[1], unittest.equals('foo')); | 1326 unittest.expect(o[1], unittest.equals('foo')); |
1184 } | 1327 } |
1185 | 1328 |
1186 core.int buildCounterContentRating = 0; | 1329 core.int buildCounterContentRating = 0; |
1187 buildContentRating() { | 1330 buildContentRating() { |
1188 var o = new api.ContentRating(); | 1331 var o = new api.ContentRating(); |
1189 buildCounterContentRating++; | 1332 buildCounterContentRating++; |
1190 if (buildCounterContentRating < 3) { | 1333 if (buildCounterContentRating < 3) { |
1191 o.acbRating = "foo"; | 1334 o.acbRating = "foo"; |
1192 o.agcomRating = "foo"; | 1335 o.agcomRating = "foo"; |
1193 o.anatelRating = "foo"; | 1336 o.anatelRating = "foo"; |
1194 o.bbfcRating = "foo"; | 1337 o.bbfcRating = "foo"; |
1195 o.bfvcRating = "foo"; | 1338 o.bfvcRating = "foo"; |
1196 o.bmukkRating = "foo"; | 1339 o.bmukkRating = "foo"; |
1197 o.catvRating = "foo"; | 1340 o.catvRating = "foo"; |
1198 o.catvfrRating = "foo"; | 1341 o.catvfrRating = "foo"; |
1199 o.cbfcRating = "foo"; | 1342 o.cbfcRating = "foo"; |
1200 o.cccRating = "foo"; | 1343 o.cccRating = "foo"; |
1201 o.cceRating = "foo"; | 1344 o.cceRating = "foo"; |
1202 o.chfilmRating = "foo"; | 1345 o.chfilmRating = "foo"; |
1203 o.chvrsRating = "foo"; | 1346 o.chvrsRating = "foo"; |
1204 o.cicfRating = "foo"; | 1347 o.cicfRating = "foo"; |
1205 o.cnaRating = "foo"; | 1348 o.cnaRating = "foo"; |
1206 o.csaRating = "foo"; | 1349 o.csaRating = "foo"; |
1207 o.cscfRating = "foo"; | 1350 o.cscfRating = "foo"; |
1208 o.czfilmRating = "foo"; | 1351 o.czfilmRating = "foo"; |
1209 o.djctqRating = "foo"; | 1352 o.djctqRating = "foo"; |
1210 o.djctqRatingReasons = buildUnnamed633(); | 1353 o.djctqRatingReasons = buildUnnamed1425(); |
1211 o.eefilmRating = "foo"; | 1354 o.eefilmRating = "foo"; |
1212 o.egfilmRating = "foo"; | 1355 o.egfilmRating = "foo"; |
1213 o.eirinRating = "foo"; | 1356 o.eirinRating = "foo"; |
1214 o.fcbmRating = "foo"; | 1357 o.fcbmRating = "foo"; |
1215 o.fcoRating = "foo"; | 1358 o.fcoRating = "foo"; |
1216 o.fmocRating = "foo"; | 1359 o.fmocRating = "foo"; |
1217 o.fpbRating = "foo"; | 1360 o.fpbRating = "foo"; |
1218 o.fskRating = "foo"; | 1361 o.fskRating = "foo"; |
1219 o.grfilmRating = "foo"; | 1362 o.grfilmRating = "foo"; |
1220 o.icaaRating = "foo"; | 1363 o.icaaRating = "foo"; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 unittest.expect(o.cccRating, unittest.equals('foo')); | 1415 unittest.expect(o.cccRating, unittest.equals('foo')); |
1273 unittest.expect(o.cceRating, unittest.equals('foo')); | 1416 unittest.expect(o.cceRating, unittest.equals('foo')); |
1274 unittest.expect(o.chfilmRating, unittest.equals('foo')); | 1417 unittest.expect(o.chfilmRating, unittest.equals('foo')); |
1275 unittest.expect(o.chvrsRating, unittest.equals('foo')); | 1418 unittest.expect(o.chvrsRating, unittest.equals('foo')); |
1276 unittest.expect(o.cicfRating, unittest.equals('foo')); | 1419 unittest.expect(o.cicfRating, unittest.equals('foo')); |
1277 unittest.expect(o.cnaRating, unittest.equals('foo')); | 1420 unittest.expect(o.cnaRating, unittest.equals('foo')); |
1278 unittest.expect(o.csaRating, unittest.equals('foo')); | 1421 unittest.expect(o.csaRating, unittest.equals('foo')); |
1279 unittest.expect(o.cscfRating, unittest.equals('foo')); | 1422 unittest.expect(o.cscfRating, unittest.equals('foo')); |
1280 unittest.expect(o.czfilmRating, unittest.equals('foo')); | 1423 unittest.expect(o.czfilmRating, unittest.equals('foo')); |
1281 unittest.expect(o.djctqRating, unittest.equals('foo')); | 1424 unittest.expect(o.djctqRating, unittest.equals('foo')); |
1282 checkUnnamed633(o.djctqRatingReasons); | 1425 checkUnnamed1425(o.djctqRatingReasons); |
1283 unittest.expect(o.eefilmRating, unittest.equals('foo')); | 1426 unittest.expect(o.eefilmRating, unittest.equals('foo')); |
1284 unittest.expect(o.egfilmRating, unittest.equals('foo')); | 1427 unittest.expect(o.egfilmRating, unittest.equals('foo')); |
1285 unittest.expect(o.eirinRating, unittest.equals('foo')); | 1428 unittest.expect(o.eirinRating, unittest.equals('foo')); |
1286 unittest.expect(o.fcbmRating, unittest.equals('foo')); | 1429 unittest.expect(o.fcbmRating, unittest.equals('foo')); |
1287 unittest.expect(o.fcoRating, unittest.equals('foo')); | 1430 unittest.expect(o.fcoRating, unittest.equals('foo')); |
1288 unittest.expect(o.fmocRating, unittest.equals('foo')); | 1431 unittest.expect(o.fmocRating, unittest.equals('foo')); |
1289 unittest.expect(o.fpbRating, unittest.equals('foo')); | 1432 unittest.expect(o.fpbRating, unittest.equals('foo')); |
1290 unittest.expect(o.fskRating, unittest.equals('foo')); | 1433 unittest.expect(o.fskRating, unittest.equals('foo')); |
1291 unittest.expect(o.grfilmRating, unittest.equals('foo')); | 1434 unittest.expect(o.grfilmRating, unittest.equals('foo')); |
1292 unittest.expect(o.icaaRating, unittest.equals('foo')); | 1435 unittest.expect(o.icaaRating, unittest.equals('foo')); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1369 buildCounterGuideCategory++; | 1512 buildCounterGuideCategory++; |
1370 if (buildCounterGuideCategory < 3) { | 1513 if (buildCounterGuideCategory < 3) { |
1371 unittest.expect(o.etag, unittest.equals('foo')); | 1514 unittest.expect(o.etag, unittest.equals('foo')); |
1372 unittest.expect(o.id, unittest.equals('foo')); | 1515 unittest.expect(o.id, unittest.equals('foo')); |
1373 unittest.expect(o.kind, unittest.equals('foo')); | 1516 unittest.expect(o.kind, unittest.equals('foo')); |
1374 checkGuideCategorySnippet(o.snippet); | 1517 checkGuideCategorySnippet(o.snippet); |
1375 } | 1518 } |
1376 buildCounterGuideCategory--; | 1519 buildCounterGuideCategory--; |
1377 } | 1520 } |
1378 | 1521 |
1379 buildUnnamed634() { | 1522 buildUnnamed1426() { |
1380 var o = new core.List<api.GuideCategory>(); | 1523 var o = new core.List<api.GuideCategory>(); |
1381 o.add(buildGuideCategory()); | 1524 o.add(buildGuideCategory()); |
1382 o.add(buildGuideCategory()); | 1525 o.add(buildGuideCategory()); |
1383 return o; | 1526 return o; |
1384 } | 1527 } |
1385 | 1528 |
1386 checkUnnamed634(core.List<api.GuideCategory> o) { | 1529 checkUnnamed1426(core.List<api.GuideCategory> o) { |
1387 unittest.expect(o, unittest.hasLength(2)); | 1530 unittest.expect(o, unittest.hasLength(2)); |
1388 checkGuideCategory(o[0]); | 1531 checkGuideCategory(o[0]); |
1389 checkGuideCategory(o[1]); | 1532 checkGuideCategory(o[1]); |
1390 } | 1533 } |
1391 | 1534 |
1392 core.int buildCounterGuideCategoryListResponse = 0; | 1535 core.int buildCounterGuideCategoryListResponse = 0; |
1393 buildGuideCategoryListResponse() { | 1536 buildGuideCategoryListResponse() { |
1394 var o = new api.GuideCategoryListResponse(); | 1537 var o = new api.GuideCategoryListResponse(); |
1395 buildCounterGuideCategoryListResponse++; | 1538 buildCounterGuideCategoryListResponse++; |
1396 if (buildCounterGuideCategoryListResponse < 3) { | 1539 if (buildCounterGuideCategoryListResponse < 3) { |
1397 o.etag = "foo"; | 1540 o.etag = "foo"; |
1398 o.eventId = "foo"; | 1541 o.eventId = "foo"; |
1399 o.items = buildUnnamed634(); | 1542 o.items = buildUnnamed1426(); |
1400 o.kind = "foo"; | 1543 o.kind = "foo"; |
1401 o.nextPageToken = "foo"; | 1544 o.nextPageToken = "foo"; |
1402 o.pageInfo = buildPageInfo(); | 1545 o.pageInfo = buildPageInfo(); |
1403 o.prevPageToken = "foo"; | 1546 o.prevPageToken = "foo"; |
1404 o.tokenPagination = buildTokenPagination(); | 1547 o.tokenPagination = buildTokenPagination(); |
1405 o.visitorId = "foo"; | 1548 o.visitorId = "foo"; |
1406 } | 1549 } |
1407 buildCounterGuideCategoryListResponse--; | 1550 buildCounterGuideCategoryListResponse--; |
1408 return o; | 1551 return o; |
1409 } | 1552 } |
1410 | 1553 |
1411 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { | 1554 checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { |
1412 buildCounterGuideCategoryListResponse++; | 1555 buildCounterGuideCategoryListResponse++; |
1413 if (buildCounterGuideCategoryListResponse < 3) { | 1556 if (buildCounterGuideCategoryListResponse < 3) { |
1414 unittest.expect(o.etag, unittest.equals('foo')); | 1557 unittest.expect(o.etag, unittest.equals('foo')); |
1415 unittest.expect(o.eventId, unittest.equals('foo')); | 1558 unittest.expect(o.eventId, unittest.equals('foo')); |
1416 checkUnnamed634(o.items); | 1559 checkUnnamed1426(o.items); |
1417 unittest.expect(o.kind, unittest.equals('foo')); | 1560 unittest.expect(o.kind, unittest.equals('foo')); |
1418 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1561 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1419 checkPageInfo(o.pageInfo); | 1562 checkPageInfo(o.pageInfo); |
1420 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 1563 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
1421 checkTokenPagination(o.tokenPagination); | 1564 checkTokenPagination(o.tokenPagination); |
1422 unittest.expect(o.visitorId, unittest.equals('foo')); | 1565 unittest.expect(o.visitorId, unittest.equals('foo')); |
1423 } | 1566 } |
1424 buildCounterGuideCategoryListResponse--; | 1567 buildCounterGuideCategoryListResponse--; |
1425 } | 1568 } |
1426 | 1569 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 buildCounterI18nLanguage++; | 1606 buildCounterI18nLanguage++; |
1464 if (buildCounterI18nLanguage < 3) { | 1607 if (buildCounterI18nLanguage < 3) { |
1465 unittest.expect(o.etag, unittest.equals('foo')); | 1608 unittest.expect(o.etag, unittest.equals('foo')); |
1466 unittest.expect(o.id, unittest.equals('foo')); | 1609 unittest.expect(o.id, unittest.equals('foo')); |
1467 unittest.expect(o.kind, unittest.equals('foo')); | 1610 unittest.expect(o.kind, unittest.equals('foo')); |
1468 checkI18nLanguageSnippet(o.snippet); | 1611 checkI18nLanguageSnippet(o.snippet); |
1469 } | 1612 } |
1470 buildCounterI18nLanguage--; | 1613 buildCounterI18nLanguage--; |
1471 } | 1614 } |
1472 | 1615 |
1473 buildUnnamed635() { | 1616 buildUnnamed1427() { |
1474 var o = new core.List<api.I18nLanguage>(); | 1617 var o = new core.List<api.I18nLanguage>(); |
1475 o.add(buildI18nLanguage()); | 1618 o.add(buildI18nLanguage()); |
1476 o.add(buildI18nLanguage()); | 1619 o.add(buildI18nLanguage()); |
1477 return o; | 1620 return o; |
1478 } | 1621 } |
1479 | 1622 |
1480 checkUnnamed635(core.List<api.I18nLanguage> o) { | 1623 checkUnnamed1427(core.List<api.I18nLanguage> o) { |
1481 unittest.expect(o, unittest.hasLength(2)); | 1624 unittest.expect(o, unittest.hasLength(2)); |
1482 checkI18nLanguage(o[0]); | 1625 checkI18nLanguage(o[0]); |
1483 checkI18nLanguage(o[1]); | 1626 checkI18nLanguage(o[1]); |
1484 } | 1627 } |
1485 | 1628 |
1486 core.int buildCounterI18nLanguageListResponse = 0; | 1629 core.int buildCounterI18nLanguageListResponse = 0; |
1487 buildI18nLanguageListResponse() { | 1630 buildI18nLanguageListResponse() { |
1488 var o = new api.I18nLanguageListResponse(); | 1631 var o = new api.I18nLanguageListResponse(); |
1489 buildCounterI18nLanguageListResponse++; | 1632 buildCounterI18nLanguageListResponse++; |
1490 if (buildCounterI18nLanguageListResponse < 3) { | 1633 if (buildCounterI18nLanguageListResponse < 3) { |
1491 o.etag = "foo"; | 1634 o.etag = "foo"; |
1492 o.eventId = "foo"; | 1635 o.eventId = "foo"; |
1493 o.items = buildUnnamed635(); | 1636 o.items = buildUnnamed1427(); |
1494 o.kind = "foo"; | 1637 o.kind = "foo"; |
1495 o.visitorId = "foo"; | 1638 o.visitorId = "foo"; |
1496 } | 1639 } |
1497 buildCounterI18nLanguageListResponse--; | 1640 buildCounterI18nLanguageListResponse--; |
1498 return o; | 1641 return o; |
1499 } | 1642 } |
1500 | 1643 |
1501 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) { | 1644 checkI18nLanguageListResponse(api.I18nLanguageListResponse o) { |
1502 buildCounterI18nLanguageListResponse++; | 1645 buildCounterI18nLanguageListResponse++; |
1503 if (buildCounterI18nLanguageListResponse < 3) { | 1646 if (buildCounterI18nLanguageListResponse < 3) { |
1504 unittest.expect(o.etag, unittest.equals('foo')); | 1647 unittest.expect(o.etag, unittest.equals('foo')); |
1505 unittest.expect(o.eventId, unittest.equals('foo')); | 1648 unittest.expect(o.eventId, unittest.equals('foo')); |
1506 checkUnnamed635(o.items); | 1649 checkUnnamed1427(o.items); |
1507 unittest.expect(o.kind, unittest.equals('foo')); | 1650 unittest.expect(o.kind, unittest.equals('foo')); |
1508 unittest.expect(o.visitorId, unittest.equals('foo')); | 1651 unittest.expect(o.visitorId, unittest.equals('foo')); |
1509 } | 1652 } |
1510 buildCounterI18nLanguageListResponse--; | 1653 buildCounterI18nLanguageListResponse--; |
1511 } | 1654 } |
1512 | 1655 |
1513 core.int buildCounterI18nLanguageSnippet = 0; | 1656 core.int buildCounterI18nLanguageSnippet = 0; |
1514 buildI18nLanguageSnippet() { | 1657 buildI18nLanguageSnippet() { |
1515 var o = new api.I18nLanguageSnippet(); | 1658 var o = new api.I18nLanguageSnippet(); |
1516 buildCounterI18nLanguageSnippet++; | 1659 buildCounterI18nLanguageSnippet++; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 buildCounterI18nRegion++; | 1692 buildCounterI18nRegion++; |
1550 if (buildCounterI18nRegion < 3) { | 1693 if (buildCounterI18nRegion < 3) { |
1551 unittest.expect(o.etag, unittest.equals('foo')); | 1694 unittest.expect(o.etag, unittest.equals('foo')); |
1552 unittest.expect(o.id, unittest.equals('foo')); | 1695 unittest.expect(o.id, unittest.equals('foo')); |
1553 unittest.expect(o.kind, unittest.equals('foo')); | 1696 unittest.expect(o.kind, unittest.equals('foo')); |
1554 checkI18nRegionSnippet(o.snippet); | 1697 checkI18nRegionSnippet(o.snippet); |
1555 } | 1698 } |
1556 buildCounterI18nRegion--; | 1699 buildCounterI18nRegion--; |
1557 } | 1700 } |
1558 | 1701 |
1559 buildUnnamed636() { | 1702 buildUnnamed1428() { |
1560 var o = new core.List<api.I18nRegion>(); | 1703 var o = new core.List<api.I18nRegion>(); |
1561 o.add(buildI18nRegion()); | 1704 o.add(buildI18nRegion()); |
1562 o.add(buildI18nRegion()); | 1705 o.add(buildI18nRegion()); |
1563 return o; | 1706 return o; |
1564 } | 1707 } |
1565 | 1708 |
1566 checkUnnamed636(core.List<api.I18nRegion> o) { | 1709 checkUnnamed1428(core.List<api.I18nRegion> o) { |
1567 unittest.expect(o, unittest.hasLength(2)); | 1710 unittest.expect(o, unittest.hasLength(2)); |
1568 checkI18nRegion(o[0]); | 1711 checkI18nRegion(o[0]); |
1569 checkI18nRegion(o[1]); | 1712 checkI18nRegion(o[1]); |
1570 } | 1713 } |
1571 | 1714 |
1572 core.int buildCounterI18nRegionListResponse = 0; | 1715 core.int buildCounterI18nRegionListResponse = 0; |
1573 buildI18nRegionListResponse() { | 1716 buildI18nRegionListResponse() { |
1574 var o = new api.I18nRegionListResponse(); | 1717 var o = new api.I18nRegionListResponse(); |
1575 buildCounterI18nRegionListResponse++; | 1718 buildCounterI18nRegionListResponse++; |
1576 if (buildCounterI18nRegionListResponse < 3) { | 1719 if (buildCounterI18nRegionListResponse < 3) { |
1577 o.etag = "foo"; | 1720 o.etag = "foo"; |
1578 o.eventId = "foo"; | 1721 o.eventId = "foo"; |
1579 o.items = buildUnnamed636(); | 1722 o.items = buildUnnamed1428(); |
1580 o.kind = "foo"; | 1723 o.kind = "foo"; |
1581 o.visitorId = "foo"; | 1724 o.visitorId = "foo"; |
1582 } | 1725 } |
1583 buildCounterI18nRegionListResponse--; | 1726 buildCounterI18nRegionListResponse--; |
1584 return o; | 1727 return o; |
1585 } | 1728 } |
1586 | 1729 |
1587 checkI18nRegionListResponse(api.I18nRegionListResponse o) { | 1730 checkI18nRegionListResponse(api.I18nRegionListResponse o) { |
1588 buildCounterI18nRegionListResponse++; | 1731 buildCounterI18nRegionListResponse++; |
1589 if (buildCounterI18nRegionListResponse < 3) { | 1732 if (buildCounterI18nRegionListResponse < 3) { |
1590 unittest.expect(o.etag, unittest.equals('foo')); | 1733 unittest.expect(o.etag, unittest.equals('foo')); |
1591 unittest.expect(o.eventId, unittest.equals('foo')); | 1734 unittest.expect(o.eventId, unittest.equals('foo')); |
1592 checkUnnamed636(o.items); | 1735 checkUnnamed1428(o.items); |
1593 unittest.expect(o.kind, unittest.equals('foo')); | 1736 unittest.expect(o.kind, unittest.equals('foo')); |
1594 unittest.expect(o.visitorId, unittest.equals('foo')); | 1737 unittest.expect(o.visitorId, unittest.equals('foo')); |
1595 } | 1738 } |
1596 buildCounterI18nRegionListResponse--; | 1739 buildCounterI18nRegionListResponse--; |
1597 } | 1740 } |
1598 | 1741 |
1599 core.int buildCounterI18nRegionSnippet = 0; | 1742 core.int buildCounterI18nRegionSnippet = 0; |
1600 buildI18nRegionSnippet() { | 1743 buildI18nRegionSnippet() { |
1601 var o = new api.I18nRegionSnippet(); | 1744 var o = new api.I18nRegionSnippet(); |
1602 buildCounterI18nRegionSnippet++; | 1745 buildCounterI18nRegionSnippet++; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 | 1885 |
1743 checkInvideoPosition(api.InvideoPosition o) { | 1886 checkInvideoPosition(api.InvideoPosition o) { |
1744 buildCounterInvideoPosition++; | 1887 buildCounterInvideoPosition++; |
1745 if (buildCounterInvideoPosition < 3) { | 1888 if (buildCounterInvideoPosition < 3) { |
1746 unittest.expect(o.cornerPosition, unittest.equals('foo')); | 1889 unittest.expect(o.cornerPosition, unittest.equals('foo')); |
1747 unittest.expect(o.type, unittest.equals('foo')); | 1890 unittest.expect(o.type, unittest.equals('foo')); |
1748 } | 1891 } |
1749 buildCounterInvideoPosition--; | 1892 buildCounterInvideoPosition--; |
1750 } | 1893 } |
1751 | 1894 |
1752 buildUnnamed637() { | 1895 buildUnnamed1429() { |
1753 var o = new core.List<api.PromotedItem>(); | 1896 var o = new core.List<api.PromotedItem>(); |
1754 o.add(buildPromotedItem()); | 1897 o.add(buildPromotedItem()); |
1755 o.add(buildPromotedItem()); | 1898 o.add(buildPromotedItem()); |
1756 return o; | 1899 return o; |
1757 } | 1900 } |
1758 | 1901 |
1759 checkUnnamed637(core.List<api.PromotedItem> o) { | 1902 checkUnnamed1429(core.List<api.PromotedItem> o) { |
1760 unittest.expect(o, unittest.hasLength(2)); | 1903 unittest.expect(o, unittest.hasLength(2)); |
1761 checkPromotedItem(o[0]); | 1904 checkPromotedItem(o[0]); |
1762 checkPromotedItem(o[1]); | 1905 checkPromotedItem(o[1]); |
1763 } | 1906 } |
1764 | 1907 |
1765 core.int buildCounterInvideoPromotion = 0; | 1908 core.int buildCounterInvideoPromotion = 0; |
1766 buildInvideoPromotion() { | 1909 buildInvideoPromotion() { |
1767 var o = new api.InvideoPromotion(); | 1910 var o = new api.InvideoPromotion(); |
1768 buildCounterInvideoPromotion++; | 1911 buildCounterInvideoPromotion++; |
1769 if (buildCounterInvideoPromotion < 3) { | 1912 if (buildCounterInvideoPromotion < 3) { |
1770 o.defaultTiming = buildInvideoTiming(); | 1913 o.defaultTiming = buildInvideoTiming(); |
1771 o.items = buildUnnamed637(); | 1914 o.items = buildUnnamed1429(); |
1772 o.position = buildInvideoPosition(); | 1915 o.position = buildInvideoPosition(); |
1773 o.useSmartTiming = true; | 1916 o.useSmartTiming = true; |
1774 } | 1917 } |
1775 buildCounterInvideoPromotion--; | 1918 buildCounterInvideoPromotion--; |
1776 return o; | 1919 return o; |
1777 } | 1920 } |
1778 | 1921 |
1779 checkInvideoPromotion(api.InvideoPromotion o) { | 1922 checkInvideoPromotion(api.InvideoPromotion o) { |
1780 buildCounterInvideoPromotion++; | 1923 buildCounterInvideoPromotion++; |
1781 if (buildCounterInvideoPromotion < 3) { | 1924 if (buildCounterInvideoPromotion < 3) { |
1782 checkInvideoTiming(o.defaultTiming); | 1925 checkInvideoTiming(o.defaultTiming); |
1783 checkUnnamed637(o.items); | 1926 checkUnnamed1429(o.items); |
1784 checkInvideoPosition(o.position); | 1927 checkInvideoPosition(o.position); |
1785 unittest.expect(o.useSmartTiming, unittest.isTrue); | 1928 unittest.expect(o.useSmartTiming, unittest.isTrue); |
1786 } | 1929 } |
1787 buildCounterInvideoPromotion--; | 1930 buildCounterInvideoPromotion--; |
1788 } | 1931 } |
1789 | 1932 |
1790 core.int buildCounterInvideoTiming = 0; | 1933 core.int buildCounterInvideoTiming = 0; |
1791 buildInvideoTiming() { | 1934 buildInvideoTiming() { |
1792 var o = new api.InvideoTiming(); | 1935 var o = new api.InvideoTiming(); |
1793 buildCounterInvideoTiming++; | 1936 buildCounterInvideoTiming++; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 unittest.expect(o.enableContentEncryption, unittest.isTrue); | 2027 unittest.expect(o.enableContentEncryption, unittest.isTrue); |
1885 unittest.expect(o.enableDvr, unittest.isTrue); | 2028 unittest.expect(o.enableDvr, unittest.isTrue); |
1886 unittest.expect(o.enableEmbed, unittest.isTrue); | 2029 unittest.expect(o.enableEmbed, unittest.isTrue); |
1887 checkMonitorStreamInfo(o.monitorStream); | 2030 checkMonitorStreamInfo(o.monitorStream); |
1888 unittest.expect(o.recordFromStart, unittest.isTrue); | 2031 unittest.expect(o.recordFromStart, unittest.isTrue); |
1889 unittest.expect(o.startWithSlate, unittest.isTrue); | 2032 unittest.expect(o.startWithSlate, unittest.isTrue); |
1890 } | 2033 } |
1891 buildCounterLiveBroadcastContentDetails--; | 2034 buildCounterLiveBroadcastContentDetails--; |
1892 } | 2035 } |
1893 | 2036 |
1894 buildUnnamed638() { | 2037 buildUnnamed1430() { |
1895 var o = new core.List<api.LiveBroadcast>(); | 2038 var o = new core.List<api.LiveBroadcast>(); |
1896 o.add(buildLiveBroadcast()); | 2039 o.add(buildLiveBroadcast()); |
1897 o.add(buildLiveBroadcast()); | 2040 o.add(buildLiveBroadcast()); |
1898 return o; | 2041 return o; |
1899 } | 2042 } |
1900 | 2043 |
1901 checkUnnamed638(core.List<api.LiveBroadcast> o) { | 2044 checkUnnamed1430(core.List<api.LiveBroadcast> o) { |
1902 unittest.expect(o, unittest.hasLength(2)); | 2045 unittest.expect(o, unittest.hasLength(2)); |
1903 checkLiveBroadcast(o[0]); | 2046 checkLiveBroadcast(o[0]); |
1904 checkLiveBroadcast(o[1]); | 2047 checkLiveBroadcast(o[1]); |
1905 } | 2048 } |
1906 | 2049 |
1907 core.int buildCounterLiveBroadcastListResponse = 0; | 2050 core.int buildCounterLiveBroadcastListResponse = 0; |
1908 buildLiveBroadcastListResponse() { | 2051 buildLiveBroadcastListResponse() { |
1909 var o = new api.LiveBroadcastListResponse(); | 2052 var o = new api.LiveBroadcastListResponse(); |
1910 buildCounterLiveBroadcastListResponse++; | 2053 buildCounterLiveBroadcastListResponse++; |
1911 if (buildCounterLiveBroadcastListResponse < 3) { | 2054 if (buildCounterLiveBroadcastListResponse < 3) { |
1912 o.etag = "foo"; | 2055 o.etag = "foo"; |
1913 o.eventId = "foo"; | 2056 o.eventId = "foo"; |
1914 o.items = buildUnnamed638(); | 2057 o.items = buildUnnamed1430(); |
1915 o.kind = "foo"; | 2058 o.kind = "foo"; |
1916 o.nextPageToken = "foo"; | 2059 o.nextPageToken = "foo"; |
1917 o.pageInfo = buildPageInfo(); | 2060 o.pageInfo = buildPageInfo(); |
1918 o.prevPageToken = "foo"; | 2061 o.prevPageToken = "foo"; |
1919 o.tokenPagination = buildTokenPagination(); | 2062 o.tokenPagination = buildTokenPagination(); |
1920 o.visitorId = "foo"; | 2063 o.visitorId = "foo"; |
1921 } | 2064 } |
1922 buildCounterLiveBroadcastListResponse--; | 2065 buildCounterLiveBroadcastListResponse--; |
1923 return o; | 2066 return o; |
1924 } | 2067 } |
1925 | 2068 |
1926 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) { | 2069 checkLiveBroadcastListResponse(api.LiveBroadcastListResponse o) { |
1927 buildCounterLiveBroadcastListResponse++; | 2070 buildCounterLiveBroadcastListResponse++; |
1928 if (buildCounterLiveBroadcastListResponse < 3) { | 2071 if (buildCounterLiveBroadcastListResponse < 3) { |
1929 unittest.expect(o.etag, unittest.equals('foo')); | 2072 unittest.expect(o.etag, unittest.equals('foo')); |
1930 unittest.expect(o.eventId, unittest.equals('foo')); | 2073 unittest.expect(o.eventId, unittest.equals('foo')); |
1931 checkUnnamed638(o.items); | 2074 checkUnnamed1430(o.items); |
1932 unittest.expect(o.kind, unittest.equals('foo')); | 2075 unittest.expect(o.kind, unittest.equals('foo')); |
1933 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2076 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1934 checkPageInfo(o.pageInfo); | 2077 checkPageInfo(o.pageInfo); |
1935 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2078 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
1936 checkTokenPagination(o.tokenPagination); | 2079 checkTokenPagination(o.tokenPagination); |
1937 unittest.expect(o.visitorId, unittest.equals('foo')); | 2080 unittest.expect(o.visitorId, unittest.equals('foo')); |
1938 } | 2081 } |
1939 buildCounterLiveBroadcastListResponse--; | 2082 buildCounterLiveBroadcastListResponse--; |
1940 } | 2083 } |
1941 | 2084 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 | 2187 |
2045 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) { | 2188 checkLiveStreamContentDetails(api.LiveStreamContentDetails o) { |
2046 buildCounterLiveStreamContentDetails++; | 2189 buildCounterLiveStreamContentDetails++; |
2047 if (buildCounterLiveStreamContentDetails < 3) { | 2190 if (buildCounterLiveStreamContentDetails < 3) { |
2048 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo')); | 2191 unittest.expect(o.closedCaptionsIngestionUrl, unittest.equals('foo')); |
2049 unittest.expect(o.isReusable, unittest.isTrue); | 2192 unittest.expect(o.isReusable, unittest.isTrue); |
2050 } | 2193 } |
2051 buildCounterLiveStreamContentDetails--; | 2194 buildCounterLiveStreamContentDetails--; |
2052 } | 2195 } |
2053 | 2196 |
2054 buildUnnamed639() { | 2197 buildUnnamed1431() { |
2055 var o = new core.List<api.LiveStream>(); | 2198 var o = new core.List<api.LiveStream>(); |
2056 o.add(buildLiveStream()); | 2199 o.add(buildLiveStream()); |
2057 o.add(buildLiveStream()); | 2200 o.add(buildLiveStream()); |
2058 return o; | 2201 return o; |
2059 } | 2202 } |
2060 | 2203 |
2061 checkUnnamed639(core.List<api.LiveStream> o) { | 2204 checkUnnamed1431(core.List<api.LiveStream> o) { |
2062 unittest.expect(o, unittest.hasLength(2)); | 2205 unittest.expect(o, unittest.hasLength(2)); |
2063 checkLiveStream(o[0]); | 2206 checkLiveStream(o[0]); |
2064 checkLiveStream(o[1]); | 2207 checkLiveStream(o[1]); |
2065 } | 2208 } |
2066 | 2209 |
2067 core.int buildCounterLiveStreamListResponse = 0; | 2210 core.int buildCounterLiveStreamListResponse = 0; |
2068 buildLiveStreamListResponse() { | 2211 buildLiveStreamListResponse() { |
2069 var o = new api.LiveStreamListResponse(); | 2212 var o = new api.LiveStreamListResponse(); |
2070 buildCounterLiveStreamListResponse++; | 2213 buildCounterLiveStreamListResponse++; |
2071 if (buildCounterLiveStreamListResponse < 3) { | 2214 if (buildCounterLiveStreamListResponse < 3) { |
2072 o.etag = "foo"; | 2215 o.etag = "foo"; |
2073 o.eventId = "foo"; | 2216 o.eventId = "foo"; |
2074 o.items = buildUnnamed639(); | 2217 o.items = buildUnnamed1431(); |
2075 o.kind = "foo"; | 2218 o.kind = "foo"; |
2076 o.nextPageToken = "foo"; | 2219 o.nextPageToken = "foo"; |
2077 o.pageInfo = buildPageInfo(); | 2220 o.pageInfo = buildPageInfo(); |
2078 o.prevPageToken = "foo"; | 2221 o.prevPageToken = "foo"; |
2079 o.tokenPagination = buildTokenPagination(); | 2222 o.tokenPagination = buildTokenPagination(); |
2080 o.visitorId = "foo"; | 2223 o.visitorId = "foo"; |
2081 } | 2224 } |
2082 buildCounterLiveStreamListResponse--; | 2225 buildCounterLiveStreamListResponse--; |
2083 return o; | 2226 return o; |
2084 } | 2227 } |
2085 | 2228 |
2086 checkLiveStreamListResponse(api.LiveStreamListResponse o) { | 2229 checkLiveStreamListResponse(api.LiveStreamListResponse o) { |
2087 buildCounterLiveStreamListResponse++; | 2230 buildCounterLiveStreamListResponse++; |
2088 if (buildCounterLiveStreamListResponse < 3) { | 2231 if (buildCounterLiveStreamListResponse < 3) { |
2089 unittest.expect(o.etag, unittest.equals('foo')); | 2232 unittest.expect(o.etag, unittest.equals('foo')); |
2090 unittest.expect(o.eventId, unittest.equals('foo')); | 2233 unittest.expect(o.eventId, unittest.equals('foo')); |
2091 checkUnnamed639(o.items); | 2234 checkUnnamed1431(o.items); |
2092 unittest.expect(o.kind, unittest.equals('foo')); | 2235 unittest.expect(o.kind, unittest.equals('foo')); |
2093 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2236 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2094 checkPageInfo(o.pageInfo); | 2237 checkPageInfo(o.pageInfo); |
2095 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2238 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2096 checkTokenPagination(o.tokenPagination); | 2239 checkTokenPagination(o.tokenPagination); |
2097 unittest.expect(o.visitorId, unittest.equals('foo')); | 2240 unittest.expect(o.visitorId, unittest.equals('foo')); |
2098 } | 2241 } |
2099 buildCounterLiveStreamListResponse--; | 2242 buildCounterLiveStreamListResponse--; |
2100 } | 2243 } |
2101 | 2244 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 } | 2279 } |
2137 | 2280 |
2138 checkLiveStreamStatus(api.LiveStreamStatus o) { | 2281 checkLiveStreamStatus(api.LiveStreamStatus o) { |
2139 buildCounterLiveStreamStatus++; | 2282 buildCounterLiveStreamStatus++; |
2140 if (buildCounterLiveStreamStatus < 3) { | 2283 if (buildCounterLiveStreamStatus < 3) { |
2141 unittest.expect(o.streamStatus, unittest.equals('foo')); | 2284 unittest.expect(o.streamStatus, unittest.equals('foo')); |
2142 } | 2285 } |
2143 buildCounterLiveStreamStatus--; | 2286 buildCounterLiveStreamStatus--; |
2144 } | 2287 } |
2145 | 2288 |
2146 buildUnnamed640() { | 2289 buildUnnamed1432() { |
2147 var o = new core.List<api.LocalizedString>(); | 2290 var o = new core.List<api.LocalizedString>(); |
2148 o.add(buildLocalizedString()); | 2291 o.add(buildLocalizedString()); |
2149 o.add(buildLocalizedString()); | 2292 o.add(buildLocalizedString()); |
2150 return o; | 2293 return o; |
2151 } | 2294 } |
2152 | 2295 |
2153 checkUnnamed640(core.List<api.LocalizedString> o) { | 2296 checkUnnamed1432(core.List<api.LocalizedString> o) { |
2154 unittest.expect(o, unittest.hasLength(2)); | 2297 unittest.expect(o, unittest.hasLength(2)); |
2155 checkLocalizedString(o[0]); | 2298 checkLocalizedString(o[0]); |
2156 checkLocalizedString(o[1]); | 2299 checkLocalizedString(o[1]); |
2157 } | 2300 } |
2158 | 2301 |
2159 core.int buildCounterLocalizedProperty = 0; | 2302 core.int buildCounterLocalizedProperty = 0; |
2160 buildLocalizedProperty() { | 2303 buildLocalizedProperty() { |
2161 var o = new api.LocalizedProperty(); | 2304 var o = new api.LocalizedProperty(); |
2162 buildCounterLocalizedProperty++; | 2305 buildCounterLocalizedProperty++; |
2163 if (buildCounterLocalizedProperty < 3) { | 2306 if (buildCounterLocalizedProperty < 3) { |
2164 o.default_ = "foo"; | 2307 o.default_ = "foo"; |
2165 o.defaultLanguage = buildLanguageTag(); | 2308 o.defaultLanguage = buildLanguageTag(); |
2166 o.localized = buildUnnamed640(); | 2309 o.localized = buildUnnamed1432(); |
2167 } | 2310 } |
2168 buildCounterLocalizedProperty--; | 2311 buildCounterLocalizedProperty--; |
2169 return o; | 2312 return o; |
2170 } | 2313 } |
2171 | 2314 |
2172 checkLocalizedProperty(api.LocalizedProperty o) { | 2315 checkLocalizedProperty(api.LocalizedProperty o) { |
2173 buildCounterLocalizedProperty++; | 2316 buildCounterLocalizedProperty++; |
2174 if (buildCounterLocalizedProperty < 3) { | 2317 if (buildCounterLocalizedProperty < 3) { |
2175 unittest.expect(o.default_, unittest.equals('foo')); | 2318 unittest.expect(o.default_, unittest.equals('foo')); |
2176 checkLanguageTag(o.defaultLanguage); | 2319 checkLanguageTag(o.defaultLanguage); |
2177 checkUnnamed640(o.localized); | 2320 checkUnnamed1432(o.localized); |
2178 } | 2321 } |
2179 buildCounterLocalizedProperty--; | 2322 buildCounterLocalizedProperty--; |
2180 } | 2323 } |
2181 | 2324 |
2182 core.int buildCounterLocalizedString = 0; | 2325 core.int buildCounterLocalizedString = 0; |
2183 buildLocalizedString() { | 2326 buildLocalizedString() { |
2184 var o = new api.LocalizedString(); | 2327 var o = new api.LocalizedString(); |
2185 buildCounterLocalizedString++; | 2328 buildCounterLocalizedString++; |
2186 if (buildCounterLocalizedString < 3) { | 2329 if (buildCounterLocalizedString < 3) { |
2187 o.language = "foo"; | 2330 o.language = "foo"; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 | 2380 |
2238 checkPageInfo(api.PageInfo o) { | 2381 checkPageInfo(api.PageInfo o) { |
2239 buildCounterPageInfo++; | 2382 buildCounterPageInfo++; |
2240 if (buildCounterPageInfo < 3) { | 2383 if (buildCounterPageInfo < 3) { |
2241 unittest.expect(o.resultsPerPage, unittest.equals(42)); | 2384 unittest.expect(o.resultsPerPage, unittest.equals(42)); |
2242 unittest.expect(o.totalResults, unittest.equals(42)); | 2385 unittest.expect(o.totalResults, unittest.equals(42)); |
2243 } | 2386 } |
2244 buildCounterPageInfo--; | 2387 buildCounterPageInfo--; |
2245 } | 2388 } |
2246 | 2389 |
2247 buildUnnamed641() { | 2390 buildUnnamed1433() { |
2248 var o = new core.Map<core.String, api.PlaylistLocalization>(); | 2391 var o = new core.Map<core.String, api.PlaylistLocalization>(); |
2249 o["x"] = buildPlaylistLocalization(); | 2392 o["x"] = buildPlaylistLocalization(); |
2250 o["y"] = buildPlaylistLocalization(); | 2393 o["y"] = buildPlaylistLocalization(); |
2251 return o; | 2394 return o; |
2252 } | 2395 } |
2253 | 2396 |
2254 checkUnnamed641(core.Map<core.String, api.PlaylistLocalization> o) { | 2397 checkUnnamed1433(core.Map<core.String, api.PlaylistLocalization> o) { |
2255 unittest.expect(o, unittest.hasLength(2)); | 2398 unittest.expect(o, unittest.hasLength(2)); |
2256 checkPlaylistLocalization(o["x"]); | 2399 checkPlaylistLocalization(o["x"]); |
2257 checkPlaylistLocalization(o["y"]); | 2400 checkPlaylistLocalization(o["y"]); |
2258 } | 2401 } |
2259 | 2402 |
2260 core.int buildCounterPlaylist = 0; | 2403 core.int buildCounterPlaylist = 0; |
2261 buildPlaylist() { | 2404 buildPlaylist() { |
2262 var o = new api.Playlist(); | 2405 var o = new api.Playlist(); |
2263 buildCounterPlaylist++; | 2406 buildCounterPlaylist++; |
2264 if (buildCounterPlaylist < 3) { | 2407 if (buildCounterPlaylist < 3) { |
2265 o.contentDetails = buildPlaylistContentDetails(); | 2408 o.contentDetails = buildPlaylistContentDetails(); |
2266 o.etag = "foo"; | 2409 o.etag = "foo"; |
2267 o.id = "foo"; | 2410 o.id = "foo"; |
2268 o.kind = "foo"; | 2411 o.kind = "foo"; |
2269 o.localizations = buildUnnamed641(); | 2412 o.localizations = buildUnnamed1433(); |
2270 o.player = buildPlaylistPlayer(); | 2413 o.player = buildPlaylistPlayer(); |
2271 o.snippet = buildPlaylistSnippet(); | 2414 o.snippet = buildPlaylistSnippet(); |
2272 o.status = buildPlaylistStatus(); | 2415 o.status = buildPlaylistStatus(); |
2273 } | 2416 } |
2274 buildCounterPlaylist--; | 2417 buildCounterPlaylist--; |
2275 return o; | 2418 return o; |
2276 } | 2419 } |
2277 | 2420 |
2278 checkPlaylist(api.Playlist o) { | 2421 checkPlaylist(api.Playlist o) { |
2279 buildCounterPlaylist++; | 2422 buildCounterPlaylist++; |
2280 if (buildCounterPlaylist < 3) { | 2423 if (buildCounterPlaylist < 3) { |
2281 checkPlaylistContentDetails(o.contentDetails); | 2424 checkPlaylistContentDetails(o.contentDetails); |
2282 unittest.expect(o.etag, unittest.equals('foo')); | 2425 unittest.expect(o.etag, unittest.equals('foo')); |
2283 unittest.expect(o.id, unittest.equals('foo')); | 2426 unittest.expect(o.id, unittest.equals('foo')); |
2284 unittest.expect(o.kind, unittest.equals('foo')); | 2427 unittest.expect(o.kind, unittest.equals('foo')); |
2285 checkUnnamed641(o.localizations); | 2428 checkUnnamed1433(o.localizations); |
2286 checkPlaylistPlayer(o.player); | 2429 checkPlaylistPlayer(o.player); |
2287 checkPlaylistSnippet(o.snippet); | 2430 checkPlaylistSnippet(o.snippet); |
2288 checkPlaylistStatus(o.status); | 2431 checkPlaylistStatus(o.status); |
2289 } | 2432 } |
2290 buildCounterPlaylist--; | 2433 buildCounterPlaylist--; |
2291 } | 2434 } |
2292 | 2435 |
2293 core.int buildCounterPlaylistContentDetails = 0; | 2436 core.int buildCounterPlaylistContentDetails = 0; |
2294 buildPlaylistContentDetails() { | 2437 buildPlaylistContentDetails() { |
2295 var o = new api.PlaylistContentDetails(); | 2438 var o = new api.PlaylistContentDetails(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 buildCounterPlaylistItemContentDetails++; | 2499 buildCounterPlaylistItemContentDetails++; |
2357 if (buildCounterPlaylistItemContentDetails < 3) { | 2500 if (buildCounterPlaylistItemContentDetails < 3) { |
2358 unittest.expect(o.endAt, unittest.equals('foo')); | 2501 unittest.expect(o.endAt, unittest.equals('foo')); |
2359 unittest.expect(o.note, unittest.equals('foo')); | 2502 unittest.expect(o.note, unittest.equals('foo')); |
2360 unittest.expect(o.startAt, unittest.equals('foo')); | 2503 unittest.expect(o.startAt, unittest.equals('foo')); |
2361 unittest.expect(o.videoId, unittest.equals('foo')); | 2504 unittest.expect(o.videoId, unittest.equals('foo')); |
2362 } | 2505 } |
2363 buildCounterPlaylistItemContentDetails--; | 2506 buildCounterPlaylistItemContentDetails--; |
2364 } | 2507 } |
2365 | 2508 |
2366 buildUnnamed642() { | 2509 buildUnnamed1434() { |
2367 var o = new core.List<api.PlaylistItem>(); | 2510 var o = new core.List<api.PlaylistItem>(); |
2368 o.add(buildPlaylistItem()); | 2511 o.add(buildPlaylistItem()); |
2369 o.add(buildPlaylistItem()); | 2512 o.add(buildPlaylistItem()); |
2370 return o; | 2513 return o; |
2371 } | 2514 } |
2372 | 2515 |
2373 checkUnnamed642(core.List<api.PlaylistItem> o) { | 2516 checkUnnamed1434(core.List<api.PlaylistItem> o) { |
2374 unittest.expect(o, unittest.hasLength(2)); | 2517 unittest.expect(o, unittest.hasLength(2)); |
2375 checkPlaylistItem(o[0]); | 2518 checkPlaylistItem(o[0]); |
2376 checkPlaylistItem(o[1]); | 2519 checkPlaylistItem(o[1]); |
2377 } | 2520 } |
2378 | 2521 |
2379 core.int buildCounterPlaylistItemListResponse = 0; | 2522 core.int buildCounterPlaylistItemListResponse = 0; |
2380 buildPlaylistItemListResponse() { | 2523 buildPlaylistItemListResponse() { |
2381 var o = new api.PlaylistItemListResponse(); | 2524 var o = new api.PlaylistItemListResponse(); |
2382 buildCounterPlaylistItemListResponse++; | 2525 buildCounterPlaylistItemListResponse++; |
2383 if (buildCounterPlaylistItemListResponse < 3) { | 2526 if (buildCounterPlaylistItemListResponse < 3) { |
2384 o.etag = "foo"; | 2527 o.etag = "foo"; |
2385 o.eventId = "foo"; | 2528 o.eventId = "foo"; |
2386 o.items = buildUnnamed642(); | 2529 o.items = buildUnnamed1434(); |
2387 o.kind = "foo"; | 2530 o.kind = "foo"; |
2388 o.nextPageToken = "foo"; | 2531 o.nextPageToken = "foo"; |
2389 o.pageInfo = buildPageInfo(); | 2532 o.pageInfo = buildPageInfo(); |
2390 o.prevPageToken = "foo"; | 2533 o.prevPageToken = "foo"; |
2391 o.tokenPagination = buildTokenPagination(); | 2534 o.tokenPagination = buildTokenPagination(); |
2392 o.visitorId = "foo"; | 2535 o.visitorId = "foo"; |
2393 } | 2536 } |
2394 buildCounterPlaylistItemListResponse--; | 2537 buildCounterPlaylistItemListResponse--; |
2395 return o; | 2538 return o; |
2396 } | 2539 } |
2397 | 2540 |
2398 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) { | 2541 checkPlaylistItemListResponse(api.PlaylistItemListResponse o) { |
2399 buildCounterPlaylistItemListResponse++; | 2542 buildCounterPlaylistItemListResponse++; |
2400 if (buildCounterPlaylistItemListResponse < 3) { | 2543 if (buildCounterPlaylistItemListResponse < 3) { |
2401 unittest.expect(o.etag, unittest.equals('foo')); | 2544 unittest.expect(o.etag, unittest.equals('foo')); |
2402 unittest.expect(o.eventId, unittest.equals('foo')); | 2545 unittest.expect(o.eventId, unittest.equals('foo')); |
2403 checkUnnamed642(o.items); | 2546 checkUnnamed1434(o.items); |
2404 unittest.expect(o.kind, unittest.equals('foo')); | 2547 unittest.expect(o.kind, unittest.equals('foo')); |
2405 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2548 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2406 checkPageInfo(o.pageInfo); | 2549 checkPageInfo(o.pageInfo); |
2407 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2550 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2408 checkTokenPagination(o.tokenPagination); | 2551 checkTokenPagination(o.tokenPagination); |
2409 unittest.expect(o.visitorId, unittest.equals('foo')); | 2552 unittest.expect(o.visitorId, unittest.equals('foo')); |
2410 } | 2553 } |
2411 buildCounterPlaylistItemListResponse--; | 2554 buildCounterPlaylistItemListResponse--; |
2412 } | 2555 } |
2413 | 2556 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2458 } | 2601 } |
2459 | 2602 |
2460 checkPlaylistItemStatus(api.PlaylistItemStatus o) { | 2603 checkPlaylistItemStatus(api.PlaylistItemStatus o) { |
2461 buildCounterPlaylistItemStatus++; | 2604 buildCounterPlaylistItemStatus++; |
2462 if (buildCounterPlaylistItemStatus < 3) { | 2605 if (buildCounterPlaylistItemStatus < 3) { |
2463 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 2606 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
2464 } | 2607 } |
2465 buildCounterPlaylistItemStatus--; | 2608 buildCounterPlaylistItemStatus--; |
2466 } | 2609 } |
2467 | 2610 |
2468 buildUnnamed643() { | 2611 buildUnnamed1435() { |
2469 var o = new core.List<api.Playlist>(); | 2612 var o = new core.List<api.Playlist>(); |
2470 o.add(buildPlaylist()); | 2613 o.add(buildPlaylist()); |
2471 o.add(buildPlaylist()); | 2614 o.add(buildPlaylist()); |
2472 return o; | 2615 return o; |
2473 } | 2616 } |
2474 | 2617 |
2475 checkUnnamed643(core.List<api.Playlist> o) { | 2618 checkUnnamed1435(core.List<api.Playlist> o) { |
2476 unittest.expect(o, unittest.hasLength(2)); | 2619 unittest.expect(o, unittest.hasLength(2)); |
2477 checkPlaylist(o[0]); | 2620 checkPlaylist(o[0]); |
2478 checkPlaylist(o[1]); | 2621 checkPlaylist(o[1]); |
2479 } | 2622 } |
2480 | 2623 |
2481 core.int buildCounterPlaylistListResponse = 0; | 2624 core.int buildCounterPlaylistListResponse = 0; |
2482 buildPlaylistListResponse() { | 2625 buildPlaylistListResponse() { |
2483 var o = new api.PlaylistListResponse(); | 2626 var o = new api.PlaylistListResponse(); |
2484 buildCounterPlaylistListResponse++; | 2627 buildCounterPlaylistListResponse++; |
2485 if (buildCounterPlaylistListResponse < 3) { | 2628 if (buildCounterPlaylistListResponse < 3) { |
2486 o.etag = "foo"; | 2629 o.etag = "foo"; |
2487 o.eventId = "foo"; | 2630 o.eventId = "foo"; |
2488 o.items = buildUnnamed643(); | 2631 o.items = buildUnnamed1435(); |
2489 o.kind = "foo"; | 2632 o.kind = "foo"; |
2490 o.nextPageToken = "foo"; | 2633 o.nextPageToken = "foo"; |
2491 o.pageInfo = buildPageInfo(); | 2634 o.pageInfo = buildPageInfo(); |
2492 o.prevPageToken = "foo"; | 2635 o.prevPageToken = "foo"; |
2493 o.tokenPagination = buildTokenPagination(); | 2636 o.tokenPagination = buildTokenPagination(); |
2494 o.visitorId = "foo"; | 2637 o.visitorId = "foo"; |
2495 } | 2638 } |
2496 buildCounterPlaylistListResponse--; | 2639 buildCounterPlaylistListResponse--; |
2497 return o; | 2640 return o; |
2498 } | 2641 } |
2499 | 2642 |
2500 checkPlaylistListResponse(api.PlaylistListResponse o) { | 2643 checkPlaylistListResponse(api.PlaylistListResponse o) { |
2501 buildCounterPlaylistListResponse++; | 2644 buildCounterPlaylistListResponse++; |
2502 if (buildCounterPlaylistListResponse < 3) { | 2645 if (buildCounterPlaylistListResponse < 3) { |
2503 unittest.expect(o.etag, unittest.equals('foo')); | 2646 unittest.expect(o.etag, unittest.equals('foo')); |
2504 unittest.expect(o.eventId, unittest.equals('foo')); | 2647 unittest.expect(o.eventId, unittest.equals('foo')); |
2505 checkUnnamed643(o.items); | 2648 checkUnnamed1435(o.items); |
2506 unittest.expect(o.kind, unittest.equals('foo')); | 2649 unittest.expect(o.kind, unittest.equals('foo')); |
2507 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2650 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2508 checkPageInfo(o.pageInfo); | 2651 checkPageInfo(o.pageInfo); |
2509 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2652 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2510 checkTokenPagination(o.tokenPagination); | 2653 checkTokenPagination(o.tokenPagination); |
2511 unittest.expect(o.visitorId, unittest.equals('foo')); | 2654 unittest.expect(o.visitorId, unittest.equals('foo')); |
2512 } | 2655 } |
2513 buildCounterPlaylistListResponse--; | 2656 buildCounterPlaylistListResponse--; |
2514 } | 2657 } |
2515 | 2658 |
(...skipping 30 matching lines...) Expand all Loading... |
2546 } | 2689 } |
2547 | 2690 |
2548 checkPlaylistPlayer(api.PlaylistPlayer o) { | 2691 checkPlaylistPlayer(api.PlaylistPlayer o) { |
2549 buildCounterPlaylistPlayer++; | 2692 buildCounterPlaylistPlayer++; |
2550 if (buildCounterPlaylistPlayer < 3) { | 2693 if (buildCounterPlaylistPlayer < 3) { |
2551 unittest.expect(o.embedHtml, unittest.equals('foo')); | 2694 unittest.expect(o.embedHtml, unittest.equals('foo')); |
2552 } | 2695 } |
2553 buildCounterPlaylistPlayer--; | 2696 buildCounterPlaylistPlayer--; |
2554 } | 2697 } |
2555 | 2698 |
2556 buildUnnamed644() { | 2699 buildUnnamed1436() { |
2557 var o = new core.List<core.String>(); | 2700 var o = new core.List<core.String>(); |
2558 o.add("foo"); | 2701 o.add("foo"); |
2559 o.add("foo"); | 2702 o.add("foo"); |
2560 return o; | 2703 return o; |
2561 } | 2704 } |
2562 | 2705 |
2563 checkUnnamed644(core.List<core.String> o) { | 2706 checkUnnamed1436(core.List<core.String> o) { |
2564 unittest.expect(o, unittest.hasLength(2)); | 2707 unittest.expect(o, unittest.hasLength(2)); |
2565 unittest.expect(o[0], unittest.equals('foo')); | 2708 unittest.expect(o[0], unittest.equals('foo')); |
2566 unittest.expect(o[1], unittest.equals('foo')); | 2709 unittest.expect(o[1], unittest.equals('foo')); |
2567 } | 2710 } |
2568 | 2711 |
2569 core.int buildCounterPlaylistSnippet = 0; | 2712 core.int buildCounterPlaylistSnippet = 0; |
2570 buildPlaylistSnippet() { | 2713 buildPlaylistSnippet() { |
2571 var o = new api.PlaylistSnippet(); | 2714 var o = new api.PlaylistSnippet(); |
2572 buildCounterPlaylistSnippet++; | 2715 buildCounterPlaylistSnippet++; |
2573 if (buildCounterPlaylistSnippet < 3) { | 2716 if (buildCounterPlaylistSnippet < 3) { |
2574 o.channelId = "foo"; | 2717 o.channelId = "foo"; |
2575 o.channelTitle = "foo"; | 2718 o.channelTitle = "foo"; |
2576 o.defaultLanguage = "foo"; | 2719 o.defaultLanguage = "foo"; |
2577 o.description = "foo"; | 2720 o.description = "foo"; |
2578 o.localized = buildPlaylistLocalization(); | 2721 o.localized = buildPlaylistLocalization(); |
2579 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); | 2722 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); |
2580 o.tags = buildUnnamed644(); | 2723 o.tags = buildUnnamed1436(); |
2581 o.thumbnails = buildThumbnailDetails(); | 2724 o.thumbnails = buildThumbnailDetails(); |
2582 o.title = "foo"; | 2725 o.title = "foo"; |
2583 } | 2726 } |
2584 buildCounterPlaylistSnippet--; | 2727 buildCounterPlaylistSnippet--; |
2585 return o; | 2728 return o; |
2586 } | 2729 } |
2587 | 2730 |
2588 checkPlaylistSnippet(api.PlaylistSnippet o) { | 2731 checkPlaylistSnippet(api.PlaylistSnippet o) { |
2589 buildCounterPlaylistSnippet++; | 2732 buildCounterPlaylistSnippet++; |
2590 if (buildCounterPlaylistSnippet < 3) { | 2733 if (buildCounterPlaylistSnippet < 3) { |
2591 unittest.expect(o.channelId, unittest.equals('foo')); | 2734 unittest.expect(o.channelId, unittest.equals('foo')); |
2592 unittest.expect(o.channelTitle, unittest.equals('foo')); | 2735 unittest.expect(o.channelTitle, unittest.equals('foo')); |
2593 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 2736 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
2594 unittest.expect(o.description, unittest.equals('foo')); | 2737 unittest.expect(o.description, unittest.equals('foo')); |
2595 checkPlaylistLocalization(o.localized); | 2738 checkPlaylistLocalization(o.localized); |
2596 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 2739 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
2597 checkUnnamed644(o.tags); | 2740 checkUnnamed1436(o.tags); |
2598 checkThumbnailDetails(o.thumbnails); | 2741 checkThumbnailDetails(o.thumbnails); |
2599 unittest.expect(o.title, unittest.equals('foo')); | 2742 unittest.expect(o.title, unittest.equals('foo')); |
2600 } | 2743 } |
2601 buildCounterPlaylistSnippet--; | 2744 buildCounterPlaylistSnippet--; |
2602 } | 2745 } |
2603 | 2746 |
2604 core.int buildCounterPlaylistStatus = 0; | 2747 core.int buildCounterPlaylistStatus = 0; |
2605 buildPlaylistStatus() { | 2748 buildPlaylistStatus() { |
2606 var o = new api.PlaylistStatus(); | 2749 var o = new api.PlaylistStatus(); |
2607 buildCounterPlaylistStatus++; | 2750 buildCounterPlaylistStatus++; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2709 buildCounterResourceId++; | 2852 buildCounterResourceId++; |
2710 if (buildCounterResourceId < 3) { | 2853 if (buildCounterResourceId < 3) { |
2711 unittest.expect(o.channelId, unittest.equals('foo')); | 2854 unittest.expect(o.channelId, unittest.equals('foo')); |
2712 unittest.expect(o.kind, unittest.equals('foo')); | 2855 unittest.expect(o.kind, unittest.equals('foo')); |
2713 unittest.expect(o.playlistId, unittest.equals('foo')); | 2856 unittest.expect(o.playlistId, unittest.equals('foo')); |
2714 unittest.expect(o.videoId, unittest.equals('foo')); | 2857 unittest.expect(o.videoId, unittest.equals('foo')); |
2715 } | 2858 } |
2716 buildCounterResourceId--; | 2859 buildCounterResourceId--; |
2717 } | 2860 } |
2718 | 2861 |
2719 buildUnnamed645() { | 2862 buildUnnamed1437() { |
2720 var o = new core.List<api.SearchResult>(); | 2863 var o = new core.List<api.SearchResult>(); |
2721 o.add(buildSearchResult()); | 2864 o.add(buildSearchResult()); |
2722 o.add(buildSearchResult()); | 2865 o.add(buildSearchResult()); |
2723 return o; | 2866 return o; |
2724 } | 2867 } |
2725 | 2868 |
2726 checkUnnamed645(core.List<api.SearchResult> o) { | 2869 checkUnnamed1437(core.List<api.SearchResult> o) { |
2727 unittest.expect(o, unittest.hasLength(2)); | 2870 unittest.expect(o, unittest.hasLength(2)); |
2728 checkSearchResult(o[0]); | 2871 checkSearchResult(o[0]); |
2729 checkSearchResult(o[1]); | 2872 checkSearchResult(o[1]); |
2730 } | 2873 } |
2731 | 2874 |
2732 core.int buildCounterSearchListResponse = 0; | 2875 core.int buildCounterSearchListResponse = 0; |
2733 buildSearchListResponse() { | 2876 buildSearchListResponse() { |
2734 var o = new api.SearchListResponse(); | 2877 var o = new api.SearchListResponse(); |
2735 buildCounterSearchListResponse++; | 2878 buildCounterSearchListResponse++; |
2736 if (buildCounterSearchListResponse < 3) { | 2879 if (buildCounterSearchListResponse < 3) { |
2737 o.etag = "foo"; | 2880 o.etag = "foo"; |
2738 o.eventId = "foo"; | 2881 o.eventId = "foo"; |
2739 o.items = buildUnnamed645(); | 2882 o.items = buildUnnamed1437(); |
2740 o.kind = "foo"; | 2883 o.kind = "foo"; |
2741 o.nextPageToken = "foo"; | 2884 o.nextPageToken = "foo"; |
2742 o.pageInfo = buildPageInfo(); | 2885 o.pageInfo = buildPageInfo(); |
2743 o.prevPageToken = "foo"; | 2886 o.prevPageToken = "foo"; |
2744 o.tokenPagination = buildTokenPagination(); | 2887 o.tokenPagination = buildTokenPagination(); |
2745 o.visitorId = "foo"; | 2888 o.visitorId = "foo"; |
2746 } | 2889 } |
2747 buildCounterSearchListResponse--; | 2890 buildCounterSearchListResponse--; |
2748 return o; | 2891 return o; |
2749 } | 2892 } |
2750 | 2893 |
2751 checkSearchListResponse(api.SearchListResponse o) { | 2894 checkSearchListResponse(api.SearchListResponse o) { |
2752 buildCounterSearchListResponse++; | 2895 buildCounterSearchListResponse++; |
2753 if (buildCounterSearchListResponse < 3) { | 2896 if (buildCounterSearchListResponse < 3) { |
2754 unittest.expect(o.etag, unittest.equals('foo')); | 2897 unittest.expect(o.etag, unittest.equals('foo')); |
2755 unittest.expect(o.eventId, unittest.equals('foo')); | 2898 unittest.expect(o.eventId, unittest.equals('foo')); |
2756 checkUnnamed645(o.items); | 2899 checkUnnamed1437(o.items); |
2757 unittest.expect(o.kind, unittest.equals('foo')); | 2900 unittest.expect(o.kind, unittest.equals('foo')); |
2758 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2901 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2759 checkPageInfo(o.pageInfo); | 2902 checkPageInfo(o.pageInfo); |
2760 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 2903 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2761 checkTokenPagination(o.tokenPagination); | 2904 checkTokenPagination(o.tokenPagination); |
2762 unittest.expect(o.visitorId, unittest.equals('foo')); | 2905 unittest.expect(o.visitorId, unittest.equals('foo')); |
2763 } | 2906 } |
2764 buildCounterSearchListResponse--; | 2907 buildCounterSearchListResponse--; |
2765 } | 2908 } |
2766 | 2909 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2865 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) { | 3008 checkSubscriptionContentDetails(api.SubscriptionContentDetails o) { |
2866 buildCounterSubscriptionContentDetails++; | 3009 buildCounterSubscriptionContentDetails++; |
2867 if (buildCounterSubscriptionContentDetails < 3) { | 3010 if (buildCounterSubscriptionContentDetails < 3) { |
2868 unittest.expect(o.activityType, unittest.equals('foo')); | 3011 unittest.expect(o.activityType, unittest.equals('foo')); |
2869 unittest.expect(o.newItemCount, unittest.equals(42)); | 3012 unittest.expect(o.newItemCount, unittest.equals(42)); |
2870 unittest.expect(o.totalItemCount, unittest.equals(42)); | 3013 unittest.expect(o.totalItemCount, unittest.equals(42)); |
2871 } | 3014 } |
2872 buildCounterSubscriptionContentDetails--; | 3015 buildCounterSubscriptionContentDetails--; |
2873 } | 3016 } |
2874 | 3017 |
2875 buildUnnamed646() { | 3018 buildUnnamed1438() { |
2876 var o = new core.List<api.Subscription>(); | 3019 var o = new core.List<api.Subscription>(); |
2877 o.add(buildSubscription()); | 3020 o.add(buildSubscription()); |
2878 o.add(buildSubscription()); | 3021 o.add(buildSubscription()); |
2879 return o; | 3022 return o; |
2880 } | 3023 } |
2881 | 3024 |
2882 checkUnnamed646(core.List<api.Subscription> o) { | 3025 checkUnnamed1438(core.List<api.Subscription> o) { |
2883 unittest.expect(o, unittest.hasLength(2)); | 3026 unittest.expect(o, unittest.hasLength(2)); |
2884 checkSubscription(o[0]); | 3027 checkSubscription(o[0]); |
2885 checkSubscription(o[1]); | 3028 checkSubscription(o[1]); |
2886 } | 3029 } |
2887 | 3030 |
2888 core.int buildCounterSubscriptionListResponse = 0; | 3031 core.int buildCounterSubscriptionListResponse = 0; |
2889 buildSubscriptionListResponse() { | 3032 buildSubscriptionListResponse() { |
2890 var o = new api.SubscriptionListResponse(); | 3033 var o = new api.SubscriptionListResponse(); |
2891 buildCounterSubscriptionListResponse++; | 3034 buildCounterSubscriptionListResponse++; |
2892 if (buildCounterSubscriptionListResponse < 3) { | 3035 if (buildCounterSubscriptionListResponse < 3) { |
2893 o.etag = "foo"; | 3036 o.etag = "foo"; |
2894 o.eventId = "foo"; | 3037 o.eventId = "foo"; |
2895 o.items = buildUnnamed646(); | 3038 o.items = buildUnnamed1438(); |
2896 o.kind = "foo"; | 3039 o.kind = "foo"; |
2897 o.nextPageToken = "foo"; | 3040 o.nextPageToken = "foo"; |
2898 o.pageInfo = buildPageInfo(); | 3041 o.pageInfo = buildPageInfo(); |
2899 o.prevPageToken = "foo"; | 3042 o.prevPageToken = "foo"; |
2900 o.tokenPagination = buildTokenPagination(); | 3043 o.tokenPagination = buildTokenPagination(); |
2901 o.visitorId = "foo"; | 3044 o.visitorId = "foo"; |
2902 } | 3045 } |
2903 buildCounterSubscriptionListResponse--; | 3046 buildCounterSubscriptionListResponse--; |
2904 return o; | 3047 return o; |
2905 } | 3048 } |
2906 | 3049 |
2907 checkSubscriptionListResponse(api.SubscriptionListResponse o) { | 3050 checkSubscriptionListResponse(api.SubscriptionListResponse o) { |
2908 buildCounterSubscriptionListResponse++; | 3051 buildCounterSubscriptionListResponse++; |
2909 if (buildCounterSubscriptionListResponse < 3) { | 3052 if (buildCounterSubscriptionListResponse < 3) { |
2910 unittest.expect(o.etag, unittest.equals('foo')); | 3053 unittest.expect(o.etag, unittest.equals('foo')); |
2911 unittest.expect(o.eventId, unittest.equals('foo')); | 3054 unittest.expect(o.eventId, unittest.equals('foo')); |
2912 checkUnnamed646(o.items); | 3055 checkUnnamed1438(o.items); |
2913 unittest.expect(o.kind, unittest.equals('foo')); | 3056 unittest.expect(o.kind, unittest.equals('foo')); |
2914 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3057 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2915 checkPageInfo(o.pageInfo); | 3058 checkPageInfo(o.pageInfo); |
2916 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 3059 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
2917 checkTokenPagination(o.tokenPagination); | 3060 checkTokenPagination(o.tokenPagination); |
2918 unittest.expect(o.visitorId, unittest.equals('foo')); | 3061 unittest.expect(o.visitorId, unittest.equals('foo')); |
2919 } | 3062 } |
2920 buildCounterSubscriptionListResponse--; | 3063 buildCounterSubscriptionListResponse--; |
2921 } | 3064 } |
2922 | 3065 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3019 if (buildCounterThumbnailDetails < 3) { | 3162 if (buildCounterThumbnailDetails < 3) { |
3020 checkThumbnail(o.default_); | 3163 checkThumbnail(o.default_); |
3021 checkThumbnail(o.high); | 3164 checkThumbnail(o.high); |
3022 checkThumbnail(o.maxres); | 3165 checkThumbnail(o.maxres); |
3023 checkThumbnail(o.medium); | 3166 checkThumbnail(o.medium); |
3024 checkThumbnail(o.standard); | 3167 checkThumbnail(o.standard); |
3025 } | 3168 } |
3026 buildCounterThumbnailDetails--; | 3169 buildCounterThumbnailDetails--; |
3027 } | 3170 } |
3028 | 3171 |
3029 buildUnnamed647() { | 3172 buildUnnamed1439() { |
3030 var o = new core.List<api.ThumbnailDetails>(); | 3173 var o = new core.List<api.ThumbnailDetails>(); |
3031 o.add(buildThumbnailDetails()); | 3174 o.add(buildThumbnailDetails()); |
3032 o.add(buildThumbnailDetails()); | 3175 o.add(buildThumbnailDetails()); |
3033 return o; | 3176 return o; |
3034 } | 3177 } |
3035 | 3178 |
3036 checkUnnamed647(core.List<api.ThumbnailDetails> o) { | 3179 checkUnnamed1439(core.List<api.ThumbnailDetails> o) { |
3037 unittest.expect(o, unittest.hasLength(2)); | 3180 unittest.expect(o, unittest.hasLength(2)); |
3038 checkThumbnailDetails(o[0]); | 3181 checkThumbnailDetails(o[0]); |
3039 checkThumbnailDetails(o[1]); | 3182 checkThumbnailDetails(o[1]); |
3040 } | 3183 } |
3041 | 3184 |
3042 core.int buildCounterThumbnailSetResponse = 0; | 3185 core.int buildCounterThumbnailSetResponse = 0; |
3043 buildThumbnailSetResponse() { | 3186 buildThumbnailSetResponse() { |
3044 var o = new api.ThumbnailSetResponse(); | 3187 var o = new api.ThumbnailSetResponse(); |
3045 buildCounterThumbnailSetResponse++; | 3188 buildCounterThumbnailSetResponse++; |
3046 if (buildCounterThumbnailSetResponse < 3) { | 3189 if (buildCounterThumbnailSetResponse < 3) { |
3047 o.etag = "foo"; | 3190 o.etag = "foo"; |
3048 o.eventId = "foo"; | 3191 o.eventId = "foo"; |
3049 o.items = buildUnnamed647(); | 3192 o.items = buildUnnamed1439(); |
3050 o.kind = "foo"; | 3193 o.kind = "foo"; |
3051 o.visitorId = "foo"; | 3194 o.visitorId = "foo"; |
3052 } | 3195 } |
3053 buildCounterThumbnailSetResponse--; | 3196 buildCounterThumbnailSetResponse--; |
3054 return o; | 3197 return o; |
3055 } | 3198 } |
3056 | 3199 |
3057 checkThumbnailSetResponse(api.ThumbnailSetResponse o) { | 3200 checkThumbnailSetResponse(api.ThumbnailSetResponse o) { |
3058 buildCounterThumbnailSetResponse++; | 3201 buildCounterThumbnailSetResponse++; |
3059 if (buildCounterThumbnailSetResponse < 3) { | 3202 if (buildCounterThumbnailSetResponse < 3) { |
3060 unittest.expect(o.etag, unittest.equals('foo')); | 3203 unittest.expect(o.etag, unittest.equals('foo')); |
3061 unittest.expect(o.eventId, unittest.equals('foo')); | 3204 unittest.expect(o.eventId, unittest.equals('foo')); |
3062 checkUnnamed647(o.items); | 3205 checkUnnamed1439(o.items); |
3063 unittest.expect(o.kind, unittest.equals('foo')); | 3206 unittest.expect(o.kind, unittest.equals('foo')); |
3064 unittest.expect(o.visitorId, unittest.equals('foo')); | 3207 unittest.expect(o.visitorId, unittest.equals('foo')); |
3065 } | 3208 } |
3066 buildCounterThumbnailSetResponse--; | 3209 buildCounterThumbnailSetResponse--; |
3067 } | 3210 } |
3068 | 3211 |
3069 core.int buildCounterTokenPagination = 0; | 3212 core.int buildCounterTokenPagination = 0; |
3070 buildTokenPagination() { | 3213 buildTokenPagination() { |
3071 var o = new api.TokenPagination(); | 3214 var o = new api.TokenPagination(); |
3072 buildCounterTokenPagination++; | 3215 buildCounterTokenPagination++; |
3073 if (buildCounterTokenPagination < 3) { | 3216 if (buildCounterTokenPagination < 3) { |
3074 } | 3217 } |
3075 buildCounterTokenPagination--; | 3218 buildCounterTokenPagination--; |
3076 return o; | 3219 return o; |
3077 } | 3220 } |
3078 | 3221 |
3079 checkTokenPagination(api.TokenPagination o) { | 3222 checkTokenPagination(api.TokenPagination o) { |
3080 buildCounterTokenPagination++; | 3223 buildCounterTokenPagination++; |
3081 if (buildCounterTokenPagination < 3) { | 3224 if (buildCounterTokenPagination < 3) { |
3082 } | 3225 } |
3083 buildCounterTokenPagination--; | 3226 buildCounterTokenPagination--; |
3084 } | 3227 } |
3085 | 3228 |
3086 buildUnnamed648() { | 3229 buildUnnamed1440() { |
3087 var o = new core.Map<core.String, api.VideoLocalization>(); | 3230 var o = new core.Map<core.String, api.VideoLocalization>(); |
3088 o["x"] = buildVideoLocalization(); | 3231 o["x"] = buildVideoLocalization(); |
3089 o["y"] = buildVideoLocalization(); | 3232 o["y"] = buildVideoLocalization(); |
3090 return o; | 3233 return o; |
3091 } | 3234 } |
3092 | 3235 |
3093 checkUnnamed648(core.Map<core.String, api.VideoLocalization> o) { | 3236 checkUnnamed1440(core.Map<core.String, api.VideoLocalization> o) { |
3094 unittest.expect(o, unittest.hasLength(2)); | 3237 unittest.expect(o, unittest.hasLength(2)); |
3095 checkVideoLocalization(o["x"]); | 3238 checkVideoLocalization(o["x"]); |
3096 checkVideoLocalization(o["y"]); | 3239 checkVideoLocalization(o["y"]); |
3097 } | 3240 } |
3098 | 3241 |
3099 core.int buildCounterVideo = 0; | 3242 core.int buildCounterVideo = 0; |
3100 buildVideo() { | 3243 buildVideo() { |
3101 var o = new api.Video(); | 3244 var o = new api.Video(); |
3102 buildCounterVideo++; | 3245 buildCounterVideo++; |
3103 if (buildCounterVideo < 3) { | 3246 if (buildCounterVideo < 3) { |
3104 o.ageGating = buildVideoAgeGating(); | 3247 o.ageGating = buildVideoAgeGating(); |
3105 o.contentDetails = buildVideoContentDetails(); | 3248 o.contentDetails = buildVideoContentDetails(); |
3106 o.conversionPings = buildVideoConversionPings(); | 3249 o.conversionPings = buildVideoConversionPings(); |
3107 o.etag = "foo"; | 3250 o.etag = "foo"; |
3108 o.fileDetails = buildVideoFileDetails(); | 3251 o.fileDetails = buildVideoFileDetails(); |
3109 o.id = "foo"; | 3252 o.id = "foo"; |
3110 o.kind = "foo"; | 3253 o.kind = "foo"; |
3111 o.liveStreamingDetails = buildVideoLiveStreamingDetails(); | 3254 o.liveStreamingDetails = buildVideoLiveStreamingDetails(); |
3112 o.localizations = buildUnnamed648(); | 3255 o.localizations = buildUnnamed1440(); |
3113 o.monetizationDetails = buildVideoMonetizationDetails(); | 3256 o.monetizationDetails = buildVideoMonetizationDetails(); |
3114 o.player = buildVideoPlayer(); | 3257 o.player = buildVideoPlayer(); |
3115 o.processingDetails = buildVideoProcessingDetails(); | 3258 o.processingDetails = buildVideoProcessingDetails(); |
3116 o.projectDetails = buildVideoProjectDetails(); | 3259 o.projectDetails = buildVideoProjectDetails(); |
3117 o.recordingDetails = buildVideoRecordingDetails(); | 3260 o.recordingDetails = buildVideoRecordingDetails(); |
3118 o.snippet = buildVideoSnippet(); | 3261 o.snippet = buildVideoSnippet(); |
3119 o.statistics = buildVideoStatistics(); | 3262 o.statistics = buildVideoStatistics(); |
3120 o.status = buildVideoStatus(); | 3263 o.status = buildVideoStatus(); |
3121 o.suggestions = buildVideoSuggestions(); | 3264 o.suggestions = buildVideoSuggestions(); |
3122 o.topicDetails = buildVideoTopicDetails(); | 3265 o.topicDetails = buildVideoTopicDetails(); |
3123 } | 3266 } |
3124 buildCounterVideo--; | 3267 buildCounterVideo--; |
3125 return o; | 3268 return o; |
3126 } | 3269 } |
3127 | 3270 |
3128 checkVideo(api.Video o) { | 3271 checkVideo(api.Video o) { |
3129 buildCounterVideo++; | 3272 buildCounterVideo++; |
3130 if (buildCounterVideo < 3) { | 3273 if (buildCounterVideo < 3) { |
3131 checkVideoAgeGating(o.ageGating); | 3274 checkVideoAgeGating(o.ageGating); |
3132 checkVideoContentDetails(o.contentDetails); | 3275 checkVideoContentDetails(o.contentDetails); |
3133 checkVideoConversionPings(o.conversionPings); | 3276 checkVideoConversionPings(o.conversionPings); |
3134 unittest.expect(o.etag, unittest.equals('foo')); | 3277 unittest.expect(o.etag, unittest.equals('foo')); |
3135 checkVideoFileDetails(o.fileDetails); | 3278 checkVideoFileDetails(o.fileDetails); |
3136 unittest.expect(o.id, unittest.equals('foo')); | 3279 unittest.expect(o.id, unittest.equals('foo')); |
3137 unittest.expect(o.kind, unittest.equals('foo')); | 3280 unittest.expect(o.kind, unittest.equals('foo')); |
3138 checkVideoLiveStreamingDetails(o.liveStreamingDetails); | 3281 checkVideoLiveStreamingDetails(o.liveStreamingDetails); |
3139 checkUnnamed648(o.localizations); | 3282 checkUnnamed1440(o.localizations); |
3140 checkVideoMonetizationDetails(o.monetizationDetails); | 3283 checkVideoMonetizationDetails(o.monetizationDetails); |
3141 checkVideoPlayer(o.player); | 3284 checkVideoPlayer(o.player); |
3142 checkVideoProcessingDetails(o.processingDetails); | 3285 checkVideoProcessingDetails(o.processingDetails); |
3143 checkVideoProjectDetails(o.projectDetails); | 3286 checkVideoProjectDetails(o.projectDetails); |
3144 checkVideoRecordingDetails(o.recordingDetails); | 3287 checkVideoRecordingDetails(o.recordingDetails); |
3145 checkVideoSnippet(o.snippet); | 3288 checkVideoSnippet(o.snippet); |
3146 checkVideoStatistics(o.statistics); | 3289 checkVideoStatistics(o.statistics); |
3147 checkVideoStatus(o.status); | 3290 checkVideoStatus(o.status); |
3148 checkVideoSuggestions(o.suggestions); | 3291 checkVideoSuggestions(o.suggestions); |
3149 checkVideoTopicDetails(o.topicDetails); | 3292 checkVideoTopicDetails(o.topicDetails); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3192 buildCounterVideoCategory++; | 3335 buildCounterVideoCategory++; |
3193 if (buildCounterVideoCategory < 3) { | 3336 if (buildCounterVideoCategory < 3) { |
3194 unittest.expect(o.etag, unittest.equals('foo')); | 3337 unittest.expect(o.etag, unittest.equals('foo')); |
3195 unittest.expect(o.id, unittest.equals('foo')); | 3338 unittest.expect(o.id, unittest.equals('foo')); |
3196 unittest.expect(o.kind, unittest.equals('foo')); | 3339 unittest.expect(o.kind, unittest.equals('foo')); |
3197 checkVideoCategorySnippet(o.snippet); | 3340 checkVideoCategorySnippet(o.snippet); |
3198 } | 3341 } |
3199 buildCounterVideoCategory--; | 3342 buildCounterVideoCategory--; |
3200 } | 3343 } |
3201 | 3344 |
3202 buildUnnamed649() { | 3345 buildUnnamed1441() { |
3203 var o = new core.List<api.VideoCategory>(); | 3346 var o = new core.List<api.VideoCategory>(); |
3204 o.add(buildVideoCategory()); | 3347 o.add(buildVideoCategory()); |
3205 o.add(buildVideoCategory()); | 3348 o.add(buildVideoCategory()); |
3206 return o; | 3349 return o; |
3207 } | 3350 } |
3208 | 3351 |
3209 checkUnnamed649(core.List<api.VideoCategory> o) { | 3352 checkUnnamed1441(core.List<api.VideoCategory> o) { |
3210 unittest.expect(o, unittest.hasLength(2)); | 3353 unittest.expect(o, unittest.hasLength(2)); |
3211 checkVideoCategory(o[0]); | 3354 checkVideoCategory(o[0]); |
3212 checkVideoCategory(o[1]); | 3355 checkVideoCategory(o[1]); |
3213 } | 3356 } |
3214 | 3357 |
3215 core.int buildCounterVideoCategoryListResponse = 0; | 3358 core.int buildCounterVideoCategoryListResponse = 0; |
3216 buildVideoCategoryListResponse() { | 3359 buildVideoCategoryListResponse() { |
3217 var o = new api.VideoCategoryListResponse(); | 3360 var o = new api.VideoCategoryListResponse(); |
3218 buildCounterVideoCategoryListResponse++; | 3361 buildCounterVideoCategoryListResponse++; |
3219 if (buildCounterVideoCategoryListResponse < 3) { | 3362 if (buildCounterVideoCategoryListResponse < 3) { |
3220 o.etag = "foo"; | 3363 o.etag = "foo"; |
3221 o.eventId = "foo"; | 3364 o.eventId = "foo"; |
3222 o.items = buildUnnamed649(); | 3365 o.items = buildUnnamed1441(); |
3223 o.kind = "foo"; | 3366 o.kind = "foo"; |
3224 o.nextPageToken = "foo"; | 3367 o.nextPageToken = "foo"; |
3225 o.pageInfo = buildPageInfo(); | 3368 o.pageInfo = buildPageInfo(); |
3226 o.prevPageToken = "foo"; | 3369 o.prevPageToken = "foo"; |
3227 o.tokenPagination = buildTokenPagination(); | 3370 o.tokenPagination = buildTokenPagination(); |
3228 o.visitorId = "foo"; | 3371 o.visitorId = "foo"; |
3229 } | 3372 } |
3230 buildCounterVideoCategoryListResponse--; | 3373 buildCounterVideoCategoryListResponse--; |
3231 return o; | 3374 return o; |
3232 } | 3375 } |
3233 | 3376 |
3234 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) { | 3377 checkVideoCategoryListResponse(api.VideoCategoryListResponse o) { |
3235 buildCounterVideoCategoryListResponse++; | 3378 buildCounterVideoCategoryListResponse++; |
3236 if (buildCounterVideoCategoryListResponse < 3) { | 3379 if (buildCounterVideoCategoryListResponse < 3) { |
3237 unittest.expect(o.etag, unittest.equals('foo')); | 3380 unittest.expect(o.etag, unittest.equals('foo')); |
3238 unittest.expect(o.eventId, unittest.equals('foo')); | 3381 unittest.expect(o.eventId, unittest.equals('foo')); |
3239 checkUnnamed649(o.items); | 3382 checkUnnamed1441(o.items); |
3240 unittest.expect(o.kind, unittest.equals('foo')); | 3383 unittest.expect(o.kind, unittest.equals('foo')); |
3241 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3384 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3242 checkPageInfo(o.pageInfo); | 3385 checkPageInfo(o.pageInfo); |
3243 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 3386 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
3244 checkTokenPagination(o.tokenPagination); | 3387 checkTokenPagination(o.tokenPagination); |
3245 unittest.expect(o.visitorId, unittest.equals('foo')); | 3388 unittest.expect(o.visitorId, unittest.equals('foo')); |
3246 } | 3389 } |
3247 buildCounterVideoCategoryListResponse--; | 3390 buildCounterVideoCategoryListResponse--; |
3248 } | 3391 } |
3249 | 3392 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3296 checkAccessPolicy(o.countryRestriction); | 3439 checkAccessPolicy(o.countryRestriction); |
3297 unittest.expect(o.definition, unittest.equals('foo')); | 3440 unittest.expect(o.definition, unittest.equals('foo')); |
3298 unittest.expect(o.dimension, unittest.equals('foo')); | 3441 unittest.expect(o.dimension, unittest.equals('foo')); |
3299 unittest.expect(o.duration, unittest.equals('foo')); | 3442 unittest.expect(o.duration, unittest.equals('foo')); |
3300 unittest.expect(o.licensedContent, unittest.isTrue); | 3443 unittest.expect(o.licensedContent, unittest.isTrue); |
3301 checkVideoContentDetailsRegionRestriction(o.regionRestriction); | 3444 checkVideoContentDetailsRegionRestriction(o.regionRestriction); |
3302 } | 3445 } |
3303 buildCounterVideoContentDetails--; | 3446 buildCounterVideoContentDetails--; |
3304 } | 3447 } |
3305 | 3448 |
3306 buildUnnamed650() { | 3449 buildUnnamed1442() { |
3307 var o = new core.List<core.String>(); | 3450 var o = new core.List<core.String>(); |
3308 o.add("foo"); | 3451 o.add("foo"); |
3309 o.add("foo"); | 3452 o.add("foo"); |
3310 return o; | 3453 return o; |
3311 } | 3454 } |
3312 | 3455 |
3313 checkUnnamed650(core.List<core.String> o) { | 3456 checkUnnamed1442(core.List<core.String> o) { |
3314 unittest.expect(o, unittest.hasLength(2)); | 3457 unittest.expect(o, unittest.hasLength(2)); |
3315 unittest.expect(o[0], unittest.equals('foo')); | 3458 unittest.expect(o[0], unittest.equals('foo')); |
3316 unittest.expect(o[1], unittest.equals('foo')); | 3459 unittest.expect(o[1], unittest.equals('foo')); |
3317 } | 3460 } |
3318 | 3461 |
3319 buildUnnamed651() { | 3462 buildUnnamed1443() { |
3320 var o = new core.List<core.String>(); | 3463 var o = new core.List<core.String>(); |
3321 o.add("foo"); | 3464 o.add("foo"); |
3322 o.add("foo"); | 3465 o.add("foo"); |
3323 return o; | 3466 return o; |
3324 } | 3467 } |
3325 | 3468 |
3326 checkUnnamed651(core.List<core.String> o) { | 3469 checkUnnamed1443(core.List<core.String> o) { |
3327 unittest.expect(o, unittest.hasLength(2)); | 3470 unittest.expect(o, unittest.hasLength(2)); |
3328 unittest.expect(o[0], unittest.equals('foo')); | 3471 unittest.expect(o[0], unittest.equals('foo')); |
3329 unittest.expect(o[1], unittest.equals('foo')); | 3472 unittest.expect(o[1], unittest.equals('foo')); |
3330 } | 3473 } |
3331 | 3474 |
3332 core.int buildCounterVideoContentDetailsRegionRestriction = 0; | 3475 core.int buildCounterVideoContentDetailsRegionRestriction = 0; |
3333 buildVideoContentDetailsRegionRestriction() { | 3476 buildVideoContentDetailsRegionRestriction() { |
3334 var o = new api.VideoContentDetailsRegionRestriction(); | 3477 var o = new api.VideoContentDetailsRegionRestriction(); |
3335 buildCounterVideoContentDetailsRegionRestriction++; | 3478 buildCounterVideoContentDetailsRegionRestriction++; |
3336 if (buildCounterVideoContentDetailsRegionRestriction < 3) { | 3479 if (buildCounterVideoContentDetailsRegionRestriction < 3) { |
3337 o.allowed = buildUnnamed650(); | 3480 o.allowed = buildUnnamed1442(); |
3338 o.blocked = buildUnnamed651(); | 3481 o.blocked = buildUnnamed1443(); |
3339 } | 3482 } |
3340 buildCounterVideoContentDetailsRegionRestriction--; | 3483 buildCounterVideoContentDetailsRegionRestriction--; |
3341 return o; | 3484 return o; |
3342 } | 3485 } |
3343 | 3486 |
3344 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti
on o) { | 3487 checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestricti
on o) { |
3345 buildCounterVideoContentDetailsRegionRestriction++; | 3488 buildCounterVideoContentDetailsRegionRestriction++; |
3346 if (buildCounterVideoContentDetailsRegionRestriction < 3) { | 3489 if (buildCounterVideoContentDetailsRegionRestriction < 3) { |
3347 checkUnnamed650(o.allowed); | 3490 checkUnnamed1442(o.allowed); |
3348 checkUnnamed651(o.blocked); | 3491 checkUnnamed1443(o.blocked); |
3349 } | 3492 } |
3350 buildCounterVideoContentDetailsRegionRestriction--; | 3493 buildCounterVideoContentDetailsRegionRestriction--; |
3351 } | 3494 } |
3352 | 3495 |
3353 core.int buildCounterVideoConversionPing = 0; | 3496 core.int buildCounterVideoConversionPing = 0; |
3354 buildVideoConversionPing() { | 3497 buildVideoConversionPing() { |
3355 var o = new api.VideoConversionPing(); | 3498 var o = new api.VideoConversionPing(); |
3356 buildCounterVideoConversionPing++; | 3499 buildCounterVideoConversionPing++; |
3357 if (buildCounterVideoConversionPing < 3) { | 3500 if (buildCounterVideoConversionPing < 3) { |
3358 o.context = "foo"; | 3501 o.context = "foo"; |
3359 o.conversionUrl = "foo"; | 3502 o.conversionUrl = "foo"; |
3360 } | 3503 } |
3361 buildCounterVideoConversionPing--; | 3504 buildCounterVideoConversionPing--; |
3362 return o; | 3505 return o; |
3363 } | 3506 } |
3364 | 3507 |
3365 checkVideoConversionPing(api.VideoConversionPing o) { | 3508 checkVideoConversionPing(api.VideoConversionPing o) { |
3366 buildCounterVideoConversionPing++; | 3509 buildCounterVideoConversionPing++; |
3367 if (buildCounterVideoConversionPing < 3) { | 3510 if (buildCounterVideoConversionPing < 3) { |
3368 unittest.expect(o.context, unittest.equals('foo')); | 3511 unittest.expect(o.context, unittest.equals('foo')); |
3369 unittest.expect(o.conversionUrl, unittest.equals('foo')); | 3512 unittest.expect(o.conversionUrl, unittest.equals('foo')); |
3370 } | 3513 } |
3371 buildCounterVideoConversionPing--; | 3514 buildCounterVideoConversionPing--; |
3372 } | 3515 } |
3373 | 3516 |
3374 buildUnnamed652() { | 3517 buildUnnamed1444() { |
3375 var o = new core.List<api.VideoConversionPing>(); | 3518 var o = new core.List<api.VideoConversionPing>(); |
3376 o.add(buildVideoConversionPing()); | 3519 o.add(buildVideoConversionPing()); |
3377 o.add(buildVideoConversionPing()); | 3520 o.add(buildVideoConversionPing()); |
3378 return o; | 3521 return o; |
3379 } | 3522 } |
3380 | 3523 |
3381 checkUnnamed652(core.List<api.VideoConversionPing> o) { | 3524 checkUnnamed1444(core.List<api.VideoConversionPing> o) { |
3382 unittest.expect(o, unittest.hasLength(2)); | 3525 unittest.expect(o, unittest.hasLength(2)); |
3383 checkVideoConversionPing(o[0]); | 3526 checkVideoConversionPing(o[0]); |
3384 checkVideoConversionPing(o[1]); | 3527 checkVideoConversionPing(o[1]); |
3385 } | 3528 } |
3386 | 3529 |
3387 core.int buildCounterVideoConversionPings = 0; | 3530 core.int buildCounterVideoConversionPings = 0; |
3388 buildVideoConversionPings() { | 3531 buildVideoConversionPings() { |
3389 var o = new api.VideoConversionPings(); | 3532 var o = new api.VideoConversionPings(); |
3390 buildCounterVideoConversionPings++; | 3533 buildCounterVideoConversionPings++; |
3391 if (buildCounterVideoConversionPings < 3) { | 3534 if (buildCounterVideoConversionPings < 3) { |
3392 o.pings = buildUnnamed652(); | 3535 o.pings = buildUnnamed1444(); |
3393 } | 3536 } |
3394 buildCounterVideoConversionPings--; | 3537 buildCounterVideoConversionPings--; |
3395 return o; | 3538 return o; |
3396 } | 3539 } |
3397 | 3540 |
3398 checkVideoConversionPings(api.VideoConversionPings o) { | 3541 checkVideoConversionPings(api.VideoConversionPings o) { |
3399 buildCounterVideoConversionPings++; | 3542 buildCounterVideoConversionPings++; |
3400 if (buildCounterVideoConversionPings < 3) { | 3543 if (buildCounterVideoConversionPings < 3) { |
3401 checkUnnamed652(o.pings); | 3544 checkUnnamed1444(o.pings); |
3402 } | 3545 } |
3403 buildCounterVideoConversionPings--; | 3546 buildCounterVideoConversionPings--; |
3404 } | 3547 } |
3405 | 3548 |
3406 buildUnnamed653() { | 3549 buildUnnamed1445() { |
3407 var o = new core.List<api.VideoFileDetailsAudioStream>(); | 3550 var o = new core.List<api.VideoFileDetailsAudioStream>(); |
3408 o.add(buildVideoFileDetailsAudioStream()); | 3551 o.add(buildVideoFileDetailsAudioStream()); |
3409 o.add(buildVideoFileDetailsAudioStream()); | 3552 o.add(buildVideoFileDetailsAudioStream()); |
3410 return o; | 3553 return o; |
3411 } | 3554 } |
3412 | 3555 |
3413 checkUnnamed653(core.List<api.VideoFileDetailsAudioStream> o) { | 3556 checkUnnamed1445(core.List<api.VideoFileDetailsAudioStream> o) { |
3414 unittest.expect(o, unittest.hasLength(2)); | 3557 unittest.expect(o, unittest.hasLength(2)); |
3415 checkVideoFileDetailsAudioStream(o[0]); | 3558 checkVideoFileDetailsAudioStream(o[0]); |
3416 checkVideoFileDetailsAudioStream(o[1]); | 3559 checkVideoFileDetailsAudioStream(o[1]); |
3417 } | 3560 } |
3418 | 3561 |
3419 buildUnnamed654() { | 3562 buildUnnamed1446() { |
3420 var o = new core.List<api.VideoFileDetailsVideoStream>(); | 3563 var o = new core.List<api.VideoFileDetailsVideoStream>(); |
3421 o.add(buildVideoFileDetailsVideoStream()); | 3564 o.add(buildVideoFileDetailsVideoStream()); |
3422 o.add(buildVideoFileDetailsVideoStream()); | 3565 o.add(buildVideoFileDetailsVideoStream()); |
3423 return o; | 3566 return o; |
3424 } | 3567 } |
3425 | 3568 |
3426 checkUnnamed654(core.List<api.VideoFileDetailsVideoStream> o) { | 3569 checkUnnamed1446(core.List<api.VideoFileDetailsVideoStream> o) { |
3427 unittest.expect(o, unittest.hasLength(2)); | 3570 unittest.expect(o, unittest.hasLength(2)); |
3428 checkVideoFileDetailsVideoStream(o[0]); | 3571 checkVideoFileDetailsVideoStream(o[0]); |
3429 checkVideoFileDetailsVideoStream(o[1]); | 3572 checkVideoFileDetailsVideoStream(o[1]); |
3430 } | 3573 } |
3431 | 3574 |
3432 core.int buildCounterVideoFileDetails = 0; | 3575 core.int buildCounterVideoFileDetails = 0; |
3433 buildVideoFileDetails() { | 3576 buildVideoFileDetails() { |
3434 var o = new api.VideoFileDetails(); | 3577 var o = new api.VideoFileDetails(); |
3435 buildCounterVideoFileDetails++; | 3578 buildCounterVideoFileDetails++; |
3436 if (buildCounterVideoFileDetails < 3) { | 3579 if (buildCounterVideoFileDetails < 3) { |
3437 o.audioStreams = buildUnnamed653(); | 3580 o.audioStreams = buildUnnamed1445(); |
3438 o.bitrateBps = "foo"; | 3581 o.bitrateBps = "foo"; |
3439 o.container = "foo"; | 3582 o.container = "foo"; |
3440 o.creationTime = "foo"; | 3583 o.creationTime = "foo"; |
3441 o.durationMs = "foo"; | 3584 o.durationMs = "foo"; |
3442 o.fileName = "foo"; | 3585 o.fileName = "foo"; |
3443 o.fileSize = "foo"; | 3586 o.fileSize = "foo"; |
3444 o.fileType = "foo"; | 3587 o.fileType = "foo"; |
3445 o.recordingLocation = buildGeoPoint(); | 3588 o.recordingLocation = buildGeoPoint(); |
3446 o.videoStreams = buildUnnamed654(); | 3589 o.videoStreams = buildUnnamed1446(); |
3447 } | 3590 } |
3448 buildCounterVideoFileDetails--; | 3591 buildCounterVideoFileDetails--; |
3449 return o; | 3592 return o; |
3450 } | 3593 } |
3451 | 3594 |
3452 checkVideoFileDetails(api.VideoFileDetails o) { | 3595 checkVideoFileDetails(api.VideoFileDetails o) { |
3453 buildCounterVideoFileDetails++; | 3596 buildCounterVideoFileDetails++; |
3454 if (buildCounterVideoFileDetails < 3) { | 3597 if (buildCounterVideoFileDetails < 3) { |
3455 checkUnnamed653(o.audioStreams); | 3598 checkUnnamed1445(o.audioStreams); |
3456 unittest.expect(o.bitrateBps, unittest.equals('foo')); | 3599 unittest.expect(o.bitrateBps, unittest.equals('foo')); |
3457 unittest.expect(o.container, unittest.equals('foo')); | 3600 unittest.expect(o.container, unittest.equals('foo')); |
3458 unittest.expect(o.creationTime, unittest.equals('foo')); | 3601 unittest.expect(o.creationTime, unittest.equals('foo')); |
3459 unittest.expect(o.durationMs, unittest.equals('foo')); | 3602 unittest.expect(o.durationMs, unittest.equals('foo')); |
3460 unittest.expect(o.fileName, unittest.equals('foo')); | 3603 unittest.expect(o.fileName, unittest.equals('foo')); |
3461 unittest.expect(o.fileSize, unittest.equals('foo')); | 3604 unittest.expect(o.fileSize, unittest.equals('foo')); |
3462 unittest.expect(o.fileType, unittest.equals('foo')); | 3605 unittest.expect(o.fileType, unittest.equals('foo')); |
3463 checkGeoPoint(o.recordingLocation); | 3606 checkGeoPoint(o.recordingLocation); |
3464 checkUnnamed654(o.videoStreams); | 3607 checkUnnamed1446(o.videoStreams); |
3465 } | 3608 } |
3466 buildCounterVideoFileDetails--; | 3609 buildCounterVideoFileDetails--; |
3467 } | 3610 } |
3468 | 3611 |
3469 core.int buildCounterVideoFileDetailsAudioStream = 0; | 3612 core.int buildCounterVideoFileDetailsAudioStream = 0; |
3470 buildVideoFileDetailsAudioStream() { | 3613 buildVideoFileDetailsAudioStream() { |
3471 var o = new api.VideoFileDetailsAudioStream(); | 3614 var o = new api.VideoFileDetailsAudioStream(); |
3472 buildCounterVideoFileDetailsAudioStream++; | 3615 buildCounterVideoFileDetailsAudioStream++; |
3473 if (buildCounterVideoFileDetailsAudioStream < 3) { | 3616 if (buildCounterVideoFileDetailsAudioStream < 3) { |
3474 o.bitrateBps = "foo"; | 3617 o.bitrateBps = "foo"; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3517 unittest.expect(o.codec, unittest.equals('foo')); | 3660 unittest.expect(o.codec, unittest.equals('foo')); |
3518 unittest.expect(o.frameRateFps, unittest.equals(42.0)); | 3661 unittest.expect(o.frameRateFps, unittest.equals(42.0)); |
3519 unittest.expect(o.heightPixels, unittest.equals(42)); | 3662 unittest.expect(o.heightPixels, unittest.equals(42)); |
3520 unittest.expect(o.rotation, unittest.equals('foo')); | 3663 unittest.expect(o.rotation, unittest.equals('foo')); |
3521 unittest.expect(o.vendor, unittest.equals('foo')); | 3664 unittest.expect(o.vendor, unittest.equals('foo')); |
3522 unittest.expect(o.widthPixels, unittest.equals(42)); | 3665 unittest.expect(o.widthPixels, unittest.equals(42)); |
3523 } | 3666 } |
3524 buildCounterVideoFileDetailsVideoStream--; | 3667 buildCounterVideoFileDetailsVideoStream--; |
3525 } | 3668 } |
3526 | 3669 |
3527 buildUnnamed655() { | 3670 buildUnnamed1447() { |
3528 var o = new core.List<api.VideoRating>(); | 3671 var o = new core.List<api.VideoRating>(); |
3529 o.add(buildVideoRating()); | 3672 o.add(buildVideoRating()); |
3530 o.add(buildVideoRating()); | 3673 o.add(buildVideoRating()); |
3531 return o; | 3674 return o; |
3532 } | 3675 } |
3533 | 3676 |
3534 checkUnnamed655(core.List<api.VideoRating> o) { | 3677 checkUnnamed1447(core.List<api.VideoRating> o) { |
3535 unittest.expect(o, unittest.hasLength(2)); | 3678 unittest.expect(o, unittest.hasLength(2)); |
3536 checkVideoRating(o[0]); | 3679 checkVideoRating(o[0]); |
3537 checkVideoRating(o[1]); | 3680 checkVideoRating(o[1]); |
3538 } | 3681 } |
3539 | 3682 |
3540 core.int buildCounterVideoGetRatingResponse = 0; | 3683 core.int buildCounterVideoGetRatingResponse = 0; |
3541 buildVideoGetRatingResponse() { | 3684 buildVideoGetRatingResponse() { |
3542 var o = new api.VideoGetRatingResponse(); | 3685 var o = new api.VideoGetRatingResponse(); |
3543 buildCounterVideoGetRatingResponse++; | 3686 buildCounterVideoGetRatingResponse++; |
3544 if (buildCounterVideoGetRatingResponse < 3) { | 3687 if (buildCounterVideoGetRatingResponse < 3) { |
3545 o.etag = "foo"; | 3688 o.etag = "foo"; |
3546 o.eventId = "foo"; | 3689 o.eventId = "foo"; |
3547 o.items = buildUnnamed655(); | 3690 o.items = buildUnnamed1447(); |
3548 o.kind = "foo"; | 3691 o.kind = "foo"; |
3549 o.visitorId = "foo"; | 3692 o.visitorId = "foo"; |
3550 } | 3693 } |
3551 buildCounterVideoGetRatingResponse--; | 3694 buildCounterVideoGetRatingResponse--; |
3552 return o; | 3695 return o; |
3553 } | 3696 } |
3554 | 3697 |
3555 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { | 3698 checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { |
3556 buildCounterVideoGetRatingResponse++; | 3699 buildCounterVideoGetRatingResponse++; |
3557 if (buildCounterVideoGetRatingResponse < 3) { | 3700 if (buildCounterVideoGetRatingResponse < 3) { |
3558 unittest.expect(o.etag, unittest.equals('foo')); | 3701 unittest.expect(o.etag, unittest.equals('foo')); |
3559 unittest.expect(o.eventId, unittest.equals('foo')); | 3702 unittest.expect(o.eventId, unittest.equals('foo')); |
3560 checkUnnamed655(o.items); | 3703 checkUnnamed1447(o.items); |
3561 unittest.expect(o.kind, unittest.equals('foo')); | 3704 unittest.expect(o.kind, unittest.equals('foo')); |
3562 unittest.expect(o.visitorId, unittest.equals('foo')); | 3705 unittest.expect(o.visitorId, unittest.equals('foo')); |
3563 } | 3706 } |
3564 buildCounterVideoGetRatingResponse--; | 3707 buildCounterVideoGetRatingResponse--; |
3565 } | 3708 } |
3566 | 3709 |
3567 buildUnnamed656() { | 3710 buildUnnamed1448() { |
3568 var o = new core.List<api.Video>(); | 3711 var o = new core.List<api.Video>(); |
3569 o.add(buildVideo()); | 3712 o.add(buildVideo()); |
3570 o.add(buildVideo()); | 3713 o.add(buildVideo()); |
3571 return o; | 3714 return o; |
3572 } | 3715 } |
3573 | 3716 |
3574 checkUnnamed656(core.List<api.Video> o) { | 3717 checkUnnamed1448(core.List<api.Video> o) { |
3575 unittest.expect(o, unittest.hasLength(2)); | 3718 unittest.expect(o, unittest.hasLength(2)); |
3576 checkVideo(o[0]); | 3719 checkVideo(o[0]); |
3577 checkVideo(o[1]); | 3720 checkVideo(o[1]); |
3578 } | 3721 } |
3579 | 3722 |
3580 core.int buildCounterVideoListResponse = 0; | 3723 core.int buildCounterVideoListResponse = 0; |
3581 buildVideoListResponse() { | 3724 buildVideoListResponse() { |
3582 var o = new api.VideoListResponse(); | 3725 var o = new api.VideoListResponse(); |
3583 buildCounterVideoListResponse++; | 3726 buildCounterVideoListResponse++; |
3584 if (buildCounterVideoListResponse < 3) { | 3727 if (buildCounterVideoListResponse < 3) { |
3585 o.etag = "foo"; | 3728 o.etag = "foo"; |
3586 o.eventId = "foo"; | 3729 o.eventId = "foo"; |
3587 o.items = buildUnnamed656(); | 3730 o.items = buildUnnamed1448(); |
3588 o.kind = "foo"; | 3731 o.kind = "foo"; |
3589 o.nextPageToken = "foo"; | 3732 o.nextPageToken = "foo"; |
3590 o.pageInfo = buildPageInfo(); | 3733 o.pageInfo = buildPageInfo(); |
3591 o.prevPageToken = "foo"; | 3734 o.prevPageToken = "foo"; |
3592 o.tokenPagination = buildTokenPagination(); | 3735 o.tokenPagination = buildTokenPagination(); |
3593 o.visitorId = "foo"; | 3736 o.visitorId = "foo"; |
3594 } | 3737 } |
3595 buildCounterVideoListResponse--; | 3738 buildCounterVideoListResponse--; |
3596 return o; | 3739 return o; |
3597 } | 3740 } |
3598 | 3741 |
3599 checkVideoListResponse(api.VideoListResponse o) { | 3742 checkVideoListResponse(api.VideoListResponse o) { |
3600 buildCounterVideoListResponse++; | 3743 buildCounterVideoListResponse++; |
3601 if (buildCounterVideoListResponse < 3) { | 3744 if (buildCounterVideoListResponse < 3) { |
3602 unittest.expect(o.etag, unittest.equals('foo')); | 3745 unittest.expect(o.etag, unittest.equals('foo')); |
3603 unittest.expect(o.eventId, unittest.equals('foo')); | 3746 unittest.expect(o.eventId, unittest.equals('foo')); |
3604 checkUnnamed656(o.items); | 3747 checkUnnamed1448(o.items); |
3605 unittest.expect(o.kind, unittest.equals('foo')); | 3748 unittest.expect(o.kind, unittest.equals('foo')); |
3606 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3749 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3607 checkPageInfo(o.pageInfo); | 3750 checkPageInfo(o.pageInfo); |
3608 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 3751 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
3609 checkTokenPagination(o.tokenPagination); | 3752 checkTokenPagination(o.tokenPagination); |
3610 unittest.expect(o.visitorId, unittest.equals('foo')); | 3753 unittest.expect(o.visitorId, unittest.equals('foo')); |
3611 } | 3754 } |
3612 buildCounterVideoListResponse--; | 3755 buildCounterVideoListResponse--; |
3613 } | 3756 } |
3614 | 3757 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3747 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
ngProgress o) { | 3890 checkVideoProcessingDetailsProcessingProgress(api.VideoProcessingDetailsProcessi
ngProgress o) { |
3748 buildCounterVideoProcessingDetailsProcessingProgress++; | 3891 buildCounterVideoProcessingDetailsProcessingProgress++; |
3749 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) { | 3892 if (buildCounterVideoProcessingDetailsProcessingProgress < 3) { |
3750 unittest.expect(o.partsProcessed, unittest.equals('foo')); | 3893 unittest.expect(o.partsProcessed, unittest.equals('foo')); |
3751 unittest.expect(o.partsTotal, unittest.equals('foo')); | 3894 unittest.expect(o.partsTotal, unittest.equals('foo')); |
3752 unittest.expect(o.timeLeftMs, unittest.equals('foo')); | 3895 unittest.expect(o.timeLeftMs, unittest.equals('foo')); |
3753 } | 3896 } |
3754 buildCounterVideoProcessingDetailsProcessingProgress--; | 3897 buildCounterVideoProcessingDetailsProcessingProgress--; |
3755 } | 3898 } |
3756 | 3899 |
3757 buildUnnamed657() { | 3900 buildUnnamed1449() { |
3758 var o = new core.List<core.String>(); | 3901 var o = new core.List<core.String>(); |
3759 o.add("foo"); | 3902 o.add("foo"); |
3760 o.add("foo"); | 3903 o.add("foo"); |
3761 return o; | 3904 return o; |
3762 } | 3905 } |
3763 | 3906 |
3764 checkUnnamed657(core.List<core.String> o) { | 3907 checkUnnamed1449(core.List<core.String> o) { |
3765 unittest.expect(o, unittest.hasLength(2)); | 3908 unittest.expect(o, unittest.hasLength(2)); |
3766 unittest.expect(o[0], unittest.equals('foo')); | 3909 unittest.expect(o[0], unittest.equals('foo')); |
3767 unittest.expect(o[1], unittest.equals('foo')); | 3910 unittest.expect(o[1], unittest.equals('foo')); |
3768 } | 3911 } |
3769 | 3912 |
3770 core.int buildCounterVideoProjectDetails = 0; | 3913 core.int buildCounterVideoProjectDetails = 0; |
3771 buildVideoProjectDetails() { | 3914 buildVideoProjectDetails() { |
3772 var o = new api.VideoProjectDetails(); | 3915 var o = new api.VideoProjectDetails(); |
3773 buildCounterVideoProjectDetails++; | 3916 buildCounterVideoProjectDetails++; |
3774 if (buildCounterVideoProjectDetails < 3) { | 3917 if (buildCounterVideoProjectDetails < 3) { |
3775 o.tags = buildUnnamed657(); | 3918 o.tags = buildUnnamed1449(); |
3776 } | 3919 } |
3777 buildCounterVideoProjectDetails--; | 3920 buildCounterVideoProjectDetails--; |
3778 return o; | 3921 return o; |
3779 } | 3922 } |
3780 | 3923 |
3781 checkVideoProjectDetails(api.VideoProjectDetails o) { | 3924 checkVideoProjectDetails(api.VideoProjectDetails o) { |
3782 buildCounterVideoProjectDetails++; | 3925 buildCounterVideoProjectDetails++; |
3783 if (buildCounterVideoProjectDetails < 3) { | 3926 if (buildCounterVideoProjectDetails < 3) { |
3784 checkUnnamed657(o.tags); | 3927 checkUnnamed1449(o.tags); |
3785 } | 3928 } |
3786 buildCounterVideoProjectDetails--; | 3929 buildCounterVideoProjectDetails--; |
3787 } | 3930 } |
3788 | 3931 |
3789 core.int buildCounterVideoRating = 0; | 3932 core.int buildCounterVideoRating = 0; |
3790 buildVideoRating() { | 3933 buildVideoRating() { |
3791 var o = new api.VideoRating(); | 3934 var o = new api.VideoRating(); |
3792 buildCounterVideoRating++; | 3935 buildCounterVideoRating++; |
3793 if (buildCounterVideoRating < 3) { | 3936 if (buildCounterVideoRating < 3) { |
3794 o.rating = "foo"; | 3937 o.rating = "foo"; |
(...skipping 28 matching lines...) Expand all Loading... |
3823 checkVideoRecordingDetails(api.VideoRecordingDetails o) { | 3966 checkVideoRecordingDetails(api.VideoRecordingDetails o) { |
3824 buildCounterVideoRecordingDetails++; | 3967 buildCounterVideoRecordingDetails++; |
3825 if (buildCounterVideoRecordingDetails < 3) { | 3968 if (buildCounterVideoRecordingDetails < 3) { |
3826 checkGeoPoint(o.location); | 3969 checkGeoPoint(o.location); |
3827 unittest.expect(o.locationDescription, unittest.equals('foo')); | 3970 unittest.expect(o.locationDescription, unittest.equals('foo')); |
3828 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 3971 unittest.expect(o.recordingDate, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
3829 } | 3972 } |
3830 buildCounterVideoRecordingDetails--; | 3973 buildCounterVideoRecordingDetails--; |
3831 } | 3974 } |
3832 | 3975 |
3833 buildUnnamed658() { | 3976 buildUnnamed1450() { |
3834 var o = new core.List<core.String>(); | 3977 var o = new core.List<core.String>(); |
3835 o.add("foo"); | 3978 o.add("foo"); |
3836 o.add("foo"); | 3979 o.add("foo"); |
3837 return o; | 3980 return o; |
3838 } | 3981 } |
3839 | 3982 |
3840 checkUnnamed658(core.List<core.String> o) { | 3983 checkUnnamed1450(core.List<core.String> o) { |
3841 unittest.expect(o, unittest.hasLength(2)); | 3984 unittest.expect(o, unittest.hasLength(2)); |
3842 unittest.expect(o[0], unittest.equals('foo')); | 3985 unittest.expect(o[0], unittest.equals('foo')); |
3843 unittest.expect(o[1], unittest.equals('foo')); | 3986 unittest.expect(o[1], unittest.equals('foo')); |
3844 } | 3987 } |
3845 | 3988 |
3846 core.int buildCounterVideoSnippet = 0; | 3989 core.int buildCounterVideoSnippet = 0; |
3847 buildVideoSnippet() { | 3990 buildVideoSnippet() { |
3848 var o = new api.VideoSnippet(); | 3991 var o = new api.VideoSnippet(); |
3849 buildCounterVideoSnippet++; | 3992 buildCounterVideoSnippet++; |
3850 if (buildCounterVideoSnippet < 3) { | 3993 if (buildCounterVideoSnippet < 3) { |
3851 o.categoryId = "foo"; | 3994 o.categoryId = "foo"; |
3852 o.channelId = "foo"; | 3995 o.channelId = "foo"; |
3853 o.channelTitle = "foo"; | 3996 o.channelTitle = "foo"; |
3854 o.defaultLanguage = "foo"; | 3997 o.defaultLanguage = "foo"; |
3855 o.description = "foo"; | 3998 o.description = "foo"; |
3856 o.liveBroadcastContent = "foo"; | 3999 o.liveBroadcastContent = "foo"; |
3857 o.localized = buildVideoLocalization(); | 4000 o.localized = buildVideoLocalization(); |
3858 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); | 4001 o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); |
3859 o.tags = buildUnnamed658(); | 4002 o.tags = buildUnnamed1450(); |
3860 o.thumbnails = buildThumbnailDetails(); | 4003 o.thumbnails = buildThumbnailDetails(); |
3861 o.title = "foo"; | 4004 o.title = "foo"; |
3862 } | 4005 } |
3863 buildCounterVideoSnippet--; | 4006 buildCounterVideoSnippet--; |
3864 return o; | 4007 return o; |
3865 } | 4008 } |
3866 | 4009 |
3867 checkVideoSnippet(api.VideoSnippet o) { | 4010 checkVideoSnippet(api.VideoSnippet o) { |
3868 buildCounterVideoSnippet++; | 4011 buildCounterVideoSnippet++; |
3869 if (buildCounterVideoSnippet < 3) { | 4012 if (buildCounterVideoSnippet < 3) { |
3870 unittest.expect(o.categoryId, unittest.equals('foo')); | 4013 unittest.expect(o.categoryId, unittest.equals('foo')); |
3871 unittest.expect(o.channelId, unittest.equals('foo')); | 4014 unittest.expect(o.channelId, unittest.equals('foo')); |
3872 unittest.expect(o.channelTitle, unittest.equals('foo')); | 4015 unittest.expect(o.channelTitle, unittest.equals('foo')); |
3873 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 4016 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
3874 unittest.expect(o.description, unittest.equals('foo')); | 4017 unittest.expect(o.description, unittest.equals('foo')); |
3875 unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); | 4018 unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); |
3876 checkVideoLocalization(o.localized); | 4019 checkVideoLocalization(o.localized); |
3877 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 4020 unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
3878 checkUnnamed658(o.tags); | 4021 checkUnnamed1450(o.tags); |
3879 checkThumbnailDetails(o.thumbnails); | 4022 checkThumbnailDetails(o.thumbnails); |
3880 unittest.expect(o.title, unittest.equals('foo')); | 4023 unittest.expect(o.title, unittest.equals('foo')); |
3881 } | 4024 } |
3882 buildCounterVideoSnippet--; | 4025 buildCounterVideoSnippet--; |
3883 } | 4026 } |
3884 | 4027 |
3885 core.int buildCounterVideoStatistics = 0; | 4028 core.int buildCounterVideoStatistics = 0; |
3886 buildVideoStatistics() { | 4029 buildVideoStatistics() { |
3887 var o = new api.VideoStatistics(); | 4030 var o = new api.VideoStatistics(); |
3888 buildCounterVideoStatistics++; | 4031 buildCounterVideoStatistics++; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3935 unittest.expect(o.license, unittest.equals('foo')); | 4078 unittest.expect(o.license, unittest.equals('foo')); |
3936 unittest.expect(o.privacyStatus, unittest.equals('foo')); | 4079 unittest.expect(o.privacyStatus, unittest.equals('foo')); |
3937 unittest.expect(o.publicStatsViewable, unittest.isTrue); | 4080 unittest.expect(o.publicStatsViewable, unittest.isTrue); |
3938 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 4081 unittest.expect(o.publishAt, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
3939 unittest.expect(o.rejectionReason, unittest.equals('foo')); | 4082 unittest.expect(o.rejectionReason, unittest.equals('foo')); |
3940 unittest.expect(o.uploadStatus, unittest.equals('foo')); | 4083 unittest.expect(o.uploadStatus, unittest.equals('foo')); |
3941 } | 4084 } |
3942 buildCounterVideoStatus--; | 4085 buildCounterVideoStatus--; |
3943 } | 4086 } |
3944 | 4087 |
3945 buildUnnamed659() { | 4088 buildUnnamed1451() { |
3946 var o = new core.List<core.String>(); | 4089 var o = new core.List<core.String>(); |
3947 o.add("foo"); | 4090 o.add("foo"); |
3948 o.add("foo"); | 4091 o.add("foo"); |
3949 return o; | 4092 return o; |
3950 } | 4093 } |
3951 | 4094 |
3952 checkUnnamed659(core.List<core.String> o) { | 4095 checkUnnamed1451(core.List<core.String> o) { |
3953 unittest.expect(o, unittest.hasLength(2)); | 4096 unittest.expect(o, unittest.hasLength(2)); |
3954 unittest.expect(o[0], unittest.equals('foo')); | 4097 unittest.expect(o[0], unittest.equals('foo')); |
3955 unittest.expect(o[1], unittest.equals('foo')); | 4098 unittest.expect(o[1], unittest.equals('foo')); |
3956 } | 4099 } |
3957 | 4100 |
3958 buildUnnamed660() { | 4101 buildUnnamed1452() { |
3959 var o = new core.List<core.String>(); | 4102 var o = new core.List<core.String>(); |
3960 o.add("foo"); | 4103 o.add("foo"); |
3961 o.add("foo"); | 4104 o.add("foo"); |
3962 return o; | 4105 return o; |
3963 } | 4106 } |
3964 | 4107 |
3965 checkUnnamed660(core.List<core.String> o) { | 4108 checkUnnamed1452(core.List<core.String> o) { |
3966 unittest.expect(o, unittest.hasLength(2)); | 4109 unittest.expect(o, unittest.hasLength(2)); |
3967 unittest.expect(o[0], unittest.equals('foo')); | 4110 unittest.expect(o[0], unittest.equals('foo')); |
3968 unittest.expect(o[1], unittest.equals('foo')); | 4111 unittest.expect(o[1], unittest.equals('foo')); |
3969 } | 4112 } |
3970 | 4113 |
3971 buildUnnamed661() { | 4114 buildUnnamed1453() { |
3972 var o = new core.List<core.String>(); | 4115 var o = new core.List<core.String>(); |
3973 o.add("foo"); | 4116 o.add("foo"); |
3974 o.add("foo"); | 4117 o.add("foo"); |
3975 return o; | 4118 return o; |
3976 } | 4119 } |
3977 | 4120 |
3978 checkUnnamed661(core.List<core.String> o) { | 4121 checkUnnamed1453(core.List<core.String> o) { |
3979 unittest.expect(o, unittest.hasLength(2)); | 4122 unittest.expect(o, unittest.hasLength(2)); |
3980 unittest.expect(o[0], unittest.equals('foo')); | 4123 unittest.expect(o[0], unittest.equals('foo')); |
3981 unittest.expect(o[1], unittest.equals('foo')); | 4124 unittest.expect(o[1], unittest.equals('foo')); |
3982 } | 4125 } |
3983 | 4126 |
3984 buildUnnamed662() { | 4127 buildUnnamed1454() { |
3985 var o = new core.List<core.String>(); | 4128 var o = new core.List<core.String>(); |
3986 o.add("foo"); | 4129 o.add("foo"); |
3987 o.add("foo"); | 4130 o.add("foo"); |
3988 return o; | 4131 return o; |
3989 } | 4132 } |
3990 | 4133 |
3991 checkUnnamed662(core.List<core.String> o) { | 4134 checkUnnamed1454(core.List<core.String> o) { |
3992 unittest.expect(o, unittest.hasLength(2)); | 4135 unittest.expect(o, unittest.hasLength(2)); |
3993 unittest.expect(o[0], unittest.equals('foo')); | 4136 unittest.expect(o[0], unittest.equals('foo')); |
3994 unittest.expect(o[1], unittest.equals('foo')); | 4137 unittest.expect(o[1], unittest.equals('foo')); |
3995 } | 4138 } |
3996 | 4139 |
3997 buildUnnamed663() { | 4140 buildUnnamed1455() { |
3998 var o = new core.List<api.VideoSuggestionsTagSuggestion>(); | 4141 var o = new core.List<api.VideoSuggestionsTagSuggestion>(); |
3999 o.add(buildVideoSuggestionsTagSuggestion()); | 4142 o.add(buildVideoSuggestionsTagSuggestion()); |
4000 o.add(buildVideoSuggestionsTagSuggestion()); | 4143 o.add(buildVideoSuggestionsTagSuggestion()); |
4001 return o; | 4144 return o; |
4002 } | 4145 } |
4003 | 4146 |
4004 checkUnnamed663(core.List<api.VideoSuggestionsTagSuggestion> o) { | 4147 checkUnnamed1455(core.List<api.VideoSuggestionsTagSuggestion> o) { |
4005 unittest.expect(o, unittest.hasLength(2)); | 4148 unittest.expect(o, unittest.hasLength(2)); |
4006 checkVideoSuggestionsTagSuggestion(o[0]); | 4149 checkVideoSuggestionsTagSuggestion(o[0]); |
4007 checkVideoSuggestionsTagSuggestion(o[1]); | 4150 checkVideoSuggestionsTagSuggestion(o[1]); |
4008 } | 4151 } |
4009 | 4152 |
4010 core.int buildCounterVideoSuggestions = 0; | 4153 core.int buildCounterVideoSuggestions = 0; |
4011 buildVideoSuggestions() { | 4154 buildVideoSuggestions() { |
4012 var o = new api.VideoSuggestions(); | 4155 var o = new api.VideoSuggestions(); |
4013 buildCounterVideoSuggestions++; | 4156 buildCounterVideoSuggestions++; |
4014 if (buildCounterVideoSuggestions < 3) { | 4157 if (buildCounterVideoSuggestions < 3) { |
4015 o.editorSuggestions = buildUnnamed659(); | 4158 o.editorSuggestions = buildUnnamed1451(); |
4016 o.processingErrors = buildUnnamed660(); | 4159 o.processingErrors = buildUnnamed1452(); |
4017 o.processingHints = buildUnnamed661(); | 4160 o.processingHints = buildUnnamed1453(); |
4018 o.processingWarnings = buildUnnamed662(); | 4161 o.processingWarnings = buildUnnamed1454(); |
4019 o.tagSuggestions = buildUnnamed663(); | 4162 o.tagSuggestions = buildUnnamed1455(); |
4020 } | 4163 } |
4021 buildCounterVideoSuggestions--; | 4164 buildCounterVideoSuggestions--; |
4022 return o; | 4165 return o; |
4023 } | 4166 } |
4024 | 4167 |
4025 checkVideoSuggestions(api.VideoSuggestions o) { | 4168 checkVideoSuggestions(api.VideoSuggestions o) { |
4026 buildCounterVideoSuggestions++; | 4169 buildCounterVideoSuggestions++; |
4027 if (buildCounterVideoSuggestions < 3) { | 4170 if (buildCounterVideoSuggestions < 3) { |
4028 checkUnnamed659(o.editorSuggestions); | 4171 checkUnnamed1451(o.editorSuggestions); |
4029 checkUnnamed660(o.processingErrors); | 4172 checkUnnamed1452(o.processingErrors); |
4030 checkUnnamed661(o.processingHints); | 4173 checkUnnamed1453(o.processingHints); |
4031 checkUnnamed662(o.processingWarnings); | 4174 checkUnnamed1454(o.processingWarnings); |
4032 checkUnnamed663(o.tagSuggestions); | 4175 checkUnnamed1455(o.tagSuggestions); |
4033 } | 4176 } |
4034 buildCounterVideoSuggestions--; | 4177 buildCounterVideoSuggestions--; |
4035 } | 4178 } |
4036 | 4179 |
4037 buildUnnamed664() { | 4180 buildUnnamed1456() { |
4038 var o = new core.List<core.String>(); | 4181 var o = new core.List<core.String>(); |
4039 o.add("foo"); | 4182 o.add("foo"); |
4040 o.add("foo"); | 4183 o.add("foo"); |
4041 return o; | 4184 return o; |
4042 } | 4185 } |
4043 | 4186 |
4044 checkUnnamed664(core.List<core.String> o) { | 4187 checkUnnamed1456(core.List<core.String> o) { |
4045 unittest.expect(o, unittest.hasLength(2)); | 4188 unittest.expect(o, unittest.hasLength(2)); |
4046 unittest.expect(o[0], unittest.equals('foo')); | 4189 unittest.expect(o[0], unittest.equals('foo')); |
4047 unittest.expect(o[1], unittest.equals('foo')); | 4190 unittest.expect(o[1], unittest.equals('foo')); |
4048 } | 4191 } |
4049 | 4192 |
4050 core.int buildCounterVideoSuggestionsTagSuggestion = 0; | 4193 core.int buildCounterVideoSuggestionsTagSuggestion = 0; |
4051 buildVideoSuggestionsTagSuggestion() { | 4194 buildVideoSuggestionsTagSuggestion() { |
4052 var o = new api.VideoSuggestionsTagSuggestion(); | 4195 var o = new api.VideoSuggestionsTagSuggestion(); |
4053 buildCounterVideoSuggestionsTagSuggestion++; | 4196 buildCounterVideoSuggestionsTagSuggestion++; |
4054 if (buildCounterVideoSuggestionsTagSuggestion < 3) { | 4197 if (buildCounterVideoSuggestionsTagSuggestion < 3) { |
4055 o.categoryRestricts = buildUnnamed664(); | 4198 o.categoryRestricts = buildUnnamed1456(); |
4056 o.tag = "foo"; | 4199 o.tag = "foo"; |
4057 } | 4200 } |
4058 buildCounterVideoSuggestionsTagSuggestion--; | 4201 buildCounterVideoSuggestionsTagSuggestion--; |
4059 return o; | 4202 return o; |
4060 } | 4203 } |
4061 | 4204 |
4062 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { | 4205 checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { |
4063 buildCounterVideoSuggestionsTagSuggestion++; | 4206 buildCounterVideoSuggestionsTagSuggestion++; |
4064 if (buildCounterVideoSuggestionsTagSuggestion < 3) { | 4207 if (buildCounterVideoSuggestionsTagSuggestion < 3) { |
4065 checkUnnamed664(o.categoryRestricts); | 4208 checkUnnamed1456(o.categoryRestricts); |
4066 unittest.expect(o.tag, unittest.equals('foo')); | 4209 unittest.expect(o.tag, unittest.equals('foo')); |
4067 } | 4210 } |
4068 buildCounterVideoSuggestionsTagSuggestion--; | 4211 buildCounterVideoSuggestionsTagSuggestion--; |
4069 } | 4212 } |
4070 | 4213 |
4071 buildUnnamed665() { | 4214 buildUnnamed1457() { |
4072 var o = new core.List<core.String>(); | 4215 var o = new core.List<core.String>(); |
4073 o.add("foo"); | 4216 o.add("foo"); |
4074 o.add("foo"); | 4217 o.add("foo"); |
4075 return o; | 4218 return o; |
4076 } | 4219 } |
4077 | 4220 |
4078 checkUnnamed665(core.List<core.String> o) { | 4221 checkUnnamed1457(core.List<core.String> o) { |
4079 unittest.expect(o, unittest.hasLength(2)); | 4222 unittest.expect(o, unittest.hasLength(2)); |
4080 unittest.expect(o[0], unittest.equals('foo')); | 4223 unittest.expect(o[0], unittest.equals('foo')); |
4081 unittest.expect(o[1], unittest.equals('foo')); | 4224 unittest.expect(o[1], unittest.equals('foo')); |
4082 } | 4225 } |
4083 | 4226 |
4084 buildUnnamed666() { | 4227 buildUnnamed1458() { |
4085 var o = new core.List<core.String>(); | 4228 var o = new core.List<core.String>(); |
4086 o.add("foo"); | 4229 o.add("foo"); |
4087 o.add("foo"); | 4230 o.add("foo"); |
4088 return o; | 4231 return o; |
4089 } | 4232 } |
4090 | 4233 |
4091 checkUnnamed666(core.List<core.String> o) { | 4234 checkUnnamed1458(core.List<core.String> o) { |
4092 unittest.expect(o, unittest.hasLength(2)); | 4235 unittest.expect(o, unittest.hasLength(2)); |
4093 unittest.expect(o[0], unittest.equals('foo')); | 4236 unittest.expect(o[0], unittest.equals('foo')); |
4094 unittest.expect(o[1], unittest.equals('foo')); | 4237 unittest.expect(o[1], unittest.equals('foo')); |
4095 } | 4238 } |
4096 | 4239 |
4097 core.int buildCounterVideoTopicDetails = 0; | 4240 core.int buildCounterVideoTopicDetails = 0; |
4098 buildVideoTopicDetails() { | 4241 buildVideoTopicDetails() { |
4099 var o = new api.VideoTopicDetails(); | 4242 var o = new api.VideoTopicDetails(); |
4100 buildCounterVideoTopicDetails++; | 4243 buildCounterVideoTopicDetails++; |
4101 if (buildCounterVideoTopicDetails < 3) { | 4244 if (buildCounterVideoTopicDetails < 3) { |
4102 o.relevantTopicIds = buildUnnamed665(); | 4245 o.relevantTopicIds = buildUnnamed1457(); |
4103 o.topicIds = buildUnnamed666(); | 4246 o.topicIds = buildUnnamed1458(); |
4104 } | 4247 } |
4105 buildCounterVideoTopicDetails--; | 4248 buildCounterVideoTopicDetails--; |
4106 return o; | 4249 return o; |
4107 } | 4250 } |
4108 | 4251 |
4109 checkVideoTopicDetails(api.VideoTopicDetails o) { | 4252 checkVideoTopicDetails(api.VideoTopicDetails o) { |
4110 buildCounterVideoTopicDetails++; | 4253 buildCounterVideoTopicDetails++; |
4111 if (buildCounterVideoTopicDetails < 3) { | 4254 if (buildCounterVideoTopicDetails < 3) { |
4112 checkUnnamed665(o.relevantTopicIds); | 4255 checkUnnamed1457(o.relevantTopicIds); |
4113 checkUnnamed666(o.topicIds); | 4256 checkUnnamed1458(o.topicIds); |
4114 } | 4257 } |
4115 buildCounterVideoTopicDetails--; | 4258 buildCounterVideoTopicDetails--; |
4116 } | 4259 } |
4117 | 4260 |
4118 core.int buildCounterWatchSettings = 0; | 4261 core.int buildCounterWatchSettings = 0; |
4119 buildWatchSettings() { | 4262 buildWatchSettings() { |
4120 var o = new api.WatchSettings(); | 4263 var o = new api.WatchSettings(); |
4121 buildCounterWatchSettings++; | 4264 buildCounterWatchSettings++; |
4122 if (buildCounterWatchSettings < 3) { | 4265 if (buildCounterWatchSettings < 3) { |
4123 o.backgroundColor = "foo"; | 4266 o.backgroundColor = "foo"; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4277 | 4420 |
4278 unittest.group("obj-schema-ActivitySnippet", () { | 4421 unittest.group("obj-schema-ActivitySnippet", () { |
4279 unittest.test("to-json--from-json", () { | 4422 unittest.test("to-json--from-json", () { |
4280 var o = buildActivitySnippet(); | 4423 var o = buildActivitySnippet(); |
4281 var od = new api.ActivitySnippet.fromJson(o.toJson()); | 4424 var od = new api.ActivitySnippet.fromJson(o.toJson()); |
4282 checkActivitySnippet(od); | 4425 checkActivitySnippet(od); |
4283 }); | 4426 }); |
4284 }); | 4427 }); |
4285 | 4428 |
4286 | 4429 |
| 4430 unittest.group("obj-schema-Caption", () { |
| 4431 unittest.test("to-json--from-json", () { |
| 4432 var o = buildCaption(); |
| 4433 var od = new api.Caption.fromJson(o.toJson()); |
| 4434 checkCaption(od); |
| 4435 }); |
| 4436 }); |
| 4437 |
| 4438 |
| 4439 unittest.group("obj-schema-CaptionListResponse", () { |
| 4440 unittest.test("to-json--from-json", () { |
| 4441 var o = buildCaptionListResponse(); |
| 4442 var od = new api.CaptionListResponse.fromJson(o.toJson()); |
| 4443 checkCaptionListResponse(od); |
| 4444 }); |
| 4445 }); |
| 4446 |
| 4447 |
| 4448 unittest.group("obj-schema-CaptionSnippet", () { |
| 4449 unittest.test("to-json--from-json", () { |
| 4450 var o = buildCaptionSnippet(); |
| 4451 var od = new api.CaptionSnippet.fromJson(o.toJson()); |
| 4452 checkCaptionSnippet(od); |
| 4453 }); |
| 4454 }); |
| 4455 |
| 4456 |
4287 unittest.group("obj-schema-CdnSettings", () { | 4457 unittest.group("obj-schema-CdnSettings", () { |
4288 unittest.test("to-json--from-json", () { | 4458 unittest.test("to-json--from-json", () { |
4289 var o = buildCdnSettings(); | 4459 var o = buildCdnSettings(); |
4290 var od = new api.CdnSettings.fromJson(o.toJson()); | 4460 var od = new api.CdnSettings.fromJson(o.toJson()); |
4291 checkCdnSettings(od); | 4461 checkCdnSettings(od); |
4292 }); | 4462 }); |
4293 }); | 4463 }); |
4294 | 4464 |
4295 | 4465 |
4296 unittest.group("obj-schema-Channel", () { | 4466 unittest.group("obj-schema-Channel", () { |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5288 var o = buildWatchSettings(); | 5458 var o = buildWatchSettings(); |
5289 var od = new api.WatchSettings.fromJson(o.toJson()); | 5459 var od = new api.WatchSettings.fromJson(o.toJson()); |
5290 checkWatchSettings(od); | 5460 checkWatchSettings(od); |
5291 }); | 5461 }); |
5292 }); | 5462 }); |
5293 | 5463 |
5294 | 5464 |
5295 unittest.group("resource-ActivitiesResourceApi", () { | 5465 unittest.group("resource-ActivitiesResourceApi", () { |
5296 unittest.test("method--insert", () { | 5466 unittest.test("method--insert", () { |
5297 | 5467 |
5298 var mock = new common_test.HttpServerMock(); | 5468 var mock = new HttpServerMock(); |
5299 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; | 5469 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; |
5300 var arg_request = buildActivity(); | 5470 var arg_request = buildActivity(); |
5301 var arg_part = "foo"; | 5471 var arg_part = "foo"; |
5302 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5472 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5303 var obj = new api.Activity.fromJson(json); | 5473 var obj = new api.Activity.fromJson(json); |
5304 checkActivity(obj); | 5474 checkActivity(obj); |
5305 | 5475 |
5306 var path = (req.url).path; | 5476 var path = (req.url).path; |
5307 var pathOffset = 0; | 5477 var pathOffset = 0; |
5308 var index; | 5478 var index; |
(...skipping 21 matching lines...) Expand all Loading... |
5330 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5331 } | 5501 } |
5332 } | 5502 } |
5333 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 5503 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5334 | 5504 |
5335 | 5505 |
5336 var h = { | 5506 var h = { |
5337 "content-type" : "application/json; charset=utf-8", | 5507 "content-type" : "application/json; charset=utf-8", |
5338 }; | 5508 }; |
5339 var resp = convert.JSON.encode(buildActivity()); | 5509 var resp = convert.JSON.encode(buildActivity()); |
5340 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5510 return new async.Future.value(stringResponse(200, h, resp)); |
5341 }), true); | 5511 }), true); |
5342 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Activity
response) { | 5512 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Activity
response) { |
5343 checkActivity(response); | 5513 checkActivity(response); |
5344 }))); | 5514 }))); |
5345 }); | 5515 }); |
5346 | 5516 |
5347 unittest.test("method--list", () { | 5517 unittest.test("method--list", () { |
5348 | 5518 |
5349 var mock = new common_test.HttpServerMock(); | 5519 var mock = new HttpServerMock(); |
5350 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; | 5520 api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; |
5351 var arg_part = "foo"; | 5521 var arg_part = "foo"; |
5352 var arg_channelId = "foo"; | 5522 var arg_channelId = "foo"; |
5353 var arg_home = true; | 5523 var arg_home = true; |
5354 var arg_maxResults = 42; | 5524 var arg_maxResults = 42; |
5355 var arg_mine = true; | 5525 var arg_mine = true; |
5356 var arg_pageToken = "foo"; | 5526 var arg_pageToken = "foo"; |
5357 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 5527 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
5358 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 5528 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
5359 var arg_regionCode = "foo"; | 5529 var arg_regionCode = "foo"; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5393 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5563 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5394 unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), u
nittest.equals(arg_publishedAfter)); | 5564 unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), u
nittest.equals(arg_publishedAfter)); |
5395 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first),
unittest.equals(arg_publishedBefore)); | 5565 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first),
unittest.equals(arg_publishedBefore)); |
5396 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); | 5566 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); |
5397 | 5567 |
5398 | 5568 |
5399 var h = { | 5569 var h = { |
5400 "content-type" : "application/json; charset=utf-8", | 5570 "content-type" : "application/json; charset=utf-8", |
5401 }; | 5571 }; |
5402 var resp = convert.JSON.encode(buildActivityListResponse()); | 5572 var resp = convert.JSON.encode(buildActivityListResponse()); |
5403 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5573 return new async.Future.value(stringResponse(200, h, resp)); |
5404 }), true); | 5574 }), true); |
5405 res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: a
rg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_pub
lishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).t
hen(unittest.expectAsync(((api.ActivityListResponse response) { | 5575 res.list(arg_part, channelId: arg_channelId, home: arg_home, maxResults: a
rg_maxResults, mine: arg_mine, pageToken: arg_pageToken, publishedAfter: arg_pub
lishedAfter, publishedBefore: arg_publishedBefore, regionCode: arg_regionCode).t
hen(unittest.expectAsync(((api.ActivityListResponse response) { |
5406 checkActivityListResponse(response); | 5576 checkActivityListResponse(response); |
5407 }))); | 5577 }))); |
5408 }); | 5578 }); |
5409 | 5579 |
5410 }); | 5580 }); |
5411 | 5581 |
5412 | 5582 |
| 5583 unittest.group("resource-CaptionsResourceApi", () { |
| 5584 unittest.test("method--delete", () { |
| 5585 |
| 5586 var mock = new HttpServerMock(); |
| 5587 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; |
| 5588 var arg_id = "foo"; |
| 5589 var arg_debugProjectIdOverride = "foo"; |
| 5590 var arg_onBehalfOf = "foo"; |
| 5591 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5592 var path = (req.url).path; |
| 5593 var pathOffset = 0; |
| 5594 var index; |
| 5595 var subPart; |
| 5596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5597 pathOffset += 1; |
| 5598 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5599 pathOffset += 11; |
| 5600 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("captions")); |
| 5601 pathOffset += 8; |
| 5602 |
| 5603 var query = (req.url).query; |
| 5604 var queryOffset = 0; |
| 5605 var queryMap = {}; |
| 5606 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5607 parseBool(n) { |
| 5608 if (n == "true") return true; |
| 5609 if (n == "false") return false; |
| 5610 if (n == null) return null; |
| 5611 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5612 } |
| 5613 if (query.length > 0) { |
| 5614 for (var part in query.split("&")) { |
| 5615 var keyvalue = part.split("="); |
| 5616 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5617 } |
| 5618 } |
| 5619 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 5620 unittest.expect(queryMap["debugProjectIdOverride"].first, unittest.equal
s(arg_debugProjectIdOverride)); |
| 5621 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha
lfOf)); |
| 5622 |
| 5623 |
| 5624 var h = { |
| 5625 "content-type" : "application/json; charset=utf-8", |
| 5626 }; |
| 5627 var resp = ""; |
| 5628 return new async.Future.value(stringResponse(200, h, resp)); |
| 5629 }), true); |
| 5630 res.delete(arg_id, debugProjectIdOverride: arg_debugProjectIdOverride, onB
ehalfOf: arg_onBehalfOf).then(unittest.expectAsync((_) {})); |
| 5631 }); |
| 5632 |
| 5633 unittest.test("method--download", () { |
| 5634 // TODO: Implement tests for media upload; |
| 5635 // TODO: Implement tests for media download; |
| 5636 |
| 5637 var mock = new HttpServerMock(); |
| 5638 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; |
| 5639 var arg_id = "foo"; |
| 5640 var arg_debugProjectIdOverride = "foo"; |
| 5641 var arg_onBehalfOf = "foo"; |
| 5642 var arg_tfmt = "foo"; |
| 5643 var arg_tlang = "foo"; |
| 5644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5645 var path = (req.url).path; |
| 5646 var pathOffset = 0; |
| 5647 var index; |
| 5648 var subPart; |
| 5649 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5650 pathOffset += 1; |
| 5651 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5652 pathOffset += 11; |
| 5653 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("captions/")); |
| 5654 pathOffset += 9; |
| 5655 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5656 pathOffset = path.length; |
| 5657 unittest.expect(subPart, unittest.equals("$arg_id")); |
| 5658 |
| 5659 var query = (req.url).query; |
| 5660 var queryOffset = 0; |
| 5661 var queryMap = {}; |
| 5662 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5663 parseBool(n) { |
| 5664 if (n == "true") return true; |
| 5665 if (n == "false") return false; |
| 5666 if (n == null) return null; |
| 5667 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5668 } |
| 5669 if (query.length > 0) { |
| 5670 for (var part in query.split("&")) { |
| 5671 var keyvalue = part.split("="); |
| 5672 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5673 } |
| 5674 } |
| 5675 unittest.expect(queryMap["debugProjectIdOverride"].first, unittest.equal
s(arg_debugProjectIdOverride)); |
| 5676 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha
lfOf)); |
| 5677 unittest.expect(queryMap["tfmt"].first, unittest.equals(arg_tfmt)); |
| 5678 unittest.expect(queryMap["tlang"].first, unittest.equals(arg_tlang)); |
| 5679 |
| 5680 |
| 5681 var h = { |
| 5682 "content-type" : "application/json; charset=utf-8", |
| 5683 }; |
| 5684 var resp = ""; |
| 5685 return new async.Future.value(stringResponse(200, h, resp)); |
| 5686 }), true); |
| 5687 res.download(arg_id, debugProjectIdOverride: arg_debugProjectIdOverride, o
nBehalfOf: arg_onBehalfOf, tfmt: arg_tfmt, tlang: arg_tlang).then(unittest.expec
tAsync((_) {})); |
| 5688 }); |
| 5689 |
| 5690 unittest.test("method--insert", () { |
| 5691 // TODO: Implement tests for media upload; |
| 5692 // TODO: Implement tests for media download; |
| 5693 |
| 5694 var mock = new HttpServerMock(); |
| 5695 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; |
| 5696 var arg_request = buildCaption(); |
| 5697 var arg_part = "foo"; |
| 5698 var arg_debugProjectIdOverride = "foo"; |
| 5699 var arg_onBehalfOf = "foo"; |
| 5700 var arg_sync = true; |
| 5701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5702 var obj = new api.Caption.fromJson(json); |
| 5703 checkCaption(obj); |
| 5704 |
| 5705 var path = (req.url).path; |
| 5706 var pathOffset = 0; |
| 5707 var index; |
| 5708 var subPart; |
| 5709 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5710 pathOffset += 1; |
| 5711 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5712 pathOffset += 11; |
| 5713 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("captions")); |
| 5714 pathOffset += 8; |
| 5715 |
| 5716 var query = (req.url).query; |
| 5717 var queryOffset = 0; |
| 5718 var queryMap = {}; |
| 5719 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5720 parseBool(n) { |
| 5721 if (n == "true") return true; |
| 5722 if (n == "false") return false; |
| 5723 if (n == null) return null; |
| 5724 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5725 } |
| 5726 if (query.length > 0) { |
| 5727 for (var part in query.split("&")) { |
| 5728 var keyvalue = part.split("="); |
| 5729 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5730 } |
| 5731 } |
| 5732 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
| 5733 unittest.expect(queryMap["debugProjectIdOverride"].first, unittest.equal
s(arg_debugProjectIdOverride)); |
| 5734 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha
lfOf)); |
| 5735 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); |
| 5736 |
| 5737 |
| 5738 var h = { |
| 5739 "content-type" : "application/json; charset=utf-8", |
| 5740 }; |
| 5741 var resp = convert.JSON.encode(buildCaption()); |
| 5742 return new async.Future.value(stringResponse(200, h, resp)); |
| 5743 }), true); |
| 5744 res.insert(arg_request, arg_part, debugProjectIdOverride: arg_debugProject
IdOverride, onBehalfOf: arg_onBehalfOf, sync: arg_sync).then(unittest.expectAsyn
c(((api.Caption response) { |
| 5745 checkCaption(response); |
| 5746 }))); |
| 5747 }); |
| 5748 |
| 5749 unittest.test("method--list", () { |
| 5750 |
| 5751 var mock = new HttpServerMock(); |
| 5752 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; |
| 5753 var arg_part = "foo"; |
| 5754 var arg_videoId = "foo"; |
| 5755 var arg_debugProjectIdOverride = "foo"; |
| 5756 var arg_id = "foo"; |
| 5757 var arg_onBehalfOf = "foo"; |
| 5758 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5759 var path = (req.url).path; |
| 5760 var pathOffset = 0; |
| 5761 var index; |
| 5762 var subPart; |
| 5763 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5764 pathOffset += 1; |
| 5765 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5766 pathOffset += 11; |
| 5767 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("captions")); |
| 5768 pathOffset += 8; |
| 5769 |
| 5770 var query = (req.url).query; |
| 5771 var queryOffset = 0; |
| 5772 var queryMap = {}; |
| 5773 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5774 parseBool(n) { |
| 5775 if (n == "true") return true; |
| 5776 if (n == "false") return false; |
| 5777 if (n == null) return null; |
| 5778 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5779 } |
| 5780 if (query.length > 0) { |
| 5781 for (var part in query.split("&")) { |
| 5782 var keyvalue = part.split("="); |
| 5783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5784 } |
| 5785 } |
| 5786 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
| 5787 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; |
| 5788 unittest.expect(queryMap["debugProjectIdOverride"].first, unittest.equal
s(arg_debugProjectIdOverride)); |
| 5789 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
| 5790 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha
lfOf)); |
| 5791 |
| 5792 |
| 5793 var h = { |
| 5794 "content-type" : "application/json; charset=utf-8", |
| 5795 }; |
| 5796 var resp = convert.JSON.encode(buildCaptionListResponse()); |
| 5797 return new async.Future.value(stringResponse(200, h, resp)); |
| 5798 }), true); |
| 5799 res.list(arg_part, arg_videoId, debugProjectIdOverride: arg_debugProjectId
Override, id: arg_id, onBehalfOf: arg_onBehalfOf).then(unittest.expectAsync(((ap
i.CaptionListResponse response) { |
| 5800 checkCaptionListResponse(response); |
| 5801 }))); |
| 5802 }); |
| 5803 |
| 5804 unittest.test("method--update", () { |
| 5805 // TODO: Implement tests for media upload; |
| 5806 // TODO: Implement tests for media download; |
| 5807 |
| 5808 var mock = new HttpServerMock(); |
| 5809 api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; |
| 5810 var arg_request = buildCaption(); |
| 5811 var arg_part = "foo"; |
| 5812 var arg_debugProjectIdOverride = "foo"; |
| 5813 var arg_onBehalfOf = "foo"; |
| 5814 var arg_sync = true; |
| 5815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5816 var obj = new api.Caption.fromJson(json); |
| 5817 checkCaption(obj); |
| 5818 |
| 5819 var path = (req.url).path; |
| 5820 var pathOffset = 0; |
| 5821 var index; |
| 5822 var subPart; |
| 5823 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5824 pathOffset += 1; |
| 5825 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
| 5826 pathOffset += 11; |
| 5827 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("captions")); |
| 5828 pathOffset += 8; |
| 5829 |
| 5830 var query = (req.url).query; |
| 5831 var queryOffset = 0; |
| 5832 var queryMap = {}; |
| 5833 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5834 parseBool(n) { |
| 5835 if (n == "true") return true; |
| 5836 if (n == "false") return false; |
| 5837 if (n == null) return null; |
| 5838 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5839 } |
| 5840 if (query.length > 0) { |
| 5841 for (var part in query.split("&")) { |
| 5842 var keyvalue = part.split("="); |
| 5843 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5844 } |
| 5845 } |
| 5846 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
| 5847 unittest.expect(queryMap["debugProjectIdOverride"].first, unittest.equal
s(arg_debugProjectIdOverride)); |
| 5848 unittest.expect(queryMap["onBehalfOf"].first, unittest.equals(arg_onBeha
lfOf)); |
| 5849 unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); |
| 5850 |
| 5851 |
| 5852 var h = { |
| 5853 "content-type" : "application/json; charset=utf-8", |
| 5854 }; |
| 5855 var resp = convert.JSON.encode(buildCaption()); |
| 5856 return new async.Future.value(stringResponse(200, h, resp)); |
| 5857 }), true); |
| 5858 res.update(arg_request, arg_part, debugProjectIdOverride: arg_debugProject
IdOverride, onBehalfOf: arg_onBehalfOf, sync: arg_sync).then(unittest.expectAsyn
c(((api.Caption response) { |
| 5859 checkCaption(response); |
| 5860 }))); |
| 5861 }); |
| 5862 |
| 5863 }); |
| 5864 |
| 5865 |
5413 unittest.group("resource-ChannelBannersResourceApi", () { | 5866 unittest.group("resource-ChannelBannersResourceApi", () { |
5414 unittest.test("method--insert", () { | 5867 unittest.test("method--insert", () { |
5415 // TODO: Implement tests for media upload; | 5868 // TODO: Implement tests for media upload; |
5416 // TODO: Implement tests for media download; | 5869 // TODO: Implement tests for media download; |
5417 | 5870 |
5418 var mock = new common_test.HttpServerMock(); | 5871 var mock = new HttpServerMock(); |
5419 api.ChannelBannersResourceApi res = new api.YoutubeApi(mock).channelBanner
s; | 5872 api.ChannelBannersResourceApi res = new api.YoutubeApi(mock).channelBanner
s; |
5420 var arg_request = buildChannelBannerResource(); | 5873 var arg_request = buildChannelBannerResource(); |
5421 var arg_onBehalfOfContentOwner = "foo"; | 5874 var arg_onBehalfOfContentOwner = "foo"; |
5422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5423 var obj = new api.ChannelBannerResource.fromJson(json); | 5876 var obj = new api.ChannelBannerResource.fromJson(json); |
5424 checkChannelBannerResource(obj); | 5877 checkChannelBannerResource(obj); |
5425 | 5878 |
5426 var path = (req.url).path; | 5879 var path = (req.url).path; |
5427 var pathOffset = 0; | 5880 var pathOffset = 0; |
5428 var index; | 5881 var index; |
(...skipping 21 matching lines...) Expand all Loading... |
5450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5903 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5451 } | 5904 } |
5452 } | 5905 } |
5453 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 5906 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5454 | 5907 |
5455 | 5908 |
5456 var h = { | 5909 var h = { |
5457 "content-type" : "application/json; charset=utf-8", | 5910 "content-type" : "application/json; charset=utf-8", |
5458 }; | 5911 }; |
5459 var resp = convert.JSON.encode(buildChannelBannerResource()); | 5912 var resp = convert.JSON.encode(buildChannelBannerResource()); |
5460 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5913 return new async.Future.value(stringResponse(200, h, resp)); |
5461 }), true); | 5914 }), true); |
5462 res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner
).then(unittest.expectAsync(((api.ChannelBannerResource response) { | 5915 res.insert(arg_request, onBehalfOfContentOwner: arg_onBehalfOfContentOwner
).then(unittest.expectAsync(((api.ChannelBannerResource response) { |
5463 checkChannelBannerResource(response); | 5916 checkChannelBannerResource(response); |
5464 }))); | 5917 }))); |
5465 }); | 5918 }); |
5466 | 5919 |
5467 }); | 5920 }); |
5468 | 5921 |
5469 | 5922 |
5470 unittest.group("resource-ChannelSectionsResourceApi", () { | 5923 unittest.group("resource-ChannelSectionsResourceApi", () { |
5471 unittest.test("method--delete", () { | 5924 unittest.test("method--delete", () { |
5472 | 5925 |
5473 var mock = new common_test.HttpServerMock(); | 5926 var mock = new HttpServerMock(); |
5474 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; | 5927 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; |
5475 var arg_id = "foo"; | 5928 var arg_id = "foo"; |
5476 var arg_onBehalfOfContentOwner = "foo"; | 5929 var arg_onBehalfOfContentOwner = "foo"; |
5477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5930 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5478 var path = (req.url).path; | 5931 var path = (req.url).path; |
5479 var pathOffset = 0; | 5932 var pathOffset = 0; |
5480 var index; | 5933 var index; |
5481 var subPart; | 5934 var subPart; |
5482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5483 pathOffset += 1; | 5936 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
5503 } | 5956 } |
5504 } | 5957 } |
5505 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 5958 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
5506 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 5959 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5507 | 5960 |
5508 | 5961 |
5509 var h = { | 5962 var h = { |
5510 "content-type" : "application/json; charset=utf-8", | 5963 "content-type" : "application/json; charset=utf-8", |
5511 }; | 5964 }; |
5512 var resp = ""; | 5965 var resp = ""; |
5513 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5966 return new async.Future.value(stringResponse(200, h, resp)); |
5514 }), true); | 5967 }), true); |
5515 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); | 5968 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); |
5516 }); | 5969 }); |
5517 | 5970 |
5518 unittest.test("method--insert", () { | 5971 unittest.test("method--insert", () { |
5519 | 5972 |
5520 var mock = new common_test.HttpServerMock(); | 5973 var mock = new HttpServerMock(); |
5521 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; | 5974 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; |
5522 var arg_request = buildChannelSection(); | 5975 var arg_request = buildChannelSection(); |
5523 var arg_part = "foo"; | 5976 var arg_part = "foo"; |
5524 var arg_onBehalfOfContentOwner = "foo"; | 5977 var arg_onBehalfOfContentOwner = "foo"; |
5525 var arg_onBehalfOfContentOwnerChannel = "foo"; | 5978 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5979 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5527 var obj = new api.ChannelSection.fromJson(json); | 5980 var obj = new api.ChannelSection.fromJson(json); |
5528 checkChannelSection(obj); | 5981 checkChannelSection(obj); |
5529 | 5982 |
5530 var path = (req.url).path; | 5983 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
5556 } | 6009 } |
5557 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6010 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5558 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6011 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5559 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6012 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
5560 | 6013 |
5561 | 6014 |
5562 var h = { | 6015 var h = { |
5563 "content-type" : "application/json; charset=utf-8", | 6016 "content-type" : "application/json; charset=utf-8", |
5564 }; | 6017 }; |
5565 var resp = convert.JSON.encode(buildChannelSection()); | 6018 var resp = convert.JSON.encode(buildChannelSection()); |
5566 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6019 return new async.Future.value(stringResponse(200, h, resp)); |
5567 }), true); | 6020 }), true); |
5568 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.ChannelSection response) { | 6021 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.ChannelSection response) { |
5569 checkChannelSection(response); | 6022 checkChannelSection(response); |
5570 }))); | 6023 }))); |
5571 }); | 6024 }); |
5572 | 6025 |
5573 unittest.test("method--list", () { | 6026 unittest.test("method--list", () { |
5574 | 6027 |
5575 var mock = new common_test.HttpServerMock(); | 6028 var mock = new HttpServerMock(); |
5576 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; | 6029 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; |
5577 var arg_part = "foo"; | 6030 var arg_part = "foo"; |
5578 var arg_channelId = "foo"; | 6031 var arg_channelId = "foo"; |
| 6032 var arg_hl = "foo"; |
5579 var arg_id = "foo"; | 6033 var arg_id = "foo"; |
5580 var arg_mine = true; | 6034 var arg_mine = true; |
5581 var arg_onBehalfOfContentOwner = "foo"; | 6035 var arg_onBehalfOfContentOwner = "foo"; |
5582 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6036 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5583 var path = (req.url).path; | 6037 var path = (req.url).path; |
5584 var pathOffset = 0; | 6038 var pathOffset = 0; |
5585 var index; | 6039 var index; |
5586 var subPart; | 6040 var subPart; |
5587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6041 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5588 pathOffset += 1; | 6042 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
5602 throw new core.ArgumentError("Invalid boolean: $n"); | 6056 throw new core.ArgumentError("Invalid boolean: $n"); |
5603 } | 6057 } |
5604 if (query.length > 0) { | 6058 if (query.length > 0) { |
5605 for (var part in query.split("&")) { | 6059 for (var part in query.split("&")) { |
5606 var keyvalue = part.split("="); | 6060 var keyvalue = part.split("="); |
5607 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6061 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5608 } | 6062 } |
5609 } | 6063 } |
5610 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6064 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5611 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); | 6065 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); |
| 6066 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
5612 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6067 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
5613 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); | 6068 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); |
5614 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6069 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5615 | 6070 |
5616 | 6071 |
5617 var h = { | 6072 var h = { |
5618 "content-type" : "application/json; charset=utf-8", | 6073 "content-type" : "application/json; charset=utf-8", |
5619 }; | 6074 }; |
5620 var resp = convert.JSON.encode(buildChannelSectionListResponse()); | 6075 var resp = convert.JSON.encode(buildChannelSectionListResponse()); |
5621 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6076 return new async.Future.value(stringResponse(200, h, resp)); |
5622 }), true); | 6077 }), true); |
5623 res.list(arg_part, channelId: arg_channelId, id: arg_id, mine: arg_mine, o
nBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((a
pi.ChannelSectionListResponse response) { | 6078 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, mine:
arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.exp
ectAsync(((api.ChannelSectionListResponse response) { |
5624 checkChannelSectionListResponse(response); | 6079 checkChannelSectionListResponse(response); |
5625 }))); | 6080 }))); |
5626 }); | 6081 }); |
5627 | 6082 |
5628 unittest.test("method--update", () { | 6083 unittest.test("method--update", () { |
5629 | 6084 |
5630 var mock = new common_test.HttpServerMock(); | 6085 var mock = new HttpServerMock(); |
5631 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; | 6086 api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSecti
ons; |
5632 var arg_request = buildChannelSection(); | 6087 var arg_request = buildChannelSection(); |
5633 var arg_part = "foo"; | 6088 var arg_part = "foo"; |
5634 var arg_onBehalfOfContentOwner = "foo"; | 6089 var arg_onBehalfOfContentOwner = "foo"; |
5635 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6090 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5636 var obj = new api.ChannelSection.fromJson(json); | 6091 var obj = new api.ChannelSection.fromJson(json); |
5637 checkChannelSection(obj); | 6092 checkChannelSection(obj); |
5638 | 6093 |
5639 var path = (req.url).path; | 6094 var path = (req.url).path; |
5640 var pathOffset = 0; | 6095 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
5664 } | 6119 } |
5665 } | 6120 } |
5666 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6121 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5667 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6122 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5668 | 6123 |
5669 | 6124 |
5670 var h = { | 6125 var h = { |
5671 "content-type" : "application/json; charset=utf-8", | 6126 "content-type" : "application/json; charset=utf-8", |
5672 }; | 6127 }; |
5673 var resp = convert.JSON.encode(buildChannelSection()); | 6128 var resp = convert.JSON.encode(buildChannelSection()); |
5674 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6129 return new async.Future.value(stringResponse(200, h, resp)); |
5675 }), true); | 6130 }), true); |
5676 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.ChannelSection response) { | 6131 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.ChannelSection response) { |
5677 checkChannelSection(response); | 6132 checkChannelSection(response); |
5678 }))); | 6133 }))); |
5679 }); | 6134 }); |
5680 | 6135 |
5681 }); | 6136 }); |
5682 | 6137 |
5683 | 6138 |
5684 unittest.group("resource-ChannelsResourceApi", () { | 6139 unittest.group("resource-ChannelsResourceApi", () { |
5685 unittest.test("method--list", () { | 6140 unittest.test("method--list", () { |
5686 | 6141 |
5687 var mock = new common_test.HttpServerMock(); | 6142 var mock = new HttpServerMock(); |
5688 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; | 6143 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; |
5689 var arg_part = "foo"; | 6144 var arg_part = "foo"; |
5690 var arg_categoryId = "foo"; | 6145 var arg_categoryId = "foo"; |
5691 var arg_forUsername = "foo"; | 6146 var arg_forUsername = "foo"; |
| 6147 var arg_hl = "foo"; |
5692 var arg_id = "foo"; | 6148 var arg_id = "foo"; |
5693 var arg_managedByMe = true; | 6149 var arg_managedByMe = true; |
5694 var arg_maxResults = 42; | 6150 var arg_maxResults = 42; |
5695 var arg_mine = true; | 6151 var arg_mine = true; |
5696 var arg_mySubscribers = true; | 6152 var arg_mySubscribers = true; |
5697 var arg_onBehalfOfContentOwner = "foo"; | 6153 var arg_onBehalfOfContentOwner = "foo"; |
5698 var arg_pageToken = "foo"; | 6154 var arg_pageToken = "foo"; |
5699 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6155 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5700 var path = (req.url).path; | 6156 var path = (req.url).path; |
5701 var pathOffset = 0; | 6157 var pathOffset = 0; |
(...skipping 18 matching lines...) Expand all Loading... |
5720 } | 6176 } |
5721 if (query.length > 0) { | 6177 if (query.length > 0) { |
5722 for (var part in query.split("&")) { | 6178 for (var part in query.split("&")) { |
5723 var keyvalue = part.split("="); | 6179 var keyvalue = part.split("="); |
5724 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5725 } | 6181 } |
5726 } | 6182 } |
5727 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6183 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5728 unittest.expect(queryMap["categoryId"].first, unittest.equals(arg_catego
ryId)); | 6184 unittest.expect(queryMap["categoryId"].first, unittest.equals(arg_catego
ryId)); |
5729 unittest.expect(queryMap["forUsername"].first, unittest.equals(arg_forUs
ername)); | 6185 unittest.expect(queryMap["forUsername"].first, unittest.equals(arg_forUs
ername)); |
| 6186 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
5730 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6187 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
5731 unittest.expect(queryMap["managedByMe"].first, unittest.equals("$arg_man
agedByMe")); | 6188 unittest.expect(queryMap["managedByMe"].first, unittest.equals("$arg_man
agedByMe")); |
5732 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6189 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5733 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); | 6190 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); |
5734 unittest.expect(queryMap["mySubscribers"].first, unittest.equals("$arg_m
ySubscribers")); | 6191 unittest.expect(queryMap["mySubscribers"].first, unittest.equals("$arg_m
ySubscribers")); |
5735 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6192 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5736 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6193 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5737 | 6194 |
5738 | 6195 |
5739 var h = { | 6196 var h = { |
5740 "content-type" : "application/json; charset=utf-8", | 6197 "content-type" : "application/json; charset=utf-8", |
5741 }; | 6198 }; |
5742 var resp = convert.JSON.encode(buildChannelListResponse()); | 6199 var resp = convert.JSON.encode(buildChannelListResponse()); |
5743 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6200 return new async.Future.value(stringResponse(200, h, resp)); |
5744 }), true); | 6201 }), true); |
5745 res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsernam
e, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResults, mine: a
rg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfO
fContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Channel
ListResponse response) { | 6202 res.list(arg_part, categoryId: arg_categoryId, forUsername: arg_forUsernam
e, hl: arg_hl, id: arg_id, managedByMe: arg_managedByMe, maxResults: arg_maxResu
lts, mine: arg_mine, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: a
rg_onBehalfOfContentOwner, pageToken: arg_pageToken).then(unittest.expectAsync((
(api.ChannelListResponse response) { |
5746 checkChannelListResponse(response); | 6203 checkChannelListResponse(response); |
5747 }))); | 6204 }))); |
5748 }); | 6205 }); |
5749 | 6206 |
5750 unittest.test("method--update", () { | 6207 unittest.test("method--update", () { |
5751 | 6208 |
5752 var mock = new common_test.HttpServerMock(); | 6209 var mock = new HttpServerMock(); |
5753 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; | 6210 api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; |
5754 var arg_request = buildChannel(); | 6211 var arg_request = buildChannel(); |
5755 var arg_part = "foo"; | 6212 var arg_part = "foo"; |
5756 var arg_onBehalfOfContentOwner = "foo"; | 6213 var arg_onBehalfOfContentOwner = "foo"; |
5757 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5758 var obj = new api.Channel.fromJson(json); | 6215 var obj = new api.Channel.fromJson(json); |
5759 checkChannel(obj); | 6216 checkChannel(obj); |
5760 | 6217 |
5761 var path = (req.url).path; | 6218 var path = (req.url).path; |
5762 var pathOffset = 0; | 6219 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
5786 } | 6243 } |
5787 } | 6244 } |
5788 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6245 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5789 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6246 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
5790 | 6247 |
5791 | 6248 |
5792 var h = { | 6249 var h = { |
5793 "content-type" : "application/json; charset=utf-8", | 6250 "content-type" : "application/json; charset=utf-8", |
5794 }; | 6251 }; |
5795 var resp = convert.JSON.encode(buildChannel()); | 6252 var resp = convert.JSON.encode(buildChannel()); |
5796 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6253 return new async.Future.value(stringResponse(200, h, resp)); |
5797 }), true); | 6254 }), true); |
5798 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Channel response) { | 6255 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Channel response) { |
5799 checkChannel(response); | 6256 checkChannel(response); |
5800 }))); | 6257 }))); |
5801 }); | 6258 }); |
5802 | 6259 |
5803 }); | 6260 }); |
5804 | 6261 |
5805 | 6262 |
5806 unittest.group("resource-GuideCategoriesResourceApi", () { | 6263 unittest.group("resource-GuideCategoriesResourceApi", () { |
5807 unittest.test("method--list", () { | 6264 unittest.test("method--list", () { |
5808 | 6265 |
5809 var mock = new common_test.HttpServerMock(); | 6266 var mock = new HttpServerMock(); |
5810 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor
ies; | 6267 api.GuideCategoriesResourceApi res = new api.YoutubeApi(mock).guideCategor
ies; |
5811 var arg_part = "foo"; | 6268 var arg_part = "foo"; |
5812 var arg_hl = "foo"; | 6269 var arg_hl = "foo"; |
5813 var arg_id = "foo"; | 6270 var arg_id = "foo"; |
5814 var arg_regionCode = "foo"; | 6271 var arg_regionCode = "foo"; |
5815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6272 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5816 var path = (req.url).path; | 6273 var path = (req.url).path; |
5817 var pathOffset = 0; | 6274 var pathOffset = 0; |
5818 var index; | 6275 var index; |
5819 var subPart; | 6276 var subPart; |
(...skipping 23 matching lines...) Expand all Loading... |
5843 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6300 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5844 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); | 6301 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
5845 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6302 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
5846 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); | 6303 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); |
5847 | 6304 |
5848 | 6305 |
5849 var h = { | 6306 var h = { |
5850 "content-type" : "application/json; charset=utf-8", | 6307 "content-type" : "application/json; charset=utf-8", |
5851 }; | 6308 }; |
5852 var resp = convert.JSON.encode(buildGuideCategoryListResponse()); | 6309 var resp = convert.JSON.encode(buildGuideCategoryListResponse()); |
5853 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6310 return new async.Future.value(stringResponse(200, h, resp)); |
5854 }), true); | 6311 }), true); |
5855 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the
n(unittest.expectAsync(((api.GuideCategoryListResponse response) { | 6312 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the
n(unittest.expectAsync(((api.GuideCategoryListResponse response) { |
5856 checkGuideCategoryListResponse(response); | 6313 checkGuideCategoryListResponse(response); |
5857 }))); | 6314 }))); |
5858 }); | 6315 }); |
5859 | 6316 |
5860 }); | 6317 }); |
5861 | 6318 |
5862 | 6319 |
5863 unittest.group("resource-I18nLanguagesResourceApi", () { | 6320 unittest.group("resource-I18nLanguagesResourceApi", () { |
5864 unittest.test("method--list", () { | 6321 unittest.test("method--list", () { |
5865 | 6322 |
5866 var mock = new common_test.HttpServerMock(); | 6323 var mock = new HttpServerMock(); |
5867 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; | 6324 api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; |
5868 var arg_part = "foo"; | 6325 var arg_part = "foo"; |
5869 var arg_hl = "foo"; | 6326 var arg_hl = "foo"; |
5870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6327 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5871 var path = (req.url).path; | 6328 var path = (req.url).path; |
5872 var pathOffset = 0; | 6329 var pathOffset = 0; |
5873 var index; | 6330 var index; |
5874 var subPart; | 6331 var subPart; |
5875 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6332 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5876 pathOffset += 1; | 6333 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
5896 } | 6353 } |
5897 } | 6354 } |
5898 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6355 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5899 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); | 6356 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
5900 | 6357 |
5901 | 6358 |
5902 var h = { | 6359 var h = { |
5903 "content-type" : "application/json; charset=utf-8", | 6360 "content-type" : "application/json; charset=utf-8", |
5904 }; | 6361 }; |
5905 var resp = convert.JSON.encode(buildI18nLanguageListResponse()); | 6362 var resp = convert.JSON.encode(buildI18nLanguageListResponse()); |
5906 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6363 return new async.Future.value(stringResponse(200, h, resp)); |
5907 }), true); | 6364 }), true); |
5908 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nLanguag
eListResponse response) { | 6365 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nLanguag
eListResponse response) { |
5909 checkI18nLanguageListResponse(response); | 6366 checkI18nLanguageListResponse(response); |
5910 }))); | 6367 }))); |
5911 }); | 6368 }); |
5912 | 6369 |
5913 }); | 6370 }); |
5914 | 6371 |
5915 | 6372 |
5916 unittest.group("resource-I18nRegionsResourceApi", () { | 6373 unittest.group("resource-I18nRegionsResourceApi", () { |
5917 unittest.test("method--list", () { | 6374 unittest.test("method--list", () { |
5918 | 6375 |
5919 var mock = new common_test.HttpServerMock(); | 6376 var mock = new HttpServerMock(); |
5920 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; | 6377 api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; |
5921 var arg_part = "foo"; | 6378 var arg_part = "foo"; |
5922 var arg_hl = "foo"; | 6379 var arg_hl = "foo"; |
5923 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5924 var path = (req.url).path; | 6381 var path = (req.url).path; |
5925 var pathOffset = 0; | 6382 var pathOffset = 0; |
5926 var index; | 6383 var index; |
5927 var subPart; | 6384 var subPart; |
5928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6385 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5929 pathOffset += 1; | 6386 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
5949 } | 6406 } |
5950 } | 6407 } |
5951 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6408 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
5952 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); | 6409 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
5953 | 6410 |
5954 | 6411 |
5955 var h = { | 6412 var h = { |
5956 "content-type" : "application/json; charset=utf-8", | 6413 "content-type" : "application/json; charset=utf-8", |
5957 }; | 6414 }; |
5958 var resp = convert.JSON.encode(buildI18nRegionListResponse()); | 6415 var resp = convert.JSON.encode(buildI18nRegionListResponse()); |
5959 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6416 return new async.Future.value(stringResponse(200, h, resp)); |
5960 }), true); | 6417 }), true); |
5961 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nRegionL
istResponse response) { | 6418 res.list(arg_part, hl: arg_hl).then(unittest.expectAsync(((api.I18nRegionL
istResponse response) { |
5962 checkI18nRegionListResponse(response); | 6419 checkI18nRegionListResponse(response); |
5963 }))); | 6420 }))); |
5964 }); | 6421 }); |
5965 | 6422 |
5966 }); | 6423 }); |
5967 | 6424 |
5968 | 6425 |
5969 unittest.group("resource-LiveBroadcastsResourceApi", () { | 6426 unittest.group("resource-LiveBroadcastsResourceApi", () { |
5970 unittest.test("method--bind", () { | 6427 unittest.test("method--bind", () { |
5971 | 6428 |
5972 var mock = new common_test.HttpServerMock(); | 6429 var mock = new HttpServerMock(); |
5973 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6430 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
5974 var arg_id = "foo"; | 6431 var arg_id = "foo"; |
5975 var arg_part = "foo"; | 6432 var arg_part = "foo"; |
5976 var arg_onBehalfOfContentOwner = "foo"; | 6433 var arg_onBehalfOfContentOwner = "foo"; |
5977 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6434 var arg_onBehalfOfContentOwnerChannel = "foo"; |
5978 var arg_streamId = "foo"; | 6435 var arg_streamId = "foo"; |
5979 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5980 var path = (req.url).path; | 6437 var path = (req.url).path; |
5981 var pathOffset = 0; | 6438 var pathOffset = 0; |
5982 var index; | 6439 var index; |
(...skipping 25 matching lines...) Expand all Loading... |
6008 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6465 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6009 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6466 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6010 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6467 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6011 unittest.expect(queryMap["streamId"].first, unittest.equals(arg_streamId
)); | 6468 unittest.expect(queryMap["streamId"].first, unittest.equals(arg_streamId
)); |
6012 | 6469 |
6013 | 6470 |
6014 var h = { | 6471 var h = { |
6015 "content-type" : "application/json; charset=utf-8", | 6472 "content-type" : "application/json; charset=utf-8", |
6016 }; | 6473 }; |
6017 var resp = convert.JSON.encode(buildLiveBroadcast()); | 6474 var resp = convert.JSON.encode(buildLiveBroadcast()); |
6018 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6475 return new async.Future.value(stringResponse(200, h, resp)); |
6019 }), true); | 6476 }), true); |
6020 res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOw
ner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId:
arg_streamId).then(unittest.expectAsync(((api.LiveBroadcast response) { | 6477 res.bind(arg_id, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOw
ner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId:
arg_streamId).then(unittest.expectAsync(((api.LiveBroadcast response) { |
6021 checkLiveBroadcast(response); | 6478 checkLiveBroadcast(response); |
6022 }))); | 6479 }))); |
6023 }); | 6480 }); |
6024 | 6481 |
6025 unittest.test("method--control", () { | 6482 unittest.test("method--control", () { |
6026 | 6483 |
6027 var mock = new common_test.HttpServerMock(); | 6484 var mock = new HttpServerMock(); |
6028 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6485 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6029 var arg_id = "foo"; | 6486 var arg_id = "foo"; |
6030 var arg_part = "foo"; | 6487 var arg_part = "foo"; |
6031 var arg_displaySlate = true; | 6488 var arg_displaySlate = true; |
6032 var arg_offsetTimeMs = "foo"; | 6489 var arg_offsetTimeMs = "foo"; |
6033 var arg_onBehalfOfContentOwner = "foo"; | 6490 var arg_onBehalfOfContentOwner = "foo"; |
6034 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6491 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6035 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); | 6492 var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); |
6036 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6037 var path = (req.url).path; | 6494 var path = (req.url).path; |
(...skipping 29 matching lines...) Expand all Loading... |
6067 unittest.expect(queryMap["offsetTimeMs"].first, unittest.equals(arg_offs
etTimeMs)); | 6524 unittest.expect(queryMap["offsetTimeMs"].first, unittest.equals(arg_offs
etTimeMs)); |
6068 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6525 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6069 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6526 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6070 unittest.expect(core.DateTime.parse(queryMap["walltime"].first), unittes
t.equals(arg_walltime)); | 6527 unittest.expect(core.DateTime.parse(queryMap["walltime"].first), unittes
t.equals(arg_walltime)); |
6071 | 6528 |
6072 | 6529 |
6073 var h = { | 6530 var h = { |
6074 "content-type" : "application/json; charset=utf-8", | 6531 "content-type" : "application/json; charset=utf-8", |
6075 }; | 6532 }; |
6076 var resp = convert.JSON.encode(buildLiveBroadcast()); | 6533 var resp = convert.JSON.encode(buildLiveBroadcast()); |
6077 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6534 return new async.Future.value(stringResponse(200, h, resp)); |
6078 }), true); | 6535 }), true); |
6079 res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs
: arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalf
OfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime
).then(unittest.expectAsync(((api.LiveBroadcast response) { | 6536 res.control(arg_id, arg_part, displaySlate: arg_displaySlate, offsetTimeMs
: arg_offsetTimeMs, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalf
OfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, walltime: arg_walltime
).then(unittest.expectAsync(((api.LiveBroadcast response) { |
6080 checkLiveBroadcast(response); | 6537 checkLiveBroadcast(response); |
6081 }))); | 6538 }))); |
6082 }); | 6539 }); |
6083 | 6540 |
6084 unittest.test("method--delete", () { | 6541 unittest.test("method--delete", () { |
6085 | 6542 |
6086 var mock = new common_test.HttpServerMock(); | 6543 var mock = new HttpServerMock(); |
6087 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6544 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6088 var arg_id = "foo"; | 6545 var arg_id = "foo"; |
6089 var arg_onBehalfOfContentOwner = "foo"; | 6546 var arg_onBehalfOfContentOwner = "foo"; |
6090 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6547 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6548 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6092 var path = (req.url).path; | 6549 var path = (req.url).path; |
6093 var pathOffset = 0; | 6550 var pathOffset = 0; |
6094 var index; | 6551 var index; |
6095 var subPart; | 6552 var subPart; |
6096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6553 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 21 matching lines...) Expand all Loading... |
6118 } | 6575 } |
6119 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6576 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6120 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6577 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6121 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6578 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6122 | 6579 |
6123 | 6580 |
6124 var h = { | 6581 var h = { |
6125 "content-type" : "application/json; charset=utf-8", | 6582 "content-type" : "application/json; charset=utf-8", |
6126 }; | 6583 }; |
6127 var resp = ""; | 6584 var resp = ""; |
6128 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6585 return new async.Future.value(stringResponse(200, h, resp)); |
6129 }), true); | 6586 }), true); |
6130 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB
ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp
ectAsync((_) {})); | 6587 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB
ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp
ectAsync((_) {})); |
6131 }); | 6588 }); |
6132 | 6589 |
6133 unittest.test("method--insert", () { | 6590 unittest.test("method--insert", () { |
6134 | 6591 |
6135 var mock = new common_test.HttpServerMock(); | 6592 var mock = new HttpServerMock(); |
6136 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6593 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6137 var arg_request = buildLiveBroadcast(); | 6594 var arg_request = buildLiveBroadcast(); |
6138 var arg_part = "foo"; | 6595 var arg_part = "foo"; |
6139 var arg_onBehalfOfContentOwner = "foo"; | 6596 var arg_onBehalfOfContentOwner = "foo"; |
6140 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6597 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6141 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6598 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6142 var obj = new api.LiveBroadcast.fromJson(json); | 6599 var obj = new api.LiveBroadcast.fromJson(json); |
6143 checkLiveBroadcast(obj); | 6600 checkLiveBroadcast(obj); |
6144 | 6601 |
6145 var path = (req.url).path; | 6602 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
6171 } | 6628 } |
6172 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6629 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6173 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6630 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6174 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6631 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6175 | 6632 |
6176 | 6633 |
6177 var h = { | 6634 var h = { |
6178 "content-type" : "application/json; charset=utf-8", | 6635 "content-type" : "application/json; charset=utf-8", |
6179 }; | 6636 }; |
6180 var resp = convert.JSON.encode(buildLiveBroadcast()); | 6637 var resp = convert.JSON.encode(buildLiveBroadcast()); |
6181 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6638 return new async.Future.value(stringResponse(200, h, resp)); |
6182 }), true); | 6639 }), true); |
6183 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveBroadcast response) { | 6640 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveBroadcast response) { |
6184 checkLiveBroadcast(response); | 6641 checkLiveBroadcast(response); |
6185 }))); | 6642 }))); |
6186 }); | 6643 }); |
6187 | 6644 |
6188 unittest.test("method--list", () { | 6645 unittest.test("method--list", () { |
6189 | 6646 |
6190 var mock = new common_test.HttpServerMock(); | 6647 var mock = new HttpServerMock(); |
6191 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6648 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6192 var arg_part = "foo"; | 6649 var arg_part = "foo"; |
6193 var arg_broadcastStatus = "foo"; | 6650 var arg_broadcastStatus = "foo"; |
6194 var arg_id = "foo"; | 6651 var arg_id = "foo"; |
6195 var arg_maxResults = 42; | 6652 var arg_maxResults = 42; |
6196 var arg_mine = true; | 6653 var arg_mine = true; |
6197 var arg_onBehalfOfContentOwner = "foo"; | 6654 var arg_onBehalfOfContentOwner = "foo"; |
6198 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6655 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6199 var arg_pageToken = "foo"; | 6656 var arg_pageToken = "foo"; |
6200 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6232 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); | 6689 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); |
6233 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6690 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6234 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6691 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6235 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6692 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6236 | 6693 |
6237 | 6694 |
6238 var h = { | 6695 var h = { |
6239 "content-type" : "application/json; charset=utf-8", | 6696 "content-type" : "application/json; charset=utf-8", |
6240 }; | 6697 }; |
6241 var resp = convert.JSON.encode(buildLiveBroadcastListResponse()); | 6698 var resp = convert.JSON.encode(buildLiveBroadcastListResponse()); |
6242 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6699 return new async.Future.value(stringResponse(200, h, resp)); |
6243 }), true); | 6700 }), true); |
6244 res.list(arg_part, broadcastStatus: arg_broadcastStatus, id: arg_id, maxRe
sults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfCon
tentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pag
eToken: arg_pageToken).then(unittest.expectAsync(((api.LiveBroadcastListResponse
response) { | 6701 res.list(arg_part, broadcastStatus: arg_broadcastStatus, id: arg_id, maxRe
sults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfCon
tentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pag
eToken: arg_pageToken).then(unittest.expectAsync(((api.LiveBroadcastListResponse
response) { |
6245 checkLiveBroadcastListResponse(response); | 6702 checkLiveBroadcastListResponse(response); |
6246 }))); | 6703 }))); |
6247 }); | 6704 }); |
6248 | 6705 |
6249 unittest.test("method--transition", () { | 6706 unittest.test("method--transition", () { |
6250 | 6707 |
6251 var mock = new common_test.HttpServerMock(); | 6708 var mock = new HttpServerMock(); |
6252 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6709 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6253 var arg_broadcastStatus = "foo"; | 6710 var arg_broadcastStatus = "foo"; |
6254 var arg_id = "foo"; | 6711 var arg_id = "foo"; |
6255 var arg_part = "foo"; | 6712 var arg_part = "foo"; |
6256 var arg_onBehalfOfContentOwner = "foo"; | 6713 var arg_onBehalfOfContentOwner = "foo"; |
6257 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6714 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6258 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6259 var path = (req.url).path; | 6716 var path = (req.url).path; |
6260 var pathOffset = 0; | 6717 var pathOffset = 0; |
6261 var index; | 6718 var index; |
(...skipping 25 matching lines...) Expand all Loading... |
6287 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6744 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6288 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6745 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6289 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6746 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6290 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6747 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6291 | 6748 |
6292 | 6749 |
6293 var h = { | 6750 var h = { |
6294 "content-type" : "application/json; charset=utf-8", | 6751 "content-type" : "application/json; charset=utf-8", |
6295 }; | 6752 }; |
6296 var resp = convert.JSON.encode(buildLiveBroadcast()); | 6753 var resp = convert.JSON.encode(buildLiveBroadcast()); |
6297 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6754 return new async.Future.value(stringResponse(200, h, resp)); |
6298 }), true); | 6755 }), true); |
6299 res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwn
er: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCon
tentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { | 6756 res.transition(arg_broadcastStatus, arg_id, arg_part, onBehalfOfContentOwn
er: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfCon
tentOwnerChannel).then(unittest.expectAsync(((api.LiveBroadcast response) { |
6300 checkLiveBroadcast(response); | 6757 checkLiveBroadcast(response); |
6301 }))); | 6758 }))); |
6302 }); | 6759 }); |
6303 | 6760 |
6304 unittest.test("method--update", () { | 6761 unittest.test("method--update", () { |
6305 | 6762 |
6306 var mock = new common_test.HttpServerMock(); | 6763 var mock = new HttpServerMock(); |
6307 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; | 6764 api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcast
s; |
6308 var arg_request = buildLiveBroadcast(); | 6765 var arg_request = buildLiveBroadcast(); |
6309 var arg_part = "foo"; | 6766 var arg_part = "foo"; |
6310 var arg_onBehalfOfContentOwner = "foo"; | 6767 var arg_onBehalfOfContentOwner = "foo"; |
6311 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6768 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6313 var obj = new api.LiveBroadcast.fromJson(json); | 6770 var obj = new api.LiveBroadcast.fromJson(json); |
6314 checkLiveBroadcast(obj); | 6771 checkLiveBroadcast(obj); |
6315 | 6772 |
6316 var path = (req.url).path; | 6773 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
6342 } | 6799 } |
6343 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6800 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6344 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6801 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6345 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6802 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6346 | 6803 |
6347 | 6804 |
6348 var h = { | 6805 var h = { |
6349 "content-type" : "application/json; charset=utf-8", | 6806 "content-type" : "application/json; charset=utf-8", |
6350 }; | 6807 }; |
6351 var resp = convert.JSON.encode(buildLiveBroadcast()); | 6808 var resp = convert.JSON.encode(buildLiveBroadcast()); |
6352 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6809 return new async.Future.value(stringResponse(200, h, resp)); |
6353 }), true); | 6810 }), true); |
6354 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveBroadcast response) { | 6811 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveBroadcast response) { |
6355 checkLiveBroadcast(response); | 6812 checkLiveBroadcast(response); |
6356 }))); | 6813 }))); |
6357 }); | 6814 }); |
6358 | 6815 |
6359 }); | 6816 }); |
6360 | 6817 |
6361 | 6818 |
6362 unittest.group("resource-LiveStreamsResourceApi", () { | 6819 unittest.group("resource-LiveStreamsResourceApi", () { |
6363 unittest.test("method--delete", () { | 6820 unittest.test("method--delete", () { |
6364 | 6821 |
6365 var mock = new common_test.HttpServerMock(); | 6822 var mock = new HttpServerMock(); |
6366 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; | 6823 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; |
6367 var arg_id = "foo"; | 6824 var arg_id = "foo"; |
6368 var arg_onBehalfOfContentOwner = "foo"; | 6825 var arg_onBehalfOfContentOwner = "foo"; |
6369 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6826 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6827 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6371 var path = (req.url).path; | 6828 var path = (req.url).path; |
6372 var pathOffset = 0; | 6829 var pathOffset = 0; |
6373 var index; | 6830 var index; |
6374 var subPart; | 6831 var subPart; |
6375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 21 matching lines...) Expand all Loading... |
6397 } | 6854 } |
6398 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 6855 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6399 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6856 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6400 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6857 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6401 | 6858 |
6402 | 6859 |
6403 var h = { | 6860 var h = { |
6404 "content-type" : "application/json; charset=utf-8", | 6861 "content-type" : "application/json; charset=utf-8", |
6405 }; | 6862 }; |
6406 var resp = ""; | 6863 var resp = ""; |
6407 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6864 return new async.Future.value(stringResponse(200, h, resp)); |
6408 }), true); | 6865 }), true); |
6409 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB
ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp
ectAsync((_) {})); | 6866 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onB
ehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).then(unittest.exp
ectAsync((_) {})); |
6410 }); | 6867 }); |
6411 | 6868 |
6412 unittest.test("method--insert", () { | 6869 unittest.test("method--insert", () { |
6413 | 6870 |
6414 var mock = new common_test.HttpServerMock(); | 6871 var mock = new HttpServerMock(); |
6415 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; | 6872 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; |
6416 var arg_request = buildLiveStream(); | 6873 var arg_request = buildLiveStream(); |
6417 var arg_part = "foo"; | 6874 var arg_part = "foo"; |
6418 var arg_onBehalfOfContentOwner = "foo"; | 6875 var arg_onBehalfOfContentOwner = "foo"; |
6419 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6876 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6420 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6877 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6421 var obj = new api.LiveStream.fromJson(json); | 6878 var obj = new api.LiveStream.fromJson(json); |
6422 checkLiveStream(obj); | 6879 checkLiveStream(obj); |
6423 | 6880 |
6424 var path = (req.url).path; | 6881 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
6450 } | 6907 } |
6451 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 6908 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6452 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6909 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6453 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6910 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6454 | 6911 |
6455 | 6912 |
6456 var h = { | 6913 var h = { |
6457 "content-type" : "application/json; charset=utf-8", | 6914 "content-type" : "application/json; charset=utf-8", |
6458 }; | 6915 }; |
6459 var resp = convert.JSON.encode(buildLiveStream()); | 6916 var resp = convert.JSON.encode(buildLiveStream()); |
6460 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6917 return new async.Future.value(stringResponse(200, h, resp)); |
6461 }), true); | 6918 }), true); |
6462 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveStream response) { | 6919 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveStream response) { |
6463 checkLiveStream(response); | 6920 checkLiveStream(response); |
6464 }))); | 6921 }))); |
6465 }); | 6922 }); |
6466 | 6923 |
6467 unittest.test("method--list", () { | 6924 unittest.test("method--list", () { |
6468 | 6925 |
6469 var mock = new common_test.HttpServerMock(); | 6926 var mock = new HttpServerMock(); |
6470 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; | 6927 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; |
6471 var arg_part = "foo"; | 6928 var arg_part = "foo"; |
6472 var arg_id = "foo"; | 6929 var arg_id = "foo"; |
6473 var arg_maxResults = 42; | 6930 var arg_maxResults = 42; |
6474 var arg_mine = true; | 6931 var arg_mine = true; |
6475 var arg_onBehalfOfContentOwner = "foo"; | 6932 var arg_onBehalfOfContentOwner = "foo"; |
6476 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6933 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6477 var arg_pageToken = "foo"; | 6934 var arg_pageToken = "foo"; |
6478 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6935 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6479 var path = (req.url).path; | 6936 var path = (req.url).path; |
(...skipping 29 matching lines...) Expand all Loading... |
6509 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); | 6966 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); |
6510 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 6967 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6511 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 6968 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6512 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6969 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6513 | 6970 |
6514 | 6971 |
6515 var h = { | 6972 var h = { |
6516 "content-type" : "application/json; charset=utf-8", | 6973 "content-type" : "application/json; charset=utf-8", |
6517 }; | 6974 }; |
6518 var resp = convert.JSON.encode(buildLiveStreamListResponse()); | 6975 var resp = convert.JSON.encode(buildLiveStreamListResponse()); |
6519 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6976 return new async.Future.value(stringResponse(200, h, resp)); |
6520 }), true); | 6977 }), true); |
6521 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine,
onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChann
el: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.e
xpectAsync(((api.LiveStreamListResponse response) { | 6978 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, mine: arg_mine,
onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChann
el: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken).then(unittest.e
xpectAsync(((api.LiveStreamListResponse response) { |
6522 checkLiveStreamListResponse(response); | 6979 checkLiveStreamListResponse(response); |
6523 }))); | 6980 }))); |
6524 }); | 6981 }); |
6525 | 6982 |
6526 unittest.test("method--update", () { | 6983 unittest.test("method--update", () { |
6527 | 6984 |
6528 var mock = new common_test.HttpServerMock(); | 6985 var mock = new HttpServerMock(); |
6529 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; | 6986 api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; |
6530 var arg_request = buildLiveStream(); | 6987 var arg_request = buildLiveStream(); |
6531 var arg_part = "foo"; | 6988 var arg_part = "foo"; |
6532 var arg_onBehalfOfContentOwner = "foo"; | 6989 var arg_onBehalfOfContentOwner = "foo"; |
6533 var arg_onBehalfOfContentOwnerChannel = "foo"; | 6990 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6991 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6535 var obj = new api.LiveStream.fromJson(json); | 6992 var obj = new api.LiveStream.fromJson(json); |
6536 checkLiveStream(obj); | 6993 checkLiveStream(obj); |
6537 | 6994 |
6538 var path = (req.url).path; | 6995 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
6564 } | 7021 } |
6565 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7022 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6566 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7023 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6567 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 7024 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6568 | 7025 |
6569 | 7026 |
6570 var h = { | 7027 var h = { |
6571 "content-type" : "application/json; charset=utf-8", | 7028 "content-type" : "application/json; charset=utf-8", |
6572 }; | 7029 }; |
6573 var resp = convert.JSON.encode(buildLiveStream()); | 7030 var resp = convert.JSON.encode(buildLiveStream()); |
6574 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7031 return new async.Future.value(stringResponse(200, h, resp)); |
6575 }), true); | 7032 }), true); |
6576 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveStream response) { | 7033 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.LiveStream response) { |
6577 checkLiveStream(response); | 7034 checkLiveStream(response); |
6578 }))); | 7035 }))); |
6579 }); | 7036 }); |
6580 | 7037 |
6581 }); | 7038 }); |
6582 | 7039 |
6583 | 7040 |
6584 unittest.group("resource-PlaylistItemsResourceApi", () { | 7041 unittest.group("resource-PlaylistItemsResourceApi", () { |
6585 unittest.test("method--delete", () { | 7042 unittest.test("method--delete", () { |
6586 | 7043 |
6587 var mock = new common_test.HttpServerMock(); | 7044 var mock = new HttpServerMock(); |
6588 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; | 7045 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; |
6589 var arg_id = "foo"; | 7046 var arg_id = "foo"; |
6590 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6591 var path = (req.url).path; | 7048 var path = (req.url).path; |
6592 var pathOffset = 0; | 7049 var pathOffset = 0; |
6593 var index; | 7050 var index; |
6594 var subPart; | 7051 var subPart; |
6595 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7052 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6596 pathOffset += 1; | 7053 pathOffset += 1; |
6597 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); | 7054 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
(...skipping 17 matching lines...) Expand all Loading... |
6615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7072 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6616 } | 7073 } |
6617 } | 7074 } |
6618 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7075 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6619 | 7076 |
6620 | 7077 |
6621 var h = { | 7078 var h = { |
6622 "content-type" : "application/json; charset=utf-8", | 7079 "content-type" : "application/json; charset=utf-8", |
6623 }; | 7080 }; |
6624 var resp = ""; | 7081 var resp = ""; |
6625 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7082 return new async.Future.value(stringResponse(200, h, resp)); |
6626 }), true); | 7083 }), true); |
6627 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 7084 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
6628 }); | 7085 }); |
6629 | 7086 |
6630 unittest.test("method--insert", () { | 7087 unittest.test("method--insert", () { |
6631 | 7088 |
6632 var mock = new common_test.HttpServerMock(); | 7089 var mock = new HttpServerMock(); |
6633 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; | 7090 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; |
6634 var arg_request = buildPlaylistItem(); | 7091 var arg_request = buildPlaylistItem(); |
6635 var arg_part = "foo"; | 7092 var arg_part = "foo"; |
6636 var arg_onBehalfOfContentOwner = "foo"; | 7093 var arg_onBehalfOfContentOwner = "foo"; |
6637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7094 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6638 var obj = new api.PlaylistItem.fromJson(json); | 7095 var obj = new api.PlaylistItem.fromJson(json); |
6639 checkPlaylistItem(obj); | 7096 checkPlaylistItem(obj); |
6640 | 7097 |
6641 var path = (req.url).path; | 7098 var path = (req.url).path; |
6642 var pathOffset = 0; | 7099 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
6666 } | 7123 } |
6667 } | 7124 } |
6668 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7125 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6669 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7126 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6670 | 7127 |
6671 | 7128 |
6672 var h = { | 7129 var h = { |
6673 "content-type" : "application/json; charset=utf-8", | 7130 "content-type" : "application/json; charset=utf-8", |
6674 }; | 7131 }; |
6675 var resp = convert.JSON.encode(buildPlaylistItem()); | 7132 var resp = convert.JSON.encode(buildPlaylistItem()); |
6676 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7133 return new async.Future.value(stringResponse(200, h, resp)); |
6677 }), true); | 7134 }), true); |
6678 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { | 7135 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { |
6679 checkPlaylistItem(response); | 7136 checkPlaylistItem(response); |
6680 }))); | 7137 }))); |
6681 }); | 7138 }); |
6682 | 7139 |
6683 unittest.test("method--list", () { | 7140 unittest.test("method--list", () { |
6684 | 7141 |
6685 var mock = new common_test.HttpServerMock(); | 7142 var mock = new HttpServerMock(); |
6686 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; | 7143 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; |
6687 var arg_part = "foo"; | 7144 var arg_part = "foo"; |
6688 var arg_id = "foo"; | 7145 var arg_id = "foo"; |
6689 var arg_maxResults = 42; | 7146 var arg_maxResults = 42; |
6690 var arg_onBehalfOfContentOwner = "foo"; | 7147 var arg_onBehalfOfContentOwner = "foo"; |
6691 var arg_pageToken = "foo"; | 7148 var arg_pageToken = "foo"; |
6692 var arg_playlistId = "foo"; | 7149 var arg_playlistId = "foo"; |
6693 var arg_videoId = "foo"; | 7150 var arg_videoId = "foo"; |
6694 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6695 var path = (req.url).path; | 7152 var path = (req.url).path; |
(...skipping 29 matching lines...) Expand all Loading... |
6725 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7182 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6726 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7183 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6727 unittest.expect(queryMap["playlistId"].first, unittest.equals(arg_playli
stId)); | 7184 unittest.expect(queryMap["playlistId"].first, unittest.equals(arg_playli
stId)); |
6728 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; | 7185 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; |
6729 | 7186 |
6730 | 7187 |
6731 var h = { | 7188 var h = { |
6732 "content-type" : "application/json; charset=utf-8", | 7189 "content-type" : "application/json; charset=utf-8", |
6733 }; | 7190 }; |
6734 var resp = convert.JSON.encode(buildPlaylistItemListResponse()); | 7191 var resp = convert.JSON.encode(buildPlaylistItemListResponse()); |
6735 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7192 return new async.Future.value(stringResponse(200, h, resp)); |
6736 }), true); | 7193 }), true); |
6737 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfConte
ntOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_p
laylistId, videoId: arg_videoId).then(unittest.expectAsync(((api.PlaylistItemLis
tResponse response) { | 7194 res.list(arg_part, id: arg_id, maxResults: arg_maxResults, onBehalfOfConte
ntOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, playlistId: arg_p
laylistId, videoId: arg_videoId).then(unittest.expectAsync(((api.PlaylistItemLis
tResponse response) { |
6738 checkPlaylistItemListResponse(response); | 7195 checkPlaylistItemListResponse(response); |
6739 }))); | 7196 }))); |
6740 }); | 7197 }); |
6741 | 7198 |
6742 unittest.test("method--update", () { | 7199 unittest.test("method--update", () { |
6743 | 7200 |
6744 var mock = new common_test.HttpServerMock(); | 7201 var mock = new HttpServerMock(); |
6745 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; | 7202 api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; |
6746 var arg_request = buildPlaylistItem(); | 7203 var arg_request = buildPlaylistItem(); |
6747 var arg_part = "foo"; | 7204 var arg_part = "foo"; |
6748 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7205 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6749 var obj = new api.PlaylistItem.fromJson(json); | 7206 var obj = new api.PlaylistItem.fromJson(json); |
6750 checkPlaylistItem(obj); | 7207 checkPlaylistItem(obj); |
6751 | 7208 |
6752 var path = (req.url).path; | 7209 var path = (req.url).path; |
6753 var pathOffset = 0; | 7210 var pathOffset = 0; |
6754 var index; | 7211 var index; |
(...skipping 21 matching lines...) Expand all Loading... |
6776 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7233 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6777 } | 7234 } |
6778 } | 7235 } |
6779 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7236 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6780 | 7237 |
6781 | 7238 |
6782 var h = { | 7239 var h = { |
6783 "content-type" : "application/json; charset=utf-8", | 7240 "content-type" : "application/json; charset=utf-8", |
6784 }; | 7241 }; |
6785 var resp = convert.JSON.encode(buildPlaylistItem()); | 7242 var resp = convert.JSON.encode(buildPlaylistItem()); |
6786 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7243 return new async.Future.value(stringResponse(200, h, resp)); |
6787 }), true); | 7244 }), true); |
6788 res.update(arg_request, arg_part).then(unittest.expectAsync(((api.Playlist
Item response) { | 7245 res.update(arg_request, arg_part).then(unittest.expectAsync(((api.Playlist
Item response) { |
6789 checkPlaylistItem(response); | 7246 checkPlaylistItem(response); |
6790 }))); | 7247 }))); |
6791 }); | 7248 }); |
6792 | 7249 |
6793 }); | 7250 }); |
6794 | 7251 |
6795 | 7252 |
6796 unittest.group("resource-PlaylistsResourceApi", () { | 7253 unittest.group("resource-PlaylistsResourceApi", () { |
6797 unittest.test("method--delete", () { | 7254 unittest.test("method--delete", () { |
6798 | 7255 |
6799 var mock = new common_test.HttpServerMock(); | 7256 var mock = new HttpServerMock(); |
6800 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; | 7257 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; |
6801 var arg_id = "foo"; | 7258 var arg_id = "foo"; |
6802 var arg_onBehalfOfContentOwner = "foo"; | 7259 var arg_onBehalfOfContentOwner = "foo"; |
6803 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6804 var path = (req.url).path; | 7261 var path = (req.url).path; |
6805 var pathOffset = 0; | 7262 var pathOffset = 0; |
6806 var index; | 7263 var index; |
6807 var subPart; | 7264 var subPart; |
6808 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6809 pathOffset += 1; | 7266 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
6829 } | 7286 } |
6830 } | 7287 } |
6831 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7288 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6832 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7289 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6833 | 7290 |
6834 | 7291 |
6835 var h = { | 7292 var h = { |
6836 "content-type" : "application/json; charset=utf-8", | 7293 "content-type" : "application/json; charset=utf-8", |
6837 }; | 7294 }; |
6838 var resp = ""; | 7295 var resp = ""; |
6839 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7296 return new async.Future.value(stringResponse(200, h, resp)); |
6840 }), true); | 7297 }), true); |
6841 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); | 7298 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); |
6842 }); | 7299 }); |
6843 | 7300 |
6844 unittest.test("method--insert", () { | 7301 unittest.test("method--insert", () { |
6845 | 7302 |
6846 var mock = new common_test.HttpServerMock(); | 7303 var mock = new HttpServerMock(); |
6847 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; | 7304 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; |
6848 var arg_request = buildPlaylist(); | 7305 var arg_request = buildPlaylist(); |
6849 var arg_part = "foo"; | 7306 var arg_part = "foo"; |
6850 var arg_onBehalfOfContentOwner = "foo"; | 7307 var arg_onBehalfOfContentOwner = "foo"; |
6851 var arg_onBehalfOfContentOwnerChannel = "foo"; | 7308 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6853 var obj = new api.Playlist.fromJson(json); | 7310 var obj = new api.Playlist.fromJson(json); |
6854 checkPlaylist(obj); | 7311 checkPlaylist(obj); |
6855 | 7312 |
6856 var path = (req.url).path; | 7313 var path = (req.url).path; |
(...skipping 25 matching lines...) Expand all Loading... |
6882 } | 7339 } |
6883 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7340 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6884 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7341 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6885 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 7342 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6886 | 7343 |
6887 | 7344 |
6888 var h = { | 7345 var h = { |
6889 "content-type" : "application/json; charset=utf-8", | 7346 "content-type" : "application/json; charset=utf-8", |
6890 }; | 7347 }; |
6891 var resp = convert.JSON.encode(buildPlaylist()); | 7348 var resp = convert.JSON.encode(buildPlaylist()); |
6892 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7349 return new async.Future.value(stringResponse(200, h, resp)); |
6893 }), true); | 7350 }), true); |
6894 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.Playlist response) { | 7351 res.insert(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel).th
en(unittest.expectAsync(((api.Playlist response) { |
6895 checkPlaylist(response); | 7352 checkPlaylist(response); |
6896 }))); | 7353 }))); |
6897 }); | 7354 }); |
6898 | 7355 |
6899 unittest.test("method--list", () { | 7356 unittest.test("method--list", () { |
6900 | 7357 |
6901 var mock = new common_test.HttpServerMock(); | 7358 var mock = new HttpServerMock(); |
6902 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; | 7359 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; |
6903 var arg_part = "foo"; | 7360 var arg_part = "foo"; |
6904 var arg_channelId = "foo"; | 7361 var arg_channelId = "foo"; |
| 7362 var arg_hl = "foo"; |
6905 var arg_id = "foo"; | 7363 var arg_id = "foo"; |
6906 var arg_maxResults = 42; | 7364 var arg_maxResults = 42; |
6907 var arg_mine = true; | 7365 var arg_mine = true; |
6908 var arg_onBehalfOfContentOwner = "foo"; | 7366 var arg_onBehalfOfContentOwner = "foo"; |
6909 var arg_onBehalfOfContentOwnerChannel = "foo"; | 7367 var arg_onBehalfOfContentOwnerChannel = "foo"; |
6910 var arg_pageToken = "foo"; | 7368 var arg_pageToken = "foo"; |
6911 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7369 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6912 var path = (req.url).path; | 7370 var path = (req.url).path; |
6913 var pathOffset = 0; | 7371 var pathOffset = 0; |
6914 var index; | 7372 var index; |
(...skipping 16 matching lines...) Expand all Loading... |
6931 throw new core.ArgumentError("Invalid boolean: $n"); | 7389 throw new core.ArgumentError("Invalid boolean: $n"); |
6932 } | 7390 } |
6933 if (query.length > 0) { | 7391 if (query.length > 0) { |
6934 for (var part in query.split("&")) { | 7392 for (var part in query.split("&")) { |
6935 var keyvalue = part.split("="); | 7393 var keyvalue = part.split("="); |
6936 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6937 } | 7395 } |
6938 } | 7396 } |
6939 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7397 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6940 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); | 7398 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); |
| 7399 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
6941 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7400 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
6942 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7401 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
6943 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); | 7402 unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); |
6944 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7403 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
6945 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 7404 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
6946 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7405 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6947 | 7406 |
6948 | 7407 |
6949 var h = { | 7408 var h = { |
6950 "content-type" : "application/json; charset=utf-8", | 7409 "content-type" : "application/json; charset=utf-8", |
6951 }; | 7410 }; |
6952 var resp = convert.JSON.encode(buildPlaylistListResponse()); | 7411 var resp = convert.JSON.encode(buildPlaylistListResponse()); |
6953 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7412 return new async.Future.value(stringResponse(200, h, resp)); |
6954 }), true); | 7413 }), true); |
6955 res.list(arg_part, channelId: arg_channelId, id: arg_id, maxResults: arg_m
axResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, o
nBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.PlaylistListResponse response) { | 7414 res.list(arg_part, channelId: arg_channelId, hl: arg_hl, id: arg_id, maxRe
sults: arg_maxResults, mine: arg_mine, onBehalfOfContentOwner: arg_onBehalfOfCon
tentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pag
eToken: arg_pageToken).then(unittest.expectAsync(((api.PlaylistListResponse resp
onse) { |
6956 checkPlaylistListResponse(response); | 7415 checkPlaylistListResponse(response); |
6957 }))); | 7416 }))); |
6958 }); | 7417 }); |
6959 | 7418 |
6960 unittest.test("method--update", () { | 7419 unittest.test("method--update", () { |
6961 | 7420 |
6962 var mock = new common_test.HttpServerMock(); | 7421 var mock = new HttpServerMock(); |
6963 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; | 7422 api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; |
6964 var arg_request = buildPlaylist(); | 7423 var arg_request = buildPlaylist(); |
6965 var arg_part = "foo"; | 7424 var arg_part = "foo"; |
6966 var arg_onBehalfOfContentOwner = "foo"; | 7425 var arg_onBehalfOfContentOwner = "foo"; |
6967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7426 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6968 var obj = new api.Playlist.fromJson(json); | 7427 var obj = new api.Playlist.fromJson(json); |
6969 checkPlaylist(obj); | 7428 checkPlaylist(obj); |
6970 | 7429 |
6971 var path = (req.url).path; | 7430 var path = (req.url).path; |
6972 var pathOffset = 0; | 7431 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
6996 } | 7455 } |
6997 } | 7456 } |
6998 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7457 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
6999 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7458 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7000 | 7459 |
7001 | 7460 |
7002 var h = { | 7461 var h = { |
7003 "content-type" : "application/json; charset=utf-8", | 7462 "content-type" : "application/json; charset=utf-8", |
7004 }; | 7463 }; |
7005 var resp = convert.JSON.encode(buildPlaylist()); | 7464 var resp = convert.JSON.encode(buildPlaylist()); |
7006 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7465 return new async.Future.value(stringResponse(200, h, resp)); |
7007 }), true); | 7466 }), true); |
7008 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Playlist response) { | 7467 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Playlist response) { |
7009 checkPlaylist(response); | 7468 checkPlaylist(response); |
7010 }))); | 7469 }))); |
7011 }); | 7470 }); |
7012 | 7471 |
7013 }); | 7472 }); |
7014 | 7473 |
7015 | 7474 |
7016 unittest.group("resource-SearchResourceApi", () { | 7475 unittest.group("resource-SearchResourceApi", () { |
7017 unittest.test("method--list", () { | 7476 unittest.test("method--list", () { |
7018 | 7477 |
7019 var mock = new common_test.HttpServerMock(); | 7478 var mock = new HttpServerMock(); |
7020 api.SearchResourceApi res = new api.YoutubeApi(mock).search; | 7479 api.SearchResourceApi res = new api.YoutubeApi(mock).search; |
7021 var arg_part = "foo"; | 7480 var arg_part = "foo"; |
7022 var arg_channelId = "foo"; | 7481 var arg_channelId = "foo"; |
7023 var arg_channelType = "foo"; | 7482 var arg_channelType = "foo"; |
7024 var arg_eventType = "foo"; | 7483 var arg_eventType = "foo"; |
7025 var arg_forContentOwner = true; | 7484 var arg_forContentOwner = true; |
| 7485 var arg_forDeveloper = true; |
7026 var arg_forMine = true; | 7486 var arg_forMine = true; |
7027 var arg_location = "foo"; | 7487 var arg_location = "foo"; |
7028 var arg_locationRadius = "foo"; | 7488 var arg_locationRadius = "foo"; |
7029 var arg_maxResults = 42; | 7489 var arg_maxResults = 42; |
7030 var arg_onBehalfOfContentOwner = "foo"; | 7490 var arg_onBehalfOfContentOwner = "foo"; |
7031 var arg_order = "foo"; | 7491 var arg_order = "foo"; |
7032 var arg_pageToken = "foo"; | 7492 var arg_pageToken = "foo"; |
7033 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 7493 var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
7034 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 7494 var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
7035 var arg_q = "foo"; | 7495 var arg_q = "foo"; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7074 for (var part in query.split("&")) { | 7534 for (var part in query.split("&")) { |
7075 var keyvalue = part.split("="); | 7535 var keyvalue = part.split("="); |
7076 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7536 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
7077 } | 7537 } |
7078 } | 7538 } |
7079 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7539 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
7080 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); | 7540 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); |
7081 unittest.expect(queryMap["channelType"].first, unittest.equals(arg_chann
elType)); | 7541 unittest.expect(queryMap["channelType"].first, unittest.equals(arg_chann
elType)); |
7082 unittest.expect(queryMap["eventType"].first, unittest.equals(arg_eventTy
pe)); | 7542 unittest.expect(queryMap["eventType"].first, unittest.equals(arg_eventTy
pe)); |
7083 unittest.expect(queryMap["forContentOwner"].first, unittest.equals("$arg
_forContentOwner")); | 7543 unittest.expect(queryMap["forContentOwner"].first, unittest.equals("$arg
_forContentOwner")); |
| 7544 unittest.expect(queryMap["forDeveloper"].first, unittest.equals("$arg_fo
rDeveloper")); |
7084 unittest.expect(queryMap["forMine"].first, unittest.equals("$arg_forMine
")); | 7545 unittest.expect(queryMap["forMine"].first, unittest.equals("$arg_forMine
")); |
7085 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 7546 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
7086 unittest.expect(queryMap["locationRadius"].first, unittest.equals(arg_lo
cationRadius)); | 7547 unittest.expect(queryMap["locationRadius"].first, unittest.equals(arg_lo
cationRadius)); |
7087 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7548 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
7088 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7549 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7089 unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); | 7550 unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); |
7090 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7551 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
7091 unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), u
nittest.equals(arg_publishedAfter)); | 7552 unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), u
nittest.equals(arg_publishedAfter)); |
7092 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first),
unittest.equals(arg_publishedBefore)); | 7553 unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first),
unittest.equals(arg_publishedBefore)); |
7093 unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); | 7554 unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); |
(...skipping 11 matching lines...) Expand all Loading... |
7105 unittest.expect(queryMap["videoEmbeddable"].first, unittest.equals(arg_v
ideoEmbeddable)); | 7566 unittest.expect(queryMap["videoEmbeddable"].first, unittest.equals(arg_v
ideoEmbeddable)); |
7106 unittest.expect(queryMap["videoLicense"].first, unittest.equals(arg_vide
oLicense)); | 7567 unittest.expect(queryMap["videoLicense"].first, unittest.equals(arg_vide
oLicense)); |
7107 unittest.expect(queryMap["videoSyndicated"].first, unittest.equals(arg_v
ideoSyndicated)); | 7568 unittest.expect(queryMap["videoSyndicated"].first, unittest.equals(arg_v
ideoSyndicated)); |
7108 unittest.expect(queryMap["videoType"].first, unittest.equals(arg_videoTy
pe)); | 7569 unittest.expect(queryMap["videoType"].first, unittest.equals(arg_videoTy
pe)); |
7109 | 7570 |
7110 | 7571 |
7111 var h = { | 7572 var h = { |
7112 "content-type" : "application/json; charset=utf-8", | 7573 "content-type" : "application/json; charset=utf-8", |
7113 }; | 7574 }; |
7114 var resp = convert.JSON.encode(buildSearchListResponse()); | 7575 var resp = convert.JSON.encode(buildSearchListResponse()); |
7115 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7576 return new async.Future.value(stringResponse(200, h, resp)); |
7116 }), true); | 7577 }), true); |
7117 res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType,
eventType: arg_eventType, forContentOwner: arg_forContentOwner, forMine: arg_fo
rMine, location: arg_location, locationRadius: arg_locationRadius, maxResults: a
rg_maxResults, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, order: arg_or
der, pageToken: arg_pageToken, publishedAfter: arg_publishedAfter, publishedBefo
re: arg_publishedBefore, q: arg_q, regionCode: arg_regionCode, relatedToVideoId:
arg_relatedToVideoId, relevanceLanguage: arg_relevanceLanguage, safeSearch: arg
_safeSearch, topicId: arg_topicId, type: arg_type, videoCaption: arg_videoCaptio
n, videoCategoryId: arg_videoCategoryId, videoDefinition: arg_videoDefinition, v
ideoDimension: arg_videoDimension, videoDuration: arg_videoDuration, videoEmbedd
able: arg_videoEmbeddable, videoLicense: arg_videoLicense, videoSyndicated: arg_
videoSyndicated, videoType: arg_videoType).then(unittest.expectAsync(((api.Searc
hListResponse response) { | 7578 res.list(arg_part, channelId: arg_channelId, channelType: arg_channelType,
eventType: arg_eventType, forContentOwner: arg_forContentOwner, forDeveloper: a
rg_forDeveloper, forMine: arg_forMine, location: arg_location, locationRadius: a
rg_locationRadius, maxResults: arg_maxResults, onBehalfOfContentOwner: arg_onBeh
alfOfContentOwner, order: arg_order, pageToken: arg_pageToken, publishedAfter: a
rg_publishedAfter, publishedBefore: arg_publishedBefore, q: arg_q, regionCode: a
rg_regionCode, relatedToVideoId: arg_relatedToVideoId, relevanceLanguage: arg_re
levanceLanguage, safeSearch: arg_safeSearch, topicId: arg_topicId, type: arg_typ
e, videoCaption: arg_videoCaption, videoCategoryId: arg_videoCategoryId, videoDe
finition: arg_videoDefinition, videoDimension: arg_videoDimension, videoDuration
: arg_videoDuration, videoEmbeddable: arg_videoEmbeddable, videoLicense: arg_vid
eoLicense, videoSyndicated: arg_videoSyndicated, videoType: arg_videoType).then(
unittest.expectAsync(((api.SearchListResponse response) { |
7118 checkSearchListResponse(response); | 7579 checkSearchListResponse(response); |
7119 }))); | 7580 }))); |
7120 }); | 7581 }); |
7121 | 7582 |
7122 }); | 7583 }); |
7123 | 7584 |
7124 | 7585 |
7125 unittest.group("resource-SubscriptionsResourceApi", () { | 7586 unittest.group("resource-SubscriptionsResourceApi", () { |
7126 unittest.test("method--delete", () { | 7587 unittest.test("method--delete", () { |
7127 | 7588 |
7128 var mock = new common_test.HttpServerMock(); | 7589 var mock = new HttpServerMock(); |
7129 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; | 7590 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; |
7130 var arg_id = "foo"; | 7591 var arg_id = "foo"; |
7131 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7132 var path = (req.url).path; | 7593 var path = (req.url).path; |
7133 var pathOffset = 0; | 7594 var pathOffset = 0; |
7134 var index; | 7595 var index; |
7135 var subPart; | 7596 var subPart; |
7136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7137 pathOffset += 1; | 7598 pathOffset += 1; |
7138 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); | 7599 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("youtube/v3/")); |
(...skipping 17 matching lines...) Expand all Loading... |
7156 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
7157 } | 7618 } |
7158 } | 7619 } |
7159 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7620 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
7160 | 7621 |
7161 | 7622 |
7162 var h = { | 7623 var h = { |
7163 "content-type" : "application/json; charset=utf-8", | 7624 "content-type" : "application/json; charset=utf-8", |
7164 }; | 7625 }; |
7165 var resp = ""; | 7626 var resp = ""; |
7166 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7627 return new async.Future.value(stringResponse(200, h, resp)); |
7167 }), true); | 7628 }), true); |
7168 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 7629 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
7169 }); | 7630 }); |
7170 | 7631 |
7171 unittest.test("method--insert", () { | 7632 unittest.test("method--insert", () { |
7172 | 7633 |
7173 var mock = new common_test.HttpServerMock(); | 7634 var mock = new HttpServerMock(); |
7174 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; | 7635 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; |
7175 var arg_request = buildSubscription(); | 7636 var arg_request = buildSubscription(); |
7176 var arg_part = "foo"; | 7637 var arg_part = "foo"; |
7177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7178 var obj = new api.Subscription.fromJson(json); | 7639 var obj = new api.Subscription.fromJson(json); |
7179 checkSubscription(obj); | 7640 checkSubscription(obj); |
7180 | 7641 |
7181 var path = (req.url).path; | 7642 var path = (req.url).path; |
7182 var pathOffset = 0; | 7643 var pathOffset = 0; |
7183 var index; | 7644 var index; |
(...skipping 21 matching lines...) Expand all Loading... |
7205 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7666 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
7206 } | 7667 } |
7207 } | 7668 } |
7208 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7669 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
7209 | 7670 |
7210 | 7671 |
7211 var h = { | 7672 var h = { |
7212 "content-type" : "application/json; charset=utf-8", | 7673 "content-type" : "application/json; charset=utf-8", |
7213 }; | 7674 }; |
7214 var resp = convert.JSON.encode(buildSubscription()); | 7675 var resp = convert.JSON.encode(buildSubscription()); |
7215 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7676 return new async.Future.value(stringResponse(200, h, resp)); |
7216 }), true); | 7677 }), true); |
7217 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Subscrip
tion response) { | 7678 res.insert(arg_request, arg_part).then(unittest.expectAsync(((api.Subscrip
tion response) { |
7218 checkSubscription(response); | 7679 checkSubscription(response); |
7219 }))); | 7680 }))); |
7220 }); | 7681 }); |
7221 | 7682 |
7222 unittest.test("method--list", () { | 7683 unittest.test("method--list", () { |
7223 | 7684 |
7224 var mock = new common_test.HttpServerMock(); | 7685 var mock = new HttpServerMock(); |
7225 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; | 7686 api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; |
7226 var arg_part = "foo"; | 7687 var arg_part = "foo"; |
7227 var arg_channelId = "foo"; | 7688 var arg_channelId = "foo"; |
7228 var arg_forChannelId = "foo"; | 7689 var arg_forChannelId = "foo"; |
7229 var arg_id = "foo"; | 7690 var arg_id = "foo"; |
7230 var arg_maxResults = 42; | 7691 var arg_maxResults = 42; |
7231 var arg_mine = true; | 7692 var arg_mine = true; |
7232 var arg_mySubscribers = true; | 7693 var arg_mySubscribers = true; |
7233 var arg_onBehalfOfContentOwner = "foo"; | 7694 var arg_onBehalfOfContentOwner = "foo"; |
7234 var arg_onBehalfOfContentOwnerChannel = "foo"; | 7695 var arg_onBehalfOfContentOwnerChannel = "foo"; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7272 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7733 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7273 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 7734 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
7274 unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); | 7735 unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); |
7275 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7736 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
7276 | 7737 |
7277 | 7738 |
7278 var h = { | 7739 var h = { |
7279 "content-type" : "application/json; charset=utf-8", | 7740 "content-type" : "application/json; charset=utf-8", |
7280 }; | 7741 }; |
7281 var resp = convert.JSON.encode(buildSubscriptionListResponse()); | 7742 var resp = convert.JSON.encode(buildSubscriptionListResponse()); |
7282 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7743 return new async.Future.value(stringResponse(200, h, resp)); |
7283 }), true); | 7744 }), true); |
7284 res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelI
d, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, mySubscribers: arg_my
Subscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfConte
ntOwnerChannel: arg_onBehalfOfContentOwnerChannel, order: arg_order, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.SubscriptionListResponse response
) { | 7745 res.list(arg_part, channelId: arg_channelId, forChannelId: arg_forChannelI
d, id: arg_id, maxResults: arg_maxResults, mine: arg_mine, mySubscribers: arg_my
Subscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfConte
ntOwnerChannel: arg_onBehalfOfContentOwnerChannel, order: arg_order, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.SubscriptionListResponse response
) { |
7285 checkSubscriptionListResponse(response); | 7746 checkSubscriptionListResponse(response); |
7286 }))); | 7747 }))); |
7287 }); | 7748 }); |
7288 | 7749 |
7289 }); | 7750 }); |
7290 | 7751 |
7291 | 7752 |
7292 unittest.group("resource-ThumbnailsResourceApi", () { | 7753 unittest.group("resource-ThumbnailsResourceApi", () { |
7293 unittest.test("method--set", () { | 7754 unittest.test("method--set", () { |
7294 // TODO: Implement tests for media upload; | 7755 // TODO: Implement tests for media upload; |
7295 // TODO: Implement tests for media download; | 7756 // TODO: Implement tests for media download; |
7296 | 7757 |
7297 var mock = new common_test.HttpServerMock(); | 7758 var mock = new HttpServerMock(); |
7298 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; | 7759 api.ThumbnailsResourceApi res = new api.YoutubeApi(mock).thumbnails; |
7299 var arg_videoId = "foo"; | 7760 var arg_videoId = "foo"; |
7300 var arg_onBehalfOfContentOwner = "foo"; | 7761 var arg_onBehalfOfContentOwner = "foo"; |
7301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7762 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7302 var path = (req.url).path; | 7763 var path = (req.url).path; |
7303 var pathOffset = 0; | 7764 var pathOffset = 0; |
7304 var index; | 7765 var index; |
7305 var subPart; | 7766 var subPart; |
7306 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7767 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7307 pathOffset += 1; | 7768 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
7327 } | 7788 } |
7328 } | 7789 } |
7329 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; | 7790 unittest.expect(queryMap["videoId"].first, unittest.equals(arg_videoId))
; |
7330 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7791 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7331 | 7792 |
7332 | 7793 |
7333 var h = { | 7794 var h = { |
7334 "content-type" : "application/json; charset=utf-8", | 7795 "content-type" : "application/json; charset=utf-8", |
7335 }; | 7796 }; |
7336 var resp = convert.JSON.encode(buildThumbnailSetResponse()); | 7797 var resp = convert.JSON.encode(buildThumbnailSetResponse()); |
7337 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7798 return new async.Future.value(stringResponse(200, h, resp)); |
7338 }), true); | 7799 }), true); |
7339 res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).t
hen(unittest.expectAsync(((api.ThumbnailSetResponse response) { | 7800 res.set(arg_videoId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).t
hen(unittest.expectAsync(((api.ThumbnailSetResponse response) { |
7340 checkThumbnailSetResponse(response); | 7801 checkThumbnailSetResponse(response); |
7341 }))); | 7802 }))); |
7342 }); | 7803 }); |
7343 | 7804 |
7344 }); | 7805 }); |
7345 | 7806 |
7346 | 7807 |
7347 unittest.group("resource-VideoCategoriesResourceApi", () { | 7808 unittest.group("resource-VideoCategoriesResourceApi", () { |
7348 unittest.test("method--list", () { | 7809 unittest.test("method--list", () { |
7349 | 7810 |
7350 var mock = new common_test.HttpServerMock(); | 7811 var mock = new HttpServerMock(); |
7351 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor
ies; | 7812 api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategor
ies; |
7352 var arg_part = "foo"; | 7813 var arg_part = "foo"; |
7353 var arg_hl = "foo"; | 7814 var arg_hl = "foo"; |
7354 var arg_id = "foo"; | 7815 var arg_id = "foo"; |
7355 var arg_regionCode = "foo"; | 7816 var arg_regionCode = "foo"; |
7356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7817 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7357 var path = (req.url).path; | 7818 var path = (req.url).path; |
7358 var pathOffset = 0; | 7819 var pathOffset = 0; |
7359 var index; | 7820 var index; |
7360 var subPart; | 7821 var subPart; |
(...skipping 23 matching lines...) Expand all Loading... |
7384 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 7845 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
7385 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); | 7846 unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); |
7386 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7847 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
7387 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); | 7848 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); |
7388 | 7849 |
7389 | 7850 |
7390 var h = { | 7851 var h = { |
7391 "content-type" : "application/json; charset=utf-8", | 7852 "content-type" : "application/json; charset=utf-8", |
7392 }; | 7853 }; |
7393 var resp = convert.JSON.encode(buildVideoCategoryListResponse()); | 7854 var resp = convert.JSON.encode(buildVideoCategoryListResponse()); |
7394 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7855 return new async.Future.value(stringResponse(200, h, resp)); |
7395 }), true); | 7856 }), true); |
7396 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the
n(unittest.expectAsync(((api.VideoCategoryListResponse response) { | 7857 res.list(arg_part, hl: arg_hl, id: arg_id, regionCode: arg_regionCode).the
n(unittest.expectAsync(((api.VideoCategoryListResponse response) { |
7397 checkVideoCategoryListResponse(response); | 7858 checkVideoCategoryListResponse(response); |
7398 }))); | 7859 }))); |
7399 }); | 7860 }); |
7400 | 7861 |
7401 }); | 7862 }); |
7402 | 7863 |
7403 | 7864 |
7404 unittest.group("resource-VideosResourceApi", () { | 7865 unittest.group("resource-VideosResourceApi", () { |
7405 unittest.test("method--delete", () { | 7866 unittest.test("method--delete", () { |
7406 | 7867 |
7407 var mock = new common_test.HttpServerMock(); | 7868 var mock = new HttpServerMock(); |
7408 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7869 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7409 var arg_id = "foo"; | 7870 var arg_id = "foo"; |
7410 var arg_onBehalfOfContentOwner = "foo"; | 7871 var arg_onBehalfOfContentOwner = "foo"; |
7411 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7412 var path = (req.url).path; | 7873 var path = (req.url).path; |
7413 var pathOffset = 0; | 7874 var pathOffset = 0; |
7414 var index; | 7875 var index; |
7415 var subPart; | 7876 var subPart; |
7416 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7877 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7417 pathOffset += 1; | 7878 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
7437 } | 7898 } |
7438 } | 7899 } |
7439 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7900 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
7440 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7901 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7441 | 7902 |
7442 | 7903 |
7443 var h = { | 7904 var h = { |
7444 "content-type" : "application/json; charset=utf-8", | 7905 "content-type" : "application/json; charset=utf-8", |
7445 }; | 7906 }; |
7446 var resp = ""; | 7907 var resp = ""; |
7447 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7908 return new async.Future.value(stringResponse(200, h, resp)); |
7448 }), true); | 7909 }), true); |
7449 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); | 7910 res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).the
n(unittest.expectAsync((_) {})); |
7450 }); | 7911 }); |
7451 | 7912 |
7452 unittest.test("method--getRating", () { | 7913 unittest.test("method--getRating", () { |
7453 | 7914 |
7454 var mock = new common_test.HttpServerMock(); | 7915 var mock = new HttpServerMock(); |
7455 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7916 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7456 var arg_id = "foo"; | 7917 var arg_id = "foo"; |
7457 var arg_onBehalfOfContentOwner = "foo"; | 7918 var arg_onBehalfOfContentOwner = "foo"; |
7458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7919 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7459 var path = (req.url).path; | 7920 var path = (req.url).path; |
7460 var pathOffset = 0; | 7921 var pathOffset = 0; |
7461 var index; | 7922 var index; |
7462 var subPart; | 7923 var subPart; |
7463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7924 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7464 pathOffset += 1; | 7925 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
7484 } | 7945 } |
7485 } | 7946 } |
7486 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 7947 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
7487 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 7948 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7488 | 7949 |
7489 | 7950 |
7490 var h = { | 7951 var h = { |
7491 "content-type" : "application/json; charset=utf-8", | 7952 "content-type" : "application/json; charset=utf-8", |
7492 }; | 7953 }; |
7493 var resp = convert.JSON.encode(buildVideoGetRatingResponse()); | 7954 var resp = convert.JSON.encode(buildVideoGetRatingResponse()); |
7494 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7955 return new async.Future.value(stringResponse(200, h, resp)); |
7495 }), true); | 7956 }), true); |
7496 res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).
then(unittest.expectAsync(((api.VideoGetRatingResponse response) { | 7957 res.getRating(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).
then(unittest.expectAsync(((api.VideoGetRatingResponse response) { |
7497 checkVideoGetRatingResponse(response); | 7958 checkVideoGetRatingResponse(response); |
7498 }))); | 7959 }))); |
7499 }); | 7960 }); |
7500 | 7961 |
7501 unittest.test("method--insert", () { | 7962 unittest.test("method--insert", () { |
7502 // TODO: Implement tests for media upload; | 7963 // TODO: Implement tests for media upload; |
7503 // TODO: Implement tests for media download; | 7964 // TODO: Implement tests for media download; |
7504 | 7965 |
7505 var mock = new common_test.HttpServerMock(); | 7966 var mock = new HttpServerMock(); |
7506 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 7967 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7507 var arg_request = buildVideo(); | 7968 var arg_request = buildVideo(); |
7508 var arg_part = "foo"; | 7969 var arg_part = "foo"; |
7509 var arg_autoLevels = true; | 7970 var arg_autoLevels = true; |
7510 var arg_notifySubscribers = true; | 7971 var arg_notifySubscribers = true; |
7511 var arg_onBehalfOfContentOwner = "foo"; | 7972 var arg_onBehalfOfContentOwner = "foo"; |
7512 var arg_onBehalfOfContentOwnerChannel = "foo"; | 7973 var arg_onBehalfOfContentOwnerChannel = "foo"; |
7513 var arg_stabilize = true; | 7974 var arg_stabilize = true; |
7514 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7975 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7515 var obj = new api.Video.fromJson(json); | 7976 var obj = new api.Video.fromJson(json); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7547 unittest.expect(queryMap["notifySubscribers"].first, unittest.equals("$a
rg_notifySubscribers")); | 8008 unittest.expect(queryMap["notifySubscribers"].first, unittest.equals("$a
rg_notifySubscribers")); |
7548 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8009 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7549 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); | 8010 unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittes
t.equals(arg_onBehalfOfContentOwnerChannel)); |
7550 unittest.expect(queryMap["stabilize"].first, unittest.equals("$arg_stabi
lize")); | 8011 unittest.expect(queryMap["stabilize"].first, unittest.equals("$arg_stabi
lize")); |
7551 | 8012 |
7552 | 8013 |
7553 var h = { | 8014 var h = { |
7554 "content-type" : "application/json; charset=utf-8", | 8015 "content-type" : "application/json; charset=utf-8", |
7555 }; | 8016 }; |
7556 var resp = convert.JSON.encode(buildVideo()); | 8017 var resp = convert.JSON.encode(buildVideo()); |
7557 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8018 return new async.Future.value(stringResponse(200, h, resp)); |
7558 }), true); | 8019 }), true); |
7559 res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscr
ibers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner
, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: a
rg_stabilize).then(unittest.expectAsync(((api.Video response) { | 8020 res.insert(arg_request, arg_part, autoLevels: arg_autoLevels, notifySubscr
ibers: arg_notifySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner
, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: a
rg_stabilize).then(unittest.expectAsync(((api.Video response) { |
7560 checkVideo(response); | 8021 checkVideo(response); |
7561 }))); | 8022 }))); |
7562 }); | 8023 }); |
7563 | 8024 |
7564 unittest.test("method--list", () { | 8025 unittest.test("method--list", () { |
7565 | 8026 |
7566 var mock = new common_test.HttpServerMock(); | 8027 var mock = new HttpServerMock(); |
7567 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 8028 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7568 var arg_part = "foo"; | 8029 var arg_part = "foo"; |
7569 var arg_chart = "foo"; | 8030 var arg_chart = "foo"; |
7570 var arg_hl = "foo"; | 8031 var arg_hl = "foo"; |
7571 var arg_id = "foo"; | 8032 var arg_id = "foo"; |
7572 var arg_locale = "foo"; | 8033 var arg_locale = "foo"; |
7573 var arg_maxResults = 42; | 8034 var arg_maxResults = 42; |
7574 var arg_myRating = "foo"; | 8035 var arg_myRating = "foo"; |
7575 var arg_onBehalfOfContentOwner = "foo"; | 8036 var arg_onBehalfOfContentOwner = "foo"; |
7576 var arg_pageToken = "foo"; | 8037 var arg_pageToken = "foo"; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7614 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8075 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7615 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8076 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
7616 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); | 8077 unittest.expect(queryMap["regionCode"].first, unittest.equals(arg_region
Code)); |
7617 unittest.expect(queryMap["videoCategoryId"].first, unittest.equals(arg_v
ideoCategoryId)); | 8078 unittest.expect(queryMap["videoCategoryId"].first, unittest.equals(arg_v
ideoCategoryId)); |
7618 | 8079 |
7619 | 8080 |
7620 var h = { | 8081 var h = { |
7621 "content-type" : "application/json; charset=utf-8", | 8082 "content-type" : "application/json; charset=utf-8", |
7622 }; | 8083 }; |
7623 var resp = convert.JSON.encode(buildVideoListResponse()); | 8084 var resp = convert.JSON.encode(buildVideoListResponse()); |
7624 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8085 return new async.Future.value(stringResponse(200, h, resp)); |
7625 }), true); | 8086 }), true); |
7626 res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_l
ocale, maxResults: arg_maxResults, myRating: arg_myRating, onBehalfOfContentOwne
r: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionC
ode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.Video
ListResponse response) { | 8087 res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_l
ocale, maxResults: arg_maxResults, myRating: arg_myRating, onBehalfOfContentOwne
r: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionC
ode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.Video
ListResponse response) { |
7627 checkVideoListResponse(response); | 8088 checkVideoListResponse(response); |
7628 }))); | 8089 }))); |
7629 }); | 8090 }); |
7630 | 8091 |
7631 unittest.test("method--rate", () { | 8092 unittest.test("method--rate", () { |
7632 | 8093 |
7633 var mock = new common_test.HttpServerMock(); | 8094 var mock = new HttpServerMock(); |
7634 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 8095 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7635 var arg_id = "foo"; | 8096 var arg_id = "foo"; |
7636 var arg_rating = "foo"; | 8097 var arg_rating = "foo"; |
7637 var arg_onBehalfOfContentOwner = "foo"; | 8098 var arg_onBehalfOfContentOwner = "foo"; |
7638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8099 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7639 var path = (req.url).path; | 8100 var path = (req.url).path; |
7640 var pathOffset = 0; | 8101 var pathOffset = 0; |
7641 var index; | 8102 var index; |
7642 var subPart; | 8103 var subPart; |
7643 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8104 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 21 matching lines...) Expand all Loading... |
7665 } | 8126 } |
7666 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); | 8127 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); |
7667 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); | 8128 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); |
7668 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8129 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7669 | 8130 |
7670 | 8131 |
7671 var h = { | 8132 var h = { |
7672 "content-type" : "application/json; charset=utf-8", | 8133 "content-type" : "application/json; charset=utf-8", |
7673 }; | 8134 }; |
7674 var resp = ""; | 8135 var resp = ""; |
7675 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8136 return new async.Future.value(stringResponse(200, h, resp)); |
7676 }), true); | 8137 }), true); |
7677 res.rate(arg_id, arg_rating, onBehalfOfContentOwner: arg_onBehalfOfContent
Owner).then(unittest.expectAsync((_) {})); | 8138 res.rate(arg_id, arg_rating, onBehalfOfContentOwner: arg_onBehalfOfContent
Owner).then(unittest.expectAsync((_) {})); |
7678 }); | 8139 }); |
7679 | 8140 |
7680 unittest.test("method--update", () { | 8141 unittest.test("method--update", () { |
7681 | 8142 |
7682 var mock = new common_test.HttpServerMock(); | 8143 var mock = new HttpServerMock(); |
7683 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; | 8144 api.VideosResourceApi res = new api.YoutubeApi(mock).videos; |
7684 var arg_request = buildVideo(); | 8145 var arg_request = buildVideo(); |
7685 var arg_part = "foo"; | 8146 var arg_part = "foo"; |
7686 var arg_onBehalfOfContentOwner = "foo"; | 8147 var arg_onBehalfOfContentOwner = "foo"; |
7687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8148 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7688 var obj = new api.Video.fromJson(json); | 8149 var obj = new api.Video.fromJson(json); |
7689 checkVideo(obj); | 8150 checkVideo(obj); |
7690 | 8151 |
7691 var path = (req.url).path; | 8152 var path = (req.url).path; |
7692 var pathOffset = 0; | 8153 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
7716 } | 8177 } |
7717 } | 8178 } |
7718 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); | 8179 unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); |
7719 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8180 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7720 | 8181 |
7721 | 8182 |
7722 var h = { | 8183 var h = { |
7723 "content-type" : "application/json; charset=utf-8", | 8184 "content-type" : "application/json; charset=utf-8", |
7724 }; | 8185 }; |
7725 var resp = convert.JSON.encode(buildVideo()); | 8186 var resp = convert.JSON.encode(buildVideo()); |
7726 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8187 return new async.Future.value(stringResponse(200, h, resp)); |
7727 }), true); | 8188 }), true); |
7728 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Video response) { | 8189 res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfCo
ntentOwner).then(unittest.expectAsync(((api.Video response) { |
7729 checkVideo(response); | 8190 checkVideo(response); |
7730 }))); | 8191 }))); |
7731 }); | 8192 }); |
7732 | 8193 |
7733 }); | 8194 }); |
7734 | 8195 |
7735 | 8196 |
7736 unittest.group("resource-WatermarksResourceApi", () { | 8197 unittest.group("resource-WatermarksResourceApi", () { |
7737 unittest.test("method--set", () { | 8198 unittest.test("method--set", () { |
7738 // TODO: Implement tests for media upload; | 8199 // TODO: Implement tests for media upload; |
7739 // TODO: Implement tests for media download; | 8200 // TODO: Implement tests for media download; |
7740 | 8201 |
7741 var mock = new common_test.HttpServerMock(); | 8202 var mock = new HttpServerMock(); |
7742 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; | 8203 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; |
7743 var arg_request = buildInvideoBranding(); | 8204 var arg_request = buildInvideoBranding(); |
7744 var arg_channelId = "foo"; | 8205 var arg_channelId = "foo"; |
7745 var arg_onBehalfOfContentOwner = "foo"; | 8206 var arg_onBehalfOfContentOwner = "foo"; |
7746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8207 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7747 var obj = new api.InvideoBranding.fromJson(json); | 8208 var obj = new api.InvideoBranding.fromJson(json); |
7748 checkInvideoBranding(obj); | 8209 checkInvideoBranding(obj); |
7749 | 8210 |
7750 var path = (req.url).path; | 8211 var path = (req.url).path; |
7751 var pathOffset = 0; | 8212 var pathOffset = 0; |
(...skipping 23 matching lines...) Expand all Loading... |
7775 } | 8236 } |
7776 } | 8237 } |
7777 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); | 8238 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); |
7778 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8239 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7779 | 8240 |
7780 | 8241 |
7781 var h = { | 8242 var h = { |
7782 "content-type" : "application/json; charset=utf-8", | 8243 "content-type" : "application/json; charset=utf-8", |
7783 }; | 8244 }; |
7784 var resp = ""; | 8245 var resp = ""; |
7785 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8246 return new async.Future.value(stringResponse(200, h, resp)); |
7786 }), true); | 8247 }), true); |
7787 res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOf
ContentOwner).then(unittest.expectAsync((_) {})); | 8248 res.set(arg_request, arg_channelId, onBehalfOfContentOwner: arg_onBehalfOf
ContentOwner).then(unittest.expectAsync((_) {})); |
7788 }); | 8249 }); |
7789 | 8250 |
7790 unittest.test("method--unset", () { | 8251 unittest.test("method--unset", () { |
7791 | 8252 |
7792 var mock = new common_test.HttpServerMock(); | 8253 var mock = new HttpServerMock(); |
7793 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; | 8254 api.WatermarksResourceApi res = new api.YoutubeApi(mock).watermarks; |
7794 var arg_channelId = "foo"; | 8255 var arg_channelId = "foo"; |
7795 var arg_onBehalfOfContentOwner = "foo"; | 8256 var arg_onBehalfOfContentOwner = "foo"; |
7796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
7797 var path = (req.url).path; | 8258 var path = (req.url).path; |
7798 var pathOffset = 0; | 8259 var pathOffset = 0; |
7799 var index; | 8260 var index; |
7800 var subPart; | 8261 var subPart; |
7801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8262 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7802 pathOffset += 1; | 8263 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
7822 } | 8283 } |
7823 } | 8284 } |
7824 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); | 8285 unittest.expect(queryMap["channelId"].first, unittest.equals(arg_channel
Id)); |
7825 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); | 8286 unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equal
s(arg_onBehalfOfContentOwner)); |
7826 | 8287 |
7827 | 8288 |
7828 var h = { | 8289 var h = { |
7829 "content-type" : "application/json; charset=utf-8", | 8290 "content-type" : "application/json; charset=utf-8", |
7830 }; | 8291 }; |
7831 var resp = ""; | 8292 var resp = ""; |
7832 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8293 return new async.Future.value(stringResponse(200, h, resp)); |
7833 }), true); | 8294 }), true); |
7834 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne
r).then(unittest.expectAsync((_) {})); | 8295 res.unset(arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwne
r).then(unittest.expectAsync((_) {})); |
7835 }); | 8296 }); |
7836 | 8297 |
7837 }); | 8298 }); |
7838 | 8299 |
7839 | 8300 |
7840 } | 8301 } |
7841 | 8302 |
OLD | NEW |