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

Side by Side Diff: generated/googleapis_beta/test/toolresults/v1beta3_test.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis_beta.toolresults.v1beta3.test; 1 library googleapis_beta.toolresults.v1beta3.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkAny(api.Any o) { 66 checkAny(api.Any o) {
67 buildCounterAny++; 67 buildCounterAny++;
68 if (buildCounterAny < 3) { 68 if (buildCounterAny < 3) {
69 unittest.expect(o.typeUrl, unittest.equals('foo')); 69 unittest.expect(o.typeUrl, unittest.equals('foo'));
70 unittest.expect(o.value, unittest.equals('foo')); 70 unittest.expect(o.value, unittest.equals('foo'));
71 } 71 }
72 buildCounterAny--; 72 buildCounterAny--;
73 } 73 }
74 74
75 core.int buildCounterBasicPerfSampleSeries = 0;
76 buildBasicPerfSampleSeries() {
77 var o = new api.BasicPerfSampleSeries();
78 buildCounterBasicPerfSampleSeries++;
79 if (buildCounterBasicPerfSampleSeries < 3) {
80 o.perfMetricType = "foo";
81 o.perfUnit = "foo";
82 o.sampleSeriesLabel = "foo";
83 }
84 buildCounterBasicPerfSampleSeries--;
85 return o;
86 }
87
88 checkBasicPerfSampleSeries(api.BasicPerfSampleSeries o) {
89 buildCounterBasicPerfSampleSeries++;
90 if (buildCounterBasicPerfSampleSeries < 3) {
91 unittest.expect(o.perfMetricType, unittest.equals('foo'));
92 unittest.expect(o.perfUnit, unittest.equals('foo'));
93 unittest.expect(o.sampleSeriesLabel, unittest.equals('foo'));
94 }
95 buildCounterBasicPerfSampleSeries--;
96 }
97
98 buildUnnamed3230() {
99 var o = new core.List<api.PerfSample>();
100 o.add(buildPerfSample());
101 o.add(buildPerfSample());
102 return o;
103 }
104
105 checkUnnamed3230(core.List<api.PerfSample> o) {
106 unittest.expect(o, unittest.hasLength(2));
107 checkPerfSample(o[0]);
108 checkPerfSample(o[1]);
109 }
110
111 core.int buildCounterBatchCreatePerfSamplesRequest = 0;
112 buildBatchCreatePerfSamplesRequest() {
113 var o = new api.BatchCreatePerfSamplesRequest();
114 buildCounterBatchCreatePerfSamplesRequest++;
115 if (buildCounterBatchCreatePerfSamplesRequest < 3) {
116 o.perfSamples = buildUnnamed3230();
117 }
118 buildCounterBatchCreatePerfSamplesRequest--;
119 return o;
120 }
121
122 checkBatchCreatePerfSamplesRequest(api.BatchCreatePerfSamplesRequest o) {
123 buildCounterBatchCreatePerfSamplesRequest++;
124 if (buildCounterBatchCreatePerfSamplesRequest < 3) {
125 checkUnnamed3230(o.perfSamples);
126 }
127 buildCounterBatchCreatePerfSamplesRequest--;
128 }
129
130 buildUnnamed3231() {
131 var o = new core.List<api.PerfSample>();
132 o.add(buildPerfSample());
133 o.add(buildPerfSample());
134 return o;
135 }
136
137 checkUnnamed3231(core.List<api.PerfSample> o) {
138 unittest.expect(o, unittest.hasLength(2));
139 checkPerfSample(o[0]);
140 checkPerfSample(o[1]);
141 }
142
143 core.int buildCounterBatchCreatePerfSamplesResponse = 0;
144 buildBatchCreatePerfSamplesResponse() {
145 var o = new api.BatchCreatePerfSamplesResponse();
146 buildCounterBatchCreatePerfSamplesResponse++;
147 if (buildCounterBatchCreatePerfSamplesResponse < 3) {
148 o.perfSamples = buildUnnamed3231();
149 }
150 buildCounterBatchCreatePerfSamplesResponse--;
151 return o;
152 }
153
154 checkBatchCreatePerfSamplesResponse(api.BatchCreatePerfSamplesResponse o) {
155 buildCounterBatchCreatePerfSamplesResponse++;
156 if (buildCounterBatchCreatePerfSamplesResponse < 3) {
157 checkUnnamed3231(o.perfSamples);
158 }
159 buildCounterBatchCreatePerfSamplesResponse--;
160 }
161
162 core.int buildCounterCPUInfo = 0;
163 buildCPUInfo() {
164 var o = new api.CPUInfo();
165 buildCounterCPUInfo++;
166 if (buildCounterCPUInfo < 3) {
167 o.cpuProcessor = "foo";
168 o.cpuSpeedInGhz = 42.0;
169 o.numberOfCores = 42;
170 }
171 buildCounterCPUInfo--;
172 return o;
173 }
174
175 checkCPUInfo(api.CPUInfo o) {
176 buildCounterCPUInfo++;
177 if (buildCounterCPUInfo < 3) {
178 unittest.expect(o.cpuProcessor, unittest.equals('foo'));
179 unittest.expect(o.cpuSpeedInGhz, unittest.equals(42.0));
180 unittest.expect(o.numberOfCores, unittest.equals(42));
181 }
182 buildCounterCPUInfo--;
183 }
184
75 core.int buildCounterDuration = 0; 185 core.int buildCounterDuration = 0;
76 buildDuration() { 186 buildDuration() {
77 var o = new api.Duration(); 187 var o = new api.Duration();
78 buildCounterDuration++; 188 buildCounterDuration++;
79 if (buildCounterDuration < 3) { 189 if (buildCounterDuration < 3) {
80 o.nanos = 42; 190 o.nanos = 42;
81 o.seconds = "foo"; 191 o.seconds = "foo";
82 } 192 }
83 buildCounterDuration--; 193 buildCounterDuration--;
84 return o; 194 return o;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 340
231 checkInconclusiveDetail(api.InconclusiveDetail o) { 341 checkInconclusiveDetail(api.InconclusiveDetail o) {
232 buildCounterInconclusiveDetail++; 342 buildCounterInconclusiveDetail++;
233 if (buildCounterInconclusiveDetail < 3) { 343 if (buildCounterInconclusiveDetail < 3) {
234 unittest.expect(o.abortedByUser, unittest.isTrue); 344 unittest.expect(o.abortedByUser, unittest.isTrue);
235 unittest.expect(o.infrastructureFailure, unittest.isTrue); 345 unittest.expect(o.infrastructureFailure, unittest.isTrue);
236 } 346 }
237 buildCounterInconclusiveDetail--; 347 buildCounterInconclusiveDetail--;
238 } 348 }
239 349
240 buildUnnamed3242() { 350 buildUnnamed3232() {
241 var o = new core.List<api.Execution>(); 351 var o = new core.List<api.Execution>();
242 o.add(buildExecution()); 352 o.add(buildExecution());
243 o.add(buildExecution()); 353 o.add(buildExecution());
244 return o; 354 return o;
245 } 355 }
246 356
247 checkUnnamed3242(core.List<api.Execution> o) { 357 checkUnnamed3232(core.List<api.Execution> o) {
248 unittest.expect(o, unittest.hasLength(2)); 358 unittest.expect(o, unittest.hasLength(2));
249 checkExecution(o[0]); 359 checkExecution(o[0]);
250 checkExecution(o[1]); 360 checkExecution(o[1]);
251 } 361 }
252 362
253 core.int buildCounterListExecutionsResponse = 0; 363 core.int buildCounterListExecutionsResponse = 0;
254 buildListExecutionsResponse() { 364 buildListExecutionsResponse() {
255 var o = new api.ListExecutionsResponse(); 365 var o = new api.ListExecutionsResponse();
256 buildCounterListExecutionsResponse++; 366 buildCounterListExecutionsResponse++;
257 if (buildCounterListExecutionsResponse < 3) { 367 if (buildCounterListExecutionsResponse < 3) {
258 o.executions = buildUnnamed3242(); 368 o.executions = buildUnnamed3232();
259 o.nextPageToken = "foo"; 369 o.nextPageToken = "foo";
260 } 370 }
261 buildCounterListExecutionsResponse--; 371 buildCounterListExecutionsResponse--;
262 return o; 372 return o;
263 } 373 }
264 374
265 checkListExecutionsResponse(api.ListExecutionsResponse o) { 375 checkListExecutionsResponse(api.ListExecutionsResponse o) {
266 buildCounterListExecutionsResponse++; 376 buildCounterListExecutionsResponse++;
267 if (buildCounterListExecutionsResponse < 3) { 377 if (buildCounterListExecutionsResponse < 3) {
268 checkUnnamed3242(o.executions); 378 checkUnnamed3232(o.executions);
269 unittest.expect(o.nextPageToken, unittest.equals('foo')); 379 unittest.expect(o.nextPageToken, unittest.equals('foo'));
270 } 380 }
271 buildCounterListExecutionsResponse--; 381 buildCounterListExecutionsResponse--;
272 } 382 }
273 383
274 buildUnnamed3243() { 384 buildUnnamed3233() {
275 var o = new core.List<api.History>(); 385 var o = new core.List<api.History>();
276 o.add(buildHistory()); 386 o.add(buildHistory());
277 o.add(buildHistory()); 387 o.add(buildHistory());
278 return o; 388 return o;
279 } 389 }
280 390
281 checkUnnamed3243(core.List<api.History> o) { 391 checkUnnamed3233(core.List<api.History> o) {
282 unittest.expect(o, unittest.hasLength(2)); 392 unittest.expect(o, unittest.hasLength(2));
283 checkHistory(o[0]); 393 checkHistory(o[0]);
284 checkHistory(o[1]); 394 checkHistory(o[1]);
285 } 395 }
286 396
287 core.int buildCounterListHistoriesResponse = 0; 397 core.int buildCounterListHistoriesResponse = 0;
288 buildListHistoriesResponse() { 398 buildListHistoriesResponse() {
289 var o = new api.ListHistoriesResponse(); 399 var o = new api.ListHistoriesResponse();
290 buildCounterListHistoriesResponse++; 400 buildCounterListHistoriesResponse++;
291 if (buildCounterListHistoriesResponse < 3) { 401 if (buildCounterListHistoriesResponse < 3) {
292 o.histories = buildUnnamed3243(); 402 o.histories = buildUnnamed3233();
293 o.nextPageToken = "foo"; 403 o.nextPageToken = "foo";
294 } 404 }
295 buildCounterListHistoriesResponse--; 405 buildCounterListHistoriesResponse--;
296 return o; 406 return o;
297 } 407 }
298 408
299 checkListHistoriesResponse(api.ListHistoriesResponse o) { 409 checkListHistoriesResponse(api.ListHistoriesResponse o) {
300 buildCounterListHistoriesResponse++; 410 buildCounterListHistoriesResponse++;
301 if (buildCounterListHistoriesResponse < 3) { 411 if (buildCounterListHistoriesResponse < 3) {
302 checkUnnamed3243(o.histories); 412 checkUnnamed3233(o.histories);
303 unittest.expect(o.nextPageToken, unittest.equals('foo')); 413 unittest.expect(o.nextPageToken, unittest.equals('foo'));
304 } 414 }
305 buildCounterListHistoriesResponse--; 415 buildCounterListHistoriesResponse--;
306 } 416 }
307 417
308 buildUnnamed3244() { 418 buildUnnamed3234() {
419 var o = new core.List<api.PerfSampleSeries>();
420 o.add(buildPerfSampleSeries());
421 o.add(buildPerfSampleSeries());
422 return o;
423 }
424
425 checkUnnamed3234(core.List<api.PerfSampleSeries> o) {
426 unittest.expect(o, unittest.hasLength(2));
427 checkPerfSampleSeries(o[0]);
428 checkPerfSampleSeries(o[1]);
429 }
430
431 core.int buildCounterListPerfSampleSeriesResponse = 0;
432 buildListPerfSampleSeriesResponse() {
433 var o = new api.ListPerfSampleSeriesResponse();
434 buildCounterListPerfSampleSeriesResponse++;
435 if (buildCounterListPerfSampleSeriesResponse < 3) {
436 o.perfSampleSeries = buildUnnamed3234();
437 }
438 buildCounterListPerfSampleSeriesResponse--;
439 return o;
440 }
441
442 checkListPerfSampleSeriesResponse(api.ListPerfSampleSeriesResponse o) {
443 buildCounterListPerfSampleSeriesResponse++;
444 if (buildCounterListPerfSampleSeriesResponse < 3) {
445 checkUnnamed3234(o.perfSampleSeries);
446 }
447 buildCounterListPerfSampleSeriesResponse--;
448 }
449
450 buildUnnamed3235() {
451 var o = new core.List<api.PerfSample>();
452 o.add(buildPerfSample());
453 o.add(buildPerfSample());
454 return o;
455 }
456
457 checkUnnamed3235(core.List<api.PerfSample> o) {
458 unittest.expect(o, unittest.hasLength(2));
459 checkPerfSample(o[0]);
460 checkPerfSample(o[1]);
461 }
462
463 core.int buildCounterListPerfSamplesResponse = 0;
464 buildListPerfSamplesResponse() {
465 var o = new api.ListPerfSamplesResponse();
466 buildCounterListPerfSamplesResponse++;
467 if (buildCounterListPerfSamplesResponse < 3) {
468 o.nextPageToken = "foo";
469 o.perfSamples = buildUnnamed3235();
470 }
471 buildCounterListPerfSamplesResponse--;
472 return o;
473 }
474
475 checkListPerfSamplesResponse(api.ListPerfSamplesResponse o) {
476 buildCounterListPerfSamplesResponse++;
477 if (buildCounterListPerfSamplesResponse < 3) {
478 unittest.expect(o.nextPageToken, unittest.equals('foo'));
479 checkUnnamed3235(o.perfSamples);
480 }
481 buildCounterListPerfSamplesResponse--;
482 }
483
484 buildUnnamed3236() {
309 var o = new core.List<api.Image>(); 485 var o = new core.List<api.Image>();
310 o.add(buildImage()); 486 o.add(buildImage());
311 o.add(buildImage()); 487 o.add(buildImage());
312 return o; 488 return o;
313 } 489 }
314 490
315 checkUnnamed3244(core.List<api.Image> o) { 491 checkUnnamed3236(core.List<api.Image> o) {
316 unittest.expect(o, unittest.hasLength(2)); 492 unittest.expect(o, unittest.hasLength(2));
317 checkImage(o[0]); 493 checkImage(o[0]);
318 checkImage(o[1]); 494 checkImage(o[1]);
319 } 495 }
320 496
321 core.int buildCounterListStepThumbnailsResponse = 0; 497 core.int buildCounterListStepThumbnailsResponse = 0;
322 buildListStepThumbnailsResponse() { 498 buildListStepThumbnailsResponse() {
323 var o = new api.ListStepThumbnailsResponse(); 499 var o = new api.ListStepThumbnailsResponse();
324 buildCounterListStepThumbnailsResponse++; 500 buildCounterListStepThumbnailsResponse++;
325 if (buildCounterListStepThumbnailsResponse < 3) { 501 if (buildCounterListStepThumbnailsResponse < 3) {
326 o.nextPageToken = "foo"; 502 o.nextPageToken = "foo";
327 o.thumbnails = buildUnnamed3244(); 503 o.thumbnails = buildUnnamed3236();
328 } 504 }
329 buildCounterListStepThumbnailsResponse--; 505 buildCounterListStepThumbnailsResponse--;
330 return o; 506 return o;
331 } 507 }
332 508
333 checkListStepThumbnailsResponse(api.ListStepThumbnailsResponse o) { 509 checkListStepThumbnailsResponse(api.ListStepThumbnailsResponse o) {
334 buildCounterListStepThumbnailsResponse++; 510 buildCounterListStepThumbnailsResponse++;
335 if (buildCounterListStepThumbnailsResponse < 3) { 511 if (buildCounterListStepThumbnailsResponse < 3) {
336 unittest.expect(o.nextPageToken, unittest.equals('foo')); 512 unittest.expect(o.nextPageToken, unittest.equals('foo'));
337 checkUnnamed3244(o.thumbnails); 513 checkUnnamed3236(o.thumbnails);
338 } 514 }
339 buildCounterListStepThumbnailsResponse--; 515 buildCounterListStepThumbnailsResponse--;
340 } 516 }
341 517
342 buildUnnamed3245() { 518 buildUnnamed3237() {
343 var o = new core.List<api.Step>(); 519 var o = new core.List<api.Step>();
344 o.add(buildStep()); 520 o.add(buildStep());
345 o.add(buildStep()); 521 o.add(buildStep());
346 return o; 522 return o;
347 } 523 }
348 524
349 checkUnnamed3245(core.List<api.Step> o) { 525 checkUnnamed3237(core.List<api.Step> o) {
350 unittest.expect(o, unittest.hasLength(2)); 526 unittest.expect(o, unittest.hasLength(2));
351 checkStep(o[0]); 527 checkStep(o[0]);
352 checkStep(o[1]); 528 checkStep(o[1]);
353 } 529 }
354 530
355 core.int buildCounterListStepsResponse = 0; 531 core.int buildCounterListStepsResponse = 0;
356 buildListStepsResponse() { 532 buildListStepsResponse() {
357 var o = new api.ListStepsResponse(); 533 var o = new api.ListStepsResponse();
358 buildCounterListStepsResponse++; 534 buildCounterListStepsResponse++;
359 if (buildCounterListStepsResponse < 3) { 535 if (buildCounterListStepsResponse < 3) {
360 o.nextPageToken = "foo"; 536 o.nextPageToken = "foo";
361 o.steps = buildUnnamed3245(); 537 o.steps = buildUnnamed3237();
362 } 538 }
363 buildCounterListStepsResponse--; 539 buildCounterListStepsResponse--;
364 return o; 540 return o;
365 } 541 }
366 542
367 checkListStepsResponse(api.ListStepsResponse o) { 543 checkListStepsResponse(api.ListStepsResponse o) {
368 buildCounterListStepsResponse++; 544 buildCounterListStepsResponse++;
369 if (buildCounterListStepsResponse < 3) { 545 if (buildCounterListStepsResponse < 3) {
370 unittest.expect(o.nextPageToken, unittest.equals('foo')); 546 unittest.expect(o.nextPageToken, unittest.equals('foo'));
371 checkUnnamed3245(o.steps); 547 checkUnnamed3237(o.steps);
372 } 548 }
373 buildCounterListStepsResponse--; 549 buildCounterListStepsResponse--;
374 } 550 }
375 551
552 core.int buildCounterMemoryInfo = 0;
553 buildMemoryInfo() {
554 var o = new api.MemoryInfo();
555 buildCounterMemoryInfo++;
556 if (buildCounterMemoryInfo < 3) {
557 o.memoryCapInKibibyte = "foo";
558 o.memoryTotalInKibibyte = "foo";
559 }
560 buildCounterMemoryInfo--;
561 return o;
562 }
563
564 checkMemoryInfo(api.MemoryInfo o) {
565 buildCounterMemoryInfo++;
566 if (buildCounterMemoryInfo < 3) {
567 unittest.expect(o.memoryCapInKibibyte, unittest.equals('foo'));
568 unittest.expect(o.memoryTotalInKibibyte, unittest.equals('foo'));
569 }
570 buildCounterMemoryInfo--;
571 }
572
376 core.int buildCounterOutcome = 0; 573 core.int buildCounterOutcome = 0;
377 buildOutcome() { 574 buildOutcome() {
378 var o = new api.Outcome(); 575 var o = new api.Outcome();
379 buildCounterOutcome++; 576 buildCounterOutcome++;
380 if (buildCounterOutcome < 3) { 577 if (buildCounterOutcome < 3) {
381 o.failureDetail = buildFailureDetail(); 578 o.failureDetail = buildFailureDetail();
382 o.inconclusiveDetail = buildInconclusiveDetail(); 579 o.inconclusiveDetail = buildInconclusiveDetail();
383 o.skippedDetail = buildSkippedDetail(); 580 o.skippedDetail = buildSkippedDetail();
384 o.successDetail = buildSuccessDetail(); 581 o.successDetail = buildSuccessDetail();
385 o.summary = "foo"; 582 o.summary = "foo";
386 } 583 }
387 buildCounterOutcome--; 584 buildCounterOutcome--;
388 return o; 585 return o;
389 } 586 }
390 587
391 checkOutcome(api.Outcome o) { 588 checkOutcome(api.Outcome o) {
392 buildCounterOutcome++; 589 buildCounterOutcome++;
393 if (buildCounterOutcome < 3) { 590 if (buildCounterOutcome < 3) {
394 checkFailureDetail(o.failureDetail); 591 checkFailureDetail(o.failureDetail);
395 checkInconclusiveDetail(o.inconclusiveDetail); 592 checkInconclusiveDetail(o.inconclusiveDetail);
396 checkSkippedDetail(o.skippedDetail); 593 checkSkippedDetail(o.skippedDetail);
397 checkSuccessDetail(o.successDetail); 594 checkSuccessDetail(o.successDetail);
398 unittest.expect(o.summary, unittest.equals('foo')); 595 unittest.expect(o.summary, unittest.equals('foo'));
399 } 596 }
400 buildCounterOutcome--; 597 buildCounterOutcome--;
401 } 598 }
402 599
600 core.int buildCounterPerfEnvironment = 0;
601 buildPerfEnvironment() {
602 var o = new api.PerfEnvironment();
603 buildCounterPerfEnvironment++;
604 if (buildCounterPerfEnvironment < 3) {
605 o.cpuInfo = buildCPUInfo();
606 o.memoryInfo = buildMemoryInfo();
607 }
608 buildCounterPerfEnvironment--;
609 return o;
610 }
611
612 checkPerfEnvironment(api.PerfEnvironment o) {
613 buildCounterPerfEnvironment++;
614 if (buildCounterPerfEnvironment < 3) {
615 checkCPUInfo(o.cpuInfo);
616 checkMemoryInfo(o.memoryInfo);
617 }
618 buildCounterPerfEnvironment--;
619 }
620
621 buildUnnamed3238() {
622 var o = new core.List<core.String>();
623 o.add("foo");
624 o.add("foo");
625 return o;
626 }
627
628 checkUnnamed3238(core.List<core.String> o) {
629 unittest.expect(o, unittest.hasLength(2));
630 unittest.expect(o[0], unittest.equals('foo'));
631 unittest.expect(o[1], unittest.equals('foo'));
632 }
633
634 core.int buildCounterPerfMetricsSummary = 0;
635 buildPerfMetricsSummary() {
636 var o = new api.PerfMetricsSummary();
637 buildCounterPerfMetricsSummary++;
638 if (buildCounterPerfMetricsSummary < 3) {
639 o.executionId = "foo";
640 o.historyId = "foo";
641 o.perfEnvironment = buildPerfEnvironment();
642 o.perfMetrics = buildUnnamed3238();
643 o.projectId = "foo";
644 o.stepId = "foo";
645 }
646 buildCounterPerfMetricsSummary--;
647 return o;
648 }
649
650 checkPerfMetricsSummary(api.PerfMetricsSummary o) {
651 buildCounterPerfMetricsSummary++;
652 if (buildCounterPerfMetricsSummary < 3) {
653 unittest.expect(o.executionId, unittest.equals('foo'));
654 unittest.expect(o.historyId, unittest.equals('foo'));
655 checkPerfEnvironment(o.perfEnvironment);
656 checkUnnamed3238(o.perfMetrics);
657 unittest.expect(o.projectId, unittest.equals('foo'));
658 unittest.expect(o.stepId, unittest.equals('foo'));
659 }
660 buildCounterPerfMetricsSummary--;
661 }
662
663 core.int buildCounterPerfSample = 0;
664 buildPerfSample() {
665 var o = new api.PerfSample();
666 buildCounterPerfSample++;
667 if (buildCounterPerfSample < 3) {
668 o.sampleTime = buildTimestamp();
669 o.value = 42.0;
670 }
671 buildCounterPerfSample--;
672 return o;
673 }
674
675 checkPerfSample(api.PerfSample o) {
676 buildCounterPerfSample++;
677 if (buildCounterPerfSample < 3) {
678 checkTimestamp(o.sampleTime);
679 unittest.expect(o.value, unittest.equals(42.0));
680 }
681 buildCounterPerfSample--;
682 }
683
684 core.int buildCounterPerfSampleSeries = 0;
685 buildPerfSampleSeries() {
686 var o = new api.PerfSampleSeries();
687 buildCounterPerfSampleSeries++;
688 if (buildCounterPerfSampleSeries < 3) {
689 o.basicPerfSampleSeries = buildBasicPerfSampleSeries();
690 o.executionId = "foo";
691 o.historyId = "foo";
692 o.projectId = "foo";
693 o.sampleSeriesId = "foo";
694 o.stepId = "foo";
695 }
696 buildCounterPerfSampleSeries--;
697 return o;
698 }
699
700 checkPerfSampleSeries(api.PerfSampleSeries o) {
701 buildCounterPerfSampleSeries++;
702 if (buildCounterPerfSampleSeries < 3) {
703 checkBasicPerfSampleSeries(o.basicPerfSampleSeries);
704 unittest.expect(o.executionId, unittest.equals('foo'));
705 unittest.expect(o.historyId, unittest.equals('foo'));
706 unittest.expect(o.projectId, unittest.equals('foo'));
707 unittest.expect(o.sampleSeriesId, unittest.equals('foo'));
708 unittest.expect(o.stepId, unittest.equals('foo'));
709 }
710 buildCounterPerfSampleSeries--;
711 }
712
403 core.int buildCounterProjectSettings = 0; 713 core.int buildCounterProjectSettings = 0;
404 buildProjectSettings() { 714 buildProjectSettings() {
405 var o = new api.ProjectSettings(); 715 var o = new api.ProjectSettings();
406 buildCounterProjectSettings++; 716 buildCounterProjectSettings++;
407 if (buildCounterProjectSettings < 3) { 717 if (buildCounterProjectSettings < 3) {
408 o.defaultBucket = "foo"; 718 o.defaultBucket = "foo";
409 o.name = "foo"; 719 o.name = "foo";
410 } 720 }
411 buildCounterProjectSettings--; 721 buildCounterProjectSettings--;
412 return o; 722 return o;
413 } 723 }
414 724
415 checkProjectSettings(api.ProjectSettings o) { 725 checkProjectSettings(api.ProjectSettings o) {
416 buildCounterProjectSettings++; 726 buildCounterProjectSettings++;
417 if (buildCounterProjectSettings < 3) { 727 if (buildCounterProjectSettings < 3) {
418 unittest.expect(o.defaultBucket, unittest.equals('foo')); 728 unittest.expect(o.defaultBucket, unittest.equals('foo'));
419 unittest.expect(o.name, unittest.equals('foo')); 729 unittest.expect(o.name, unittest.equals('foo'));
420 } 730 }
421 buildCounterProjectSettings--; 731 buildCounterProjectSettings--;
422 } 732 }
423 733
424 buildUnnamed3246() { 734 buildUnnamed3239() {
425 var o = new core.List<api.FileReference>(); 735 var o = new core.List<api.FileReference>();
426 o.add(buildFileReference()); 736 o.add(buildFileReference());
427 o.add(buildFileReference()); 737 o.add(buildFileReference());
428 return o; 738 return o;
429 } 739 }
430 740
431 checkUnnamed3246(core.List<api.FileReference> o) { 741 checkUnnamed3239(core.List<api.FileReference> o) {
432 unittest.expect(o, unittest.hasLength(2)); 742 unittest.expect(o, unittest.hasLength(2));
433 checkFileReference(o[0]); 743 checkFileReference(o[0]);
434 checkFileReference(o[1]); 744 checkFileReference(o[1]);
435 } 745 }
436 746
437 core.int buildCounterPublishXunitXmlFilesRequest = 0; 747 core.int buildCounterPublishXunitXmlFilesRequest = 0;
438 buildPublishXunitXmlFilesRequest() { 748 buildPublishXunitXmlFilesRequest() {
439 var o = new api.PublishXunitXmlFilesRequest(); 749 var o = new api.PublishXunitXmlFilesRequest();
440 buildCounterPublishXunitXmlFilesRequest++; 750 buildCounterPublishXunitXmlFilesRequest++;
441 if (buildCounterPublishXunitXmlFilesRequest < 3) { 751 if (buildCounterPublishXunitXmlFilesRequest < 3) {
442 o.xunitXmlFiles = buildUnnamed3246(); 752 o.xunitXmlFiles = buildUnnamed3239();
443 } 753 }
444 buildCounterPublishXunitXmlFilesRequest--; 754 buildCounterPublishXunitXmlFilesRequest--;
445 return o; 755 return o;
446 } 756 }
447 757
448 checkPublishXunitXmlFilesRequest(api.PublishXunitXmlFilesRequest o) { 758 checkPublishXunitXmlFilesRequest(api.PublishXunitXmlFilesRequest o) {
449 buildCounterPublishXunitXmlFilesRequest++; 759 buildCounterPublishXunitXmlFilesRequest++;
450 if (buildCounterPublishXunitXmlFilesRequest < 3) { 760 if (buildCounterPublishXunitXmlFilesRequest < 3) {
451 checkUnnamed3246(o.xunitXmlFiles); 761 checkUnnamed3239(o.xunitXmlFiles);
452 } 762 }
453 buildCounterPublishXunitXmlFilesRequest--; 763 buildCounterPublishXunitXmlFilesRequest--;
454 } 764 }
455 765
456 core.int buildCounterSkippedDetail = 0; 766 core.int buildCounterSkippedDetail = 0;
457 buildSkippedDetail() { 767 buildSkippedDetail() {
458 var o = new api.SkippedDetail(); 768 var o = new api.SkippedDetail();
459 buildCounterSkippedDetail++; 769 buildCounterSkippedDetail++;
460 if (buildCounterSkippedDetail < 3) { 770 if (buildCounterSkippedDetail < 3) {
461 o.incompatibleAppVersion = true; 771 o.incompatibleAppVersion = true;
(...skipping 26 matching lines...) Expand all
488 } 798 }
489 799
490 checkStackTrace(api.StackTrace o) { 800 checkStackTrace(api.StackTrace o) {
491 buildCounterStackTrace++; 801 buildCounterStackTrace++;
492 if (buildCounterStackTrace < 3) { 802 if (buildCounterStackTrace < 3) {
493 unittest.expect(o.exception, unittest.equals('foo')); 803 unittest.expect(o.exception, unittest.equals('foo'));
494 } 804 }
495 buildCounterStackTrace--; 805 buildCounterStackTrace--;
496 } 806 }
497 807
498 buildUnnamed3247() { 808 buildUnnamed3240() {
499 var o = new core.List<api.Any>(); 809 var o = new core.List<api.Any>();
500 o.add(buildAny()); 810 o.add(buildAny());
501 o.add(buildAny()); 811 o.add(buildAny());
502 return o; 812 return o;
503 } 813 }
504 814
505 checkUnnamed3247(core.List<api.Any> o) { 815 checkUnnamed3240(core.List<api.Any> o) {
506 unittest.expect(o, unittest.hasLength(2)); 816 unittest.expect(o, unittest.hasLength(2));
507 checkAny(o[0]); 817 checkAny(o[0]);
508 checkAny(o[1]); 818 checkAny(o[1]);
509 } 819 }
510 820
511 core.int buildCounterStatus = 0; 821 core.int buildCounterStatus = 0;
512 buildStatus() { 822 buildStatus() {
513 var o = new api.Status(); 823 var o = new api.Status();
514 buildCounterStatus++; 824 buildCounterStatus++;
515 if (buildCounterStatus < 3) { 825 if (buildCounterStatus < 3) {
516 o.code = 42; 826 o.code = 42;
517 o.details = buildUnnamed3247(); 827 o.details = buildUnnamed3240();
518 o.message = "foo"; 828 o.message = "foo";
519 } 829 }
520 buildCounterStatus--; 830 buildCounterStatus--;
521 return o; 831 return o;
522 } 832 }
523 833
524 checkStatus(api.Status o) { 834 checkStatus(api.Status o) {
525 buildCounterStatus++; 835 buildCounterStatus++;
526 if (buildCounterStatus < 3) { 836 if (buildCounterStatus < 3) {
527 unittest.expect(o.code, unittest.equals(42)); 837 unittest.expect(o.code, unittest.equals(42));
528 checkUnnamed3247(o.details); 838 checkUnnamed3240(o.details);
529 unittest.expect(o.message, unittest.equals('foo')); 839 unittest.expect(o.message, unittest.equals('foo'));
530 } 840 }
531 buildCounterStatus--; 841 buildCounterStatus--;
532 } 842 }
533 843
534 buildUnnamed3248() { 844 buildUnnamed3241() {
535 var o = new core.List<api.StepDimensionValueEntry>(); 845 var o = new core.List<api.StepDimensionValueEntry>();
536 o.add(buildStepDimensionValueEntry()); 846 o.add(buildStepDimensionValueEntry());
537 o.add(buildStepDimensionValueEntry()); 847 o.add(buildStepDimensionValueEntry());
538 return o; 848 return o;
539 } 849 }
540 850
541 checkUnnamed3248(core.List<api.StepDimensionValueEntry> o) { 851 checkUnnamed3241(core.List<api.StepDimensionValueEntry> o) {
542 unittest.expect(o, unittest.hasLength(2)); 852 unittest.expect(o, unittest.hasLength(2));
543 checkStepDimensionValueEntry(o[0]); 853 checkStepDimensionValueEntry(o[0]);
544 checkStepDimensionValueEntry(o[1]); 854 checkStepDimensionValueEntry(o[1]);
545 } 855 }
546 856
547 buildUnnamed3249() { 857 buildUnnamed3242() {
548 var o = new core.List<api.StepLabelsEntry>(); 858 var o = new core.List<api.StepLabelsEntry>();
549 o.add(buildStepLabelsEntry()); 859 o.add(buildStepLabelsEntry());
550 o.add(buildStepLabelsEntry()); 860 o.add(buildStepLabelsEntry());
551 return o; 861 return o;
552 } 862 }
553 863
554 checkUnnamed3249(core.List<api.StepLabelsEntry> o) { 864 checkUnnamed3242(core.List<api.StepLabelsEntry> o) {
555 unittest.expect(o, unittest.hasLength(2)); 865 unittest.expect(o, unittest.hasLength(2));
556 checkStepLabelsEntry(o[0]); 866 checkStepLabelsEntry(o[0]);
557 checkStepLabelsEntry(o[1]); 867 checkStepLabelsEntry(o[1]);
558 } 868 }
559 869
560 core.int buildCounterStep = 0; 870 core.int buildCounterStep = 0;
561 buildStep() { 871 buildStep() {
562 var o = new api.Step(); 872 var o = new api.Step();
563 buildCounterStep++; 873 buildCounterStep++;
564 if (buildCounterStep < 3) { 874 if (buildCounterStep < 3) {
565 o.completionTime = buildTimestamp(); 875 o.completionTime = buildTimestamp();
566 o.creationTime = buildTimestamp(); 876 o.creationTime = buildTimestamp();
567 o.description = "foo"; 877 o.description = "foo";
568 o.deviceUsageDuration = buildDuration(); 878 o.deviceUsageDuration = buildDuration();
569 o.dimensionValue = buildUnnamed3248(); 879 o.dimensionValue = buildUnnamed3241();
570 o.hasImages = true; 880 o.hasImages = true;
571 o.labels = buildUnnamed3249(); 881 o.labels = buildUnnamed3242();
572 o.name = "foo"; 882 o.name = "foo";
573 o.outcome = buildOutcome(); 883 o.outcome = buildOutcome();
574 o.runDuration = buildDuration(); 884 o.runDuration = buildDuration();
575 o.state = "foo"; 885 o.state = "foo";
576 o.stepId = "foo"; 886 o.stepId = "foo";
577 o.testExecutionStep = buildTestExecutionStep(); 887 o.testExecutionStep = buildTestExecutionStep();
578 o.toolExecutionStep = buildToolExecutionStep(); 888 o.toolExecutionStep = buildToolExecutionStep();
579 } 889 }
580 buildCounterStep--; 890 buildCounterStep--;
581 return o; 891 return o;
582 } 892 }
583 893
584 checkStep(api.Step o) { 894 checkStep(api.Step o) {
585 buildCounterStep++; 895 buildCounterStep++;
586 if (buildCounterStep < 3) { 896 if (buildCounterStep < 3) {
587 checkTimestamp(o.completionTime); 897 checkTimestamp(o.completionTime);
588 checkTimestamp(o.creationTime); 898 checkTimestamp(o.creationTime);
589 unittest.expect(o.description, unittest.equals('foo')); 899 unittest.expect(o.description, unittest.equals('foo'));
590 checkDuration(o.deviceUsageDuration); 900 checkDuration(o.deviceUsageDuration);
591 checkUnnamed3248(o.dimensionValue); 901 checkUnnamed3241(o.dimensionValue);
592 unittest.expect(o.hasImages, unittest.isTrue); 902 unittest.expect(o.hasImages, unittest.isTrue);
593 checkUnnamed3249(o.labels); 903 checkUnnamed3242(o.labels);
594 unittest.expect(o.name, unittest.equals('foo')); 904 unittest.expect(o.name, unittest.equals('foo'));
595 checkOutcome(o.outcome); 905 checkOutcome(o.outcome);
596 checkDuration(o.runDuration); 906 checkDuration(o.runDuration);
597 unittest.expect(o.state, unittest.equals('foo')); 907 unittest.expect(o.state, unittest.equals('foo'));
598 unittest.expect(o.stepId, unittest.equals('foo')); 908 unittest.expect(o.stepId, unittest.equals('foo'));
599 checkTestExecutionStep(o.testExecutionStep); 909 checkTestExecutionStep(o.testExecutionStep);
600 checkToolExecutionStep(o.toolExecutionStep); 910 checkToolExecutionStep(o.toolExecutionStep);
601 } 911 }
602 buildCounterStep--; 912 buildCounterStep--;
603 } 913 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 checkTestCaseReference(api.TestCaseReference o) { 989 checkTestCaseReference(api.TestCaseReference o) {
680 buildCounterTestCaseReference++; 990 buildCounterTestCaseReference++;
681 if (buildCounterTestCaseReference < 3) { 991 if (buildCounterTestCaseReference < 3) {
682 unittest.expect(o.className, unittest.equals('foo')); 992 unittest.expect(o.className, unittest.equals('foo'));
683 unittest.expect(o.name, unittest.equals('foo')); 993 unittest.expect(o.name, unittest.equals('foo'));
684 unittest.expect(o.testSuiteName, unittest.equals('foo')); 994 unittest.expect(o.testSuiteName, unittest.equals('foo'));
685 } 995 }
686 buildCounterTestCaseReference--; 996 buildCounterTestCaseReference--;
687 } 997 }
688 998
689 buildUnnamed3250() { 999 buildUnnamed3243() {
690 var o = new core.List<api.TestIssue>(); 1000 var o = new core.List<api.TestIssue>();
691 o.add(buildTestIssue()); 1001 o.add(buildTestIssue());
692 o.add(buildTestIssue()); 1002 o.add(buildTestIssue());
693 return o; 1003 return o;
694 } 1004 }
695 1005
696 checkUnnamed3250(core.List<api.TestIssue> o) { 1006 checkUnnamed3243(core.List<api.TestIssue> o) {
697 unittest.expect(o, unittest.hasLength(2)); 1007 unittest.expect(o, unittest.hasLength(2));
698 checkTestIssue(o[0]); 1008 checkTestIssue(o[0]);
699 checkTestIssue(o[1]); 1009 checkTestIssue(o[1]);
700 } 1010 }
701 1011
702 buildUnnamed3251() { 1012 buildUnnamed3244() {
703 var o = new core.List<api.TestSuiteOverview>(); 1013 var o = new core.List<api.TestSuiteOverview>();
704 o.add(buildTestSuiteOverview()); 1014 o.add(buildTestSuiteOverview());
705 o.add(buildTestSuiteOverview()); 1015 o.add(buildTestSuiteOverview());
706 return o; 1016 return o;
707 } 1017 }
708 1018
709 checkUnnamed3251(core.List<api.TestSuiteOverview> o) { 1019 checkUnnamed3244(core.List<api.TestSuiteOverview> o) {
710 unittest.expect(o, unittest.hasLength(2)); 1020 unittest.expect(o, unittest.hasLength(2));
711 checkTestSuiteOverview(o[0]); 1021 checkTestSuiteOverview(o[0]);
712 checkTestSuiteOverview(o[1]); 1022 checkTestSuiteOverview(o[1]);
713 } 1023 }
714 1024
715 core.int buildCounterTestExecutionStep = 0; 1025 core.int buildCounterTestExecutionStep = 0;
716 buildTestExecutionStep() { 1026 buildTestExecutionStep() {
717 var o = new api.TestExecutionStep(); 1027 var o = new api.TestExecutionStep();
718 buildCounterTestExecutionStep++; 1028 buildCounterTestExecutionStep++;
719 if (buildCounterTestExecutionStep < 3) { 1029 if (buildCounterTestExecutionStep < 3) {
720 o.testIssues = buildUnnamed3250(); 1030 o.testIssues = buildUnnamed3243();
721 o.testSuiteOverviews = buildUnnamed3251(); 1031 o.testSuiteOverviews = buildUnnamed3244();
722 o.testTiming = buildTestTiming(); 1032 o.testTiming = buildTestTiming();
723 o.toolExecution = buildToolExecution(); 1033 o.toolExecution = buildToolExecution();
724 } 1034 }
725 buildCounterTestExecutionStep--; 1035 buildCounterTestExecutionStep--;
726 return o; 1036 return o;
727 } 1037 }
728 1038
729 checkTestExecutionStep(api.TestExecutionStep o) { 1039 checkTestExecutionStep(api.TestExecutionStep o) {
730 buildCounterTestExecutionStep++; 1040 buildCounterTestExecutionStep++;
731 if (buildCounterTestExecutionStep < 3) { 1041 if (buildCounterTestExecutionStep < 3) {
732 checkUnnamed3250(o.testIssues); 1042 checkUnnamed3243(o.testIssues);
733 checkUnnamed3251(o.testSuiteOverviews); 1043 checkUnnamed3244(o.testSuiteOverviews);
734 checkTestTiming(o.testTiming); 1044 checkTestTiming(o.testTiming);
735 checkToolExecution(o.toolExecution); 1045 checkToolExecution(o.toolExecution);
736 } 1046 }
737 buildCounterTestExecutionStep--; 1047 buildCounterTestExecutionStep--;
738 } 1048 }
739 1049
740 core.int buildCounterTestIssue = 0; 1050 core.int buildCounterTestIssue = 0;
741 buildTestIssue() { 1051 buildTestIssue() {
742 var o = new api.TestIssue(); 1052 var o = new api.TestIssue();
743 buildCounterTestIssue++; 1053 buildCounterTestIssue++;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 1155
846 checkTimestamp(api.Timestamp o) { 1156 checkTimestamp(api.Timestamp o) {
847 buildCounterTimestamp++; 1157 buildCounterTimestamp++;
848 if (buildCounterTimestamp < 3) { 1158 if (buildCounterTimestamp < 3) {
849 unittest.expect(o.nanos, unittest.equals(42)); 1159 unittest.expect(o.nanos, unittest.equals(42));
850 unittest.expect(o.seconds, unittest.equals('foo')); 1160 unittest.expect(o.seconds, unittest.equals('foo'));
851 } 1161 }
852 buildCounterTimestamp--; 1162 buildCounterTimestamp--;
853 } 1163 }
854 1164
855 buildUnnamed3252() { 1165 buildUnnamed3245() {
856 var o = new core.List<core.String>(); 1166 var o = new core.List<core.String>();
857 o.add("foo"); 1167 o.add("foo");
858 o.add("foo"); 1168 o.add("foo");
859 return o; 1169 return o;
860 } 1170 }
861 1171
862 checkUnnamed3252(core.List<core.String> o) { 1172 checkUnnamed3245(core.List<core.String> o) {
863 unittest.expect(o, unittest.hasLength(2)); 1173 unittest.expect(o, unittest.hasLength(2));
864 unittest.expect(o[0], unittest.equals('foo')); 1174 unittest.expect(o[0], unittest.equals('foo'));
865 unittest.expect(o[1], unittest.equals('foo')); 1175 unittest.expect(o[1], unittest.equals('foo'));
866 } 1176 }
867 1177
868 buildUnnamed3253() { 1178 buildUnnamed3246() {
869 var o = new core.List<api.FileReference>(); 1179 var o = new core.List<api.FileReference>();
870 o.add(buildFileReference()); 1180 o.add(buildFileReference());
871 o.add(buildFileReference()); 1181 o.add(buildFileReference());
872 return o; 1182 return o;
873 } 1183 }
874 1184
875 checkUnnamed3253(core.List<api.FileReference> o) { 1185 checkUnnamed3246(core.List<api.FileReference> o) {
876 unittest.expect(o, unittest.hasLength(2)); 1186 unittest.expect(o, unittest.hasLength(2));
877 checkFileReference(o[0]); 1187 checkFileReference(o[0]);
878 checkFileReference(o[1]); 1188 checkFileReference(o[1]);
879 } 1189 }
880 1190
881 buildUnnamed3254() { 1191 buildUnnamed3247() {
882 var o = new core.List<api.ToolOutputReference>(); 1192 var o = new core.List<api.ToolOutputReference>();
883 o.add(buildToolOutputReference()); 1193 o.add(buildToolOutputReference());
884 o.add(buildToolOutputReference()); 1194 o.add(buildToolOutputReference());
885 return o; 1195 return o;
886 } 1196 }
887 1197
888 checkUnnamed3254(core.List<api.ToolOutputReference> o) { 1198 checkUnnamed3247(core.List<api.ToolOutputReference> o) {
889 unittest.expect(o, unittest.hasLength(2)); 1199 unittest.expect(o, unittest.hasLength(2));
890 checkToolOutputReference(o[0]); 1200 checkToolOutputReference(o[0]);
891 checkToolOutputReference(o[1]); 1201 checkToolOutputReference(o[1]);
892 } 1202 }
893 1203
894 core.int buildCounterToolExecution = 0; 1204 core.int buildCounterToolExecution = 0;
895 buildToolExecution() { 1205 buildToolExecution() {
896 var o = new api.ToolExecution(); 1206 var o = new api.ToolExecution();
897 buildCounterToolExecution++; 1207 buildCounterToolExecution++;
898 if (buildCounterToolExecution < 3) { 1208 if (buildCounterToolExecution < 3) {
899 o.commandLineArguments = buildUnnamed3252(); 1209 o.commandLineArguments = buildUnnamed3245();
900 o.exitCode = buildToolExitCode(); 1210 o.exitCode = buildToolExitCode();
901 o.toolLogs = buildUnnamed3253(); 1211 o.toolLogs = buildUnnamed3246();
902 o.toolOutputs = buildUnnamed3254(); 1212 o.toolOutputs = buildUnnamed3247();
903 } 1213 }
904 buildCounterToolExecution--; 1214 buildCounterToolExecution--;
905 return o; 1215 return o;
906 } 1216 }
907 1217
908 checkToolExecution(api.ToolExecution o) { 1218 checkToolExecution(api.ToolExecution o) {
909 buildCounterToolExecution++; 1219 buildCounterToolExecution++;
910 if (buildCounterToolExecution < 3) { 1220 if (buildCounterToolExecution < 3) {
911 checkUnnamed3252(o.commandLineArguments); 1221 checkUnnamed3245(o.commandLineArguments);
912 checkToolExitCode(o.exitCode); 1222 checkToolExitCode(o.exitCode);
913 checkUnnamed3253(o.toolLogs); 1223 checkUnnamed3246(o.toolLogs);
914 checkUnnamed3254(o.toolOutputs); 1224 checkUnnamed3247(o.toolOutputs);
915 } 1225 }
916 buildCounterToolExecution--; 1226 buildCounterToolExecution--;
917 } 1227 }
918 1228
919 core.int buildCounterToolExecutionStep = 0; 1229 core.int buildCounterToolExecutionStep = 0;
920 buildToolExecutionStep() { 1230 buildToolExecutionStep() {
921 var o = new api.ToolExecutionStep(); 1231 var o = new api.ToolExecutionStep();
922 buildCounterToolExecutionStep++; 1232 buildCounterToolExecutionStep++;
923 if (buildCounterToolExecutionStep < 3) { 1233 if (buildCounterToolExecutionStep < 3) {
924 o.toolExecution = buildToolExecution(); 1234 o.toolExecution = buildToolExecution();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 checkToolOutputReference(api.ToolOutputReference o) { 1280 checkToolOutputReference(api.ToolOutputReference o) {
971 buildCounterToolOutputReference++; 1281 buildCounterToolOutputReference++;
972 if (buildCounterToolOutputReference < 3) { 1282 if (buildCounterToolOutputReference < 3) {
973 checkTimestamp(o.creationTime); 1283 checkTimestamp(o.creationTime);
974 checkFileReference(o.output); 1284 checkFileReference(o.output);
975 checkTestCaseReference(o.testCase); 1285 checkTestCaseReference(o.testCase);
976 } 1286 }
977 buildCounterToolOutputReference--; 1287 buildCounterToolOutputReference--;
978 } 1288 }
979 1289
1290 buildUnnamed3248() {
1291 var o = new core.List<core.String>();
1292 o.add("foo");
1293 o.add("foo");
1294 return o;
1295 }
1296
1297 checkUnnamed3248(core.List<core.String> o) {
1298 unittest.expect(o, unittest.hasLength(2));
1299 unittest.expect(o[0], unittest.equals('foo'));
1300 unittest.expect(o[1], unittest.equals('foo'));
1301 }
1302
980 1303
981 main() { 1304 main() {
982 unittest.group("obj-schema-Any", () { 1305 unittest.group("obj-schema-Any", () {
983 unittest.test("to-json--from-json", () { 1306 unittest.test("to-json--from-json", () {
984 var o = buildAny(); 1307 var o = buildAny();
985 var od = new api.Any.fromJson(o.toJson()); 1308 var od = new api.Any.fromJson(o.toJson());
986 checkAny(od); 1309 checkAny(od);
987 }); 1310 });
988 }); 1311 });
989 1312
990 1313
1314 unittest.group("obj-schema-BasicPerfSampleSeries", () {
1315 unittest.test("to-json--from-json", () {
1316 var o = buildBasicPerfSampleSeries();
1317 var od = new api.BasicPerfSampleSeries.fromJson(o.toJson());
1318 checkBasicPerfSampleSeries(od);
1319 });
1320 });
1321
1322
1323 unittest.group("obj-schema-BatchCreatePerfSamplesRequest", () {
1324 unittest.test("to-json--from-json", () {
1325 var o = buildBatchCreatePerfSamplesRequest();
1326 var od = new api.BatchCreatePerfSamplesRequest.fromJson(o.toJson());
1327 checkBatchCreatePerfSamplesRequest(od);
1328 });
1329 });
1330
1331
1332 unittest.group("obj-schema-BatchCreatePerfSamplesResponse", () {
1333 unittest.test("to-json--from-json", () {
1334 var o = buildBatchCreatePerfSamplesResponse();
1335 var od = new api.BatchCreatePerfSamplesResponse.fromJson(o.toJson());
1336 checkBatchCreatePerfSamplesResponse(od);
1337 });
1338 });
1339
1340
1341 unittest.group("obj-schema-CPUInfo", () {
1342 unittest.test("to-json--from-json", () {
1343 var o = buildCPUInfo();
1344 var od = new api.CPUInfo.fromJson(o.toJson());
1345 checkCPUInfo(od);
1346 });
1347 });
1348
1349
991 unittest.group("obj-schema-Duration", () { 1350 unittest.group("obj-schema-Duration", () {
992 unittest.test("to-json--from-json", () { 1351 unittest.test("to-json--from-json", () {
993 var o = buildDuration(); 1352 var o = buildDuration();
994 var od = new api.Duration.fromJson(o.toJson()); 1353 var od = new api.Duration.fromJson(o.toJson());
995 checkDuration(od); 1354 checkDuration(od);
996 }); 1355 });
997 }); 1356 });
998 1357
999 1358
1000 unittest.group("obj-schema-Execution", () { 1359 unittest.group("obj-schema-Execution", () {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1421
1063 unittest.group("obj-schema-ListHistoriesResponse", () { 1422 unittest.group("obj-schema-ListHistoriesResponse", () {
1064 unittest.test("to-json--from-json", () { 1423 unittest.test("to-json--from-json", () {
1065 var o = buildListHistoriesResponse(); 1424 var o = buildListHistoriesResponse();
1066 var od = new api.ListHistoriesResponse.fromJson(o.toJson()); 1425 var od = new api.ListHistoriesResponse.fromJson(o.toJson());
1067 checkListHistoriesResponse(od); 1426 checkListHistoriesResponse(od);
1068 }); 1427 });
1069 }); 1428 });
1070 1429
1071 1430
1431 unittest.group("obj-schema-ListPerfSampleSeriesResponse", () {
1432 unittest.test("to-json--from-json", () {
1433 var o = buildListPerfSampleSeriesResponse();
1434 var od = new api.ListPerfSampleSeriesResponse.fromJson(o.toJson());
1435 checkListPerfSampleSeriesResponse(od);
1436 });
1437 });
1438
1439
1440 unittest.group("obj-schema-ListPerfSamplesResponse", () {
1441 unittest.test("to-json--from-json", () {
1442 var o = buildListPerfSamplesResponse();
1443 var od = new api.ListPerfSamplesResponse.fromJson(o.toJson());
1444 checkListPerfSamplesResponse(od);
1445 });
1446 });
1447
1448
1072 unittest.group("obj-schema-ListStepThumbnailsResponse", () { 1449 unittest.group("obj-schema-ListStepThumbnailsResponse", () {
1073 unittest.test("to-json--from-json", () { 1450 unittest.test("to-json--from-json", () {
1074 var o = buildListStepThumbnailsResponse(); 1451 var o = buildListStepThumbnailsResponse();
1075 var od = new api.ListStepThumbnailsResponse.fromJson(o.toJson()); 1452 var od = new api.ListStepThumbnailsResponse.fromJson(o.toJson());
1076 checkListStepThumbnailsResponse(od); 1453 checkListStepThumbnailsResponse(od);
1077 }); 1454 });
1078 }); 1455 });
1079 1456
1080 1457
1081 unittest.group("obj-schema-ListStepsResponse", () { 1458 unittest.group("obj-schema-ListStepsResponse", () {
1082 unittest.test("to-json--from-json", () { 1459 unittest.test("to-json--from-json", () {
1083 var o = buildListStepsResponse(); 1460 var o = buildListStepsResponse();
1084 var od = new api.ListStepsResponse.fromJson(o.toJson()); 1461 var od = new api.ListStepsResponse.fromJson(o.toJson());
1085 checkListStepsResponse(od); 1462 checkListStepsResponse(od);
1086 }); 1463 });
1087 }); 1464 });
1088 1465
1089 1466
1467 unittest.group("obj-schema-MemoryInfo", () {
1468 unittest.test("to-json--from-json", () {
1469 var o = buildMemoryInfo();
1470 var od = new api.MemoryInfo.fromJson(o.toJson());
1471 checkMemoryInfo(od);
1472 });
1473 });
1474
1475
1090 unittest.group("obj-schema-Outcome", () { 1476 unittest.group("obj-schema-Outcome", () {
1091 unittest.test("to-json--from-json", () { 1477 unittest.test("to-json--from-json", () {
1092 var o = buildOutcome(); 1478 var o = buildOutcome();
1093 var od = new api.Outcome.fromJson(o.toJson()); 1479 var od = new api.Outcome.fromJson(o.toJson());
1094 checkOutcome(od); 1480 checkOutcome(od);
1095 }); 1481 });
1096 }); 1482 });
1097 1483
1098 1484
1485 unittest.group("obj-schema-PerfEnvironment", () {
1486 unittest.test("to-json--from-json", () {
1487 var o = buildPerfEnvironment();
1488 var od = new api.PerfEnvironment.fromJson(o.toJson());
1489 checkPerfEnvironment(od);
1490 });
1491 });
1492
1493
1494 unittest.group("obj-schema-PerfMetricsSummary", () {
1495 unittest.test("to-json--from-json", () {
1496 var o = buildPerfMetricsSummary();
1497 var od = new api.PerfMetricsSummary.fromJson(o.toJson());
1498 checkPerfMetricsSummary(od);
1499 });
1500 });
1501
1502
1503 unittest.group("obj-schema-PerfSample", () {
1504 unittest.test("to-json--from-json", () {
1505 var o = buildPerfSample();
1506 var od = new api.PerfSample.fromJson(o.toJson());
1507 checkPerfSample(od);
1508 });
1509 });
1510
1511
1512 unittest.group("obj-schema-PerfSampleSeries", () {
1513 unittest.test("to-json--from-json", () {
1514 var o = buildPerfSampleSeries();
1515 var od = new api.PerfSampleSeries.fromJson(o.toJson());
1516 checkPerfSampleSeries(od);
1517 });
1518 });
1519
1520
1099 unittest.group("obj-schema-ProjectSettings", () { 1521 unittest.group("obj-schema-ProjectSettings", () {
1100 unittest.test("to-json--from-json", () { 1522 unittest.test("to-json--from-json", () {
1101 var o = buildProjectSettings(); 1523 var o = buildProjectSettings();
1102 var od = new api.ProjectSettings.fromJson(o.toJson()); 1524 var od = new api.ProjectSettings.fromJson(o.toJson());
1103 checkProjectSettings(od); 1525 checkProjectSettings(od);
1104 }); 1526 });
1105 }); 1527 });
1106 1528
1107 1529
1108 unittest.group("obj-schema-PublishXunitXmlFilesRequest", () { 1530 unittest.group("obj-schema-PublishXunitXmlFilesRequest", () {
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 "content-type" : "application/json; charset=utf-8", 2212 "content-type" : "application/json; charset=utf-8",
1791 }; 2213 };
1792 var resp = convert.JSON.encode(buildStep()); 2214 var resp = convert.JSON.encode(buildStep());
1793 return new async.Future.value(stringResponse(200, h, resp)); 2215 return new async.Future.value(stringResponse(200, h, resp));
1794 }), true); 2216 }), true);
1795 res.get(arg_projectId, arg_historyId, arg_executionId, arg_stepId).then(un ittest.expectAsync(((api.Step response) { 2217 res.get(arg_projectId, arg_historyId, arg_executionId, arg_stepId).then(un ittest.expectAsync(((api.Step response) {
1796 checkStep(response); 2218 checkStep(response);
1797 }))); 2219 })));
1798 }); 2220 });
1799 2221
2222 unittest.test("method--getPerfMetricsSummary", () {
2223
2224 var mock = new HttpServerMock();
2225 api.ProjectsHistoriesExecutionsStepsResourceApi res = new api.ToolresultsA pi(mock).projects.histories.executions.steps;
2226 var arg_projectId = "foo";
2227 var arg_historyId = "foo";
2228 var arg_executionId = "foo";
2229 var arg_stepId = "foo";
2230 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2231 var path = (req.url).path;
2232 var pathOffset = 0;
2233 var index;
2234 var subPart;
2235 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2236 pathOffset += 1;
2237
2238 var query = (req.url).query;
2239 var queryOffset = 0;
2240 var queryMap = {};
2241 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2242 parseBool(n) {
2243 if (n == "true") return true;
2244 if (n == "false") return false;
2245 if (n == null) return null;
2246 throw new core.ArgumentError("Invalid boolean: $n");
2247 }
2248 if (query.length > 0) {
2249 for (var part in query.split("&")) {
2250 var keyvalue = part.split("=");
2251 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2252 }
2253 }
2254
2255
2256 var h = {
2257 "content-type" : "application/json; charset=utf-8",
2258 };
2259 var resp = convert.JSON.encode(buildPerfMetricsSummary());
2260 return new async.Future.value(stringResponse(200, h, resp));
2261 }), true);
2262 res.getPerfMetricsSummary(arg_projectId, arg_historyId, arg_executionId, a rg_stepId).then(unittest.expectAsync(((api.PerfMetricsSummary response) {
2263 checkPerfMetricsSummary(response);
2264 })));
2265 });
2266
1800 unittest.test("method--list", () { 2267 unittest.test("method--list", () {
1801 2268
1802 var mock = new HttpServerMock(); 2269 var mock = new HttpServerMock();
1803 api.ProjectsHistoriesExecutionsStepsResourceApi res = new api.ToolresultsA pi(mock).projects.histories.executions.steps; 2270 api.ProjectsHistoriesExecutionsStepsResourceApi res = new api.ToolresultsA pi(mock).projects.histories.executions.steps;
1804 var arg_projectId = "foo"; 2271 var arg_projectId = "foo";
1805 var arg_historyId = "foo"; 2272 var arg_historyId = "foo";
1806 var arg_executionId = "foo"; 2273 var arg_executionId = "foo";
1807 var arg_pageSize = 42; 2274 var arg_pageSize = 42;
1808 var arg_pageToken = "foo"; 2275 var arg_pageToken = "foo";
1809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2276 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 return new async.Future.value(stringResponse(200, h, resp)); 2408 return new async.Future.value(stringResponse(200, h, resp));
1942 }), true); 2409 }), true);
1943 res.publishXunitXmlFiles(arg_request, arg_projectId, arg_historyId, arg_ex ecutionId, arg_stepId).then(unittest.expectAsync(((api.Step response) { 2410 res.publishXunitXmlFiles(arg_request, arg_projectId, arg_historyId, arg_ex ecutionId, arg_stepId).then(unittest.expectAsync(((api.Step response) {
1944 checkStep(response); 2411 checkStep(response);
1945 }))); 2412 })));
1946 }); 2413 });
1947 2414
1948 }); 2415 });
1949 2416
1950 2417
2418 unittest.group("resource-ProjectsHistoriesExecutionsStepsPerfMetricsSummaryRes ourceApi", () {
2419 unittest.test("method--create", () {
2420
2421 var mock = new HttpServerMock();
2422 api.ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi res = ne w api.ToolresultsApi(mock).projects.histories.executions.steps.perfMetricsSummar y;
2423 var arg_request = buildPerfMetricsSummary();
2424 var arg_projectId = "foo";
2425 var arg_historyId = "foo";
2426 var arg_executionId = "foo";
2427 var arg_stepId = "foo";
2428 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2429 var obj = new api.PerfMetricsSummary.fromJson(json);
2430 checkPerfMetricsSummary(obj);
2431
2432 var path = (req.url).path;
2433 var pathOffset = 0;
2434 var index;
2435 var subPart;
2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2437 pathOffset += 1;
2438
2439 var query = (req.url).query;
2440 var queryOffset = 0;
2441 var queryMap = {};
2442 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2443 parseBool(n) {
2444 if (n == "true") return true;
2445 if (n == "false") return false;
2446 if (n == null) return null;
2447 throw new core.ArgumentError("Invalid boolean: $n");
2448 }
2449 if (query.length > 0) {
2450 for (var part in query.split("&")) {
2451 var keyvalue = part.split("=");
2452 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2453 }
2454 }
2455
2456
2457 var h = {
2458 "content-type" : "application/json; charset=utf-8",
2459 };
2460 var resp = convert.JSON.encode(buildPerfMetricsSummary());
2461 return new async.Future.value(stringResponse(200, h, resp));
2462 }), true);
2463 res.create(arg_request, arg_projectId, arg_historyId, arg_executionId, arg _stepId).then(unittest.expectAsync(((api.PerfMetricsSummary response) {
2464 checkPerfMetricsSummary(response);
2465 })));
2466 });
2467
2468 });
2469
2470
2471 unittest.group("resource-ProjectsHistoriesExecutionsStepsPerfSampleSeriesResou rceApi", () {
2472 unittest.test("method--create", () {
2473
2474 var mock = new HttpServerMock();
2475 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi res = new api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSeries;
2476 var arg_request = buildPerfSampleSeries();
2477 var arg_projectId = "foo";
2478 var arg_historyId = "foo";
2479 var arg_executionId = "foo";
2480 var arg_stepId = "foo";
2481 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2482 var obj = new api.PerfSampleSeries.fromJson(json);
2483 checkPerfSampleSeries(obj);
2484
2485 var path = (req.url).path;
2486 var pathOffset = 0;
2487 var index;
2488 var subPart;
2489 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2490 pathOffset += 1;
2491
2492 var query = (req.url).query;
2493 var queryOffset = 0;
2494 var queryMap = {};
2495 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2496 parseBool(n) {
2497 if (n == "true") return true;
2498 if (n == "false") return false;
2499 if (n == null) return null;
2500 throw new core.ArgumentError("Invalid boolean: $n");
2501 }
2502 if (query.length > 0) {
2503 for (var part in query.split("&")) {
2504 var keyvalue = part.split("=");
2505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2506 }
2507 }
2508
2509
2510 var h = {
2511 "content-type" : "application/json; charset=utf-8",
2512 };
2513 var resp = convert.JSON.encode(buildPerfSampleSeries());
2514 return new async.Future.value(stringResponse(200, h, resp));
2515 }), true);
2516 res.create(arg_request, arg_projectId, arg_historyId, arg_executionId, arg _stepId).then(unittest.expectAsync(((api.PerfSampleSeries response) {
2517 checkPerfSampleSeries(response);
2518 })));
2519 });
2520
2521 unittest.test("method--get", () {
2522
2523 var mock = new HttpServerMock();
2524 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi res = new api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSeries;
2525 var arg_projectId = "foo";
2526 var arg_historyId = "foo";
2527 var arg_executionId = "foo";
2528 var arg_stepId = "foo";
2529 var arg_sampleSeriesId = "foo";
2530 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2531 var path = (req.url).path;
2532 var pathOffset = 0;
2533 var index;
2534 var subPart;
2535 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2536 pathOffset += 1;
2537
2538 var query = (req.url).query;
2539 var queryOffset = 0;
2540 var queryMap = {};
2541 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2542 parseBool(n) {
2543 if (n == "true") return true;
2544 if (n == "false") return false;
2545 if (n == null) return null;
2546 throw new core.ArgumentError("Invalid boolean: $n");
2547 }
2548 if (query.length > 0) {
2549 for (var part in query.split("&")) {
2550 var keyvalue = part.split("=");
2551 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2552 }
2553 }
2554
2555
2556 var h = {
2557 "content-type" : "application/json; charset=utf-8",
2558 };
2559 var resp = convert.JSON.encode(buildPerfSampleSeries());
2560 return new async.Future.value(stringResponse(200, h, resp));
2561 }), true);
2562 res.get(arg_projectId, arg_historyId, arg_executionId, arg_stepId, arg_sam pleSeriesId).then(unittest.expectAsync(((api.PerfSampleSeries response) {
2563 checkPerfSampleSeries(response);
2564 })));
2565 });
2566
2567 unittest.test("method--list", () {
2568
2569 var mock = new HttpServerMock();
2570 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi res = new api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSeries;
2571 var arg_projectId = "foo";
2572 var arg_historyId = "foo";
2573 var arg_executionId = "foo";
2574 var arg_stepId = "foo";
2575 var arg_filter = buildUnnamed3248();
2576 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2577 var path = (req.url).path;
2578 var pathOffset = 0;
2579 var index;
2580 var subPart;
2581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2582 pathOffset += 1;
2583
2584 var query = (req.url).query;
2585 var queryOffset = 0;
2586 var queryMap = {};
2587 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2588 parseBool(n) {
2589 if (n == "true") return true;
2590 if (n == "false") return false;
2591 if (n == null) return null;
2592 throw new core.ArgumentError("Invalid boolean: $n");
2593 }
2594 if (query.length > 0) {
2595 for (var part in query.split("&")) {
2596 var keyvalue = part.split("=");
2597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2598 }
2599 }
2600 unittest.expect(queryMap["filter"], unittest.equals(arg_filter));
2601
2602
2603 var h = {
2604 "content-type" : "application/json; charset=utf-8",
2605 };
2606 var resp = convert.JSON.encode(buildListPerfSampleSeriesResponse());
2607 return new async.Future.value(stringResponse(200, h, resp));
2608 }), true);
2609 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, filter : arg_filter).then(unittest.expectAsync(((api.ListPerfSampleSeriesResponse respo nse) {
2610 checkListPerfSampleSeriesResponse(response);
2611 })));
2612 });
2613
2614 });
2615
2616
2617 unittest.group("resource-ProjectsHistoriesExecutionsStepsPerfSampleSeriesSampl esResourceApi", () {
2618 unittest.test("method--batchCreate", () {
2619
2620 var mock = new HttpServerMock();
2621 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi res = new api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSe ries.samples;
2622 var arg_request = buildBatchCreatePerfSamplesRequest();
2623 var arg_projectId = "foo";
2624 var arg_historyId = "foo";
2625 var arg_executionId = "foo";
2626 var arg_stepId = "foo";
2627 var arg_sampleSeriesId = "foo";
2628 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2629 var obj = new api.BatchCreatePerfSamplesRequest.fromJson(json);
2630 checkBatchCreatePerfSamplesRequest(obj);
2631
2632 var path = (req.url).path;
2633 var pathOffset = 0;
2634 var index;
2635 var subPart;
2636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2637 pathOffset += 1;
2638
2639 var query = (req.url).query;
2640 var queryOffset = 0;
2641 var queryMap = {};
2642 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2643 parseBool(n) {
2644 if (n == "true") return true;
2645 if (n == "false") return false;
2646 if (n == null) return null;
2647 throw new core.ArgumentError("Invalid boolean: $n");
2648 }
2649 if (query.length > 0) {
2650 for (var part in query.split("&")) {
2651 var keyvalue = part.split("=");
2652 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2653 }
2654 }
2655
2656
2657 var h = {
2658 "content-type" : "application/json; charset=utf-8",
2659 };
2660 var resp = convert.JSON.encode(buildBatchCreatePerfSamplesResponse());
2661 return new async.Future.value(stringResponse(200, h, resp));
2662 }), true);
2663 res.batchCreate(arg_request, arg_projectId, arg_historyId, arg_executionId , arg_stepId, arg_sampleSeriesId).then(unittest.expectAsync(((api.BatchCreatePer fSamplesResponse response) {
2664 checkBatchCreatePerfSamplesResponse(response);
2665 })));
2666 });
2667
2668 unittest.test("method--list", () {
2669
2670 var mock = new HttpServerMock();
2671 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi res = new api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSe ries.samples;
2672 var arg_projectId = "foo";
2673 var arg_historyId = "foo";
2674 var arg_executionId = "foo";
2675 var arg_stepId = "foo";
2676 var arg_sampleSeriesId = "foo";
2677 var arg_pageSize = 42;
2678 var arg_pageToken = "foo";
2679 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2680 var path = (req.url).path;
2681 var pathOffset = 0;
2682 var index;
2683 var subPart;
2684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2685 pathOffset += 1;
2686
2687 var query = (req.url).query;
2688 var queryOffset = 0;
2689 var queryMap = {};
2690 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2691 parseBool(n) {
2692 if (n == "true") return true;
2693 if (n == "false") return false;
2694 if (n == null) return null;
2695 throw new core.ArgumentError("Invalid boolean: $n");
2696 }
2697 if (query.length > 0) {
2698 for (var part in query.split("&")) {
2699 var keyvalue = part.split("=");
2700 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2701 }
2702 }
2703 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2704 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2705
2706
2707 var h = {
2708 "content-type" : "application/json; charset=utf-8",
2709 };
2710 var resp = convert.JSON.encode(buildListPerfSamplesResponse());
2711 return new async.Future.value(stringResponse(200, h, resp));
2712 }), true);
2713 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, arg_sa mpleSeriesId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.ex pectAsync(((api.ListPerfSamplesResponse response) {
2714 checkListPerfSamplesResponse(response);
2715 })));
2716 });
2717
2718 });
2719
2720
1951 unittest.group("resource-ProjectsHistoriesExecutionsStepsThumbnailsResourceApi ", () { 2721 unittest.group("resource-ProjectsHistoriesExecutionsStepsThumbnailsResourceApi ", () {
1952 unittest.test("method--list", () { 2722 unittest.test("method--list", () {
1953 2723
1954 var mock = new HttpServerMock(); 2724 var mock = new HttpServerMock();
1955 api.ProjectsHistoriesExecutionsStepsThumbnailsResourceApi res = new api.To olresultsApi(mock).projects.histories.executions.steps.thumbnails; 2725 api.ProjectsHistoriesExecutionsStepsThumbnailsResourceApi res = new api.To olresultsApi(mock).projects.histories.executions.steps.thumbnails;
1956 var arg_projectId = "foo"; 2726 var arg_projectId = "foo";
1957 var arg_historyId = "foo"; 2727 var arg_historyId = "foo";
1958 var arg_executionId = "foo"; 2728 var arg_executionId = "foo";
1959 var arg_stepId = "foo"; 2729 var arg_stepId = "foo";
1960 var arg_pageSize = 42; 2730 var arg_pageSize = 42;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, pageSi ze: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List StepThumbnailsResponse response) { 2766 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, pageSi ze: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List StepThumbnailsResponse response) {
1997 checkListStepThumbnailsResponse(response); 2767 checkListStepThumbnailsResponse(response);
1998 }))); 2768 })));
1999 }); 2769 });
2000 2770
2001 }); 2771 });
2002 2772
2003 2773
2004 } 2774 }
2005 2775
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698