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

Side by Side Diff: generated/googleapis/test/calendar/v3_test.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.calendar.v3.test; 1 library googleapis.calendar.v3.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed968() { 54 buildUnnamed423() {
55 var o = new core.List<api.AclRule>(); 55 var o = new core.List<api.AclRule>();
56 o.add(buildAclRule()); 56 o.add(buildAclRule());
57 o.add(buildAclRule()); 57 o.add(buildAclRule());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed968(core.List<api.AclRule> o) { 61 checkUnnamed423(core.List<api.AclRule> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAclRule(o[0]); 63 checkAclRule(o[0]);
64 checkAclRule(o[1]); 64 checkAclRule(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAcl = 0; 67 core.int buildCounterAcl = 0;
68 buildAcl() { 68 buildAcl() {
69 var o = new api.Acl(); 69 var o = new api.Acl();
70 buildCounterAcl++; 70 buildCounterAcl++;
71 if (buildCounterAcl < 3) { 71 if (buildCounterAcl < 3) {
72 o.etag = "foo"; 72 o.etag = "foo";
73 o.items = buildUnnamed968(); 73 o.items = buildUnnamed423();
74 o.kind = "foo"; 74 o.kind = "foo";
75 o.nextPageToken = "foo"; 75 o.nextPageToken = "foo";
76 o.nextSyncToken = "foo"; 76 o.nextSyncToken = "foo";
77 } 77 }
78 buildCounterAcl--; 78 buildCounterAcl--;
79 return o; 79 return o;
80 } 80 }
81 81
82 checkAcl(api.Acl o) { 82 checkAcl(api.Acl o) {
83 buildCounterAcl++; 83 buildCounterAcl++;
84 if (buildCounterAcl < 3) { 84 if (buildCounterAcl < 3) {
85 unittest.expect(o.etag, unittest.equals('foo')); 85 unittest.expect(o.etag, unittest.equals('foo'));
86 checkUnnamed968(o.items); 86 checkUnnamed423(o.items);
87 unittest.expect(o.kind, unittest.equals('foo')); 87 unittest.expect(o.kind, unittest.equals('foo'));
88 unittest.expect(o.nextPageToken, unittest.equals('foo')); 88 unittest.expect(o.nextPageToken, unittest.equals('foo'));
89 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 89 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
90 } 90 }
91 buildCounterAcl--; 91 buildCounterAcl--;
92 } 92 }
93 93
94 core.int buildCounterAclRuleScope = 0; 94 core.int buildCounterAclRuleScope = 0;
95 buildAclRuleScope() { 95 buildAclRuleScope() {
96 var o = new api.AclRuleScope(); 96 var o = new api.AclRuleScope();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 unittest.expect(o.etag, unittest.equals('foo')); 163 unittest.expect(o.etag, unittest.equals('foo'));
164 unittest.expect(o.id, unittest.equals('foo')); 164 unittest.expect(o.id, unittest.equals('foo'));
165 unittest.expect(o.kind, unittest.equals('foo')); 165 unittest.expect(o.kind, unittest.equals('foo'));
166 unittest.expect(o.location, unittest.equals('foo')); 166 unittest.expect(o.location, unittest.equals('foo'));
167 unittest.expect(o.summary, unittest.equals('foo')); 167 unittest.expect(o.summary, unittest.equals('foo'));
168 unittest.expect(o.timeZone, unittest.equals('foo')); 168 unittest.expect(o.timeZone, unittest.equals('foo'));
169 } 169 }
170 buildCounterCalendar--; 170 buildCounterCalendar--;
171 } 171 }
172 172
173 buildUnnamed969() { 173 buildUnnamed424() {
174 var o = new core.List<api.CalendarListEntry>(); 174 var o = new core.List<api.CalendarListEntry>();
175 o.add(buildCalendarListEntry()); 175 o.add(buildCalendarListEntry());
176 o.add(buildCalendarListEntry()); 176 o.add(buildCalendarListEntry());
177 return o; 177 return o;
178 } 178 }
179 179
180 checkUnnamed969(core.List<api.CalendarListEntry> o) { 180 checkUnnamed424(core.List<api.CalendarListEntry> o) {
181 unittest.expect(o, unittest.hasLength(2)); 181 unittest.expect(o, unittest.hasLength(2));
182 checkCalendarListEntry(o[0]); 182 checkCalendarListEntry(o[0]);
183 checkCalendarListEntry(o[1]); 183 checkCalendarListEntry(o[1]);
184 } 184 }
185 185
186 core.int buildCounterCalendarList = 0; 186 core.int buildCounterCalendarList = 0;
187 buildCalendarList() { 187 buildCalendarList() {
188 var o = new api.CalendarList(); 188 var o = new api.CalendarList();
189 buildCounterCalendarList++; 189 buildCounterCalendarList++;
190 if (buildCounterCalendarList < 3) { 190 if (buildCounterCalendarList < 3) {
191 o.etag = "foo"; 191 o.etag = "foo";
192 o.items = buildUnnamed969(); 192 o.items = buildUnnamed424();
193 o.kind = "foo"; 193 o.kind = "foo";
194 o.nextPageToken = "foo"; 194 o.nextPageToken = "foo";
195 o.nextSyncToken = "foo"; 195 o.nextSyncToken = "foo";
196 } 196 }
197 buildCounterCalendarList--; 197 buildCounterCalendarList--;
198 return o; 198 return o;
199 } 199 }
200 200
201 checkCalendarList(api.CalendarList o) { 201 checkCalendarList(api.CalendarList o) {
202 buildCounterCalendarList++; 202 buildCounterCalendarList++;
203 if (buildCounterCalendarList < 3) { 203 if (buildCounterCalendarList < 3) {
204 unittest.expect(o.etag, unittest.equals('foo')); 204 unittest.expect(o.etag, unittest.equals('foo'));
205 checkUnnamed969(o.items); 205 checkUnnamed424(o.items);
206 unittest.expect(o.kind, unittest.equals('foo')); 206 unittest.expect(o.kind, unittest.equals('foo'));
207 unittest.expect(o.nextPageToken, unittest.equals('foo')); 207 unittest.expect(o.nextPageToken, unittest.equals('foo'));
208 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 208 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
209 } 209 }
210 buildCounterCalendarList--; 210 buildCounterCalendarList--;
211 } 211 }
212 212
213 buildUnnamed970() { 213 buildUnnamed425() {
214 var o = new core.List<api.EventReminder>(); 214 var o = new core.List<api.EventReminder>();
215 o.add(buildEventReminder()); 215 o.add(buildEventReminder());
216 o.add(buildEventReminder()); 216 o.add(buildEventReminder());
217 return o; 217 return o;
218 } 218 }
219 219
220 checkUnnamed970(core.List<api.EventReminder> o) { 220 checkUnnamed425(core.List<api.EventReminder> o) {
221 unittest.expect(o, unittest.hasLength(2)); 221 unittest.expect(o, unittest.hasLength(2));
222 checkEventReminder(o[0]); 222 checkEventReminder(o[0]);
223 checkEventReminder(o[1]); 223 checkEventReminder(o[1]);
224 } 224 }
225 225
226 buildUnnamed971() { 226 buildUnnamed426() {
227 var o = new core.List<api.CalendarNotification>(); 227 var o = new core.List<api.CalendarNotification>();
228 o.add(buildCalendarNotification()); 228 o.add(buildCalendarNotification());
229 o.add(buildCalendarNotification()); 229 o.add(buildCalendarNotification());
230 return o; 230 return o;
231 } 231 }
232 232
233 checkUnnamed971(core.List<api.CalendarNotification> o) { 233 checkUnnamed426(core.List<api.CalendarNotification> o) {
234 unittest.expect(o, unittest.hasLength(2)); 234 unittest.expect(o, unittest.hasLength(2));
235 checkCalendarNotification(o[0]); 235 checkCalendarNotification(o[0]);
236 checkCalendarNotification(o[1]); 236 checkCalendarNotification(o[1]);
237 } 237 }
238 238
239 core.int buildCounterCalendarListEntryNotificationSettings = 0; 239 core.int buildCounterCalendarListEntryNotificationSettings = 0;
240 buildCalendarListEntryNotificationSettings() { 240 buildCalendarListEntryNotificationSettings() {
241 var o = new api.CalendarListEntryNotificationSettings(); 241 var o = new api.CalendarListEntryNotificationSettings();
242 buildCounterCalendarListEntryNotificationSettings++; 242 buildCounterCalendarListEntryNotificationSettings++;
243 if (buildCounterCalendarListEntryNotificationSettings < 3) { 243 if (buildCounterCalendarListEntryNotificationSettings < 3) {
244 o.notifications = buildUnnamed971(); 244 o.notifications = buildUnnamed426();
245 } 245 }
246 buildCounterCalendarListEntryNotificationSettings--; 246 buildCounterCalendarListEntryNotificationSettings--;
247 return o; 247 return o;
248 } 248 }
249 249
250 checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSett ings o) { 250 checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSett ings o) {
251 buildCounterCalendarListEntryNotificationSettings++; 251 buildCounterCalendarListEntryNotificationSettings++;
252 if (buildCounterCalendarListEntryNotificationSettings < 3) { 252 if (buildCounterCalendarListEntryNotificationSettings < 3) {
253 checkUnnamed971(o.notifications); 253 checkUnnamed426(o.notifications);
254 } 254 }
255 buildCounterCalendarListEntryNotificationSettings--; 255 buildCounterCalendarListEntryNotificationSettings--;
256 } 256 }
257 257
258 core.int buildCounterCalendarListEntry = 0; 258 core.int buildCounterCalendarListEntry = 0;
259 buildCalendarListEntry() { 259 buildCalendarListEntry() {
260 var o = new api.CalendarListEntry(); 260 var o = new api.CalendarListEntry();
261 buildCounterCalendarListEntry++; 261 buildCounterCalendarListEntry++;
262 if (buildCounterCalendarListEntry < 3) { 262 if (buildCounterCalendarListEntry < 3) {
263 o.accessRole = "foo"; 263 o.accessRole = "foo";
264 o.backgroundColor = "foo"; 264 o.backgroundColor = "foo";
265 o.colorId = "foo"; 265 o.colorId = "foo";
266 o.defaultReminders = buildUnnamed970(); 266 o.defaultReminders = buildUnnamed425();
267 o.deleted = true; 267 o.deleted = true;
268 o.description = "foo"; 268 o.description = "foo";
269 o.etag = "foo"; 269 o.etag = "foo";
270 o.foregroundColor = "foo"; 270 o.foregroundColor = "foo";
271 o.hidden = true; 271 o.hidden = true;
272 o.id = "foo"; 272 o.id = "foo";
273 o.kind = "foo"; 273 o.kind = "foo";
274 o.location = "foo"; 274 o.location = "foo";
275 o.notificationSettings = buildCalendarListEntryNotificationSettings(); 275 o.notificationSettings = buildCalendarListEntryNotificationSettings();
276 o.primary = true; 276 o.primary = true;
277 o.selected = true; 277 o.selected = true;
278 o.summary = "foo"; 278 o.summary = "foo";
279 o.summaryOverride = "foo"; 279 o.summaryOverride = "foo";
280 o.timeZone = "foo"; 280 o.timeZone = "foo";
281 } 281 }
282 buildCounterCalendarListEntry--; 282 buildCounterCalendarListEntry--;
283 return o; 283 return o;
284 } 284 }
285 285
286 checkCalendarListEntry(api.CalendarListEntry o) { 286 checkCalendarListEntry(api.CalendarListEntry o) {
287 buildCounterCalendarListEntry++; 287 buildCounterCalendarListEntry++;
288 if (buildCounterCalendarListEntry < 3) { 288 if (buildCounterCalendarListEntry < 3) {
289 unittest.expect(o.accessRole, unittest.equals('foo')); 289 unittest.expect(o.accessRole, unittest.equals('foo'));
290 unittest.expect(o.backgroundColor, unittest.equals('foo')); 290 unittest.expect(o.backgroundColor, unittest.equals('foo'));
291 unittest.expect(o.colorId, unittest.equals('foo')); 291 unittest.expect(o.colorId, unittest.equals('foo'));
292 checkUnnamed970(o.defaultReminders); 292 checkUnnamed425(o.defaultReminders);
293 unittest.expect(o.deleted, unittest.isTrue); 293 unittest.expect(o.deleted, unittest.isTrue);
294 unittest.expect(o.description, unittest.equals('foo')); 294 unittest.expect(o.description, unittest.equals('foo'));
295 unittest.expect(o.etag, unittest.equals('foo')); 295 unittest.expect(o.etag, unittest.equals('foo'));
296 unittest.expect(o.foregroundColor, unittest.equals('foo')); 296 unittest.expect(o.foregroundColor, unittest.equals('foo'));
297 unittest.expect(o.hidden, unittest.isTrue); 297 unittest.expect(o.hidden, unittest.isTrue);
298 unittest.expect(o.id, unittest.equals('foo')); 298 unittest.expect(o.id, unittest.equals('foo'));
299 unittest.expect(o.kind, unittest.equals('foo')); 299 unittest.expect(o.kind, unittest.equals('foo'));
300 unittest.expect(o.location, unittest.equals('foo')); 300 unittest.expect(o.location, unittest.equals('foo'));
301 checkCalendarListEntryNotificationSettings(o.notificationSettings); 301 checkCalendarListEntryNotificationSettings(o.notificationSettings);
302 unittest.expect(o.primary, unittest.isTrue); 302 unittest.expect(o.primary, unittest.isTrue);
(...skipping 19 matching lines...) Expand all
322 322
323 checkCalendarNotification(api.CalendarNotification o) { 323 checkCalendarNotification(api.CalendarNotification o) {
324 buildCounterCalendarNotification++; 324 buildCounterCalendarNotification++;
325 if (buildCounterCalendarNotification < 3) { 325 if (buildCounterCalendarNotification < 3) {
326 unittest.expect(o.method, unittest.equals('foo')); 326 unittest.expect(o.method, unittest.equals('foo'));
327 unittest.expect(o.type, unittest.equals('foo')); 327 unittest.expect(o.type, unittest.equals('foo'));
328 } 328 }
329 buildCounterCalendarNotification--; 329 buildCounterCalendarNotification--;
330 } 330 }
331 331
332 buildUnnamed972() { 332 buildUnnamed427() {
333 var o = new core.Map<core.String, core.String>(); 333 var o = new core.Map<core.String, core.String>();
334 o["x"] = "foo"; 334 o["x"] = "foo";
335 o["y"] = "foo"; 335 o["y"] = "foo";
336 return o; 336 return o;
337 } 337 }
338 338
339 checkUnnamed972(core.Map<core.String, core.String> o) { 339 checkUnnamed427(core.Map<core.String, core.String> o) {
340 unittest.expect(o, unittest.hasLength(2)); 340 unittest.expect(o, unittest.hasLength(2));
341 unittest.expect(o["x"], unittest.equals('foo')); 341 unittest.expect(o["x"], unittest.equals('foo'));
342 unittest.expect(o["y"], unittest.equals('foo')); 342 unittest.expect(o["y"], unittest.equals('foo'));
343 } 343 }
344 344
345 core.int buildCounterChannel = 0; 345 core.int buildCounterChannel = 0;
346 buildChannel() { 346 buildChannel() {
347 var o = new api.Channel(); 347 var o = new api.Channel();
348 buildCounterChannel++; 348 buildCounterChannel++;
349 if (buildCounterChannel < 3) { 349 if (buildCounterChannel < 3) {
350 o.address = "foo"; 350 o.address = "foo";
351 o.expiration = "foo"; 351 o.expiration = "foo";
352 o.id = "foo"; 352 o.id = "foo";
353 o.kind = "foo"; 353 o.kind = "foo";
354 o.params = buildUnnamed972(); 354 o.params = buildUnnamed427();
355 o.payload = true; 355 o.payload = true;
356 o.resourceId = "foo"; 356 o.resourceId = "foo";
357 o.resourceUri = "foo"; 357 o.resourceUri = "foo";
358 o.token = "foo"; 358 o.token = "foo";
359 o.type = "foo"; 359 o.type = "foo";
360 } 360 }
361 buildCounterChannel--; 361 buildCounterChannel--;
362 return o; 362 return o;
363 } 363 }
364 364
365 checkChannel(api.Channel o) { 365 checkChannel(api.Channel o) {
366 buildCounterChannel++; 366 buildCounterChannel++;
367 if (buildCounterChannel < 3) { 367 if (buildCounterChannel < 3) {
368 unittest.expect(o.address, unittest.equals('foo')); 368 unittest.expect(o.address, unittest.equals('foo'));
369 unittest.expect(o.expiration, unittest.equals('foo')); 369 unittest.expect(o.expiration, unittest.equals('foo'));
370 unittest.expect(o.id, unittest.equals('foo')); 370 unittest.expect(o.id, unittest.equals('foo'));
371 unittest.expect(o.kind, unittest.equals('foo')); 371 unittest.expect(o.kind, unittest.equals('foo'));
372 checkUnnamed972(o.params); 372 checkUnnamed427(o.params);
373 unittest.expect(o.payload, unittest.isTrue); 373 unittest.expect(o.payload, unittest.isTrue);
374 unittest.expect(o.resourceId, unittest.equals('foo')); 374 unittest.expect(o.resourceId, unittest.equals('foo'));
375 unittest.expect(o.resourceUri, unittest.equals('foo')); 375 unittest.expect(o.resourceUri, unittest.equals('foo'));
376 unittest.expect(o.token, unittest.equals('foo')); 376 unittest.expect(o.token, unittest.equals('foo'));
377 unittest.expect(o.type, unittest.equals('foo')); 377 unittest.expect(o.type, unittest.equals('foo'));
378 } 378 }
379 buildCounterChannel--; 379 buildCounterChannel--;
380 } 380 }
381 381
382 core.int buildCounterColorDefinition = 0; 382 core.int buildCounterColorDefinition = 0;
(...skipping 10 matching lines...) Expand all
393 393
394 checkColorDefinition(api.ColorDefinition o) { 394 checkColorDefinition(api.ColorDefinition o) {
395 buildCounterColorDefinition++; 395 buildCounterColorDefinition++;
396 if (buildCounterColorDefinition < 3) { 396 if (buildCounterColorDefinition < 3) {
397 unittest.expect(o.background, unittest.equals('foo')); 397 unittest.expect(o.background, unittest.equals('foo'));
398 unittest.expect(o.foreground, unittest.equals('foo')); 398 unittest.expect(o.foreground, unittest.equals('foo'));
399 } 399 }
400 buildCounterColorDefinition--; 400 buildCounterColorDefinition--;
401 } 401 }
402 402
403 buildUnnamed973() { 403 buildUnnamed428() {
404 var o = new core.Map<core.String, api.ColorDefinition>(); 404 var o = new core.Map<core.String, api.ColorDefinition>();
405 o["x"] = buildColorDefinition(); 405 o["x"] = buildColorDefinition();
406 o["y"] = buildColorDefinition(); 406 o["y"] = buildColorDefinition();
407 return o; 407 return o;
408 } 408 }
409 409
410 checkUnnamed973(core.Map<core.String, api.ColorDefinition> o) { 410 checkUnnamed428(core.Map<core.String, api.ColorDefinition> o) {
411 unittest.expect(o, unittest.hasLength(2)); 411 unittest.expect(o, unittest.hasLength(2));
412 checkColorDefinition(o["x"]); 412 checkColorDefinition(o["x"]);
413 checkColorDefinition(o["y"]); 413 checkColorDefinition(o["y"]);
414 } 414 }
415 415
416 buildUnnamed974() { 416 buildUnnamed429() {
417 var o = new core.Map<core.String, api.ColorDefinition>(); 417 var o = new core.Map<core.String, api.ColorDefinition>();
418 o["x"] = buildColorDefinition(); 418 o["x"] = buildColorDefinition();
419 o["y"] = buildColorDefinition(); 419 o["y"] = buildColorDefinition();
420 return o; 420 return o;
421 } 421 }
422 422
423 checkUnnamed974(core.Map<core.String, api.ColorDefinition> o) { 423 checkUnnamed429(core.Map<core.String, api.ColorDefinition> o) {
424 unittest.expect(o, unittest.hasLength(2)); 424 unittest.expect(o, unittest.hasLength(2));
425 checkColorDefinition(o["x"]); 425 checkColorDefinition(o["x"]);
426 checkColorDefinition(o["y"]); 426 checkColorDefinition(o["y"]);
427 } 427 }
428 428
429 core.int buildCounterColors = 0; 429 core.int buildCounterColors = 0;
430 buildColors() { 430 buildColors() {
431 var o = new api.Colors(); 431 var o = new api.Colors();
432 buildCounterColors++; 432 buildCounterColors++;
433 if (buildCounterColors < 3) { 433 if (buildCounterColors < 3) {
434 o.calendar = buildUnnamed973(); 434 o.calendar = buildUnnamed428();
435 o.event = buildUnnamed974(); 435 o.event = buildUnnamed429();
436 o.kind = "foo"; 436 o.kind = "foo";
437 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 437 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
438 } 438 }
439 buildCounterColors--; 439 buildCounterColors--;
440 return o; 440 return o;
441 } 441 }
442 442
443 checkColors(api.Colors o) { 443 checkColors(api.Colors o) {
444 buildCounterColors++; 444 buildCounterColors++;
445 if (buildCounterColors < 3) { 445 if (buildCounterColors < 3) {
446 checkUnnamed973(o.calendar); 446 checkUnnamed428(o.calendar);
447 checkUnnamed974(o.event); 447 checkUnnamed429(o.event);
448 unittest.expect(o.kind, unittest.equals('foo')); 448 unittest.expect(o.kind, unittest.equals('foo'));
449 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 449 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
450 } 450 }
451 buildCounterColors--; 451 buildCounterColors--;
452 } 452 }
453 453
454 core.int buildCounterError = 0; 454 core.int buildCounterError = 0;
455 buildError() { 455 buildError() {
456 var o = new api.Error(); 456 var o = new api.Error();
457 buildCounterError++; 457 buildCounterError++;
458 if (buildCounterError < 3) { 458 if (buildCounterError < 3) {
459 o.domain = "foo"; 459 o.domain = "foo";
460 o.reason = "foo"; 460 o.reason = "foo";
461 } 461 }
462 buildCounterError--; 462 buildCounterError--;
463 return o; 463 return o;
464 } 464 }
465 465
466 checkError(api.Error o) { 466 checkError(api.Error o) {
467 buildCounterError++; 467 buildCounterError++;
468 if (buildCounterError < 3) { 468 if (buildCounterError < 3) {
469 unittest.expect(o.domain, unittest.equals('foo')); 469 unittest.expect(o.domain, unittest.equals('foo'));
470 unittest.expect(o.reason, unittest.equals('foo')); 470 unittest.expect(o.reason, unittest.equals('foo'));
471 } 471 }
472 buildCounterError--; 472 buildCounterError--;
473 } 473 }
474 474
475 buildUnnamed975() { 475 buildUnnamed430() {
476 var o = new core.List<api.EventAttachment>(); 476 var o = new core.List<api.EventAttachment>();
477 o.add(buildEventAttachment()); 477 o.add(buildEventAttachment());
478 o.add(buildEventAttachment()); 478 o.add(buildEventAttachment());
479 return o; 479 return o;
480 } 480 }
481 481
482 checkUnnamed975(core.List<api.EventAttachment> o) { 482 checkUnnamed430(core.List<api.EventAttachment> o) {
483 unittest.expect(o, unittest.hasLength(2)); 483 unittest.expect(o, unittest.hasLength(2));
484 checkEventAttachment(o[0]); 484 checkEventAttachment(o[0]);
485 checkEventAttachment(o[1]); 485 checkEventAttachment(o[1]);
486 } 486 }
487 487
488 buildUnnamed976() { 488 buildUnnamed431() {
489 var o = new core.List<api.EventAttendee>(); 489 var o = new core.List<api.EventAttendee>();
490 o.add(buildEventAttendee()); 490 o.add(buildEventAttendee());
491 o.add(buildEventAttendee()); 491 o.add(buildEventAttendee());
492 return o; 492 return o;
493 } 493 }
494 494
495 checkUnnamed976(core.List<api.EventAttendee> o) { 495 checkUnnamed431(core.List<api.EventAttendee> o) {
496 unittest.expect(o, unittest.hasLength(2)); 496 unittest.expect(o, unittest.hasLength(2));
497 checkEventAttendee(o[0]); 497 checkEventAttendee(o[0]);
498 checkEventAttendee(o[1]); 498 checkEventAttendee(o[1]);
499 } 499 }
500 500
501 core.int buildCounterEventCreator = 0; 501 core.int buildCounterEventCreator = 0;
502 buildEventCreator() { 502 buildEventCreator() {
503 var o = new api.EventCreator(); 503 var o = new api.EventCreator();
504 buildCounterEventCreator++; 504 buildCounterEventCreator++;
505 if (buildCounterEventCreator < 3) { 505 if (buildCounterEventCreator < 3) {
(...skipping 10 matching lines...) Expand all
516 buildCounterEventCreator++; 516 buildCounterEventCreator++;
517 if (buildCounterEventCreator < 3) { 517 if (buildCounterEventCreator < 3) {
518 unittest.expect(o.displayName, unittest.equals('foo')); 518 unittest.expect(o.displayName, unittest.equals('foo'));
519 unittest.expect(o.email, unittest.equals('foo')); 519 unittest.expect(o.email, unittest.equals('foo'));
520 unittest.expect(o.id, unittest.equals('foo')); 520 unittest.expect(o.id, unittest.equals('foo'));
521 unittest.expect(o.self, unittest.isTrue); 521 unittest.expect(o.self, unittest.isTrue);
522 } 522 }
523 buildCounterEventCreator--; 523 buildCounterEventCreator--;
524 } 524 }
525 525
526 buildUnnamed977() { 526 buildUnnamed432() {
527 var o = new core.Map<core.String, core.String>(); 527 var o = new core.Map<core.String, core.String>();
528 o["x"] = "foo"; 528 o["x"] = "foo";
529 o["y"] = "foo"; 529 o["y"] = "foo";
530 return o; 530 return o;
531 } 531 }
532 532
533 checkUnnamed977(core.Map<core.String, core.String> o) { 533 checkUnnamed432(core.Map<core.String, core.String> o) {
534 unittest.expect(o, unittest.hasLength(2)); 534 unittest.expect(o, unittest.hasLength(2));
535 unittest.expect(o["x"], unittest.equals('foo')); 535 unittest.expect(o["x"], unittest.equals('foo'));
536 unittest.expect(o["y"], unittest.equals('foo')); 536 unittest.expect(o["y"], unittest.equals('foo'));
537 } 537 }
538 538
539 buildUnnamed978() { 539 buildUnnamed433() {
540 var o = new core.Map<core.String, core.String>(); 540 var o = new core.Map<core.String, core.String>();
541 o["x"] = "foo"; 541 o["x"] = "foo";
542 o["y"] = "foo"; 542 o["y"] = "foo";
543 return o; 543 return o;
544 } 544 }
545 545
546 checkUnnamed978(core.Map<core.String, core.String> o) { 546 checkUnnamed433(core.Map<core.String, core.String> o) {
547 unittest.expect(o, unittest.hasLength(2)); 547 unittest.expect(o, unittest.hasLength(2));
548 unittest.expect(o["x"], unittest.equals('foo')); 548 unittest.expect(o["x"], unittest.equals('foo'));
549 unittest.expect(o["y"], unittest.equals('foo')); 549 unittest.expect(o["y"], unittest.equals('foo'));
550 } 550 }
551 551
552 core.int buildCounterEventExtendedProperties = 0; 552 core.int buildCounterEventExtendedProperties = 0;
553 buildEventExtendedProperties() { 553 buildEventExtendedProperties() {
554 var o = new api.EventExtendedProperties(); 554 var o = new api.EventExtendedProperties();
555 buildCounterEventExtendedProperties++; 555 buildCounterEventExtendedProperties++;
556 if (buildCounterEventExtendedProperties < 3) { 556 if (buildCounterEventExtendedProperties < 3) {
557 o.private = buildUnnamed977(); 557 o.private = buildUnnamed432();
558 o.shared = buildUnnamed978(); 558 o.shared = buildUnnamed433();
559 } 559 }
560 buildCounterEventExtendedProperties--; 560 buildCounterEventExtendedProperties--;
561 return o; 561 return o;
562 } 562 }
563 563
564 checkEventExtendedProperties(api.EventExtendedProperties o) { 564 checkEventExtendedProperties(api.EventExtendedProperties o) {
565 buildCounterEventExtendedProperties++; 565 buildCounterEventExtendedProperties++;
566 if (buildCounterEventExtendedProperties < 3) { 566 if (buildCounterEventExtendedProperties < 3) {
567 checkUnnamed977(o.private); 567 checkUnnamed432(o.private);
568 checkUnnamed978(o.shared); 568 checkUnnamed433(o.shared);
569 } 569 }
570 buildCounterEventExtendedProperties--; 570 buildCounterEventExtendedProperties--;
571 } 571 }
572 572
573 buildUnnamed979() { 573 buildUnnamed434() {
574 var o = new core.Map<core.String, core.String>(); 574 var o = new core.Map<core.String, core.String>();
575 o["x"] = "foo"; 575 o["x"] = "foo";
576 o["y"] = "foo"; 576 o["y"] = "foo";
577 return o; 577 return o;
578 } 578 }
579 579
580 checkUnnamed979(core.Map<core.String, core.String> o) { 580 checkUnnamed434(core.Map<core.String, core.String> o) {
581 unittest.expect(o, unittest.hasLength(2)); 581 unittest.expect(o, unittest.hasLength(2));
582 unittest.expect(o["x"], unittest.equals('foo')); 582 unittest.expect(o["x"], unittest.equals('foo'));
583 unittest.expect(o["y"], unittest.equals('foo')); 583 unittest.expect(o["y"], unittest.equals('foo'));
584 } 584 }
585 585
586 core.int buildCounterEventGadget = 0; 586 core.int buildCounterEventGadget = 0;
587 buildEventGadget() { 587 buildEventGadget() {
588 var o = new api.EventGadget(); 588 var o = new api.EventGadget();
589 buildCounterEventGadget++; 589 buildCounterEventGadget++;
590 if (buildCounterEventGadget < 3) { 590 if (buildCounterEventGadget < 3) {
591 o.display = "foo"; 591 o.display = "foo";
592 o.height = 42; 592 o.height = 42;
593 o.iconLink = "foo"; 593 o.iconLink = "foo";
594 o.link = "foo"; 594 o.link = "foo";
595 o.preferences = buildUnnamed979(); 595 o.preferences = buildUnnamed434();
596 o.title = "foo"; 596 o.title = "foo";
597 o.type = "foo"; 597 o.type = "foo";
598 o.width = 42; 598 o.width = 42;
599 } 599 }
600 buildCounterEventGadget--; 600 buildCounterEventGadget--;
601 return o; 601 return o;
602 } 602 }
603 603
604 checkEventGadget(api.EventGadget o) { 604 checkEventGadget(api.EventGadget o) {
605 buildCounterEventGadget++; 605 buildCounterEventGadget++;
606 if (buildCounterEventGadget < 3) { 606 if (buildCounterEventGadget < 3) {
607 unittest.expect(o.display, unittest.equals('foo')); 607 unittest.expect(o.display, unittest.equals('foo'));
608 unittest.expect(o.height, unittest.equals(42)); 608 unittest.expect(o.height, unittest.equals(42));
609 unittest.expect(o.iconLink, unittest.equals('foo')); 609 unittest.expect(o.iconLink, unittest.equals('foo'));
610 unittest.expect(o.link, unittest.equals('foo')); 610 unittest.expect(o.link, unittest.equals('foo'));
611 checkUnnamed979(o.preferences); 611 checkUnnamed434(o.preferences);
612 unittest.expect(o.title, unittest.equals('foo')); 612 unittest.expect(o.title, unittest.equals('foo'));
613 unittest.expect(o.type, unittest.equals('foo')); 613 unittest.expect(o.type, unittest.equals('foo'));
614 unittest.expect(o.width, unittest.equals(42)); 614 unittest.expect(o.width, unittest.equals(42));
615 } 615 }
616 buildCounterEventGadget--; 616 buildCounterEventGadget--;
617 } 617 }
618 618
619 core.int buildCounterEventOrganizer = 0; 619 core.int buildCounterEventOrganizer = 0;
620 buildEventOrganizer() { 620 buildEventOrganizer() {
621 var o = new api.EventOrganizer(); 621 var o = new api.EventOrganizer();
(...skipping 12 matching lines...) Expand all
634 buildCounterEventOrganizer++; 634 buildCounterEventOrganizer++;
635 if (buildCounterEventOrganizer < 3) { 635 if (buildCounterEventOrganizer < 3) {
636 unittest.expect(o.displayName, unittest.equals('foo')); 636 unittest.expect(o.displayName, unittest.equals('foo'));
637 unittest.expect(o.email, unittest.equals('foo')); 637 unittest.expect(o.email, unittest.equals('foo'));
638 unittest.expect(o.id, unittest.equals('foo')); 638 unittest.expect(o.id, unittest.equals('foo'));
639 unittest.expect(o.self, unittest.isTrue); 639 unittest.expect(o.self, unittest.isTrue);
640 } 640 }
641 buildCounterEventOrganizer--; 641 buildCounterEventOrganizer--;
642 } 642 }
643 643
644 buildUnnamed980() { 644 buildUnnamed435() {
645 var o = new core.List<core.String>(); 645 var o = new core.List<core.String>();
646 o.add("foo"); 646 o.add("foo");
647 o.add("foo"); 647 o.add("foo");
648 return o; 648 return o;
649 } 649 }
650 650
651 checkUnnamed980(core.List<core.String> o) { 651 checkUnnamed435(core.List<core.String> o) {
652 unittest.expect(o, unittest.hasLength(2)); 652 unittest.expect(o, unittest.hasLength(2));
653 unittest.expect(o[0], unittest.equals('foo')); 653 unittest.expect(o[0], unittest.equals('foo'));
654 unittest.expect(o[1], unittest.equals('foo')); 654 unittest.expect(o[1], unittest.equals('foo'));
655 } 655 }
656 656
657 buildUnnamed981() { 657 buildUnnamed436() {
658 var o = new core.List<api.EventReminder>(); 658 var o = new core.List<api.EventReminder>();
659 o.add(buildEventReminder()); 659 o.add(buildEventReminder());
660 o.add(buildEventReminder()); 660 o.add(buildEventReminder());
661 return o; 661 return o;
662 } 662 }
663 663
664 checkUnnamed981(core.List<api.EventReminder> o) { 664 checkUnnamed436(core.List<api.EventReminder> o) {
665 unittest.expect(o, unittest.hasLength(2)); 665 unittest.expect(o, unittest.hasLength(2));
666 checkEventReminder(o[0]); 666 checkEventReminder(o[0]);
667 checkEventReminder(o[1]); 667 checkEventReminder(o[1]);
668 } 668 }
669 669
670 core.int buildCounterEventReminders = 0; 670 core.int buildCounterEventReminders = 0;
671 buildEventReminders() { 671 buildEventReminders() {
672 var o = new api.EventReminders(); 672 var o = new api.EventReminders();
673 buildCounterEventReminders++; 673 buildCounterEventReminders++;
674 if (buildCounterEventReminders < 3) { 674 if (buildCounterEventReminders < 3) {
675 o.overrides = buildUnnamed981(); 675 o.overrides = buildUnnamed436();
676 o.useDefault = true; 676 o.useDefault = true;
677 } 677 }
678 buildCounterEventReminders--; 678 buildCounterEventReminders--;
679 return o; 679 return o;
680 } 680 }
681 681
682 checkEventReminders(api.EventReminders o) { 682 checkEventReminders(api.EventReminders o) {
683 buildCounterEventReminders++; 683 buildCounterEventReminders++;
684 if (buildCounterEventReminders < 3) { 684 if (buildCounterEventReminders < 3) {
685 checkUnnamed981(o.overrides); 685 checkUnnamed436(o.overrides);
686 unittest.expect(o.useDefault, unittest.isTrue); 686 unittest.expect(o.useDefault, unittest.isTrue);
687 } 687 }
688 buildCounterEventReminders--; 688 buildCounterEventReminders--;
689 } 689 }
690 690
691 core.int buildCounterEventSource = 0; 691 core.int buildCounterEventSource = 0;
692 buildEventSource() { 692 buildEventSource() {
693 var o = new api.EventSource(); 693 var o = new api.EventSource();
694 buildCounterEventSource++; 694 buildCounterEventSource++;
695 if (buildCounterEventSource < 3) { 695 if (buildCounterEventSource < 3) {
(...skipping 12 matching lines...) Expand all
708 } 708 }
709 buildCounterEventSource--; 709 buildCounterEventSource--;
710 } 710 }
711 711
712 core.int buildCounterEvent = 0; 712 core.int buildCounterEvent = 0;
713 buildEvent() { 713 buildEvent() {
714 var o = new api.Event(); 714 var o = new api.Event();
715 buildCounterEvent++; 715 buildCounterEvent++;
716 if (buildCounterEvent < 3) { 716 if (buildCounterEvent < 3) {
717 o.anyoneCanAddSelf = true; 717 o.anyoneCanAddSelf = true;
718 o.attachments = buildUnnamed975(); 718 o.attachments = buildUnnamed430();
719 o.attendees = buildUnnamed976(); 719 o.attendees = buildUnnamed431();
720 o.attendeesOmitted = true; 720 o.attendeesOmitted = true;
721 o.colorId = "foo"; 721 o.colorId = "foo";
722 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 722 o.created = core.DateTime.parse("2002-02-27T14:01:02");
723 o.creator = buildEventCreator(); 723 o.creator = buildEventCreator();
724 o.description = "foo"; 724 o.description = "foo";
725 o.end = buildEventDateTime(); 725 o.end = buildEventDateTime();
726 o.endTimeUnspecified = true; 726 o.endTimeUnspecified = true;
727 o.etag = "foo"; 727 o.etag = "foo";
728 o.extendedProperties = buildEventExtendedProperties(); 728 o.extendedProperties = buildEventExtendedProperties();
729 o.gadget = buildEventGadget(); 729 o.gadget = buildEventGadget();
730 o.guestsCanInviteOthers = true; 730 o.guestsCanInviteOthers = true;
731 o.guestsCanModify = true; 731 o.guestsCanModify = true;
732 o.guestsCanSeeOtherGuests = true; 732 o.guestsCanSeeOtherGuests = true;
733 o.hangoutLink = "foo"; 733 o.hangoutLink = "foo";
734 o.htmlLink = "foo"; 734 o.htmlLink = "foo";
735 o.iCalUID = "foo"; 735 o.iCalUID = "foo";
736 o.id = "foo"; 736 o.id = "foo";
737 o.kind = "foo"; 737 o.kind = "foo";
738 o.location = "foo"; 738 o.location = "foo";
739 o.locked = true; 739 o.locked = true;
740 o.organizer = buildEventOrganizer(); 740 o.organizer = buildEventOrganizer();
741 o.originalStartTime = buildEventDateTime(); 741 o.originalStartTime = buildEventDateTime();
742 o.privateCopy = true; 742 o.privateCopy = true;
743 o.recurrence = buildUnnamed980(); 743 o.recurrence = buildUnnamed435();
744 o.recurringEventId = "foo"; 744 o.recurringEventId = "foo";
745 o.reminders = buildEventReminders(); 745 o.reminders = buildEventReminders();
746 o.sequence = 42; 746 o.sequence = 42;
747 o.source = buildEventSource(); 747 o.source = buildEventSource();
748 o.start = buildEventDateTime(); 748 o.start = buildEventDateTime();
749 o.status = "foo"; 749 o.status = "foo";
750 o.summary = "foo"; 750 o.summary = "foo";
751 o.transparency = "foo"; 751 o.transparency = "foo";
752 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 752 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
753 o.visibility = "foo"; 753 o.visibility = "foo";
754 } 754 }
755 buildCounterEvent--; 755 buildCounterEvent--;
756 return o; 756 return o;
757 } 757 }
758 758
759 checkEvent(api.Event o) { 759 checkEvent(api.Event o) {
760 buildCounterEvent++; 760 buildCounterEvent++;
761 if (buildCounterEvent < 3) { 761 if (buildCounterEvent < 3) {
762 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); 762 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue);
763 checkUnnamed975(o.attachments); 763 checkUnnamed430(o.attachments);
764 checkUnnamed976(o.attendees); 764 checkUnnamed431(o.attendees);
765 unittest.expect(o.attendeesOmitted, unittest.isTrue); 765 unittest.expect(o.attendeesOmitted, unittest.isTrue);
766 unittest.expect(o.colorId, unittest.equals('foo')); 766 unittest.expect(o.colorId, unittest.equals('foo'));
767 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 767 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
768 checkEventCreator(o.creator); 768 checkEventCreator(o.creator);
769 unittest.expect(o.description, unittest.equals('foo')); 769 unittest.expect(o.description, unittest.equals('foo'));
770 checkEventDateTime(o.end); 770 checkEventDateTime(o.end);
771 unittest.expect(o.endTimeUnspecified, unittest.isTrue); 771 unittest.expect(o.endTimeUnspecified, unittest.isTrue);
772 unittest.expect(o.etag, unittest.equals('foo')); 772 unittest.expect(o.etag, unittest.equals('foo'));
773 checkEventExtendedProperties(o.extendedProperties); 773 checkEventExtendedProperties(o.extendedProperties);
774 checkEventGadget(o.gadget); 774 checkEventGadget(o.gadget);
775 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue); 775 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue);
776 unittest.expect(o.guestsCanModify, unittest.isTrue); 776 unittest.expect(o.guestsCanModify, unittest.isTrue);
777 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue); 777 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue);
778 unittest.expect(o.hangoutLink, unittest.equals('foo')); 778 unittest.expect(o.hangoutLink, unittest.equals('foo'));
779 unittest.expect(o.htmlLink, unittest.equals('foo')); 779 unittest.expect(o.htmlLink, unittest.equals('foo'));
780 unittest.expect(o.iCalUID, unittest.equals('foo')); 780 unittest.expect(o.iCalUID, unittest.equals('foo'));
781 unittest.expect(o.id, unittest.equals('foo')); 781 unittest.expect(o.id, unittest.equals('foo'));
782 unittest.expect(o.kind, unittest.equals('foo')); 782 unittest.expect(o.kind, unittest.equals('foo'));
783 unittest.expect(o.location, unittest.equals('foo')); 783 unittest.expect(o.location, unittest.equals('foo'));
784 unittest.expect(o.locked, unittest.isTrue); 784 unittest.expect(o.locked, unittest.isTrue);
785 checkEventOrganizer(o.organizer); 785 checkEventOrganizer(o.organizer);
786 checkEventDateTime(o.originalStartTime); 786 checkEventDateTime(o.originalStartTime);
787 unittest.expect(o.privateCopy, unittest.isTrue); 787 unittest.expect(o.privateCopy, unittest.isTrue);
788 checkUnnamed980(o.recurrence); 788 checkUnnamed435(o.recurrence);
789 unittest.expect(o.recurringEventId, unittest.equals('foo')); 789 unittest.expect(o.recurringEventId, unittest.equals('foo'));
790 checkEventReminders(o.reminders); 790 checkEventReminders(o.reminders);
791 unittest.expect(o.sequence, unittest.equals(42)); 791 unittest.expect(o.sequence, unittest.equals(42));
792 checkEventSource(o.source); 792 checkEventSource(o.source);
793 checkEventDateTime(o.start); 793 checkEventDateTime(o.start);
794 unittest.expect(o.status, unittest.equals('foo')); 794 unittest.expect(o.status, unittest.equals('foo'));
795 unittest.expect(o.summary, unittest.equals('foo')); 795 unittest.expect(o.summary, unittest.equals('foo'));
796 unittest.expect(o.transparency, unittest.equals('foo')); 796 unittest.expect(o.transparency, unittest.equals('foo'));
797 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 797 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
798 unittest.expect(o.visibility, unittest.equals('foo')); 798 unittest.expect(o.visibility, unittest.equals('foo'));
799 } 799 }
800 buildCounterEvent--; 800 buildCounterEvent--;
801 } 801 }
802 802
803 core.int buildCounterEventAttachment = 0; 803 core.int buildCounterEventAttachment = 0;
804 buildEventAttachment() { 804 buildEventAttachment() {
805 var o = new api.EventAttachment(); 805 var o = new api.EventAttachment();
806 buildCounterEventAttachment++; 806 buildCounterEventAttachment++;
807 if (buildCounterEventAttachment < 3) { 807 if (buildCounterEventAttachment < 3) {
808 o.fileId = "foo";
808 o.fileUrl = "foo"; 809 o.fileUrl = "foo";
809 o.iconLink = "foo"; 810 o.iconLink = "foo";
810 o.mimeType = "foo"; 811 o.mimeType = "foo";
811 o.title = "foo"; 812 o.title = "foo";
812 } 813 }
813 buildCounterEventAttachment--; 814 buildCounterEventAttachment--;
814 return o; 815 return o;
815 } 816 }
816 817
817 checkEventAttachment(api.EventAttachment o) { 818 checkEventAttachment(api.EventAttachment o) {
818 buildCounterEventAttachment++; 819 buildCounterEventAttachment++;
819 if (buildCounterEventAttachment < 3) { 820 if (buildCounterEventAttachment < 3) {
821 unittest.expect(o.fileId, unittest.equals('foo'));
820 unittest.expect(o.fileUrl, unittest.equals('foo')); 822 unittest.expect(o.fileUrl, unittest.equals('foo'));
821 unittest.expect(o.iconLink, unittest.equals('foo')); 823 unittest.expect(o.iconLink, unittest.equals('foo'));
822 unittest.expect(o.mimeType, unittest.equals('foo')); 824 unittest.expect(o.mimeType, unittest.equals('foo'));
823 unittest.expect(o.title, unittest.equals('foo')); 825 unittest.expect(o.title, unittest.equals('foo'));
824 } 826 }
825 buildCounterEventAttachment--; 827 buildCounterEventAttachment--;
826 } 828 }
827 829
828 core.int buildCounterEventAttendee = 0; 830 core.int buildCounterEventAttendee = 0;
829 buildEventAttendee() { 831 buildEventAttendee() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 901
900 checkEventReminder(api.EventReminder o) { 902 checkEventReminder(api.EventReminder o) {
901 buildCounterEventReminder++; 903 buildCounterEventReminder++;
902 if (buildCounterEventReminder < 3) { 904 if (buildCounterEventReminder < 3) {
903 unittest.expect(o.method, unittest.equals('foo')); 905 unittest.expect(o.method, unittest.equals('foo'));
904 unittest.expect(o.minutes, unittest.equals(42)); 906 unittest.expect(o.minutes, unittest.equals(42));
905 } 907 }
906 buildCounterEventReminder--; 908 buildCounterEventReminder--;
907 } 909 }
908 910
909 buildUnnamed982() { 911 buildUnnamed437() {
910 var o = new core.List<api.EventReminder>(); 912 var o = new core.List<api.EventReminder>();
911 o.add(buildEventReminder()); 913 o.add(buildEventReminder());
912 o.add(buildEventReminder()); 914 o.add(buildEventReminder());
913 return o; 915 return o;
914 } 916 }
915 917
916 checkUnnamed982(core.List<api.EventReminder> o) { 918 checkUnnamed437(core.List<api.EventReminder> o) {
917 unittest.expect(o, unittest.hasLength(2)); 919 unittest.expect(o, unittest.hasLength(2));
918 checkEventReminder(o[0]); 920 checkEventReminder(o[0]);
919 checkEventReminder(o[1]); 921 checkEventReminder(o[1]);
920 } 922 }
921 923
922 buildUnnamed983() { 924 buildUnnamed438() {
923 var o = new core.List<api.Event>(); 925 var o = new core.List<api.Event>();
924 o.add(buildEvent()); 926 o.add(buildEvent());
925 o.add(buildEvent()); 927 o.add(buildEvent());
926 return o; 928 return o;
927 } 929 }
928 930
929 checkUnnamed983(core.List<api.Event> o) { 931 checkUnnamed438(core.List<api.Event> o) {
930 unittest.expect(o, unittest.hasLength(2)); 932 unittest.expect(o, unittest.hasLength(2));
931 checkEvent(o[0]); 933 checkEvent(o[0]);
932 checkEvent(o[1]); 934 checkEvent(o[1]);
933 } 935 }
934 936
935 core.int buildCounterEvents = 0; 937 core.int buildCounterEvents = 0;
936 buildEvents() { 938 buildEvents() {
937 var o = new api.Events(); 939 var o = new api.Events();
938 buildCounterEvents++; 940 buildCounterEvents++;
939 if (buildCounterEvents < 3) { 941 if (buildCounterEvents < 3) {
940 o.accessRole = "foo"; 942 o.accessRole = "foo";
941 o.defaultReminders = buildUnnamed982(); 943 o.defaultReminders = buildUnnamed437();
942 o.description = "foo"; 944 o.description = "foo";
943 o.etag = "foo"; 945 o.etag = "foo";
944 o.items = buildUnnamed983(); 946 o.items = buildUnnamed438();
945 o.kind = "foo"; 947 o.kind = "foo";
946 o.nextPageToken = "foo"; 948 o.nextPageToken = "foo";
947 o.nextSyncToken = "foo"; 949 o.nextSyncToken = "foo";
948 o.summary = "foo"; 950 o.summary = "foo";
949 o.timeZone = "foo"; 951 o.timeZone = "foo";
950 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 952 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
951 } 953 }
952 buildCounterEvents--; 954 buildCounterEvents--;
953 return o; 955 return o;
954 } 956 }
955 957
956 checkEvents(api.Events o) { 958 checkEvents(api.Events o) {
957 buildCounterEvents++; 959 buildCounterEvents++;
958 if (buildCounterEvents < 3) { 960 if (buildCounterEvents < 3) {
959 unittest.expect(o.accessRole, unittest.equals('foo')); 961 unittest.expect(o.accessRole, unittest.equals('foo'));
960 checkUnnamed982(o.defaultReminders); 962 checkUnnamed437(o.defaultReminders);
961 unittest.expect(o.description, unittest.equals('foo')); 963 unittest.expect(o.description, unittest.equals('foo'));
962 unittest.expect(o.etag, unittest.equals('foo')); 964 unittest.expect(o.etag, unittest.equals('foo'));
963 checkUnnamed983(o.items); 965 checkUnnamed438(o.items);
964 unittest.expect(o.kind, unittest.equals('foo')); 966 unittest.expect(o.kind, unittest.equals('foo'));
965 unittest.expect(o.nextPageToken, unittest.equals('foo')); 967 unittest.expect(o.nextPageToken, unittest.equals('foo'));
966 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 968 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
967 unittest.expect(o.summary, unittest.equals('foo')); 969 unittest.expect(o.summary, unittest.equals('foo'));
968 unittest.expect(o.timeZone, unittest.equals('foo')); 970 unittest.expect(o.timeZone, unittest.equals('foo'));
969 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 971 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
970 } 972 }
971 buildCounterEvents--; 973 buildCounterEvents--;
972 } 974 }
973 975
974 buildUnnamed984() { 976 buildUnnamed439() {
975 var o = new core.List<api.TimePeriod>(); 977 var o = new core.List<api.TimePeriod>();
976 o.add(buildTimePeriod()); 978 o.add(buildTimePeriod());
977 o.add(buildTimePeriod()); 979 o.add(buildTimePeriod());
978 return o; 980 return o;
979 } 981 }
980 982
981 checkUnnamed984(core.List<api.TimePeriod> o) { 983 checkUnnamed439(core.List<api.TimePeriod> o) {
982 unittest.expect(o, unittest.hasLength(2)); 984 unittest.expect(o, unittest.hasLength(2));
983 checkTimePeriod(o[0]); 985 checkTimePeriod(o[0]);
984 checkTimePeriod(o[1]); 986 checkTimePeriod(o[1]);
985 } 987 }
986 988
987 buildUnnamed985() { 989 buildUnnamed440() {
988 var o = new core.List<api.Error>(); 990 var o = new core.List<api.Error>();
989 o.add(buildError()); 991 o.add(buildError());
990 o.add(buildError()); 992 o.add(buildError());
991 return o; 993 return o;
992 } 994 }
993 995
994 checkUnnamed985(core.List<api.Error> o) { 996 checkUnnamed440(core.List<api.Error> o) {
995 unittest.expect(o, unittest.hasLength(2)); 997 unittest.expect(o, unittest.hasLength(2));
996 checkError(o[0]); 998 checkError(o[0]);
997 checkError(o[1]); 999 checkError(o[1]);
998 } 1000 }
999 1001
1000 core.int buildCounterFreeBusyCalendar = 0; 1002 core.int buildCounterFreeBusyCalendar = 0;
1001 buildFreeBusyCalendar() { 1003 buildFreeBusyCalendar() {
1002 var o = new api.FreeBusyCalendar(); 1004 var o = new api.FreeBusyCalendar();
1003 buildCounterFreeBusyCalendar++; 1005 buildCounterFreeBusyCalendar++;
1004 if (buildCounterFreeBusyCalendar < 3) { 1006 if (buildCounterFreeBusyCalendar < 3) {
1005 o.busy = buildUnnamed984(); 1007 o.busy = buildUnnamed439();
1006 o.errors = buildUnnamed985(); 1008 o.errors = buildUnnamed440();
1007 } 1009 }
1008 buildCounterFreeBusyCalendar--; 1010 buildCounterFreeBusyCalendar--;
1009 return o; 1011 return o;
1010 } 1012 }
1011 1013
1012 checkFreeBusyCalendar(api.FreeBusyCalendar o) { 1014 checkFreeBusyCalendar(api.FreeBusyCalendar o) {
1013 buildCounterFreeBusyCalendar++; 1015 buildCounterFreeBusyCalendar++;
1014 if (buildCounterFreeBusyCalendar < 3) { 1016 if (buildCounterFreeBusyCalendar < 3) {
1015 checkUnnamed984(o.busy); 1017 checkUnnamed439(o.busy);
1016 checkUnnamed985(o.errors); 1018 checkUnnamed440(o.errors);
1017 } 1019 }
1018 buildCounterFreeBusyCalendar--; 1020 buildCounterFreeBusyCalendar--;
1019 } 1021 }
1020 1022
1021 buildUnnamed986() { 1023 buildUnnamed441() {
1022 var o = new core.List<core.String>(); 1024 var o = new core.List<core.String>();
1023 o.add("foo"); 1025 o.add("foo");
1024 o.add("foo"); 1026 o.add("foo");
1025 return o; 1027 return o;
1026 } 1028 }
1027 1029
1028 checkUnnamed986(core.List<core.String> o) { 1030 checkUnnamed441(core.List<core.String> o) {
1029 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1030 unittest.expect(o[0], unittest.equals('foo')); 1032 unittest.expect(o[0], unittest.equals('foo'));
1031 unittest.expect(o[1], unittest.equals('foo')); 1033 unittest.expect(o[1], unittest.equals('foo'));
1032 } 1034 }
1033 1035
1034 buildUnnamed987() { 1036 buildUnnamed442() {
1035 var o = new core.List<api.Error>(); 1037 var o = new core.List<api.Error>();
1036 o.add(buildError()); 1038 o.add(buildError());
1037 o.add(buildError()); 1039 o.add(buildError());
1038 return o; 1040 return o;
1039 } 1041 }
1040 1042
1041 checkUnnamed987(core.List<api.Error> o) { 1043 checkUnnamed442(core.List<api.Error> o) {
1042 unittest.expect(o, unittest.hasLength(2)); 1044 unittest.expect(o, unittest.hasLength(2));
1043 checkError(o[0]); 1045 checkError(o[0]);
1044 checkError(o[1]); 1046 checkError(o[1]);
1045 } 1047 }
1046 1048
1047 core.int buildCounterFreeBusyGroup = 0; 1049 core.int buildCounterFreeBusyGroup = 0;
1048 buildFreeBusyGroup() { 1050 buildFreeBusyGroup() {
1049 var o = new api.FreeBusyGroup(); 1051 var o = new api.FreeBusyGroup();
1050 buildCounterFreeBusyGroup++; 1052 buildCounterFreeBusyGroup++;
1051 if (buildCounterFreeBusyGroup < 3) { 1053 if (buildCounterFreeBusyGroup < 3) {
1052 o.calendars = buildUnnamed986(); 1054 o.calendars = buildUnnamed441();
1053 o.errors = buildUnnamed987(); 1055 o.errors = buildUnnamed442();
1054 } 1056 }
1055 buildCounterFreeBusyGroup--; 1057 buildCounterFreeBusyGroup--;
1056 return o; 1058 return o;
1057 } 1059 }
1058 1060
1059 checkFreeBusyGroup(api.FreeBusyGroup o) { 1061 checkFreeBusyGroup(api.FreeBusyGroup o) {
1060 buildCounterFreeBusyGroup++; 1062 buildCounterFreeBusyGroup++;
1061 if (buildCounterFreeBusyGroup < 3) { 1063 if (buildCounterFreeBusyGroup < 3) {
1062 checkUnnamed986(o.calendars); 1064 checkUnnamed441(o.calendars);
1063 checkUnnamed987(o.errors); 1065 checkUnnamed442(o.errors);
1064 } 1066 }
1065 buildCounterFreeBusyGroup--; 1067 buildCounterFreeBusyGroup--;
1066 } 1068 }
1067 1069
1068 buildUnnamed988() { 1070 buildUnnamed443() {
1069 var o = new core.List<api.FreeBusyRequestItem>(); 1071 var o = new core.List<api.FreeBusyRequestItem>();
1070 o.add(buildFreeBusyRequestItem()); 1072 o.add(buildFreeBusyRequestItem());
1071 o.add(buildFreeBusyRequestItem()); 1073 o.add(buildFreeBusyRequestItem());
1072 return o; 1074 return o;
1073 } 1075 }
1074 1076
1075 checkUnnamed988(core.List<api.FreeBusyRequestItem> o) { 1077 checkUnnamed443(core.List<api.FreeBusyRequestItem> o) {
1076 unittest.expect(o, unittest.hasLength(2)); 1078 unittest.expect(o, unittest.hasLength(2));
1077 checkFreeBusyRequestItem(o[0]); 1079 checkFreeBusyRequestItem(o[0]);
1078 checkFreeBusyRequestItem(o[1]); 1080 checkFreeBusyRequestItem(o[1]);
1079 } 1081 }
1080 1082
1081 core.int buildCounterFreeBusyRequest = 0; 1083 core.int buildCounterFreeBusyRequest = 0;
1082 buildFreeBusyRequest() { 1084 buildFreeBusyRequest() {
1083 var o = new api.FreeBusyRequest(); 1085 var o = new api.FreeBusyRequest();
1084 buildCounterFreeBusyRequest++; 1086 buildCounterFreeBusyRequest++;
1085 if (buildCounterFreeBusyRequest < 3) { 1087 if (buildCounterFreeBusyRequest < 3) {
1086 o.calendarExpansionMax = 42; 1088 o.calendarExpansionMax = 42;
1087 o.groupExpansionMax = 42; 1089 o.groupExpansionMax = 42;
1088 o.items = buildUnnamed988(); 1090 o.items = buildUnnamed443();
1089 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1091 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1090 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1092 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1091 o.timeZone = "foo"; 1093 o.timeZone = "foo";
1092 } 1094 }
1093 buildCounterFreeBusyRequest--; 1095 buildCounterFreeBusyRequest--;
1094 return o; 1096 return o;
1095 } 1097 }
1096 1098
1097 checkFreeBusyRequest(api.FreeBusyRequest o) { 1099 checkFreeBusyRequest(api.FreeBusyRequest o) {
1098 buildCounterFreeBusyRequest++; 1100 buildCounterFreeBusyRequest++;
1099 if (buildCounterFreeBusyRequest < 3) { 1101 if (buildCounterFreeBusyRequest < 3) {
1100 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); 1102 unittest.expect(o.calendarExpansionMax, unittest.equals(42));
1101 unittest.expect(o.groupExpansionMax, unittest.equals(42)); 1103 unittest.expect(o.groupExpansionMax, unittest.equals(42));
1102 checkUnnamed988(o.items); 1104 checkUnnamed443(o.items);
1103 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1105 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1104 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1106 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1105 unittest.expect(o.timeZone, unittest.equals('foo')); 1107 unittest.expect(o.timeZone, unittest.equals('foo'));
1106 } 1108 }
1107 buildCounterFreeBusyRequest--; 1109 buildCounterFreeBusyRequest--;
1108 } 1110 }
1109 1111
1110 core.int buildCounterFreeBusyRequestItem = 0; 1112 core.int buildCounterFreeBusyRequestItem = 0;
1111 buildFreeBusyRequestItem() { 1113 buildFreeBusyRequestItem() {
1112 var o = new api.FreeBusyRequestItem(); 1114 var o = new api.FreeBusyRequestItem();
1113 buildCounterFreeBusyRequestItem++; 1115 buildCounterFreeBusyRequestItem++;
1114 if (buildCounterFreeBusyRequestItem < 3) { 1116 if (buildCounterFreeBusyRequestItem < 3) {
1115 o.id = "foo"; 1117 o.id = "foo";
1116 } 1118 }
1117 buildCounterFreeBusyRequestItem--; 1119 buildCounterFreeBusyRequestItem--;
1118 return o; 1120 return o;
1119 } 1121 }
1120 1122
1121 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { 1123 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) {
1122 buildCounterFreeBusyRequestItem++; 1124 buildCounterFreeBusyRequestItem++;
1123 if (buildCounterFreeBusyRequestItem < 3) { 1125 if (buildCounterFreeBusyRequestItem < 3) {
1124 unittest.expect(o.id, unittest.equals('foo')); 1126 unittest.expect(o.id, unittest.equals('foo'));
1125 } 1127 }
1126 buildCounterFreeBusyRequestItem--; 1128 buildCounterFreeBusyRequestItem--;
1127 } 1129 }
1128 1130
1129 buildUnnamed989() { 1131 buildUnnamed444() {
1130 var o = new core.Map<core.String, api.FreeBusyCalendar>(); 1132 var o = new core.Map<core.String, api.FreeBusyCalendar>();
1131 o["x"] = buildFreeBusyCalendar(); 1133 o["x"] = buildFreeBusyCalendar();
1132 o["y"] = buildFreeBusyCalendar(); 1134 o["y"] = buildFreeBusyCalendar();
1133 return o; 1135 return o;
1134 } 1136 }
1135 1137
1136 checkUnnamed989(core.Map<core.String, api.FreeBusyCalendar> o) { 1138 checkUnnamed444(core.Map<core.String, api.FreeBusyCalendar> o) {
1137 unittest.expect(o, unittest.hasLength(2)); 1139 unittest.expect(o, unittest.hasLength(2));
1138 checkFreeBusyCalendar(o["x"]); 1140 checkFreeBusyCalendar(o["x"]);
1139 checkFreeBusyCalendar(o["y"]); 1141 checkFreeBusyCalendar(o["y"]);
1140 } 1142 }
1141 1143
1142 buildUnnamed990() { 1144 buildUnnamed445() {
1143 var o = new core.Map<core.String, api.FreeBusyGroup>(); 1145 var o = new core.Map<core.String, api.FreeBusyGroup>();
1144 o["x"] = buildFreeBusyGroup(); 1146 o["x"] = buildFreeBusyGroup();
1145 o["y"] = buildFreeBusyGroup(); 1147 o["y"] = buildFreeBusyGroup();
1146 return o; 1148 return o;
1147 } 1149 }
1148 1150
1149 checkUnnamed990(core.Map<core.String, api.FreeBusyGroup> o) { 1151 checkUnnamed445(core.Map<core.String, api.FreeBusyGroup> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1152 unittest.expect(o, unittest.hasLength(2));
1151 checkFreeBusyGroup(o["x"]); 1153 checkFreeBusyGroup(o["x"]);
1152 checkFreeBusyGroup(o["y"]); 1154 checkFreeBusyGroup(o["y"]);
1153 } 1155 }
1154 1156
1155 core.int buildCounterFreeBusyResponse = 0; 1157 core.int buildCounterFreeBusyResponse = 0;
1156 buildFreeBusyResponse() { 1158 buildFreeBusyResponse() {
1157 var o = new api.FreeBusyResponse(); 1159 var o = new api.FreeBusyResponse();
1158 buildCounterFreeBusyResponse++; 1160 buildCounterFreeBusyResponse++;
1159 if (buildCounterFreeBusyResponse < 3) { 1161 if (buildCounterFreeBusyResponse < 3) {
1160 o.calendars = buildUnnamed989(); 1162 o.calendars = buildUnnamed444();
1161 o.groups = buildUnnamed990(); 1163 o.groups = buildUnnamed445();
1162 o.kind = "foo"; 1164 o.kind = "foo";
1163 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1165 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1164 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1166 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1165 } 1167 }
1166 buildCounterFreeBusyResponse--; 1168 buildCounterFreeBusyResponse--;
1167 return o; 1169 return o;
1168 } 1170 }
1169 1171
1170 checkFreeBusyResponse(api.FreeBusyResponse o) { 1172 checkFreeBusyResponse(api.FreeBusyResponse o) {
1171 buildCounterFreeBusyResponse++; 1173 buildCounterFreeBusyResponse++;
1172 if (buildCounterFreeBusyResponse < 3) { 1174 if (buildCounterFreeBusyResponse < 3) {
1173 checkUnnamed989(o.calendars); 1175 checkUnnamed444(o.calendars);
1174 checkUnnamed990(o.groups); 1176 checkUnnamed445(o.groups);
1175 unittest.expect(o.kind, unittest.equals('foo')); 1177 unittest.expect(o.kind, unittest.equals('foo'));
1176 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1178 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1177 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1179 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1178 } 1180 }
1179 buildCounterFreeBusyResponse--; 1181 buildCounterFreeBusyResponse--;
1180 } 1182 }
1181 1183
1182 core.int buildCounterSetting = 0; 1184 core.int buildCounterSetting = 0;
1183 buildSetting() { 1185 buildSetting() {
1184 var o = new api.Setting(); 1186 var o = new api.Setting();
(...skipping 12 matching lines...) Expand all
1197 buildCounterSetting++; 1199 buildCounterSetting++;
1198 if (buildCounterSetting < 3) { 1200 if (buildCounterSetting < 3) {
1199 unittest.expect(o.etag, unittest.equals('foo')); 1201 unittest.expect(o.etag, unittest.equals('foo'));
1200 unittest.expect(o.id, unittest.equals('foo')); 1202 unittest.expect(o.id, unittest.equals('foo'));
1201 unittest.expect(o.kind, unittest.equals('foo')); 1203 unittest.expect(o.kind, unittest.equals('foo'));
1202 unittest.expect(o.value, unittest.equals('foo')); 1204 unittest.expect(o.value, unittest.equals('foo'));
1203 } 1205 }
1204 buildCounterSetting--; 1206 buildCounterSetting--;
1205 } 1207 }
1206 1208
1207 buildUnnamed991() { 1209 buildUnnamed446() {
1208 var o = new core.List<api.Setting>(); 1210 var o = new core.List<api.Setting>();
1209 o.add(buildSetting()); 1211 o.add(buildSetting());
1210 o.add(buildSetting()); 1212 o.add(buildSetting());
1211 return o; 1213 return o;
1212 } 1214 }
1213 1215
1214 checkUnnamed991(core.List<api.Setting> o) { 1216 checkUnnamed446(core.List<api.Setting> o) {
1215 unittest.expect(o, unittest.hasLength(2)); 1217 unittest.expect(o, unittest.hasLength(2));
1216 checkSetting(o[0]); 1218 checkSetting(o[0]);
1217 checkSetting(o[1]); 1219 checkSetting(o[1]);
1218 } 1220 }
1219 1221
1220 core.int buildCounterSettings = 0; 1222 core.int buildCounterSettings = 0;
1221 buildSettings() { 1223 buildSettings() {
1222 var o = new api.Settings(); 1224 var o = new api.Settings();
1223 buildCounterSettings++; 1225 buildCounterSettings++;
1224 if (buildCounterSettings < 3) { 1226 if (buildCounterSettings < 3) {
1225 o.etag = "foo"; 1227 o.etag = "foo";
1226 o.items = buildUnnamed991(); 1228 o.items = buildUnnamed446();
1227 o.kind = "foo"; 1229 o.kind = "foo";
1228 o.nextPageToken = "foo"; 1230 o.nextPageToken = "foo";
1229 o.nextSyncToken = "foo"; 1231 o.nextSyncToken = "foo";
1230 } 1232 }
1231 buildCounterSettings--; 1233 buildCounterSettings--;
1232 return o; 1234 return o;
1233 } 1235 }
1234 1236
1235 checkSettings(api.Settings o) { 1237 checkSettings(api.Settings o) {
1236 buildCounterSettings++; 1238 buildCounterSettings++;
1237 if (buildCounterSettings < 3) { 1239 if (buildCounterSettings < 3) {
1238 unittest.expect(o.etag, unittest.equals('foo')); 1240 unittest.expect(o.etag, unittest.equals('foo'));
1239 checkUnnamed991(o.items); 1241 checkUnnamed446(o.items);
1240 unittest.expect(o.kind, unittest.equals('foo')); 1242 unittest.expect(o.kind, unittest.equals('foo'));
1241 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1243 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1242 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 1244 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
1243 } 1245 }
1244 buildCounterSettings--; 1246 buildCounterSettings--;
1245 } 1247 }
1246 1248
1247 core.int buildCounterTimePeriod = 0; 1249 core.int buildCounterTimePeriod = 0;
1248 buildTimePeriod() { 1250 buildTimePeriod() {
1249 var o = new api.TimePeriod(); 1251 var o = new api.TimePeriod();
1250 buildCounterTimePeriod++; 1252 buildCounterTimePeriod++;
1251 if (buildCounterTimePeriod < 3) { 1253 if (buildCounterTimePeriod < 3) {
1252 o.end = core.DateTime.parse("2002-02-27T14:01:02"); 1254 o.end = core.DateTime.parse("2002-02-27T14:01:02");
1253 o.start = core.DateTime.parse("2002-02-27T14:01:02"); 1255 o.start = core.DateTime.parse("2002-02-27T14:01:02");
1254 } 1256 }
1255 buildCounterTimePeriod--; 1257 buildCounterTimePeriod--;
1256 return o; 1258 return o;
1257 } 1259 }
1258 1260
1259 checkTimePeriod(api.TimePeriod o) { 1261 checkTimePeriod(api.TimePeriod o) {
1260 buildCounterTimePeriod++; 1262 buildCounterTimePeriod++;
1261 if (buildCounterTimePeriod < 3) { 1263 if (buildCounterTimePeriod < 3) {
1262 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01 :02"))); 1264 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01 :02")));
1263 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14: 01:02"))); 1265 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14: 01:02")));
1264 } 1266 }
1265 buildCounterTimePeriod--; 1267 buildCounterTimePeriod--;
1266 } 1268 }
1267 1269
1268 buildUnnamed992() { 1270 buildUnnamed447() {
1269 var o = new core.List<core.String>(); 1271 var o = new core.List<core.String>();
1270 o.add("foo"); 1272 o.add("foo");
1271 o.add("foo"); 1273 o.add("foo");
1272 return o; 1274 return o;
1273 } 1275 }
1274 1276
1275 checkUnnamed992(core.List<core.String> o) { 1277 checkUnnamed447(core.List<core.String> o) {
1276 unittest.expect(o, unittest.hasLength(2)); 1278 unittest.expect(o, unittest.hasLength(2));
1277 unittest.expect(o[0], unittest.equals('foo')); 1279 unittest.expect(o[0], unittest.equals('foo'));
1278 unittest.expect(o[1], unittest.equals('foo')); 1280 unittest.expect(o[1], unittest.equals('foo'));
1279 } 1281 }
1280 1282
1281 buildUnnamed993() { 1283 buildUnnamed448() {
1282 var o = new core.List<core.String>(); 1284 var o = new core.List<core.String>();
1283 o.add("foo"); 1285 o.add("foo");
1284 o.add("foo"); 1286 o.add("foo");
1285 return o; 1287 return o;
1286 } 1288 }
1287 1289
1288 checkUnnamed993(core.List<core.String> o) { 1290 checkUnnamed448(core.List<core.String> o) {
1289 unittest.expect(o, unittest.hasLength(2)); 1291 unittest.expect(o, unittest.hasLength(2));
1290 unittest.expect(o[0], unittest.equals('foo')); 1292 unittest.expect(o[0], unittest.equals('foo'));
1291 unittest.expect(o[1], unittest.equals('foo')); 1293 unittest.expect(o[1], unittest.equals('foo'));
1292 } 1294 }
1293 1295
1294 buildUnnamed994() { 1296 buildUnnamed449() {
1295 var o = new core.List<core.String>(); 1297 var o = new core.List<core.String>();
1296 o.add("foo"); 1298 o.add("foo");
1297 o.add("foo"); 1299 o.add("foo");
1298 return o; 1300 return o;
1299 } 1301 }
1300 1302
1301 checkUnnamed994(core.List<core.String> o) { 1303 checkUnnamed449(core.List<core.String> o) {
1302 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1303 unittest.expect(o[0], unittest.equals('foo')); 1305 unittest.expect(o[0], unittest.equals('foo'));
1304 unittest.expect(o[1], unittest.equals('foo')); 1306 unittest.expect(o[1], unittest.equals('foo'));
1305 } 1307 }
1306 1308
1307 buildUnnamed995() { 1309 buildUnnamed450() {
1308 var o = new core.List<core.String>(); 1310 var o = new core.List<core.String>();
1309 o.add("foo"); 1311 o.add("foo");
1310 o.add("foo"); 1312 o.add("foo");
1311 return o; 1313 return o;
1312 } 1314 }
1313 1315
1314 checkUnnamed995(core.List<core.String> o) { 1316 checkUnnamed450(core.List<core.String> o) {
1315 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1316 unittest.expect(o[0], unittest.equals('foo')); 1318 unittest.expect(o[0], unittest.equals('foo'));
1317 unittest.expect(o[1], unittest.equals('foo')); 1319 unittest.expect(o[1], unittest.equals('foo'));
1318 } 1320 }
1319 1321
1320 1322
1321 main() { 1323 main() {
1322 unittest.group("obj-schema-Acl", () { 1324 unittest.group("obj-schema-Acl", () {
1323 unittest.test("to-json--from-json", () { 1325 unittest.test("to-json--from-json", () {
1324 var o = buildAcl(); 1326 var o = buildAcl();
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 3141
3140 var mock = new HttpServerMock(); 3142 var mock = new HttpServerMock();
3141 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3143 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3142 var arg_calendarId = "foo"; 3144 var arg_calendarId = "foo";
3143 var arg_alwaysIncludeEmail = true; 3145 var arg_alwaysIncludeEmail = true;
3144 var arg_iCalUID = "foo"; 3146 var arg_iCalUID = "foo";
3145 var arg_maxAttendees = 42; 3147 var arg_maxAttendees = 42;
3146 var arg_maxResults = 42; 3148 var arg_maxResults = 42;
3147 var arg_orderBy = "foo"; 3149 var arg_orderBy = "foo";
3148 var arg_pageToken = "foo"; 3150 var arg_pageToken = "foo";
3149 var arg_privateExtendedProperty = buildUnnamed992(); 3151 var arg_privateExtendedProperty = buildUnnamed447();
3150 var arg_q = "foo"; 3152 var arg_q = "foo";
3151 var arg_sharedExtendedProperty = buildUnnamed993(); 3153 var arg_sharedExtendedProperty = buildUnnamed448();
3152 var arg_showDeleted = true; 3154 var arg_showDeleted = true;
3153 var arg_showHiddenInvitations = true; 3155 var arg_showHiddenInvitations = true;
3154 var arg_singleEvents = true; 3156 var arg_singleEvents = true;
3155 var arg_syncToken = "foo"; 3157 var arg_syncToken = "foo";
3156 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3158 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3157 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3159 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3158 var arg_timeZone = "foo"; 3160 var arg_timeZone = "foo";
3159 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3161 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3162 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3161 var path = (req.url).path; 3163 var path = (req.url).path;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 var mock = new HttpServerMock(); 3489 var mock = new HttpServerMock();
3488 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3490 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3489 var arg_request = buildChannel(); 3491 var arg_request = buildChannel();
3490 var arg_calendarId = "foo"; 3492 var arg_calendarId = "foo";
3491 var arg_alwaysIncludeEmail = true; 3493 var arg_alwaysIncludeEmail = true;
3492 var arg_iCalUID = "foo"; 3494 var arg_iCalUID = "foo";
3493 var arg_maxAttendees = 42; 3495 var arg_maxAttendees = 42;
3494 var arg_maxResults = 42; 3496 var arg_maxResults = 42;
3495 var arg_orderBy = "foo"; 3497 var arg_orderBy = "foo";
3496 var arg_pageToken = "foo"; 3498 var arg_pageToken = "foo";
3497 var arg_privateExtendedProperty = buildUnnamed994(); 3499 var arg_privateExtendedProperty = buildUnnamed449();
3498 var arg_q = "foo"; 3500 var arg_q = "foo";
3499 var arg_sharedExtendedProperty = buildUnnamed995(); 3501 var arg_sharedExtendedProperty = buildUnnamed450();
3500 var arg_showDeleted = true; 3502 var arg_showDeleted = true;
3501 var arg_showHiddenInvitations = true; 3503 var arg_showHiddenInvitations = true;
3502 var arg_singleEvents = true; 3504 var arg_singleEvents = true;
3503 var arg_syncToken = "foo"; 3505 var arg_syncToken = "foo";
3504 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3506 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3505 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3507 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3506 var arg_timeZone = "foo"; 3508 var arg_timeZone = "foo";
3507 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3509 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3510 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3509 var obj = new api.Channel.fromJson(json); 3511 var obj = new api.Channel.fromJson(json);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { 3785 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) {
3784 checkChannel(response); 3786 checkChannel(response);
3785 }))); 3787 })));
3786 }); 3788 });
3787 3789
3788 }); 3790 });
3789 3791
3790 3792
3791 } 3793 }
3792 3794
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698