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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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 buildUnnamed969() { 54 buildUnnamed976() {
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 checkUnnamed969(core.List<api.AclRule> o) { 61 checkUnnamed976(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 = buildUnnamed969(); 73 o.items = buildUnnamed976();
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 checkUnnamed969(o.items); 86 checkUnnamed976(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 buildUnnamed970() { 173 buildUnnamed977() {
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 checkUnnamed970(core.List<api.CalendarListEntry> o) { 180 checkUnnamed977(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 = buildUnnamed970(); 192 o.items = buildUnnamed977();
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 checkUnnamed970(o.items); 205 checkUnnamed977(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 buildUnnamed971() { 213 buildUnnamed978() {
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 checkUnnamed971(core.List<api.EventReminder> o) { 220 checkUnnamed978(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 buildUnnamed972() { 226 buildUnnamed979() {
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 checkUnnamed972(core.List<api.CalendarNotification> o) { 233 checkUnnamed979(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 = buildUnnamed972(); 244 o.notifications = buildUnnamed979();
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 checkUnnamed972(o.notifications); 253 checkUnnamed979(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 = buildUnnamed971(); 266 o.defaultReminders = buildUnnamed978();
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 checkUnnamed971(o.defaultReminders); 292 checkUnnamed978(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 buildUnnamed973() { 332 buildUnnamed980() {
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 checkUnnamed973(core.Map<core.String, core.String> o) { 339 checkUnnamed980(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 = buildUnnamed973(); 354 o.params = buildUnnamed980();
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 checkUnnamed973(o.params); 372 checkUnnamed980(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 buildUnnamed974() { 403 buildUnnamed981() {
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 checkUnnamed974(core.Map<core.String, api.ColorDefinition> o) { 410 checkUnnamed981(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 buildUnnamed975() { 416 buildUnnamed982() {
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 checkUnnamed975(core.Map<core.String, api.ColorDefinition> o) { 423 checkUnnamed982(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 = buildUnnamed974(); 434 o.calendar = buildUnnamed981();
435 o.event = buildUnnamed975(); 435 o.event = buildUnnamed982();
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 checkUnnamed974(o.calendar); 446 checkUnnamed981(o.calendar);
447 checkUnnamed975(o.event); 447 checkUnnamed982(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 buildUnnamed976() { 475 buildUnnamed983() {
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 checkUnnamed976(core.List<api.EventAttachment> o) { 482 checkUnnamed983(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 buildUnnamed977() { 488 buildUnnamed984() {
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 checkUnnamed977(core.List<api.EventAttendee> o) { 495 checkUnnamed984(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 buildUnnamed978() { 526 buildUnnamed985() {
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 checkUnnamed978(core.Map<core.String, core.String> o) { 533 checkUnnamed985(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 buildUnnamed979() { 539 buildUnnamed986() {
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 checkUnnamed979(core.Map<core.String, core.String> o) { 546 checkUnnamed986(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 = buildUnnamed978(); 557 o.private = buildUnnamed985();
558 o.shared = buildUnnamed979(); 558 o.shared = buildUnnamed986();
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 checkUnnamed978(o.private); 567 checkUnnamed985(o.private);
568 checkUnnamed979(o.shared); 568 checkUnnamed986(o.shared);
569 } 569 }
570 buildCounterEventExtendedProperties--; 570 buildCounterEventExtendedProperties--;
571 } 571 }
572 572
573 buildUnnamed980() { 573 buildUnnamed987() {
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 checkUnnamed980(core.Map<core.String, core.String> o) { 580 checkUnnamed987(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 = buildUnnamed980(); 595 o.preferences = buildUnnamed987();
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 checkUnnamed980(o.preferences); 611 checkUnnamed987(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 buildUnnamed981() { 644 buildUnnamed988() {
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 checkUnnamed981(core.List<core.String> o) { 651 checkUnnamed988(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 buildUnnamed982() { 657 buildUnnamed989() {
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 checkUnnamed982(core.List<api.EventReminder> o) { 664 checkUnnamed989(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 = buildUnnamed982(); 675 o.overrides = buildUnnamed989();
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 checkUnnamed982(o.overrides); 685 checkUnnamed989(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 = buildUnnamed976(); 718 o.attachments = buildUnnamed983();
719 o.attendees = buildUnnamed977(); 719 o.attendees = buildUnnamed984();
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 = buildUnnamed981(); 743 o.recurrence = buildUnnamed988();
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 checkUnnamed976(o.attachments); 763 checkUnnamed983(o.attachments);
764 checkUnnamed977(o.attendees); 764 checkUnnamed984(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 checkUnnamed981(o.recurrence); 788 checkUnnamed988(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'));
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 901
902 checkEventReminder(api.EventReminder o) { 902 checkEventReminder(api.EventReminder o) {
903 buildCounterEventReminder++; 903 buildCounterEventReminder++;
904 if (buildCounterEventReminder < 3) { 904 if (buildCounterEventReminder < 3) {
905 unittest.expect(o.method, unittest.equals('foo')); 905 unittest.expect(o.method, unittest.equals('foo'));
906 unittest.expect(o.minutes, unittest.equals(42)); 906 unittest.expect(o.minutes, unittest.equals(42));
907 } 907 }
908 buildCounterEventReminder--; 908 buildCounterEventReminder--;
909 } 909 }
910 910
911 buildUnnamed983() { 911 buildUnnamed990() {
912 var o = new core.List<api.EventReminder>(); 912 var o = new core.List<api.EventReminder>();
913 o.add(buildEventReminder()); 913 o.add(buildEventReminder());
914 o.add(buildEventReminder()); 914 o.add(buildEventReminder());
915 return o; 915 return o;
916 } 916 }
917 917
918 checkUnnamed983(core.List<api.EventReminder> o) { 918 checkUnnamed990(core.List<api.EventReminder> o) {
919 unittest.expect(o, unittest.hasLength(2)); 919 unittest.expect(o, unittest.hasLength(2));
920 checkEventReminder(o[0]); 920 checkEventReminder(o[0]);
921 checkEventReminder(o[1]); 921 checkEventReminder(o[1]);
922 } 922 }
923 923
924 buildUnnamed984() { 924 buildUnnamed991() {
925 var o = new core.List<api.Event>(); 925 var o = new core.List<api.Event>();
926 o.add(buildEvent()); 926 o.add(buildEvent());
927 o.add(buildEvent()); 927 o.add(buildEvent());
928 return o; 928 return o;
929 } 929 }
930 930
931 checkUnnamed984(core.List<api.Event> o) { 931 checkUnnamed991(core.List<api.Event> o) {
932 unittest.expect(o, unittest.hasLength(2)); 932 unittest.expect(o, unittest.hasLength(2));
933 checkEvent(o[0]); 933 checkEvent(o[0]);
934 checkEvent(o[1]); 934 checkEvent(o[1]);
935 } 935 }
936 936
937 core.int buildCounterEvents = 0; 937 core.int buildCounterEvents = 0;
938 buildEvents() { 938 buildEvents() {
939 var o = new api.Events(); 939 var o = new api.Events();
940 buildCounterEvents++; 940 buildCounterEvents++;
941 if (buildCounterEvents < 3) { 941 if (buildCounterEvents < 3) {
942 o.accessRole = "foo"; 942 o.accessRole = "foo";
943 o.defaultReminders = buildUnnamed983(); 943 o.defaultReminders = buildUnnamed990();
944 o.description = "foo"; 944 o.description = "foo";
945 o.etag = "foo"; 945 o.etag = "foo";
946 o.items = buildUnnamed984(); 946 o.items = buildUnnamed991();
947 o.kind = "foo"; 947 o.kind = "foo";
948 o.nextPageToken = "foo"; 948 o.nextPageToken = "foo";
949 o.nextSyncToken = "foo"; 949 o.nextSyncToken = "foo";
950 o.summary = "foo"; 950 o.summary = "foo";
951 o.timeZone = "foo"; 951 o.timeZone = "foo";
952 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 952 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
953 } 953 }
954 buildCounterEvents--; 954 buildCounterEvents--;
955 return o; 955 return o;
956 } 956 }
957 957
958 checkEvents(api.Events o) { 958 checkEvents(api.Events o) {
959 buildCounterEvents++; 959 buildCounterEvents++;
960 if (buildCounterEvents < 3) { 960 if (buildCounterEvents < 3) {
961 unittest.expect(o.accessRole, unittest.equals('foo')); 961 unittest.expect(o.accessRole, unittest.equals('foo'));
962 checkUnnamed983(o.defaultReminders); 962 checkUnnamed990(o.defaultReminders);
963 unittest.expect(o.description, unittest.equals('foo')); 963 unittest.expect(o.description, unittest.equals('foo'));
964 unittest.expect(o.etag, unittest.equals('foo')); 964 unittest.expect(o.etag, unittest.equals('foo'));
965 checkUnnamed984(o.items); 965 checkUnnamed991(o.items);
966 unittest.expect(o.kind, unittest.equals('foo')); 966 unittest.expect(o.kind, unittest.equals('foo'));
967 unittest.expect(o.nextPageToken, unittest.equals('foo')); 967 unittest.expect(o.nextPageToken, unittest.equals('foo'));
968 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 968 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
969 unittest.expect(o.summary, unittest.equals('foo')); 969 unittest.expect(o.summary, unittest.equals('foo'));
970 unittest.expect(o.timeZone, unittest.equals('foo')); 970 unittest.expect(o.timeZone, unittest.equals('foo'));
971 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")));
972 } 972 }
973 buildCounterEvents--; 973 buildCounterEvents--;
974 } 974 }
975 975
976 buildUnnamed985() { 976 buildUnnamed992() {
977 var o = new core.List<api.TimePeriod>(); 977 var o = new core.List<api.TimePeriod>();
978 o.add(buildTimePeriod()); 978 o.add(buildTimePeriod());
979 o.add(buildTimePeriod()); 979 o.add(buildTimePeriod());
980 return o; 980 return o;
981 } 981 }
982 982
983 checkUnnamed985(core.List<api.TimePeriod> o) { 983 checkUnnamed992(core.List<api.TimePeriod> o) {
984 unittest.expect(o, unittest.hasLength(2)); 984 unittest.expect(o, unittest.hasLength(2));
985 checkTimePeriod(o[0]); 985 checkTimePeriod(o[0]);
986 checkTimePeriod(o[1]); 986 checkTimePeriod(o[1]);
987 } 987 }
988 988
989 buildUnnamed986() { 989 buildUnnamed993() {
990 var o = new core.List<api.Error>(); 990 var o = new core.List<api.Error>();
991 o.add(buildError()); 991 o.add(buildError());
992 o.add(buildError()); 992 o.add(buildError());
993 return o; 993 return o;
994 } 994 }
995 995
996 checkUnnamed986(core.List<api.Error> o) { 996 checkUnnamed993(core.List<api.Error> o) {
997 unittest.expect(o, unittest.hasLength(2)); 997 unittest.expect(o, unittest.hasLength(2));
998 checkError(o[0]); 998 checkError(o[0]);
999 checkError(o[1]); 999 checkError(o[1]);
1000 } 1000 }
1001 1001
1002 core.int buildCounterFreeBusyCalendar = 0; 1002 core.int buildCounterFreeBusyCalendar = 0;
1003 buildFreeBusyCalendar() { 1003 buildFreeBusyCalendar() {
1004 var o = new api.FreeBusyCalendar(); 1004 var o = new api.FreeBusyCalendar();
1005 buildCounterFreeBusyCalendar++; 1005 buildCounterFreeBusyCalendar++;
1006 if (buildCounterFreeBusyCalendar < 3) { 1006 if (buildCounterFreeBusyCalendar < 3) {
1007 o.busy = buildUnnamed985(); 1007 o.busy = buildUnnamed992();
1008 o.errors = buildUnnamed986(); 1008 o.errors = buildUnnamed993();
1009 } 1009 }
1010 buildCounterFreeBusyCalendar--; 1010 buildCounterFreeBusyCalendar--;
1011 return o; 1011 return o;
1012 } 1012 }
1013 1013
1014 checkFreeBusyCalendar(api.FreeBusyCalendar o) { 1014 checkFreeBusyCalendar(api.FreeBusyCalendar o) {
1015 buildCounterFreeBusyCalendar++; 1015 buildCounterFreeBusyCalendar++;
1016 if (buildCounterFreeBusyCalendar < 3) { 1016 if (buildCounterFreeBusyCalendar < 3) {
1017 checkUnnamed985(o.busy); 1017 checkUnnamed992(o.busy);
1018 checkUnnamed986(o.errors); 1018 checkUnnamed993(o.errors);
1019 } 1019 }
1020 buildCounterFreeBusyCalendar--; 1020 buildCounterFreeBusyCalendar--;
1021 } 1021 }
1022 1022
1023 buildUnnamed987() { 1023 buildUnnamed994() {
1024 var o = new core.List<core.String>(); 1024 var o = new core.List<core.String>();
1025 o.add("foo"); 1025 o.add("foo");
1026 o.add("foo"); 1026 o.add("foo");
1027 return o; 1027 return o;
1028 } 1028 }
1029 1029
1030 checkUnnamed987(core.List<core.String> o) { 1030 checkUnnamed994(core.List<core.String> o) {
1031 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1032 unittest.expect(o[0], unittest.equals('foo')); 1032 unittest.expect(o[0], unittest.equals('foo'));
1033 unittest.expect(o[1], unittest.equals('foo')); 1033 unittest.expect(o[1], unittest.equals('foo'));
1034 } 1034 }
1035 1035
1036 buildUnnamed988() { 1036 buildUnnamed995() {
1037 var o = new core.List<api.Error>(); 1037 var o = new core.List<api.Error>();
1038 o.add(buildError()); 1038 o.add(buildError());
1039 o.add(buildError()); 1039 o.add(buildError());
1040 return o; 1040 return o;
1041 } 1041 }
1042 1042
1043 checkUnnamed988(core.List<api.Error> o) { 1043 checkUnnamed995(core.List<api.Error> o) {
1044 unittest.expect(o, unittest.hasLength(2)); 1044 unittest.expect(o, unittest.hasLength(2));
1045 checkError(o[0]); 1045 checkError(o[0]);
1046 checkError(o[1]); 1046 checkError(o[1]);
1047 } 1047 }
1048 1048
1049 core.int buildCounterFreeBusyGroup = 0; 1049 core.int buildCounterFreeBusyGroup = 0;
1050 buildFreeBusyGroup() { 1050 buildFreeBusyGroup() {
1051 var o = new api.FreeBusyGroup(); 1051 var o = new api.FreeBusyGroup();
1052 buildCounterFreeBusyGroup++; 1052 buildCounterFreeBusyGroup++;
1053 if (buildCounterFreeBusyGroup < 3) { 1053 if (buildCounterFreeBusyGroup < 3) {
1054 o.calendars = buildUnnamed987(); 1054 o.calendars = buildUnnamed994();
1055 o.errors = buildUnnamed988(); 1055 o.errors = buildUnnamed995();
1056 } 1056 }
1057 buildCounterFreeBusyGroup--; 1057 buildCounterFreeBusyGroup--;
1058 return o; 1058 return o;
1059 } 1059 }
1060 1060
1061 checkFreeBusyGroup(api.FreeBusyGroup o) { 1061 checkFreeBusyGroup(api.FreeBusyGroup o) {
1062 buildCounterFreeBusyGroup++; 1062 buildCounterFreeBusyGroup++;
1063 if (buildCounterFreeBusyGroup < 3) { 1063 if (buildCounterFreeBusyGroup < 3) {
1064 checkUnnamed987(o.calendars); 1064 checkUnnamed994(o.calendars);
1065 checkUnnamed988(o.errors); 1065 checkUnnamed995(o.errors);
1066 } 1066 }
1067 buildCounterFreeBusyGroup--; 1067 buildCounterFreeBusyGroup--;
1068 } 1068 }
1069 1069
1070 buildUnnamed989() { 1070 buildUnnamed996() {
1071 var o = new core.List<api.FreeBusyRequestItem>(); 1071 var o = new core.List<api.FreeBusyRequestItem>();
1072 o.add(buildFreeBusyRequestItem()); 1072 o.add(buildFreeBusyRequestItem());
1073 o.add(buildFreeBusyRequestItem()); 1073 o.add(buildFreeBusyRequestItem());
1074 return o; 1074 return o;
1075 } 1075 }
1076 1076
1077 checkUnnamed989(core.List<api.FreeBusyRequestItem> o) { 1077 checkUnnamed996(core.List<api.FreeBusyRequestItem> o) {
1078 unittest.expect(o, unittest.hasLength(2)); 1078 unittest.expect(o, unittest.hasLength(2));
1079 checkFreeBusyRequestItem(o[0]); 1079 checkFreeBusyRequestItem(o[0]);
1080 checkFreeBusyRequestItem(o[1]); 1080 checkFreeBusyRequestItem(o[1]);
1081 } 1081 }
1082 1082
1083 core.int buildCounterFreeBusyRequest = 0; 1083 core.int buildCounterFreeBusyRequest = 0;
1084 buildFreeBusyRequest() { 1084 buildFreeBusyRequest() {
1085 var o = new api.FreeBusyRequest(); 1085 var o = new api.FreeBusyRequest();
1086 buildCounterFreeBusyRequest++; 1086 buildCounterFreeBusyRequest++;
1087 if (buildCounterFreeBusyRequest < 3) { 1087 if (buildCounterFreeBusyRequest < 3) {
1088 o.calendarExpansionMax = 42; 1088 o.calendarExpansionMax = 42;
1089 o.groupExpansionMax = 42; 1089 o.groupExpansionMax = 42;
1090 o.items = buildUnnamed989(); 1090 o.items = buildUnnamed996();
1091 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1091 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1092 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1092 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1093 o.timeZone = "foo"; 1093 o.timeZone = "foo";
1094 } 1094 }
1095 buildCounterFreeBusyRequest--; 1095 buildCounterFreeBusyRequest--;
1096 return o; 1096 return o;
1097 } 1097 }
1098 1098
1099 checkFreeBusyRequest(api.FreeBusyRequest o) { 1099 checkFreeBusyRequest(api.FreeBusyRequest o) {
1100 buildCounterFreeBusyRequest++; 1100 buildCounterFreeBusyRequest++;
1101 if (buildCounterFreeBusyRequest < 3) { 1101 if (buildCounterFreeBusyRequest < 3) {
1102 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); 1102 unittest.expect(o.calendarExpansionMax, unittest.equals(42));
1103 unittest.expect(o.groupExpansionMax, unittest.equals(42)); 1103 unittest.expect(o.groupExpansionMax, unittest.equals(42));
1104 checkUnnamed989(o.items); 1104 checkUnnamed996(o.items);
1105 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")));
1106 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")));
1107 unittest.expect(o.timeZone, unittest.equals('foo')); 1107 unittest.expect(o.timeZone, unittest.equals('foo'));
1108 } 1108 }
1109 buildCounterFreeBusyRequest--; 1109 buildCounterFreeBusyRequest--;
1110 } 1110 }
1111 1111
1112 core.int buildCounterFreeBusyRequestItem = 0; 1112 core.int buildCounterFreeBusyRequestItem = 0;
1113 buildFreeBusyRequestItem() { 1113 buildFreeBusyRequestItem() {
1114 var o = new api.FreeBusyRequestItem(); 1114 var o = new api.FreeBusyRequestItem();
1115 buildCounterFreeBusyRequestItem++; 1115 buildCounterFreeBusyRequestItem++;
1116 if (buildCounterFreeBusyRequestItem < 3) { 1116 if (buildCounterFreeBusyRequestItem < 3) {
1117 o.id = "foo"; 1117 o.id = "foo";
1118 } 1118 }
1119 buildCounterFreeBusyRequestItem--; 1119 buildCounterFreeBusyRequestItem--;
1120 return o; 1120 return o;
1121 } 1121 }
1122 1122
1123 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { 1123 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) {
1124 buildCounterFreeBusyRequestItem++; 1124 buildCounterFreeBusyRequestItem++;
1125 if (buildCounterFreeBusyRequestItem < 3) { 1125 if (buildCounterFreeBusyRequestItem < 3) {
1126 unittest.expect(o.id, unittest.equals('foo')); 1126 unittest.expect(o.id, unittest.equals('foo'));
1127 } 1127 }
1128 buildCounterFreeBusyRequestItem--; 1128 buildCounterFreeBusyRequestItem--;
1129 } 1129 }
1130 1130
1131 buildUnnamed990() { 1131 buildUnnamed997() {
1132 var o = new core.Map<core.String, api.FreeBusyCalendar>(); 1132 var o = new core.Map<core.String, api.FreeBusyCalendar>();
1133 o["x"] = buildFreeBusyCalendar(); 1133 o["x"] = buildFreeBusyCalendar();
1134 o["y"] = buildFreeBusyCalendar(); 1134 o["y"] = buildFreeBusyCalendar();
1135 return o; 1135 return o;
1136 } 1136 }
1137 1137
1138 checkUnnamed990(core.Map<core.String, api.FreeBusyCalendar> o) { 1138 checkUnnamed997(core.Map<core.String, api.FreeBusyCalendar> o) {
1139 unittest.expect(o, unittest.hasLength(2)); 1139 unittest.expect(o, unittest.hasLength(2));
1140 checkFreeBusyCalendar(o["x"]); 1140 checkFreeBusyCalendar(o["x"]);
1141 checkFreeBusyCalendar(o["y"]); 1141 checkFreeBusyCalendar(o["y"]);
1142 } 1142 }
1143 1143
1144 buildUnnamed991() { 1144 buildUnnamed998() {
1145 var o = new core.Map<core.String, api.FreeBusyGroup>(); 1145 var o = new core.Map<core.String, api.FreeBusyGroup>();
1146 o["x"] = buildFreeBusyGroup(); 1146 o["x"] = buildFreeBusyGroup();
1147 o["y"] = buildFreeBusyGroup(); 1147 o["y"] = buildFreeBusyGroup();
1148 return o; 1148 return o;
1149 } 1149 }
1150 1150
1151 checkUnnamed991(core.Map<core.String, api.FreeBusyGroup> o) { 1151 checkUnnamed998(core.Map<core.String, api.FreeBusyGroup> o) {
1152 unittest.expect(o, unittest.hasLength(2)); 1152 unittest.expect(o, unittest.hasLength(2));
1153 checkFreeBusyGroup(o["x"]); 1153 checkFreeBusyGroup(o["x"]);
1154 checkFreeBusyGroup(o["y"]); 1154 checkFreeBusyGroup(o["y"]);
1155 } 1155 }
1156 1156
1157 core.int buildCounterFreeBusyResponse = 0; 1157 core.int buildCounterFreeBusyResponse = 0;
1158 buildFreeBusyResponse() { 1158 buildFreeBusyResponse() {
1159 var o = new api.FreeBusyResponse(); 1159 var o = new api.FreeBusyResponse();
1160 buildCounterFreeBusyResponse++; 1160 buildCounterFreeBusyResponse++;
1161 if (buildCounterFreeBusyResponse < 3) { 1161 if (buildCounterFreeBusyResponse < 3) {
1162 o.calendars = buildUnnamed990(); 1162 o.calendars = buildUnnamed997();
1163 o.groups = buildUnnamed991(); 1163 o.groups = buildUnnamed998();
1164 o.kind = "foo"; 1164 o.kind = "foo";
1165 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1165 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1166 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1166 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1167 } 1167 }
1168 buildCounterFreeBusyResponse--; 1168 buildCounterFreeBusyResponse--;
1169 return o; 1169 return o;
1170 } 1170 }
1171 1171
1172 checkFreeBusyResponse(api.FreeBusyResponse o) { 1172 checkFreeBusyResponse(api.FreeBusyResponse o) {
1173 buildCounterFreeBusyResponse++; 1173 buildCounterFreeBusyResponse++;
1174 if (buildCounterFreeBusyResponse < 3) { 1174 if (buildCounterFreeBusyResponse < 3) {
1175 checkUnnamed990(o.calendars); 1175 checkUnnamed997(o.calendars);
1176 checkUnnamed991(o.groups); 1176 checkUnnamed998(o.groups);
1177 unittest.expect(o.kind, unittest.equals('foo')); 1177 unittest.expect(o.kind, unittest.equals('foo'));
1178 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")));
1179 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")));
1180 } 1180 }
1181 buildCounterFreeBusyResponse--; 1181 buildCounterFreeBusyResponse--;
1182 } 1182 }
1183 1183
1184 core.int buildCounterSetting = 0; 1184 core.int buildCounterSetting = 0;
1185 buildSetting() { 1185 buildSetting() {
1186 var o = new api.Setting(); 1186 var o = new api.Setting();
(...skipping 12 matching lines...) Expand all
1199 buildCounterSetting++; 1199 buildCounterSetting++;
1200 if (buildCounterSetting < 3) { 1200 if (buildCounterSetting < 3) {
1201 unittest.expect(o.etag, unittest.equals('foo')); 1201 unittest.expect(o.etag, unittest.equals('foo'));
1202 unittest.expect(o.id, unittest.equals('foo')); 1202 unittest.expect(o.id, unittest.equals('foo'));
1203 unittest.expect(o.kind, unittest.equals('foo')); 1203 unittest.expect(o.kind, unittest.equals('foo'));
1204 unittest.expect(o.value, unittest.equals('foo')); 1204 unittest.expect(o.value, unittest.equals('foo'));
1205 } 1205 }
1206 buildCounterSetting--; 1206 buildCounterSetting--;
1207 } 1207 }
1208 1208
1209 buildUnnamed992() { 1209 buildUnnamed999() {
1210 var o = new core.List<api.Setting>(); 1210 var o = new core.List<api.Setting>();
1211 o.add(buildSetting()); 1211 o.add(buildSetting());
1212 o.add(buildSetting()); 1212 o.add(buildSetting());
1213 return o; 1213 return o;
1214 } 1214 }
1215 1215
1216 checkUnnamed992(core.List<api.Setting> o) { 1216 checkUnnamed999(core.List<api.Setting> o) {
1217 unittest.expect(o, unittest.hasLength(2)); 1217 unittest.expect(o, unittest.hasLength(2));
1218 checkSetting(o[0]); 1218 checkSetting(o[0]);
1219 checkSetting(o[1]); 1219 checkSetting(o[1]);
1220 } 1220 }
1221 1221
1222 core.int buildCounterSettings = 0; 1222 core.int buildCounterSettings = 0;
1223 buildSettings() { 1223 buildSettings() {
1224 var o = new api.Settings(); 1224 var o = new api.Settings();
1225 buildCounterSettings++; 1225 buildCounterSettings++;
1226 if (buildCounterSettings < 3) { 1226 if (buildCounterSettings < 3) {
1227 o.etag = "foo"; 1227 o.etag = "foo";
1228 o.items = buildUnnamed992(); 1228 o.items = buildUnnamed999();
1229 o.kind = "foo"; 1229 o.kind = "foo";
1230 o.nextPageToken = "foo"; 1230 o.nextPageToken = "foo";
1231 o.nextSyncToken = "foo"; 1231 o.nextSyncToken = "foo";
1232 } 1232 }
1233 buildCounterSettings--; 1233 buildCounterSettings--;
1234 return o; 1234 return o;
1235 } 1235 }
1236 1236
1237 checkSettings(api.Settings o) { 1237 checkSettings(api.Settings o) {
1238 buildCounterSettings++; 1238 buildCounterSettings++;
1239 if (buildCounterSettings < 3) { 1239 if (buildCounterSettings < 3) {
1240 unittest.expect(o.etag, unittest.equals('foo')); 1240 unittest.expect(o.etag, unittest.equals('foo'));
1241 checkUnnamed992(o.items); 1241 checkUnnamed999(o.items);
1242 unittest.expect(o.kind, unittest.equals('foo')); 1242 unittest.expect(o.kind, unittest.equals('foo'));
1243 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1243 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1244 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 1244 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
1245 } 1245 }
1246 buildCounterSettings--; 1246 buildCounterSettings--;
1247 } 1247 }
1248 1248
1249 core.int buildCounterTimePeriod = 0; 1249 core.int buildCounterTimePeriod = 0;
1250 buildTimePeriod() { 1250 buildTimePeriod() {
1251 var o = new api.TimePeriod(); 1251 var o = new api.TimePeriod();
1252 buildCounterTimePeriod++; 1252 buildCounterTimePeriod++;
1253 if (buildCounterTimePeriod < 3) { 1253 if (buildCounterTimePeriod < 3) {
1254 o.end = core.DateTime.parse("2002-02-27T14:01:02"); 1254 o.end = core.DateTime.parse("2002-02-27T14:01:02");
1255 o.start = core.DateTime.parse("2002-02-27T14:01:02"); 1255 o.start = core.DateTime.parse("2002-02-27T14:01:02");
1256 } 1256 }
1257 buildCounterTimePeriod--; 1257 buildCounterTimePeriod--;
1258 return o; 1258 return o;
1259 } 1259 }
1260 1260
1261 checkTimePeriod(api.TimePeriod o) { 1261 checkTimePeriod(api.TimePeriod o) {
1262 buildCounterTimePeriod++; 1262 buildCounterTimePeriod++;
1263 if (buildCounterTimePeriod < 3) { 1263 if (buildCounterTimePeriod < 3) {
1264 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")));
1265 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")));
1266 } 1266 }
1267 buildCounterTimePeriod--; 1267 buildCounterTimePeriod--;
1268 } 1268 }
1269 1269
1270 buildUnnamed993() { 1270 buildUnnamed1000() {
1271 var o = new core.List<core.String>(); 1271 var o = new core.List<core.String>();
1272 o.add("foo"); 1272 o.add("foo");
1273 o.add("foo"); 1273 o.add("foo");
1274 return o; 1274 return o;
1275 } 1275 }
1276 1276
1277 checkUnnamed993(core.List<core.String> o) { 1277 checkUnnamed1000(core.List<core.String> o) {
1278 unittest.expect(o, unittest.hasLength(2)); 1278 unittest.expect(o, unittest.hasLength(2));
1279 unittest.expect(o[0], unittest.equals('foo')); 1279 unittest.expect(o[0], unittest.equals('foo'));
1280 unittest.expect(o[1], unittest.equals('foo')); 1280 unittest.expect(o[1], unittest.equals('foo'));
1281 } 1281 }
1282 1282
1283 buildUnnamed994() { 1283 buildUnnamed1001() {
1284 var o = new core.List<core.String>(); 1284 var o = new core.List<core.String>();
1285 o.add("foo"); 1285 o.add("foo");
1286 o.add("foo"); 1286 o.add("foo");
1287 return o; 1287 return o;
1288 } 1288 }
1289 1289
1290 checkUnnamed994(core.List<core.String> o) { 1290 checkUnnamed1001(core.List<core.String> o) {
1291 unittest.expect(o, unittest.hasLength(2)); 1291 unittest.expect(o, unittest.hasLength(2));
1292 unittest.expect(o[0], unittest.equals('foo')); 1292 unittest.expect(o[0], unittest.equals('foo'));
1293 unittest.expect(o[1], unittest.equals('foo')); 1293 unittest.expect(o[1], unittest.equals('foo'));
1294 } 1294 }
1295 1295
1296 buildUnnamed995() { 1296 buildUnnamed1002() {
1297 var o = new core.List<core.String>(); 1297 var o = new core.List<core.String>();
1298 o.add("foo"); 1298 o.add("foo");
1299 o.add("foo"); 1299 o.add("foo");
1300 return o; 1300 return o;
1301 } 1301 }
1302 1302
1303 checkUnnamed995(core.List<core.String> o) { 1303 checkUnnamed1002(core.List<core.String> o) {
1304 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1305 unittest.expect(o[0], unittest.equals('foo')); 1305 unittest.expect(o[0], unittest.equals('foo'));
1306 unittest.expect(o[1], unittest.equals('foo')); 1306 unittest.expect(o[1], unittest.equals('foo'));
1307 } 1307 }
1308 1308
1309 buildUnnamed996() { 1309 buildUnnamed1003() {
1310 var o = new core.List<core.String>(); 1310 var o = new core.List<core.String>();
1311 o.add("foo"); 1311 o.add("foo");
1312 o.add("foo"); 1312 o.add("foo");
1313 return o; 1313 return o;
1314 } 1314 }
1315 1315
1316 checkUnnamed996(core.List<core.String> o) { 1316 checkUnnamed1003(core.List<core.String> o) {
1317 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1318 unittest.expect(o[0], unittest.equals('foo')); 1318 unittest.expect(o[0], unittest.equals('foo'));
1319 unittest.expect(o[1], unittest.equals('foo')); 1319 unittest.expect(o[1], unittest.equals('foo'));
1320 } 1320 }
1321 1321
1322 1322
1323 main() { 1323 main() {
1324 unittest.group("obj-schema-Acl", () { 1324 unittest.group("obj-schema-Acl", () {
1325 unittest.test("to-json--from-json", () { 1325 unittest.test("to-json--from-json", () {
1326 var o = buildAcl(); 1326 var o = buildAcl();
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 3141
3142 var mock = new HttpServerMock(); 3142 var mock = new HttpServerMock();
3143 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3143 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3144 var arg_calendarId = "foo"; 3144 var arg_calendarId = "foo";
3145 var arg_alwaysIncludeEmail = true; 3145 var arg_alwaysIncludeEmail = true;
3146 var arg_iCalUID = "foo"; 3146 var arg_iCalUID = "foo";
3147 var arg_maxAttendees = 42; 3147 var arg_maxAttendees = 42;
3148 var arg_maxResults = 42; 3148 var arg_maxResults = 42;
3149 var arg_orderBy = "foo"; 3149 var arg_orderBy = "foo";
3150 var arg_pageToken = "foo"; 3150 var arg_pageToken = "foo";
3151 var arg_privateExtendedProperty = buildUnnamed993(); 3151 var arg_privateExtendedProperty = buildUnnamed1000();
3152 var arg_q = "foo"; 3152 var arg_q = "foo";
3153 var arg_sharedExtendedProperty = buildUnnamed994(); 3153 var arg_sharedExtendedProperty = buildUnnamed1001();
3154 var arg_showDeleted = true; 3154 var arg_showDeleted = true;
3155 var arg_showHiddenInvitations = true; 3155 var arg_showHiddenInvitations = true;
3156 var arg_singleEvents = true; 3156 var arg_singleEvents = true;
3157 var arg_syncToken = "foo"; 3157 var arg_syncToken = "foo";
3158 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3158 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3159 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3159 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3160 var arg_timeZone = "foo"; 3160 var arg_timeZone = "foo";
3161 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3161 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3162 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3162 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3163 var path = (req.url).path; 3163 var path = (req.url).path;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 var mock = new HttpServerMock(); 3489 var mock = new HttpServerMock();
3490 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3490 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3491 var arg_request = buildChannel(); 3491 var arg_request = buildChannel();
3492 var arg_calendarId = "foo"; 3492 var arg_calendarId = "foo";
3493 var arg_alwaysIncludeEmail = true; 3493 var arg_alwaysIncludeEmail = true;
3494 var arg_iCalUID = "foo"; 3494 var arg_iCalUID = "foo";
3495 var arg_maxAttendees = 42; 3495 var arg_maxAttendees = 42;
3496 var arg_maxResults = 42; 3496 var arg_maxResults = 42;
3497 var arg_orderBy = "foo"; 3497 var arg_orderBy = "foo";
3498 var arg_pageToken = "foo"; 3498 var arg_pageToken = "foo";
3499 var arg_privateExtendedProperty = buildUnnamed995(); 3499 var arg_privateExtendedProperty = buildUnnamed1002();
3500 var arg_q = "foo"; 3500 var arg_q = "foo";
3501 var arg_sharedExtendedProperty = buildUnnamed996(); 3501 var arg_sharedExtendedProperty = buildUnnamed1003();
3502 var arg_showDeleted = true; 3502 var arg_showDeleted = true;
3503 var arg_showHiddenInvitations = true; 3503 var arg_showHiddenInvitations = true;
3504 var arg_singleEvents = true; 3504 var arg_singleEvents = true;
3505 var arg_syncToken = "foo"; 3505 var arg_syncToken = "foo";
3506 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3506 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3507 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3507 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3508 var arg_timeZone = "foo"; 3508 var arg_timeZone = "foo";
3509 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3509 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3510 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3510 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3511 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
3785 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) {
3786 checkChannel(response); 3786 checkChannel(response);
3787 }))); 3787 })));
3788 }); 3788 });
3789 3789
3790 }); 3790 });
3791 3791
3792 3792
3793 } 3793 }
3794 3794
OLDNEW
« no previous file with comments | « generated/googleapis/test/books/v1_test.dart ('k') | generated/googleapis/test/civicinfo/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698