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

Side by Side Diff: generated/googleapis/test/gmail/v1_test.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years 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.gmail.v1.test; 1 library googleapis.gmail.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 checkBatchDeleteMessagesRequest(api.BatchDeleteMessagesRequest o) { 101 checkBatchDeleteMessagesRequest(api.BatchDeleteMessagesRequest o) {
102 buildCounterBatchDeleteMessagesRequest++; 102 buildCounterBatchDeleteMessagesRequest++;
103 if (buildCounterBatchDeleteMessagesRequest < 3) { 103 if (buildCounterBatchDeleteMessagesRequest < 3) {
104 checkUnnamed98(o.ids); 104 checkUnnamed98(o.ids);
105 } 105 }
106 buildCounterBatchDeleteMessagesRequest--; 106 buildCounterBatchDeleteMessagesRequest--;
107 } 107 }
108 108
109 buildUnnamed99() {
110 var o = new core.List<core.String>();
111 o.add("foo");
112 o.add("foo");
113 return o;
114 }
115
116 checkUnnamed99(core.List<core.String> o) {
117 unittest.expect(o, unittest.hasLength(2));
118 unittest.expect(o[0], unittest.equals('foo'));
119 unittest.expect(o[1], unittest.equals('foo'));
120 }
121
122 buildUnnamed100() {
123 var o = new core.List<core.String>();
124 o.add("foo");
125 o.add("foo");
126 return o;
127 }
128
129 checkUnnamed100(core.List<core.String> o) {
130 unittest.expect(o, unittest.hasLength(2));
131 unittest.expect(o[0], unittest.equals('foo'));
132 unittest.expect(o[1], unittest.equals('foo'));
133 }
134
135 buildUnnamed101() {
136 var o = new core.List<core.String>();
137 o.add("foo");
138 o.add("foo");
139 return o;
140 }
141
142 checkUnnamed101(core.List<core.String> o) {
143 unittest.expect(o, unittest.hasLength(2));
144 unittest.expect(o[0], unittest.equals('foo'));
145 unittest.expect(o[1], unittest.equals('foo'));
146 }
147
148 core.int buildCounterBatchModifyMessagesRequest = 0;
149 buildBatchModifyMessagesRequest() {
150 var o = new api.BatchModifyMessagesRequest();
151 buildCounterBatchModifyMessagesRequest++;
152 if (buildCounterBatchModifyMessagesRequest < 3) {
153 o.addLabelIds = buildUnnamed99();
154 o.ids = buildUnnamed100();
155 o.removeLabelIds = buildUnnamed101();
156 }
157 buildCounterBatchModifyMessagesRequest--;
158 return o;
159 }
160
161 checkBatchModifyMessagesRequest(api.BatchModifyMessagesRequest o) {
162 buildCounterBatchModifyMessagesRequest++;
163 if (buildCounterBatchModifyMessagesRequest < 3) {
164 checkUnnamed99(o.addLabelIds);
165 checkUnnamed100(o.ids);
166 checkUnnamed101(o.removeLabelIds);
167 }
168 buildCounterBatchModifyMessagesRequest--;
169 }
170
109 core.int buildCounterDraft = 0; 171 core.int buildCounterDraft = 0;
110 buildDraft() { 172 buildDraft() {
111 var o = new api.Draft(); 173 var o = new api.Draft();
112 buildCounterDraft++; 174 buildCounterDraft++;
113 if (buildCounterDraft < 3) { 175 if (buildCounterDraft < 3) {
114 o.id = "foo"; 176 o.id = "foo";
115 o.message = buildMessage(); 177 o.message = buildMessage();
116 } 178 }
117 buildCounterDraft--; 179 buildCounterDraft--;
118 return o; 180 return o;
(...skipping 24 matching lines...) Expand all
143 checkFilter(api.Filter o) { 205 checkFilter(api.Filter o) {
144 buildCounterFilter++; 206 buildCounterFilter++;
145 if (buildCounterFilter < 3) { 207 if (buildCounterFilter < 3) {
146 checkFilterAction(o.action); 208 checkFilterAction(o.action);
147 checkFilterCriteria(o.criteria); 209 checkFilterCriteria(o.criteria);
148 unittest.expect(o.id, unittest.equals('foo')); 210 unittest.expect(o.id, unittest.equals('foo'));
149 } 211 }
150 buildCounterFilter--; 212 buildCounterFilter--;
151 } 213 }
152 214
153 buildUnnamed99() { 215 buildUnnamed102() {
154 var o = new core.List<core.String>(); 216 var o = new core.List<core.String>();
155 o.add("foo"); 217 o.add("foo");
156 o.add("foo"); 218 o.add("foo");
157 return o; 219 return o;
158 } 220 }
159 221
160 checkUnnamed99(core.List<core.String> o) { 222 checkUnnamed102(core.List<core.String> o) {
161 unittest.expect(o, unittest.hasLength(2)); 223 unittest.expect(o, unittest.hasLength(2));
162 unittest.expect(o[0], unittest.equals('foo')); 224 unittest.expect(o[0], unittest.equals('foo'));
163 unittest.expect(o[1], unittest.equals('foo')); 225 unittest.expect(o[1], unittest.equals('foo'));
164 } 226 }
165 227
166 buildUnnamed100() { 228 buildUnnamed103() {
167 var o = new core.List<core.String>(); 229 var o = new core.List<core.String>();
168 o.add("foo"); 230 o.add("foo");
169 o.add("foo"); 231 o.add("foo");
170 return o; 232 return o;
171 } 233 }
172 234
173 checkUnnamed100(core.List<core.String> o) { 235 checkUnnamed103(core.List<core.String> o) {
174 unittest.expect(o, unittest.hasLength(2)); 236 unittest.expect(o, unittest.hasLength(2));
175 unittest.expect(o[0], unittest.equals('foo')); 237 unittest.expect(o[0], unittest.equals('foo'));
176 unittest.expect(o[1], unittest.equals('foo')); 238 unittest.expect(o[1], unittest.equals('foo'));
177 } 239 }
178 240
179 core.int buildCounterFilterAction = 0; 241 core.int buildCounterFilterAction = 0;
180 buildFilterAction() { 242 buildFilterAction() {
181 var o = new api.FilterAction(); 243 var o = new api.FilterAction();
182 buildCounterFilterAction++; 244 buildCounterFilterAction++;
183 if (buildCounterFilterAction < 3) { 245 if (buildCounterFilterAction < 3) {
184 o.addLabelIds = buildUnnamed99(); 246 o.addLabelIds = buildUnnamed102();
185 o.forward = "foo"; 247 o.forward = "foo";
186 o.removeLabelIds = buildUnnamed100(); 248 o.removeLabelIds = buildUnnamed103();
187 } 249 }
188 buildCounterFilterAction--; 250 buildCounterFilterAction--;
189 return o; 251 return o;
190 } 252 }
191 253
192 checkFilterAction(api.FilterAction o) { 254 checkFilterAction(api.FilterAction o) {
193 buildCounterFilterAction++; 255 buildCounterFilterAction++;
194 if (buildCounterFilterAction < 3) { 256 if (buildCounterFilterAction < 3) {
195 checkUnnamed99(o.addLabelIds); 257 checkUnnamed102(o.addLabelIds);
196 unittest.expect(o.forward, unittest.equals('foo')); 258 unittest.expect(o.forward, unittest.equals('foo'));
197 checkUnnamed100(o.removeLabelIds); 259 checkUnnamed103(o.removeLabelIds);
198 } 260 }
199 buildCounterFilterAction--; 261 buildCounterFilterAction--;
200 } 262 }
201 263
202 core.int buildCounterFilterCriteria = 0; 264 core.int buildCounterFilterCriteria = 0;
203 buildFilterCriteria() { 265 buildFilterCriteria() {
204 var o = new api.FilterCriteria(); 266 var o = new api.FilterCriteria();
205 buildCounterFilterCriteria++; 267 buildCounterFilterCriteria++;
206 if (buildCounterFilterCriteria < 3) { 268 if (buildCounterFilterCriteria < 3) {
207 o.excludeChats = true; 269 o.excludeChats = true;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 310
249 checkForwardingAddress(api.ForwardingAddress o) { 311 checkForwardingAddress(api.ForwardingAddress o) {
250 buildCounterForwardingAddress++; 312 buildCounterForwardingAddress++;
251 if (buildCounterForwardingAddress < 3) { 313 if (buildCounterForwardingAddress < 3) {
252 unittest.expect(o.forwardingEmail, unittest.equals('foo')); 314 unittest.expect(o.forwardingEmail, unittest.equals('foo'));
253 unittest.expect(o.verificationStatus, unittest.equals('foo')); 315 unittest.expect(o.verificationStatus, unittest.equals('foo'));
254 } 316 }
255 buildCounterForwardingAddress--; 317 buildCounterForwardingAddress--;
256 } 318 }
257 319
258 buildUnnamed101() { 320 buildUnnamed104() {
259 var o = new core.List<api.HistoryLabelAdded>(); 321 var o = new core.List<api.HistoryLabelAdded>();
260 o.add(buildHistoryLabelAdded()); 322 o.add(buildHistoryLabelAdded());
261 o.add(buildHistoryLabelAdded()); 323 o.add(buildHistoryLabelAdded());
262 return o; 324 return o;
263 } 325 }
264 326
265 checkUnnamed101(core.List<api.HistoryLabelAdded> o) { 327 checkUnnamed104(core.List<api.HistoryLabelAdded> o) {
266 unittest.expect(o, unittest.hasLength(2)); 328 unittest.expect(o, unittest.hasLength(2));
267 checkHistoryLabelAdded(o[0]); 329 checkHistoryLabelAdded(o[0]);
268 checkHistoryLabelAdded(o[1]); 330 checkHistoryLabelAdded(o[1]);
269 } 331 }
270 332
271 buildUnnamed102() { 333 buildUnnamed105() {
272 var o = new core.List<api.HistoryLabelRemoved>(); 334 var o = new core.List<api.HistoryLabelRemoved>();
273 o.add(buildHistoryLabelRemoved()); 335 o.add(buildHistoryLabelRemoved());
274 o.add(buildHistoryLabelRemoved()); 336 o.add(buildHistoryLabelRemoved());
275 return o; 337 return o;
276 } 338 }
277 339
278 checkUnnamed102(core.List<api.HistoryLabelRemoved> o) { 340 checkUnnamed105(core.List<api.HistoryLabelRemoved> o) {
279 unittest.expect(o, unittest.hasLength(2)); 341 unittest.expect(o, unittest.hasLength(2));
280 checkHistoryLabelRemoved(o[0]); 342 checkHistoryLabelRemoved(o[0]);
281 checkHistoryLabelRemoved(o[1]); 343 checkHistoryLabelRemoved(o[1]);
282 } 344 }
283 345
284 buildUnnamed103() { 346 buildUnnamed106() {
285 var o = new core.List<api.Message>(); 347 var o = new core.List<api.Message>();
286 o.add(buildMessage()); 348 o.add(buildMessage());
287 o.add(buildMessage()); 349 o.add(buildMessage());
288 return o; 350 return o;
289 } 351 }
290 352
291 checkUnnamed103(core.List<api.Message> o) { 353 checkUnnamed106(core.List<api.Message> o) {
292 unittest.expect(o, unittest.hasLength(2)); 354 unittest.expect(o, unittest.hasLength(2));
293 checkMessage(o[0]); 355 checkMessage(o[0]);
294 checkMessage(o[1]); 356 checkMessage(o[1]);
295 } 357 }
296 358
297 buildUnnamed104() { 359 buildUnnamed107() {
298 var o = new core.List<api.HistoryMessageAdded>(); 360 var o = new core.List<api.HistoryMessageAdded>();
299 o.add(buildHistoryMessageAdded()); 361 o.add(buildHistoryMessageAdded());
300 o.add(buildHistoryMessageAdded()); 362 o.add(buildHistoryMessageAdded());
301 return o; 363 return o;
302 } 364 }
303 365
304 checkUnnamed104(core.List<api.HistoryMessageAdded> o) { 366 checkUnnamed107(core.List<api.HistoryMessageAdded> o) {
305 unittest.expect(o, unittest.hasLength(2)); 367 unittest.expect(o, unittest.hasLength(2));
306 checkHistoryMessageAdded(o[0]); 368 checkHistoryMessageAdded(o[0]);
307 checkHistoryMessageAdded(o[1]); 369 checkHistoryMessageAdded(o[1]);
308 } 370 }
309 371
310 buildUnnamed105() { 372 buildUnnamed108() {
311 var o = new core.List<api.HistoryMessageDeleted>(); 373 var o = new core.List<api.HistoryMessageDeleted>();
312 o.add(buildHistoryMessageDeleted()); 374 o.add(buildHistoryMessageDeleted());
313 o.add(buildHistoryMessageDeleted()); 375 o.add(buildHistoryMessageDeleted());
314 return o; 376 return o;
315 } 377 }
316 378
317 checkUnnamed105(core.List<api.HistoryMessageDeleted> o) { 379 checkUnnamed108(core.List<api.HistoryMessageDeleted> o) {
318 unittest.expect(o, unittest.hasLength(2)); 380 unittest.expect(o, unittest.hasLength(2));
319 checkHistoryMessageDeleted(o[0]); 381 checkHistoryMessageDeleted(o[0]);
320 checkHistoryMessageDeleted(o[1]); 382 checkHistoryMessageDeleted(o[1]);
321 } 383 }
322 384
323 core.int buildCounterHistory = 0; 385 core.int buildCounterHistory = 0;
324 buildHistory() { 386 buildHistory() {
325 var o = new api.History(); 387 var o = new api.History();
326 buildCounterHistory++; 388 buildCounterHistory++;
327 if (buildCounterHistory < 3) { 389 if (buildCounterHistory < 3) {
328 o.id = "foo"; 390 o.id = "foo";
329 o.labelsAdded = buildUnnamed101(); 391 o.labelsAdded = buildUnnamed104();
330 o.labelsRemoved = buildUnnamed102(); 392 o.labelsRemoved = buildUnnamed105();
331 o.messages = buildUnnamed103(); 393 o.messages = buildUnnamed106();
332 o.messagesAdded = buildUnnamed104(); 394 o.messagesAdded = buildUnnamed107();
333 o.messagesDeleted = buildUnnamed105(); 395 o.messagesDeleted = buildUnnamed108();
334 } 396 }
335 buildCounterHistory--; 397 buildCounterHistory--;
336 return o; 398 return o;
337 } 399 }
338 400
339 checkHistory(api.History o) { 401 checkHistory(api.History o) {
340 buildCounterHistory++; 402 buildCounterHistory++;
341 if (buildCounterHistory < 3) { 403 if (buildCounterHistory < 3) {
342 unittest.expect(o.id, unittest.equals('foo')); 404 unittest.expect(o.id, unittest.equals('foo'));
343 checkUnnamed101(o.labelsAdded); 405 checkUnnamed104(o.labelsAdded);
344 checkUnnamed102(o.labelsRemoved); 406 checkUnnamed105(o.labelsRemoved);
345 checkUnnamed103(o.messages); 407 checkUnnamed106(o.messages);
346 checkUnnamed104(o.messagesAdded); 408 checkUnnamed107(o.messagesAdded);
347 checkUnnamed105(o.messagesDeleted); 409 checkUnnamed108(o.messagesDeleted);
348 } 410 }
349 buildCounterHistory--; 411 buildCounterHistory--;
350 } 412 }
351 413
352 buildUnnamed106() { 414 buildUnnamed109() {
353 var o = new core.List<core.String>(); 415 var o = new core.List<core.String>();
354 o.add("foo"); 416 o.add("foo");
355 o.add("foo"); 417 o.add("foo");
356 return o; 418 return o;
357 } 419 }
358 420
359 checkUnnamed106(core.List<core.String> o) { 421 checkUnnamed109(core.List<core.String> o) {
360 unittest.expect(o, unittest.hasLength(2)); 422 unittest.expect(o, unittest.hasLength(2));
361 unittest.expect(o[0], unittest.equals('foo')); 423 unittest.expect(o[0], unittest.equals('foo'));
362 unittest.expect(o[1], unittest.equals('foo')); 424 unittest.expect(o[1], unittest.equals('foo'));
363 } 425 }
364 426
365 core.int buildCounterHistoryLabelAdded = 0; 427 core.int buildCounterHistoryLabelAdded = 0;
366 buildHistoryLabelAdded() { 428 buildHistoryLabelAdded() {
367 var o = new api.HistoryLabelAdded(); 429 var o = new api.HistoryLabelAdded();
368 buildCounterHistoryLabelAdded++; 430 buildCounterHistoryLabelAdded++;
369 if (buildCounterHistoryLabelAdded < 3) { 431 if (buildCounterHistoryLabelAdded < 3) {
370 o.labelIds = buildUnnamed106(); 432 o.labelIds = buildUnnamed109();
371 o.message = buildMessage(); 433 o.message = buildMessage();
372 } 434 }
373 buildCounterHistoryLabelAdded--; 435 buildCounterHistoryLabelAdded--;
374 return o; 436 return o;
375 } 437 }
376 438
377 checkHistoryLabelAdded(api.HistoryLabelAdded o) { 439 checkHistoryLabelAdded(api.HistoryLabelAdded o) {
378 buildCounterHistoryLabelAdded++; 440 buildCounterHistoryLabelAdded++;
379 if (buildCounterHistoryLabelAdded < 3) { 441 if (buildCounterHistoryLabelAdded < 3) {
380 checkUnnamed106(o.labelIds); 442 checkUnnamed109(o.labelIds);
381 checkMessage(o.message); 443 checkMessage(o.message);
382 } 444 }
383 buildCounterHistoryLabelAdded--; 445 buildCounterHistoryLabelAdded--;
384 } 446 }
385 447
386 buildUnnamed107() { 448 buildUnnamed110() {
387 var o = new core.List<core.String>(); 449 var o = new core.List<core.String>();
388 o.add("foo"); 450 o.add("foo");
389 o.add("foo"); 451 o.add("foo");
390 return o; 452 return o;
391 } 453 }
392 454
393 checkUnnamed107(core.List<core.String> o) { 455 checkUnnamed110(core.List<core.String> o) {
394 unittest.expect(o, unittest.hasLength(2)); 456 unittest.expect(o, unittest.hasLength(2));
395 unittest.expect(o[0], unittest.equals('foo')); 457 unittest.expect(o[0], unittest.equals('foo'));
396 unittest.expect(o[1], unittest.equals('foo')); 458 unittest.expect(o[1], unittest.equals('foo'));
397 } 459 }
398 460
399 core.int buildCounterHistoryLabelRemoved = 0; 461 core.int buildCounterHistoryLabelRemoved = 0;
400 buildHistoryLabelRemoved() { 462 buildHistoryLabelRemoved() {
401 var o = new api.HistoryLabelRemoved(); 463 var o = new api.HistoryLabelRemoved();
402 buildCounterHistoryLabelRemoved++; 464 buildCounterHistoryLabelRemoved++;
403 if (buildCounterHistoryLabelRemoved < 3) { 465 if (buildCounterHistoryLabelRemoved < 3) {
404 o.labelIds = buildUnnamed107(); 466 o.labelIds = buildUnnamed110();
405 o.message = buildMessage(); 467 o.message = buildMessage();
406 } 468 }
407 buildCounterHistoryLabelRemoved--; 469 buildCounterHistoryLabelRemoved--;
408 return o; 470 return o;
409 } 471 }
410 472
411 checkHistoryLabelRemoved(api.HistoryLabelRemoved o) { 473 checkHistoryLabelRemoved(api.HistoryLabelRemoved o) {
412 buildCounterHistoryLabelRemoved++; 474 buildCounterHistoryLabelRemoved++;
413 if (buildCounterHistoryLabelRemoved < 3) { 475 if (buildCounterHistoryLabelRemoved < 3) {
414 checkUnnamed107(o.labelIds); 476 checkUnnamed110(o.labelIds);
415 checkMessage(o.message); 477 checkMessage(o.message);
416 } 478 }
417 buildCounterHistoryLabelRemoved--; 479 buildCounterHistoryLabelRemoved--;
418 } 480 }
419 481
420 core.int buildCounterHistoryMessageAdded = 0; 482 core.int buildCounterHistoryMessageAdded = 0;
421 buildHistoryMessageAdded() { 483 buildHistoryMessageAdded() {
422 var o = new api.HistoryMessageAdded(); 484 var o = new api.HistoryMessageAdded();
423 buildCounterHistoryMessageAdded++; 485 buildCounterHistoryMessageAdded++;
424 if (buildCounterHistoryMessageAdded < 3) { 486 if (buildCounterHistoryMessageAdded < 3) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 unittest.expect(o.messagesTotal, unittest.equals(42)); 570 unittest.expect(o.messagesTotal, unittest.equals(42));
509 unittest.expect(o.messagesUnread, unittest.equals(42)); 571 unittest.expect(o.messagesUnread, unittest.equals(42));
510 unittest.expect(o.name, unittest.equals('foo')); 572 unittest.expect(o.name, unittest.equals('foo'));
511 unittest.expect(o.threadsTotal, unittest.equals(42)); 573 unittest.expect(o.threadsTotal, unittest.equals(42));
512 unittest.expect(o.threadsUnread, unittest.equals(42)); 574 unittest.expect(o.threadsUnread, unittest.equals(42));
513 unittest.expect(o.type, unittest.equals('foo')); 575 unittest.expect(o.type, unittest.equals('foo'));
514 } 576 }
515 buildCounterLabel--; 577 buildCounterLabel--;
516 } 578 }
517 579
518 buildUnnamed108() { 580 buildUnnamed111() {
519 var o = new core.List<api.Draft>(); 581 var o = new core.List<api.Draft>();
520 o.add(buildDraft()); 582 o.add(buildDraft());
521 o.add(buildDraft()); 583 o.add(buildDraft());
522 return o; 584 return o;
523 } 585 }
524 586
525 checkUnnamed108(core.List<api.Draft> o) { 587 checkUnnamed111(core.List<api.Draft> o) {
526 unittest.expect(o, unittest.hasLength(2)); 588 unittest.expect(o, unittest.hasLength(2));
527 checkDraft(o[0]); 589 checkDraft(o[0]);
528 checkDraft(o[1]); 590 checkDraft(o[1]);
529 } 591 }
530 592
531 core.int buildCounterListDraftsResponse = 0; 593 core.int buildCounterListDraftsResponse = 0;
532 buildListDraftsResponse() { 594 buildListDraftsResponse() {
533 var o = new api.ListDraftsResponse(); 595 var o = new api.ListDraftsResponse();
534 buildCounterListDraftsResponse++; 596 buildCounterListDraftsResponse++;
535 if (buildCounterListDraftsResponse < 3) { 597 if (buildCounterListDraftsResponse < 3) {
536 o.drafts = buildUnnamed108(); 598 o.drafts = buildUnnamed111();
537 o.nextPageToken = "foo"; 599 o.nextPageToken = "foo";
538 o.resultSizeEstimate = 42; 600 o.resultSizeEstimate = 42;
539 } 601 }
540 buildCounterListDraftsResponse--; 602 buildCounterListDraftsResponse--;
541 return o; 603 return o;
542 } 604 }
543 605
544 checkListDraftsResponse(api.ListDraftsResponse o) { 606 checkListDraftsResponse(api.ListDraftsResponse o) {
545 buildCounterListDraftsResponse++; 607 buildCounterListDraftsResponse++;
546 if (buildCounterListDraftsResponse < 3) { 608 if (buildCounterListDraftsResponse < 3) {
547 checkUnnamed108(o.drafts); 609 checkUnnamed111(o.drafts);
548 unittest.expect(o.nextPageToken, unittest.equals('foo')); 610 unittest.expect(o.nextPageToken, unittest.equals('foo'));
549 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 611 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
550 } 612 }
551 buildCounterListDraftsResponse--; 613 buildCounterListDraftsResponse--;
552 } 614 }
553 615
554 buildUnnamed109() { 616 buildUnnamed112() {
555 var o = new core.List<api.Filter>(); 617 var o = new core.List<api.Filter>();
556 o.add(buildFilter()); 618 o.add(buildFilter());
557 o.add(buildFilter()); 619 o.add(buildFilter());
558 return o; 620 return o;
559 } 621 }
560 622
561 checkUnnamed109(core.List<api.Filter> o) { 623 checkUnnamed112(core.List<api.Filter> o) {
562 unittest.expect(o, unittest.hasLength(2)); 624 unittest.expect(o, unittest.hasLength(2));
563 checkFilter(o[0]); 625 checkFilter(o[0]);
564 checkFilter(o[1]); 626 checkFilter(o[1]);
565 } 627 }
566 628
567 core.int buildCounterListFiltersResponse = 0; 629 core.int buildCounterListFiltersResponse = 0;
568 buildListFiltersResponse() { 630 buildListFiltersResponse() {
569 var o = new api.ListFiltersResponse(); 631 var o = new api.ListFiltersResponse();
570 buildCounterListFiltersResponse++; 632 buildCounterListFiltersResponse++;
571 if (buildCounterListFiltersResponse < 3) { 633 if (buildCounterListFiltersResponse < 3) {
572 o.filter = buildUnnamed109(); 634 o.filter = buildUnnamed112();
573 } 635 }
574 buildCounterListFiltersResponse--; 636 buildCounterListFiltersResponse--;
575 return o; 637 return o;
576 } 638 }
577 639
578 checkListFiltersResponse(api.ListFiltersResponse o) { 640 checkListFiltersResponse(api.ListFiltersResponse o) {
579 buildCounterListFiltersResponse++; 641 buildCounterListFiltersResponse++;
580 if (buildCounterListFiltersResponse < 3) { 642 if (buildCounterListFiltersResponse < 3) {
581 checkUnnamed109(o.filter); 643 checkUnnamed112(o.filter);
582 } 644 }
583 buildCounterListFiltersResponse--; 645 buildCounterListFiltersResponse--;
584 } 646 }
585 647
586 buildUnnamed110() { 648 buildUnnamed113() {
587 var o = new core.List<api.ForwardingAddress>(); 649 var o = new core.List<api.ForwardingAddress>();
588 o.add(buildForwardingAddress()); 650 o.add(buildForwardingAddress());
589 o.add(buildForwardingAddress()); 651 o.add(buildForwardingAddress());
590 return o; 652 return o;
591 } 653 }
592 654
593 checkUnnamed110(core.List<api.ForwardingAddress> o) { 655 checkUnnamed113(core.List<api.ForwardingAddress> o) {
594 unittest.expect(o, unittest.hasLength(2)); 656 unittest.expect(o, unittest.hasLength(2));
595 checkForwardingAddress(o[0]); 657 checkForwardingAddress(o[0]);
596 checkForwardingAddress(o[1]); 658 checkForwardingAddress(o[1]);
597 } 659 }
598 660
599 core.int buildCounterListForwardingAddressesResponse = 0; 661 core.int buildCounterListForwardingAddressesResponse = 0;
600 buildListForwardingAddressesResponse() { 662 buildListForwardingAddressesResponse() {
601 var o = new api.ListForwardingAddressesResponse(); 663 var o = new api.ListForwardingAddressesResponse();
602 buildCounterListForwardingAddressesResponse++; 664 buildCounterListForwardingAddressesResponse++;
603 if (buildCounterListForwardingAddressesResponse < 3) { 665 if (buildCounterListForwardingAddressesResponse < 3) {
604 o.forwardingAddresses = buildUnnamed110(); 666 o.forwardingAddresses = buildUnnamed113();
605 } 667 }
606 buildCounterListForwardingAddressesResponse--; 668 buildCounterListForwardingAddressesResponse--;
607 return o; 669 return o;
608 } 670 }
609 671
610 checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) { 672 checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) {
611 buildCounterListForwardingAddressesResponse++; 673 buildCounterListForwardingAddressesResponse++;
612 if (buildCounterListForwardingAddressesResponse < 3) { 674 if (buildCounterListForwardingAddressesResponse < 3) {
613 checkUnnamed110(o.forwardingAddresses); 675 checkUnnamed113(o.forwardingAddresses);
614 } 676 }
615 buildCounterListForwardingAddressesResponse--; 677 buildCounterListForwardingAddressesResponse--;
616 } 678 }
617 679
618 buildUnnamed111() { 680 buildUnnamed114() {
619 var o = new core.List<api.History>(); 681 var o = new core.List<api.History>();
620 o.add(buildHistory()); 682 o.add(buildHistory());
621 o.add(buildHistory()); 683 o.add(buildHistory());
622 return o; 684 return o;
623 } 685 }
624 686
625 checkUnnamed111(core.List<api.History> o) { 687 checkUnnamed114(core.List<api.History> o) {
626 unittest.expect(o, unittest.hasLength(2)); 688 unittest.expect(o, unittest.hasLength(2));
627 checkHistory(o[0]); 689 checkHistory(o[0]);
628 checkHistory(o[1]); 690 checkHistory(o[1]);
629 } 691 }
630 692
631 core.int buildCounterListHistoryResponse = 0; 693 core.int buildCounterListHistoryResponse = 0;
632 buildListHistoryResponse() { 694 buildListHistoryResponse() {
633 var o = new api.ListHistoryResponse(); 695 var o = new api.ListHistoryResponse();
634 buildCounterListHistoryResponse++; 696 buildCounterListHistoryResponse++;
635 if (buildCounterListHistoryResponse < 3) { 697 if (buildCounterListHistoryResponse < 3) {
636 o.history = buildUnnamed111(); 698 o.history = buildUnnamed114();
637 o.historyId = "foo"; 699 o.historyId = "foo";
638 o.nextPageToken = "foo"; 700 o.nextPageToken = "foo";
639 } 701 }
640 buildCounterListHistoryResponse--; 702 buildCounterListHistoryResponse--;
641 return o; 703 return o;
642 } 704 }
643 705
644 checkListHistoryResponse(api.ListHistoryResponse o) { 706 checkListHistoryResponse(api.ListHistoryResponse o) {
645 buildCounterListHistoryResponse++; 707 buildCounterListHistoryResponse++;
646 if (buildCounterListHistoryResponse < 3) { 708 if (buildCounterListHistoryResponse < 3) {
647 checkUnnamed111(o.history); 709 checkUnnamed114(o.history);
648 unittest.expect(o.historyId, unittest.equals('foo')); 710 unittest.expect(o.historyId, unittest.equals('foo'));
649 unittest.expect(o.nextPageToken, unittest.equals('foo')); 711 unittest.expect(o.nextPageToken, unittest.equals('foo'));
650 } 712 }
651 buildCounterListHistoryResponse--; 713 buildCounterListHistoryResponse--;
652 } 714 }
653 715
654 buildUnnamed112() { 716 buildUnnamed115() {
655 var o = new core.List<api.Label>(); 717 var o = new core.List<api.Label>();
656 o.add(buildLabel()); 718 o.add(buildLabel());
657 o.add(buildLabel()); 719 o.add(buildLabel());
658 return o; 720 return o;
659 } 721 }
660 722
661 checkUnnamed112(core.List<api.Label> o) { 723 checkUnnamed115(core.List<api.Label> o) {
662 unittest.expect(o, unittest.hasLength(2)); 724 unittest.expect(o, unittest.hasLength(2));
663 checkLabel(o[0]); 725 checkLabel(o[0]);
664 checkLabel(o[1]); 726 checkLabel(o[1]);
665 } 727 }
666 728
667 core.int buildCounterListLabelsResponse = 0; 729 core.int buildCounterListLabelsResponse = 0;
668 buildListLabelsResponse() { 730 buildListLabelsResponse() {
669 var o = new api.ListLabelsResponse(); 731 var o = new api.ListLabelsResponse();
670 buildCounterListLabelsResponse++; 732 buildCounterListLabelsResponse++;
671 if (buildCounterListLabelsResponse < 3) { 733 if (buildCounterListLabelsResponse < 3) {
672 o.labels = buildUnnamed112(); 734 o.labels = buildUnnamed115();
673 } 735 }
674 buildCounterListLabelsResponse--; 736 buildCounterListLabelsResponse--;
675 return o; 737 return o;
676 } 738 }
677 739
678 checkListLabelsResponse(api.ListLabelsResponse o) { 740 checkListLabelsResponse(api.ListLabelsResponse o) {
679 buildCounterListLabelsResponse++; 741 buildCounterListLabelsResponse++;
680 if (buildCounterListLabelsResponse < 3) { 742 if (buildCounterListLabelsResponse < 3) {
681 checkUnnamed112(o.labels); 743 checkUnnamed115(o.labels);
682 } 744 }
683 buildCounterListLabelsResponse--; 745 buildCounterListLabelsResponse--;
684 } 746 }
685 747
686 buildUnnamed113() { 748 buildUnnamed116() {
687 var o = new core.List<api.Message>(); 749 var o = new core.List<api.Message>();
688 o.add(buildMessage()); 750 o.add(buildMessage());
689 o.add(buildMessage()); 751 o.add(buildMessage());
690 return o; 752 return o;
691 } 753 }
692 754
693 checkUnnamed113(core.List<api.Message> o) { 755 checkUnnamed116(core.List<api.Message> o) {
694 unittest.expect(o, unittest.hasLength(2)); 756 unittest.expect(o, unittest.hasLength(2));
695 checkMessage(o[0]); 757 checkMessage(o[0]);
696 checkMessage(o[1]); 758 checkMessage(o[1]);
697 } 759 }
698 760
699 core.int buildCounterListMessagesResponse = 0; 761 core.int buildCounterListMessagesResponse = 0;
700 buildListMessagesResponse() { 762 buildListMessagesResponse() {
701 var o = new api.ListMessagesResponse(); 763 var o = new api.ListMessagesResponse();
702 buildCounterListMessagesResponse++; 764 buildCounterListMessagesResponse++;
703 if (buildCounterListMessagesResponse < 3) { 765 if (buildCounterListMessagesResponse < 3) {
704 o.messages = buildUnnamed113(); 766 o.messages = buildUnnamed116();
705 o.nextPageToken = "foo"; 767 o.nextPageToken = "foo";
706 o.resultSizeEstimate = 42; 768 o.resultSizeEstimate = 42;
707 } 769 }
708 buildCounterListMessagesResponse--; 770 buildCounterListMessagesResponse--;
709 return o; 771 return o;
710 } 772 }
711 773
712 checkListMessagesResponse(api.ListMessagesResponse o) { 774 checkListMessagesResponse(api.ListMessagesResponse o) {
713 buildCounterListMessagesResponse++; 775 buildCounterListMessagesResponse++;
714 if (buildCounterListMessagesResponse < 3) { 776 if (buildCounterListMessagesResponse < 3) {
715 checkUnnamed113(o.messages); 777 checkUnnamed116(o.messages);
716 unittest.expect(o.nextPageToken, unittest.equals('foo')); 778 unittest.expect(o.nextPageToken, unittest.equals('foo'));
717 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 779 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
718 } 780 }
719 buildCounterListMessagesResponse--; 781 buildCounterListMessagesResponse--;
720 } 782 }
721 783
722 buildUnnamed114() { 784 buildUnnamed117() {
723 var o = new core.List<api.SendAs>(); 785 var o = new core.List<api.SendAs>();
724 o.add(buildSendAs()); 786 o.add(buildSendAs());
725 o.add(buildSendAs()); 787 o.add(buildSendAs());
726 return o; 788 return o;
727 } 789 }
728 790
729 checkUnnamed114(core.List<api.SendAs> o) { 791 checkUnnamed117(core.List<api.SendAs> o) {
730 unittest.expect(o, unittest.hasLength(2)); 792 unittest.expect(o, unittest.hasLength(2));
731 checkSendAs(o[0]); 793 checkSendAs(o[0]);
732 checkSendAs(o[1]); 794 checkSendAs(o[1]);
733 } 795 }
734 796
735 core.int buildCounterListSendAsResponse = 0; 797 core.int buildCounterListSendAsResponse = 0;
736 buildListSendAsResponse() { 798 buildListSendAsResponse() {
737 var o = new api.ListSendAsResponse(); 799 var o = new api.ListSendAsResponse();
738 buildCounterListSendAsResponse++; 800 buildCounterListSendAsResponse++;
739 if (buildCounterListSendAsResponse < 3) { 801 if (buildCounterListSendAsResponse < 3) {
740 o.sendAs = buildUnnamed114(); 802 o.sendAs = buildUnnamed117();
741 } 803 }
742 buildCounterListSendAsResponse--; 804 buildCounterListSendAsResponse--;
743 return o; 805 return o;
744 } 806 }
745 807
746 checkListSendAsResponse(api.ListSendAsResponse o) { 808 checkListSendAsResponse(api.ListSendAsResponse o) {
747 buildCounterListSendAsResponse++; 809 buildCounterListSendAsResponse++;
748 if (buildCounterListSendAsResponse < 3) { 810 if (buildCounterListSendAsResponse < 3) {
749 checkUnnamed114(o.sendAs); 811 checkUnnamed117(o.sendAs);
750 } 812 }
751 buildCounterListSendAsResponse--; 813 buildCounterListSendAsResponse--;
752 } 814 }
753 815
754 buildUnnamed115() { 816 buildUnnamed118() {
755 var o = new core.List<api.Thread>(); 817 var o = new core.List<api.Thread>();
756 o.add(buildThread()); 818 o.add(buildThread());
757 o.add(buildThread()); 819 o.add(buildThread());
758 return o; 820 return o;
759 } 821 }
760 822
761 checkUnnamed115(core.List<api.Thread> o) { 823 checkUnnamed118(core.List<api.Thread> o) {
762 unittest.expect(o, unittest.hasLength(2)); 824 unittest.expect(o, unittest.hasLength(2));
763 checkThread(o[0]); 825 checkThread(o[0]);
764 checkThread(o[1]); 826 checkThread(o[1]);
765 } 827 }
766 828
767 core.int buildCounterListThreadsResponse = 0; 829 core.int buildCounterListThreadsResponse = 0;
768 buildListThreadsResponse() { 830 buildListThreadsResponse() {
769 var o = new api.ListThreadsResponse(); 831 var o = new api.ListThreadsResponse();
770 buildCounterListThreadsResponse++; 832 buildCounterListThreadsResponse++;
771 if (buildCounterListThreadsResponse < 3) { 833 if (buildCounterListThreadsResponse < 3) {
772 o.nextPageToken = "foo"; 834 o.nextPageToken = "foo";
773 o.resultSizeEstimate = 42; 835 o.resultSizeEstimate = 42;
774 o.threads = buildUnnamed115(); 836 o.threads = buildUnnamed118();
775 } 837 }
776 buildCounterListThreadsResponse--; 838 buildCounterListThreadsResponse--;
777 return o; 839 return o;
778 } 840 }
779 841
780 checkListThreadsResponse(api.ListThreadsResponse o) { 842 checkListThreadsResponse(api.ListThreadsResponse o) {
781 buildCounterListThreadsResponse++; 843 buildCounterListThreadsResponse++;
782 if (buildCounterListThreadsResponse < 3) { 844 if (buildCounterListThreadsResponse < 3) {
783 unittest.expect(o.nextPageToken, unittest.equals('foo')); 845 unittest.expect(o.nextPageToken, unittest.equals('foo'));
784 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 846 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
785 checkUnnamed115(o.threads); 847 checkUnnamed118(o.threads);
786 } 848 }
787 buildCounterListThreadsResponse--; 849 buildCounterListThreadsResponse--;
788 } 850 }
789 851
790 buildUnnamed116() { 852 buildUnnamed119() {
791 var o = new core.List<core.String>(); 853 var o = new core.List<core.String>();
792 o.add("foo"); 854 o.add("foo");
793 o.add("foo"); 855 o.add("foo");
794 return o; 856 return o;
795 } 857 }
796 858
797 checkUnnamed116(core.List<core.String> o) { 859 checkUnnamed119(core.List<core.String> o) {
798 unittest.expect(o, unittest.hasLength(2)); 860 unittest.expect(o, unittest.hasLength(2));
799 unittest.expect(o[0], unittest.equals('foo')); 861 unittest.expect(o[0], unittest.equals('foo'));
800 unittest.expect(o[1], unittest.equals('foo')); 862 unittest.expect(o[1], unittest.equals('foo'));
801 } 863 }
802 864
803 core.int buildCounterMessage = 0; 865 core.int buildCounterMessage = 0;
804 buildMessage() { 866 buildMessage() {
805 var o = new api.Message(); 867 var o = new api.Message();
806 buildCounterMessage++; 868 buildCounterMessage++;
807 if (buildCounterMessage < 3) { 869 if (buildCounterMessage < 3) {
808 o.historyId = "foo"; 870 o.historyId = "foo";
809 o.id = "foo"; 871 o.id = "foo";
810 o.internalDate = "foo"; 872 o.internalDate = "foo";
811 o.labelIds = buildUnnamed116(); 873 o.labelIds = buildUnnamed119();
812 o.payload = buildMessagePart(); 874 o.payload = buildMessagePart();
813 o.raw = "foo"; 875 o.raw = "foo";
814 o.sizeEstimate = 42; 876 o.sizeEstimate = 42;
815 o.snippet = "foo"; 877 o.snippet = "foo";
816 o.threadId = "foo"; 878 o.threadId = "foo";
817 } 879 }
818 buildCounterMessage--; 880 buildCounterMessage--;
819 return o; 881 return o;
820 } 882 }
821 883
822 checkMessage(api.Message o) { 884 checkMessage(api.Message o) {
823 buildCounterMessage++; 885 buildCounterMessage++;
824 if (buildCounterMessage < 3) { 886 if (buildCounterMessage < 3) {
825 unittest.expect(o.historyId, unittest.equals('foo')); 887 unittest.expect(o.historyId, unittest.equals('foo'));
826 unittest.expect(o.id, unittest.equals('foo')); 888 unittest.expect(o.id, unittest.equals('foo'));
827 unittest.expect(o.internalDate, unittest.equals('foo')); 889 unittest.expect(o.internalDate, unittest.equals('foo'));
828 checkUnnamed116(o.labelIds); 890 checkUnnamed119(o.labelIds);
829 checkMessagePart(o.payload); 891 checkMessagePart(o.payload);
830 unittest.expect(o.raw, unittest.equals('foo')); 892 unittest.expect(o.raw, unittest.equals('foo'));
831 unittest.expect(o.sizeEstimate, unittest.equals(42)); 893 unittest.expect(o.sizeEstimate, unittest.equals(42));
832 unittest.expect(o.snippet, unittest.equals('foo')); 894 unittest.expect(o.snippet, unittest.equals('foo'));
833 unittest.expect(o.threadId, unittest.equals('foo')); 895 unittest.expect(o.threadId, unittest.equals('foo'));
834 } 896 }
835 buildCounterMessage--; 897 buildCounterMessage--;
836 } 898 }
837 899
838 buildUnnamed117() { 900 buildUnnamed120() {
839 var o = new core.List<api.MessagePartHeader>(); 901 var o = new core.List<api.MessagePartHeader>();
840 o.add(buildMessagePartHeader()); 902 o.add(buildMessagePartHeader());
841 o.add(buildMessagePartHeader()); 903 o.add(buildMessagePartHeader());
842 return o; 904 return o;
843 } 905 }
844 906
845 checkUnnamed117(core.List<api.MessagePartHeader> o) { 907 checkUnnamed120(core.List<api.MessagePartHeader> o) {
846 unittest.expect(o, unittest.hasLength(2)); 908 unittest.expect(o, unittest.hasLength(2));
847 checkMessagePartHeader(o[0]); 909 checkMessagePartHeader(o[0]);
848 checkMessagePartHeader(o[1]); 910 checkMessagePartHeader(o[1]);
849 } 911 }
850 912
851 buildUnnamed118() { 913 buildUnnamed121() {
852 var o = new core.List<api.MessagePart>(); 914 var o = new core.List<api.MessagePart>();
853 o.add(buildMessagePart()); 915 o.add(buildMessagePart());
854 o.add(buildMessagePart()); 916 o.add(buildMessagePart());
855 return o; 917 return o;
856 } 918 }
857 919
858 checkUnnamed118(core.List<api.MessagePart> o) { 920 checkUnnamed121(core.List<api.MessagePart> o) {
859 unittest.expect(o, unittest.hasLength(2)); 921 unittest.expect(o, unittest.hasLength(2));
860 checkMessagePart(o[0]); 922 checkMessagePart(o[0]);
861 checkMessagePart(o[1]); 923 checkMessagePart(o[1]);
862 } 924 }
863 925
864 core.int buildCounterMessagePart = 0; 926 core.int buildCounterMessagePart = 0;
865 buildMessagePart() { 927 buildMessagePart() {
866 var o = new api.MessagePart(); 928 var o = new api.MessagePart();
867 buildCounterMessagePart++; 929 buildCounterMessagePart++;
868 if (buildCounterMessagePart < 3) { 930 if (buildCounterMessagePart < 3) {
869 o.body = buildMessagePartBody(); 931 o.body = buildMessagePartBody();
870 o.filename = "foo"; 932 o.filename = "foo";
871 o.headers = buildUnnamed117(); 933 o.headers = buildUnnamed120();
872 o.mimeType = "foo"; 934 o.mimeType = "foo";
873 o.partId = "foo"; 935 o.partId = "foo";
874 o.parts = buildUnnamed118(); 936 o.parts = buildUnnamed121();
875 } 937 }
876 buildCounterMessagePart--; 938 buildCounterMessagePart--;
877 return o; 939 return o;
878 } 940 }
879 941
880 checkMessagePart(api.MessagePart o) { 942 checkMessagePart(api.MessagePart o) {
881 buildCounterMessagePart++; 943 buildCounterMessagePart++;
882 if (buildCounterMessagePart < 3) { 944 if (buildCounterMessagePart < 3) {
883 checkMessagePartBody(o.body); 945 checkMessagePartBody(o.body);
884 unittest.expect(o.filename, unittest.equals('foo')); 946 unittest.expect(o.filename, unittest.equals('foo'));
885 checkUnnamed117(o.headers); 947 checkUnnamed120(o.headers);
886 unittest.expect(o.mimeType, unittest.equals('foo')); 948 unittest.expect(o.mimeType, unittest.equals('foo'));
887 unittest.expect(o.partId, unittest.equals('foo')); 949 unittest.expect(o.partId, unittest.equals('foo'));
888 checkUnnamed118(o.parts); 950 checkUnnamed121(o.parts);
889 } 951 }
890 buildCounterMessagePart--; 952 buildCounterMessagePart--;
891 } 953 }
892 954
893 core.int buildCounterMessagePartBody = 0; 955 core.int buildCounterMessagePartBody = 0;
894 buildMessagePartBody() { 956 buildMessagePartBody() {
895 var o = new api.MessagePartBody(); 957 var o = new api.MessagePartBody();
896 buildCounterMessagePartBody++; 958 buildCounterMessagePartBody++;
897 if (buildCounterMessagePartBody < 3) { 959 if (buildCounterMessagePartBody < 3) {
898 o.attachmentId = "foo"; 960 o.attachmentId = "foo";
(...skipping 28 matching lines...) Expand all
927 989
928 checkMessagePartHeader(api.MessagePartHeader o) { 990 checkMessagePartHeader(api.MessagePartHeader o) {
929 buildCounterMessagePartHeader++; 991 buildCounterMessagePartHeader++;
930 if (buildCounterMessagePartHeader < 3) { 992 if (buildCounterMessagePartHeader < 3) {
931 unittest.expect(o.name, unittest.equals('foo')); 993 unittest.expect(o.name, unittest.equals('foo'));
932 unittest.expect(o.value, unittest.equals('foo')); 994 unittest.expect(o.value, unittest.equals('foo'));
933 } 995 }
934 buildCounterMessagePartHeader--; 996 buildCounterMessagePartHeader--;
935 } 997 }
936 998
937 buildUnnamed119() { 999 buildUnnamed122() {
938 var o = new core.List<core.String>(); 1000 var o = new core.List<core.String>();
939 o.add("foo"); 1001 o.add("foo");
940 o.add("foo"); 1002 o.add("foo");
941 return o; 1003 return o;
942 } 1004 }
943 1005
944 checkUnnamed119(core.List<core.String> o) { 1006 checkUnnamed122(core.List<core.String> o) {
945 unittest.expect(o, unittest.hasLength(2)); 1007 unittest.expect(o, unittest.hasLength(2));
946 unittest.expect(o[0], unittest.equals('foo')); 1008 unittest.expect(o[0], unittest.equals('foo'));
947 unittest.expect(o[1], unittest.equals('foo')); 1009 unittest.expect(o[1], unittest.equals('foo'));
948 } 1010 }
949 1011
950 buildUnnamed120() { 1012 buildUnnamed123() {
951 var o = new core.List<core.String>(); 1013 var o = new core.List<core.String>();
952 o.add("foo"); 1014 o.add("foo");
953 o.add("foo"); 1015 o.add("foo");
954 return o; 1016 return o;
955 } 1017 }
956 1018
957 checkUnnamed120(core.List<core.String> o) { 1019 checkUnnamed123(core.List<core.String> o) {
958 unittest.expect(o, unittest.hasLength(2)); 1020 unittest.expect(o, unittest.hasLength(2));
959 unittest.expect(o[0], unittest.equals('foo')); 1021 unittest.expect(o[0], unittest.equals('foo'));
960 unittest.expect(o[1], unittest.equals('foo')); 1022 unittest.expect(o[1], unittest.equals('foo'));
961 } 1023 }
962 1024
963 core.int buildCounterModifyMessageRequest = 0; 1025 core.int buildCounterModifyMessageRequest = 0;
964 buildModifyMessageRequest() { 1026 buildModifyMessageRequest() {
965 var o = new api.ModifyMessageRequest(); 1027 var o = new api.ModifyMessageRequest();
966 buildCounterModifyMessageRequest++; 1028 buildCounterModifyMessageRequest++;
967 if (buildCounterModifyMessageRequest < 3) { 1029 if (buildCounterModifyMessageRequest < 3) {
968 o.addLabelIds = buildUnnamed119(); 1030 o.addLabelIds = buildUnnamed122();
969 o.removeLabelIds = buildUnnamed120(); 1031 o.removeLabelIds = buildUnnamed123();
970 } 1032 }
971 buildCounterModifyMessageRequest--; 1033 buildCounterModifyMessageRequest--;
972 return o; 1034 return o;
973 } 1035 }
974 1036
975 checkModifyMessageRequest(api.ModifyMessageRequest o) { 1037 checkModifyMessageRequest(api.ModifyMessageRequest o) {
976 buildCounterModifyMessageRequest++; 1038 buildCounterModifyMessageRequest++;
977 if (buildCounterModifyMessageRequest < 3) { 1039 if (buildCounterModifyMessageRequest < 3) {
978 checkUnnamed119(o.addLabelIds); 1040 checkUnnamed122(o.addLabelIds);
979 checkUnnamed120(o.removeLabelIds); 1041 checkUnnamed123(o.removeLabelIds);
980 } 1042 }
981 buildCounterModifyMessageRequest--; 1043 buildCounterModifyMessageRequest--;
982 } 1044 }
983 1045
984 buildUnnamed121() { 1046 buildUnnamed124() {
985 var o = new core.List<core.String>(); 1047 var o = new core.List<core.String>();
986 o.add("foo"); 1048 o.add("foo");
987 o.add("foo"); 1049 o.add("foo");
988 return o; 1050 return o;
989 } 1051 }
990 1052
991 checkUnnamed121(core.List<core.String> o) { 1053 checkUnnamed124(core.List<core.String> o) {
992 unittest.expect(o, unittest.hasLength(2)); 1054 unittest.expect(o, unittest.hasLength(2));
993 unittest.expect(o[0], unittest.equals('foo')); 1055 unittest.expect(o[0], unittest.equals('foo'));
994 unittest.expect(o[1], unittest.equals('foo')); 1056 unittest.expect(o[1], unittest.equals('foo'));
995 } 1057 }
996 1058
997 buildUnnamed122() { 1059 buildUnnamed125() {
998 var o = new core.List<core.String>(); 1060 var o = new core.List<core.String>();
999 o.add("foo"); 1061 o.add("foo");
1000 o.add("foo"); 1062 o.add("foo");
1001 return o; 1063 return o;
1002 } 1064 }
1003 1065
1004 checkUnnamed122(core.List<core.String> o) { 1066 checkUnnamed125(core.List<core.String> o) {
1005 unittest.expect(o, unittest.hasLength(2)); 1067 unittest.expect(o, unittest.hasLength(2));
1006 unittest.expect(o[0], unittest.equals('foo')); 1068 unittest.expect(o[0], unittest.equals('foo'));
1007 unittest.expect(o[1], unittest.equals('foo')); 1069 unittest.expect(o[1], unittest.equals('foo'));
1008 } 1070 }
1009 1071
1010 core.int buildCounterModifyThreadRequest = 0; 1072 core.int buildCounterModifyThreadRequest = 0;
1011 buildModifyThreadRequest() { 1073 buildModifyThreadRequest() {
1012 var o = new api.ModifyThreadRequest(); 1074 var o = new api.ModifyThreadRequest();
1013 buildCounterModifyThreadRequest++; 1075 buildCounterModifyThreadRequest++;
1014 if (buildCounterModifyThreadRequest < 3) { 1076 if (buildCounterModifyThreadRequest < 3) {
1015 o.addLabelIds = buildUnnamed121(); 1077 o.addLabelIds = buildUnnamed124();
1016 o.removeLabelIds = buildUnnamed122(); 1078 o.removeLabelIds = buildUnnamed125();
1017 } 1079 }
1018 buildCounterModifyThreadRequest--; 1080 buildCounterModifyThreadRequest--;
1019 return o; 1081 return o;
1020 } 1082 }
1021 1083
1022 checkModifyThreadRequest(api.ModifyThreadRequest o) { 1084 checkModifyThreadRequest(api.ModifyThreadRequest o) {
1023 buildCounterModifyThreadRequest++; 1085 buildCounterModifyThreadRequest++;
1024 if (buildCounterModifyThreadRequest < 3) { 1086 if (buildCounterModifyThreadRequest < 3) {
1025 checkUnnamed121(o.addLabelIds); 1087 checkUnnamed124(o.addLabelIds);
1026 checkUnnamed122(o.removeLabelIds); 1088 checkUnnamed125(o.removeLabelIds);
1027 } 1089 }
1028 buildCounterModifyThreadRequest--; 1090 buildCounterModifyThreadRequest--;
1029 } 1091 }
1030 1092
1031 core.int buildCounterPopSettings = 0; 1093 core.int buildCounterPopSettings = 0;
1032 buildPopSettings() { 1094 buildPopSettings() {
1033 var o = new api.PopSettings(); 1095 var o = new api.PopSettings();
1034 buildCounterPopSettings++; 1096 buildCounterPopSettings++;
1035 if (buildCounterPopSettings < 3) { 1097 if (buildCounterPopSettings < 3) {
1036 o.accessWindow = "foo"; 1098 o.accessWindow = "foo";
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 if (buildCounterSmtpMsa < 3) { 1191 if (buildCounterSmtpMsa < 3) {
1130 unittest.expect(o.host, unittest.equals('foo')); 1192 unittest.expect(o.host, unittest.equals('foo'));
1131 unittest.expect(o.password, unittest.equals('foo')); 1193 unittest.expect(o.password, unittest.equals('foo'));
1132 unittest.expect(o.port, unittest.equals(42)); 1194 unittest.expect(o.port, unittest.equals(42));
1133 unittest.expect(o.securityMode, unittest.equals('foo')); 1195 unittest.expect(o.securityMode, unittest.equals('foo'));
1134 unittest.expect(o.username, unittest.equals('foo')); 1196 unittest.expect(o.username, unittest.equals('foo'));
1135 } 1197 }
1136 buildCounterSmtpMsa--; 1198 buildCounterSmtpMsa--;
1137 } 1199 }
1138 1200
1139 buildUnnamed123() { 1201 buildUnnamed126() {
1140 var o = new core.List<api.Message>(); 1202 var o = new core.List<api.Message>();
1141 o.add(buildMessage()); 1203 o.add(buildMessage());
1142 o.add(buildMessage()); 1204 o.add(buildMessage());
1143 return o; 1205 return o;
1144 } 1206 }
1145 1207
1146 checkUnnamed123(core.List<api.Message> o) { 1208 checkUnnamed126(core.List<api.Message> o) {
1147 unittest.expect(o, unittest.hasLength(2)); 1209 unittest.expect(o, unittest.hasLength(2));
1148 checkMessage(o[0]); 1210 checkMessage(o[0]);
1149 checkMessage(o[1]); 1211 checkMessage(o[1]);
1150 } 1212 }
1151 1213
1152 core.int buildCounterThread = 0; 1214 core.int buildCounterThread = 0;
1153 buildThread() { 1215 buildThread() {
1154 var o = new api.Thread(); 1216 var o = new api.Thread();
1155 buildCounterThread++; 1217 buildCounterThread++;
1156 if (buildCounterThread < 3) { 1218 if (buildCounterThread < 3) {
1157 o.historyId = "foo"; 1219 o.historyId = "foo";
1158 o.id = "foo"; 1220 o.id = "foo";
1159 o.messages = buildUnnamed123(); 1221 o.messages = buildUnnamed126();
1160 o.snippet = "foo"; 1222 o.snippet = "foo";
1161 } 1223 }
1162 buildCounterThread--; 1224 buildCounterThread--;
1163 return o; 1225 return o;
1164 } 1226 }
1165 1227
1166 checkThread(api.Thread o) { 1228 checkThread(api.Thread o) {
1167 buildCounterThread++; 1229 buildCounterThread++;
1168 if (buildCounterThread < 3) { 1230 if (buildCounterThread < 3) {
1169 unittest.expect(o.historyId, unittest.equals('foo')); 1231 unittest.expect(o.historyId, unittest.equals('foo'));
1170 unittest.expect(o.id, unittest.equals('foo')); 1232 unittest.expect(o.id, unittest.equals('foo'));
1171 checkUnnamed123(o.messages); 1233 checkUnnamed126(o.messages);
1172 unittest.expect(o.snippet, unittest.equals('foo')); 1234 unittest.expect(o.snippet, unittest.equals('foo'));
1173 } 1235 }
1174 buildCounterThread--; 1236 buildCounterThread--;
1175 } 1237 }
1176 1238
1177 core.int buildCounterVacationSettings = 0; 1239 core.int buildCounterVacationSettings = 0;
1178 buildVacationSettings() { 1240 buildVacationSettings() {
1179 var o = new api.VacationSettings(); 1241 var o = new api.VacationSettings();
1180 buildCounterVacationSettings++; 1242 buildCounterVacationSettings++;
1181 if (buildCounterVacationSettings < 3) { 1243 if (buildCounterVacationSettings < 3) {
(...skipping 18 matching lines...) Expand all
1200 unittest.expect(o.responseBodyHtml, unittest.equals('foo')); 1262 unittest.expect(o.responseBodyHtml, unittest.equals('foo'));
1201 unittest.expect(o.responseBodyPlainText, unittest.equals('foo')); 1263 unittest.expect(o.responseBodyPlainText, unittest.equals('foo'));
1202 unittest.expect(o.responseSubject, unittest.equals('foo')); 1264 unittest.expect(o.responseSubject, unittest.equals('foo'));
1203 unittest.expect(o.restrictToContacts, unittest.isTrue); 1265 unittest.expect(o.restrictToContacts, unittest.isTrue);
1204 unittest.expect(o.restrictToDomain, unittest.isTrue); 1266 unittest.expect(o.restrictToDomain, unittest.isTrue);
1205 unittest.expect(o.startTime, unittest.equals('foo')); 1267 unittest.expect(o.startTime, unittest.equals('foo'));
1206 } 1268 }
1207 buildCounterVacationSettings--; 1269 buildCounterVacationSettings--;
1208 } 1270 }
1209 1271
1210 buildUnnamed124() { 1272 buildUnnamed127() {
1211 var o = new core.List<core.String>(); 1273 var o = new core.List<core.String>();
1212 o.add("foo"); 1274 o.add("foo");
1213 o.add("foo"); 1275 o.add("foo");
1214 return o; 1276 return o;
1215 } 1277 }
1216 1278
1217 checkUnnamed124(core.List<core.String> o) { 1279 checkUnnamed127(core.List<core.String> o) {
1218 unittest.expect(o, unittest.hasLength(2)); 1280 unittest.expect(o, unittest.hasLength(2));
1219 unittest.expect(o[0], unittest.equals('foo')); 1281 unittest.expect(o[0], unittest.equals('foo'));
1220 unittest.expect(o[1], unittest.equals('foo')); 1282 unittest.expect(o[1], unittest.equals('foo'));
1221 } 1283 }
1222 1284
1223 core.int buildCounterWatchRequest = 0; 1285 core.int buildCounterWatchRequest = 0;
1224 buildWatchRequest() { 1286 buildWatchRequest() {
1225 var o = new api.WatchRequest(); 1287 var o = new api.WatchRequest();
1226 buildCounterWatchRequest++; 1288 buildCounterWatchRequest++;
1227 if (buildCounterWatchRequest < 3) { 1289 if (buildCounterWatchRequest < 3) {
1228 o.labelFilterAction = "foo"; 1290 o.labelFilterAction = "foo";
1229 o.labelIds = buildUnnamed124(); 1291 o.labelIds = buildUnnamed127();
1230 o.topicName = "foo"; 1292 o.topicName = "foo";
1231 } 1293 }
1232 buildCounterWatchRequest--; 1294 buildCounterWatchRequest--;
1233 return o; 1295 return o;
1234 } 1296 }
1235 1297
1236 checkWatchRequest(api.WatchRequest o) { 1298 checkWatchRequest(api.WatchRequest o) {
1237 buildCounterWatchRequest++; 1299 buildCounterWatchRequest++;
1238 if (buildCounterWatchRequest < 3) { 1300 if (buildCounterWatchRequest < 3) {
1239 unittest.expect(o.labelFilterAction, unittest.equals('foo')); 1301 unittest.expect(o.labelFilterAction, unittest.equals('foo'));
1240 checkUnnamed124(o.labelIds); 1302 checkUnnamed127(o.labelIds);
1241 unittest.expect(o.topicName, unittest.equals('foo')); 1303 unittest.expect(o.topicName, unittest.equals('foo'));
1242 } 1304 }
1243 buildCounterWatchRequest--; 1305 buildCounterWatchRequest--;
1244 } 1306 }
1245 1307
1246 core.int buildCounterWatchResponse = 0; 1308 core.int buildCounterWatchResponse = 0;
1247 buildWatchResponse() { 1309 buildWatchResponse() {
1248 var o = new api.WatchResponse(); 1310 var o = new api.WatchResponse();
1249 buildCounterWatchResponse++; 1311 buildCounterWatchResponse++;
1250 if (buildCounterWatchResponse < 3) { 1312 if (buildCounterWatchResponse < 3) {
1251 o.expiration = "foo"; 1313 o.expiration = "foo";
1252 o.historyId = "foo"; 1314 o.historyId = "foo";
1253 } 1315 }
1254 buildCounterWatchResponse--; 1316 buildCounterWatchResponse--;
1255 return o; 1317 return o;
1256 } 1318 }
1257 1319
1258 checkWatchResponse(api.WatchResponse o) { 1320 checkWatchResponse(api.WatchResponse o) {
1259 buildCounterWatchResponse++; 1321 buildCounterWatchResponse++;
1260 if (buildCounterWatchResponse < 3) { 1322 if (buildCounterWatchResponse < 3) {
1261 unittest.expect(o.expiration, unittest.equals('foo')); 1323 unittest.expect(o.expiration, unittest.equals('foo'));
1262 unittest.expect(o.historyId, unittest.equals('foo')); 1324 unittest.expect(o.historyId, unittest.equals('foo'));
1263 } 1325 }
1264 buildCounterWatchResponse--; 1326 buildCounterWatchResponse--;
1265 } 1327 }
1266 1328
1267 buildUnnamed125() {
1268 var o = new core.List<core.String>();
1269 o.add("foo");
1270 o.add("foo");
1271 return o;
1272 }
1273
1274 checkUnnamed125(core.List<core.String> o) {
1275 unittest.expect(o, unittest.hasLength(2));
1276 unittest.expect(o[0], unittest.equals('foo'));
1277 unittest.expect(o[1], unittest.equals('foo'));
1278 }
1279
1280 buildUnnamed126() {
1281 var o = new core.List<core.String>();
1282 o.add("foo");
1283 o.add("foo");
1284 return o;
1285 }
1286
1287 checkUnnamed126(core.List<core.String> o) {
1288 unittest.expect(o, unittest.hasLength(2));
1289 unittest.expect(o[0], unittest.equals('foo'));
1290 unittest.expect(o[1], unittest.equals('foo'));
1291 }
1292
1293 buildUnnamed127() {
1294 var o = new core.List<core.String>();
1295 o.add("foo");
1296 o.add("foo");
1297 return o;
1298 }
1299
1300 checkUnnamed127(core.List<core.String> o) {
1301 unittest.expect(o, unittest.hasLength(2));
1302 unittest.expect(o[0], unittest.equals('foo'));
1303 unittest.expect(o[1], unittest.equals('foo'));
1304 }
1305
1306 buildUnnamed128() { 1329 buildUnnamed128() {
1307 var o = new core.List<core.String>(); 1330 var o = new core.List<core.String>();
1308 o.add("foo"); 1331 o.add("foo");
1309 o.add("foo"); 1332 o.add("foo");
1310 return o; 1333 return o;
1311 } 1334 }
1312 1335
1313 checkUnnamed128(core.List<core.String> o) { 1336 checkUnnamed128(core.List<core.String> o) {
1314 unittest.expect(o, unittest.hasLength(2)); 1337 unittest.expect(o, unittest.hasLength(2));
1315 unittest.expect(o[0], unittest.equals('foo')); 1338 unittest.expect(o[0], unittest.equals('foo'));
1316 unittest.expect(o[1], unittest.equals('foo')); 1339 unittest.expect(o[1], unittest.equals('foo'));
1340 }
1341
1342 buildUnnamed129() {
1343 var o = new core.List<core.String>();
1344 o.add("foo");
1345 o.add("foo");
1346 return o;
1347 }
1348
1349 checkUnnamed129(core.List<core.String> o) {
1350 unittest.expect(o, unittest.hasLength(2));
1351 unittest.expect(o[0], unittest.equals('foo'));
1352 unittest.expect(o[1], unittest.equals('foo'));
1353 }
1354
1355 buildUnnamed130() {
1356 var o = new core.List<core.String>();
1357 o.add("foo");
1358 o.add("foo");
1359 return o;
1360 }
1361
1362 checkUnnamed130(core.List<core.String> o) {
1363 unittest.expect(o, unittest.hasLength(2));
1364 unittest.expect(o[0], unittest.equals('foo'));
1365 unittest.expect(o[1], unittest.equals('foo'));
1366 }
1367
1368 buildUnnamed131() {
1369 var o = new core.List<core.String>();
1370 o.add("foo");
1371 o.add("foo");
1372 return o;
1373 }
1374
1375 checkUnnamed131(core.List<core.String> o) {
1376 unittest.expect(o, unittest.hasLength(2));
1377 unittest.expect(o[0], unittest.equals('foo'));
1378 unittest.expect(o[1], unittest.equals('foo'));
1317 } 1379 }
1318 1380
1319 1381
1320 main() { 1382 main() {
1321 unittest.group("obj-schema-AutoForwarding", () { 1383 unittest.group("obj-schema-AutoForwarding", () {
1322 unittest.test("to-json--from-json", () { 1384 unittest.test("to-json--from-json", () {
1323 var o = buildAutoForwarding(); 1385 var o = buildAutoForwarding();
1324 var od = new api.AutoForwarding.fromJson(o.toJson()); 1386 var od = new api.AutoForwarding.fromJson(o.toJson());
1325 checkAutoForwarding(od); 1387 checkAutoForwarding(od);
1326 }); 1388 });
1327 }); 1389 });
1328 1390
1329 1391
1330 unittest.group("obj-schema-BatchDeleteMessagesRequest", () { 1392 unittest.group("obj-schema-BatchDeleteMessagesRequest", () {
1331 unittest.test("to-json--from-json", () { 1393 unittest.test("to-json--from-json", () {
1332 var o = buildBatchDeleteMessagesRequest(); 1394 var o = buildBatchDeleteMessagesRequest();
1333 var od = new api.BatchDeleteMessagesRequest.fromJson(o.toJson()); 1395 var od = new api.BatchDeleteMessagesRequest.fromJson(o.toJson());
1334 checkBatchDeleteMessagesRequest(od); 1396 checkBatchDeleteMessagesRequest(od);
1335 }); 1397 });
1336 }); 1398 });
1337 1399
1338 1400
1401 unittest.group("obj-schema-BatchModifyMessagesRequest", () {
1402 unittest.test("to-json--from-json", () {
1403 var o = buildBatchModifyMessagesRequest();
1404 var od = new api.BatchModifyMessagesRequest.fromJson(o.toJson());
1405 checkBatchModifyMessagesRequest(od);
1406 });
1407 });
1408
1409
1339 unittest.group("obj-schema-Draft", () { 1410 unittest.group("obj-schema-Draft", () {
1340 unittest.test("to-json--from-json", () { 1411 unittest.test("to-json--from-json", () {
1341 var o = buildDraft(); 1412 var o = buildDraft();
1342 var od = new api.Draft.fromJson(o.toJson()); 1413 var od = new api.Draft.fromJson(o.toJson());
1343 checkDraft(od); 1414 checkDraft(od);
1344 }); 1415 });
1345 }); 1416 });
1346 1417
1347 1418
1348 unittest.group("obj-schema-Filter", () { 1419 unittest.group("obj-schema-Filter", () {
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
2421 2492
2422 var h = { 2493 var h = {
2423 "content-type" : "application/json; charset=utf-8", 2494 "content-type" : "application/json; charset=utf-8",
2424 }; 2495 };
2425 var resp = ""; 2496 var resp = "";
2426 return new async.Future.value(stringResponse(200, h, resp)); 2497 return new async.Future.value(stringResponse(200, h, resp));
2427 }), true); 2498 }), true);
2428 res.batchDelete(arg_request, arg_userId).then(unittest.expectAsync((_) {}) ); 2499 res.batchDelete(arg_request, arg_userId).then(unittest.expectAsync((_) {}) );
2429 }); 2500 });
2430 2501
2502 unittest.test("method--batchModify", () {
2503
2504 var mock = new HttpServerMock();
2505 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2506 var arg_request = buildBatchModifyMessagesRequest();
2507 var arg_userId = "foo";
2508 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2509 var obj = new api.BatchModifyMessagesRequest.fromJson(json);
2510 checkBatchModifyMessagesRequest(obj);
2511
2512 var path = (req.url).path;
2513 var pathOffset = 0;
2514 var index;
2515 var subPart;
2516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2517 pathOffset += 1;
2518
2519 var query = (req.url).query;
2520 var queryOffset = 0;
2521 var queryMap = {};
2522 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2523 parseBool(n) {
2524 if (n == "true") return true;
2525 if (n == "false") return false;
2526 if (n == null) return null;
2527 throw new core.ArgumentError("Invalid boolean: $n");
2528 }
2529 if (query.length > 0) {
2530 for (var part in query.split("&")) {
2531 var keyvalue = part.split("=");
2532 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2533 }
2534 }
2535
2536
2537 var h = {
2538 "content-type" : "application/json; charset=utf-8",
2539 };
2540 var resp = "";
2541 return new async.Future.value(stringResponse(200, h, resp));
2542 }), true);
2543 res.batchModify(arg_request, arg_userId).then(unittest.expectAsync((_) {}) );
2544 });
2545
2431 unittest.test("method--delete", () { 2546 unittest.test("method--delete", () {
2432 2547
2433 var mock = new HttpServerMock(); 2548 var mock = new HttpServerMock();
2434 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; 2549 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2435 var arg_userId = "foo"; 2550 var arg_userId = "foo";
2436 var arg_id = "foo"; 2551 var arg_id = "foo";
2437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2552 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2438 var path = (req.url).path; 2553 var path = (req.url).path;
2439 var pathOffset = 0; 2554 var pathOffset = 0;
2440 var index; 2555 var index;
(...skipping 28 matching lines...) Expand all
2469 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {})); 2584 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {}));
2470 }); 2585 });
2471 2586
2472 unittest.test("method--get", () { 2587 unittest.test("method--get", () {
2473 2588
2474 var mock = new HttpServerMock(); 2589 var mock = new HttpServerMock();
2475 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; 2590 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2476 var arg_userId = "foo"; 2591 var arg_userId = "foo";
2477 var arg_id = "foo"; 2592 var arg_id = "foo";
2478 var arg_format = "foo"; 2593 var arg_format = "foo";
2479 var arg_metadataHeaders = buildUnnamed125(); 2594 var arg_metadataHeaders = buildUnnamed128();
2480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2595 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2481 var path = (req.url).path; 2596 var path = (req.url).path;
2482 var pathOffset = 0; 2597 var pathOffset = 0;
2483 var index; 2598 var index;
2484 var subPart; 2599 var subPart;
2485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2600 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2486 pathOffset += 1; 2601 pathOffset += 1;
2487 2602
2488 var query = (req.url).query; 2603 var query = (req.url).query;
2489 var queryOffset = 0; 2604 var queryOffset = 0;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 checkMessage(response); 2738 checkMessage(response);
2624 }))); 2739 })));
2625 }); 2740 });
2626 2741
2627 unittest.test("method--list", () { 2742 unittest.test("method--list", () {
2628 2743
2629 var mock = new HttpServerMock(); 2744 var mock = new HttpServerMock();
2630 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; 2745 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2631 var arg_userId = "foo"; 2746 var arg_userId = "foo";
2632 var arg_includeSpamTrash = true; 2747 var arg_includeSpamTrash = true;
2633 var arg_labelIds = buildUnnamed126(); 2748 var arg_labelIds = buildUnnamed129();
2634 var arg_maxResults = 42; 2749 var arg_maxResults = 42;
2635 var arg_pageToken = "foo"; 2750 var arg_pageToken = "foo";
2636 var arg_q = "foo"; 2751 var arg_q = "foo";
2637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2752 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2638 var path = (req.url).path; 2753 var path = (req.url).path;
2639 var pathOffset = 0; 2754 var pathOffset = 0;
2640 var index; 2755 var index;
2641 var subPart; 2756 var subPart;
2642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2643 pathOffset += 1; 2758 pathOffset += 1;
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
3969 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {})); 4084 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {}));
3970 }); 4085 });
3971 4086
3972 unittest.test("method--get", () { 4087 unittest.test("method--get", () {
3973 4088
3974 var mock = new HttpServerMock(); 4089 var mock = new HttpServerMock();
3975 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; 4090 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
3976 var arg_userId = "foo"; 4091 var arg_userId = "foo";
3977 var arg_id = "foo"; 4092 var arg_id = "foo";
3978 var arg_format = "foo"; 4093 var arg_format = "foo";
3979 var arg_metadataHeaders = buildUnnamed127(); 4094 var arg_metadataHeaders = buildUnnamed130();
3980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4095 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3981 var path = (req.url).path; 4096 var path = (req.url).path;
3982 var pathOffset = 0; 4097 var pathOffset = 0;
3983 var index; 4098 var index;
3984 var subPart; 4099 var subPart;
3985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4100 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3986 pathOffset += 1; 4101 pathOffset += 1;
3987 4102
3988 var query = (req.url).query; 4103 var query = (req.url).query;
3989 var queryOffset = 0; 4104 var queryOffset = 0;
(...skipping 25 matching lines...) Expand all
4015 checkThread(response); 4130 checkThread(response);
4016 }))); 4131 })));
4017 }); 4132 });
4018 4133
4019 unittest.test("method--list", () { 4134 unittest.test("method--list", () {
4020 4135
4021 var mock = new HttpServerMock(); 4136 var mock = new HttpServerMock();
4022 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; 4137 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
4023 var arg_userId = "foo"; 4138 var arg_userId = "foo";
4024 var arg_includeSpamTrash = true; 4139 var arg_includeSpamTrash = true;
4025 var arg_labelIds = buildUnnamed128(); 4140 var arg_labelIds = buildUnnamed131();
4026 var arg_maxResults = 42; 4141 var arg_maxResults = 42;
4027 var arg_pageToken = "foo"; 4142 var arg_pageToken = "foo";
4028 var arg_q = "foo"; 4143 var arg_q = "foo";
4029 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4144 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4030 var path = (req.url).path; 4145 var path = (req.url).path;
4031 var pathOffset = 0; 4146 var pathOffset = 0;
4032 var index; 4147 var index;
4033 var subPart; 4148 var subPart;
4034 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4035 pathOffset += 1; 4150 pathOffset += 1;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
4199 res.untrash(arg_userId, arg_id).then(unittest.expectAsync(((api.Thread res ponse) { 4314 res.untrash(arg_userId, arg_id).then(unittest.expectAsync(((api.Thread res ponse) {
4200 checkThread(response); 4315 checkThread(response);
4201 }))); 4316 })));
4202 }); 4317 });
4203 4318
4204 }); 4319 });
4205 4320
4206 4321
4207 } 4322 }
4208 4323
OLDNEW
« no previous file with comments | « generated/googleapis/test/genomics/v1_test.dart ('k') | generated/googleapis/test/iam/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698