Chromium Code Reviews

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

Issue 698403003: Api roll 5: 2014-11-05 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/calendar/v3.dart' as api; 15 import 'package:googleapis/calendar/v3.dart' as api;
16 16
17 17
18 18
19 buildUnnamed675() { 19 buildUnnamed343() {
20 var o = new core.List<api.AclRule>(); 20 var o = new core.List<api.AclRule>();
21 o.add(buildAclRule()); 21 o.add(buildAclRule());
22 o.add(buildAclRule()); 22 o.add(buildAclRule());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed675(core.List<api.AclRule> o) { 26 checkUnnamed343(core.List<api.AclRule> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkAclRule(o[0]); 28 checkAclRule(o[0]);
29 checkAclRule(o[1]); 29 checkAclRule(o[1]);
30 } 30 }
31 31
32 core.int buildCounterAcl = 0; 32 core.int buildCounterAcl = 0;
33 buildAcl() { 33 buildAcl() {
34 var o = new api.Acl(); 34 var o = new api.Acl();
35 buildCounterAcl++; 35 buildCounterAcl++;
36 if (buildCounterAcl < 3) { 36 if (buildCounterAcl < 3) {
37 o.etag = "foo"; 37 o.etag = "foo";
38 o.items = buildUnnamed675(); 38 o.items = buildUnnamed343();
39 o.kind = "foo"; 39 o.kind = "foo";
40 o.nextPageToken = "foo"; 40 o.nextPageToken = "foo";
41 o.nextSyncToken = "foo"; 41 o.nextSyncToken = "foo";
42 } 42 }
43 buildCounterAcl--; 43 buildCounterAcl--;
44 return o; 44 return o;
45 } 45 }
46 46
47 checkAcl(api.Acl o) { 47 checkAcl(api.Acl o) {
48 buildCounterAcl++; 48 buildCounterAcl++;
49 if (buildCounterAcl < 3) { 49 if (buildCounterAcl < 3) {
50 unittest.expect(o.etag, unittest.equals('foo')); 50 unittest.expect(o.etag, unittest.equals('foo'));
51 checkUnnamed675(o.items); 51 checkUnnamed343(o.items);
52 unittest.expect(o.kind, unittest.equals('foo')); 52 unittest.expect(o.kind, unittest.equals('foo'));
53 unittest.expect(o.nextPageToken, unittest.equals('foo')); 53 unittest.expect(o.nextPageToken, unittest.equals('foo'));
54 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 54 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
55 } 55 }
56 buildCounterAcl--; 56 buildCounterAcl--;
57 } 57 }
58 58
59 core.int buildCounterAclRuleScope = 0; 59 core.int buildCounterAclRuleScope = 0;
60 buildAclRuleScope() { 60 buildAclRuleScope() {
61 var o = new api.AclRuleScope(); 61 var o = new api.AclRuleScope();
(...skipping 66 matching lines...)
128 unittest.expect(o.etag, unittest.equals('foo')); 128 unittest.expect(o.etag, unittest.equals('foo'));
129 unittest.expect(o.id, unittest.equals('foo')); 129 unittest.expect(o.id, unittest.equals('foo'));
130 unittest.expect(o.kind, unittest.equals('foo')); 130 unittest.expect(o.kind, unittest.equals('foo'));
131 unittest.expect(o.location, unittest.equals('foo')); 131 unittest.expect(o.location, unittest.equals('foo'));
132 unittest.expect(o.summary, unittest.equals('foo')); 132 unittest.expect(o.summary, unittest.equals('foo'));
133 unittest.expect(o.timeZone, unittest.equals('foo')); 133 unittest.expect(o.timeZone, unittest.equals('foo'));
134 } 134 }
135 buildCounterCalendar--; 135 buildCounterCalendar--;
136 } 136 }
137 137
138 buildUnnamed676() { 138 buildUnnamed344() {
139 var o = new core.List<api.CalendarListEntry>(); 139 var o = new core.List<api.CalendarListEntry>();
140 o.add(buildCalendarListEntry()); 140 o.add(buildCalendarListEntry());
141 o.add(buildCalendarListEntry()); 141 o.add(buildCalendarListEntry());
142 return o; 142 return o;
143 } 143 }
144 144
145 checkUnnamed676(core.List<api.CalendarListEntry> o) { 145 checkUnnamed344(core.List<api.CalendarListEntry> o) {
146 unittest.expect(o, unittest.hasLength(2)); 146 unittest.expect(o, unittest.hasLength(2));
147 checkCalendarListEntry(o[0]); 147 checkCalendarListEntry(o[0]);
148 checkCalendarListEntry(o[1]); 148 checkCalendarListEntry(o[1]);
149 } 149 }
150 150
151 core.int buildCounterCalendarList = 0; 151 core.int buildCounterCalendarList = 0;
152 buildCalendarList() { 152 buildCalendarList() {
153 var o = new api.CalendarList(); 153 var o = new api.CalendarList();
154 buildCounterCalendarList++; 154 buildCounterCalendarList++;
155 if (buildCounterCalendarList < 3) { 155 if (buildCounterCalendarList < 3) {
156 o.etag = "foo"; 156 o.etag = "foo";
157 o.items = buildUnnamed676(); 157 o.items = buildUnnamed344();
158 o.kind = "foo"; 158 o.kind = "foo";
159 o.nextPageToken = "foo"; 159 o.nextPageToken = "foo";
160 o.nextSyncToken = "foo"; 160 o.nextSyncToken = "foo";
161 } 161 }
162 buildCounterCalendarList--; 162 buildCounterCalendarList--;
163 return o; 163 return o;
164 } 164 }
165 165
166 checkCalendarList(api.CalendarList o) { 166 checkCalendarList(api.CalendarList o) {
167 buildCounterCalendarList++; 167 buildCounterCalendarList++;
168 if (buildCounterCalendarList < 3) { 168 if (buildCounterCalendarList < 3) {
169 unittest.expect(o.etag, unittest.equals('foo')); 169 unittest.expect(o.etag, unittest.equals('foo'));
170 checkUnnamed676(o.items); 170 checkUnnamed344(o.items);
171 unittest.expect(o.kind, unittest.equals('foo')); 171 unittest.expect(o.kind, unittest.equals('foo'));
172 unittest.expect(o.nextPageToken, unittest.equals('foo')); 172 unittest.expect(o.nextPageToken, unittest.equals('foo'));
173 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 173 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
174 } 174 }
175 buildCounterCalendarList--; 175 buildCounterCalendarList--;
176 } 176 }
177 177
178 buildUnnamed677() { 178 buildUnnamed345() {
179 var o = new core.List<api.EventReminder>(); 179 var o = new core.List<api.EventReminder>();
180 o.add(buildEventReminder()); 180 o.add(buildEventReminder());
181 o.add(buildEventReminder()); 181 o.add(buildEventReminder());
182 return o; 182 return o;
183 } 183 }
184 184
185 checkUnnamed677(core.List<api.EventReminder> o) { 185 checkUnnamed345(core.List<api.EventReminder> o) {
186 unittest.expect(o, unittest.hasLength(2)); 186 unittest.expect(o, unittest.hasLength(2));
187 checkEventReminder(o[0]); 187 checkEventReminder(o[0]);
188 checkEventReminder(o[1]); 188 checkEventReminder(o[1]);
189 } 189 }
190 190
191 buildUnnamed678() { 191 buildUnnamed346() {
192 var o = new core.List<api.CalendarNotification>(); 192 var o = new core.List<api.CalendarNotification>();
193 o.add(buildCalendarNotification()); 193 o.add(buildCalendarNotification());
194 o.add(buildCalendarNotification()); 194 o.add(buildCalendarNotification());
195 return o; 195 return o;
196 } 196 }
197 197
198 checkUnnamed678(core.List<api.CalendarNotification> o) { 198 checkUnnamed346(core.List<api.CalendarNotification> o) {
199 unittest.expect(o, unittest.hasLength(2)); 199 unittest.expect(o, unittest.hasLength(2));
200 checkCalendarNotification(o[0]); 200 checkCalendarNotification(o[0]);
201 checkCalendarNotification(o[1]); 201 checkCalendarNotification(o[1]);
202 } 202 }
203 203
204 core.int buildCounterCalendarListEntryNotificationSettings = 0; 204 core.int buildCounterCalendarListEntryNotificationSettings = 0;
205 buildCalendarListEntryNotificationSettings() { 205 buildCalendarListEntryNotificationSettings() {
206 var o = new api.CalendarListEntryNotificationSettings(); 206 var o = new api.CalendarListEntryNotificationSettings();
207 buildCounterCalendarListEntryNotificationSettings++; 207 buildCounterCalendarListEntryNotificationSettings++;
208 if (buildCounterCalendarListEntryNotificationSettings < 3) { 208 if (buildCounterCalendarListEntryNotificationSettings < 3) {
209 o.notifications = buildUnnamed678(); 209 o.notifications = buildUnnamed346();
210 } 210 }
211 buildCounterCalendarListEntryNotificationSettings--; 211 buildCounterCalendarListEntryNotificationSettings--;
212 return o; 212 return o;
213 } 213 }
214 214
215 checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSett ings o) { 215 checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSett ings o) {
216 buildCounterCalendarListEntryNotificationSettings++; 216 buildCounterCalendarListEntryNotificationSettings++;
217 if (buildCounterCalendarListEntryNotificationSettings < 3) { 217 if (buildCounterCalendarListEntryNotificationSettings < 3) {
218 checkUnnamed678(o.notifications); 218 checkUnnamed346(o.notifications);
219 } 219 }
220 buildCounterCalendarListEntryNotificationSettings--; 220 buildCounterCalendarListEntryNotificationSettings--;
221 } 221 }
222 222
223 core.int buildCounterCalendarListEntry = 0; 223 core.int buildCounterCalendarListEntry = 0;
224 buildCalendarListEntry() { 224 buildCalendarListEntry() {
225 var o = new api.CalendarListEntry(); 225 var o = new api.CalendarListEntry();
226 buildCounterCalendarListEntry++; 226 buildCounterCalendarListEntry++;
227 if (buildCounterCalendarListEntry < 3) { 227 if (buildCounterCalendarListEntry < 3) {
228 o.accessRole = "foo"; 228 o.accessRole = "foo";
229 o.backgroundColor = "foo"; 229 o.backgroundColor = "foo";
230 o.colorId = "foo"; 230 o.colorId = "foo";
231 o.defaultReminders = buildUnnamed677(); 231 o.defaultReminders = buildUnnamed345();
232 o.deleted = true; 232 o.deleted = true;
233 o.description = "foo"; 233 o.description = "foo";
234 o.etag = "foo"; 234 o.etag = "foo";
235 o.foregroundColor = "foo"; 235 o.foregroundColor = "foo";
236 o.hidden = true; 236 o.hidden = true;
237 o.id = "foo"; 237 o.id = "foo";
238 o.kind = "foo"; 238 o.kind = "foo";
239 o.location = "foo"; 239 o.location = "foo";
240 o.notificationSettings = buildCalendarListEntryNotificationSettings(); 240 o.notificationSettings = buildCalendarListEntryNotificationSettings();
241 o.primary = true; 241 o.primary = true;
242 o.selected = true; 242 o.selected = true;
243 o.summary = "foo"; 243 o.summary = "foo";
244 o.summaryOverride = "foo"; 244 o.summaryOverride = "foo";
245 o.timeZone = "foo"; 245 o.timeZone = "foo";
246 } 246 }
247 buildCounterCalendarListEntry--; 247 buildCounterCalendarListEntry--;
248 return o; 248 return o;
249 } 249 }
250 250
251 checkCalendarListEntry(api.CalendarListEntry o) { 251 checkCalendarListEntry(api.CalendarListEntry o) {
252 buildCounterCalendarListEntry++; 252 buildCounterCalendarListEntry++;
253 if (buildCounterCalendarListEntry < 3) { 253 if (buildCounterCalendarListEntry < 3) {
254 unittest.expect(o.accessRole, unittest.equals('foo')); 254 unittest.expect(o.accessRole, unittest.equals('foo'));
255 unittest.expect(o.backgroundColor, unittest.equals('foo')); 255 unittest.expect(o.backgroundColor, unittest.equals('foo'));
256 unittest.expect(o.colorId, unittest.equals('foo')); 256 unittest.expect(o.colorId, unittest.equals('foo'));
257 checkUnnamed677(o.defaultReminders); 257 checkUnnamed345(o.defaultReminders);
258 unittest.expect(o.deleted, unittest.isTrue); 258 unittest.expect(o.deleted, unittest.isTrue);
259 unittest.expect(o.description, unittest.equals('foo')); 259 unittest.expect(o.description, unittest.equals('foo'));
260 unittest.expect(o.etag, unittest.equals('foo')); 260 unittest.expect(o.etag, unittest.equals('foo'));
261 unittest.expect(o.foregroundColor, unittest.equals('foo')); 261 unittest.expect(o.foregroundColor, unittest.equals('foo'));
262 unittest.expect(o.hidden, unittest.isTrue); 262 unittest.expect(o.hidden, unittest.isTrue);
263 unittest.expect(o.id, unittest.equals('foo')); 263 unittest.expect(o.id, unittest.equals('foo'));
264 unittest.expect(o.kind, unittest.equals('foo')); 264 unittest.expect(o.kind, unittest.equals('foo'));
265 unittest.expect(o.location, unittest.equals('foo')); 265 unittest.expect(o.location, unittest.equals('foo'));
266 checkCalendarListEntryNotificationSettings(o.notificationSettings); 266 checkCalendarListEntryNotificationSettings(o.notificationSettings);
267 unittest.expect(o.primary, unittest.isTrue); 267 unittest.expect(o.primary, unittest.isTrue);
(...skipping 19 matching lines...)
287 287
288 checkCalendarNotification(api.CalendarNotification o) { 288 checkCalendarNotification(api.CalendarNotification o) {
289 buildCounterCalendarNotification++; 289 buildCounterCalendarNotification++;
290 if (buildCounterCalendarNotification < 3) { 290 if (buildCounterCalendarNotification < 3) {
291 unittest.expect(o.method, unittest.equals('foo')); 291 unittest.expect(o.method, unittest.equals('foo'));
292 unittest.expect(o.type, unittest.equals('foo')); 292 unittest.expect(o.type, unittest.equals('foo'));
293 } 293 }
294 buildCounterCalendarNotification--; 294 buildCounterCalendarNotification--;
295 } 295 }
296 296
297 buildUnnamed679() { 297 buildUnnamed347() {
298 var o = new core.Map<core.String, core.String>(); 298 var o = new core.Map<core.String, core.String>();
299 o["x"] = "foo"; 299 o["x"] = "foo";
300 o["y"] = "foo"; 300 o["y"] = "foo";
301 return o; 301 return o;
302 } 302 }
303 303
304 checkUnnamed679(core.Map<core.String, core.String> o) { 304 checkUnnamed347(core.Map<core.String, core.String> o) {
305 unittest.expect(o, unittest.hasLength(2)); 305 unittest.expect(o, unittest.hasLength(2));
306 unittest.expect(o["x"], unittest.equals('foo')); 306 unittest.expect(o["x"], unittest.equals('foo'));
307 unittest.expect(o["y"], unittest.equals('foo')); 307 unittest.expect(o["y"], unittest.equals('foo'));
308 } 308 }
309 309
310 core.int buildCounterChannel = 0; 310 core.int buildCounterChannel = 0;
311 buildChannel() { 311 buildChannel() {
312 var o = new api.Channel(); 312 var o = new api.Channel();
313 buildCounterChannel++; 313 buildCounterChannel++;
314 if (buildCounterChannel < 3) { 314 if (buildCounterChannel < 3) {
315 o.address = "foo"; 315 o.address = "foo";
316 o.expiration = "foo"; 316 o.expiration = "foo";
317 o.id = "foo"; 317 o.id = "foo";
318 o.kind = "foo"; 318 o.kind = "foo";
319 o.params = buildUnnamed679(); 319 o.params = buildUnnamed347();
320 o.payload = true; 320 o.payload = true;
321 o.resourceId = "foo"; 321 o.resourceId = "foo";
322 o.resourceUri = "foo"; 322 o.resourceUri = "foo";
323 o.token = "foo"; 323 o.token = "foo";
324 o.type = "foo"; 324 o.type = "foo";
325 } 325 }
326 buildCounterChannel--; 326 buildCounterChannel--;
327 return o; 327 return o;
328 } 328 }
329 329
330 checkChannel(api.Channel o) { 330 checkChannel(api.Channel o) {
331 buildCounterChannel++; 331 buildCounterChannel++;
332 if (buildCounterChannel < 3) { 332 if (buildCounterChannel < 3) {
333 unittest.expect(o.address, unittest.equals('foo')); 333 unittest.expect(o.address, unittest.equals('foo'));
334 unittest.expect(o.expiration, unittest.equals('foo')); 334 unittest.expect(o.expiration, unittest.equals('foo'));
335 unittest.expect(o.id, unittest.equals('foo')); 335 unittest.expect(o.id, unittest.equals('foo'));
336 unittest.expect(o.kind, unittest.equals('foo')); 336 unittest.expect(o.kind, unittest.equals('foo'));
337 checkUnnamed679(o.params); 337 checkUnnamed347(o.params);
338 unittest.expect(o.payload, unittest.isTrue); 338 unittest.expect(o.payload, unittest.isTrue);
339 unittest.expect(o.resourceId, unittest.equals('foo')); 339 unittest.expect(o.resourceId, unittest.equals('foo'));
340 unittest.expect(o.resourceUri, unittest.equals('foo')); 340 unittest.expect(o.resourceUri, unittest.equals('foo'));
341 unittest.expect(o.token, unittest.equals('foo')); 341 unittest.expect(o.token, unittest.equals('foo'));
342 unittest.expect(o.type, unittest.equals('foo')); 342 unittest.expect(o.type, unittest.equals('foo'));
343 } 343 }
344 buildCounterChannel--; 344 buildCounterChannel--;
345 } 345 }
346 346
347 core.int buildCounterColorDefinition = 0; 347 core.int buildCounterColorDefinition = 0;
(...skipping 10 matching lines...)
358 358
359 checkColorDefinition(api.ColorDefinition o) { 359 checkColorDefinition(api.ColorDefinition o) {
360 buildCounterColorDefinition++; 360 buildCounterColorDefinition++;
361 if (buildCounterColorDefinition < 3) { 361 if (buildCounterColorDefinition < 3) {
362 unittest.expect(o.background, unittest.equals('foo')); 362 unittest.expect(o.background, unittest.equals('foo'));
363 unittest.expect(o.foreground, unittest.equals('foo')); 363 unittest.expect(o.foreground, unittest.equals('foo'));
364 } 364 }
365 buildCounterColorDefinition--; 365 buildCounterColorDefinition--;
366 } 366 }
367 367
368 buildUnnamed680() { 368 buildUnnamed348() {
369 var o = new core.Map<core.String, api.ColorDefinition>(); 369 var o = new core.Map<core.String, api.ColorDefinition>();
370 o["x"] = buildColorDefinition(); 370 o["x"] = buildColorDefinition();
371 o["y"] = buildColorDefinition(); 371 o["y"] = buildColorDefinition();
372 return o; 372 return o;
373 } 373 }
374 374
375 checkUnnamed680(core.Map<core.String, api.ColorDefinition> o) { 375 checkUnnamed348(core.Map<core.String, api.ColorDefinition> o) {
376 unittest.expect(o, unittest.hasLength(2)); 376 unittest.expect(o, unittest.hasLength(2));
377 checkColorDefinition(o["x"]); 377 checkColorDefinition(o["x"]);
378 checkColorDefinition(o["y"]); 378 checkColorDefinition(o["y"]);
379 } 379 }
380 380
381 buildUnnamed681() { 381 buildUnnamed349() {
382 var o = new core.Map<core.String, api.ColorDefinition>(); 382 var o = new core.Map<core.String, api.ColorDefinition>();
383 o["x"] = buildColorDefinition(); 383 o["x"] = buildColorDefinition();
384 o["y"] = buildColorDefinition(); 384 o["y"] = buildColorDefinition();
385 return o; 385 return o;
386 } 386 }
387 387
388 checkUnnamed681(core.Map<core.String, api.ColorDefinition> o) { 388 checkUnnamed349(core.Map<core.String, api.ColorDefinition> o) {
389 unittest.expect(o, unittest.hasLength(2)); 389 unittest.expect(o, unittest.hasLength(2));
390 checkColorDefinition(o["x"]); 390 checkColorDefinition(o["x"]);
391 checkColorDefinition(o["y"]); 391 checkColorDefinition(o["y"]);
392 } 392 }
393 393
394 core.int buildCounterColors = 0; 394 core.int buildCounterColors = 0;
395 buildColors() { 395 buildColors() {
396 var o = new api.Colors(); 396 var o = new api.Colors();
397 buildCounterColors++; 397 buildCounterColors++;
398 if (buildCounterColors < 3) { 398 if (buildCounterColors < 3) {
399 o.calendar = buildUnnamed680(); 399 o.calendar = buildUnnamed348();
400 o.event = buildUnnamed681(); 400 o.event = buildUnnamed349();
401 o.kind = "foo"; 401 o.kind = "foo";
402 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 402 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
403 } 403 }
404 buildCounterColors--; 404 buildCounterColors--;
405 return o; 405 return o;
406 } 406 }
407 407
408 checkColors(api.Colors o) { 408 checkColors(api.Colors o) {
409 buildCounterColors++; 409 buildCounterColors++;
410 if (buildCounterColors < 3) { 410 if (buildCounterColors < 3) {
411 checkUnnamed680(o.calendar); 411 checkUnnamed348(o.calendar);
412 checkUnnamed681(o.event); 412 checkUnnamed349(o.event);
413 unittest.expect(o.kind, unittest.equals('foo')); 413 unittest.expect(o.kind, unittest.equals('foo'));
414 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 414 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
415 } 415 }
416 buildCounterColors--; 416 buildCounterColors--;
417 } 417 }
418 418
419 core.int buildCounterError = 0; 419 core.int buildCounterError = 0;
420 buildError() { 420 buildError() {
421 var o = new api.Error(); 421 var o = new api.Error();
422 buildCounterError++; 422 buildCounterError++;
423 if (buildCounterError < 3) { 423 if (buildCounterError < 3) {
424 o.domain = "foo"; 424 o.domain = "foo";
425 o.reason = "foo"; 425 o.reason = "foo";
426 } 426 }
427 buildCounterError--; 427 buildCounterError--;
428 return o; 428 return o;
429 } 429 }
430 430
431 checkError(api.Error o) { 431 checkError(api.Error o) {
432 buildCounterError++; 432 buildCounterError++;
433 if (buildCounterError < 3) { 433 if (buildCounterError < 3) {
434 unittest.expect(o.domain, unittest.equals('foo')); 434 unittest.expect(o.domain, unittest.equals('foo'));
435 unittest.expect(o.reason, unittest.equals('foo')); 435 unittest.expect(o.reason, unittest.equals('foo'));
436 } 436 }
437 buildCounterError--; 437 buildCounterError--;
438 } 438 }
439 439
440 buildUnnamed682() { 440 buildUnnamed350() {
441 var o = new core.List<api.EventAttendee>(); 441 var o = new core.List<api.EventAttendee>();
442 o.add(buildEventAttendee()); 442 o.add(buildEventAttendee());
443 o.add(buildEventAttendee()); 443 o.add(buildEventAttendee());
444 return o; 444 return o;
445 } 445 }
446 446
447 checkUnnamed682(core.List<api.EventAttendee> o) { 447 checkUnnamed350(core.List<api.EventAttendee> o) {
448 unittest.expect(o, unittest.hasLength(2)); 448 unittest.expect(o, unittest.hasLength(2));
449 checkEventAttendee(o[0]); 449 checkEventAttendee(o[0]);
450 checkEventAttendee(o[1]); 450 checkEventAttendee(o[1]);
451 } 451 }
452 452
453 core.int buildCounterEventCreator = 0; 453 core.int buildCounterEventCreator = 0;
454 buildEventCreator() { 454 buildEventCreator() {
455 var o = new api.EventCreator(); 455 var o = new api.EventCreator();
456 buildCounterEventCreator++; 456 buildCounterEventCreator++;
457 if (buildCounterEventCreator < 3) { 457 if (buildCounterEventCreator < 3) {
(...skipping 10 matching lines...)
468 buildCounterEventCreator++; 468 buildCounterEventCreator++;
469 if (buildCounterEventCreator < 3) { 469 if (buildCounterEventCreator < 3) {
470 unittest.expect(o.displayName, unittest.equals('foo')); 470 unittest.expect(o.displayName, unittest.equals('foo'));
471 unittest.expect(o.email, unittest.equals('foo')); 471 unittest.expect(o.email, unittest.equals('foo'));
472 unittest.expect(o.id, unittest.equals('foo')); 472 unittest.expect(o.id, unittest.equals('foo'));
473 unittest.expect(o.self, unittest.isTrue); 473 unittest.expect(o.self, unittest.isTrue);
474 } 474 }
475 buildCounterEventCreator--; 475 buildCounterEventCreator--;
476 } 476 }
477 477
478 buildUnnamed683() { 478 buildUnnamed351() {
479 var o = new core.Map<core.String, core.String>(); 479 var o = new core.Map<core.String, core.String>();
480 o["x"] = "foo"; 480 o["x"] = "foo";
481 o["y"] = "foo"; 481 o["y"] = "foo";
482 return o; 482 return o;
483 } 483 }
484 484
485 checkUnnamed683(core.Map<core.String, core.String> o) { 485 checkUnnamed351(core.Map<core.String, core.String> o) {
486 unittest.expect(o, unittest.hasLength(2)); 486 unittest.expect(o, unittest.hasLength(2));
487 unittest.expect(o["x"], unittest.equals('foo')); 487 unittest.expect(o["x"], unittest.equals('foo'));
488 unittest.expect(o["y"], unittest.equals('foo')); 488 unittest.expect(o["y"], unittest.equals('foo'));
489 } 489 }
490 490
491 buildUnnamed684() { 491 buildUnnamed352() {
492 var o = new core.Map<core.String, core.String>(); 492 var o = new core.Map<core.String, core.String>();
493 o["x"] = "foo"; 493 o["x"] = "foo";
494 o["y"] = "foo"; 494 o["y"] = "foo";
495 return o; 495 return o;
496 } 496 }
497 497
498 checkUnnamed684(core.Map<core.String, core.String> o) { 498 checkUnnamed352(core.Map<core.String, core.String> o) {
499 unittest.expect(o, unittest.hasLength(2)); 499 unittest.expect(o, unittest.hasLength(2));
500 unittest.expect(o["x"], unittest.equals('foo')); 500 unittest.expect(o["x"], unittest.equals('foo'));
501 unittest.expect(o["y"], unittest.equals('foo')); 501 unittest.expect(o["y"], unittest.equals('foo'));
502 } 502 }
503 503
504 core.int buildCounterEventExtendedProperties = 0; 504 core.int buildCounterEventExtendedProperties = 0;
505 buildEventExtendedProperties() { 505 buildEventExtendedProperties() {
506 var o = new api.EventExtendedProperties(); 506 var o = new api.EventExtendedProperties();
507 buildCounterEventExtendedProperties++; 507 buildCounterEventExtendedProperties++;
508 if (buildCounterEventExtendedProperties < 3) { 508 if (buildCounterEventExtendedProperties < 3) {
509 o.private = buildUnnamed683(); 509 o.private = buildUnnamed351();
510 o.shared = buildUnnamed684(); 510 o.shared = buildUnnamed352();
511 } 511 }
512 buildCounterEventExtendedProperties--; 512 buildCounterEventExtendedProperties--;
513 return o; 513 return o;
514 } 514 }
515 515
516 checkEventExtendedProperties(api.EventExtendedProperties o) { 516 checkEventExtendedProperties(api.EventExtendedProperties o) {
517 buildCounterEventExtendedProperties++; 517 buildCounterEventExtendedProperties++;
518 if (buildCounterEventExtendedProperties < 3) { 518 if (buildCounterEventExtendedProperties < 3) {
519 checkUnnamed683(o.private); 519 checkUnnamed351(o.private);
520 checkUnnamed684(o.shared); 520 checkUnnamed352(o.shared);
521 } 521 }
522 buildCounterEventExtendedProperties--; 522 buildCounterEventExtendedProperties--;
523 } 523 }
524 524
525 buildUnnamed685() { 525 buildUnnamed353() {
526 var o = new core.Map<core.String, core.String>(); 526 var o = new core.Map<core.String, core.String>();
527 o["x"] = "foo"; 527 o["x"] = "foo";
528 o["y"] = "foo"; 528 o["y"] = "foo";
529 return o; 529 return o;
530 } 530 }
531 531
532 checkUnnamed685(core.Map<core.String, core.String> o) { 532 checkUnnamed353(core.Map<core.String, core.String> o) {
533 unittest.expect(o, unittest.hasLength(2)); 533 unittest.expect(o, unittest.hasLength(2));
534 unittest.expect(o["x"], unittest.equals('foo')); 534 unittest.expect(o["x"], unittest.equals('foo'));
535 unittest.expect(o["y"], unittest.equals('foo')); 535 unittest.expect(o["y"], unittest.equals('foo'));
536 } 536 }
537 537
538 core.int buildCounterEventGadget = 0; 538 core.int buildCounterEventGadget = 0;
539 buildEventGadget() { 539 buildEventGadget() {
540 var o = new api.EventGadget(); 540 var o = new api.EventGadget();
541 buildCounterEventGadget++; 541 buildCounterEventGadget++;
542 if (buildCounterEventGadget < 3) { 542 if (buildCounterEventGadget < 3) {
543 o.display = "foo"; 543 o.display = "foo";
544 o.height = 42; 544 o.height = 42;
545 o.iconLink = "foo"; 545 o.iconLink = "foo";
546 o.link = "foo"; 546 o.link = "foo";
547 o.preferences = buildUnnamed685(); 547 o.preferences = buildUnnamed353();
548 o.title = "foo"; 548 o.title = "foo";
549 o.type = "foo"; 549 o.type = "foo";
550 o.width = 42; 550 o.width = 42;
551 } 551 }
552 buildCounterEventGadget--; 552 buildCounterEventGadget--;
553 return o; 553 return o;
554 } 554 }
555 555
556 checkEventGadget(api.EventGadget o) { 556 checkEventGadget(api.EventGadget o) {
557 buildCounterEventGadget++; 557 buildCounterEventGadget++;
558 if (buildCounterEventGadget < 3) { 558 if (buildCounterEventGadget < 3) {
559 unittest.expect(o.display, unittest.equals('foo')); 559 unittest.expect(o.display, unittest.equals('foo'));
560 unittest.expect(o.height, unittest.equals(42)); 560 unittest.expect(o.height, unittest.equals(42));
561 unittest.expect(o.iconLink, unittest.equals('foo')); 561 unittest.expect(o.iconLink, unittest.equals('foo'));
562 unittest.expect(o.link, unittest.equals('foo')); 562 unittest.expect(o.link, unittest.equals('foo'));
563 checkUnnamed685(o.preferences); 563 checkUnnamed353(o.preferences);
564 unittest.expect(o.title, unittest.equals('foo')); 564 unittest.expect(o.title, unittest.equals('foo'));
565 unittest.expect(o.type, unittest.equals('foo')); 565 unittest.expect(o.type, unittest.equals('foo'));
566 unittest.expect(o.width, unittest.equals(42)); 566 unittest.expect(o.width, unittest.equals(42));
567 } 567 }
568 buildCounterEventGadget--; 568 buildCounterEventGadget--;
569 } 569 }
570 570
571 core.int buildCounterEventOrganizer = 0; 571 core.int buildCounterEventOrganizer = 0;
572 buildEventOrganizer() { 572 buildEventOrganizer() {
573 var o = new api.EventOrganizer(); 573 var o = new api.EventOrganizer();
(...skipping 12 matching lines...)
586 buildCounterEventOrganizer++; 586 buildCounterEventOrganizer++;
587 if (buildCounterEventOrganizer < 3) { 587 if (buildCounterEventOrganizer < 3) {
588 unittest.expect(o.displayName, unittest.equals('foo')); 588 unittest.expect(o.displayName, unittest.equals('foo'));
589 unittest.expect(o.email, unittest.equals('foo')); 589 unittest.expect(o.email, unittest.equals('foo'));
590 unittest.expect(o.id, unittest.equals('foo')); 590 unittest.expect(o.id, unittest.equals('foo'));
591 unittest.expect(o.self, unittest.isTrue); 591 unittest.expect(o.self, unittest.isTrue);
592 } 592 }
593 buildCounterEventOrganizer--; 593 buildCounterEventOrganizer--;
594 } 594 }
595 595
596 buildUnnamed686() { 596 buildUnnamed354() {
597 var o = new core.List<core.String>(); 597 var o = new core.List<core.String>();
598 o.add("foo"); 598 o.add("foo");
599 o.add("foo"); 599 o.add("foo");
600 return o; 600 return o;
601 } 601 }
602 602
603 checkUnnamed686(core.List<core.String> o) { 603 checkUnnamed354(core.List<core.String> o) {
604 unittest.expect(o, unittest.hasLength(2)); 604 unittest.expect(o, unittest.hasLength(2));
605 unittest.expect(o[0], unittest.equals('foo')); 605 unittest.expect(o[0], unittest.equals('foo'));
606 unittest.expect(o[1], unittest.equals('foo')); 606 unittest.expect(o[1], unittest.equals('foo'));
607 } 607 }
608 608
609 buildUnnamed687() { 609 buildUnnamed355() {
610 var o = new core.List<api.EventReminder>(); 610 var o = new core.List<api.EventReminder>();
611 o.add(buildEventReminder()); 611 o.add(buildEventReminder());
612 o.add(buildEventReminder()); 612 o.add(buildEventReminder());
613 return o; 613 return o;
614 } 614 }
615 615
616 checkUnnamed687(core.List<api.EventReminder> o) { 616 checkUnnamed355(core.List<api.EventReminder> o) {
617 unittest.expect(o, unittest.hasLength(2)); 617 unittest.expect(o, unittest.hasLength(2));
618 checkEventReminder(o[0]); 618 checkEventReminder(o[0]);
619 checkEventReminder(o[1]); 619 checkEventReminder(o[1]);
620 } 620 }
621 621
622 core.int buildCounterEventReminders = 0; 622 core.int buildCounterEventReminders = 0;
623 buildEventReminders() { 623 buildEventReminders() {
624 var o = new api.EventReminders(); 624 var o = new api.EventReminders();
625 buildCounterEventReminders++; 625 buildCounterEventReminders++;
626 if (buildCounterEventReminders < 3) { 626 if (buildCounterEventReminders < 3) {
627 o.overrides = buildUnnamed687(); 627 o.overrides = buildUnnamed355();
628 o.useDefault = true; 628 o.useDefault = true;
629 } 629 }
630 buildCounterEventReminders--; 630 buildCounterEventReminders--;
631 return o; 631 return o;
632 } 632 }
633 633
634 checkEventReminders(api.EventReminders o) { 634 checkEventReminders(api.EventReminders o) {
635 buildCounterEventReminders++; 635 buildCounterEventReminders++;
636 if (buildCounterEventReminders < 3) { 636 if (buildCounterEventReminders < 3) {
637 checkUnnamed687(o.overrides); 637 checkUnnamed355(o.overrides);
638 unittest.expect(o.useDefault, unittest.isTrue); 638 unittest.expect(o.useDefault, unittest.isTrue);
639 } 639 }
640 buildCounterEventReminders--; 640 buildCounterEventReminders--;
641 } 641 }
642 642
643 core.int buildCounterEventSource = 0; 643 core.int buildCounterEventSource = 0;
644 buildEventSource() { 644 buildEventSource() {
645 var o = new api.EventSource(); 645 var o = new api.EventSource();
646 buildCounterEventSource++; 646 buildCounterEventSource++;
647 if (buildCounterEventSource < 3) { 647 if (buildCounterEventSource < 3) {
(...skipping 12 matching lines...)
660 } 660 }
661 buildCounterEventSource--; 661 buildCounterEventSource--;
662 } 662 }
663 663
664 core.int buildCounterEvent = 0; 664 core.int buildCounterEvent = 0;
665 buildEvent() { 665 buildEvent() {
666 var o = new api.Event(); 666 var o = new api.Event();
667 buildCounterEvent++; 667 buildCounterEvent++;
668 if (buildCounterEvent < 3) { 668 if (buildCounterEvent < 3) {
669 o.anyoneCanAddSelf = true; 669 o.anyoneCanAddSelf = true;
670 o.attendees = buildUnnamed682(); 670 o.attendees = buildUnnamed350();
671 o.attendeesOmitted = true; 671 o.attendeesOmitted = true;
672 o.colorId = "foo"; 672 o.colorId = "foo";
673 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 673 o.created = core.DateTime.parse("2002-02-27T14:01:02");
674 o.creator = buildEventCreator(); 674 o.creator = buildEventCreator();
675 o.description = "foo"; 675 o.description = "foo";
676 o.end = buildEventDateTime(); 676 o.end = buildEventDateTime();
677 o.endTimeUnspecified = true; 677 o.endTimeUnspecified = true;
678 o.etag = "foo"; 678 o.etag = "foo";
679 o.extendedProperties = buildEventExtendedProperties(); 679 o.extendedProperties = buildEventExtendedProperties();
680 o.gadget = buildEventGadget(); 680 o.gadget = buildEventGadget();
681 o.guestsCanInviteOthers = true; 681 o.guestsCanInviteOthers = true;
682 o.guestsCanModify = true; 682 o.guestsCanModify = true;
683 o.guestsCanSeeOtherGuests = true; 683 o.guestsCanSeeOtherGuests = true;
684 o.hangoutLink = "foo"; 684 o.hangoutLink = "foo";
685 o.htmlLink = "foo"; 685 o.htmlLink = "foo";
686 o.iCalUID = "foo"; 686 o.iCalUID = "foo";
687 o.id = "foo"; 687 o.id = "foo";
688 o.kind = "foo"; 688 o.kind = "foo";
689 o.location = "foo"; 689 o.location = "foo";
690 o.locked = true; 690 o.locked = true;
691 o.organizer = buildEventOrganizer(); 691 o.organizer = buildEventOrganizer();
692 o.originalStartTime = buildEventDateTime(); 692 o.originalStartTime = buildEventDateTime();
693 o.privateCopy = true; 693 o.privateCopy = true;
694 o.recurrence = buildUnnamed686(); 694 o.recurrence = buildUnnamed354();
695 o.recurringEventId = "foo"; 695 o.recurringEventId = "foo";
696 o.reminders = buildEventReminders(); 696 o.reminders = buildEventReminders();
697 o.sequence = 42; 697 o.sequence = 42;
698 o.source = buildEventSource(); 698 o.source = buildEventSource();
699 o.start = buildEventDateTime(); 699 o.start = buildEventDateTime();
700 o.status = "foo"; 700 o.status = "foo";
701 o.summary = "foo"; 701 o.summary = "foo";
702 o.transparency = "foo"; 702 o.transparency = "foo";
703 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 703 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
704 o.visibility = "foo"; 704 o.visibility = "foo";
705 } 705 }
706 buildCounterEvent--; 706 buildCounterEvent--;
707 return o; 707 return o;
708 } 708 }
709 709
710 checkEvent(api.Event o) { 710 checkEvent(api.Event o) {
711 buildCounterEvent++; 711 buildCounterEvent++;
712 if (buildCounterEvent < 3) { 712 if (buildCounterEvent < 3) {
713 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); 713 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue);
714 checkUnnamed682(o.attendees); 714 checkUnnamed350(o.attendees);
715 unittest.expect(o.attendeesOmitted, unittest.isTrue); 715 unittest.expect(o.attendeesOmitted, unittest.isTrue);
716 unittest.expect(o.colorId, unittest.equals('foo')); 716 unittest.expect(o.colorId, unittest.equals('foo'));
717 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 717 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
718 checkEventCreator(o.creator); 718 checkEventCreator(o.creator);
719 unittest.expect(o.description, unittest.equals('foo')); 719 unittest.expect(o.description, unittest.equals('foo'));
720 checkEventDateTime(o.end); 720 checkEventDateTime(o.end);
721 unittest.expect(o.endTimeUnspecified, unittest.isTrue); 721 unittest.expect(o.endTimeUnspecified, unittest.isTrue);
722 unittest.expect(o.etag, unittest.equals('foo')); 722 unittest.expect(o.etag, unittest.equals('foo'));
723 checkEventExtendedProperties(o.extendedProperties); 723 checkEventExtendedProperties(o.extendedProperties);
724 checkEventGadget(o.gadget); 724 checkEventGadget(o.gadget);
725 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue); 725 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue);
726 unittest.expect(o.guestsCanModify, unittest.isTrue); 726 unittest.expect(o.guestsCanModify, unittest.isTrue);
727 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue); 727 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue);
728 unittest.expect(o.hangoutLink, unittest.equals('foo')); 728 unittest.expect(o.hangoutLink, unittest.equals('foo'));
729 unittest.expect(o.htmlLink, unittest.equals('foo')); 729 unittest.expect(o.htmlLink, unittest.equals('foo'));
730 unittest.expect(o.iCalUID, unittest.equals('foo')); 730 unittest.expect(o.iCalUID, unittest.equals('foo'));
731 unittest.expect(o.id, unittest.equals('foo')); 731 unittest.expect(o.id, unittest.equals('foo'));
732 unittest.expect(o.kind, unittest.equals('foo')); 732 unittest.expect(o.kind, unittest.equals('foo'));
733 unittest.expect(o.location, unittest.equals('foo')); 733 unittest.expect(o.location, unittest.equals('foo'));
734 unittest.expect(o.locked, unittest.isTrue); 734 unittest.expect(o.locked, unittest.isTrue);
735 checkEventOrganizer(o.organizer); 735 checkEventOrganizer(o.organizer);
736 checkEventDateTime(o.originalStartTime); 736 checkEventDateTime(o.originalStartTime);
737 unittest.expect(o.privateCopy, unittest.isTrue); 737 unittest.expect(o.privateCopy, unittest.isTrue);
738 checkUnnamed686(o.recurrence); 738 checkUnnamed354(o.recurrence);
739 unittest.expect(o.recurringEventId, unittest.equals('foo')); 739 unittest.expect(o.recurringEventId, unittest.equals('foo'));
740 checkEventReminders(o.reminders); 740 checkEventReminders(o.reminders);
741 unittest.expect(o.sequence, unittest.equals(42)); 741 unittest.expect(o.sequence, unittest.equals(42));
742 checkEventSource(o.source); 742 checkEventSource(o.source);
743 checkEventDateTime(o.start); 743 checkEventDateTime(o.start);
744 unittest.expect(o.status, unittest.equals('foo')); 744 unittest.expect(o.status, unittest.equals('foo'));
745 unittest.expect(o.summary, unittest.equals('foo')); 745 unittest.expect(o.summary, unittest.equals('foo'));
746 unittest.expect(o.transparency, unittest.equals('foo')); 746 unittest.expect(o.transparency, unittest.equals('foo'));
747 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 747 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
748 unittest.expect(o.visibility, unittest.equals('foo')); 748 unittest.expect(o.visibility, unittest.equals('foo'));
749 } 749 }
750 buildCounterEvent--; 750 buildCounterEvent--;
751 } 751 }
752 752
753 core.int buildCounterEventAttachment = 0;
754 buildEventAttachment() {
755 var o = new api.EventAttachment();
756 buildCounterEventAttachment++;
757 if (buildCounterEventAttachment < 3) {
758 o.title = "foo";
759 }
760 buildCounterEventAttachment--;
761 return o;
762 }
763
764 checkEventAttachment(api.EventAttachment o) {
765 buildCounterEventAttachment++;
766 if (buildCounterEventAttachment < 3) {
767 unittest.expect(o.title, unittest.equals('foo'));
768 }
769 buildCounterEventAttachment--;
770 }
771
753 core.int buildCounterEventAttendee = 0; 772 core.int buildCounterEventAttendee = 0;
754 buildEventAttendee() { 773 buildEventAttendee() {
755 var o = new api.EventAttendee(); 774 var o = new api.EventAttendee();
756 buildCounterEventAttendee++; 775 buildCounterEventAttendee++;
757 if (buildCounterEventAttendee < 3) { 776 if (buildCounterEventAttendee < 3) {
758 o.additionalGuests = 42; 777 o.additionalGuests = 42;
759 o.comment = "foo"; 778 o.comment = "foo";
760 o.displayName = "foo"; 779 o.displayName = "foo";
761 o.email = "foo"; 780 o.email = "foo";
762 o.id = "foo"; 781 o.id = "foo";
(...skipping 61 matching lines...)
824 843
825 checkEventReminder(api.EventReminder o) { 844 checkEventReminder(api.EventReminder o) {
826 buildCounterEventReminder++; 845 buildCounterEventReminder++;
827 if (buildCounterEventReminder < 3) { 846 if (buildCounterEventReminder < 3) {
828 unittest.expect(o.method, unittest.equals('foo')); 847 unittest.expect(o.method, unittest.equals('foo'));
829 unittest.expect(o.minutes, unittest.equals(42)); 848 unittest.expect(o.minutes, unittest.equals(42));
830 } 849 }
831 buildCounterEventReminder--; 850 buildCounterEventReminder--;
832 } 851 }
833 852
834 buildUnnamed688() { 853 buildUnnamed356() {
835 var o = new core.List<api.EventReminder>(); 854 var o = new core.List<api.EventReminder>();
836 o.add(buildEventReminder()); 855 o.add(buildEventReminder());
837 o.add(buildEventReminder()); 856 o.add(buildEventReminder());
838 return o; 857 return o;
839 } 858 }
840 859
841 checkUnnamed688(core.List<api.EventReminder> o) { 860 checkUnnamed356(core.List<api.EventReminder> o) {
842 unittest.expect(o, unittest.hasLength(2)); 861 unittest.expect(o, unittest.hasLength(2));
843 checkEventReminder(o[0]); 862 checkEventReminder(o[0]);
844 checkEventReminder(o[1]); 863 checkEventReminder(o[1]);
845 } 864 }
846 865
847 buildUnnamed689() { 866 buildUnnamed357() {
848 var o = new core.List<api.Event>(); 867 var o = new core.List<api.Event>();
849 o.add(buildEvent()); 868 o.add(buildEvent());
850 o.add(buildEvent()); 869 o.add(buildEvent());
851 return o; 870 return o;
852 } 871 }
853 872
854 checkUnnamed689(core.List<api.Event> o) { 873 checkUnnamed357(core.List<api.Event> o) {
855 unittest.expect(o, unittest.hasLength(2)); 874 unittest.expect(o, unittest.hasLength(2));
856 checkEvent(o[0]); 875 checkEvent(o[0]);
857 checkEvent(o[1]); 876 checkEvent(o[1]);
858 } 877 }
859 878
860 core.int buildCounterEvents = 0; 879 core.int buildCounterEvents = 0;
861 buildEvents() { 880 buildEvents() {
862 var o = new api.Events(); 881 var o = new api.Events();
863 buildCounterEvents++; 882 buildCounterEvents++;
864 if (buildCounterEvents < 3) { 883 if (buildCounterEvents < 3) {
865 o.accessRole = "foo"; 884 o.accessRole = "foo";
866 o.defaultReminders = buildUnnamed688(); 885 o.defaultReminders = buildUnnamed356();
867 o.description = "foo"; 886 o.description = "foo";
868 o.etag = "foo"; 887 o.etag = "foo";
869 o.items = buildUnnamed689(); 888 o.items = buildUnnamed357();
870 o.kind = "foo"; 889 o.kind = "foo";
871 o.nextPageToken = "foo"; 890 o.nextPageToken = "foo";
872 o.nextSyncToken = "foo"; 891 o.nextSyncToken = "foo";
873 o.summary = "foo"; 892 o.summary = "foo";
874 o.timeZone = "foo"; 893 o.timeZone = "foo";
875 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 894 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
876 } 895 }
877 buildCounterEvents--; 896 buildCounterEvents--;
878 return o; 897 return o;
879 } 898 }
880 899
881 checkEvents(api.Events o) { 900 checkEvents(api.Events o) {
882 buildCounterEvents++; 901 buildCounterEvents++;
883 if (buildCounterEvents < 3) { 902 if (buildCounterEvents < 3) {
884 unittest.expect(o.accessRole, unittest.equals('foo')); 903 unittest.expect(o.accessRole, unittest.equals('foo'));
885 checkUnnamed688(o.defaultReminders); 904 checkUnnamed356(o.defaultReminders);
886 unittest.expect(o.description, unittest.equals('foo')); 905 unittest.expect(o.description, unittest.equals('foo'));
887 unittest.expect(o.etag, unittest.equals('foo')); 906 unittest.expect(o.etag, unittest.equals('foo'));
888 checkUnnamed689(o.items); 907 checkUnnamed357(o.items);
889 unittest.expect(o.kind, unittest.equals('foo')); 908 unittest.expect(o.kind, unittest.equals('foo'));
890 unittest.expect(o.nextPageToken, unittest.equals('foo')); 909 unittest.expect(o.nextPageToken, unittest.equals('foo'));
891 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 910 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
892 unittest.expect(o.summary, unittest.equals('foo')); 911 unittest.expect(o.summary, unittest.equals('foo'));
893 unittest.expect(o.timeZone, unittest.equals('foo')); 912 unittest.expect(o.timeZone, unittest.equals('foo'));
894 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 913 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
895 } 914 }
896 buildCounterEvents--; 915 buildCounterEvents--;
897 } 916 }
898 917
899 buildUnnamed690() { 918 buildUnnamed358() {
900 var o = new core.List<api.TimePeriod>(); 919 var o = new core.List<api.TimePeriod>();
901 o.add(buildTimePeriod()); 920 o.add(buildTimePeriod());
902 o.add(buildTimePeriod()); 921 o.add(buildTimePeriod());
903 return o; 922 return o;
904 } 923 }
905 924
906 checkUnnamed690(core.List<api.TimePeriod> o) { 925 checkUnnamed358(core.List<api.TimePeriod> o) {
907 unittest.expect(o, unittest.hasLength(2)); 926 unittest.expect(o, unittest.hasLength(2));
908 checkTimePeriod(o[0]); 927 checkTimePeriod(o[0]);
909 checkTimePeriod(o[1]); 928 checkTimePeriod(o[1]);
910 } 929 }
911 930
912 buildUnnamed691() { 931 buildUnnamed359() {
913 var o = new core.List<api.Error>(); 932 var o = new core.List<api.Error>();
914 o.add(buildError()); 933 o.add(buildError());
915 o.add(buildError()); 934 o.add(buildError());
916 return o; 935 return o;
917 } 936 }
918 937
919 checkUnnamed691(core.List<api.Error> o) { 938 checkUnnamed359(core.List<api.Error> o) {
920 unittest.expect(o, unittest.hasLength(2)); 939 unittest.expect(o, unittest.hasLength(2));
921 checkError(o[0]); 940 checkError(o[0]);
922 checkError(o[1]); 941 checkError(o[1]);
923 } 942 }
924 943
925 core.int buildCounterFreeBusyCalendar = 0; 944 core.int buildCounterFreeBusyCalendar = 0;
926 buildFreeBusyCalendar() { 945 buildFreeBusyCalendar() {
927 var o = new api.FreeBusyCalendar(); 946 var o = new api.FreeBusyCalendar();
928 buildCounterFreeBusyCalendar++; 947 buildCounterFreeBusyCalendar++;
929 if (buildCounterFreeBusyCalendar < 3) { 948 if (buildCounterFreeBusyCalendar < 3) {
930 o.busy = buildUnnamed690(); 949 o.busy = buildUnnamed358();
931 o.errors = buildUnnamed691(); 950 o.errors = buildUnnamed359();
932 } 951 }
933 buildCounterFreeBusyCalendar--; 952 buildCounterFreeBusyCalendar--;
934 return o; 953 return o;
935 } 954 }
936 955
937 checkFreeBusyCalendar(api.FreeBusyCalendar o) { 956 checkFreeBusyCalendar(api.FreeBusyCalendar o) {
938 buildCounterFreeBusyCalendar++; 957 buildCounterFreeBusyCalendar++;
939 if (buildCounterFreeBusyCalendar < 3) { 958 if (buildCounterFreeBusyCalendar < 3) {
940 checkUnnamed690(o.busy); 959 checkUnnamed358(o.busy);
941 checkUnnamed691(o.errors); 960 checkUnnamed359(o.errors);
942 } 961 }
943 buildCounterFreeBusyCalendar--; 962 buildCounterFreeBusyCalendar--;
944 } 963 }
945 964
946 buildUnnamed692() { 965 buildUnnamed360() {
947 var o = new core.List<core.String>(); 966 var o = new core.List<core.String>();
948 o.add("foo"); 967 o.add("foo");
949 o.add("foo"); 968 o.add("foo");
950 return o; 969 return o;
951 } 970 }
952 971
953 checkUnnamed692(core.List<core.String> o) { 972 checkUnnamed360(core.List<core.String> o) {
954 unittest.expect(o, unittest.hasLength(2)); 973 unittest.expect(o, unittest.hasLength(2));
955 unittest.expect(o[0], unittest.equals('foo')); 974 unittest.expect(o[0], unittest.equals('foo'));
956 unittest.expect(o[1], unittest.equals('foo')); 975 unittest.expect(o[1], unittest.equals('foo'));
957 } 976 }
958 977
959 buildUnnamed693() { 978 buildUnnamed361() {
960 var o = new core.List<api.Error>(); 979 var o = new core.List<api.Error>();
961 o.add(buildError()); 980 o.add(buildError());
962 o.add(buildError()); 981 o.add(buildError());
963 return o; 982 return o;
964 } 983 }
965 984
966 checkUnnamed693(core.List<api.Error> o) { 985 checkUnnamed361(core.List<api.Error> o) {
967 unittest.expect(o, unittest.hasLength(2)); 986 unittest.expect(o, unittest.hasLength(2));
968 checkError(o[0]); 987 checkError(o[0]);
969 checkError(o[1]); 988 checkError(o[1]);
970 } 989 }
971 990
972 core.int buildCounterFreeBusyGroup = 0; 991 core.int buildCounterFreeBusyGroup = 0;
973 buildFreeBusyGroup() { 992 buildFreeBusyGroup() {
974 var o = new api.FreeBusyGroup(); 993 var o = new api.FreeBusyGroup();
975 buildCounterFreeBusyGroup++; 994 buildCounterFreeBusyGroup++;
976 if (buildCounterFreeBusyGroup < 3) { 995 if (buildCounterFreeBusyGroup < 3) {
977 o.calendars = buildUnnamed692(); 996 o.calendars = buildUnnamed360();
978 o.errors = buildUnnamed693(); 997 o.errors = buildUnnamed361();
979 } 998 }
980 buildCounterFreeBusyGroup--; 999 buildCounterFreeBusyGroup--;
981 return o; 1000 return o;
982 } 1001 }
983 1002
984 checkFreeBusyGroup(api.FreeBusyGroup o) { 1003 checkFreeBusyGroup(api.FreeBusyGroup o) {
985 buildCounterFreeBusyGroup++; 1004 buildCounterFreeBusyGroup++;
986 if (buildCounterFreeBusyGroup < 3) { 1005 if (buildCounterFreeBusyGroup < 3) {
987 checkUnnamed692(o.calendars); 1006 checkUnnamed360(o.calendars);
988 checkUnnamed693(o.errors); 1007 checkUnnamed361(o.errors);
989 } 1008 }
990 buildCounterFreeBusyGroup--; 1009 buildCounterFreeBusyGroup--;
991 } 1010 }
992 1011
993 buildUnnamed694() { 1012 buildUnnamed362() {
994 var o = new core.List<api.FreeBusyRequestItem>(); 1013 var o = new core.List<api.FreeBusyRequestItem>();
995 o.add(buildFreeBusyRequestItem()); 1014 o.add(buildFreeBusyRequestItem());
996 o.add(buildFreeBusyRequestItem()); 1015 o.add(buildFreeBusyRequestItem());
997 return o; 1016 return o;
998 } 1017 }
999 1018
1000 checkUnnamed694(core.List<api.FreeBusyRequestItem> o) { 1019 checkUnnamed362(core.List<api.FreeBusyRequestItem> o) {
1001 unittest.expect(o, unittest.hasLength(2)); 1020 unittest.expect(o, unittest.hasLength(2));
1002 checkFreeBusyRequestItem(o[0]); 1021 checkFreeBusyRequestItem(o[0]);
1003 checkFreeBusyRequestItem(o[1]); 1022 checkFreeBusyRequestItem(o[1]);
1004 } 1023 }
1005 1024
1006 core.int buildCounterFreeBusyRequest = 0; 1025 core.int buildCounterFreeBusyRequest = 0;
1007 buildFreeBusyRequest() { 1026 buildFreeBusyRequest() {
1008 var o = new api.FreeBusyRequest(); 1027 var o = new api.FreeBusyRequest();
1009 buildCounterFreeBusyRequest++; 1028 buildCounterFreeBusyRequest++;
1010 if (buildCounterFreeBusyRequest < 3) { 1029 if (buildCounterFreeBusyRequest < 3) {
1011 o.calendarExpansionMax = 42; 1030 o.calendarExpansionMax = 42;
1012 o.groupExpansionMax = 42; 1031 o.groupExpansionMax = 42;
1013 o.items = buildUnnamed694(); 1032 o.items = buildUnnamed362();
1014 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1033 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1015 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1034 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1016 o.timeZone = "foo"; 1035 o.timeZone = "foo";
1017 } 1036 }
1018 buildCounterFreeBusyRequest--; 1037 buildCounterFreeBusyRequest--;
1019 return o; 1038 return o;
1020 } 1039 }
1021 1040
1022 checkFreeBusyRequest(api.FreeBusyRequest o) { 1041 checkFreeBusyRequest(api.FreeBusyRequest o) {
1023 buildCounterFreeBusyRequest++; 1042 buildCounterFreeBusyRequest++;
1024 if (buildCounterFreeBusyRequest < 3) { 1043 if (buildCounterFreeBusyRequest < 3) {
1025 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); 1044 unittest.expect(o.calendarExpansionMax, unittest.equals(42));
1026 unittest.expect(o.groupExpansionMax, unittest.equals(42)); 1045 unittest.expect(o.groupExpansionMax, unittest.equals(42));
1027 checkUnnamed694(o.items); 1046 checkUnnamed362(o.items);
1028 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1047 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1029 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1048 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1030 unittest.expect(o.timeZone, unittest.equals('foo')); 1049 unittest.expect(o.timeZone, unittest.equals('foo'));
1031 } 1050 }
1032 buildCounterFreeBusyRequest--; 1051 buildCounterFreeBusyRequest--;
1033 } 1052 }
1034 1053
1035 core.int buildCounterFreeBusyRequestItem = 0; 1054 core.int buildCounterFreeBusyRequestItem = 0;
1036 buildFreeBusyRequestItem() { 1055 buildFreeBusyRequestItem() {
1037 var o = new api.FreeBusyRequestItem(); 1056 var o = new api.FreeBusyRequestItem();
1038 buildCounterFreeBusyRequestItem++; 1057 buildCounterFreeBusyRequestItem++;
1039 if (buildCounterFreeBusyRequestItem < 3) { 1058 if (buildCounterFreeBusyRequestItem < 3) {
1040 o.id = "foo"; 1059 o.id = "foo";
1041 } 1060 }
1042 buildCounterFreeBusyRequestItem--; 1061 buildCounterFreeBusyRequestItem--;
1043 return o; 1062 return o;
1044 } 1063 }
1045 1064
1046 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { 1065 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) {
1047 buildCounterFreeBusyRequestItem++; 1066 buildCounterFreeBusyRequestItem++;
1048 if (buildCounterFreeBusyRequestItem < 3) { 1067 if (buildCounterFreeBusyRequestItem < 3) {
1049 unittest.expect(o.id, unittest.equals('foo')); 1068 unittest.expect(o.id, unittest.equals('foo'));
1050 } 1069 }
1051 buildCounterFreeBusyRequestItem--; 1070 buildCounterFreeBusyRequestItem--;
1052 } 1071 }
1053 1072
1054 buildUnnamed695() { 1073 buildUnnamed363() {
1055 var o = new core.Map<core.String, api.FreeBusyCalendar>(); 1074 var o = new core.Map<core.String, api.FreeBusyCalendar>();
1056 o["x"] = buildFreeBusyCalendar(); 1075 o["x"] = buildFreeBusyCalendar();
1057 o["y"] = buildFreeBusyCalendar(); 1076 o["y"] = buildFreeBusyCalendar();
1058 return o; 1077 return o;
1059 } 1078 }
1060 1079
1061 checkUnnamed695(core.Map<core.String, api.FreeBusyCalendar> o) { 1080 checkUnnamed363(core.Map<core.String, api.FreeBusyCalendar> o) {
1062 unittest.expect(o, unittest.hasLength(2)); 1081 unittest.expect(o, unittest.hasLength(2));
1063 checkFreeBusyCalendar(o["x"]); 1082 checkFreeBusyCalendar(o["x"]);
1064 checkFreeBusyCalendar(o["y"]); 1083 checkFreeBusyCalendar(o["y"]);
1065 } 1084 }
1066 1085
1067 buildUnnamed696() { 1086 buildUnnamed364() {
1068 var o = new core.Map<core.String, api.FreeBusyGroup>(); 1087 var o = new core.Map<core.String, api.FreeBusyGroup>();
1069 o["x"] = buildFreeBusyGroup(); 1088 o["x"] = buildFreeBusyGroup();
1070 o["y"] = buildFreeBusyGroup(); 1089 o["y"] = buildFreeBusyGroup();
1071 return o; 1090 return o;
1072 } 1091 }
1073 1092
1074 checkUnnamed696(core.Map<core.String, api.FreeBusyGroup> o) { 1093 checkUnnamed364(core.Map<core.String, api.FreeBusyGroup> o) {
1075 unittest.expect(o, unittest.hasLength(2)); 1094 unittest.expect(o, unittest.hasLength(2));
1076 checkFreeBusyGroup(o["x"]); 1095 checkFreeBusyGroup(o["x"]);
1077 checkFreeBusyGroup(o["y"]); 1096 checkFreeBusyGroup(o["y"]);
1078 } 1097 }
1079 1098
1080 core.int buildCounterFreeBusyResponse = 0; 1099 core.int buildCounterFreeBusyResponse = 0;
1081 buildFreeBusyResponse() { 1100 buildFreeBusyResponse() {
1082 var o = new api.FreeBusyResponse(); 1101 var o = new api.FreeBusyResponse();
1083 buildCounterFreeBusyResponse++; 1102 buildCounterFreeBusyResponse++;
1084 if (buildCounterFreeBusyResponse < 3) { 1103 if (buildCounterFreeBusyResponse < 3) {
1085 o.calendars = buildUnnamed695(); 1104 o.calendars = buildUnnamed363();
1086 o.groups = buildUnnamed696(); 1105 o.groups = buildUnnamed364();
1087 o.kind = "foo"; 1106 o.kind = "foo";
1088 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 1107 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02");
1089 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 1108 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02");
1090 } 1109 }
1091 buildCounterFreeBusyResponse--; 1110 buildCounterFreeBusyResponse--;
1092 return o; 1111 return o;
1093 } 1112 }
1094 1113
1095 checkFreeBusyResponse(api.FreeBusyResponse o) { 1114 checkFreeBusyResponse(api.FreeBusyResponse o) {
1096 buildCounterFreeBusyResponse++; 1115 buildCounterFreeBusyResponse++;
1097 if (buildCounterFreeBusyResponse < 3) { 1116 if (buildCounterFreeBusyResponse < 3) {
1098 checkUnnamed695(o.calendars); 1117 checkUnnamed363(o.calendars);
1099 checkUnnamed696(o.groups); 1118 checkUnnamed364(o.groups);
1100 unittest.expect(o.kind, unittest.equals('foo')); 1119 unittest.expect(o.kind, unittest.equals('foo'));
1101 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1120 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1102 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1121 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1103 } 1122 }
1104 buildCounterFreeBusyResponse--; 1123 buildCounterFreeBusyResponse--;
1105 } 1124 }
1106 1125
1107 core.int buildCounterSetting = 0; 1126 core.int buildCounterSetting = 0;
1108 buildSetting() { 1127 buildSetting() {
1109 var o = new api.Setting(); 1128 var o = new api.Setting();
(...skipping 12 matching lines...)
1122 buildCounterSetting++; 1141 buildCounterSetting++;
1123 if (buildCounterSetting < 3) { 1142 if (buildCounterSetting < 3) {
1124 unittest.expect(o.etag, unittest.equals('foo')); 1143 unittest.expect(o.etag, unittest.equals('foo'));
1125 unittest.expect(o.id, unittest.equals('foo')); 1144 unittest.expect(o.id, unittest.equals('foo'));
1126 unittest.expect(o.kind, unittest.equals('foo')); 1145 unittest.expect(o.kind, unittest.equals('foo'));
1127 unittest.expect(o.value, unittest.equals('foo')); 1146 unittest.expect(o.value, unittest.equals('foo'));
1128 } 1147 }
1129 buildCounterSetting--; 1148 buildCounterSetting--;
1130 } 1149 }
1131 1150
1132 buildUnnamed697() { 1151 buildUnnamed365() {
1133 var o = new core.List<api.Setting>(); 1152 var o = new core.List<api.Setting>();
1134 o.add(buildSetting()); 1153 o.add(buildSetting());
1135 o.add(buildSetting()); 1154 o.add(buildSetting());
1136 return o; 1155 return o;
1137 } 1156 }
1138 1157
1139 checkUnnamed697(core.List<api.Setting> o) { 1158 checkUnnamed365(core.List<api.Setting> o) {
1140 unittest.expect(o, unittest.hasLength(2)); 1159 unittest.expect(o, unittest.hasLength(2));
1141 checkSetting(o[0]); 1160 checkSetting(o[0]);
1142 checkSetting(o[1]); 1161 checkSetting(o[1]);
1143 } 1162 }
1144 1163
1145 core.int buildCounterSettings = 0; 1164 core.int buildCounterSettings = 0;
1146 buildSettings() { 1165 buildSettings() {
1147 var o = new api.Settings(); 1166 var o = new api.Settings();
1148 buildCounterSettings++; 1167 buildCounterSettings++;
1149 if (buildCounterSettings < 3) { 1168 if (buildCounterSettings < 3) {
1150 o.etag = "foo"; 1169 o.etag = "foo";
1151 o.items = buildUnnamed697(); 1170 o.items = buildUnnamed365();
1152 o.kind = "foo"; 1171 o.kind = "foo";
1153 o.nextPageToken = "foo"; 1172 o.nextPageToken = "foo";
1154 o.nextSyncToken = "foo"; 1173 o.nextSyncToken = "foo";
1155 } 1174 }
1156 buildCounterSettings--; 1175 buildCounterSettings--;
1157 return o; 1176 return o;
1158 } 1177 }
1159 1178
1160 checkSettings(api.Settings o) { 1179 checkSettings(api.Settings o) {
1161 buildCounterSettings++; 1180 buildCounterSettings++;
1162 if (buildCounterSettings < 3) { 1181 if (buildCounterSettings < 3) {
1163 unittest.expect(o.etag, unittest.equals('foo')); 1182 unittest.expect(o.etag, unittest.equals('foo'));
1164 checkUnnamed697(o.items); 1183 checkUnnamed365(o.items);
1165 unittest.expect(o.kind, unittest.equals('foo')); 1184 unittest.expect(o.kind, unittest.equals('foo'));
1166 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1185 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1167 unittest.expect(o.nextSyncToken, unittest.equals('foo')); 1186 unittest.expect(o.nextSyncToken, unittest.equals('foo'));
1168 } 1187 }
1169 buildCounterSettings--; 1188 buildCounterSettings--;
1170 } 1189 }
1171 1190
1172 core.int buildCounterTimePeriod = 0; 1191 core.int buildCounterTimePeriod = 0;
1173 buildTimePeriod() { 1192 buildTimePeriod() {
1174 var o = new api.TimePeriod(); 1193 var o = new api.TimePeriod();
1175 buildCounterTimePeriod++; 1194 buildCounterTimePeriod++;
1176 if (buildCounterTimePeriod < 3) { 1195 if (buildCounterTimePeriod < 3) {
1177 o.end = core.DateTime.parse("2002-02-27T14:01:02"); 1196 o.end = core.DateTime.parse("2002-02-27T14:01:02");
1178 o.start = core.DateTime.parse("2002-02-27T14:01:02"); 1197 o.start = core.DateTime.parse("2002-02-27T14:01:02");
1179 } 1198 }
1180 buildCounterTimePeriod--; 1199 buildCounterTimePeriod--;
1181 return o; 1200 return o;
1182 } 1201 }
1183 1202
1184 checkTimePeriod(api.TimePeriod o) { 1203 checkTimePeriod(api.TimePeriod o) {
1185 buildCounterTimePeriod++; 1204 buildCounterTimePeriod++;
1186 if (buildCounterTimePeriod < 3) { 1205 if (buildCounterTimePeriod < 3) {
1187 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01 :02"))); 1206 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01 :02")));
1188 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14: 01:02"))); 1207 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14: 01:02")));
1189 } 1208 }
1190 buildCounterTimePeriod--; 1209 buildCounterTimePeriod--;
1191 } 1210 }
1192 1211
1193 buildUnnamed698() { 1212 buildUnnamed366() {
1194 var o = new core.List<core.String>(); 1213 var o = new core.List<core.String>();
1195 o.add("foo"); 1214 o.add("foo");
1196 o.add("foo"); 1215 o.add("foo");
1197 return o; 1216 return o;
1198 } 1217 }
1199 1218
1200 checkUnnamed698(core.List<core.String> o) { 1219 checkUnnamed366(core.List<core.String> o) {
1201 unittest.expect(o, unittest.hasLength(2)); 1220 unittest.expect(o, unittest.hasLength(2));
1202 unittest.expect(o[0], unittest.equals('foo')); 1221 unittest.expect(o[0], unittest.equals('foo'));
1203 unittest.expect(o[1], unittest.equals('foo')); 1222 unittest.expect(o[1], unittest.equals('foo'));
1204 } 1223 }
1205 1224
1206 buildUnnamed699() { 1225 buildUnnamed367() {
1207 var o = new core.List<core.String>(); 1226 var o = new core.List<core.String>();
1208 o.add("foo"); 1227 o.add("foo");
1209 o.add("foo"); 1228 o.add("foo");
1210 return o; 1229 return o;
1211 } 1230 }
1212 1231
1213 checkUnnamed699(core.List<core.String> o) { 1232 checkUnnamed367(core.List<core.String> o) {
1214 unittest.expect(o, unittest.hasLength(2)); 1233 unittest.expect(o, unittest.hasLength(2));
1215 unittest.expect(o[0], unittest.equals('foo')); 1234 unittest.expect(o[0], unittest.equals('foo'));
1216 unittest.expect(o[1], unittest.equals('foo')); 1235 unittest.expect(o[1], unittest.equals('foo'));
1217 } 1236 }
1218 1237
1219 buildUnnamed700() { 1238 buildUnnamed368() {
1220 var o = new core.List<core.String>(); 1239 var o = new core.List<core.String>();
1221 o.add("foo"); 1240 o.add("foo");
1222 o.add("foo"); 1241 o.add("foo");
1223 return o; 1242 return o;
1224 } 1243 }
1225 1244
1226 checkUnnamed700(core.List<core.String> o) { 1245 checkUnnamed368(core.List<core.String> o) {
1227 unittest.expect(o, unittest.hasLength(2)); 1246 unittest.expect(o, unittest.hasLength(2));
1228 unittest.expect(o[0], unittest.equals('foo')); 1247 unittest.expect(o[0], unittest.equals('foo'));
1229 unittest.expect(o[1], unittest.equals('foo')); 1248 unittest.expect(o[1], unittest.equals('foo'));
1230 } 1249 }
1231 1250
1232 buildUnnamed701() { 1251 buildUnnamed369() {
1233 var o = new core.List<core.String>(); 1252 var o = new core.List<core.String>();
1234 o.add("foo"); 1253 o.add("foo");
1235 o.add("foo"); 1254 o.add("foo");
1236 return o; 1255 return o;
1237 } 1256 }
1238 1257
1239 checkUnnamed701(core.List<core.String> o) { 1258 checkUnnamed369(core.List<core.String> o) {
1240 unittest.expect(o, unittest.hasLength(2)); 1259 unittest.expect(o, unittest.hasLength(2));
1241 unittest.expect(o[0], unittest.equals('foo')); 1260 unittest.expect(o[0], unittest.equals('foo'));
1242 unittest.expect(o[1], unittest.equals('foo')); 1261 unittest.expect(o[1], unittest.equals('foo'));
1243 } 1262 }
1244 1263
1245 1264
1246 main() { 1265 main() {
1247 unittest.group("obj-schema-Acl", () { 1266 unittest.group("obj-schema-Acl", () {
1248 unittest.test("to-json--from-json", () { 1267 unittest.test("to-json--from-json", () {
1249 var o = buildAcl(); 1268 var o = buildAcl();
(...skipping 158 matching lines...)
1408 1427
1409 unittest.group("obj-schema-Event", () { 1428 unittest.group("obj-schema-Event", () {
1410 unittest.test("to-json--from-json", () { 1429 unittest.test("to-json--from-json", () {
1411 var o = buildEvent(); 1430 var o = buildEvent();
1412 var od = new api.Event.fromJson(o.toJson()); 1431 var od = new api.Event.fromJson(o.toJson());
1413 checkEvent(od); 1432 checkEvent(od);
1414 }); 1433 });
1415 }); 1434 });
1416 1435
1417 1436
1437 unittest.group("obj-schema-EventAttachment", () {
1438 unittest.test("to-json--from-json", () {
1439 var o = buildEventAttachment();
1440 var od = new api.EventAttachment.fromJson(o.toJson());
1441 checkEventAttachment(od);
1442 });
1443 });
1444
1445
1418 unittest.group("obj-schema-EventAttendee", () { 1446 unittest.group("obj-schema-EventAttendee", () {
1419 unittest.test("to-json--from-json", () { 1447 unittest.test("to-json--from-json", () {
1420 var o = buildEventAttendee(); 1448 var o = buildEventAttendee();
1421 var od = new api.EventAttendee.fromJson(o.toJson()); 1449 var od = new api.EventAttendee.fromJson(o.toJson());
1422 checkEventAttendee(od); 1450 checkEventAttendee(od);
1423 }); 1451 });
1424 }); 1452 });
1425 1453
1426 1454
1427 unittest.group("obj-schema-EventDateTime", () { 1455 unittest.group("obj-schema-EventDateTime", () {
(...skipping 1623 matching lines...)
3051 3079
3052 var mock = new common_test.HttpServerMock(); 3080 var mock = new common_test.HttpServerMock();
3053 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3081 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3054 var arg_calendarId = "foo"; 3082 var arg_calendarId = "foo";
3055 var arg_alwaysIncludeEmail = true; 3083 var arg_alwaysIncludeEmail = true;
3056 var arg_iCalUID = "foo"; 3084 var arg_iCalUID = "foo";
3057 var arg_maxAttendees = 42; 3085 var arg_maxAttendees = 42;
3058 var arg_maxResults = 42; 3086 var arg_maxResults = 42;
3059 var arg_orderBy = "foo"; 3087 var arg_orderBy = "foo";
3060 var arg_pageToken = "foo"; 3088 var arg_pageToken = "foo";
3061 var arg_privateExtendedProperty = buildUnnamed698(); 3089 var arg_privateExtendedProperty = buildUnnamed366();
3062 var arg_q = "foo"; 3090 var arg_q = "foo";
3063 var arg_sharedExtendedProperty = buildUnnamed699(); 3091 var arg_sharedExtendedProperty = buildUnnamed367();
3064 var arg_showDeleted = true; 3092 var arg_showDeleted = true;
3065 var arg_showHiddenInvitations = true; 3093 var arg_showHiddenInvitations = true;
3066 var arg_singleEvents = true; 3094 var arg_singleEvents = true;
3067 var arg_syncToken = "foo"; 3095 var arg_syncToken = "foo";
3068 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3096 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3069 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3097 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3070 var arg_timeZone = "foo"; 3098 var arg_timeZone = "foo";
3071 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3099 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3100 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3073 var path = (req.url).path; 3101 var path = (req.url).path;
(...skipping 321 matching lines...)
3395 var mock = new common_test.HttpServerMock(); 3423 var mock = new common_test.HttpServerMock();
3396 api.EventsResourceApi res = new api.CalendarApi(mock).events; 3424 api.EventsResourceApi res = new api.CalendarApi(mock).events;
3397 var arg_request = buildChannel(); 3425 var arg_request = buildChannel();
3398 var arg_calendarId = "foo"; 3426 var arg_calendarId = "foo";
3399 var arg_alwaysIncludeEmail = true; 3427 var arg_alwaysIncludeEmail = true;
3400 var arg_iCalUID = "foo"; 3428 var arg_iCalUID = "foo";
3401 var arg_maxAttendees = 42; 3429 var arg_maxAttendees = 42;
3402 var arg_maxResults = 42; 3430 var arg_maxResults = 42;
3403 var arg_orderBy = "foo"; 3431 var arg_orderBy = "foo";
3404 var arg_pageToken = "foo"; 3432 var arg_pageToken = "foo";
3405 var arg_privateExtendedProperty = buildUnnamed700(); 3433 var arg_privateExtendedProperty = buildUnnamed368();
3406 var arg_q = "foo"; 3434 var arg_q = "foo";
3407 var arg_sharedExtendedProperty = buildUnnamed701(); 3435 var arg_sharedExtendedProperty = buildUnnamed369();
3408 var arg_showDeleted = true; 3436 var arg_showDeleted = true;
3409 var arg_showHiddenInvitations = true; 3437 var arg_showHiddenInvitations = true;
3410 var arg_singleEvents = true; 3438 var arg_singleEvents = true;
3411 var arg_syncToken = "foo"; 3439 var arg_syncToken = "foo";
3412 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); 3440 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02");
3413 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); 3441 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02");
3414 var arg_timeZone = "foo"; 3442 var arg_timeZone = "foo";
3415 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); 3443 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02");
3416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3444 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3417 var obj = new api.Channel.fromJson(json); 3445 var obj = new api.Channel.fromJson(json);
(...skipping 273 matching lines...)
3691 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { 3719 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) {
3692 checkChannel(response); 3720 checkChannel(response);
3693 }))); 3721 })));
3694 }); 3722 });
3695 3723
3696 }); 3724 });
3697 3725
3698 3726
3699 } 3727 }
3700 3728
OLDNEW

Powered by Google App Engine