Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Side by Side Diff: generated/googleapis/test/adsensehost/v4_1_test.dart

Issue 663113002: Api roll 4: 2014-10-20 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.adsensehost.v4_1.test; 1 library googleapis.adsensehost.v4_1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 23 matching lines...) Expand all
34 buildCounterAccount++; 34 buildCounterAccount++;
35 if (buildCounterAccount < 3) { 35 if (buildCounterAccount < 3) {
36 unittest.expect(o.id, unittest.equals('foo')); 36 unittest.expect(o.id, unittest.equals('foo'));
37 unittest.expect(o.kind, unittest.equals('foo')); 37 unittest.expect(o.kind, unittest.equals('foo'));
38 unittest.expect(o.name, unittest.equals('foo')); 38 unittest.expect(o.name, unittest.equals('foo'));
39 unittest.expect(o.status, unittest.equals('foo')); 39 unittest.expect(o.status, unittest.equals('foo'));
40 } 40 }
41 buildCounterAccount--; 41 buildCounterAccount--;
42 } 42 }
43 43
44 buildUnnamed606() { 44 buildUnnamed1043() {
45 var o = new core.List<api.Account>(); 45 var o = new core.List<api.Account>();
46 o.add(buildAccount()); 46 o.add(buildAccount());
47 o.add(buildAccount()); 47 o.add(buildAccount());
48 return o; 48 return o;
49 } 49 }
50 50
51 checkUnnamed606(core.List<api.Account> o) { 51 checkUnnamed1043(core.List<api.Account> o) {
52 unittest.expect(o, unittest.hasLength(2)); 52 unittest.expect(o, unittest.hasLength(2));
53 checkAccount(o[0]); 53 checkAccount(o[0]);
54 checkAccount(o[1]); 54 checkAccount(o[1]);
55 } 55 }
56 56
57 core.int buildCounterAccounts = 0; 57 core.int buildCounterAccounts = 0;
58 buildAccounts() { 58 buildAccounts() {
59 var o = new api.Accounts(); 59 var o = new api.Accounts();
60 buildCounterAccounts++; 60 buildCounterAccounts++;
61 if (buildCounterAccounts < 3) { 61 if (buildCounterAccounts < 3) {
62 o.etag = "foo"; 62 o.etag = "foo";
63 o.items = buildUnnamed606(); 63 o.items = buildUnnamed1043();
64 o.kind = "foo"; 64 o.kind = "foo";
65 } 65 }
66 buildCounterAccounts--; 66 buildCounterAccounts--;
67 return o; 67 return o;
68 } 68 }
69 69
70 checkAccounts(api.Accounts o) { 70 checkAccounts(api.Accounts o) {
71 buildCounterAccounts++; 71 buildCounterAccounts++;
72 if (buildCounterAccounts < 3) { 72 if (buildCounterAccounts < 3) {
73 unittest.expect(o.etag, unittest.equals('foo')); 73 unittest.expect(o.etag, unittest.equals('foo'));
74 checkUnnamed606(o.items); 74 checkUnnamed1043(o.items);
75 unittest.expect(o.kind, unittest.equals('foo')); 75 unittest.expect(o.kind, unittest.equals('foo'));
76 } 76 }
77 buildCounterAccounts--; 77 buildCounterAccounts--;
78 } 78 }
79 79
80 core.int buildCounterAdClient = 0; 80 core.int buildCounterAdClient = 0;
81 buildAdClient() { 81 buildAdClient() {
82 var o = new api.AdClient(); 82 var o = new api.AdClient();
83 buildCounterAdClient++; 83 buildCounterAdClient++;
84 if (buildCounterAdClient < 3) { 84 if (buildCounterAdClient < 3) {
(...skipping 12 matching lines...) Expand all
97 if (buildCounterAdClient < 3) { 97 if (buildCounterAdClient < 3) {
98 unittest.expect(o.arcOptIn, unittest.isTrue); 98 unittest.expect(o.arcOptIn, unittest.isTrue);
99 unittest.expect(o.id, unittest.equals('foo')); 99 unittest.expect(o.id, unittest.equals('foo'));
100 unittest.expect(o.kind, unittest.equals('foo')); 100 unittest.expect(o.kind, unittest.equals('foo'));
101 unittest.expect(o.productCode, unittest.equals('foo')); 101 unittest.expect(o.productCode, unittest.equals('foo'));
102 unittest.expect(o.supportsReporting, unittest.isTrue); 102 unittest.expect(o.supportsReporting, unittest.isTrue);
103 } 103 }
104 buildCounterAdClient--; 104 buildCounterAdClient--;
105 } 105 }
106 106
107 buildUnnamed607() { 107 buildUnnamed1044() {
108 var o = new core.List<api.AdClient>(); 108 var o = new core.List<api.AdClient>();
109 o.add(buildAdClient()); 109 o.add(buildAdClient());
110 o.add(buildAdClient()); 110 o.add(buildAdClient());
111 return o; 111 return o;
112 } 112 }
113 113
114 checkUnnamed607(core.List<api.AdClient> o) { 114 checkUnnamed1044(core.List<api.AdClient> o) {
115 unittest.expect(o, unittest.hasLength(2)); 115 unittest.expect(o, unittest.hasLength(2));
116 checkAdClient(o[0]); 116 checkAdClient(o[0]);
117 checkAdClient(o[1]); 117 checkAdClient(o[1]);
118 } 118 }
119 119
120 core.int buildCounterAdClients = 0; 120 core.int buildCounterAdClients = 0;
121 buildAdClients() { 121 buildAdClients() {
122 var o = new api.AdClients(); 122 var o = new api.AdClients();
123 buildCounterAdClients++; 123 buildCounterAdClients++;
124 if (buildCounterAdClients < 3) { 124 if (buildCounterAdClients < 3) {
125 o.etag = "foo"; 125 o.etag = "foo";
126 o.items = buildUnnamed607(); 126 o.items = buildUnnamed1044();
127 o.kind = "foo"; 127 o.kind = "foo";
128 o.nextPageToken = "foo"; 128 o.nextPageToken = "foo";
129 } 129 }
130 buildCounterAdClients--; 130 buildCounterAdClients--;
131 return o; 131 return o;
132 } 132 }
133 133
134 checkAdClients(api.AdClients o) { 134 checkAdClients(api.AdClients o) {
135 buildCounterAdClients++; 135 buildCounterAdClients++;
136 if (buildCounterAdClients < 3) { 136 if (buildCounterAdClients < 3) {
137 unittest.expect(o.etag, unittest.equals('foo')); 137 unittest.expect(o.etag, unittest.equals('foo'));
138 checkUnnamed607(o.items); 138 checkUnnamed1044(o.items);
139 unittest.expect(o.kind, unittest.equals('foo')); 139 unittest.expect(o.kind, unittest.equals('foo'));
140 unittest.expect(o.nextPageToken, unittest.equals('foo')); 140 unittest.expect(o.nextPageToken, unittest.equals('foo'));
141 } 141 }
142 buildCounterAdClients--; 142 buildCounterAdClients--;
143 } 143 }
144 144
145 core.int buildCounterAdCode = 0; 145 core.int buildCounterAdCode = 0;
146 buildAdCode() { 146 buildAdCode() {
147 var o = new api.AdCode(); 147 var o = new api.AdCode();
148 buildCounterAdCode++; 148 buildCounterAdCode++;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 checkAdStyle(o.customStyle); 333 checkAdStyle(o.customStyle);
334 unittest.expect(o.id, unittest.equals('foo')); 334 unittest.expect(o.id, unittest.equals('foo'));
335 unittest.expect(o.kind, unittest.equals('foo')); 335 unittest.expect(o.kind, unittest.equals('foo'));
336 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings); 336 checkAdUnitMobileContentAdsSettings(o.mobileContentAdsSettings);
337 unittest.expect(o.name, unittest.equals('foo')); 337 unittest.expect(o.name, unittest.equals('foo'));
338 unittest.expect(o.status, unittest.equals('foo')); 338 unittest.expect(o.status, unittest.equals('foo'));
339 } 339 }
340 buildCounterAdUnit--; 340 buildCounterAdUnit--;
341 } 341 }
342 342
343 buildUnnamed608() { 343 buildUnnamed1045() {
344 var o = new core.List<api.AdUnit>(); 344 var o = new core.List<api.AdUnit>();
345 o.add(buildAdUnit()); 345 o.add(buildAdUnit());
346 o.add(buildAdUnit()); 346 o.add(buildAdUnit());
347 return o; 347 return o;
348 } 348 }
349 349
350 checkUnnamed608(core.List<api.AdUnit> o) { 350 checkUnnamed1045(core.List<api.AdUnit> o) {
351 unittest.expect(o, unittest.hasLength(2)); 351 unittest.expect(o, unittest.hasLength(2));
352 checkAdUnit(o[0]); 352 checkAdUnit(o[0]);
353 checkAdUnit(o[1]); 353 checkAdUnit(o[1]);
354 } 354 }
355 355
356 core.int buildCounterAdUnits = 0; 356 core.int buildCounterAdUnits = 0;
357 buildAdUnits() { 357 buildAdUnits() {
358 var o = new api.AdUnits(); 358 var o = new api.AdUnits();
359 buildCounterAdUnits++; 359 buildCounterAdUnits++;
360 if (buildCounterAdUnits < 3) { 360 if (buildCounterAdUnits < 3) {
361 o.etag = "foo"; 361 o.etag = "foo";
362 o.items = buildUnnamed608(); 362 o.items = buildUnnamed1045();
363 o.kind = "foo"; 363 o.kind = "foo";
364 o.nextPageToken = "foo"; 364 o.nextPageToken = "foo";
365 } 365 }
366 buildCounterAdUnits--; 366 buildCounterAdUnits--;
367 return o; 367 return o;
368 } 368 }
369 369
370 checkAdUnits(api.AdUnits o) { 370 checkAdUnits(api.AdUnits o) {
371 buildCounterAdUnits++; 371 buildCounterAdUnits++;
372 if (buildCounterAdUnits < 3) { 372 if (buildCounterAdUnits < 3) {
373 unittest.expect(o.etag, unittest.equals('foo')); 373 unittest.expect(o.etag, unittest.equals('foo'));
374 checkUnnamed608(o.items); 374 checkUnnamed1045(o.items);
375 unittest.expect(o.kind, unittest.equals('foo')); 375 unittest.expect(o.kind, unittest.equals('foo'));
376 unittest.expect(o.nextPageToken, unittest.equals('foo')); 376 unittest.expect(o.nextPageToken, unittest.equals('foo'));
377 } 377 }
378 buildCounterAdUnits--; 378 buildCounterAdUnits--;
379 } 379 }
380 380
381 buildUnnamed609() { 381 buildUnnamed1046() {
382 var o = new core.List<core.String>(); 382 var o = new core.List<core.String>();
383 o.add("foo"); 383 o.add("foo");
384 o.add("foo"); 384 o.add("foo");
385 return o; 385 return o;
386 } 386 }
387 387
388 checkUnnamed609(core.List<core.String> o) { 388 checkUnnamed1046(core.List<core.String> o) {
389 unittest.expect(o, unittest.hasLength(2)); 389 unittest.expect(o, unittest.hasLength(2));
390 unittest.expect(o[0], unittest.equals('foo')); 390 unittest.expect(o[0], unittest.equals('foo'));
391 unittest.expect(o[1], unittest.equals('foo')); 391 unittest.expect(o[1], unittest.equals('foo'));
392 } 392 }
393 393
394 core.int buildCounterAssociationSession = 0; 394 core.int buildCounterAssociationSession = 0;
395 buildAssociationSession() { 395 buildAssociationSession() {
396 var o = new api.AssociationSession(); 396 var o = new api.AssociationSession();
397 buildCounterAssociationSession++; 397 buildCounterAssociationSession++;
398 if (buildCounterAssociationSession < 3) { 398 if (buildCounterAssociationSession < 3) {
399 o.accountId = "foo"; 399 o.accountId = "foo";
400 o.id = "foo"; 400 o.id = "foo";
401 o.kind = "foo"; 401 o.kind = "foo";
402 o.productCodes = buildUnnamed609(); 402 o.productCodes = buildUnnamed1046();
403 o.redirectUrl = "foo"; 403 o.redirectUrl = "foo";
404 o.status = "foo"; 404 o.status = "foo";
405 o.userLocale = "foo"; 405 o.userLocale = "foo";
406 o.websiteLocale = "foo"; 406 o.websiteLocale = "foo";
407 o.websiteUrl = "foo"; 407 o.websiteUrl = "foo";
408 } 408 }
409 buildCounterAssociationSession--; 409 buildCounterAssociationSession--;
410 return o; 410 return o;
411 } 411 }
412 412
413 checkAssociationSession(api.AssociationSession o) { 413 checkAssociationSession(api.AssociationSession o) {
414 buildCounterAssociationSession++; 414 buildCounterAssociationSession++;
415 if (buildCounterAssociationSession < 3) { 415 if (buildCounterAssociationSession < 3) {
416 unittest.expect(o.accountId, unittest.equals('foo')); 416 unittest.expect(o.accountId, unittest.equals('foo'));
417 unittest.expect(o.id, unittest.equals('foo')); 417 unittest.expect(o.id, unittest.equals('foo'));
418 unittest.expect(o.kind, unittest.equals('foo')); 418 unittest.expect(o.kind, unittest.equals('foo'));
419 checkUnnamed609(o.productCodes); 419 checkUnnamed1046(o.productCodes);
420 unittest.expect(o.redirectUrl, unittest.equals('foo')); 420 unittest.expect(o.redirectUrl, unittest.equals('foo'));
421 unittest.expect(o.status, unittest.equals('foo')); 421 unittest.expect(o.status, unittest.equals('foo'));
422 unittest.expect(o.userLocale, unittest.equals('foo')); 422 unittest.expect(o.userLocale, unittest.equals('foo'));
423 unittest.expect(o.websiteLocale, unittest.equals('foo')); 423 unittest.expect(o.websiteLocale, unittest.equals('foo'));
424 unittest.expect(o.websiteUrl, unittest.equals('foo')); 424 unittest.expect(o.websiteUrl, unittest.equals('foo'));
425 } 425 }
426 buildCounterAssociationSession--; 426 buildCounterAssociationSession--;
427 } 427 }
428 428
429 core.int buildCounterCustomChannel = 0; 429 core.int buildCounterCustomChannel = 0;
(...skipping 14 matching lines...) Expand all
444 buildCounterCustomChannel++; 444 buildCounterCustomChannel++;
445 if (buildCounterCustomChannel < 3) { 445 if (buildCounterCustomChannel < 3) {
446 unittest.expect(o.code, unittest.equals('foo')); 446 unittest.expect(o.code, unittest.equals('foo'));
447 unittest.expect(o.id, unittest.equals('foo')); 447 unittest.expect(o.id, unittest.equals('foo'));
448 unittest.expect(o.kind, unittest.equals('foo')); 448 unittest.expect(o.kind, unittest.equals('foo'));
449 unittest.expect(o.name, unittest.equals('foo')); 449 unittest.expect(o.name, unittest.equals('foo'));
450 } 450 }
451 buildCounterCustomChannel--; 451 buildCounterCustomChannel--;
452 } 452 }
453 453
454 buildUnnamed610() { 454 buildUnnamed1047() {
455 var o = new core.List<api.CustomChannel>(); 455 var o = new core.List<api.CustomChannel>();
456 o.add(buildCustomChannel()); 456 o.add(buildCustomChannel());
457 o.add(buildCustomChannel()); 457 o.add(buildCustomChannel());
458 return o; 458 return o;
459 } 459 }
460 460
461 checkUnnamed610(core.List<api.CustomChannel> o) { 461 checkUnnamed1047(core.List<api.CustomChannel> o) {
462 unittest.expect(o, unittest.hasLength(2)); 462 unittest.expect(o, unittest.hasLength(2));
463 checkCustomChannel(o[0]); 463 checkCustomChannel(o[0]);
464 checkCustomChannel(o[1]); 464 checkCustomChannel(o[1]);
465 } 465 }
466 466
467 core.int buildCounterCustomChannels = 0; 467 core.int buildCounterCustomChannels = 0;
468 buildCustomChannels() { 468 buildCustomChannels() {
469 var o = new api.CustomChannels(); 469 var o = new api.CustomChannels();
470 buildCounterCustomChannels++; 470 buildCounterCustomChannels++;
471 if (buildCounterCustomChannels < 3) { 471 if (buildCounterCustomChannels < 3) {
472 o.etag = "foo"; 472 o.etag = "foo";
473 o.items = buildUnnamed610(); 473 o.items = buildUnnamed1047();
474 o.kind = "foo"; 474 o.kind = "foo";
475 o.nextPageToken = "foo"; 475 o.nextPageToken = "foo";
476 } 476 }
477 buildCounterCustomChannels--; 477 buildCounterCustomChannels--;
478 return o; 478 return o;
479 } 479 }
480 480
481 checkCustomChannels(api.CustomChannels o) { 481 checkCustomChannels(api.CustomChannels o) {
482 buildCounterCustomChannels++; 482 buildCounterCustomChannels++;
483 if (buildCounterCustomChannels < 3) { 483 if (buildCounterCustomChannels < 3) {
484 unittest.expect(o.etag, unittest.equals('foo')); 484 unittest.expect(o.etag, unittest.equals('foo'));
485 checkUnnamed610(o.items); 485 checkUnnamed1047(o.items);
486 unittest.expect(o.kind, unittest.equals('foo')); 486 unittest.expect(o.kind, unittest.equals('foo'));
487 unittest.expect(o.nextPageToken, unittest.equals('foo')); 487 unittest.expect(o.nextPageToken, unittest.equals('foo'));
488 } 488 }
489 buildCounterCustomChannels--; 489 buildCounterCustomChannels--;
490 } 490 }
491 491
492 buildUnnamed611() { 492 buildUnnamed1048() {
493 var o = new core.List<core.String>(); 493 var o = new core.List<core.String>();
494 o.add("foo"); 494 o.add("foo");
495 o.add("foo"); 495 o.add("foo");
496 return o; 496 return o;
497 } 497 }
498 498
499 checkUnnamed611(core.List<core.String> o) { 499 checkUnnamed1048(core.List<core.String> o) {
500 unittest.expect(o, unittest.hasLength(2)); 500 unittest.expect(o, unittest.hasLength(2));
501 unittest.expect(o[0], unittest.equals('foo')); 501 unittest.expect(o[0], unittest.equals('foo'));
502 unittest.expect(o[1], unittest.equals('foo')); 502 unittest.expect(o[1], unittest.equals('foo'));
503 } 503 }
504 504
505 core.int buildCounterReportHeaders = 0; 505 core.int buildCounterReportHeaders = 0;
506 buildReportHeaders() { 506 buildReportHeaders() {
507 var o = new api.ReportHeaders(); 507 var o = new api.ReportHeaders();
508 buildCounterReportHeaders++; 508 buildCounterReportHeaders++;
509 if (buildCounterReportHeaders < 3) { 509 if (buildCounterReportHeaders < 3) {
510 o.currency = "foo"; 510 o.currency = "foo";
511 o.name = "foo"; 511 o.name = "foo";
512 o.type = "foo"; 512 o.type = "foo";
513 } 513 }
514 buildCounterReportHeaders--; 514 buildCounterReportHeaders--;
515 return o; 515 return o;
516 } 516 }
517 517
518 checkReportHeaders(api.ReportHeaders o) { 518 checkReportHeaders(api.ReportHeaders o) {
519 buildCounterReportHeaders++; 519 buildCounterReportHeaders++;
520 if (buildCounterReportHeaders < 3) { 520 if (buildCounterReportHeaders < 3) {
521 unittest.expect(o.currency, unittest.equals('foo')); 521 unittest.expect(o.currency, unittest.equals('foo'));
522 unittest.expect(o.name, unittest.equals('foo')); 522 unittest.expect(o.name, unittest.equals('foo'));
523 unittest.expect(o.type, unittest.equals('foo')); 523 unittest.expect(o.type, unittest.equals('foo'));
524 } 524 }
525 buildCounterReportHeaders--; 525 buildCounterReportHeaders--;
526 } 526 }
527 527
528 buildUnnamed612() { 528 buildUnnamed1049() {
529 var o = new core.List<api.ReportHeaders>(); 529 var o = new core.List<api.ReportHeaders>();
530 o.add(buildReportHeaders()); 530 o.add(buildReportHeaders());
531 o.add(buildReportHeaders()); 531 o.add(buildReportHeaders());
532 return o; 532 return o;
533 } 533 }
534 534
535 checkUnnamed612(core.List<api.ReportHeaders> o) { 535 checkUnnamed1049(core.List<api.ReportHeaders> o) {
536 unittest.expect(o, unittest.hasLength(2)); 536 unittest.expect(o, unittest.hasLength(2));
537 checkReportHeaders(o[0]); 537 checkReportHeaders(o[0]);
538 checkReportHeaders(o[1]); 538 checkReportHeaders(o[1]);
539 } 539 }
540 540
541 buildUnnamed613() { 541 buildUnnamed1050() {
542 var o = new core.List<core.String>(); 542 var o = new core.List<core.String>();
543 o.add("foo"); 543 o.add("foo");
544 o.add("foo"); 544 o.add("foo");
545 return o; 545 return o;
546 } 546 }
547 547
548 checkUnnamed613(core.List<core.String> o) { 548 checkUnnamed1050(core.List<core.String> o) {
549 unittest.expect(o, unittest.hasLength(2)); 549 unittest.expect(o, unittest.hasLength(2));
550 unittest.expect(o[0], unittest.equals('foo')); 550 unittest.expect(o[0], unittest.equals('foo'));
551 unittest.expect(o[1], unittest.equals('foo')); 551 unittest.expect(o[1], unittest.equals('foo'));
552 } 552 }
553 553
554 buildUnnamed614() { 554 buildUnnamed1051() {
555 var o = new core.List<core.List<core.String>>(); 555 var o = new core.List<core.List<core.String>>();
556 o.add(buildUnnamed613()); 556 o.add(buildUnnamed1050());
557 o.add(buildUnnamed613()); 557 o.add(buildUnnamed1050());
558 return o; 558 return o;
559 } 559 }
560 560
561 checkUnnamed614(core.List<core.List<core.String>> o) { 561 checkUnnamed1051(core.List<core.List<core.String>> o) {
562 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
563 checkUnnamed613(o[0]); 563 checkUnnamed1050(o[0]);
564 checkUnnamed613(o[1]); 564 checkUnnamed1050(o[1]);
565 } 565 }
566 566
567 buildUnnamed615() { 567 buildUnnamed1052() {
568 var o = new core.List<core.String>(); 568 var o = new core.List<core.String>();
569 o.add("foo"); 569 o.add("foo");
570 o.add("foo"); 570 o.add("foo");
571 return o; 571 return o;
572 } 572 }
573 573
574 checkUnnamed615(core.List<core.String> o) { 574 checkUnnamed1052(core.List<core.String> o) {
575 unittest.expect(o, unittest.hasLength(2)); 575 unittest.expect(o, unittest.hasLength(2));
576 unittest.expect(o[0], unittest.equals('foo')); 576 unittest.expect(o[0], unittest.equals('foo'));
577 unittest.expect(o[1], unittest.equals('foo')); 577 unittest.expect(o[1], unittest.equals('foo'));
578 } 578 }
579 579
580 buildUnnamed616() { 580 buildUnnamed1053() {
581 var o = new core.List<core.String>(); 581 var o = new core.List<core.String>();
582 o.add("foo"); 582 o.add("foo");
583 o.add("foo"); 583 o.add("foo");
584 return o; 584 return o;
585 } 585 }
586 586
587 checkUnnamed616(core.List<core.String> o) { 587 checkUnnamed1053(core.List<core.String> o) {
588 unittest.expect(o, unittest.hasLength(2)); 588 unittest.expect(o, unittest.hasLength(2));
589 unittest.expect(o[0], unittest.equals('foo')); 589 unittest.expect(o[0], unittest.equals('foo'));
590 unittest.expect(o[1], unittest.equals('foo')); 590 unittest.expect(o[1], unittest.equals('foo'));
591 } 591 }
592 592
593 core.int buildCounterReport = 0; 593 core.int buildCounterReport = 0;
594 buildReport() { 594 buildReport() {
595 var o = new api.Report(); 595 var o = new api.Report();
596 buildCounterReport++; 596 buildCounterReport++;
597 if (buildCounterReport < 3) { 597 if (buildCounterReport < 3) {
598 o.averages = buildUnnamed611(); 598 o.averages = buildUnnamed1048();
599 o.headers = buildUnnamed612(); 599 o.headers = buildUnnamed1049();
600 o.kind = "foo"; 600 o.kind = "foo";
601 o.rows = buildUnnamed614(); 601 o.rows = buildUnnamed1051();
602 o.totalMatchedRows = "foo"; 602 o.totalMatchedRows = "foo";
603 o.totals = buildUnnamed615(); 603 o.totals = buildUnnamed1052();
604 o.warnings = buildUnnamed616(); 604 o.warnings = buildUnnamed1053();
605 } 605 }
606 buildCounterReport--; 606 buildCounterReport--;
607 return o; 607 return o;
608 } 608 }
609 609
610 checkReport(api.Report o) { 610 checkReport(api.Report o) {
611 buildCounterReport++; 611 buildCounterReport++;
612 if (buildCounterReport < 3) { 612 if (buildCounterReport < 3) {
613 checkUnnamed611(o.averages); 613 checkUnnamed1048(o.averages);
614 checkUnnamed612(o.headers); 614 checkUnnamed1049(o.headers);
615 unittest.expect(o.kind, unittest.equals('foo')); 615 unittest.expect(o.kind, unittest.equals('foo'));
616 checkUnnamed614(o.rows); 616 checkUnnamed1051(o.rows);
617 unittest.expect(o.totalMatchedRows, unittest.equals('foo')); 617 unittest.expect(o.totalMatchedRows, unittest.equals('foo'));
618 checkUnnamed615(o.totals); 618 checkUnnamed1052(o.totals);
619 checkUnnamed616(o.warnings); 619 checkUnnamed1053(o.warnings);
620 } 620 }
621 buildCounterReport--; 621 buildCounterReport--;
622 } 622 }
623 623
624 core.int buildCounterUrlChannel = 0; 624 core.int buildCounterUrlChannel = 0;
625 buildUrlChannel() { 625 buildUrlChannel() {
626 var o = new api.UrlChannel(); 626 var o = new api.UrlChannel();
627 buildCounterUrlChannel++; 627 buildCounterUrlChannel++;
628 if (buildCounterUrlChannel < 3) { 628 if (buildCounterUrlChannel < 3) {
629 o.id = "foo"; 629 o.id = "foo";
630 o.kind = "foo"; 630 o.kind = "foo";
631 o.urlPattern = "foo"; 631 o.urlPattern = "foo";
632 } 632 }
633 buildCounterUrlChannel--; 633 buildCounterUrlChannel--;
634 return o; 634 return o;
635 } 635 }
636 636
637 checkUrlChannel(api.UrlChannel o) { 637 checkUrlChannel(api.UrlChannel o) {
638 buildCounterUrlChannel++; 638 buildCounterUrlChannel++;
639 if (buildCounterUrlChannel < 3) { 639 if (buildCounterUrlChannel < 3) {
640 unittest.expect(o.id, unittest.equals('foo')); 640 unittest.expect(o.id, unittest.equals('foo'));
641 unittest.expect(o.kind, unittest.equals('foo')); 641 unittest.expect(o.kind, unittest.equals('foo'));
642 unittest.expect(o.urlPattern, unittest.equals('foo')); 642 unittest.expect(o.urlPattern, unittest.equals('foo'));
643 } 643 }
644 buildCounterUrlChannel--; 644 buildCounterUrlChannel--;
645 } 645 }
646 646
647 buildUnnamed617() { 647 buildUnnamed1054() {
648 var o = new core.List<api.UrlChannel>(); 648 var o = new core.List<api.UrlChannel>();
649 o.add(buildUrlChannel()); 649 o.add(buildUrlChannel());
650 o.add(buildUrlChannel()); 650 o.add(buildUrlChannel());
651 return o; 651 return o;
652 } 652 }
653 653
654 checkUnnamed617(core.List<api.UrlChannel> o) { 654 checkUnnamed1054(core.List<api.UrlChannel> o) {
655 unittest.expect(o, unittest.hasLength(2)); 655 unittest.expect(o, unittest.hasLength(2));
656 checkUrlChannel(o[0]); 656 checkUrlChannel(o[0]);
657 checkUrlChannel(o[1]); 657 checkUrlChannel(o[1]);
658 } 658 }
659 659
660 core.int buildCounterUrlChannels = 0; 660 core.int buildCounterUrlChannels = 0;
661 buildUrlChannels() { 661 buildUrlChannels() {
662 var o = new api.UrlChannels(); 662 var o = new api.UrlChannels();
663 buildCounterUrlChannels++; 663 buildCounterUrlChannels++;
664 if (buildCounterUrlChannels < 3) { 664 if (buildCounterUrlChannels < 3) {
665 o.etag = "foo"; 665 o.etag = "foo";
666 o.items = buildUnnamed617(); 666 o.items = buildUnnamed1054();
667 o.kind = "foo"; 667 o.kind = "foo";
668 o.nextPageToken = "foo"; 668 o.nextPageToken = "foo";
669 } 669 }
670 buildCounterUrlChannels--; 670 buildCounterUrlChannels--;
671 return o; 671 return o;
672 } 672 }
673 673
674 checkUrlChannels(api.UrlChannels o) { 674 checkUrlChannels(api.UrlChannels o) {
675 buildCounterUrlChannels++; 675 buildCounterUrlChannels++;
676 if (buildCounterUrlChannels < 3) { 676 if (buildCounterUrlChannels < 3) {
677 unittest.expect(o.etag, unittest.equals('foo')); 677 unittest.expect(o.etag, unittest.equals('foo'));
678 checkUnnamed617(o.items); 678 checkUnnamed1054(o.items);
679 unittest.expect(o.kind, unittest.equals('foo')); 679 unittest.expect(o.kind, unittest.equals('foo'));
680 unittest.expect(o.nextPageToken, unittest.equals('foo')); 680 unittest.expect(o.nextPageToken, unittest.equals('foo'));
681 } 681 }
682 buildCounterUrlChannels--; 682 buildCounterUrlChannels--;
683 } 683 }
684 684
685 buildUnnamed618() { 685 buildUnnamed1055() {
686 var o = new core.List<core.String>(); 686 var o = new core.List<core.String>();
687 o.add("foo"); 687 o.add("foo");
688 o.add("foo"); 688 o.add("foo");
689 return o; 689 return o;
690 } 690 }
691 691
692 checkUnnamed618(core.List<core.String> o) { 692 checkUnnamed1055(core.List<core.String> o) {
693 unittest.expect(o, unittest.hasLength(2)); 693 unittest.expect(o, unittest.hasLength(2));
694 unittest.expect(o[0], unittest.equals('foo')); 694 unittest.expect(o[0], unittest.equals('foo'));
695 unittest.expect(o[1], unittest.equals('foo')); 695 unittest.expect(o[1], unittest.equals('foo'));
696 } 696 }
697 697
698 buildUnnamed619() { 698 buildUnnamed1056() {
699 var o = new core.List<core.String>(); 699 var o = new core.List<core.String>();
700 o.add("foo"); 700 o.add("foo");
701 o.add("foo"); 701 o.add("foo");
702 return o; 702 return o;
703 } 703 }
704 704
705 checkUnnamed619(core.List<core.String> o) { 705 checkUnnamed1056(core.List<core.String> o) {
706 unittest.expect(o, unittest.hasLength(2)); 706 unittest.expect(o, unittest.hasLength(2));
707 unittest.expect(o[0], unittest.equals('foo')); 707 unittest.expect(o[0], unittest.equals('foo'));
708 unittest.expect(o[1], unittest.equals('foo')); 708 unittest.expect(o[1], unittest.equals('foo'));
709 } 709 }
710 710
711 buildUnnamed620() { 711 buildUnnamed1057() {
712 var o = new core.List<core.String>(); 712 var o = new core.List<core.String>();
713 o.add("foo"); 713 o.add("foo");
714 o.add("foo"); 714 o.add("foo");
715 return o; 715 return o;
716 } 716 }
717 717
718 checkUnnamed620(core.List<core.String> o) { 718 checkUnnamed1057(core.List<core.String> o) {
719 unittest.expect(o, unittest.hasLength(2)); 719 unittest.expect(o, unittest.hasLength(2));
720 unittest.expect(o[0], unittest.equals('foo')); 720 unittest.expect(o[0], unittest.equals('foo'));
721 unittest.expect(o[1], unittest.equals('foo')); 721 unittest.expect(o[1], unittest.equals('foo'));
722 } 722 }
723 723
724 buildUnnamed621() { 724 buildUnnamed1058() {
725 var o = new core.List<core.String>(); 725 var o = new core.List<core.String>();
726 o.add("foo"); 726 o.add("foo");
727 o.add("foo"); 727 o.add("foo");
728 return o; 728 return o;
729 } 729 }
730 730
731 checkUnnamed621(core.List<core.String> o) { 731 checkUnnamed1058(core.List<core.String> o) {
732 unittest.expect(o, unittest.hasLength(2)); 732 unittest.expect(o, unittest.hasLength(2));
733 unittest.expect(o[0], unittest.equals('foo')); 733 unittest.expect(o[0], unittest.equals('foo'));
734 unittest.expect(o[1], unittest.equals('foo')); 734 unittest.expect(o[1], unittest.equals('foo'));
735 } 735 }
736 736
737 buildUnnamed622() { 737 buildUnnamed1059() {
738 var o = new core.List<core.String>(); 738 var o = new core.List<core.String>();
739 o.add("foo"); 739 o.add("foo");
740 o.add("foo"); 740 o.add("foo");
741 return o; 741 return o;
742 } 742 }
743 743
744 checkUnnamed622(core.List<core.String> o) { 744 checkUnnamed1059(core.List<core.String> o) {
745 unittest.expect(o, unittest.hasLength(2)); 745 unittest.expect(o, unittest.hasLength(2));
746 unittest.expect(o[0], unittest.equals('foo')); 746 unittest.expect(o[0], unittest.equals('foo'));
747 unittest.expect(o[1], unittest.equals('foo')); 747 unittest.expect(o[1], unittest.equals('foo'));
748 } 748 }
749 749
750 buildUnnamed623() { 750 buildUnnamed1060() {
751 var o = new core.List<core.String>(); 751 var o = new core.List<core.String>();
752 o.add("foo"); 752 o.add("foo");
753 o.add("foo"); 753 o.add("foo");
754 return o; 754 return o;
755 } 755 }
756 756
757 checkUnnamed623(core.List<core.String> o) { 757 checkUnnamed1060(core.List<core.String> o) {
758 unittest.expect(o, unittest.hasLength(2)); 758 unittest.expect(o, unittest.hasLength(2));
759 unittest.expect(o[0], unittest.equals('foo')); 759 unittest.expect(o[0], unittest.equals('foo'));
760 unittest.expect(o[1], unittest.equals('foo')); 760 unittest.expect(o[1], unittest.equals('foo'));
761 } 761 }
762 762
763 buildUnnamed624() { 763 buildUnnamed1061() {
764 var o = new core.List<core.String>(); 764 var o = new core.List<core.String>();
765 o.add("foo"); 765 o.add("foo");
766 o.add("foo"); 766 o.add("foo");
767 return o; 767 return o;
768 } 768 }
769 769
770 checkUnnamed624(core.List<core.String> o) { 770 checkUnnamed1061(core.List<core.String> o) {
771 unittest.expect(o, unittest.hasLength(2)); 771 unittest.expect(o, unittest.hasLength(2));
772 unittest.expect(o[0], unittest.equals('foo')); 772 unittest.expect(o[0], unittest.equals('foo'));
773 unittest.expect(o[1], unittest.equals('foo')); 773 unittest.expect(o[1], unittest.equals('foo'));
774 } 774 }
775 775
776 buildUnnamed625() { 776 buildUnnamed1062() {
777 var o = new core.List<core.String>(); 777 var o = new core.List<core.String>();
778 o.add("foo"); 778 o.add("foo");
779 o.add("foo"); 779 o.add("foo");
780 return o; 780 return o;
781 } 781 }
782 782
783 checkUnnamed625(core.List<core.String> o) { 783 checkUnnamed1062(core.List<core.String> o) {
784 unittest.expect(o, unittest.hasLength(2)); 784 unittest.expect(o, unittest.hasLength(2));
785 unittest.expect(o[0], unittest.equals('foo')); 785 unittest.expect(o[0], unittest.equals('foo'));
786 unittest.expect(o[1], unittest.equals('foo')); 786 unittest.expect(o[1], unittest.equals('foo'));
787 } 787 }
788 788
789 buildUnnamed626() { 789 buildUnnamed1063() {
790 var o = new core.List<core.String>(); 790 var o = new core.List<core.String>();
791 o.add("foo"); 791 o.add("foo");
792 o.add("foo"); 792 o.add("foo");
793 return o; 793 return o;
794 } 794 }
795 795
796 checkUnnamed626(core.List<core.String> o) { 796 checkUnnamed1063(core.List<core.String> o) {
797 unittest.expect(o, unittest.hasLength(2)); 797 unittest.expect(o, unittest.hasLength(2));
798 unittest.expect(o[0], unittest.equals('foo')); 798 unittest.expect(o[0], unittest.equals('foo'));
799 unittest.expect(o[1], unittest.equals('foo')); 799 unittest.expect(o[1], unittest.equals('foo'));
800 } 800 }
801 801
802 buildUnnamed627() { 802 buildUnnamed1064() {
803 var o = new core.List<core.String>(); 803 var o = new core.List<core.String>();
804 o.add("foo"); 804 o.add("foo");
805 o.add("foo"); 805 o.add("foo");
806 return o; 806 return o;
807 } 807 }
808 808
809 checkUnnamed627(core.List<core.String> o) { 809 checkUnnamed1064(core.List<core.String> o) {
810 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
811 unittest.expect(o[0], unittest.equals('foo')); 811 unittest.expect(o[0], unittest.equals('foo'));
812 unittest.expect(o[1], unittest.equals('foo')); 812 unittest.expect(o[1], unittest.equals('foo'));
813 } 813 }
814 814
815 buildUnnamed628() { 815 buildUnnamed1065() {
816 var o = new core.List<core.String>(); 816 var o = new core.List<core.String>();
817 o.add("foo"); 817 o.add("foo");
818 o.add("foo"); 818 o.add("foo");
819 return o; 819 return o;
820 } 820 }
821 821
822 checkUnnamed628(core.List<core.String> o) { 822 checkUnnamed1065(core.List<core.String> o) {
823 unittest.expect(o, unittest.hasLength(2)); 823 unittest.expect(o, unittest.hasLength(2));
824 unittest.expect(o[0], unittest.equals('foo')); 824 unittest.expect(o[0], unittest.equals('foo'));
825 unittest.expect(o[1], unittest.equals('foo')); 825 unittest.expect(o[1], unittest.equals('foo'));
826 } 826 }
827 827
828 828
829 main() { 829 main() {
830 unittest.group("obj-schema-Account", () { 830 unittest.group("obj-schema-Account", () {
831 unittest.test("to-json--from-json", () { 831 unittest.test("to-json--from-json", () {
832 var o = buildAccount(); 832 var o = buildAccount();
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 }), true); 1054 }), true);
1055 res.get(arg_accountId).then(unittest.expectAsync(((api.Account response) { 1055 res.get(arg_accountId).then(unittest.expectAsync(((api.Account response) {
1056 checkAccount(response); 1056 checkAccount(response);
1057 }))); 1057 })));
1058 }); 1058 });
1059 1059
1060 unittest.test("method--list", () { 1060 unittest.test("method--list", () {
1061 1061
1062 var mock = new common_test.HttpServerMock(); 1062 var mock = new common_test.HttpServerMock();
1063 api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; 1063 api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts;
1064 var arg_filterAdClientId = buildUnnamed618(); 1064 var arg_filterAdClientId = buildUnnamed1055();
1065 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1065 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1066 var path = (req.url).path; 1066 var path = (req.url).path;
1067 var pathOffset = 0; 1067 var pathOffset = 0;
1068 var index; 1068 var index;
1069 var subPart; 1069 var subPart;
1070 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1070 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1071 pathOffset += 1; 1071 pathOffset += 1;
1072 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1072 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1073 pathOffset += 17; 1073 pathOffset += 17;
1074 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("accounts")); 1074 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("accounts"));
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 }))); 1356 })));
1357 }); 1357 });
1358 1358
1359 unittest.test("method--getAdCode", () { 1359 unittest.test("method--getAdCode", () {
1360 1360
1361 var mock = new common_test.HttpServerMock(); 1361 var mock = new common_test.HttpServerMock();
1362 api.AccountsAdunitsResourceApi res = new api.AdsensehostApi(mock).accounts .adunits; 1362 api.AccountsAdunitsResourceApi res = new api.AdsensehostApi(mock).accounts .adunits;
1363 var arg_accountId = "foo"; 1363 var arg_accountId = "foo";
1364 var arg_adClientId = "foo"; 1364 var arg_adClientId = "foo";
1365 var arg_adUnitId = "foo"; 1365 var arg_adUnitId = "foo";
1366 var arg_hostCustomChannelId = buildUnnamed619(); 1366 var arg_hostCustomChannelId = buildUnnamed1056();
1367 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1367 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1368 var path = (req.url).path; 1368 var path = (req.url).path;
1369 var pathOffset = 0; 1369 var pathOffset = 0;
1370 var index; 1370 var index;
1371 var subPart; 1371 var subPart;
1372 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1372 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1373 pathOffset += 1; 1373 pathOffset += 1;
1374 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1374 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1375 pathOffset += 17; 1375 pathOffset += 17;
1376 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("accounts/")); 1376 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("accounts/"));
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 1695
1696 1696
1697 unittest.group("resource-AccountsReportsResourceApi", () { 1697 unittest.group("resource-AccountsReportsResourceApi", () {
1698 unittest.test("method--generate", () { 1698 unittest.test("method--generate", () {
1699 1699
1700 var mock = new common_test.HttpServerMock(); 1700 var mock = new common_test.HttpServerMock();
1701 api.AccountsReportsResourceApi res = new api.AdsensehostApi(mock).accounts .reports; 1701 api.AccountsReportsResourceApi res = new api.AdsensehostApi(mock).accounts .reports;
1702 var arg_accountId = "foo"; 1702 var arg_accountId = "foo";
1703 var arg_startDate = "foo"; 1703 var arg_startDate = "foo";
1704 var arg_endDate = "foo"; 1704 var arg_endDate = "foo";
1705 var arg_dimension = buildUnnamed620(); 1705 var arg_dimension = buildUnnamed1057();
1706 var arg_filter = buildUnnamed621(); 1706 var arg_filter = buildUnnamed1058();
1707 var arg_locale = "foo"; 1707 var arg_locale = "foo";
1708 var arg_maxResults = 42; 1708 var arg_maxResults = 42;
1709 var arg_metric = buildUnnamed622(); 1709 var arg_metric = buildUnnamed1059();
1710 var arg_sort = buildUnnamed623(); 1710 var arg_sort = buildUnnamed1060();
1711 var arg_startIndex = 42; 1711 var arg_startIndex = 42;
1712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1712 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1713 var path = (req.url).path; 1713 var path = (req.url).path;
1714 var pathOffset = 0; 1714 var pathOffset = 0;
1715 var index; 1715 var index;
1716 var subPart; 1716 var subPart;
1717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1718 pathOffset += 1; 1718 pathOffset += 1;
1719 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 1719 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
1720 pathOffset += 17; 1720 pathOffset += 17;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 }); 1869 });
1870 1870
1871 }); 1871 });
1872 1872
1873 1873
1874 unittest.group("resource-AssociationsessionsResourceApi", () { 1874 unittest.group("resource-AssociationsessionsResourceApi", () {
1875 unittest.test("method--start", () { 1875 unittest.test("method--start", () {
1876 1876
1877 var mock = new common_test.HttpServerMock(); 1877 var mock = new common_test.HttpServerMock();
1878 api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).asso ciationsessions; 1878 api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).asso ciationsessions;
1879 var arg_productCode = buildUnnamed624(); 1879 var arg_productCode = buildUnnamed1061();
1880 var arg_websiteUrl = "foo"; 1880 var arg_websiteUrl = "foo";
1881 var arg_userLocale = "foo"; 1881 var arg_userLocale = "foo";
1882 var arg_websiteLocale = "foo"; 1882 var arg_websiteLocale = "foo";
1883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1883 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1884 var path = (req.url).path; 1884 var path = (req.url).path;
1885 var pathOffset = 0; 1885 var pathOffset = 0;
1886 var index; 1886 var index;
1887 var subPart; 1887 var subPart;
1888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1889 pathOffset += 1; 1889 pathOffset += 1;
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 }); 2323 });
2324 2324
2325 2325
2326 unittest.group("resource-ReportsResourceApi", () { 2326 unittest.group("resource-ReportsResourceApi", () {
2327 unittest.test("method--generate", () { 2327 unittest.test("method--generate", () {
2328 2328
2329 var mock = new common_test.HttpServerMock(); 2329 var mock = new common_test.HttpServerMock();
2330 api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; 2330 api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports;
2331 var arg_startDate = "foo"; 2331 var arg_startDate = "foo";
2332 var arg_endDate = "foo"; 2332 var arg_endDate = "foo";
2333 var arg_dimension = buildUnnamed625(); 2333 var arg_dimension = buildUnnamed1062();
2334 var arg_filter = buildUnnamed626(); 2334 var arg_filter = buildUnnamed1063();
2335 var arg_locale = "foo"; 2335 var arg_locale = "foo";
2336 var arg_maxResults = 42; 2336 var arg_maxResults = 42;
2337 var arg_metric = buildUnnamed627(); 2337 var arg_metric = buildUnnamed1064();
2338 var arg_sort = buildUnnamed628(); 2338 var arg_sort = buildUnnamed1065();
2339 var arg_startIndex = 42; 2339 var arg_startIndex = 42;
2340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2340 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2341 var path = (req.url).path; 2341 var path = (req.url).path;
2342 var pathOffset = 0; 2342 var pathOffset = 0;
2343 var index; 2343 var index;
2344 var subPart; 2344 var subPart;
2345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2346 pathOffset += 1; 2346 pathOffset += 1;
2347 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/")); 2347 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("adsensehost/v4.1/"));
2348 pathOffset += 17; 2348 pathOffset += 17;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) { 2560 res.list(arg_adClientId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.UrlChannels response) {
2561 checkUrlChannels(response); 2561 checkUrlChannels(response);
2562 }))); 2562 })));
2563 }); 2563 });
2564 2564
2565 }); 2565 });
2566 2566
2567 2567
2568 } 2568 }
2569 2569
OLDNEW
« no previous file with comments | « generated/googleapis/test/adsense/v1_4_test.dart ('k') | generated/googleapis/test/analytics/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698