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

Side by Side Diff: generated/googleapis/test/sheets/v4_test.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 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.sheets.v4.test; 1 library googleapis.sheets.v4.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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 255 }
256 256
257 checkAddSheetResponse(api.AddSheetResponse o) { 257 checkAddSheetResponse(api.AddSheetResponse o) {
258 buildCounterAddSheetResponse++; 258 buildCounterAddSheetResponse++;
259 if (buildCounterAddSheetResponse < 3) { 259 if (buildCounterAddSheetResponse < 3) {
260 checkSheetProperties(o.properties); 260 checkSheetProperties(o.properties);
261 } 261 }
262 buildCounterAddSheetResponse--; 262 buildCounterAddSheetResponse--;
263 } 263 }
264 264
265 buildUnnamed582() { 265 buildUnnamed3154() {
266 var o = new core.List<api.RowData>(); 266 var o = new core.List<api.RowData>();
267 o.add(buildRowData()); 267 o.add(buildRowData());
268 o.add(buildRowData()); 268 o.add(buildRowData());
269 return o; 269 return o;
270 } 270 }
271 271
272 checkUnnamed582(core.List<api.RowData> o) { 272 checkUnnamed3154(core.List<api.RowData> o) {
273 unittest.expect(o, unittest.hasLength(2)); 273 unittest.expect(o, unittest.hasLength(2));
274 checkRowData(o[0]); 274 checkRowData(o[0]);
275 checkRowData(o[1]); 275 checkRowData(o[1]);
276 } 276 }
277 277
278 core.int buildCounterAppendCellsRequest = 0; 278 core.int buildCounterAppendCellsRequest = 0;
279 buildAppendCellsRequest() { 279 buildAppendCellsRequest() {
280 var o = new api.AppendCellsRequest(); 280 var o = new api.AppendCellsRequest();
281 buildCounterAppendCellsRequest++; 281 buildCounterAppendCellsRequest++;
282 if (buildCounterAppendCellsRequest < 3) { 282 if (buildCounterAppendCellsRequest < 3) {
283 o.fields = "foo"; 283 o.fields = "foo";
284 o.rows = buildUnnamed582(); 284 o.rows = buildUnnamed3154();
285 o.sheetId = 42; 285 o.sheetId = 42;
286 } 286 }
287 buildCounterAppendCellsRequest--; 287 buildCounterAppendCellsRequest--;
288 return o; 288 return o;
289 } 289 }
290 290
291 checkAppendCellsRequest(api.AppendCellsRequest o) { 291 checkAppendCellsRequest(api.AppendCellsRequest o) {
292 buildCounterAppendCellsRequest++; 292 buildCounterAppendCellsRequest++;
293 if (buildCounterAppendCellsRequest < 3) { 293 if (buildCounterAppendCellsRequest < 3) {
294 unittest.expect(o.fields, unittest.equals('foo')); 294 unittest.expect(o.fields, unittest.equals('foo'));
295 checkUnnamed582(o.rows); 295 checkUnnamed3154(o.rows);
296 unittest.expect(o.sheetId, unittest.equals(42)); 296 unittest.expect(o.sheetId, unittest.equals(42));
297 } 297 }
298 buildCounterAppendCellsRequest--; 298 buildCounterAppendCellsRequest--;
299 } 299 }
300 300
301 core.int buildCounterAppendDimensionRequest = 0; 301 core.int buildCounterAppendDimensionRequest = 0;
302 buildAppendDimensionRequest() { 302 buildAppendDimensionRequest() {
303 var o = new api.AppendDimensionRequest(); 303 var o = new api.AppendDimensionRequest();
304 buildCounterAppendDimensionRequest++; 304 buildCounterAppendDimensionRequest++;
305 if (buildCounterAppendDimensionRequest < 3) { 305 if (buildCounterAppendDimensionRequest < 3) {
306 o.dimension = "foo"; 306 o.dimension = "foo";
307 o.length = 42; 307 o.length = 42;
308 o.sheetId = 42; 308 o.sheetId = 42;
309 } 309 }
310 buildCounterAppendDimensionRequest--; 310 buildCounterAppendDimensionRequest--;
311 return o; 311 return o;
312 } 312 }
313 313
314 checkAppendDimensionRequest(api.AppendDimensionRequest o) { 314 checkAppendDimensionRequest(api.AppendDimensionRequest o) {
315 buildCounterAppendDimensionRequest++; 315 buildCounterAppendDimensionRequest++;
316 if (buildCounterAppendDimensionRequest < 3) { 316 if (buildCounterAppendDimensionRequest < 3) {
317 unittest.expect(o.dimension, unittest.equals('foo')); 317 unittest.expect(o.dimension, unittest.equals('foo'));
318 unittest.expect(o.length, unittest.equals(42)); 318 unittest.expect(o.length, unittest.equals(42));
319 unittest.expect(o.sheetId, unittest.equals(42)); 319 unittest.expect(o.sheetId, unittest.equals(42));
320 } 320 }
321 buildCounterAppendDimensionRequest--; 321 buildCounterAppendDimensionRequest--;
322 } 322 }
323 323
324 core.int buildCounterAppendValuesResponse = 0;
325 buildAppendValuesResponse() {
326 var o = new api.AppendValuesResponse();
327 buildCounterAppendValuesResponse++;
328 if (buildCounterAppendValuesResponse < 3) {
329 o.spreadsheetId = "foo";
330 o.tableRange = "foo";
331 o.updates = buildUpdateValuesResponse();
332 }
333 buildCounterAppendValuesResponse--;
334 return o;
335 }
336
337 checkAppendValuesResponse(api.AppendValuesResponse o) {
338 buildCounterAppendValuesResponse++;
339 if (buildCounterAppendValuesResponse < 3) {
340 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
341 unittest.expect(o.tableRange, unittest.equals('foo'));
342 checkUpdateValuesResponse(o.updates);
343 }
344 buildCounterAppendValuesResponse--;
345 }
346
324 core.int buildCounterAutoFillRequest = 0; 347 core.int buildCounterAutoFillRequest = 0;
325 buildAutoFillRequest() { 348 buildAutoFillRequest() {
326 var o = new api.AutoFillRequest(); 349 var o = new api.AutoFillRequest();
327 buildCounterAutoFillRequest++; 350 buildCounterAutoFillRequest++;
328 if (buildCounterAutoFillRequest < 3) { 351 if (buildCounterAutoFillRequest < 3) {
329 o.range = buildGridRange(); 352 o.range = buildGridRange();
330 o.sourceAndDestination = buildSourceAndDestination(); 353 o.sourceAndDestination = buildSourceAndDestination();
331 o.useAlternateSeries = true; 354 o.useAlternateSeries = true;
332 } 355 }
333 buildCounterAutoFillRequest--; 356 buildCounterAutoFillRequest--;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 checkBasicChartSeries(api.BasicChartSeries o) { 444 checkBasicChartSeries(api.BasicChartSeries o) {
422 buildCounterBasicChartSeries++; 445 buildCounterBasicChartSeries++;
423 if (buildCounterBasicChartSeries < 3) { 446 if (buildCounterBasicChartSeries < 3) {
424 checkChartData(o.series); 447 checkChartData(o.series);
425 unittest.expect(o.targetAxis, unittest.equals('foo')); 448 unittest.expect(o.targetAxis, unittest.equals('foo'));
426 unittest.expect(o.type, unittest.equals('foo')); 449 unittest.expect(o.type, unittest.equals('foo'));
427 } 450 }
428 buildCounterBasicChartSeries--; 451 buildCounterBasicChartSeries--;
429 } 452 }
430 453
431 buildUnnamed583() { 454 buildUnnamed3155() {
432 var o = new core.List<api.BasicChartAxis>(); 455 var o = new core.List<api.BasicChartAxis>();
433 o.add(buildBasicChartAxis()); 456 o.add(buildBasicChartAxis());
434 o.add(buildBasicChartAxis()); 457 o.add(buildBasicChartAxis());
435 return o; 458 return o;
436 } 459 }
437 460
438 checkUnnamed583(core.List<api.BasicChartAxis> o) { 461 checkUnnamed3155(core.List<api.BasicChartAxis> o) {
439 unittest.expect(o, unittest.hasLength(2)); 462 unittest.expect(o, unittest.hasLength(2));
440 checkBasicChartAxis(o[0]); 463 checkBasicChartAxis(o[0]);
441 checkBasicChartAxis(o[1]); 464 checkBasicChartAxis(o[1]);
442 } 465 }
443 466
444 buildUnnamed584() { 467 buildUnnamed3156() {
445 var o = new core.List<api.BasicChartDomain>(); 468 var o = new core.List<api.BasicChartDomain>();
446 o.add(buildBasicChartDomain()); 469 o.add(buildBasicChartDomain());
447 o.add(buildBasicChartDomain()); 470 o.add(buildBasicChartDomain());
448 return o; 471 return o;
449 } 472 }
450 473
451 checkUnnamed584(core.List<api.BasicChartDomain> o) { 474 checkUnnamed3156(core.List<api.BasicChartDomain> o) {
452 unittest.expect(o, unittest.hasLength(2)); 475 unittest.expect(o, unittest.hasLength(2));
453 checkBasicChartDomain(o[0]); 476 checkBasicChartDomain(o[0]);
454 checkBasicChartDomain(o[1]); 477 checkBasicChartDomain(o[1]);
455 } 478 }
456 479
457 buildUnnamed585() { 480 buildUnnamed3157() {
458 var o = new core.List<api.BasicChartSeries>(); 481 var o = new core.List<api.BasicChartSeries>();
459 o.add(buildBasicChartSeries()); 482 o.add(buildBasicChartSeries());
460 o.add(buildBasicChartSeries()); 483 o.add(buildBasicChartSeries());
461 return o; 484 return o;
462 } 485 }
463 486
464 checkUnnamed585(core.List<api.BasicChartSeries> o) { 487 checkUnnamed3157(core.List<api.BasicChartSeries> o) {
465 unittest.expect(o, unittest.hasLength(2)); 488 unittest.expect(o, unittest.hasLength(2));
466 checkBasicChartSeries(o[0]); 489 checkBasicChartSeries(o[0]);
467 checkBasicChartSeries(o[1]); 490 checkBasicChartSeries(o[1]);
468 } 491 }
469 492
470 core.int buildCounterBasicChartSpec = 0; 493 core.int buildCounterBasicChartSpec = 0;
471 buildBasicChartSpec() { 494 buildBasicChartSpec() {
472 var o = new api.BasicChartSpec(); 495 var o = new api.BasicChartSpec();
473 buildCounterBasicChartSpec++; 496 buildCounterBasicChartSpec++;
474 if (buildCounterBasicChartSpec < 3) { 497 if (buildCounterBasicChartSpec < 3) {
475 o.axis = buildUnnamed583(); 498 o.axis = buildUnnamed3155();
476 o.chartType = "foo"; 499 o.chartType = "foo";
477 o.domains = buildUnnamed584(); 500 o.domains = buildUnnamed3156();
478 o.headerCount = 42; 501 o.headerCount = 42;
479 o.legendPosition = "foo"; 502 o.legendPosition = "foo";
480 o.series = buildUnnamed585(); 503 o.series = buildUnnamed3157();
481 } 504 }
482 buildCounterBasicChartSpec--; 505 buildCounterBasicChartSpec--;
483 return o; 506 return o;
484 } 507 }
485 508
486 checkBasicChartSpec(api.BasicChartSpec o) { 509 checkBasicChartSpec(api.BasicChartSpec o) {
487 buildCounterBasicChartSpec++; 510 buildCounterBasicChartSpec++;
488 if (buildCounterBasicChartSpec < 3) { 511 if (buildCounterBasicChartSpec < 3) {
489 checkUnnamed583(o.axis); 512 checkUnnamed3155(o.axis);
490 unittest.expect(o.chartType, unittest.equals('foo')); 513 unittest.expect(o.chartType, unittest.equals('foo'));
491 checkUnnamed584(o.domains); 514 checkUnnamed3156(o.domains);
492 unittest.expect(o.headerCount, unittest.equals(42)); 515 unittest.expect(o.headerCount, unittest.equals(42));
493 unittest.expect(o.legendPosition, unittest.equals('foo')); 516 unittest.expect(o.legendPosition, unittest.equals('foo'));
494 checkUnnamed585(o.series); 517 checkUnnamed3157(o.series);
495 } 518 }
496 buildCounterBasicChartSpec--; 519 buildCounterBasicChartSpec--;
497 } 520 }
498 521
499 buildUnnamed586() { 522 buildUnnamed3158() {
500 var o = new core.Map<core.String, api.FilterCriteria>(); 523 var o = new core.Map<core.String, api.FilterCriteria>();
501 o["x"] = buildFilterCriteria(); 524 o["x"] = buildFilterCriteria();
502 o["y"] = buildFilterCriteria(); 525 o["y"] = buildFilterCriteria();
503 return o; 526 return o;
504 } 527 }
505 528
506 checkUnnamed586(core.Map<core.String, api.FilterCriteria> o) { 529 checkUnnamed3158(core.Map<core.String, api.FilterCriteria> o) {
507 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
508 checkFilterCriteria(o["x"]); 531 checkFilterCriteria(o["x"]);
509 checkFilterCriteria(o["y"]); 532 checkFilterCriteria(o["y"]);
510 } 533 }
511 534
512 buildUnnamed587() { 535 buildUnnamed3159() {
513 var o = new core.List<api.SortSpec>(); 536 var o = new core.List<api.SortSpec>();
514 o.add(buildSortSpec()); 537 o.add(buildSortSpec());
515 o.add(buildSortSpec()); 538 o.add(buildSortSpec());
516 return o; 539 return o;
517 } 540 }
518 541
519 checkUnnamed587(core.List<api.SortSpec> o) { 542 checkUnnamed3159(core.List<api.SortSpec> o) {
520 unittest.expect(o, unittest.hasLength(2)); 543 unittest.expect(o, unittest.hasLength(2));
521 checkSortSpec(o[0]); 544 checkSortSpec(o[0]);
522 checkSortSpec(o[1]); 545 checkSortSpec(o[1]);
523 } 546 }
524 547
525 core.int buildCounterBasicFilter = 0; 548 core.int buildCounterBasicFilter = 0;
526 buildBasicFilter() { 549 buildBasicFilter() {
527 var o = new api.BasicFilter(); 550 var o = new api.BasicFilter();
528 buildCounterBasicFilter++; 551 buildCounterBasicFilter++;
529 if (buildCounterBasicFilter < 3) { 552 if (buildCounterBasicFilter < 3) {
530 o.criteria = buildUnnamed586(); 553 o.criteria = buildUnnamed3158();
531 o.range = buildGridRange(); 554 o.range = buildGridRange();
532 o.sortSpecs = buildUnnamed587(); 555 o.sortSpecs = buildUnnamed3159();
533 } 556 }
534 buildCounterBasicFilter--; 557 buildCounterBasicFilter--;
535 return o; 558 return o;
536 } 559 }
537 560
538 checkBasicFilter(api.BasicFilter o) { 561 checkBasicFilter(api.BasicFilter o) {
539 buildCounterBasicFilter++; 562 buildCounterBasicFilter++;
540 if (buildCounterBasicFilter < 3) { 563 if (buildCounterBasicFilter < 3) {
541 checkUnnamed586(o.criteria); 564 checkUnnamed3158(o.criteria);
542 checkGridRange(o.range); 565 checkGridRange(o.range);
543 checkUnnamed587(o.sortSpecs); 566 checkUnnamed3159(o.sortSpecs);
544 } 567 }
545 buildCounterBasicFilter--; 568 buildCounterBasicFilter--;
546 } 569 }
547 570
548 buildUnnamed588() { 571 buildUnnamed3160() {
549 var o = new core.List<api.ValueRange>(); 572 var o = new core.List<api.ValueRange>();
550 o.add(buildValueRange()); 573 o.add(buildValueRange());
551 o.add(buildValueRange()); 574 o.add(buildValueRange());
552 return o; 575 return o;
553 } 576 }
554 577
555 checkUnnamed588(core.List<api.ValueRange> o) { 578 checkUnnamed3160(core.List<api.ValueRange> o) {
556 unittest.expect(o, unittest.hasLength(2)); 579 unittest.expect(o, unittest.hasLength(2));
557 checkValueRange(o[0]); 580 checkValueRange(o[0]);
558 checkValueRange(o[1]); 581 checkValueRange(o[1]);
559 } 582 }
560 583
561 core.int buildCounterBatchGetValuesResponse = 0; 584 core.int buildCounterBatchGetValuesResponse = 0;
562 buildBatchGetValuesResponse() { 585 buildBatchGetValuesResponse() {
563 var o = new api.BatchGetValuesResponse(); 586 var o = new api.BatchGetValuesResponse();
564 buildCounterBatchGetValuesResponse++; 587 buildCounterBatchGetValuesResponse++;
565 if (buildCounterBatchGetValuesResponse < 3) { 588 if (buildCounterBatchGetValuesResponse < 3) {
566 o.spreadsheetId = "foo"; 589 o.spreadsheetId = "foo";
567 o.valueRanges = buildUnnamed588(); 590 o.valueRanges = buildUnnamed3160();
568 } 591 }
569 buildCounterBatchGetValuesResponse--; 592 buildCounterBatchGetValuesResponse--;
570 return o; 593 return o;
571 } 594 }
572 595
573 checkBatchGetValuesResponse(api.BatchGetValuesResponse o) { 596 checkBatchGetValuesResponse(api.BatchGetValuesResponse o) {
574 buildCounterBatchGetValuesResponse++; 597 buildCounterBatchGetValuesResponse++;
575 if (buildCounterBatchGetValuesResponse < 3) { 598 if (buildCounterBatchGetValuesResponse < 3) {
576 unittest.expect(o.spreadsheetId, unittest.equals('foo')); 599 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
577 checkUnnamed588(o.valueRanges); 600 checkUnnamed3160(o.valueRanges);
578 } 601 }
579 buildCounterBatchGetValuesResponse--; 602 buildCounterBatchGetValuesResponse--;
580 } 603 }
581 604
582 buildUnnamed589() { 605 buildUnnamed3161() {
583 var o = new core.List<api.Request>(); 606 var o = new core.List<api.Request>();
584 o.add(buildRequest()); 607 o.add(buildRequest());
585 o.add(buildRequest()); 608 o.add(buildRequest());
586 return o; 609 return o;
587 } 610 }
588 611
589 checkUnnamed589(core.List<api.Request> o) { 612 checkUnnamed3161(core.List<api.Request> o) {
590 unittest.expect(o, unittest.hasLength(2)); 613 unittest.expect(o, unittest.hasLength(2));
591 checkRequest(o[0]); 614 checkRequest(o[0]);
592 checkRequest(o[1]); 615 checkRequest(o[1]);
593 } 616 }
594 617
595 core.int buildCounterBatchUpdateSpreadsheetRequest = 0; 618 core.int buildCounterBatchUpdateSpreadsheetRequest = 0;
596 buildBatchUpdateSpreadsheetRequest() { 619 buildBatchUpdateSpreadsheetRequest() {
597 var o = new api.BatchUpdateSpreadsheetRequest(); 620 var o = new api.BatchUpdateSpreadsheetRequest();
598 buildCounterBatchUpdateSpreadsheetRequest++; 621 buildCounterBatchUpdateSpreadsheetRequest++;
599 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { 622 if (buildCounterBatchUpdateSpreadsheetRequest < 3) {
600 o.requests = buildUnnamed589(); 623 o.requests = buildUnnamed3161();
601 } 624 }
602 buildCounterBatchUpdateSpreadsheetRequest--; 625 buildCounterBatchUpdateSpreadsheetRequest--;
603 return o; 626 return o;
604 } 627 }
605 628
606 checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { 629 checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) {
607 buildCounterBatchUpdateSpreadsheetRequest++; 630 buildCounterBatchUpdateSpreadsheetRequest++;
608 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { 631 if (buildCounterBatchUpdateSpreadsheetRequest < 3) {
609 checkUnnamed589(o.requests); 632 checkUnnamed3161(o.requests);
610 } 633 }
611 buildCounterBatchUpdateSpreadsheetRequest--; 634 buildCounterBatchUpdateSpreadsheetRequest--;
612 } 635 }
613 636
614 buildUnnamed590() { 637 buildUnnamed3162() {
615 var o = new core.List<api.Response>(); 638 var o = new core.List<api.Response>();
616 o.add(buildResponse()); 639 o.add(buildResponse());
617 o.add(buildResponse()); 640 o.add(buildResponse());
618 return o; 641 return o;
619 } 642 }
620 643
621 checkUnnamed590(core.List<api.Response> o) { 644 checkUnnamed3162(core.List<api.Response> o) {
622 unittest.expect(o, unittest.hasLength(2)); 645 unittest.expect(o, unittest.hasLength(2));
623 checkResponse(o[0]); 646 checkResponse(o[0]);
624 checkResponse(o[1]); 647 checkResponse(o[1]);
625 } 648 }
626 649
627 core.int buildCounterBatchUpdateSpreadsheetResponse = 0; 650 core.int buildCounterBatchUpdateSpreadsheetResponse = 0;
628 buildBatchUpdateSpreadsheetResponse() { 651 buildBatchUpdateSpreadsheetResponse() {
629 var o = new api.BatchUpdateSpreadsheetResponse(); 652 var o = new api.BatchUpdateSpreadsheetResponse();
630 buildCounterBatchUpdateSpreadsheetResponse++; 653 buildCounterBatchUpdateSpreadsheetResponse++;
631 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { 654 if (buildCounterBatchUpdateSpreadsheetResponse < 3) {
632 o.replies = buildUnnamed590(); 655 o.replies = buildUnnamed3162();
633 o.spreadsheetId = "foo"; 656 o.spreadsheetId = "foo";
634 } 657 }
635 buildCounterBatchUpdateSpreadsheetResponse--; 658 buildCounterBatchUpdateSpreadsheetResponse--;
636 return o; 659 return o;
637 } 660 }
638 661
639 checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { 662 checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) {
640 buildCounterBatchUpdateSpreadsheetResponse++; 663 buildCounterBatchUpdateSpreadsheetResponse++;
641 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { 664 if (buildCounterBatchUpdateSpreadsheetResponse < 3) {
642 checkUnnamed590(o.replies); 665 checkUnnamed3162(o.replies);
643 unittest.expect(o.spreadsheetId, unittest.equals('foo')); 666 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
644 } 667 }
645 buildCounterBatchUpdateSpreadsheetResponse--; 668 buildCounterBatchUpdateSpreadsheetResponse--;
646 } 669 }
647 670
648 buildUnnamed591() { 671 buildUnnamed3163() {
649 var o = new core.List<api.ValueRange>(); 672 var o = new core.List<api.ValueRange>();
650 o.add(buildValueRange()); 673 o.add(buildValueRange());
651 o.add(buildValueRange()); 674 o.add(buildValueRange());
652 return o; 675 return o;
653 } 676 }
654 677
655 checkUnnamed591(core.List<api.ValueRange> o) { 678 checkUnnamed3163(core.List<api.ValueRange> o) {
656 unittest.expect(o, unittest.hasLength(2)); 679 unittest.expect(o, unittest.hasLength(2));
657 checkValueRange(o[0]); 680 checkValueRange(o[0]);
658 checkValueRange(o[1]); 681 checkValueRange(o[1]);
659 } 682 }
660 683
661 core.int buildCounterBatchUpdateValuesRequest = 0; 684 core.int buildCounterBatchUpdateValuesRequest = 0;
662 buildBatchUpdateValuesRequest() { 685 buildBatchUpdateValuesRequest() {
663 var o = new api.BatchUpdateValuesRequest(); 686 var o = new api.BatchUpdateValuesRequest();
664 buildCounterBatchUpdateValuesRequest++; 687 buildCounterBatchUpdateValuesRequest++;
665 if (buildCounterBatchUpdateValuesRequest < 3) { 688 if (buildCounterBatchUpdateValuesRequest < 3) {
666 o.data = buildUnnamed591(); 689 o.data = buildUnnamed3163();
667 o.valueInputOption = "foo"; 690 o.valueInputOption = "foo";
668 } 691 }
669 buildCounterBatchUpdateValuesRequest--; 692 buildCounterBatchUpdateValuesRequest--;
670 return o; 693 return o;
671 } 694 }
672 695
673 checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { 696 checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) {
674 buildCounterBatchUpdateValuesRequest++; 697 buildCounterBatchUpdateValuesRequest++;
675 if (buildCounterBatchUpdateValuesRequest < 3) { 698 if (buildCounterBatchUpdateValuesRequest < 3) {
676 checkUnnamed591(o.data); 699 checkUnnamed3163(o.data);
677 unittest.expect(o.valueInputOption, unittest.equals('foo')); 700 unittest.expect(o.valueInputOption, unittest.equals('foo'));
678 } 701 }
679 buildCounterBatchUpdateValuesRequest--; 702 buildCounterBatchUpdateValuesRequest--;
680 } 703 }
681 704
682 buildUnnamed592() { 705 buildUnnamed3164() {
683 var o = new core.List<api.UpdateValuesResponse>(); 706 var o = new core.List<api.UpdateValuesResponse>();
684 o.add(buildUpdateValuesResponse()); 707 o.add(buildUpdateValuesResponse());
685 o.add(buildUpdateValuesResponse()); 708 o.add(buildUpdateValuesResponse());
686 return o; 709 return o;
687 } 710 }
688 711
689 checkUnnamed592(core.List<api.UpdateValuesResponse> o) { 712 checkUnnamed3164(core.List<api.UpdateValuesResponse> o) {
690 unittest.expect(o, unittest.hasLength(2)); 713 unittest.expect(o, unittest.hasLength(2));
691 checkUpdateValuesResponse(o[0]); 714 checkUpdateValuesResponse(o[0]);
692 checkUpdateValuesResponse(o[1]); 715 checkUpdateValuesResponse(o[1]);
693 } 716 }
694 717
695 core.int buildCounterBatchUpdateValuesResponse = 0; 718 core.int buildCounterBatchUpdateValuesResponse = 0;
696 buildBatchUpdateValuesResponse() { 719 buildBatchUpdateValuesResponse() {
697 var o = new api.BatchUpdateValuesResponse(); 720 var o = new api.BatchUpdateValuesResponse();
698 buildCounterBatchUpdateValuesResponse++; 721 buildCounterBatchUpdateValuesResponse++;
699 if (buildCounterBatchUpdateValuesResponse < 3) { 722 if (buildCounterBatchUpdateValuesResponse < 3) {
700 o.responses = buildUnnamed592(); 723 o.responses = buildUnnamed3164();
701 o.spreadsheetId = "foo"; 724 o.spreadsheetId = "foo";
702 o.totalUpdatedCells = 42; 725 o.totalUpdatedCells = 42;
703 o.totalUpdatedColumns = 42; 726 o.totalUpdatedColumns = 42;
704 o.totalUpdatedRows = 42; 727 o.totalUpdatedRows = 42;
705 o.totalUpdatedSheets = 42; 728 o.totalUpdatedSheets = 42;
706 } 729 }
707 buildCounterBatchUpdateValuesResponse--; 730 buildCounterBatchUpdateValuesResponse--;
708 return o; 731 return o;
709 } 732 }
710 733
711 checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { 734 checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) {
712 buildCounterBatchUpdateValuesResponse++; 735 buildCounterBatchUpdateValuesResponse++;
713 if (buildCounterBatchUpdateValuesResponse < 3) { 736 if (buildCounterBatchUpdateValuesResponse < 3) {
714 checkUnnamed592(o.responses); 737 checkUnnamed3164(o.responses);
715 unittest.expect(o.spreadsheetId, unittest.equals('foo')); 738 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
716 unittest.expect(o.totalUpdatedCells, unittest.equals(42)); 739 unittest.expect(o.totalUpdatedCells, unittest.equals(42));
717 unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); 740 unittest.expect(o.totalUpdatedColumns, unittest.equals(42));
718 unittest.expect(o.totalUpdatedRows, unittest.equals(42)); 741 unittest.expect(o.totalUpdatedRows, unittest.equals(42));
719 unittest.expect(o.totalUpdatedSheets, unittest.equals(42)); 742 unittest.expect(o.totalUpdatedSheets, unittest.equals(42));
720 } 743 }
721 buildCounterBatchUpdateValuesResponse--; 744 buildCounterBatchUpdateValuesResponse--;
722 } 745 }
723 746
724 buildUnnamed593() { 747 buildUnnamed3165() {
725 var o = new core.List<api.ConditionValue>(); 748 var o = new core.List<api.ConditionValue>();
726 o.add(buildConditionValue()); 749 o.add(buildConditionValue());
727 o.add(buildConditionValue()); 750 o.add(buildConditionValue());
728 return o; 751 return o;
729 } 752 }
730 753
731 checkUnnamed593(core.List<api.ConditionValue> o) { 754 checkUnnamed3165(core.List<api.ConditionValue> o) {
732 unittest.expect(o, unittest.hasLength(2)); 755 unittest.expect(o, unittest.hasLength(2));
733 checkConditionValue(o[0]); 756 checkConditionValue(o[0]);
734 checkConditionValue(o[1]); 757 checkConditionValue(o[1]);
735 } 758 }
736 759
737 core.int buildCounterBooleanCondition = 0; 760 core.int buildCounterBooleanCondition = 0;
738 buildBooleanCondition() { 761 buildBooleanCondition() {
739 var o = new api.BooleanCondition(); 762 var o = new api.BooleanCondition();
740 buildCounterBooleanCondition++; 763 buildCounterBooleanCondition++;
741 if (buildCounterBooleanCondition < 3) { 764 if (buildCounterBooleanCondition < 3) {
742 o.type = "foo"; 765 o.type = "foo";
743 o.values = buildUnnamed593(); 766 o.values = buildUnnamed3165();
744 } 767 }
745 buildCounterBooleanCondition--; 768 buildCounterBooleanCondition--;
746 return o; 769 return o;
747 } 770 }
748 771
749 checkBooleanCondition(api.BooleanCondition o) { 772 checkBooleanCondition(api.BooleanCondition o) {
750 buildCounterBooleanCondition++; 773 buildCounterBooleanCondition++;
751 if (buildCounterBooleanCondition < 3) { 774 if (buildCounterBooleanCondition < 3) {
752 unittest.expect(o.type, unittest.equals('foo')); 775 unittest.expect(o.type, unittest.equals('foo'));
753 checkUnnamed593(o.values); 776 checkUnnamed3165(o.values);
754 } 777 }
755 buildCounterBooleanCondition--; 778 buildCounterBooleanCondition--;
756 } 779 }
757 780
758 core.int buildCounterBooleanRule = 0; 781 core.int buildCounterBooleanRule = 0;
759 buildBooleanRule() { 782 buildBooleanRule() {
760 var o = new api.BooleanRule(); 783 var o = new api.BooleanRule();
761 buildCounterBooleanRule++; 784 buildCounterBooleanRule++;
762 if (buildCounterBooleanRule < 3) { 785 if (buildCounterBooleanRule < 3) {
763 o.condition = buildBooleanCondition(); 786 o.condition = buildBooleanCondition();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 buildCounterBorders++; 840 buildCounterBorders++;
818 if (buildCounterBorders < 3) { 841 if (buildCounterBorders < 3) {
819 checkBorder(o.bottom); 842 checkBorder(o.bottom);
820 checkBorder(o.left); 843 checkBorder(o.left);
821 checkBorder(o.right); 844 checkBorder(o.right);
822 checkBorder(o.top); 845 checkBorder(o.top);
823 } 846 }
824 buildCounterBorders--; 847 buildCounterBorders--;
825 } 848 }
826 849
827 buildUnnamed594() { 850 buildUnnamed3166() {
828 var o = new core.List<api.TextFormatRun>(); 851 var o = new core.List<api.TextFormatRun>();
829 o.add(buildTextFormatRun()); 852 o.add(buildTextFormatRun());
830 o.add(buildTextFormatRun()); 853 o.add(buildTextFormatRun());
831 return o; 854 return o;
832 } 855 }
833 856
834 checkUnnamed594(core.List<api.TextFormatRun> o) { 857 checkUnnamed3166(core.List<api.TextFormatRun> o) {
835 unittest.expect(o, unittest.hasLength(2)); 858 unittest.expect(o, unittest.hasLength(2));
836 checkTextFormatRun(o[0]); 859 checkTextFormatRun(o[0]);
837 checkTextFormatRun(o[1]); 860 checkTextFormatRun(o[1]);
838 } 861 }
839 862
840 core.int buildCounterCellData = 0; 863 core.int buildCounterCellData = 0;
841 buildCellData() { 864 buildCellData() {
842 var o = new api.CellData(); 865 var o = new api.CellData();
843 buildCounterCellData++; 866 buildCounterCellData++;
844 if (buildCounterCellData < 3) { 867 if (buildCounterCellData < 3) {
845 o.dataValidation = buildDataValidationRule(); 868 o.dataValidation = buildDataValidationRule();
846 o.effectiveFormat = buildCellFormat(); 869 o.effectiveFormat = buildCellFormat();
847 o.effectiveValue = buildExtendedValue(); 870 o.effectiveValue = buildExtendedValue();
848 o.formattedValue = "foo"; 871 o.formattedValue = "foo";
849 o.hyperlink = "foo"; 872 o.hyperlink = "foo";
850 o.note = "foo"; 873 o.note = "foo";
851 o.pivotTable = buildPivotTable(); 874 o.pivotTable = buildPivotTable();
852 o.textFormatRuns = buildUnnamed594(); 875 o.textFormatRuns = buildUnnamed3166();
853 o.userEnteredFormat = buildCellFormat(); 876 o.userEnteredFormat = buildCellFormat();
854 o.userEnteredValue = buildExtendedValue(); 877 o.userEnteredValue = buildExtendedValue();
855 } 878 }
856 buildCounterCellData--; 879 buildCounterCellData--;
857 return o; 880 return o;
858 } 881 }
859 882
860 checkCellData(api.CellData o) { 883 checkCellData(api.CellData o) {
861 buildCounterCellData++; 884 buildCounterCellData++;
862 if (buildCounterCellData < 3) { 885 if (buildCounterCellData < 3) {
863 checkDataValidationRule(o.dataValidation); 886 checkDataValidationRule(o.dataValidation);
864 checkCellFormat(o.effectiveFormat); 887 checkCellFormat(o.effectiveFormat);
865 checkExtendedValue(o.effectiveValue); 888 checkExtendedValue(o.effectiveValue);
866 unittest.expect(o.formattedValue, unittest.equals('foo')); 889 unittest.expect(o.formattedValue, unittest.equals('foo'));
867 unittest.expect(o.hyperlink, unittest.equals('foo')); 890 unittest.expect(o.hyperlink, unittest.equals('foo'));
868 unittest.expect(o.note, unittest.equals('foo')); 891 unittest.expect(o.note, unittest.equals('foo'));
869 checkPivotTable(o.pivotTable); 892 checkPivotTable(o.pivotTable);
870 checkUnnamed594(o.textFormatRuns); 893 checkUnnamed3166(o.textFormatRuns);
871 checkCellFormat(o.userEnteredFormat); 894 checkCellFormat(o.userEnteredFormat);
872 checkExtendedValue(o.userEnteredValue); 895 checkExtendedValue(o.userEnteredValue);
873 } 896 }
874 buildCounterCellData--; 897 buildCounterCellData--;
875 } 898 }
876 899
877 core.int buildCounterCellFormat = 0; 900 core.int buildCounterCellFormat = 0;
878 buildCellFormat() { 901 buildCellFormat() {
879 var o = new api.CellFormat(); 902 var o = new api.CellFormat();
880 buildCounterCellFormat++; 903 buildCounterCellFormat++;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 946 }
924 947
925 checkChartData(api.ChartData o) { 948 checkChartData(api.ChartData o) {
926 buildCounterChartData++; 949 buildCounterChartData++;
927 if (buildCounterChartData < 3) { 950 if (buildCounterChartData < 3) {
928 checkChartSourceRange(o.sourceRange); 951 checkChartSourceRange(o.sourceRange);
929 } 952 }
930 buildCounterChartData--; 953 buildCounterChartData--;
931 } 954 }
932 955
933 buildUnnamed595() { 956 buildUnnamed3167() {
934 var o = new core.List<api.GridRange>(); 957 var o = new core.List<api.GridRange>();
935 o.add(buildGridRange()); 958 o.add(buildGridRange());
936 o.add(buildGridRange()); 959 o.add(buildGridRange());
937 return o; 960 return o;
938 } 961 }
939 962
940 checkUnnamed595(core.List<api.GridRange> o) { 963 checkUnnamed3167(core.List<api.GridRange> o) {
941 unittest.expect(o, unittest.hasLength(2)); 964 unittest.expect(o, unittest.hasLength(2));
942 checkGridRange(o[0]); 965 checkGridRange(o[0]);
943 checkGridRange(o[1]); 966 checkGridRange(o[1]);
944 } 967 }
945 968
946 core.int buildCounterChartSourceRange = 0; 969 core.int buildCounterChartSourceRange = 0;
947 buildChartSourceRange() { 970 buildChartSourceRange() {
948 var o = new api.ChartSourceRange(); 971 var o = new api.ChartSourceRange();
949 buildCounterChartSourceRange++; 972 buildCounterChartSourceRange++;
950 if (buildCounterChartSourceRange < 3) { 973 if (buildCounterChartSourceRange < 3) {
951 o.sources = buildUnnamed595(); 974 o.sources = buildUnnamed3167();
952 } 975 }
953 buildCounterChartSourceRange--; 976 buildCounterChartSourceRange--;
954 return o; 977 return o;
955 } 978 }
956 979
957 checkChartSourceRange(api.ChartSourceRange o) { 980 checkChartSourceRange(api.ChartSourceRange o) {
958 buildCounterChartSourceRange++; 981 buildCounterChartSourceRange++;
959 if (buildCounterChartSourceRange < 3) { 982 if (buildCounterChartSourceRange < 3) {
960 checkUnnamed595(o.sources); 983 checkUnnamed3167(o.sources);
961 } 984 }
962 buildCounterChartSourceRange--; 985 buildCounterChartSourceRange--;
963 } 986 }
964 987
965 core.int buildCounterChartSpec = 0; 988 core.int buildCounterChartSpec = 0;
966 buildChartSpec() { 989 buildChartSpec() {
967 var o = new api.ChartSpec(); 990 var o = new api.ChartSpec();
968 buildCounterChartSpec++; 991 buildCounterChartSpec++;
969 if (buildCounterChartSpec < 3) { 992 if (buildCounterChartSpec < 3) {
970 o.basicChart = buildBasicChartSpec(); 993 o.basicChart = buildBasicChartSpec();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 1068
1046 checkConditionValue(api.ConditionValue o) { 1069 checkConditionValue(api.ConditionValue o) {
1047 buildCounterConditionValue++; 1070 buildCounterConditionValue++;
1048 if (buildCounterConditionValue < 3) { 1071 if (buildCounterConditionValue < 3) {
1049 unittest.expect(o.relativeDate, unittest.equals('foo')); 1072 unittest.expect(o.relativeDate, unittest.equals('foo'));
1050 unittest.expect(o.userEnteredValue, unittest.equals('foo')); 1073 unittest.expect(o.userEnteredValue, unittest.equals('foo'));
1051 } 1074 }
1052 buildCounterConditionValue--; 1075 buildCounterConditionValue--;
1053 } 1076 }
1054 1077
1055 buildUnnamed596() { 1078 buildUnnamed3168() {
1056 var o = new core.List<api.GridRange>(); 1079 var o = new core.List<api.GridRange>();
1057 o.add(buildGridRange()); 1080 o.add(buildGridRange());
1058 o.add(buildGridRange()); 1081 o.add(buildGridRange());
1059 return o; 1082 return o;
1060 } 1083 }
1061 1084
1062 checkUnnamed596(core.List<api.GridRange> o) { 1085 checkUnnamed3168(core.List<api.GridRange> o) {
1063 unittest.expect(o, unittest.hasLength(2)); 1086 unittest.expect(o, unittest.hasLength(2));
1064 checkGridRange(o[0]); 1087 checkGridRange(o[0]);
1065 checkGridRange(o[1]); 1088 checkGridRange(o[1]);
1066 } 1089 }
1067 1090
1068 core.int buildCounterConditionalFormatRule = 0; 1091 core.int buildCounterConditionalFormatRule = 0;
1069 buildConditionalFormatRule() { 1092 buildConditionalFormatRule() {
1070 var o = new api.ConditionalFormatRule(); 1093 var o = new api.ConditionalFormatRule();
1071 buildCounterConditionalFormatRule++; 1094 buildCounterConditionalFormatRule++;
1072 if (buildCounterConditionalFormatRule < 3) { 1095 if (buildCounterConditionalFormatRule < 3) {
1073 o.booleanRule = buildBooleanRule(); 1096 o.booleanRule = buildBooleanRule();
1074 o.gradientRule = buildGradientRule(); 1097 o.gradientRule = buildGradientRule();
1075 o.ranges = buildUnnamed596(); 1098 o.ranges = buildUnnamed3168();
1076 } 1099 }
1077 buildCounterConditionalFormatRule--; 1100 buildCounterConditionalFormatRule--;
1078 return o; 1101 return o;
1079 } 1102 }
1080 1103
1081 checkConditionalFormatRule(api.ConditionalFormatRule o) { 1104 checkConditionalFormatRule(api.ConditionalFormatRule o) {
1082 buildCounterConditionalFormatRule++; 1105 buildCounterConditionalFormatRule++;
1083 if (buildCounterConditionalFormatRule < 3) { 1106 if (buildCounterConditionalFormatRule < 3) {
1084 checkBooleanRule(o.booleanRule); 1107 checkBooleanRule(o.booleanRule);
1085 checkGradientRule(o.gradientRule); 1108 checkGradientRule(o.gradientRule);
1086 checkUnnamed596(o.ranges); 1109 checkUnnamed3168(o.ranges);
1087 } 1110 }
1088 buildCounterConditionalFormatRule--; 1111 buildCounterConditionalFormatRule--;
1089 } 1112 }
1090 1113
1091 core.int buildCounterCopyPasteRequest = 0; 1114 core.int buildCounterCopyPasteRequest = 0;
1092 buildCopyPasteRequest() { 1115 buildCopyPasteRequest() {
1093 var o = new api.CopyPasteRequest(); 1116 var o = new api.CopyPasteRequest();
1094 buildCounterCopyPasteRequest++; 1117 buildCounterCopyPasteRequest++;
1095 if (buildCounterCopyPasteRequest < 3) { 1118 if (buildCounterCopyPasteRequest < 3) {
1096 o.destination = buildGridRange(); 1119 o.destination = buildGridRange();
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 } 1480 }
1458 1481
1459 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) { 1482 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) {
1460 buildCounterDuplicateSheetResponse++; 1483 buildCounterDuplicateSheetResponse++;
1461 if (buildCounterDuplicateSheetResponse < 3) { 1484 if (buildCounterDuplicateSheetResponse < 3) {
1462 checkSheetProperties(o.properties); 1485 checkSheetProperties(o.properties);
1463 } 1486 }
1464 buildCounterDuplicateSheetResponse--; 1487 buildCounterDuplicateSheetResponse--;
1465 } 1488 }
1466 1489
1467 buildUnnamed597() { 1490 buildUnnamed3169() {
1468 var o = new core.List<core.String>(); 1491 var o = new core.List<core.String>();
1469 o.add("foo"); 1492 o.add("foo");
1470 o.add("foo"); 1493 o.add("foo");
1471 return o; 1494 return o;
1472 } 1495 }
1473 1496
1474 checkUnnamed597(core.List<core.String> o) { 1497 checkUnnamed3169(core.List<core.String> o) {
1475 unittest.expect(o, unittest.hasLength(2)); 1498 unittest.expect(o, unittest.hasLength(2));
1476 unittest.expect(o[0], unittest.equals('foo')); 1499 unittest.expect(o[0], unittest.equals('foo'));
1477 unittest.expect(o[1], unittest.equals('foo')); 1500 unittest.expect(o[1], unittest.equals('foo'));
1478 } 1501 }
1479 1502
1480 buildUnnamed598() { 1503 buildUnnamed3170() {
1481 var o = new core.List<core.String>(); 1504 var o = new core.List<core.String>();
1482 o.add("foo"); 1505 o.add("foo");
1483 o.add("foo"); 1506 o.add("foo");
1484 return o; 1507 return o;
1485 } 1508 }
1486 1509
1487 checkUnnamed598(core.List<core.String> o) { 1510 checkUnnamed3170(core.List<core.String> o) {
1488 unittest.expect(o, unittest.hasLength(2)); 1511 unittest.expect(o, unittest.hasLength(2));
1489 unittest.expect(o[0], unittest.equals('foo')); 1512 unittest.expect(o[0], unittest.equals('foo'));
1490 unittest.expect(o[1], unittest.equals('foo')); 1513 unittest.expect(o[1], unittest.equals('foo'));
1491 } 1514 }
1492 1515
1493 core.int buildCounterEditors = 0; 1516 core.int buildCounterEditors = 0;
1494 buildEditors() { 1517 buildEditors() {
1495 var o = new api.Editors(); 1518 var o = new api.Editors();
1496 buildCounterEditors++; 1519 buildCounterEditors++;
1497 if (buildCounterEditors < 3) { 1520 if (buildCounterEditors < 3) {
1498 o.domainUsersCanEdit = true; 1521 o.domainUsersCanEdit = true;
1499 o.groups = buildUnnamed597(); 1522 o.groups = buildUnnamed3169();
1500 o.users = buildUnnamed598(); 1523 o.users = buildUnnamed3170();
1501 } 1524 }
1502 buildCounterEditors--; 1525 buildCounterEditors--;
1503 return o; 1526 return o;
1504 } 1527 }
1505 1528
1506 checkEditors(api.Editors o) { 1529 checkEditors(api.Editors o) {
1507 buildCounterEditors++; 1530 buildCounterEditors++;
1508 if (buildCounterEditors < 3) { 1531 if (buildCounterEditors < 3) {
1509 unittest.expect(o.domainUsersCanEdit, unittest.isTrue); 1532 unittest.expect(o.domainUsersCanEdit, unittest.isTrue);
1510 checkUnnamed597(o.groups); 1533 checkUnnamed3169(o.groups);
1511 checkUnnamed598(o.users); 1534 checkUnnamed3170(o.users);
1512 } 1535 }
1513 buildCounterEditors--; 1536 buildCounterEditors--;
1514 } 1537 }
1515 1538
1516 core.int buildCounterEmbeddedChart = 0; 1539 core.int buildCounterEmbeddedChart = 0;
1517 buildEmbeddedChart() { 1540 buildEmbeddedChart() {
1518 var o = new api.EmbeddedChart(); 1541 var o = new api.EmbeddedChart();
1519 buildCounterEmbeddedChart++; 1542 buildCounterEmbeddedChart++;
1520 if (buildCounterEmbeddedChart < 3) { 1543 if (buildCounterEmbeddedChart < 3) {
1521 o.chartId = 42; 1544 o.chartId = 42;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 if (buildCounterExtendedValue < 3) { 1623 if (buildCounterExtendedValue < 3) {
1601 unittest.expect(o.boolValue, unittest.isTrue); 1624 unittest.expect(o.boolValue, unittest.isTrue);
1602 checkErrorValue(o.errorValue); 1625 checkErrorValue(o.errorValue);
1603 unittest.expect(o.formulaValue, unittest.equals('foo')); 1626 unittest.expect(o.formulaValue, unittest.equals('foo'));
1604 unittest.expect(o.numberValue, unittest.equals(42.0)); 1627 unittest.expect(o.numberValue, unittest.equals(42.0));
1605 unittest.expect(o.stringValue, unittest.equals('foo')); 1628 unittest.expect(o.stringValue, unittest.equals('foo'));
1606 } 1629 }
1607 buildCounterExtendedValue--; 1630 buildCounterExtendedValue--;
1608 } 1631 }
1609 1632
1610 buildUnnamed599() { 1633 buildUnnamed3171() {
1611 var o = new core.List<core.String>(); 1634 var o = new core.List<core.String>();
1612 o.add("foo"); 1635 o.add("foo");
1613 o.add("foo"); 1636 o.add("foo");
1614 return o; 1637 return o;
1615 } 1638 }
1616 1639
1617 checkUnnamed599(core.List<core.String> o) { 1640 checkUnnamed3171(core.List<core.String> o) {
1618 unittest.expect(o, unittest.hasLength(2)); 1641 unittest.expect(o, unittest.hasLength(2));
1619 unittest.expect(o[0], unittest.equals('foo')); 1642 unittest.expect(o[0], unittest.equals('foo'));
1620 unittest.expect(o[1], unittest.equals('foo')); 1643 unittest.expect(o[1], unittest.equals('foo'));
1621 } 1644 }
1622 1645
1623 core.int buildCounterFilterCriteria = 0; 1646 core.int buildCounterFilterCriteria = 0;
1624 buildFilterCriteria() { 1647 buildFilterCriteria() {
1625 var o = new api.FilterCriteria(); 1648 var o = new api.FilterCriteria();
1626 buildCounterFilterCriteria++; 1649 buildCounterFilterCriteria++;
1627 if (buildCounterFilterCriteria < 3) { 1650 if (buildCounterFilterCriteria < 3) {
1628 o.condition = buildBooleanCondition(); 1651 o.condition = buildBooleanCondition();
1629 o.hiddenValues = buildUnnamed599(); 1652 o.hiddenValues = buildUnnamed3171();
1630 } 1653 }
1631 buildCounterFilterCriteria--; 1654 buildCounterFilterCriteria--;
1632 return o; 1655 return o;
1633 } 1656 }
1634 1657
1635 checkFilterCriteria(api.FilterCriteria o) { 1658 checkFilterCriteria(api.FilterCriteria o) {
1636 buildCounterFilterCriteria++; 1659 buildCounterFilterCriteria++;
1637 if (buildCounterFilterCriteria < 3) { 1660 if (buildCounterFilterCriteria < 3) {
1638 checkBooleanCondition(o.condition); 1661 checkBooleanCondition(o.condition);
1639 checkUnnamed599(o.hiddenValues); 1662 checkUnnamed3171(o.hiddenValues);
1640 } 1663 }
1641 buildCounterFilterCriteria--; 1664 buildCounterFilterCriteria--;
1642 } 1665 }
1643 1666
1644 buildUnnamed600() { 1667 buildUnnamed3172() {
1645 var o = new core.Map<core.String, api.FilterCriteria>(); 1668 var o = new core.Map<core.String, api.FilterCriteria>();
1646 o["x"] = buildFilterCriteria(); 1669 o["x"] = buildFilterCriteria();
1647 o["y"] = buildFilterCriteria(); 1670 o["y"] = buildFilterCriteria();
1648 return o; 1671 return o;
1649 } 1672 }
1650 1673
1651 checkUnnamed600(core.Map<core.String, api.FilterCriteria> o) { 1674 checkUnnamed3172(core.Map<core.String, api.FilterCriteria> o) {
1652 unittest.expect(o, unittest.hasLength(2)); 1675 unittest.expect(o, unittest.hasLength(2));
1653 checkFilterCriteria(o["x"]); 1676 checkFilterCriteria(o["x"]);
1654 checkFilterCriteria(o["y"]); 1677 checkFilterCriteria(o["y"]);
1655 } 1678 }
1656 1679
1657 buildUnnamed601() { 1680 buildUnnamed3173() {
1658 var o = new core.List<api.SortSpec>(); 1681 var o = new core.List<api.SortSpec>();
1659 o.add(buildSortSpec()); 1682 o.add(buildSortSpec());
1660 o.add(buildSortSpec()); 1683 o.add(buildSortSpec());
1661 return o; 1684 return o;
1662 } 1685 }
1663 1686
1664 checkUnnamed601(core.List<api.SortSpec> o) { 1687 checkUnnamed3173(core.List<api.SortSpec> o) {
1665 unittest.expect(o, unittest.hasLength(2)); 1688 unittest.expect(o, unittest.hasLength(2));
1666 checkSortSpec(o[0]); 1689 checkSortSpec(o[0]);
1667 checkSortSpec(o[1]); 1690 checkSortSpec(o[1]);
1668 } 1691 }
1669 1692
1670 core.int buildCounterFilterView = 0; 1693 core.int buildCounterFilterView = 0;
1671 buildFilterView() { 1694 buildFilterView() {
1672 var o = new api.FilterView(); 1695 var o = new api.FilterView();
1673 buildCounterFilterView++; 1696 buildCounterFilterView++;
1674 if (buildCounterFilterView < 3) { 1697 if (buildCounterFilterView < 3) {
1675 o.criteria = buildUnnamed600(); 1698 o.criteria = buildUnnamed3172();
1676 o.filterViewId = 42; 1699 o.filterViewId = 42;
1677 o.namedRangeId = "foo"; 1700 o.namedRangeId = "foo";
1678 o.range = buildGridRange(); 1701 o.range = buildGridRange();
1679 o.sortSpecs = buildUnnamed601(); 1702 o.sortSpecs = buildUnnamed3173();
1680 o.title = "foo"; 1703 o.title = "foo";
1681 } 1704 }
1682 buildCounterFilterView--; 1705 buildCounterFilterView--;
1683 return o; 1706 return o;
1684 } 1707 }
1685 1708
1686 checkFilterView(api.FilterView o) { 1709 checkFilterView(api.FilterView o) {
1687 buildCounterFilterView++; 1710 buildCounterFilterView++;
1688 if (buildCounterFilterView < 3) { 1711 if (buildCounterFilterView < 3) {
1689 checkUnnamed600(o.criteria); 1712 checkUnnamed3172(o.criteria);
1690 unittest.expect(o.filterViewId, unittest.equals(42)); 1713 unittest.expect(o.filterViewId, unittest.equals(42));
1691 unittest.expect(o.namedRangeId, unittest.equals('foo')); 1714 unittest.expect(o.namedRangeId, unittest.equals('foo'));
1692 checkGridRange(o.range); 1715 checkGridRange(o.range);
1693 checkUnnamed601(o.sortSpecs); 1716 checkUnnamed3173(o.sortSpecs);
1694 unittest.expect(o.title, unittest.equals('foo')); 1717 unittest.expect(o.title, unittest.equals('foo'));
1695 } 1718 }
1696 buildCounterFilterView--; 1719 buildCounterFilterView--;
1697 } 1720 }
1698 1721
1699 core.int buildCounterFindReplaceRequest = 0; 1722 core.int buildCounterFindReplaceRequest = 0;
1700 buildFindReplaceRequest() { 1723 buildFindReplaceRequest() {
1701 var o = new api.FindReplaceRequest(); 1724 var o = new api.FindReplaceRequest();
1702 buildCounterFindReplaceRequest++; 1725 buildCounterFindReplaceRequest++;
1703 if (buildCounterFindReplaceRequest < 3) { 1726 if (buildCounterFindReplaceRequest < 3) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 checkGridCoordinate(api.GridCoordinate o) { 1820 checkGridCoordinate(api.GridCoordinate o) {
1798 buildCounterGridCoordinate++; 1821 buildCounterGridCoordinate++;
1799 if (buildCounterGridCoordinate < 3) { 1822 if (buildCounterGridCoordinate < 3) {
1800 unittest.expect(o.columnIndex, unittest.equals(42)); 1823 unittest.expect(o.columnIndex, unittest.equals(42));
1801 unittest.expect(o.rowIndex, unittest.equals(42)); 1824 unittest.expect(o.rowIndex, unittest.equals(42));
1802 unittest.expect(o.sheetId, unittest.equals(42)); 1825 unittest.expect(o.sheetId, unittest.equals(42));
1803 } 1826 }
1804 buildCounterGridCoordinate--; 1827 buildCounterGridCoordinate--;
1805 } 1828 }
1806 1829
1807 buildUnnamed602() { 1830 buildUnnamed3174() {
1808 var o = new core.List<api.DimensionProperties>(); 1831 var o = new core.List<api.DimensionProperties>();
1809 o.add(buildDimensionProperties()); 1832 o.add(buildDimensionProperties());
1810 o.add(buildDimensionProperties()); 1833 o.add(buildDimensionProperties());
1811 return o; 1834 return o;
1812 } 1835 }
1813 1836
1814 checkUnnamed602(core.List<api.DimensionProperties> o) { 1837 checkUnnamed3174(core.List<api.DimensionProperties> o) {
1815 unittest.expect(o, unittest.hasLength(2)); 1838 unittest.expect(o, unittest.hasLength(2));
1816 checkDimensionProperties(o[0]); 1839 checkDimensionProperties(o[0]);
1817 checkDimensionProperties(o[1]); 1840 checkDimensionProperties(o[1]);
1818 } 1841 }
1819 1842
1820 buildUnnamed603() { 1843 buildUnnamed3175() {
1821 var o = new core.List<api.RowData>(); 1844 var o = new core.List<api.RowData>();
1822 o.add(buildRowData()); 1845 o.add(buildRowData());
1823 o.add(buildRowData()); 1846 o.add(buildRowData());
1824 return o; 1847 return o;
1825 } 1848 }
1826 1849
1827 checkUnnamed603(core.List<api.RowData> o) { 1850 checkUnnamed3175(core.List<api.RowData> o) {
1828 unittest.expect(o, unittest.hasLength(2)); 1851 unittest.expect(o, unittest.hasLength(2));
1829 checkRowData(o[0]); 1852 checkRowData(o[0]);
1830 checkRowData(o[1]); 1853 checkRowData(o[1]);
1831 } 1854 }
1832 1855
1833 buildUnnamed604() { 1856 buildUnnamed3176() {
1834 var o = new core.List<api.DimensionProperties>(); 1857 var o = new core.List<api.DimensionProperties>();
1835 o.add(buildDimensionProperties()); 1858 o.add(buildDimensionProperties());
1836 o.add(buildDimensionProperties()); 1859 o.add(buildDimensionProperties());
1837 return o; 1860 return o;
1838 } 1861 }
1839 1862
1840 checkUnnamed604(core.List<api.DimensionProperties> o) { 1863 checkUnnamed3176(core.List<api.DimensionProperties> o) {
1841 unittest.expect(o, unittest.hasLength(2)); 1864 unittest.expect(o, unittest.hasLength(2));
1842 checkDimensionProperties(o[0]); 1865 checkDimensionProperties(o[0]);
1843 checkDimensionProperties(o[1]); 1866 checkDimensionProperties(o[1]);
1844 } 1867 }
1845 1868
1846 core.int buildCounterGridData = 0; 1869 core.int buildCounterGridData = 0;
1847 buildGridData() { 1870 buildGridData() {
1848 var o = new api.GridData(); 1871 var o = new api.GridData();
1849 buildCounterGridData++; 1872 buildCounterGridData++;
1850 if (buildCounterGridData < 3) { 1873 if (buildCounterGridData < 3) {
1851 o.columnMetadata = buildUnnamed602(); 1874 o.columnMetadata = buildUnnamed3174();
1852 o.rowData = buildUnnamed603(); 1875 o.rowData = buildUnnamed3175();
1853 o.rowMetadata = buildUnnamed604(); 1876 o.rowMetadata = buildUnnamed3176();
1854 o.startColumn = 42; 1877 o.startColumn = 42;
1855 o.startRow = 42; 1878 o.startRow = 42;
1856 } 1879 }
1857 buildCounterGridData--; 1880 buildCounterGridData--;
1858 return o; 1881 return o;
1859 } 1882 }
1860 1883
1861 checkGridData(api.GridData o) { 1884 checkGridData(api.GridData o) {
1862 buildCounterGridData++; 1885 buildCounterGridData++;
1863 if (buildCounterGridData < 3) { 1886 if (buildCounterGridData < 3) {
1864 checkUnnamed602(o.columnMetadata); 1887 checkUnnamed3174(o.columnMetadata);
1865 checkUnnamed603(o.rowData); 1888 checkUnnamed3175(o.rowData);
1866 checkUnnamed604(o.rowMetadata); 1889 checkUnnamed3176(o.rowMetadata);
1867 unittest.expect(o.startColumn, unittest.equals(42)); 1890 unittest.expect(o.startColumn, unittest.equals(42));
1868 unittest.expect(o.startRow, unittest.equals(42)); 1891 unittest.expect(o.startRow, unittest.equals(42));
1869 } 1892 }
1870 buildCounterGridData--; 1893 buildCounterGridData--;
1871 } 1894 }
1872 1895
1873 core.int buildCounterGridProperties = 0; 1896 core.int buildCounterGridProperties = 0;
1874 buildGridProperties() { 1897 buildGridProperties() {
1875 var o = new api.GridProperties(); 1898 var o = new api.GridProperties();
1876 buildCounterGridProperties++; 1899 buildCounterGridProperties++;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 if (buildCounterPieChartSpec < 3) { 2176 if (buildCounterPieChartSpec < 3) {
2154 checkChartData(o.domain); 2177 checkChartData(o.domain);
2155 unittest.expect(o.legendPosition, unittest.equals('foo')); 2178 unittest.expect(o.legendPosition, unittest.equals('foo'));
2156 unittest.expect(o.pieHole, unittest.equals(42.0)); 2179 unittest.expect(o.pieHole, unittest.equals(42.0));
2157 checkChartData(o.series); 2180 checkChartData(o.series);
2158 unittest.expect(o.threeDimensional, unittest.isTrue); 2181 unittest.expect(o.threeDimensional, unittest.isTrue);
2159 } 2182 }
2160 buildCounterPieChartSpec--; 2183 buildCounterPieChartSpec--;
2161 } 2184 }
2162 2185
2163 buildUnnamed605() { 2186 buildUnnamed3177() {
2164 var o = new core.List<core.String>(); 2187 var o = new core.List<core.String>();
2165 o.add("foo"); 2188 o.add("foo");
2166 o.add("foo"); 2189 o.add("foo");
2167 return o; 2190 return o;
2168 } 2191 }
2169 2192
2170 checkUnnamed605(core.List<core.String> o) { 2193 checkUnnamed3177(core.List<core.String> o) {
2171 unittest.expect(o, unittest.hasLength(2)); 2194 unittest.expect(o, unittest.hasLength(2));
2172 unittest.expect(o[0], unittest.equals('foo')); 2195 unittest.expect(o[0], unittest.equals('foo'));
2173 unittest.expect(o[1], unittest.equals('foo')); 2196 unittest.expect(o[1], unittest.equals('foo'));
2174 } 2197 }
2175 2198
2176 core.int buildCounterPivotFilterCriteria = 0; 2199 core.int buildCounterPivotFilterCriteria = 0;
2177 buildPivotFilterCriteria() { 2200 buildPivotFilterCriteria() {
2178 var o = new api.PivotFilterCriteria(); 2201 var o = new api.PivotFilterCriteria();
2179 buildCounterPivotFilterCriteria++; 2202 buildCounterPivotFilterCriteria++;
2180 if (buildCounterPivotFilterCriteria < 3) { 2203 if (buildCounterPivotFilterCriteria < 3) {
2181 o.visibleValues = buildUnnamed605(); 2204 o.visibleValues = buildUnnamed3177();
2182 } 2205 }
2183 buildCounterPivotFilterCriteria--; 2206 buildCounterPivotFilterCriteria--;
2184 return o; 2207 return o;
2185 } 2208 }
2186 2209
2187 checkPivotFilterCriteria(api.PivotFilterCriteria o) { 2210 checkPivotFilterCriteria(api.PivotFilterCriteria o) {
2188 buildCounterPivotFilterCriteria++; 2211 buildCounterPivotFilterCriteria++;
2189 if (buildCounterPivotFilterCriteria < 3) { 2212 if (buildCounterPivotFilterCriteria < 3) {
2190 checkUnnamed605(o.visibleValues); 2213 checkUnnamed3177(o.visibleValues);
2191 } 2214 }
2192 buildCounterPivotFilterCriteria--; 2215 buildCounterPivotFilterCriteria--;
2193 } 2216 }
2194 2217
2195 buildUnnamed606() { 2218 buildUnnamed3178() {
2196 var o = new core.List<api.PivotGroupValueMetadata>(); 2219 var o = new core.List<api.PivotGroupValueMetadata>();
2197 o.add(buildPivotGroupValueMetadata()); 2220 o.add(buildPivotGroupValueMetadata());
2198 o.add(buildPivotGroupValueMetadata()); 2221 o.add(buildPivotGroupValueMetadata());
2199 return o; 2222 return o;
2200 } 2223 }
2201 2224
2202 checkUnnamed606(core.List<api.PivotGroupValueMetadata> o) { 2225 checkUnnamed3178(core.List<api.PivotGroupValueMetadata> o) {
2203 unittest.expect(o, unittest.hasLength(2)); 2226 unittest.expect(o, unittest.hasLength(2));
2204 checkPivotGroupValueMetadata(o[0]); 2227 checkPivotGroupValueMetadata(o[0]);
2205 checkPivotGroupValueMetadata(o[1]); 2228 checkPivotGroupValueMetadata(o[1]);
2206 } 2229 }
2207 2230
2208 core.int buildCounterPivotGroup = 0; 2231 core.int buildCounterPivotGroup = 0;
2209 buildPivotGroup() { 2232 buildPivotGroup() {
2210 var o = new api.PivotGroup(); 2233 var o = new api.PivotGroup();
2211 buildCounterPivotGroup++; 2234 buildCounterPivotGroup++;
2212 if (buildCounterPivotGroup < 3) { 2235 if (buildCounterPivotGroup < 3) {
2213 o.showTotals = true; 2236 o.showTotals = true;
2214 o.sortOrder = "foo"; 2237 o.sortOrder = "foo";
2215 o.sourceColumnOffset = 42; 2238 o.sourceColumnOffset = 42;
2216 o.valueBucket = buildPivotGroupSortValueBucket(); 2239 o.valueBucket = buildPivotGroupSortValueBucket();
2217 o.valueMetadata = buildUnnamed606(); 2240 o.valueMetadata = buildUnnamed3178();
2218 } 2241 }
2219 buildCounterPivotGroup--; 2242 buildCounterPivotGroup--;
2220 return o; 2243 return o;
2221 } 2244 }
2222 2245
2223 checkPivotGroup(api.PivotGroup o) { 2246 checkPivotGroup(api.PivotGroup o) {
2224 buildCounterPivotGroup++; 2247 buildCounterPivotGroup++;
2225 if (buildCounterPivotGroup < 3) { 2248 if (buildCounterPivotGroup < 3) {
2226 unittest.expect(o.showTotals, unittest.isTrue); 2249 unittest.expect(o.showTotals, unittest.isTrue);
2227 unittest.expect(o.sortOrder, unittest.equals('foo')); 2250 unittest.expect(o.sortOrder, unittest.equals('foo'));
2228 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); 2251 unittest.expect(o.sourceColumnOffset, unittest.equals(42));
2229 checkPivotGroupSortValueBucket(o.valueBucket); 2252 checkPivotGroupSortValueBucket(o.valueBucket);
2230 checkUnnamed606(o.valueMetadata); 2253 checkUnnamed3178(o.valueMetadata);
2231 } 2254 }
2232 buildCounterPivotGroup--; 2255 buildCounterPivotGroup--;
2233 } 2256 }
2234 2257
2235 buildUnnamed607() { 2258 buildUnnamed3179() {
2236 var o = new core.List<api.ExtendedValue>(); 2259 var o = new core.List<api.ExtendedValue>();
2237 o.add(buildExtendedValue()); 2260 o.add(buildExtendedValue());
2238 o.add(buildExtendedValue()); 2261 o.add(buildExtendedValue());
2239 return o; 2262 return o;
2240 } 2263 }
2241 2264
2242 checkUnnamed607(core.List<api.ExtendedValue> o) { 2265 checkUnnamed3179(core.List<api.ExtendedValue> o) {
2243 unittest.expect(o, unittest.hasLength(2)); 2266 unittest.expect(o, unittest.hasLength(2));
2244 checkExtendedValue(o[0]); 2267 checkExtendedValue(o[0]);
2245 checkExtendedValue(o[1]); 2268 checkExtendedValue(o[1]);
2246 } 2269 }
2247 2270
2248 core.int buildCounterPivotGroupSortValueBucket = 0; 2271 core.int buildCounterPivotGroupSortValueBucket = 0;
2249 buildPivotGroupSortValueBucket() { 2272 buildPivotGroupSortValueBucket() {
2250 var o = new api.PivotGroupSortValueBucket(); 2273 var o = new api.PivotGroupSortValueBucket();
2251 buildCounterPivotGroupSortValueBucket++; 2274 buildCounterPivotGroupSortValueBucket++;
2252 if (buildCounterPivotGroupSortValueBucket < 3) { 2275 if (buildCounterPivotGroupSortValueBucket < 3) {
2253 o.buckets = buildUnnamed607(); 2276 o.buckets = buildUnnamed3179();
2254 o.valuesIndex = 42; 2277 o.valuesIndex = 42;
2255 } 2278 }
2256 buildCounterPivotGroupSortValueBucket--; 2279 buildCounterPivotGroupSortValueBucket--;
2257 return o; 2280 return o;
2258 } 2281 }
2259 2282
2260 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { 2283 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) {
2261 buildCounterPivotGroupSortValueBucket++; 2284 buildCounterPivotGroupSortValueBucket++;
2262 if (buildCounterPivotGroupSortValueBucket < 3) { 2285 if (buildCounterPivotGroupSortValueBucket < 3) {
2263 checkUnnamed607(o.buckets); 2286 checkUnnamed3179(o.buckets);
2264 unittest.expect(o.valuesIndex, unittest.equals(42)); 2287 unittest.expect(o.valuesIndex, unittest.equals(42));
2265 } 2288 }
2266 buildCounterPivotGroupSortValueBucket--; 2289 buildCounterPivotGroupSortValueBucket--;
2267 } 2290 }
2268 2291
2269 core.int buildCounterPivotGroupValueMetadata = 0; 2292 core.int buildCounterPivotGroupValueMetadata = 0;
2270 buildPivotGroupValueMetadata() { 2293 buildPivotGroupValueMetadata() {
2271 var o = new api.PivotGroupValueMetadata(); 2294 var o = new api.PivotGroupValueMetadata();
2272 buildCounterPivotGroupValueMetadata++; 2295 buildCounterPivotGroupValueMetadata++;
2273 if (buildCounterPivotGroupValueMetadata < 3) { 2296 if (buildCounterPivotGroupValueMetadata < 3) {
2274 o.collapsed = true; 2297 o.collapsed = true;
2275 o.value = buildExtendedValue(); 2298 o.value = buildExtendedValue();
2276 } 2299 }
2277 buildCounterPivotGroupValueMetadata--; 2300 buildCounterPivotGroupValueMetadata--;
2278 return o; 2301 return o;
2279 } 2302 }
2280 2303
2281 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) { 2304 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) {
2282 buildCounterPivotGroupValueMetadata++; 2305 buildCounterPivotGroupValueMetadata++;
2283 if (buildCounterPivotGroupValueMetadata < 3) { 2306 if (buildCounterPivotGroupValueMetadata < 3) {
2284 unittest.expect(o.collapsed, unittest.isTrue); 2307 unittest.expect(o.collapsed, unittest.isTrue);
2285 checkExtendedValue(o.value); 2308 checkExtendedValue(o.value);
2286 } 2309 }
2287 buildCounterPivotGroupValueMetadata--; 2310 buildCounterPivotGroupValueMetadata--;
2288 } 2311 }
2289 2312
2290 buildUnnamed608() { 2313 buildUnnamed3180() {
2291 var o = new core.List<api.PivotGroup>(); 2314 var o = new core.List<api.PivotGroup>();
2292 o.add(buildPivotGroup()); 2315 o.add(buildPivotGroup());
2293 o.add(buildPivotGroup()); 2316 o.add(buildPivotGroup());
2294 return o; 2317 return o;
2295 } 2318 }
2296 2319
2297 checkUnnamed608(core.List<api.PivotGroup> o) { 2320 checkUnnamed3180(core.List<api.PivotGroup> o) {
2298 unittest.expect(o, unittest.hasLength(2)); 2321 unittest.expect(o, unittest.hasLength(2));
2299 checkPivotGroup(o[0]); 2322 checkPivotGroup(o[0]);
2300 checkPivotGroup(o[1]); 2323 checkPivotGroup(o[1]);
2301 } 2324 }
2302 2325
2303 buildUnnamed609() { 2326 buildUnnamed3181() {
2304 var o = new core.Map<core.String, api.PivotFilterCriteria>(); 2327 var o = new core.Map<core.String, api.PivotFilterCriteria>();
2305 o["x"] = buildPivotFilterCriteria(); 2328 o["x"] = buildPivotFilterCriteria();
2306 o["y"] = buildPivotFilterCriteria(); 2329 o["y"] = buildPivotFilterCriteria();
2307 return o; 2330 return o;
2308 } 2331 }
2309 2332
2310 checkUnnamed609(core.Map<core.String, api.PivotFilterCriteria> o) { 2333 checkUnnamed3181(core.Map<core.String, api.PivotFilterCriteria> o) {
2311 unittest.expect(o, unittest.hasLength(2)); 2334 unittest.expect(o, unittest.hasLength(2));
2312 checkPivotFilterCriteria(o["x"]); 2335 checkPivotFilterCriteria(o["x"]);
2313 checkPivotFilterCriteria(o["y"]); 2336 checkPivotFilterCriteria(o["y"]);
2314 } 2337 }
2315 2338
2316 buildUnnamed610() { 2339 buildUnnamed3182() {
2317 var o = new core.List<api.PivotGroup>(); 2340 var o = new core.List<api.PivotGroup>();
2318 o.add(buildPivotGroup()); 2341 o.add(buildPivotGroup());
2319 o.add(buildPivotGroup()); 2342 o.add(buildPivotGroup());
2320 return o; 2343 return o;
2321 } 2344 }
2322 2345
2323 checkUnnamed610(core.List<api.PivotGroup> o) { 2346 checkUnnamed3182(core.List<api.PivotGroup> o) {
2324 unittest.expect(o, unittest.hasLength(2)); 2347 unittest.expect(o, unittest.hasLength(2));
2325 checkPivotGroup(o[0]); 2348 checkPivotGroup(o[0]);
2326 checkPivotGroup(o[1]); 2349 checkPivotGroup(o[1]);
2327 } 2350 }
2328 2351
2329 buildUnnamed611() { 2352 buildUnnamed3183() {
2330 var o = new core.List<api.PivotValue>(); 2353 var o = new core.List<api.PivotValue>();
2331 o.add(buildPivotValue()); 2354 o.add(buildPivotValue());
2332 o.add(buildPivotValue()); 2355 o.add(buildPivotValue());
2333 return o; 2356 return o;
2334 } 2357 }
2335 2358
2336 checkUnnamed611(core.List<api.PivotValue> o) { 2359 checkUnnamed3183(core.List<api.PivotValue> o) {
2337 unittest.expect(o, unittest.hasLength(2)); 2360 unittest.expect(o, unittest.hasLength(2));
2338 checkPivotValue(o[0]); 2361 checkPivotValue(o[0]);
2339 checkPivotValue(o[1]); 2362 checkPivotValue(o[1]);
2340 } 2363 }
2341 2364
2342 core.int buildCounterPivotTable = 0; 2365 core.int buildCounterPivotTable = 0;
2343 buildPivotTable() { 2366 buildPivotTable() {
2344 var o = new api.PivotTable(); 2367 var o = new api.PivotTable();
2345 buildCounterPivotTable++; 2368 buildCounterPivotTable++;
2346 if (buildCounterPivotTable < 3) { 2369 if (buildCounterPivotTable < 3) {
2347 o.columns = buildUnnamed608(); 2370 o.columns = buildUnnamed3180();
2348 o.criteria = buildUnnamed609(); 2371 o.criteria = buildUnnamed3181();
2349 o.rows = buildUnnamed610(); 2372 o.rows = buildUnnamed3182();
2350 o.source = buildGridRange(); 2373 o.source = buildGridRange();
2351 o.valueLayout = "foo"; 2374 o.valueLayout = "foo";
2352 o.values = buildUnnamed611(); 2375 o.values = buildUnnamed3183();
2353 } 2376 }
2354 buildCounterPivotTable--; 2377 buildCounterPivotTable--;
2355 return o; 2378 return o;
2356 } 2379 }
2357 2380
2358 checkPivotTable(api.PivotTable o) { 2381 checkPivotTable(api.PivotTable o) {
2359 buildCounterPivotTable++; 2382 buildCounterPivotTable++;
2360 if (buildCounterPivotTable < 3) { 2383 if (buildCounterPivotTable < 3) {
2361 checkUnnamed608(o.columns); 2384 checkUnnamed3180(o.columns);
2362 checkUnnamed609(o.criteria); 2385 checkUnnamed3181(o.criteria);
2363 checkUnnamed610(o.rows); 2386 checkUnnamed3182(o.rows);
2364 checkGridRange(o.source); 2387 checkGridRange(o.source);
2365 unittest.expect(o.valueLayout, unittest.equals('foo')); 2388 unittest.expect(o.valueLayout, unittest.equals('foo'));
2366 checkUnnamed611(o.values); 2389 checkUnnamed3183(o.values);
2367 } 2390 }
2368 buildCounterPivotTable--; 2391 buildCounterPivotTable--;
2369 } 2392 }
2370 2393
2371 core.int buildCounterPivotValue = 0; 2394 core.int buildCounterPivotValue = 0;
2372 buildPivotValue() { 2395 buildPivotValue() {
2373 var o = new api.PivotValue(); 2396 var o = new api.PivotValue();
2374 buildCounterPivotValue++; 2397 buildCounterPivotValue++;
2375 if (buildCounterPivotValue < 3) { 2398 if (buildCounterPivotValue < 3) {
2376 o.formula = "foo"; 2399 o.formula = "foo";
2377 o.name = "foo"; 2400 o.name = "foo";
2378 o.sourceColumnOffset = 42; 2401 o.sourceColumnOffset = 42;
2379 o.summarizeFunction = "foo"; 2402 o.summarizeFunction = "foo";
2380 } 2403 }
2381 buildCounterPivotValue--; 2404 buildCounterPivotValue--;
2382 return o; 2405 return o;
2383 } 2406 }
2384 2407
2385 checkPivotValue(api.PivotValue o) { 2408 checkPivotValue(api.PivotValue o) {
2386 buildCounterPivotValue++; 2409 buildCounterPivotValue++;
2387 if (buildCounterPivotValue < 3) { 2410 if (buildCounterPivotValue < 3) {
2388 unittest.expect(o.formula, unittest.equals('foo')); 2411 unittest.expect(o.formula, unittest.equals('foo'));
2389 unittest.expect(o.name, unittest.equals('foo')); 2412 unittest.expect(o.name, unittest.equals('foo'));
2390 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); 2413 unittest.expect(o.sourceColumnOffset, unittest.equals(42));
2391 unittest.expect(o.summarizeFunction, unittest.equals('foo')); 2414 unittest.expect(o.summarizeFunction, unittest.equals('foo'));
2392 } 2415 }
2393 buildCounterPivotValue--; 2416 buildCounterPivotValue--;
2394 } 2417 }
2395 2418
2396 buildUnnamed612() { 2419 buildUnnamed3184() {
2397 var o = new core.List<api.GridRange>(); 2420 var o = new core.List<api.GridRange>();
2398 o.add(buildGridRange()); 2421 o.add(buildGridRange());
2399 o.add(buildGridRange()); 2422 o.add(buildGridRange());
2400 return o; 2423 return o;
2401 } 2424 }
2402 2425
2403 checkUnnamed612(core.List<api.GridRange> o) { 2426 checkUnnamed3184(core.List<api.GridRange> o) {
2404 unittest.expect(o, unittest.hasLength(2)); 2427 unittest.expect(o, unittest.hasLength(2));
2405 checkGridRange(o[0]); 2428 checkGridRange(o[0]);
2406 checkGridRange(o[1]); 2429 checkGridRange(o[1]);
2407 } 2430 }
2408 2431
2409 core.int buildCounterProtectedRange = 0; 2432 core.int buildCounterProtectedRange = 0;
2410 buildProtectedRange() { 2433 buildProtectedRange() {
2411 var o = new api.ProtectedRange(); 2434 var o = new api.ProtectedRange();
2412 buildCounterProtectedRange++; 2435 buildCounterProtectedRange++;
2413 if (buildCounterProtectedRange < 3) { 2436 if (buildCounterProtectedRange < 3) {
2414 o.description = "foo"; 2437 o.description = "foo";
2415 o.editors = buildEditors(); 2438 o.editors = buildEditors();
2416 o.namedRangeId = "foo"; 2439 o.namedRangeId = "foo";
2417 o.protectedRangeId = 42; 2440 o.protectedRangeId = 42;
2418 o.range = buildGridRange(); 2441 o.range = buildGridRange();
2419 o.requestingUserCanEdit = true; 2442 o.requestingUserCanEdit = true;
2420 o.unprotectedRanges = buildUnnamed612(); 2443 o.unprotectedRanges = buildUnnamed3184();
2421 o.warningOnly = true; 2444 o.warningOnly = true;
2422 } 2445 }
2423 buildCounterProtectedRange--; 2446 buildCounterProtectedRange--;
2424 return o; 2447 return o;
2425 } 2448 }
2426 2449
2427 checkProtectedRange(api.ProtectedRange o) { 2450 checkProtectedRange(api.ProtectedRange o) {
2428 buildCounterProtectedRange++; 2451 buildCounterProtectedRange++;
2429 if (buildCounterProtectedRange < 3) { 2452 if (buildCounterProtectedRange < 3) {
2430 unittest.expect(o.description, unittest.equals('foo')); 2453 unittest.expect(o.description, unittest.equals('foo'));
2431 checkEditors(o.editors); 2454 checkEditors(o.editors);
2432 unittest.expect(o.namedRangeId, unittest.equals('foo')); 2455 unittest.expect(o.namedRangeId, unittest.equals('foo'));
2433 unittest.expect(o.protectedRangeId, unittest.equals(42)); 2456 unittest.expect(o.protectedRangeId, unittest.equals(42));
2434 checkGridRange(o.range); 2457 checkGridRange(o.range);
2435 unittest.expect(o.requestingUserCanEdit, unittest.isTrue); 2458 unittest.expect(o.requestingUserCanEdit, unittest.isTrue);
2436 checkUnnamed612(o.unprotectedRanges); 2459 checkUnnamed3184(o.unprotectedRanges);
2437 unittest.expect(o.warningOnly, unittest.isTrue); 2460 unittest.expect(o.warningOnly, unittest.isTrue);
2438 } 2461 }
2439 buildCounterProtectedRange--; 2462 buildCounterProtectedRange--;
2440 } 2463 }
2441 2464
2442 core.int buildCounterRepeatCellRequest = 0; 2465 core.int buildCounterRepeatCellRequest = 0;
2443 buildRepeatCellRequest() { 2466 buildRepeatCellRequest() {
2444 var o = new api.RepeatCellRequest(); 2467 var o = new api.RepeatCellRequest();
2445 buildCounterRepeatCellRequest++; 2468 buildCounterRepeatCellRequest++;
2446 if (buildCounterRepeatCellRequest < 3) { 2469 if (buildCounterRepeatCellRequest < 3) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); 2622 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule);
2600 checkDuplicateFilterViewResponse(o.duplicateFilterView); 2623 checkDuplicateFilterViewResponse(o.duplicateFilterView);
2601 checkDuplicateSheetResponse(o.duplicateSheet); 2624 checkDuplicateSheetResponse(o.duplicateSheet);
2602 checkFindReplaceResponse(o.findReplace); 2625 checkFindReplaceResponse(o.findReplace);
2603 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); 2626 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule);
2604 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); 2627 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition);
2605 } 2628 }
2606 buildCounterResponse--; 2629 buildCounterResponse--;
2607 } 2630 }
2608 2631
2609 buildUnnamed613() { 2632 buildUnnamed3185() {
2610 var o = new core.List<api.CellData>(); 2633 var o = new core.List<api.CellData>();
2611 o.add(buildCellData()); 2634 o.add(buildCellData());
2612 o.add(buildCellData()); 2635 o.add(buildCellData());
2613 return o; 2636 return o;
2614 } 2637 }
2615 2638
2616 checkUnnamed613(core.List<api.CellData> o) { 2639 checkUnnamed3185(core.List<api.CellData> o) {
2617 unittest.expect(o, unittest.hasLength(2)); 2640 unittest.expect(o, unittest.hasLength(2));
2618 checkCellData(o[0]); 2641 checkCellData(o[0]);
2619 checkCellData(o[1]); 2642 checkCellData(o[1]);
2620 } 2643 }
2621 2644
2622 core.int buildCounterRowData = 0; 2645 core.int buildCounterRowData = 0;
2623 buildRowData() { 2646 buildRowData() {
2624 var o = new api.RowData(); 2647 var o = new api.RowData();
2625 buildCounterRowData++; 2648 buildCounterRowData++;
2626 if (buildCounterRowData < 3) { 2649 if (buildCounterRowData < 3) {
2627 o.values = buildUnnamed613(); 2650 o.values = buildUnnamed3185();
2628 } 2651 }
2629 buildCounterRowData--; 2652 buildCounterRowData--;
2630 return o; 2653 return o;
2631 } 2654 }
2632 2655
2633 checkRowData(api.RowData o) { 2656 checkRowData(api.RowData o) {
2634 buildCounterRowData++; 2657 buildCounterRowData++;
2635 if (buildCounterRowData < 3) { 2658 if (buildCounterRowData < 3) {
2636 checkUnnamed613(o.values); 2659 checkUnnamed3185(o.values);
2637 } 2660 }
2638 buildCounterRowData--; 2661 buildCounterRowData--;
2639 } 2662 }
2640 2663
2641 core.int buildCounterSetBasicFilterRequest = 0; 2664 core.int buildCounterSetBasicFilterRequest = 0;
2642 buildSetBasicFilterRequest() { 2665 buildSetBasicFilterRequest() {
2643 var o = new api.SetBasicFilterRequest(); 2666 var o = new api.SetBasicFilterRequest();
2644 buildCounterSetBasicFilterRequest++; 2667 buildCounterSetBasicFilterRequest++;
2645 if (buildCounterSetBasicFilterRequest < 3) { 2668 if (buildCounterSetBasicFilterRequest < 3) {
2646 o.filter = buildBasicFilter(); 2669 o.filter = buildBasicFilter();
(...skipping 24 matching lines...) Expand all
2671 2694
2672 checkSetDataValidationRequest(api.SetDataValidationRequest o) { 2695 checkSetDataValidationRequest(api.SetDataValidationRequest o) {
2673 buildCounterSetDataValidationRequest++; 2696 buildCounterSetDataValidationRequest++;
2674 if (buildCounterSetDataValidationRequest < 3) { 2697 if (buildCounterSetDataValidationRequest < 3) {
2675 checkGridRange(o.range); 2698 checkGridRange(o.range);
2676 checkDataValidationRule(o.rule); 2699 checkDataValidationRule(o.rule);
2677 } 2700 }
2678 buildCounterSetDataValidationRequest--; 2701 buildCounterSetDataValidationRequest--;
2679 } 2702 }
2680 2703
2681 buildUnnamed614() { 2704 buildUnnamed3186() {
2682 var o = new core.List<api.EmbeddedChart>(); 2705 var o = new core.List<api.EmbeddedChart>();
2683 o.add(buildEmbeddedChart()); 2706 o.add(buildEmbeddedChart());
2684 o.add(buildEmbeddedChart()); 2707 o.add(buildEmbeddedChart());
2685 return o; 2708 return o;
2686 } 2709 }
2687 2710
2688 checkUnnamed614(core.List<api.EmbeddedChart> o) { 2711 checkUnnamed3186(core.List<api.EmbeddedChart> o) {
2689 unittest.expect(o, unittest.hasLength(2)); 2712 unittest.expect(o, unittest.hasLength(2));
2690 checkEmbeddedChart(o[0]); 2713 checkEmbeddedChart(o[0]);
2691 checkEmbeddedChart(o[1]); 2714 checkEmbeddedChart(o[1]);
2692 } 2715 }
2693 2716
2694 buildUnnamed615() { 2717 buildUnnamed3187() {
2695 var o = new core.List<api.ConditionalFormatRule>(); 2718 var o = new core.List<api.ConditionalFormatRule>();
2696 o.add(buildConditionalFormatRule()); 2719 o.add(buildConditionalFormatRule());
2697 o.add(buildConditionalFormatRule()); 2720 o.add(buildConditionalFormatRule());
2698 return o; 2721 return o;
2699 } 2722 }
2700 2723
2701 checkUnnamed615(core.List<api.ConditionalFormatRule> o) { 2724 checkUnnamed3187(core.List<api.ConditionalFormatRule> o) {
2702 unittest.expect(o, unittest.hasLength(2)); 2725 unittest.expect(o, unittest.hasLength(2));
2703 checkConditionalFormatRule(o[0]); 2726 checkConditionalFormatRule(o[0]);
2704 checkConditionalFormatRule(o[1]); 2727 checkConditionalFormatRule(o[1]);
2705 } 2728 }
2706 2729
2707 buildUnnamed616() { 2730 buildUnnamed3188() {
2708 var o = new core.List<api.GridData>(); 2731 var o = new core.List<api.GridData>();
2709 o.add(buildGridData()); 2732 o.add(buildGridData());
2710 o.add(buildGridData()); 2733 o.add(buildGridData());
2711 return o; 2734 return o;
2712 } 2735 }
2713 2736
2714 checkUnnamed616(core.List<api.GridData> o) { 2737 checkUnnamed3188(core.List<api.GridData> o) {
2715 unittest.expect(o, unittest.hasLength(2)); 2738 unittest.expect(o, unittest.hasLength(2));
2716 checkGridData(o[0]); 2739 checkGridData(o[0]);
2717 checkGridData(o[1]); 2740 checkGridData(o[1]);
2718 } 2741 }
2719 2742
2720 buildUnnamed617() { 2743 buildUnnamed3189() {
2721 var o = new core.List<api.FilterView>(); 2744 var o = new core.List<api.FilterView>();
2722 o.add(buildFilterView()); 2745 o.add(buildFilterView());
2723 o.add(buildFilterView()); 2746 o.add(buildFilterView());
2724 return o; 2747 return o;
2725 } 2748 }
2726 2749
2727 checkUnnamed617(core.List<api.FilterView> o) { 2750 checkUnnamed3189(core.List<api.FilterView> o) {
2728 unittest.expect(o, unittest.hasLength(2)); 2751 unittest.expect(o, unittest.hasLength(2));
2729 checkFilterView(o[0]); 2752 checkFilterView(o[0]);
2730 checkFilterView(o[1]); 2753 checkFilterView(o[1]);
2731 } 2754 }
2732 2755
2733 buildUnnamed618() { 2756 buildUnnamed3190() {
2734 var o = new core.List<api.GridRange>(); 2757 var o = new core.List<api.GridRange>();
2735 o.add(buildGridRange()); 2758 o.add(buildGridRange());
2736 o.add(buildGridRange()); 2759 o.add(buildGridRange());
2737 return o; 2760 return o;
2738 } 2761 }
2739 2762
2740 checkUnnamed618(core.List<api.GridRange> o) { 2763 checkUnnamed3190(core.List<api.GridRange> o) {
2741 unittest.expect(o, unittest.hasLength(2)); 2764 unittest.expect(o, unittest.hasLength(2));
2742 checkGridRange(o[0]); 2765 checkGridRange(o[0]);
2743 checkGridRange(o[1]); 2766 checkGridRange(o[1]);
2744 } 2767 }
2745 2768
2746 buildUnnamed619() { 2769 buildUnnamed3191() {
2747 var o = new core.List<api.ProtectedRange>(); 2770 var o = new core.List<api.ProtectedRange>();
2748 o.add(buildProtectedRange()); 2771 o.add(buildProtectedRange());
2749 o.add(buildProtectedRange()); 2772 o.add(buildProtectedRange());
2750 return o; 2773 return o;
2751 } 2774 }
2752 2775
2753 checkUnnamed619(core.List<api.ProtectedRange> o) { 2776 checkUnnamed3191(core.List<api.ProtectedRange> o) {
2754 unittest.expect(o, unittest.hasLength(2)); 2777 unittest.expect(o, unittest.hasLength(2));
2755 checkProtectedRange(o[0]); 2778 checkProtectedRange(o[0]);
2756 checkProtectedRange(o[1]); 2779 checkProtectedRange(o[1]);
2757 } 2780 }
2758 2781
2759 core.int buildCounterSheet = 0; 2782 core.int buildCounterSheet = 0;
2760 buildSheet() { 2783 buildSheet() {
2761 var o = new api.Sheet(); 2784 var o = new api.Sheet();
2762 buildCounterSheet++; 2785 buildCounterSheet++;
2763 if (buildCounterSheet < 3) { 2786 if (buildCounterSheet < 3) {
2764 o.basicFilter = buildBasicFilter(); 2787 o.basicFilter = buildBasicFilter();
2765 o.charts = buildUnnamed614(); 2788 o.charts = buildUnnamed3186();
2766 o.conditionalFormats = buildUnnamed615(); 2789 o.conditionalFormats = buildUnnamed3187();
2767 o.data = buildUnnamed616(); 2790 o.data = buildUnnamed3188();
2768 o.filterViews = buildUnnamed617(); 2791 o.filterViews = buildUnnamed3189();
2769 o.merges = buildUnnamed618(); 2792 o.merges = buildUnnamed3190();
2770 o.properties = buildSheetProperties(); 2793 o.properties = buildSheetProperties();
2771 o.protectedRanges = buildUnnamed619(); 2794 o.protectedRanges = buildUnnamed3191();
2772 } 2795 }
2773 buildCounterSheet--; 2796 buildCounterSheet--;
2774 return o; 2797 return o;
2775 } 2798 }
2776 2799
2777 checkSheet(api.Sheet o) { 2800 checkSheet(api.Sheet o) {
2778 buildCounterSheet++; 2801 buildCounterSheet++;
2779 if (buildCounterSheet < 3) { 2802 if (buildCounterSheet < 3) {
2780 checkBasicFilter(o.basicFilter); 2803 checkBasicFilter(o.basicFilter);
2781 checkUnnamed614(o.charts); 2804 checkUnnamed3186(o.charts);
2782 checkUnnamed615(o.conditionalFormats); 2805 checkUnnamed3187(o.conditionalFormats);
2783 checkUnnamed616(o.data); 2806 checkUnnamed3188(o.data);
2784 checkUnnamed617(o.filterViews); 2807 checkUnnamed3189(o.filterViews);
2785 checkUnnamed618(o.merges); 2808 checkUnnamed3190(o.merges);
2786 checkSheetProperties(o.properties); 2809 checkSheetProperties(o.properties);
2787 checkUnnamed619(o.protectedRanges); 2810 checkUnnamed3191(o.protectedRanges);
2788 } 2811 }
2789 buildCounterSheet--; 2812 buildCounterSheet--;
2790 } 2813 }
2791 2814
2792 core.int buildCounterSheetProperties = 0; 2815 core.int buildCounterSheetProperties = 0;
2793 buildSheetProperties() { 2816 buildSheetProperties() {
2794 var o = new api.SheetProperties(); 2817 var o = new api.SheetProperties();
2795 buildCounterSheetProperties++; 2818 buildCounterSheetProperties++;
2796 if (buildCounterSheetProperties < 3) { 2819 if (buildCounterSheetProperties < 3) {
2797 o.gridProperties = buildGridProperties(); 2820 o.gridProperties = buildGridProperties();
(...skipping 17 matching lines...) Expand all
2815 unittest.expect(o.index, unittest.equals(42)); 2838 unittest.expect(o.index, unittest.equals(42));
2816 unittest.expect(o.rightToLeft, unittest.isTrue); 2839 unittest.expect(o.rightToLeft, unittest.isTrue);
2817 unittest.expect(o.sheetId, unittest.equals(42)); 2840 unittest.expect(o.sheetId, unittest.equals(42));
2818 unittest.expect(o.sheetType, unittest.equals('foo')); 2841 unittest.expect(o.sheetType, unittest.equals('foo'));
2819 checkColor(o.tabColor); 2842 checkColor(o.tabColor);
2820 unittest.expect(o.title, unittest.equals('foo')); 2843 unittest.expect(o.title, unittest.equals('foo'));
2821 } 2844 }
2822 buildCounterSheetProperties--; 2845 buildCounterSheetProperties--;
2823 } 2846 }
2824 2847
2825 buildUnnamed620() { 2848 buildUnnamed3192() {
2826 var o = new core.List<api.SortSpec>(); 2849 var o = new core.List<api.SortSpec>();
2827 o.add(buildSortSpec()); 2850 o.add(buildSortSpec());
2828 o.add(buildSortSpec()); 2851 o.add(buildSortSpec());
2829 return o; 2852 return o;
2830 } 2853 }
2831 2854
2832 checkUnnamed620(core.List<api.SortSpec> o) { 2855 checkUnnamed3192(core.List<api.SortSpec> o) {
2833 unittest.expect(o, unittest.hasLength(2)); 2856 unittest.expect(o, unittest.hasLength(2));
2834 checkSortSpec(o[0]); 2857 checkSortSpec(o[0]);
2835 checkSortSpec(o[1]); 2858 checkSortSpec(o[1]);
2836 } 2859 }
2837 2860
2838 core.int buildCounterSortRangeRequest = 0; 2861 core.int buildCounterSortRangeRequest = 0;
2839 buildSortRangeRequest() { 2862 buildSortRangeRequest() {
2840 var o = new api.SortRangeRequest(); 2863 var o = new api.SortRangeRequest();
2841 buildCounterSortRangeRequest++; 2864 buildCounterSortRangeRequest++;
2842 if (buildCounterSortRangeRequest < 3) { 2865 if (buildCounterSortRangeRequest < 3) {
2843 o.range = buildGridRange(); 2866 o.range = buildGridRange();
2844 o.sortSpecs = buildUnnamed620(); 2867 o.sortSpecs = buildUnnamed3192();
2845 } 2868 }
2846 buildCounterSortRangeRequest--; 2869 buildCounterSortRangeRequest--;
2847 return o; 2870 return o;
2848 } 2871 }
2849 2872
2850 checkSortRangeRequest(api.SortRangeRequest o) { 2873 checkSortRangeRequest(api.SortRangeRequest o) {
2851 buildCounterSortRangeRequest++; 2874 buildCounterSortRangeRequest++;
2852 if (buildCounterSortRangeRequest < 3) { 2875 if (buildCounterSortRangeRequest < 3) {
2853 checkGridRange(o.range); 2876 checkGridRange(o.range);
2854 checkUnnamed620(o.sortSpecs); 2877 checkUnnamed3192(o.sortSpecs);
2855 } 2878 }
2856 buildCounterSortRangeRequest--; 2879 buildCounterSortRangeRequest--;
2857 } 2880 }
2858 2881
2859 core.int buildCounterSortSpec = 0; 2882 core.int buildCounterSortSpec = 0;
2860 buildSortSpec() { 2883 buildSortSpec() {
2861 var o = new api.SortSpec(); 2884 var o = new api.SortSpec();
2862 buildCounterSortSpec++; 2885 buildCounterSortSpec++;
2863 if (buildCounterSortSpec < 3) { 2886 if (buildCounterSortSpec < 3) {
2864 o.dimensionIndex = 42; 2887 o.dimensionIndex = 42;
(...skipping 28 matching lines...) Expand all
2893 checkSourceAndDestination(api.SourceAndDestination o) { 2916 checkSourceAndDestination(api.SourceAndDestination o) {
2894 buildCounterSourceAndDestination++; 2917 buildCounterSourceAndDestination++;
2895 if (buildCounterSourceAndDestination < 3) { 2918 if (buildCounterSourceAndDestination < 3) {
2896 unittest.expect(o.dimension, unittest.equals('foo')); 2919 unittest.expect(o.dimension, unittest.equals('foo'));
2897 unittest.expect(o.fillLength, unittest.equals(42)); 2920 unittest.expect(o.fillLength, unittest.equals(42));
2898 checkGridRange(o.source); 2921 checkGridRange(o.source);
2899 } 2922 }
2900 buildCounterSourceAndDestination--; 2923 buildCounterSourceAndDestination--;
2901 } 2924 }
2902 2925
2903 buildUnnamed621() { 2926 buildUnnamed3193() {
2904 var o = new core.List<api.NamedRange>(); 2927 var o = new core.List<api.NamedRange>();
2905 o.add(buildNamedRange()); 2928 o.add(buildNamedRange());
2906 o.add(buildNamedRange()); 2929 o.add(buildNamedRange());
2907 return o; 2930 return o;
2908 } 2931 }
2909 2932
2910 checkUnnamed621(core.List<api.NamedRange> o) { 2933 checkUnnamed3193(core.List<api.NamedRange> o) {
2911 unittest.expect(o, unittest.hasLength(2)); 2934 unittest.expect(o, unittest.hasLength(2));
2912 checkNamedRange(o[0]); 2935 checkNamedRange(o[0]);
2913 checkNamedRange(o[1]); 2936 checkNamedRange(o[1]);
2914 } 2937 }
2915 2938
2916 buildUnnamed622() { 2939 buildUnnamed3194() {
2917 var o = new core.List<api.Sheet>(); 2940 var o = new core.List<api.Sheet>();
2918 o.add(buildSheet()); 2941 o.add(buildSheet());
2919 o.add(buildSheet()); 2942 o.add(buildSheet());
2920 return o; 2943 return o;
2921 } 2944 }
2922 2945
2923 checkUnnamed622(core.List<api.Sheet> o) { 2946 checkUnnamed3194(core.List<api.Sheet> o) {
2924 unittest.expect(o, unittest.hasLength(2)); 2947 unittest.expect(o, unittest.hasLength(2));
2925 checkSheet(o[0]); 2948 checkSheet(o[0]);
2926 checkSheet(o[1]); 2949 checkSheet(o[1]);
2927 } 2950 }
2928 2951
2929 core.int buildCounterSpreadsheet = 0; 2952 core.int buildCounterSpreadsheet = 0;
2930 buildSpreadsheet() { 2953 buildSpreadsheet() {
2931 var o = new api.Spreadsheet(); 2954 var o = new api.Spreadsheet();
2932 buildCounterSpreadsheet++; 2955 buildCounterSpreadsheet++;
2933 if (buildCounterSpreadsheet < 3) { 2956 if (buildCounterSpreadsheet < 3) {
2934 o.namedRanges = buildUnnamed621(); 2957 o.namedRanges = buildUnnamed3193();
2935 o.properties = buildSpreadsheetProperties(); 2958 o.properties = buildSpreadsheetProperties();
2936 o.sheets = buildUnnamed622(); 2959 o.sheets = buildUnnamed3194();
2937 o.spreadsheetId = "foo"; 2960 o.spreadsheetId = "foo";
2938 } 2961 }
2939 buildCounterSpreadsheet--; 2962 buildCounterSpreadsheet--;
2940 return o; 2963 return o;
2941 } 2964 }
2942 2965
2943 checkSpreadsheet(api.Spreadsheet o) { 2966 checkSpreadsheet(api.Spreadsheet o) {
2944 buildCounterSpreadsheet++; 2967 buildCounterSpreadsheet++;
2945 if (buildCounterSpreadsheet < 3) { 2968 if (buildCounterSpreadsheet < 3) {
2946 checkUnnamed621(o.namedRanges); 2969 checkUnnamed3193(o.namedRanges);
2947 checkSpreadsheetProperties(o.properties); 2970 checkSpreadsheetProperties(o.properties);
2948 checkUnnamed622(o.sheets); 2971 checkUnnamed3194(o.sheets);
2949 unittest.expect(o.spreadsheetId, unittest.equals('foo')); 2972 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
2950 } 2973 }
2951 buildCounterSpreadsheet--; 2974 buildCounterSpreadsheet--;
2952 } 2975 }
2953 2976
2954 core.int buildCounterSpreadsheetProperties = 0; 2977 core.int buildCounterSpreadsheetProperties = 0;
2955 buildSpreadsheetProperties() { 2978 buildSpreadsheetProperties() {
2956 var o = new api.SpreadsheetProperties(); 2979 var o = new api.SpreadsheetProperties();
2957 buildCounterSpreadsheetProperties++; 2980 buildCounterSpreadsheetProperties++;
2958 if (buildCounterSpreadsheetProperties < 3) { 2981 if (buildCounterSpreadsheetProperties < 3) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3096 checkBorder(o.innerHorizontal); 3119 checkBorder(o.innerHorizontal);
3097 checkBorder(o.innerVertical); 3120 checkBorder(o.innerVertical);
3098 checkBorder(o.left); 3121 checkBorder(o.left);
3099 checkGridRange(o.range); 3122 checkGridRange(o.range);
3100 checkBorder(o.right); 3123 checkBorder(o.right);
3101 checkBorder(o.top); 3124 checkBorder(o.top);
3102 } 3125 }
3103 buildCounterUpdateBordersRequest--; 3126 buildCounterUpdateBordersRequest--;
3104 } 3127 }
3105 3128
3106 buildUnnamed623() { 3129 buildUnnamed3195() {
3107 var o = new core.List<api.RowData>(); 3130 var o = new core.List<api.RowData>();
3108 o.add(buildRowData()); 3131 o.add(buildRowData());
3109 o.add(buildRowData()); 3132 o.add(buildRowData());
3110 return o; 3133 return o;
3111 } 3134 }
3112 3135
3113 checkUnnamed623(core.List<api.RowData> o) { 3136 checkUnnamed3195(core.List<api.RowData> o) {
3114 unittest.expect(o, unittest.hasLength(2)); 3137 unittest.expect(o, unittest.hasLength(2));
3115 checkRowData(o[0]); 3138 checkRowData(o[0]);
3116 checkRowData(o[1]); 3139 checkRowData(o[1]);
3117 } 3140 }
3118 3141
3119 core.int buildCounterUpdateCellsRequest = 0; 3142 core.int buildCounterUpdateCellsRequest = 0;
3120 buildUpdateCellsRequest() { 3143 buildUpdateCellsRequest() {
3121 var o = new api.UpdateCellsRequest(); 3144 var o = new api.UpdateCellsRequest();
3122 buildCounterUpdateCellsRequest++; 3145 buildCounterUpdateCellsRequest++;
3123 if (buildCounterUpdateCellsRequest < 3) { 3146 if (buildCounterUpdateCellsRequest < 3) {
3124 o.fields = "foo"; 3147 o.fields = "foo";
3125 o.range = buildGridRange(); 3148 o.range = buildGridRange();
3126 o.rows = buildUnnamed623(); 3149 o.rows = buildUnnamed3195();
3127 o.start = buildGridCoordinate(); 3150 o.start = buildGridCoordinate();
3128 } 3151 }
3129 buildCounterUpdateCellsRequest--; 3152 buildCounterUpdateCellsRequest--;
3130 return o; 3153 return o;
3131 } 3154 }
3132 3155
3133 checkUpdateCellsRequest(api.UpdateCellsRequest o) { 3156 checkUpdateCellsRequest(api.UpdateCellsRequest o) {
3134 buildCounterUpdateCellsRequest++; 3157 buildCounterUpdateCellsRequest++;
3135 if (buildCounterUpdateCellsRequest < 3) { 3158 if (buildCounterUpdateCellsRequest < 3) {
3136 unittest.expect(o.fields, unittest.equals('foo')); 3159 unittest.expect(o.fields, unittest.equals('foo'));
3137 checkGridRange(o.range); 3160 checkGridRange(o.range);
3138 checkUnnamed623(o.rows); 3161 checkUnnamed3195(o.rows);
3139 checkGridCoordinate(o.start); 3162 checkGridCoordinate(o.start);
3140 } 3163 }
3141 buildCounterUpdateCellsRequest--; 3164 buildCounterUpdateCellsRequest--;
3142 } 3165 }
3143 3166
3144 core.int buildCounterUpdateChartSpecRequest = 0; 3167 core.int buildCounterUpdateChartSpecRequest = 0;
3145 buildUpdateChartSpecRequest() { 3168 buildUpdateChartSpecRequest() {
3146 var o = new api.UpdateChartSpecRequest(); 3169 var o = new api.UpdateChartSpecRequest();
3147 buildCounterUpdateChartSpecRequest++; 3170 buildCounterUpdateChartSpecRequest++;
3148 if (buildCounterUpdateChartSpecRequest < 3) { 3171 if (buildCounterUpdateChartSpecRequest < 3) {
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
3402 if (buildCounterUpdateValuesResponse < 3) { 3425 if (buildCounterUpdateValuesResponse < 3) {
3403 unittest.expect(o.spreadsheetId, unittest.equals('foo')); 3426 unittest.expect(o.spreadsheetId, unittest.equals('foo'));
3404 unittest.expect(o.updatedCells, unittest.equals(42)); 3427 unittest.expect(o.updatedCells, unittest.equals(42));
3405 unittest.expect(o.updatedColumns, unittest.equals(42)); 3428 unittest.expect(o.updatedColumns, unittest.equals(42));
3406 unittest.expect(o.updatedRange, unittest.equals('foo')); 3429 unittest.expect(o.updatedRange, unittest.equals('foo'));
3407 unittest.expect(o.updatedRows, unittest.equals(42)); 3430 unittest.expect(o.updatedRows, unittest.equals(42));
3408 } 3431 }
3409 buildCounterUpdateValuesResponse--; 3432 buildCounterUpdateValuesResponse--;
3410 } 3433 }
3411 3434
3412 buildUnnamed624() { 3435 buildUnnamed3196() {
3413 var o = new core.List<core.Object>(); 3436 var o = new core.List<core.Object>();
3414 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 3437 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
3415 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 3438 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
3416 return o; 3439 return o;
3417 } 3440 }
3418 3441
3419 checkUnnamed624(core.List<core.Object> o) { 3442 checkUnnamed3196(core.List<core.Object> o) {
3420 unittest.expect(o, unittest.hasLength(2)); 3443 unittest.expect(o, unittest.hasLength(2));
3421 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 3444 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo'));
3422 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 3445 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo'));
3423 } 3446 }
3424 3447
3425 buildUnnamed625() { 3448 buildUnnamed3197() {
3426 var o = new core.List<core.List<core.Object>>(); 3449 var o = new core.List<core.List<core.Object>>();
3427 o.add(buildUnnamed624()); 3450 o.add(buildUnnamed3196());
3428 o.add(buildUnnamed624()); 3451 o.add(buildUnnamed3196());
3429 return o; 3452 return o;
3430 } 3453 }
3431 3454
3432 checkUnnamed625(core.List<core.List<core.Object>> o) { 3455 checkUnnamed3197(core.List<core.List<core.Object>> o) {
3433 unittest.expect(o, unittest.hasLength(2)); 3456 unittest.expect(o, unittest.hasLength(2));
3434 checkUnnamed624(o[0]); 3457 checkUnnamed3196(o[0]);
3435 checkUnnamed624(o[1]); 3458 checkUnnamed3196(o[1]);
3436 } 3459 }
3437 3460
3438 core.int buildCounterValueRange = 0; 3461 core.int buildCounterValueRange = 0;
3439 buildValueRange() { 3462 buildValueRange() {
3440 var o = new api.ValueRange(); 3463 var o = new api.ValueRange();
3441 buildCounterValueRange++; 3464 buildCounterValueRange++;
3442 if (buildCounterValueRange < 3) { 3465 if (buildCounterValueRange < 3) {
3443 o.majorDimension = "foo"; 3466 o.majorDimension = "foo";
3444 o.range = "foo"; 3467 o.range = "foo";
3445 o.values = buildUnnamed625(); 3468 o.values = buildUnnamed3197();
3446 } 3469 }
3447 buildCounterValueRange--; 3470 buildCounterValueRange--;
3448 return o; 3471 return o;
3449 } 3472 }
3450 3473
3451 checkValueRange(api.ValueRange o) { 3474 checkValueRange(api.ValueRange o) {
3452 buildCounterValueRange++; 3475 buildCounterValueRange++;
3453 if (buildCounterValueRange < 3) { 3476 if (buildCounterValueRange < 3) {
3454 unittest.expect(o.majorDimension, unittest.equals('foo')); 3477 unittest.expect(o.majorDimension, unittest.equals('foo'));
3455 unittest.expect(o.range, unittest.equals('foo')); 3478 unittest.expect(o.range, unittest.equals('foo'));
3456 checkUnnamed625(o.values); 3479 checkUnnamed3197(o.values);
3457 } 3480 }
3458 buildCounterValueRange--; 3481 buildCounterValueRange--;
3459 } 3482 }
3460 3483
3461 buildUnnamed626() { 3484 buildUnnamed3198() {
3462 var o = new core.List<core.String>(); 3485 var o = new core.List<core.String>();
3463 o.add("foo"); 3486 o.add("foo");
3464 o.add("foo"); 3487 o.add("foo");
3465 return o; 3488 return o;
3466 } 3489 }
3467 3490
3468 checkUnnamed626(core.List<core.String> o) { 3491 checkUnnamed3198(core.List<core.String> o) {
3469 unittest.expect(o, unittest.hasLength(2)); 3492 unittest.expect(o, unittest.hasLength(2));
3470 unittest.expect(o[0], unittest.equals('foo')); 3493 unittest.expect(o[0], unittest.equals('foo'));
3471 unittest.expect(o[1], unittest.equals('foo')); 3494 unittest.expect(o[1], unittest.equals('foo'));
3472 } 3495 }
3473 3496
3474 buildUnnamed627() { 3497 buildUnnamed3199() {
3475 var o = new core.List<core.String>(); 3498 var o = new core.List<core.String>();
3476 o.add("foo"); 3499 o.add("foo");
3477 o.add("foo"); 3500 o.add("foo");
3478 return o; 3501 return o;
3479 } 3502 }
3480 3503
3481 checkUnnamed627(core.List<core.String> o) { 3504 checkUnnamed3199(core.List<core.String> o) {
3482 unittest.expect(o, unittest.hasLength(2)); 3505 unittest.expect(o, unittest.hasLength(2));
3483 unittest.expect(o[0], unittest.equals('foo')); 3506 unittest.expect(o[0], unittest.equals('foo'));
3484 unittest.expect(o[1], unittest.equals('foo')); 3507 unittest.expect(o[1], unittest.equals('foo'));
3485 } 3508 }
3486 3509
3487 3510
3488 main() { 3511 main() {
3489 unittest.group("obj-schema-AddChartRequest", () { 3512 unittest.group("obj-schema-AddChartRequest", () {
3490 unittest.test("to-json--from-json", () { 3513 unittest.test("to-json--from-json", () {
3491 var o = buildAddChartRequest(); 3514 var o = buildAddChartRequest();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
3596 3619
3597 unittest.group("obj-schema-AppendDimensionRequest", () { 3620 unittest.group("obj-schema-AppendDimensionRequest", () {
3598 unittest.test("to-json--from-json", () { 3621 unittest.test("to-json--from-json", () {
3599 var o = buildAppendDimensionRequest(); 3622 var o = buildAppendDimensionRequest();
3600 var od = new api.AppendDimensionRequest.fromJson(o.toJson()); 3623 var od = new api.AppendDimensionRequest.fromJson(o.toJson());
3601 checkAppendDimensionRequest(od); 3624 checkAppendDimensionRequest(od);
3602 }); 3625 });
3603 }); 3626 });
3604 3627
3605 3628
3629 unittest.group("obj-schema-AppendValuesResponse", () {
3630 unittest.test("to-json--from-json", () {
3631 var o = buildAppendValuesResponse();
3632 var od = new api.AppendValuesResponse.fromJson(o.toJson());
3633 checkAppendValuesResponse(od);
3634 });
3635 });
3636
3637
3606 unittest.group("obj-schema-AutoFillRequest", () { 3638 unittest.group("obj-schema-AutoFillRequest", () {
3607 unittest.test("to-json--from-json", () { 3639 unittest.test("to-json--from-json", () {
3608 var o = buildAutoFillRequest(); 3640 var o = buildAutoFillRequest();
3609 var od = new api.AutoFillRequest.fromJson(o.toJson()); 3641 var od = new api.AutoFillRequest.fromJson(o.toJson());
3610 checkAutoFillRequest(od); 3642 checkAutoFillRequest(od);
3611 }); 3643 });
3612 }); 3644 });
3613 3645
3614 3646
3615 unittest.group("obj-schema-AutoResizeDimensionsRequest", () { 3647 unittest.group("obj-schema-AutoResizeDimensionsRequest", () {
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
4658 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon se) { 4690 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon se) {
4659 checkSpreadsheet(response); 4691 checkSpreadsheet(response);
4660 }))); 4692 })));
4661 }); 4693 });
4662 4694
4663 unittest.test("method--get", () { 4695 unittest.test("method--get", () {
4664 4696
4665 var mock = new HttpServerMock(); 4697 var mock = new HttpServerMock();
4666 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; 4698 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets;
4667 var arg_spreadsheetId = "foo"; 4699 var arg_spreadsheetId = "foo";
4668 var arg_ranges = buildUnnamed626(); 4700 var arg_ranges = buildUnnamed3198();
4669 var arg_includeGridData = true; 4701 var arg_includeGridData = true;
4670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4702 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4671 var path = (req.url).path; 4703 var path = (req.url).path;
4672 var pathOffset = 0; 4704 var pathOffset = 0;
4673 var index; 4705 var index;
4674 var subPart; 4706 var subPart;
4675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4707 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4676 pathOffset += 1; 4708 pathOffset += 1;
4677 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("v4/spreadsheets/")); 4709 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("v4/spreadsheets/"));
4678 pathOffset += 16; 4710 pathOffset += 16;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
4775 }), true); 4807 }), true);
4776 res.copyTo(arg_request, arg_spreadsheetId, arg_sheetId).then(unittest.expe ctAsync(((api.SheetProperties response) { 4808 res.copyTo(arg_request, arg_spreadsheetId, arg_sheetId).then(unittest.expe ctAsync(((api.SheetProperties response) {
4777 checkSheetProperties(response); 4809 checkSheetProperties(response);
4778 }))); 4810 })));
4779 }); 4811 });
4780 4812
4781 }); 4813 });
4782 4814
4783 4815
4784 unittest.group("resource-SpreadsheetsValuesResourceApi", () { 4816 unittest.group("resource-SpreadsheetsValuesResourceApi", () {
4817 unittest.test("method--append", () {
4818
4819 var mock = new HttpServerMock();
4820 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee ts.values;
4821 var arg_request = buildValueRange();
4822 var arg_spreadsheetId = "foo";
4823 var arg_range = "foo";
4824 var arg_valueInputOption = "foo";
4825 var arg_insertDataOption = "foo";
4826 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4827 var obj = new api.ValueRange.fromJson(json);
4828 checkValueRange(obj);
4829
4830 var path = (req.url).path;
4831 var pathOffset = 0;
4832 var index;
4833 var subPart;
4834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4835 pathOffset += 1;
4836 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("v4/spreadsheets/"));
4837 pathOffset += 16;
4838 index = path.indexOf("/values/", pathOffset);
4839 unittest.expect(index >= 0, unittest.isTrue);
4840 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4841 pathOffset = index;
4842 unittest.expect(subPart, unittest.equals("$arg_spreadsheetId"));
4843 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/values/"));
4844 pathOffset += 8;
4845 index = path.indexOf(":append", pathOffset);
4846 unittest.expect(index >= 0, unittest.isTrue);
4847 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4848 pathOffset = index;
4849 unittest.expect(subPart, unittest.equals("$arg_range"));
4850 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als(":append"));
4851 pathOffset += 7;
4852
4853 var query = (req.url).query;
4854 var queryOffset = 0;
4855 var queryMap = {};
4856 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4857 parseBool(n) {
4858 if (n == "true") return true;
4859 if (n == "false") return false;
4860 if (n == null) return null;
4861 throw new core.ArgumentError("Invalid boolean: $n");
4862 }
4863 if (query.length > 0) {
4864 for (var part in query.split("&")) {
4865 var keyvalue = part.split("=");
4866 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4867 }
4868 }
4869 unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_ valueInputOption));
4870 unittest.expect(queryMap["insertDataOption"].first, unittest.equals(arg_ insertDataOption));
4871
4872
4873 var h = {
4874 "content-type" : "application/json; charset=utf-8",
4875 };
4876 var resp = convert.JSON.encode(buildAppendValuesResponse());
4877 return new async.Future.value(stringResponse(200, h, resp));
4878 }), true);
4879 res.append(arg_request, arg_spreadsheetId, arg_range, valueInputOption: ar g_valueInputOption, insertDataOption: arg_insertDataOption).then(unittest.expect Async(((api.AppendValuesResponse response) {
4880 checkAppendValuesResponse(response);
4881 })));
4882 });
4883
4785 unittest.test("method--batchGet", () { 4884 unittest.test("method--batchGet", () {
4786 4885
4787 var mock = new HttpServerMock(); 4886 var mock = new HttpServerMock();
4788 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee ts.values; 4887 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee ts.values;
4789 var arg_spreadsheetId = "foo"; 4888 var arg_spreadsheetId = "foo";
4790 var arg_ranges = buildUnnamed627(); 4889 var arg_ranges = buildUnnamed3199();
4791 var arg_valueRenderOption = "foo"; 4890 var arg_valueRenderOption = "foo";
4792 var arg_dateTimeRenderOption = "foo"; 4891 var arg_dateTimeRenderOption = "foo";
4793 var arg_majorDimension = "foo"; 4892 var arg_majorDimension = "foo";
4794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4893 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4795 var path = (req.url).path; 4894 var path = (req.url).path;
4796 var pathOffset = 0; 4895 var pathOffset = 0;
4797 var index; 4896 var index;
4798 var subPart; 4897 var subPart;
4799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4898 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4800 pathOffset += 1; 4899 pathOffset += 1;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
5016 res.update(arg_request, arg_spreadsheetId, arg_range, valueInputOption: ar g_valueInputOption).then(unittest.expectAsync(((api.UpdateValuesResponse respons e) { 5115 res.update(arg_request, arg_spreadsheetId, arg_range, valueInputOption: ar g_valueInputOption).then(unittest.expectAsync(((api.UpdateValuesResponse respons e) {
5017 checkUpdateValuesResponse(response); 5116 checkUpdateValuesResponse(response);
5018 }))); 5117 })));
5019 }); 5118 });
5020 5119
5021 }); 5120 });
5022 5121
5023 5122
5024 } 5123 }
5025 5124
OLDNEW
« no previous file with comments | « generated/googleapis/test/servicemanagement/v1_test.dart ('k') | generated/googleapis/test/siteverification/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698