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

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

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 checkAutoForwarding(api.AutoForwarding o) { 67 checkAutoForwarding(api.AutoForwarding o) {
68 buildCounterAutoForwarding++; 68 buildCounterAutoForwarding++;
69 if (buildCounterAutoForwarding < 3) { 69 if (buildCounterAutoForwarding < 3) {
70 unittest.expect(o.disposition, unittest.equals('foo')); 70 unittest.expect(o.disposition, unittest.equals('foo'));
71 unittest.expect(o.emailAddress, unittest.equals('foo')); 71 unittest.expect(o.emailAddress, unittest.equals('foo'));
72 unittest.expect(o.enabled, unittest.isTrue); 72 unittest.expect(o.enabled, unittest.isTrue);
73 } 73 }
74 buildCounterAutoForwarding--; 74 buildCounterAutoForwarding--;
75 } 75 }
76 76
77 buildUnnamed2740() { 77 buildUnnamed98() {
78 var o = new core.List<core.String>(); 78 var o = new core.List<core.String>();
79 o.add("foo"); 79 o.add("foo");
80 o.add("foo"); 80 o.add("foo");
81 return o; 81 return o;
82 } 82 }
83 83
84 checkUnnamed2740(core.List<core.String> o) { 84 checkUnnamed98(core.List<core.String> o) {
85 unittest.expect(o, unittest.hasLength(2)); 85 unittest.expect(o, unittest.hasLength(2));
86 unittest.expect(o[0], unittest.equals('foo')); 86 unittest.expect(o[0], unittest.equals('foo'));
87 unittest.expect(o[1], unittest.equals('foo')); 87 unittest.expect(o[1], unittest.equals('foo'));
88 } 88 }
89 89
90 core.int buildCounterBatchDeleteMessagesRequest = 0; 90 core.int buildCounterBatchDeleteMessagesRequest = 0;
91 buildBatchDeleteMessagesRequest() { 91 buildBatchDeleteMessagesRequest() {
92 var o = new api.BatchDeleteMessagesRequest(); 92 var o = new api.BatchDeleteMessagesRequest();
93 buildCounterBatchDeleteMessagesRequest++; 93 buildCounterBatchDeleteMessagesRequest++;
94 if (buildCounterBatchDeleteMessagesRequest < 3) { 94 if (buildCounterBatchDeleteMessagesRequest < 3) {
95 o.ids = buildUnnamed2740(); 95 o.ids = buildUnnamed98();
96 } 96 }
97 buildCounterBatchDeleteMessagesRequest--; 97 buildCounterBatchDeleteMessagesRequest--;
98 return o; 98 return o;
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 checkUnnamed2740(o.ids); 104 checkUnnamed98(o.ids);
105 } 105 }
106 buildCounterBatchDeleteMessagesRequest--; 106 buildCounterBatchDeleteMessagesRequest--;
107 } 107 }
108 108
109 core.int buildCounterDraft = 0; 109 core.int buildCounterDraft = 0;
110 buildDraft() { 110 buildDraft() {
111 var o = new api.Draft(); 111 var o = new api.Draft();
112 buildCounterDraft++; 112 buildCounterDraft++;
113 if (buildCounterDraft < 3) { 113 if (buildCounterDraft < 3) {
114 o.id = "foo"; 114 o.id = "foo";
(...skipping 28 matching lines...) Expand all
143 checkFilter(api.Filter o) { 143 checkFilter(api.Filter o) {
144 buildCounterFilter++; 144 buildCounterFilter++;
145 if (buildCounterFilter < 3) { 145 if (buildCounterFilter < 3) {
146 checkFilterAction(o.action); 146 checkFilterAction(o.action);
147 checkFilterCriteria(o.criteria); 147 checkFilterCriteria(o.criteria);
148 unittest.expect(o.id, unittest.equals('foo')); 148 unittest.expect(o.id, unittest.equals('foo'));
149 } 149 }
150 buildCounterFilter--; 150 buildCounterFilter--;
151 } 151 }
152 152
153 buildUnnamed2741() { 153 buildUnnamed99() {
154 var o = new core.List<core.String>(); 154 var o = new core.List<core.String>();
155 o.add("foo"); 155 o.add("foo");
156 o.add("foo"); 156 o.add("foo");
157 return o; 157 return o;
158 } 158 }
159 159
160 checkUnnamed2741(core.List<core.String> o) { 160 checkUnnamed99(core.List<core.String> o) {
161 unittest.expect(o, unittest.hasLength(2)); 161 unittest.expect(o, unittest.hasLength(2));
162 unittest.expect(o[0], unittest.equals('foo')); 162 unittest.expect(o[0], unittest.equals('foo'));
163 unittest.expect(o[1], unittest.equals('foo')); 163 unittest.expect(o[1], unittest.equals('foo'));
164 } 164 }
165 165
166 buildUnnamed2742() { 166 buildUnnamed100() {
167 var o = new core.List<core.String>(); 167 var o = new core.List<core.String>();
168 o.add("foo"); 168 o.add("foo");
169 o.add("foo"); 169 o.add("foo");
170 return o; 170 return o;
171 } 171 }
172 172
173 checkUnnamed2742(core.List<core.String> o) { 173 checkUnnamed100(core.List<core.String> o) {
174 unittest.expect(o, unittest.hasLength(2)); 174 unittest.expect(o, unittest.hasLength(2));
175 unittest.expect(o[0], unittest.equals('foo')); 175 unittest.expect(o[0], unittest.equals('foo'));
176 unittest.expect(o[1], unittest.equals('foo')); 176 unittest.expect(o[1], unittest.equals('foo'));
177 } 177 }
178 178
179 core.int buildCounterFilterAction = 0; 179 core.int buildCounterFilterAction = 0;
180 buildFilterAction() { 180 buildFilterAction() {
181 var o = new api.FilterAction(); 181 var o = new api.FilterAction();
182 buildCounterFilterAction++; 182 buildCounterFilterAction++;
183 if (buildCounterFilterAction < 3) { 183 if (buildCounterFilterAction < 3) {
184 o.addLabelIds = buildUnnamed2741(); 184 o.addLabelIds = buildUnnamed99();
185 o.forward = "foo"; 185 o.forward = "foo";
186 o.removeLabelIds = buildUnnamed2742(); 186 o.removeLabelIds = buildUnnamed100();
187 } 187 }
188 buildCounterFilterAction--; 188 buildCounterFilterAction--;
189 return o; 189 return o;
190 } 190 }
191 191
192 checkFilterAction(api.FilterAction o) { 192 checkFilterAction(api.FilterAction o) {
193 buildCounterFilterAction++; 193 buildCounterFilterAction++;
194 if (buildCounterFilterAction < 3) { 194 if (buildCounterFilterAction < 3) {
195 checkUnnamed2741(o.addLabelIds); 195 checkUnnamed99(o.addLabelIds);
196 unittest.expect(o.forward, unittest.equals('foo')); 196 unittest.expect(o.forward, unittest.equals('foo'));
197 checkUnnamed2742(o.removeLabelIds); 197 checkUnnamed100(o.removeLabelIds);
198 } 198 }
199 buildCounterFilterAction--; 199 buildCounterFilterAction--;
200 } 200 }
201 201
202 core.int buildCounterFilterCriteria = 0; 202 core.int buildCounterFilterCriteria = 0;
203 buildFilterCriteria() { 203 buildFilterCriteria() {
204 var o = new api.FilterCriteria(); 204 var o = new api.FilterCriteria();
205 buildCounterFilterCriteria++; 205 buildCounterFilterCriteria++;
206 if (buildCounterFilterCriteria < 3) { 206 if (buildCounterFilterCriteria < 3) {
207 o.excludeChats = true; 207 o.excludeChats = true;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 checkForwardingAddress(api.ForwardingAddress o) { 249 checkForwardingAddress(api.ForwardingAddress o) {
250 buildCounterForwardingAddress++; 250 buildCounterForwardingAddress++;
251 if (buildCounterForwardingAddress < 3) { 251 if (buildCounterForwardingAddress < 3) {
252 unittest.expect(o.forwardingEmail, unittest.equals('foo')); 252 unittest.expect(o.forwardingEmail, unittest.equals('foo'));
253 unittest.expect(o.verificationStatus, unittest.equals('foo')); 253 unittest.expect(o.verificationStatus, unittest.equals('foo'));
254 } 254 }
255 buildCounterForwardingAddress--; 255 buildCounterForwardingAddress--;
256 } 256 }
257 257
258 buildUnnamed2743() { 258 buildUnnamed101() {
259 var o = new core.List<api.HistoryLabelAdded>(); 259 var o = new core.List<api.HistoryLabelAdded>();
260 o.add(buildHistoryLabelAdded()); 260 o.add(buildHistoryLabelAdded());
261 o.add(buildHistoryLabelAdded()); 261 o.add(buildHistoryLabelAdded());
262 return o; 262 return o;
263 } 263 }
264 264
265 checkUnnamed2743(core.List<api.HistoryLabelAdded> o) { 265 checkUnnamed101(core.List<api.HistoryLabelAdded> o) {
266 unittest.expect(o, unittest.hasLength(2)); 266 unittest.expect(o, unittest.hasLength(2));
267 checkHistoryLabelAdded(o[0]); 267 checkHistoryLabelAdded(o[0]);
268 checkHistoryLabelAdded(o[1]); 268 checkHistoryLabelAdded(o[1]);
269 } 269 }
270 270
271 buildUnnamed2744() { 271 buildUnnamed102() {
272 var o = new core.List<api.HistoryLabelRemoved>(); 272 var o = new core.List<api.HistoryLabelRemoved>();
273 o.add(buildHistoryLabelRemoved()); 273 o.add(buildHistoryLabelRemoved());
274 o.add(buildHistoryLabelRemoved()); 274 o.add(buildHistoryLabelRemoved());
275 return o; 275 return o;
276 } 276 }
277 277
278 checkUnnamed2744(core.List<api.HistoryLabelRemoved> o) { 278 checkUnnamed102(core.List<api.HistoryLabelRemoved> o) {
279 unittest.expect(o, unittest.hasLength(2)); 279 unittest.expect(o, unittest.hasLength(2));
280 checkHistoryLabelRemoved(o[0]); 280 checkHistoryLabelRemoved(o[0]);
281 checkHistoryLabelRemoved(o[1]); 281 checkHistoryLabelRemoved(o[1]);
282 } 282 }
283 283
284 buildUnnamed2745() { 284 buildUnnamed103() {
285 var o = new core.List<api.Message>(); 285 var o = new core.List<api.Message>();
286 o.add(buildMessage()); 286 o.add(buildMessage());
287 o.add(buildMessage()); 287 o.add(buildMessage());
288 return o; 288 return o;
289 } 289 }
290 290
291 checkUnnamed2745(core.List<api.Message> o) { 291 checkUnnamed103(core.List<api.Message> o) {
292 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
293 checkMessage(o[0]); 293 checkMessage(o[0]);
294 checkMessage(o[1]); 294 checkMessage(o[1]);
295 } 295 }
296 296
297 buildUnnamed2746() { 297 buildUnnamed104() {
298 var o = new core.List<api.HistoryMessageAdded>(); 298 var o = new core.List<api.HistoryMessageAdded>();
299 o.add(buildHistoryMessageAdded()); 299 o.add(buildHistoryMessageAdded());
300 o.add(buildHistoryMessageAdded()); 300 o.add(buildHistoryMessageAdded());
301 return o; 301 return o;
302 } 302 }
303 303
304 checkUnnamed2746(core.List<api.HistoryMessageAdded> o) { 304 checkUnnamed104(core.List<api.HistoryMessageAdded> o) {
305 unittest.expect(o, unittest.hasLength(2)); 305 unittest.expect(o, unittest.hasLength(2));
306 checkHistoryMessageAdded(o[0]); 306 checkHistoryMessageAdded(o[0]);
307 checkHistoryMessageAdded(o[1]); 307 checkHistoryMessageAdded(o[1]);
308 } 308 }
309 309
310 buildUnnamed2747() { 310 buildUnnamed105() {
311 var o = new core.List<api.HistoryMessageDeleted>(); 311 var o = new core.List<api.HistoryMessageDeleted>();
312 o.add(buildHistoryMessageDeleted()); 312 o.add(buildHistoryMessageDeleted());
313 o.add(buildHistoryMessageDeleted()); 313 o.add(buildHistoryMessageDeleted());
314 return o; 314 return o;
315 } 315 }
316 316
317 checkUnnamed2747(core.List<api.HistoryMessageDeleted> o) { 317 checkUnnamed105(core.List<api.HistoryMessageDeleted> o) {
318 unittest.expect(o, unittest.hasLength(2)); 318 unittest.expect(o, unittest.hasLength(2));
319 checkHistoryMessageDeleted(o[0]); 319 checkHistoryMessageDeleted(o[0]);
320 checkHistoryMessageDeleted(o[1]); 320 checkHistoryMessageDeleted(o[1]);
321 } 321 }
322 322
323 core.int buildCounterHistory = 0; 323 core.int buildCounterHistory = 0;
324 buildHistory() { 324 buildHistory() {
325 var o = new api.History(); 325 var o = new api.History();
326 buildCounterHistory++; 326 buildCounterHistory++;
327 if (buildCounterHistory < 3) { 327 if (buildCounterHistory < 3) {
328 o.id = "foo"; 328 o.id = "foo";
329 o.labelsAdded = buildUnnamed2743(); 329 o.labelsAdded = buildUnnamed101();
330 o.labelsRemoved = buildUnnamed2744(); 330 o.labelsRemoved = buildUnnamed102();
331 o.messages = buildUnnamed2745(); 331 o.messages = buildUnnamed103();
332 o.messagesAdded = buildUnnamed2746(); 332 o.messagesAdded = buildUnnamed104();
333 o.messagesDeleted = buildUnnamed2747(); 333 o.messagesDeleted = buildUnnamed105();
334 } 334 }
335 buildCounterHistory--; 335 buildCounterHistory--;
336 return o; 336 return o;
337 } 337 }
338 338
339 checkHistory(api.History o) { 339 checkHistory(api.History o) {
340 buildCounterHistory++; 340 buildCounterHistory++;
341 if (buildCounterHistory < 3) { 341 if (buildCounterHistory < 3) {
342 unittest.expect(o.id, unittest.equals('foo')); 342 unittest.expect(o.id, unittest.equals('foo'));
343 checkUnnamed2743(o.labelsAdded); 343 checkUnnamed101(o.labelsAdded);
344 checkUnnamed2744(o.labelsRemoved); 344 checkUnnamed102(o.labelsRemoved);
345 checkUnnamed2745(o.messages); 345 checkUnnamed103(o.messages);
346 checkUnnamed2746(o.messagesAdded); 346 checkUnnamed104(o.messagesAdded);
347 checkUnnamed2747(o.messagesDeleted); 347 checkUnnamed105(o.messagesDeleted);
348 } 348 }
349 buildCounterHistory--; 349 buildCounterHistory--;
350 } 350 }
351 351
352 buildUnnamed2748() { 352 buildUnnamed106() {
353 var o = new core.List<core.String>(); 353 var o = new core.List<core.String>();
354 o.add("foo"); 354 o.add("foo");
355 o.add("foo"); 355 o.add("foo");
356 return o; 356 return o;
357 } 357 }
358 358
359 checkUnnamed2748(core.List<core.String> o) { 359 checkUnnamed106(core.List<core.String> o) {
360 unittest.expect(o, unittest.hasLength(2)); 360 unittest.expect(o, unittest.hasLength(2));
361 unittest.expect(o[0], unittest.equals('foo')); 361 unittest.expect(o[0], unittest.equals('foo'));
362 unittest.expect(o[1], unittest.equals('foo')); 362 unittest.expect(o[1], unittest.equals('foo'));
363 } 363 }
364 364
365 core.int buildCounterHistoryLabelAdded = 0; 365 core.int buildCounterHistoryLabelAdded = 0;
366 buildHistoryLabelAdded() { 366 buildHistoryLabelAdded() {
367 var o = new api.HistoryLabelAdded(); 367 var o = new api.HistoryLabelAdded();
368 buildCounterHistoryLabelAdded++; 368 buildCounterHistoryLabelAdded++;
369 if (buildCounterHistoryLabelAdded < 3) { 369 if (buildCounterHistoryLabelAdded < 3) {
370 o.labelIds = buildUnnamed2748(); 370 o.labelIds = buildUnnamed106();
371 o.message = buildMessage(); 371 o.message = buildMessage();
372 } 372 }
373 buildCounterHistoryLabelAdded--; 373 buildCounterHistoryLabelAdded--;
374 return o; 374 return o;
375 } 375 }
376 376
377 checkHistoryLabelAdded(api.HistoryLabelAdded o) { 377 checkHistoryLabelAdded(api.HistoryLabelAdded o) {
378 buildCounterHistoryLabelAdded++; 378 buildCounterHistoryLabelAdded++;
379 if (buildCounterHistoryLabelAdded < 3) { 379 if (buildCounterHistoryLabelAdded < 3) {
380 checkUnnamed2748(o.labelIds); 380 checkUnnamed106(o.labelIds);
381 checkMessage(o.message); 381 checkMessage(o.message);
382 } 382 }
383 buildCounterHistoryLabelAdded--; 383 buildCounterHistoryLabelAdded--;
384 } 384 }
385 385
386 buildUnnamed2749() { 386 buildUnnamed107() {
387 var o = new core.List<core.String>(); 387 var o = new core.List<core.String>();
388 o.add("foo"); 388 o.add("foo");
389 o.add("foo"); 389 o.add("foo");
390 return o; 390 return o;
391 } 391 }
392 392
393 checkUnnamed2749(core.List<core.String> o) { 393 checkUnnamed107(core.List<core.String> o) {
394 unittest.expect(o, unittest.hasLength(2)); 394 unittest.expect(o, unittest.hasLength(2));
395 unittest.expect(o[0], unittest.equals('foo')); 395 unittest.expect(o[0], unittest.equals('foo'));
396 unittest.expect(o[1], unittest.equals('foo')); 396 unittest.expect(o[1], unittest.equals('foo'));
397 } 397 }
398 398
399 core.int buildCounterHistoryLabelRemoved = 0; 399 core.int buildCounterHistoryLabelRemoved = 0;
400 buildHistoryLabelRemoved() { 400 buildHistoryLabelRemoved() {
401 var o = new api.HistoryLabelRemoved(); 401 var o = new api.HistoryLabelRemoved();
402 buildCounterHistoryLabelRemoved++; 402 buildCounterHistoryLabelRemoved++;
403 if (buildCounterHistoryLabelRemoved < 3) { 403 if (buildCounterHistoryLabelRemoved < 3) {
404 o.labelIds = buildUnnamed2749(); 404 o.labelIds = buildUnnamed107();
405 o.message = buildMessage(); 405 o.message = buildMessage();
406 } 406 }
407 buildCounterHistoryLabelRemoved--; 407 buildCounterHistoryLabelRemoved--;
408 return o; 408 return o;
409 } 409 }
410 410
411 checkHistoryLabelRemoved(api.HistoryLabelRemoved o) { 411 checkHistoryLabelRemoved(api.HistoryLabelRemoved o) {
412 buildCounterHistoryLabelRemoved++; 412 buildCounterHistoryLabelRemoved++;
413 if (buildCounterHistoryLabelRemoved < 3) { 413 if (buildCounterHistoryLabelRemoved < 3) {
414 checkUnnamed2749(o.labelIds); 414 checkUnnamed107(o.labelIds);
415 checkMessage(o.message); 415 checkMessage(o.message);
416 } 416 }
417 buildCounterHistoryLabelRemoved--; 417 buildCounterHistoryLabelRemoved--;
418 } 418 }
419 419
420 core.int buildCounterHistoryMessageAdded = 0; 420 core.int buildCounterHistoryMessageAdded = 0;
421 buildHistoryMessageAdded() { 421 buildHistoryMessageAdded() {
422 var o = new api.HistoryMessageAdded(); 422 var o = new api.HistoryMessageAdded();
423 buildCounterHistoryMessageAdded++; 423 buildCounterHistoryMessageAdded++;
424 if (buildCounterHistoryMessageAdded < 3) { 424 if (buildCounterHistoryMessageAdded < 3) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 unittest.expect(o.messagesTotal, unittest.equals(42)); 508 unittest.expect(o.messagesTotal, unittest.equals(42));
509 unittest.expect(o.messagesUnread, unittest.equals(42)); 509 unittest.expect(o.messagesUnread, unittest.equals(42));
510 unittest.expect(o.name, unittest.equals('foo')); 510 unittest.expect(o.name, unittest.equals('foo'));
511 unittest.expect(o.threadsTotal, unittest.equals(42)); 511 unittest.expect(o.threadsTotal, unittest.equals(42));
512 unittest.expect(o.threadsUnread, unittest.equals(42)); 512 unittest.expect(o.threadsUnread, unittest.equals(42));
513 unittest.expect(o.type, unittest.equals('foo')); 513 unittest.expect(o.type, unittest.equals('foo'));
514 } 514 }
515 buildCounterLabel--; 515 buildCounterLabel--;
516 } 516 }
517 517
518 buildUnnamed2750() { 518 buildUnnamed108() {
519 var o = new core.List<api.Draft>(); 519 var o = new core.List<api.Draft>();
520 o.add(buildDraft()); 520 o.add(buildDraft());
521 o.add(buildDraft()); 521 o.add(buildDraft());
522 return o; 522 return o;
523 } 523 }
524 524
525 checkUnnamed2750(core.List<api.Draft> o) { 525 checkUnnamed108(core.List<api.Draft> o) {
526 unittest.expect(o, unittest.hasLength(2)); 526 unittest.expect(o, unittest.hasLength(2));
527 checkDraft(o[0]); 527 checkDraft(o[0]);
528 checkDraft(o[1]); 528 checkDraft(o[1]);
529 } 529 }
530 530
531 core.int buildCounterListDraftsResponse = 0; 531 core.int buildCounterListDraftsResponse = 0;
532 buildListDraftsResponse() { 532 buildListDraftsResponse() {
533 var o = new api.ListDraftsResponse(); 533 var o = new api.ListDraftsResponse();
534 buildCounterListDraftsResponse++; 534 buildCounterListDraftsResponse++;
535 if (buildCounterListDraftsResponse < 3) { 535 if (buildCounterListDraftsResponse < 3) {
536 o.drafts = buildUnnamed2750(); 536 o.drafts = buildUnnamed108();
537 o.nextPageToken = "foo"; 537 o.nextPageToken = "foo";
538 o.resultSizeEstimate = 42; 538 o.resultSizeEstimate = 42;
539 } 539 }
540 buildCounterListDraftsResponse--; 540 buildCounterListDraftsResponse--;
541 return o; 541 return o;
542 } 542 }
543 543
544 checkListDraftsResponse(api.ListDraftsResponse o) { 544 checkListDraftsResponse(api.ListDraftsResponse o) {
545 buildCounterListDraftsResponse++; 545 buildCounterListDraftsResponse++;
546 if (buildCounterListDraftsResponse < 3) { 546 if (buildCounterListDraftsResponse < 3) {
547 checkUnnamed2750(o.drafts); 547 checkUnnamed108(o.drafts);
548 unittest.expect(o.nextPageToken, unittest.equals('foo')); 548 unittest.expect(o.nextPageToken, unittest.equals('foo'));
549 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 549 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
550 } 550 }
551 buildCounterListDraftsResponse--; 551 buildCounterListDraftsResponse--;
552 } 552 }
553 553
554 buildUnnamed2751() { 554 buildUnnamed109() {
555 var o = new core.List<api.Filter>(); 555 var o = new core.List<api.Filter>();
556 o.add(buildFilter()); 556 o.add(buildFilter());
557 o.add(buildFilter()); 557 o.add(buildFilter());
558 return o; 558 return o;
559 } 559 }
560 560
561 checkUnnamed2751(core.List<api.Filter> o) { 561 checkUnnamed109(core.List<api.Filter> o) {
562 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
563 checkFilter(o[0]); 563 checkFilter(o[0]);
564 checkFilter(o[1]); 564 checkFilter(o[1]);
565 } 565 }
566 566
567 core.int buildCounterListFiltersResponse = 0; 567 core.int buildCounterListFiltersResponse = 0;
568 buildListFiltersResponse() { 568 buildListFiltersResponse() {
569 var o = new api.ListFiltersResponse(); 569 var o = new api.ListFiltersResponse();
570 buildCounterListFiltersResponse++; 570 buildCounterListFiltersResponse++;
571 if (buildCounterListFiltersResponse < 3) { 571 if (buildCounterListFiltersResponse < 3) {
572 o.filter = buildUnnamed2751(); 572 o.filter = buildUnnamed109();
573 } 573 }
574 buildCounterListFiltersResponse--; 574 buildCounterListFiltersResponse--;
575 return o; 575 return o;
576 } 576 }
577 577
578 checkListFiltersResponse(api.ListFiltersResponse o) { 578 checkListFiltersResponse(api.ListFiltersResponse o) {
579 buildCounterListFiltersResponse++; 579 buildCounterListFiltersResponse++;
580 if (buildCounterListFiltersResponse < 3) { 580 if (buildCounterListFiltersResponse < 3) {
581 checkUnnamed2751(o.filter); 581 checkUnnamed109(o.filter);
582 } 582 }
583 buildCounterListFiltersResponse--; 583 buildCounterListFiltersResponse--;
584 } 584 }
585 585
586 buildUnnamed2752() { 586 buildUnnamed110() {
587 var o = new core.List<api.ForwardingAddress>(); 587 var o = new core.List<api.ForwardingAddress>();
588 o.add(buildForwardingAddress()); 588 o.add(buildForwardingAddress());
589 o.add(buildForwardingAddress()); 589 o.add(buildForwardingAddress());
590 return o; 590 return o;
591 } 591 }
592 592
593 checkUnnamed2752(core.List<api.ForwardingAddress> o) { 593 checkUnnamed110(core.List<api.ForwardingAddress> o) {
594 unittest.expect(o, unittest.hasLength(2)); 594 unittest.expect(o, unittest.hasLength(2));
595 checkForwardingAddress(o[0]); 595 checkForwardingAddress(o[0]);
596 checkForwardingAddress(o[1]); 596 checkForwardingAddress(o[1]);
597 } 597 }
598 598
599 core.int buildCounterListForwardingAddressesResponse = 0; 599 core.int buildCounterListForwardingAddressesResponse = 0;
600 buildListForwardingAddressesResponse() { 600 buildListForwardingAddressesResponse() {
601 var o = new api.ListForwardingAddressesResponse(); 601 var o = new api.ListForwardingAddressesResponse();
602 buildCounterListForwardingAddressesResponse++; 602 buildCounterListForwardingAddressesResponse++;
603 if (buildCounterListForwardingAddressesResponse < 3) { 603 if (buildCounterListForwardingAddressesResponse < 3) {
604 o.forwardingAddresses = buildUnnamed2752(); 604 o.forwardingAddresses = buildUnnamed110();
605 } 605 }
606 buildCounterListForwardingAddressesResponse--; 606 buildCounterListForwardingAddressesResponse--;
607 return o; 607 return o;
608 } 608 }
609 609
610 checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) { 610 checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) {
611 buildCounterListForwardingAddressesResponse++; 611 buildCounterListForwardingAddressesResponse++;
612 if (buildCounterListForwardingAddressesResponse < 3) { 612 if (buildCounterListForwardingAddressesResponse < 3) {
613 checkUnnamed2752(o.forwardingAddresses); 613 checkUnnamed110(o.forwardingAddresses);
614 } 614 }
615 buildCounterListForwardingAddressesResponse--; 615 buildCounterListForwardingAddressesResponse--;
616 } 616 }
617 617
618 buildUnnamed2753() { 618 buildUnnamed111() {
619 var o = new core.List<api.History>(); 619 var o = new core.List<api.History>();
620 o.add(buildHistory()); 620 o.add(buildHistory());
621 o.add(buildHistory()); 621 o.add(buildHistory());
622 return o; 622 return o;
623 } 623 }
624 624
625 checkUnnamed2753(core.List<api.History> o) { 625 checkUnnamed111(core.List<api.History> o) {
626 unittest.expect(o, unittest.hasLength(2)); 626 unittest.expect(o, unittest.hasLength(2));
627 checkHistory(o[0]); 627 checkHistory(o[0]);
628 checkHistory(o[1]); 628 checkHistory(o[1]);
629 } 629 }
630 630
631 core.int buildCounterListHistoryResponse = 0; 631 core.int buildCounterListHistoryResponse = 0;
632 buildListHistoryResponse() { 632 buildListHistoryResponse() {
633 var o = new api.ListHistoryResponse(); 633 var o = new api.ListHistoryResponse();
634 buildCounterListHistoryResponse++; 634 buildCounterListHistoryResponse++;
635 if (buildCounterListHistoryResponse < 3) { 635 if (buildCounterListHistoryResponse < 3) {
636 o.history = buildUnnamed2753(); 636 o.history = buildUnnamed111();
637 o.historyId = "foo"; 637 o.historyId = "foo";
638 o.nextPageToken = "foo"; 638 o.nextPageToken = "foo";
639 } 639 }
640 buildCounterListHistoryResponse--; 640 buildCounterListHistoryResponse--;
641 return o; 641 return o;
642 } 642 }
643 643
644 checkListHistoryResponse(api.ListHistoryResponse o) { 644 checkListHistoryResponse(api.ListHistoryResponse o) {
645 buildCounterListHistoryResponse++; 645 buildCounterListHistoryResponse++;
646 if (buildCounterListHistoryResponse < 3) { 646 if (buildCounterListHistoryResponse < 3) {
647 checkUnnamed2753(o.history); 647 checkUnnamed111(o.history);
648 unittest.expect(o.historyId, unittest.equals('foo')); 648 unittest.expect(o.historyId, unittest.equals('foo'));
649 unittest.expect(o.nextPageToken, unittest.equals('foo')); 649 unittest.expect(o.nextPageToken, unittest.equals('foo'));
650 } 650 }
651 buildCounterListHistoryResponse--; 651 buildCounterListHistoryResponse--;
652 } 652 }
653 653
654 buildUnnamed2754() { 654 buildUnnamed112() {
655 var o = new core.List<api.Label>(); 655 var o = new core.List<api.Label>();
656 o.add(buildLabel()); 656 o.add(buildLabel());
657 o.add(buildLabel()); 657 o.add(buildLabel());
658 return o; 658 return o;
659 } 659 }
660 660
661 checkUnnamed2754(core.List<api.Label> o) { 661 checkUnnamed112(core.List<api.Label> o) {
662 unittest.expect(o, unittest.hasLength(2)); 662 unittest.expect(o, unittest.hasLength(2));
663 checkLabel(o[0]); 663 checkLabel(o[0]);
664 checkLabel(o[1]); 664 checkLabel(o[1]);
665 } 665 }
666 666
667 core.int buildCounterListLabelsResponse = 0; 667 core.int buildCounterListLabelsResponse = 0;
668 buildListLabelsResponse() { 668 buildListLabelsResponse() {
669 var o = new api.ListLabelsResponse(); 669 var o = new api.ListLabelsResponse();
670 buildCounterListLabelsResponse++; 670 buildCounterListLabelsResponse++;
671 if (buildCounterListLabelsResponse < 3) { 671 if (buildCounterListLabelsResponse < 3) {
672 o.labels = buildUnnamed2754(); 672 o.labels = buildUnnamed112();
673 } 673 }
674 buildCounterListLabelsResponse--; 674 buildCounterListLabelsResponse--;
675 return o; 675 return o;
676 } 676 }
677 677
678 checkListLabelsResponse(api.ListLabelsResponse o) { 678 checkListLabelsResponse(api.ListLabelsResponse o) {
679 buildCounterListLabelsResponse++; 679 buildCounterListLabelsResponse++;
680 if (buildCounterListLabelsResponse < 3) { 680 if (buildCounterListLabelsResponse < 3) {
681 checkUnnamed2754(o.labels); 681 checkUnnamed112(o.labels);
682 } 682 }
683 buildCounterListLabelsResponse--; 683 buildCounterListLabelsResponse--;
684 } 684 }
685 685
686 buildUnnamed2755() { 686 buildUnnamed113() {
687 var o = new core.List<api.Message>(); 687 var o = new core.List<api.Message>();
688 o.add(buildMessage()); 688 o.add(buildMessage());
689 o.add(buildMessage()); 689 o.add(buildMessage());
690 return o; 690 return o;
691 } 691 }
692 692
693 checkUnnamed2755(core.List<api.Message> o) { 693 checkUnnamed113(core.List<api.Message> o) {
694 unittest.expect(o, unittest.hasLength(2)); 694 unittest.expect(o, unittest.hasLength(2));
695 checkMessage(o[0]); 695 checkMessage(o[0]);
696 checkMessage(o[1]); 696 checkMessage(o[1]);
697 } 697 }
698 698
699 core.int buildCounterListMessagesResponse = 0; 699 core.int buildCounterListMessagesResponse = 0;
700 buildListMessagesResponse() { 700 buildListMessagesResponse() {
701 var o = new api.ListMessagesResponse(); 701 var o = new api.ListMessagesResponse();
702 buildCounterListMessagesResponse++; 702 buildCounterListMessagesResponse++;
703 if (buildCounterListMessagesResponse < 3) { 703 if (buildCounterListMessagesResponse < 3) {
704 o.messages = buildUnnamed2755(); 704 o.messages = buildUnnamed113();
705 o.nextPageToken = "foo"; 705 o.nextPageToken = "foo";
706 o.resultSizeEstimate = 42; 706 o.resultSizeEstimate = 42;
707 } 707 }
708 buildCounterListMessagesResponse--; 708 buildCounterListMessagesResponse--;
709 return o; 709 return o;
710 } 710 }
711 711
712 checkListMessagesResponse(api.ListMessagesResponse o) { 712 checkListMessagesResponse(api.ListMessagesResponse o) {
713 buildCounterListMessagesResponse++; 713 buildCounterListMessagesResponse++;
714 if (buildCounterListMessagesResponse < 3) { 714 if (buildCounterListMessagesResponse < 3) {
715 checkUnnamed2755(o.messages); 715 checkUnnamed113(o.messages);
716 unittest.expect(o.nextPageToken, unittest.equals('foo')); 716 unittest.expect(o.nextPageToken, unittest.equals('foo'));
717 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 717 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
718 } 718 }
719 buildCounterListMessagesResponse--; 719 buildCounterListMessagesResponse--;
720 } 720 }
721 721
722 buildUnnamed2756() { 722 buildUnnamed114() {
723 var o = new core.List<api.SendAs>(); 723 var o = new core.List<api.SendAs>();
724 o.add(buildSendAs()); 724 o.add(buildSendAs());
725 o.add(buildSendAs()); 725 o.add(buildSendAs());
726 return o; 726 return o;
727 } 727 }
728 728
729 checkUnnamed2756(core.List<api.SendAs> o) { 729 checkUnnamed114(core.List<api.SendAs> o) {
730 unittest.expect(o, unittest.hasLength(2)); 730 unittest.expect(o, unittest.hasLength(2));
731 checkSendAs(o[0]); 731 checkSendAs(o[0]);
732 checkSendAs(o[1]); 732 checkSendAs(o[1]);
733 } 733 }
734 734
735 core.int buildCounterListSendAsResponse = 0; 735 core.int buildCounterListSendAsResponse = 0;
736 buildListSendAsResponse() { 736 buildListSendAsResponse() {
737 var o = new api.ListSendAsResponse(); 737 var o = new api.ListSendAsResponse();
738 buildCounterListSendAsResponse++; 738 buildCounterListSendAsResponse++;
739 if (buildCounterListSendAsResponse < 3) { 739 if (buildCounterListSendAsResponse < 3) {
740 o.sendAs = buildUnnamed2756(); 740 o.sendAs = buildUnnamed114();
741 } 741 }
742 buildCounterListSendAsResponse--; 742 buildCounterListSendAsResponse--;
743 return o; 743 return o;
744 } 744 }
745 745
746 checkListSendAsResponse(api.ListSendAsResponse o) { 746 checkListSendAsResponse(api.ListSendAsResponse o) {
747 buildCounterListSendAsResponse++; 747 buildCounterListSendAsResponse++;
748 if (buildCounterListSendAsResponse < 3) { 748 if (buildCounterListSendAsResponse < 3) {
749 checkUnnamed2756(o.sendAs); 749 checkUnnamed114(o.sendAs);
750 } 750 }
751 buildCounterListSendAsResponse--; 751 buildCounterListSendAsResponse--;
752 } 752 }
753 753
754 buildUnnamed2757() { 754 buildUnnamed115() {
755 var o = new core.List<api.Thread>(); 755 var o = new core.List<api.Thread>();
756 o.add(buildThread()); 756 o.add(buildThread());
757 o.add(buildThread()); 757 o.add(buildThread());
758 return o; 758 return o;
759 } 759 }
760 760
761 checkUnnamed2757(core.List<api.Thread> o) { 761 checkUnnamed115(core.List<api.Thread> o) {
762 unittest.expect(o, unittest.hasLength(2)); 762 unittest.expect(o, unittest.hasLength(2));
763 checkThread(o[0]); 763 checkThread(o[0]);
764 checkThread(o[1]); 764 checkThread(o[1]);
765 } 765 }
766 766
767 core.int buildCounterListThreadsResponse = 0; 767 core.int buildCounterListThreadsResponse = 0;
768 buildListThreadsResponse() { 768 buildListThreadsResponse() {
769 var o = new api.ListThreadsResponse(); 769 var o = new api.ListThreadsResponse();
770 buildCounterListThreadsResponse++; 770 buildCounterListThreadsResponse++;
771 if (buildCounterListThreadsResponse < 3) { 771 if (buildCounterListThreadsResponse < 3) {
772 o.nextPageToken = "foo"; 772 o.nextPageToken = "foo";
773 o.resultSizeEstimate = 42; 773 o.resultSizeEstimate = 42;
774 o.threads = buildUnnamed2757(); 774 o.threads = buildUnnamed115();
775 } 775 }
776 buildCounterListThreadsResponse--; 776 buildCounterListThreadsResponse--;
777 return o; 777 return o;
778 } 778 }
779 779
780 checkListThreadsResponse(api.ListThreadsResponse o) { 780 checkListThreadsResponse(api.ListThreadsResponse o) {
781 buildCounterListThreadsResponse++; 781 buildCounterListThreadsResponse++;
782 if (buildCounterListThreadsResponse < 3) { 782 if (buildCounterListThreadsResponse < 3) {
783 unittest.expect(o.nextPageToken, unittest.equals('foo')); 783 unittest.expect(o.nextPageToken, unittest.equals('foo'));
784 unittest.expect(o.resultSizeEstimate, unittest.equals(42)); 784 unittest.expect(o.resultSizeEstimate, unittest.equals(42));
785 checkUnnamed2757(o.threads); 785 checkUnnamed115(o.threads);
786 } 786 }
787 buildCounterListThreadsResponse--; 787 buildCounterListThreadsResponse--;
788 } 788 }
789 789
790 buildUnnamed2758() { 790 buildUnnamed116() {
791 var o = new core.List<core.String>(); 791 var o = new core.List<core.String>();
792 o.add("foo"); 792 o.add("foo");
793 o.add("foo"); 793 o.add("foo");
794 return o; 794 return o;
795 } 795 }
796 796
797 checkUnnamed2758(core.List<core.String> o) { 797 checkUnnamed116(core.List<core.String> o) {
798 unittest.expect(o, unittest.hasLength(2)); 798 unittest.expect(o, unittest.hasLength(2));
799 unittest.expect(o[0], unittest.equals('foo')); 799 unittest.expect(o[0], unittest.equals('foo'));
800 unittest.expect(o[1], unittest.equals('foo')); 800 unittest.expect(o[1], unittest.equals('foo'));
801 } 801 }
802 802
803 core.int buildCounterMessage = 0; 803 core.int buildCounterMessage = 0;
804 buildMessage() { 804 buildMessage() {
805 var o = new api.Message(); 805 var o = new api.Message();
806 buildCounterMessage++; 806 buildCounterMessage++;
807 if (buildCounterMessage < 3) { 807 if (buildCounterMessage < 3) {
808 o.historyId = "foo"; 808 o.historyId = "foo";
809 o.id = "foo"; 809 o.id = "foo";
810 o.internalDate = "foo"; 810 o.internalDate = "foo";
811 o.labelIds = buildUnnamed2758(); 811 o.labelIds = buildUnnamed116();
812 o.payload = buildMessagePart(); 812 o.payload = buildMessagePart();
813 o.raw = "foo"; 813 o.raw = "foo";
814 o.sizeEstimate = 42; 814 o.sizeEstimate = 42;
815 o.snippet = "foo"; 815 o.snippet = "foo";
816 o.threadId = "foo"; 816 o.threadId = "foo";
817 } 817 }
818 buildCounterMessage--; 818 buildCounterMessage--;
819 return o; 819 return o;
820 } 820 }
821 821
822 checkMessage(api.Message o) { 822 checkMessage(api.Message o) {
823 buildCounterMessage++; 823 buildCounterMessage++;
824 if (buildCounterMessage < 3) { 824 if (buildCounterMessage < 3) {
825 unittest.expect(o.historyId, unittest.equals('foo')); 825 unittest.expect(o.historyId, unittest.equals('foo'));
826 unittest.expect(o.id, unittest.equals('foo')); 826 unittest.expect(o.id, unittest.equals('foo'));
827 unittest.expect(o.internalDate, unittest.equals('foo')); 827 unittest.expect(o.internalDate, unittest.equals('foo'));
828 checkUnnamed2758(o.labelIds); 828 checkUnnamed116(o.labelIds);
829 checkMessagePart(o.payload); 829 checkMessagePart(o.payload);
830 unittest.expect(o.raw, unittest.equals('foo')); 830 unittest.expect(o.raw, unittest.equals('foo'));
831 unittest.expect(o.sizeEstimate, unittest.equals(42)); 831 unittest.expect(o.sizeEstimate, unittest.equals(42));
832 unittest.expect(o.snippet, unittest.equals('foo')); 832 unittest.expect(o.snippet, unittest.equals('foo'));
833 unittest.expect(o.threadId, unittest.equals('foo')); 833 unittest.expect(o.threadId, unittest.equals('foo'));
834 } 834 }
835 buildCounterMessage--; 835 buildCounterMessage--;
836 } 836 }
837 837
838 buildUnnamed2759() { 838 buildUnnamed117() {
839 var o = new core.List<api.MessagePartHeader>(); 839 var o = new core.List<api.MessagePartHeader>();
840 o.add(buildMessagePartHeader()); 840 o.add(buildMessagePartHeader());
841 o.add(buildMessagePartHeader()); 841 o.add(buildMessagePartHeader());
842 return o; 842 return o;
843 } 843 }
844 844
845 checkUnnamed2759(core.List<api.MessagePartHeader> o) { 845 checkUnnamed117(core.List<api.MessagePartHeader> o) {
846 unittest.expect(o, unittest.hasLength(2)); 846 unittest.expect(o, unittest.hasLength(2));
847 checkMessagePartHeader(o[0]); 847 checkMessagePartHeader(o[0]);
848 checkMessagePartHeader(o[1]); 848 checkMessagePartHeader(o[1]);
849 } 849 }
850 850
851 buildUnnamed2760() { 851 buildUnnamed118() {
852 var o = new core.List<api.MessagePart>(); 852 var o = new core.List<api.MessagePart>();
853 o.add(buildMessagePart()); 853 o.add(buildMessagePart());
854 o.add(buildMessagePart()); 854 o.add(buildMessagePart());
855 return o; 855 return o;
856 } 856 }
857 857
858 checkUnnamed2760(core.List<api.MessagePart> o) { 858 checkUnnamed118(core.List<api.MessagePart> o) {
859 unittest.expect(o, unittest.hasLength(2)); 859 unittest.expect(o, unittest.hasLength(2));
860 checkMessagePart(o[0]); 860 checkMessagePart(o[0]);
861 checkMessagePart(o[1]); 861 checkMessagePart(o[1]);
862 } 862 }
863 863
864 core.int buildCounterMessagePart = 0; 864 core.int buildCounterMessagePart = 0;
865 buildMessagePart() { 865 buildMessagePart() {
866 var o = new api.MessagePart(); 866 var o = new api.MessagePart();
867 buildCounterMessagePart++; 867 buildCounterMessagePart++;
868 if (buildCounterMessagePart < 3) { 868 if (buildCounterMessagePart < 3) {
869 o.body = buildMessagePartBody(); 869 o.body = buildMessagePartBody();
870 o.filename = "foo"; 870 o.filename = "foo";
871 o.headers = buildUnnamed2759(); 871 o.headers = buildUnnamed117();
872 o.mimeType = "foo"; 872 o.mimeType = "foo";
873 o.partId = "foo"; 873 o.partId = "foo";
874 o.parts = buildUnnamed2760(); 874 o.parts = buildUnnamed118();
875 } 875 }
876 buildCounterMessagePart--; 876 buildCounterMessagePart--;
877 return o; 877 return o;
878 } 878 }
879 879
880 checkMessagePart(api.MessagePart o) { 880 checkMessagePart(api.MessagePart o) {
881 buildCounterMessagePart++; 881 buildCounterMessagePart++;
882 if (buildCounterMessagePart < 3) { 882 if (buildCounterMessagePart < 3) {
883 checkMessagePartBody(o.body); 883 checkMessagePartBody(o.body);
884 unittest.expect(o.filename, unittest.equals('foo')); 884 unittest.expect(o.filename, unittest.equals('foo'));
885 checkUnnamed2759(o.headers); 885 checkUnnamed117(o.headers);
886 unittest.expect(o.mimeType, unittest.equals('foo')); 886 unittest.expect(o.mimeType, unittest.equals('foo'));
887 unittest.expect(o.partId, unittest.equals('foo')); 887 unittest.expect(o.partId, unittest.equals('foo'));
888 checkUnnamed2760(o.parts); 888 checkUnnamed118(o.parts);
889 } 889 }
890 buildCounterMessagePart--; 890 buildCounterMessagePart--;
891 } 891 }
892 892
893 core.int buildCounterMessagePartBody = 0; 893 core.int buildCounterMessagePartBody = 0;
894 buildMessagePartBody() { 894 buildMessagePartBody() {
895 var o = new api.MessagePartBody(); 895 var o = new api.MessagePartBody();
896 buildCounterMessagePartBody++; 896 buildCounterMessagePartBody++;
897 if (buildCounterMessagePartBody < 3) { 897 if (buildCounterMessagePartBody < 3) {
898 o.attachmentId = "foo"; 898 o.attachmentId = "foo";
(...skipping 28 matching lines...) Expand all
927 927
928 checkMessagePartHeader(api.MessagePartHeader o) { 928 checkMessagePartHeader(api.MessagePartHeader o) {
929 buildCounterMessagePartHeader++; 929 buildCounterMessagePartHeader++;
930 if (buildCounterMessagePartHeader < 3) { 930 if (buildCounterMessagePartHeader < 3) {
931 unittest.expect(o.name, unittest.equals('foo')); 931 unittest.expect(o.name, unittest.equals('foo'));
932 unittest.expect(o.value, unittest.equals('foo')); 932 unittest.expect(o.value, unittest.equals('foo'));
933 } 933 }
934 buildCounterMessagePartHeader--; 934 buildCounterMessagePartHeader--;
935 } 935 }
936 936
937 buildUnnamed2761() { 937 buildUnnamed119() {
938 var o = new core.List<core.String>(); 938 var o = new core.List<core.String>();
939 o.add("foo"); 939 o.add("foo");
940 o.add("foo"); 940 o.add("foo");
941 return o; 941 return o;
942 } 942 }
943 943
944 checkUnnamed2761(core.List<core.String> o) { 944 checkUnnamed119(core.List<core.String> o) {
945 unittest.expect(o, unittest.hasLength(2)); 945 unittest.expect(o, unittest.hasLength(2));
946 unittest.expect(o[0], unittest.equals('foo')); 946 unittest.expect(o[0], unittest.equals('foo'));
947 unittest.expect(o[1], unittest.equals('foo')); 947 unittest.expect(o[1], unittest.equals('foo'));
948 } 948 }
949 949
950 buildUnnamed2762() { 950 buildUnnamed120() {
951 var o = new core.List<core.String>(); 951 var o = new core.List<core.String>();
952 o.add("foo"); 952 o.add("foo");
953 o.add("foo"); 953 o.add("foo");
954 return o; 954 return o;
955 } 955 }
956 956
957 checkUnnamed2762(core.List<core.String> o) { 957 checkUnnamed120(core.List<core.String> o) {
958 unittest.expect(o, unittest.hasLength(2)); 958 unittest.expect(o, unittest.hasLength(2));
959 unittest.expect(o[0], unittest.equals('foo')); 959 unittest.expect(o[0], unittest.equals('foo'));
960 unittest.expect(o[1], unittest.equals('foo')); 960 unittest.expect(o[1], unittest.equals('foo'));
961 } 961 }
962 962
963 core.int buildCounterModifyMessageRequest = 0; 963 core.int buildCounterModifyMessageRequest = 0;
964 buildModifyMessageRequest() { 964 buildModifyMessageRequest() {
965 var o = new api.ModifyMessageRequest(); 965 var o = new api.ModifyMessageRequest();
966 buildCounterModifyMessageRequest++; 966 buildCounterModifyMessageRequest++;
967 if (buildCounterModifyMessageRequest < 3) { 967 if (buildCounterModifyMessageRequest < 3) {
968 o.addLabelIds = buildUnnamed2761(); 968 o.addLabelIds = buildUnnamed119();
969 o.removeLabelIds = buildUnnamed2762(); 969 o.removeLabelIds = buildUnnamed120();
970 } 970 }
971 buildCounterModifyMessageRequest--; 971 buildCounterModifyMessageRequest--;
972 return o; 972 return o;
973 } 973 }
974 974
975 checkModifyMessageRequest(api.ModifyMessageRequest o) { 975 checkModifyMessageRequest(api.ModifyMessageRequest o) {
976 buildCounterModifyMessageRequest++; 976 buildCounterModifyMessageRequest++;
977 if (buildCounterModifyMessageRequest < 3) { 977 if (buildCounterModifyMessageRequest < 3) {
978 checkUnnamed2761(o.addLabelIds); 978 checkUnnamed119(o.addLabelIds);
979 checkUnnamed2762(o.removeLabelIds); 979 checkUnnamed120(o.removeLabelIds);
980 } 980 }
981 buildCounterModifyMessageRequest--; 981 buildCounterModifyMessageRequest--;
982 } 982 }
983 983
984 buildUnnamed2763() { 984 buildUnnamed121() {
985 var o = new core.List<core.String>(); 985 var o = new core.List<core.String>();
986 o.add("foo"); 986 o.add("foo");
987 o.add("foo"); 987 o.add("foo");
988 return o; 988 return o;
989 } 989 }
990 990
991 checkUnnamed2763(core.List<core.String> o) { 991 checkUnnamed121(core.List<core.String> o) {
992 unittest.expect(o, unittest.hasLength(2)); 992 unittest.expect(o, unittest.hasLength(2));
993 unittest.expect(o[0], unittest.equals('foo')); 993 unittest.expect(o[0], unittest.equals('foo'));
994 unittest.expect(o[1], unittest.equals('foo')); 994 unittest.expect(o[1], unittest.equals('foo'));
995 } 995 }
996 996
997 buildUnnamed2764() { 997 buildUnnamed122() {
998 var o = new core.List<core.String>(); 998 var o = new core.List<core.String>();
999 o.add("foo"); 999 o.add("foo");
1000 o.add("foo"); 1000 o.add("foo");
1001 return o; 1001 return o;
1002 } 1002 }
1003 1003
1004 checkUnnamed2764(core.List<core.String> o) { 1004 checkUnnamed122(core.List<core.String> o) {
1005 unittest.expect(o, unittest.hasLength(2)); 1005 unittest.expect(o, unittest.hasLength(2));
1006 unittest.expect(o[0], unittest.equals('foo')); 1006 unittest.expect(o[0], unittest.equals('foo'));
1007 unittest.expect(o[1], unittest.equals('foo')); 1007 unittest.expect(o[1], unittest.equals('foo'));
1008 } 1008 }
1009 1009
1010 core.int buildCounterModifyThreadRequest = 0; 1010 core.int buildCounterModifyThreadRequest = 0;
1011 buildModifyThreadRequest() { 1011 buildModifyThreadRequest() {
1012 var o = new api.ModifyThreadRequest(); 1012 var o = new api.ModifyThreadRequest();
1013 buildCounterModifyThreadRequest++; 1013 buildCounterModifyThreadRequest++;
1014 if (buildCounterModifyThreadRequest < 3) { 1014 if (buildCounterModifyThreadRequest < 3) {
1015 o.addLabelIds = buildUnnamed2763(); 1015 o.addLabelIds = buildUnnamed121();
1016 o.removeLabelIds = buildUnnamed2764(); 1016 o.removeLabelIds = buildUnnamed122();
1017 } 1017 }
1018 buildCounterModifyThreadRequest--; 1018 buildCounterModifyThreadRequest--;
1019 return o; 1019 return o;
1020 } 1020 }
1021 1021
1022 checkModifyThreadRequest(api.ModifyThreadRequest o) { 1022 checkModifyThreadRequest(api.ModifyThreadRequest o) {
1023 buildCounterModifyThreadRequest++; 1023 buildCounterModifyThreadRequest++;
1024 if (buildCounterModifyThreadRequest < 3) { 1024 if (buildCounterModifyThreadRequest < 3) {
1025 checkUnnamed2763(o.addLabelIds); 1025 checkUnnamed121(o.addLabelIds);
1026 checkUnnamed2764(o.removeLabelIds); 1026 checkUnnamed122(o.removeLabelIds);
1027 } 1027 }
1028 buildCounterModifyThreadRequest--; 1028 buildCounterModifyThreadRequest--;
1029 } 1029 }
1030 1030
1031 core.int buildCounterPopSettings = 0; 1031 core.int buildCounterPopSettings = 0;
1032 buildPopSettings() { 1032 buildPopSettings() {
1033 var o = new api.PopSettings(); 1033 var o = new api.PopSettings();
1034 buildCounterPopSettings++; 1034 buildCounterPopSettings++;
1035 if (buildCounterPopSettings < 3) { 1035 if (buildCounterPopSettings < 3) {
1036 o.accessWindow = "foo"; 1036 o.accessWindow = "foo";
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 if (buildCounterSmtpMsa < 3) { 1129 if (buildCounterSmtpMsa < 3) {
1130 unittest.expect(o.host, unittest.equals('foo')); 1130 unittest.expect(o.host, unittest.equals('foo'));
1131 unittest.expect(o.password, unittest.equals('foo')); 1131 unittest.expect(o.password, unittest.equals('foo'));
1132 unittest.expect(o.port, unittest.equals(42)); 1132 unittest.expect(o.port, unittest.equals(42));
1133 unittest.expect(o.securityMode, unittest.equals('foo')); 1133 unittest.expect(o.securityMode, unittest.equals('foo'));
1134 unittest.expect(o.username, unittest.equals('foo')); 1134 unittest.expect(o.username, unittest.equals('foo'));
1135 } 1135 }
1136 buildCounterSmtpMsa--; 1136 buildCounterSmtpMsa--;
1137 } 1137 }
1138 1138
1139 buildUnnamed2765() { 1139 buildUnnamed123() {
1140 var o = new core.List<api.Message>(); 1140 var o = new core.List<api.Message>();
1141 o.add(buildMessage()); 1141 o.add(buildMessage());
1142 o.add(buildMessage()); 1142 o.add(buildMessage());
1143 return o; 1143 return o;
1144 } 1144 }
1145 1145
1146 checkUnnamed2765(core.List<api.Message> o) { 1146 checkUnnamed123(core.List<api.Message> o) {
1147 unittest.expect(o, unittest.hasLength(2)); 1147 unittest.expect(o, unittest.hasLength(2));
1148 checkMessage(o[0]); 1148 checkMessage(o[0]);
1149 checkMessage(o[1]); 1149 checkMessage(o[1]);
1150 } 1150 }
1151 1151
1152 core.int buildCounterThread = 0; 1152 core.int buildCounterThread = 0;
1153 buildThread() { 1153 buildThread() {
1154 var o = new api.Thread(); 1154 var o = new api.Thread();
1155 buildCounterThread++; 1155 buildCounterThread++;
1156 if (buildCounterThread < 3) { 1156 if (buildCounterThread < 3) {
1157 o.historyId = "foo"; 1157 o.historyId = "foo";
1158 o.id = "foo"; 1158 o.id = "foo";
1159 o.messages = buildUnnamed2765(); 1159 o.messages = buildUnnamed123();
1160 o.snippet = "foo"; 1160 o.snippet = "foo";
1161 } 1161 }
1162 buildCounterThread--; 1162 buildCounterThread--;
1163 return o; 1163 return o;
1164 } 1164 }
1165 1165
1166 checkThread(api.Thread o) { 1166 checkThread(api.Thread o) {
1167 buildCounterThread++; 1167 buildCounterThread++;
1168 if (buildCounterThread < 3) { 1168 if (buildCounterThread < 3) {
1169 unittest.expect(o.historyId, unittest.equals('foo')); 1169 unittest.expect(o.historyId, unittest.equals('foo'));
1170 unittest.expect(o.id, unittest.equals('foo')); 1170 unittest.expect(o.id, unittest.equals('foo'));
1171 checkUnnamed2765(o.messages); 1171 checkUnnamed123(o.messages);
1172 unittest.expect(o.snippet, unittest.equals('foo')); 1172 unittest.expect(o.snippet, unittest.equals('foo'));
1173 } 1173 }
1174 buildCounterThread--; 1174 buildCounterThread--;
1175 } 1175 }
1176 1176
1177 core.int buildCounterVacationSettings = 0; 1177 core.int buildCounterVacationSettings = 0;
1178 buildVacationSettings() { 1178 buildVacationSettings() {
1179 var o = new api.VacationSettings(); 1179 var o = new api.VacationSettings();
1180 buildCounterVacationSettings++; 1180 buildCounterVacationSettings++;
1181 if (buildCounterVacationSettings < 3) { 1181 if (buildCounterVacationSettings < 3) {
(...skipping 18 matching lines...) Expand all
1200 unittest.expect(o.responseBodyHtml, unittest.equals('foo')); 1200 unittest.expect(o.responseBodyHtml, unittest.equals('foo'));
1201 unittest.expect(o.responseBodyPlainText, unittest.equals('foo')); 1201 unittest.expect(o.responseBodyPlainText, unittest.equals('foo'));
1202 unittest.expect(o.responseSubject, unittest.equals('foo')); 1202 unittest.expect(o.responseSubject, unittest.equals('foo'));
1203 unittest.expect(o.restrictToContacts, unittest.isTrue); 1203 unittest.expect(o.restrictToContacts, unittest.isTrue);
1204 unittest.expect(o.restrictToDomain, unittest.isTrue); 1204 unittest.expect(o.restrictToDomain, unittest.isTrue);
1205 unittest.expect(o.startTime, unittest.equals('foo')); 1205 unittest.expect(o.startTime, unittest.equals('foo'));
1206 } 1206 }
1207 buildCounterVacationSettings--; 1207 buildCounterVacationSettings--;
1208 } 1208 }
1209 1209
1210 buildUnnamed2766() { 1210 buildUnnamed124() {
1211 var o = new core.List<core.String>(); 1211 var o = new core.List<core.String>();
1212 o.add("foo"); 1212 o.add("foo");
1213 o.add("foo"); 1213 o.add("foo");
1214 return o; 1214 return o;
1215 } 1215 }
1216 1216
1217 checkUnnamed2766(core.List<core.String> o) { 1217 checkUnnamed124(core.List<core.String> o) {
1218 unittest.expect(o, unittest.hasLength(2)); 1218 unittest.expect(o, unittest.hasLength(2));
1219 unittest.expect(o[0], unittest.equals('foo')); 1219 unittest.expect(o[0], unittest.equals('foo'));
1220 unittest.expect(o[1], unittest.equals('foo')); 1220 unittest.expect(o[1], unittest.equals('foo'));
1221 } 1221 }
1222 1222
1223 core.int buildCounterWatchRequest = 0; 1223 core.int buildCounterWatchRequest = 0;
1224 buildWatchRequest() { 1224 buildWatchRequest() {
1225 var o = new api.WatchRequest(); 1225 var o = new api.WatchRequest();
1226 buildCounterWatchRequest++; 1226 buildCounterWatchRequest++;
1227 if (buildCounterWatchRequest < 3) { 1227 if (buildCounterWatchRequest < 3) {
1228 o.labelFilterAction = "foo"; 1228 o.labelFilterAction = "foo";
1229 o.labelIds = buildUnnamed2766(); 1229 o.labelIds = buildUnnamed124();
1230 o.topicName = "foo"; 1230 o.topicName = "foo";
1231 } 1231 }
1232 buildCounterWatchRequest--; 1232 buildCounterWatchRequest--;
1233 return o; 1233 return o;
1234 } 1234 }
1235 1235
1236 checkWatchRequest(api.WatchRequest o) { 1236 checkWatchRequest(api.WatchRequest o) {
1237 buildCounterWatchRequest++; 1237 buildCounterWatchRequest++;
1238 if (buildCounterWatchRequest < 3) { 1238 if (buildCounterWatchRequest < 3) {
1239 unittest.expect(o.labelFilterAction, unittest.equals('foo')); 1239 unittest.expect(o.labelFilterAction, unittest.equals('foo'));
1240 checkUnnamed2766(o.labelIds); 1240 checkUnnamed124(o.labelIds);
1241 unittest.expect(o.topicName, unittest.equals('foo')); 1241 unittest.expect(o.topicName, unittest.equals('foo'));
1242 } 1242 }
1243 buildCounterWatchRequest--; 1243 buildCounterWatchRequest--;
1244 } 1244 }
1245 1245
1246 core.int buildCounterWatchResponse = 0; 1246 core.int buildCounterWatchResponse = 0;
1247 buildWatchResponse() { 1247 buildWatchResponse() {
1248 var o = new api.WatchResponse(); 1248 var o = new api.WatchResponse();
1249 buildCounterWatchResponse++; 1249 buildCounterWatchResponse++;
1250 if (buildCounterWatchResponse < 3) { 1250 if (buildCounterWatchResponse < 3) {
1251 o.expiration = "foo"; 1251 o.expiration = "foo";
1252 o.historyId = "foo"; 1252 o.historyId = "foo";
1253 } 1253 }
1254 buildCounterWatchResponse--; 1254 buildCounterWatchResponse--;
1255 return o; 1255 return o;
1256 } 1256 }
1257 1257
1258 checkWatchResponse(api.WatchResponse o) { 1258 checkWatchResponse(api.WatchResponse o) {
1259 buildCounterWatchResponse++; 1259 buildCounterWatchResponse++;
1260 if (buildCounterWatchResponse < 3) { 1260 if (buildCounterWatchResponse < 3) {
1261 unittest.expect(o.expiration, unittest.equals('foo')); 1261 unittest.expect(o.expiration, unittest.equals('foo'));
1262 unittest.expect(o.historyId, unittest.equals('foo')); 1262 unittest.expect(o.historyId, unittest.equals('foo'));
1263 } 1263 }
1264 buildCounterWatchResponse--; 1264 buildCounterWatchResponse--;
1265 } 1265 }
1266 1266
1267 buildUnnamed2767() { 1267 buildUnnamed125() {
1268 var o = new core.List<core.String>(); 1268 var o = new core.List<core.String>();
1269 o.add("foo"); 1269 o.add("foo");
1270 o.add("foo"); 1270 o.add("foo");
1271 return o; 1271 return o;
1272 } 1272 }
1273 1273
1274 checkUnnamed2767(core.List<core.String> o) { 1274 checkUnnamed125(core.List<core.String> o) {
1275 unittest.expect(o, unittest.hasLength(2)); 1275 unittest.expect(o, unittest.hasLength(2));
1276 unittest.expect(o[0], unittest.equals('foo')); 1276 unittest.expect(o[0], unittest.equals('foo'));
1277 unittest.expect(o[1], unittest.equals('foo')); 1277 unittest.expect(o[1], unittest.equals('foo'));
1278 } 1278 }
1279 1279
1280 buildUnnamed2768() { 1280 buildUnnamed126() {
1281 var o = new core.List<core.String>(); 1281 var o = new core.List<core.String>();
1282 o.add("foo"); 1282 o.add("foo");
1283 o.add("foo"); 1283 o.add("foo");
1284 return o; 1284 return o;
1285 } 1285 }
1286 1286
1287 checkUnnamed2768(core.List<core.String> o) { 1287 checkUnnamed126(core.List<core.String> o) {
1288 unittest.expect(o, unittest.hasLength(2)); 1288 unittest.expect(o, unittest.hasLength(2));
1289 unittest.expect(o[0], unittest.equals('foo')); 1289 unittest.expect(o[0], unittest.equals('foo'));
1290 unittest.expect(o[1], unittest.equals('foo')); 1290 unittest.expect(o[1], unittest.equals('foo'));
1291 } 1291 }
1292 1292
1293 buildUnnamed2769() { 1293 buildUnnamed127() {
1294 var o = new core.List<core.String>(); 1294 var o = new core.List<core.String>();
1295 o.add("foo"); 1295 o.add("foo");
1296 o.add("foo"); 1296 o.add("foo");
1297 return o; 1297 return o;
1298 } 1298 }
1299 1299
1300 checkUnnamed2769(core.List<core.String> o) { 1300 checkUnnamed127(core.List<core.String> o) {
1301 unittest.expect(o, unittest.hasLength(2)); 1301 unittest.expect(o, unittest.hasLength(2));
1302 unittest.expect(o[0], unittest.equals('foo')); 1302 unittest.expect(o[0], unittest.equals('foo'));
1303 unittest.expect(o[1], unittest.equals('foo')); 1303 unittest.expect(o[1], unittest.equals('foo'));
1304 } 1304 }
1305 1305
1306 buildUnnamed2770() { 1306 buildUnnamed128() {
1307 var o = new core.List<core.String>(); 1307 var o = new core.List<core.String>();
1308 o.add("foo"); 1308 o.add("foo");
1309 o.add("foo"); 1309 o.add("foo");
1310 return o; 1310 return o;
1311 } 1311 }
1312 1312
1313 checkUnnamed2770(core.List<core.String> o) { 1313 checkUnnamed128(core.List<core.String> o) {
1314 unittest.expect(o, unittest.hasLength(2)); 1314 unittest.expect(o, unittest.hasLength(2));
1315 unittest.expect(o[0], unittest.equals('foo')); 1315 unittest.expect(o[0], unittest.equals('foo'));
1316 unittest.expect(o[1], unittest.equals('foo')); 1316 unittest.expect(o[1], unittest.equals('foo'));
1317 } 1317 }
1318 1318
1319 1319
1320 main() { 1320 main() {
1321 unittest.group("obj-schema-AutoForwarding", () { 1321 unittest.group("obj-schema-AutoForwarding", () {
1322 unittest.test("to-json--from-json", () { 1322 unittest.test("to-json--from-json", () {
1323 var o = buildAutoForwarding(); 1323 var o = buildAutoForwarding();
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {})); 2469 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {}));
2470 }); 2470 });
2471 2471
2472 unittest.test("method--get", () { 2472 unittest.test("method--get", () {
2473 2473
2474 var mock = new HttpServerMock(); 2474 var mock = new HttpServerMock();
2475 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; 2475 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2476 var arg_userId = "foo"; 2476 var arg_userId = "foo";
2477 var arg_id = "foo"; 2477 var arg_id = "foo";
2478 var arg_format = "foo"; 2478 var arg_format = "foo";
2479 var arg_metadataHeaders = buildUnnamed2767(); 2479 var arg_metadataHeaders = buildUnnamed125();
2480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2480 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2481 var path = (req.url).path; 2481 var path = (req.url).path;
2482 var pathOffset = 0; 2482 var pathOffset = 0;
2483 var index; 2483 var index;
2484 var subPart; 2484 var subPart;
2485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2486 pathOffset += 1; 2486 pathOffset += 1;
2487 2487
2488 var query = (req.url).query; 2488 var query = (req.url).query;
2489 var queryOffset = 0; 2489 var queryOffset = 0;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 checkMessage(response); 2623 checkMessage(response);
2624 }))); 2624 })));
2625 }); 2625 });
2626 2626
2627 unittest.test("method--list", () { 2627 unittest.test("method--list", () {
2628 2628
2629 var mock = new HttpServerMock(); 2629 var mock = new HttpServerMock();
2630 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; 2630 api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
2631 var arg_userId = "foo"; 2631 var arg_userId = "foo";
2632 var arg_includeSpamTrash = true; 2632 var arg_includeSpamTrash = true;
2633 var arg_labelIds = buildUnnamed2768(); 2633 var arg_labelIds = buildUnnamed126();
2634 var arg_maxResults = 42; 2634 var arg_maxResults = 42;
2635 var arg_pageToken = "foo"; 2635 var arg_pageToken = "foo";
2636 var arg_q = "foo"; 2636 var arg_q = "foo";
2637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2637 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2638 var path = (req.url).path; 2638 var path = (req.url).path;
2639 var pathOffset = 0; 2639 var pathOffset = 0;
2640 var index; 2640 var index;
2641 var subPart; 2641 var subPart;
2642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2643 pathOffset += 1; 2643 pathOffset += 1;
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
3969 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {})); 3969 res.delete(arg_userId, arg_id).then(unittest.expectAsync((_) {}));
3970 }); 3970 });
3971 3971
3972 unittest.test("method--get", () { 3972 unittest.test("method--get", () {
3973 3973
3974 var mock = new HttpServerMock(); 3974 var mock = new HttpServerMock();
3975 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; 3975 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
3976 var arg_userId = "foo"; 3976 var arg_userId = "foo";
3977 var arg_id = "foo"; 3977 var arg_id = "foo";
3978 var arg_format = "foo"; 3978 var arg_format = "foo";
3979 var arg_metadataHeaders = buildUnnamed2769(); 3979 var arg_metadataHeaders = buildUnnamed127();
3980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3980 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3981 var path = (req.url).path; 3981 var path = (req.url).path;
3982 var pathOffset = 0; 3982 var pathOffset = 0;
3983 var index; 3983 var index;
3984 var subPart; 3984 var subPart;
3985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3986 pathOffset += 1; 3986 pathOffset += 1;
3987 3987
3988 var query = (req.url).query; 3988 var query = (req.url).query;
3989 var queryOffset = 0; 3989 var queryOffset = 0;
(...skipping 25 matching lines...) Expand all
4015 checkThread(response); 4015 checkThread(response);
4016 }))); 4016 })));
4017 }); 4017 });
4018 4018
4019 unittest.test("method--list", () { 4019 unittest.test("method--list", () {
4020 4020
4021 var mock = new HttpServerMock(); 4021 var mock = new HttpServerMock();
4022 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; 4022 api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
4023 var arg_userId = "foo"; 4023 var arg_userId = "foo";
4024 var arg_includeSpamTrash = true; 4024 var arg_includeSpamTrash = true;
4025 var arg_labelIds = buildUnnamed2770(); 4025 var arg_labelIds = buildUnnamed128();
4026 var arg_maxResults = 42; 4026 var arg_maxResults = 42;
4027 var arg_pageToken = "foo"; 4027 var arg_pageToken = "foo";
4028 var arg_q = "foo"; 4028 var arg_q = "foo";
4029 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4029 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4030 var path = (req.url).path; 4030 var path = (req.url).path;
4031 var pathOffset = 0; 4031 var pathOffset = 0;
4032 var index; 4032 var index;
4033 var subPart; 4033 var subPart;
4034 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4034 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4035 pathOffset += 1; 4035 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) { 4199 res.untrash(arg_userId, arg_id).then(unittest.expectAsync(((api.Thread res ponse) {
4200 checkThread(response); 4200 checkThread(response);
4201 }))); 4201 })));
4202 }); 4202 });
4203 4203
4204 }); 4204 });
4205 4205
4206 4206
4207 } 4207 }
4208 4208
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