OLD | NEW |
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 Loading... |
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 buildUnnamed1022() { | 54 buildUnnamed1013() { |
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 checkUnnamed1022(core.List<api.AclRule> o) { | 61 checkUnnamed1013(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 = buildUnnamed1022(); | 73 o.items = buildUnnamed1013(); |
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 checkUnnamed1022(o.items); | 86 checkUnnamed1013(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 Loading... |
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 buildUnnamed1023() { | 173 buildUnnamed1014() { |
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 checkUnnamed1023(core.List<api.CalendarListEntry> o) { | 180 checkUnnamed1014(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 = buildUnnamed1023(); | 192 o.items = buildUnnamed1014(); |
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 checkUnnamed1023(o.items); | 205 checkUnnamed1014(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 buildUnnamed1024() { | 213 buildUnnamed1015() { |
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 checkUnnamed1024(core.List<api.EventReminder> o) { | 220 checkUnnamed1015(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 buildUnnamed1025() { | 226 buildUnnamed1016() { |
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 checkUnnamed1025(core.List<api.CalendarNotification> o) { | 233 checkUnnamed1016(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 = buildUnnamed1025(); | 244 o.notifications = buildUnnamed1016(); |
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 checkUnnamed1025(o.notifications); | 253 checkUnnamed1016(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 = buildUnnamed1024(); | 266 o.defaultReminders = buildUnnamed1015(); |
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 checkUnnamed1024(o.defaultReminders); | 292 checkUnnamed1015(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 Loading... |
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 buildUnnamed1026() { | 332 buildUnnamed1017() { |
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 checkUnnamed1026(core.Map<core.String, core.String> o) { | 339 checkUnnamed1017(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 = buildUnnamed1026(); | 354 o.params = buildUnnamed1017(); |
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 checkUnnamed1026(o.params); | 372 checkUnnamed1017(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 Loading... |
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 buildUnnamed1027() { | 403 buildUnnamed1018() { |
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 checkUnnamed1027(core.Map<core.String, api.ColorDefinition> o) { | 410 checkUnnamed1018(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 buildUnnamed1028() { | 416 buildUnnamed1019() { |
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 checkUnnamed1028(core.Map<core.String, api.ColorDefinition> o) { | 423 checkUnnamed1019(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 = buildUnnamed1027(); | 434 o.calendar = buildUnnamed1018(); |
435 o.event = buildUnnamed1028(); | 435 o.event = buildUnnamed1019(); |
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 checkUnnamed1027(o.calendar); | 446 checkUnnamed1018(o.calendar); |
447 checkUnnamed1028(o.event); | 447 checkUnnamed1019(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 buildUnnamed1029() { | 454 buildUnnamed1020() { |
455 var o = new core.List<api.Link>(); | 455 var o = new core.List<api.Link>(); |
456 o.add(buildLink()); | 456 o.add(buildLink()); |
457 o.add(buildLink()); | 457 o.add(buildLink()); |
458 return o; | 458 return o; |
459 } | 459 } |
460 | 460 |
461 checkUnnamed1029(core.List<api.Link> o) { | 461 checkUnnamed1020(core.List<api.Link> o) { |
462 unittest.expect(o, unittest.hasLength(2)); | 462 unittest.expect(o, unittest.hasLength(2)); |
463 checkLink(o[0]); | 463 checkLink(o[0]); |
464 checkLink(o[1]); | 464 checkLink(o[1]); |
465 } | 465 } |
466 | 466 |
467 core.int buildCounterDeepLinkData = 0; | 467 core.int buildCounterDeepLinkData = 0; |
468 buildDeepLinkData() { | 468 buildDeepLinkData() { |
469 var o = new api.DeepLinkData(); | 469 var o = new api.DeepLinkData(); |
470 buildCounterDeepLinkData++; | 470 buildCounterDeepLinkData++; |
471 if (buildCounterDeepLinkData < 3) { | 471 if (buildCounterDeepLinkData < 3) { |
472 o.links = buildUnnamed1029(); | 472 o.links = buildUnnamed1020(); |
473 o.url = "foo"; | 473 o.url = "foo"; |
474 } | 474 } |
475 buildCounterDeepLinkData--; | 475 buildCounterDeepLinkData--; |
476 return o; | 476 return o; |
477 } | 477 } |
478 | 478 |
479 checkDeepLinkData(api.DeepLinkData o) { | 479 checkDeepLinkData(api.DeepLinkData o) { |
480 buildCounterDeepLinkData++; | 480 buildCounterDeepLinkData++; |
481 if (buildCounterDeepLinkData < 3) { | 481 if (buildCounterDeepLinkData < 3) { |
482 checkUnnamed1029(o.links); | 482 checkUnnamed1020(o.links); |
483 unittest.expect(o.url, unittest.equals('foo')); | 483 unittest.expect(o.url, unittest.equals('foo')); |
484 } | 484 } |
485 buildCounterDeepLinkData--; | 485 buildCounterDeepLinkData--; |
486 } | 486 } |
487 | 487 |
488 core.int buildCounterDisplayInfo = 0; | 488 core.int buildCounterDisplayInfo = 0; |
489 buildDisplayInfo() { | 489 buildDisplayInfo() { |
490 var o = new api.DisplayInfo(); | 490 var o = new api.DisplayInfo(); |
491 buildCounterDisplayInfo++; | 491 buildCounterDisplayInfo++; |
492 if (buildCounterDisplayInfo < 3) { | 492 if (buildCounterDisplayInfo < 3) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 526 |
527 checkError(api.Error o) { | 527 checkError(api.Error o) { |
528 buildCounterError++; | 528 buildCounterError++; |
529 if (buildCounterError < 3) { | 529 if (buildCounterError < 3) { |
530 unittest.expect(o.domain, unittest.equals('foo')); | 530 unittest.expect(o.domain, unittest.equals('foo')); |
531 unittest.expect(o.reason, unittest.equals('foo')); | 531 unittest.expect(o.reason, unittest.equals('foo')); |
532 } | 532 } |
533 buildCounterError--; | 533 buildCounterError--; |
534 } | 534 } |
535 | 535 |
536 buildUnnamed1030() { | 536 buildUnnamed1021() { |
537 var o = new core.List<api.EventAttachment>(); | 537 var o = new core.List<api.EventAttachment>(); |
538 o.add(buildEventAttachment()); | 538 o.add(buildEventAttachment()); |
539 o.add(buildEventAttachment()); | 539 o.add(buildEventAttachment()); |
540 return o; | 540 return o; |
541 } | 541 } |
542 | 542 |
543 checkUnnamed1030(core.List<api.EventAttachment> o) { | 543 checkUnnamed1021(core.List<api.EventAttachment> o) { |
544 unittest.expect(o, unittest.hasLength(2)); | 544 unittest.expect(o, unittest.hasLength(2)); |
545 checkEventAttachment(o[0]); | 545 checkEventAttachment(o[0]); |
546 checkEventAttachment(o[1]); | 546 checkEventAttachment(o[1]); |
547 } | 547 } |
548 | 548 |
549 buildUnnamed1031() { | 549 buildUnnamed1022() { |
550 var o = new core.List<api.EventAttendee>(); | 550 var o = new core.List<api.EventAttendee>(); |
551 o.add(buildEventAttendee()); | 551 o.add(buildEventAttendee()); |
552 o.add(buildEventAttendee()); | 552 o.add(buildEventAttendee()); |
553 return o; | 553 return o; |
554 } | 554 } |
555 | 555 |
556 checkUnnamed1031(core.List<api.EventAttendee> o) { | 556 checkUnnamed1022(core.List<api.EventAttendee> o) { |
557 unittest.expect(o, unittest.hasLength(2)); | 557 unittest.expect(o, unittest.hasLength(2)); |
558 checkEventAttendee(o[0]); | 558 checkEventAttendee(o[0]); |
559 checkEventAttendee(o[1]); | 559 checkEventAttendee(o[1]); |
560 } | 560 } |
561 | 561 |
562 core.int buildCounterEventCreator = 0; | 562 core.int buildCounterEventCreator = 0; |
563 buildEventCreator() { | 563 buildEventCreator() { |
564 var o = new api.EventCreator(); | 564 var o = new api.EventCreator(); |
565 buildCounterEventCreator++; | 565 buildCounterEventCreator++; |
566 if (buildCounterEventCreator < 3) { | 566 if (buildCounterEventCreator < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
577 buildCounterEventCreator++; | 577 buildCounterEventCreator++; |
578 if (buildCounterEventCreator < 3) { | 578 if (buildCounterEventCreator < 3) { |
579 unittest.expect(o.displayName, unittest.equals('foo')); | 579 unittest.expect(o.displayName, unittest.equals('foo')); |
580 unittest.expect(o.email, unittest.equals('foo')); | 580 unittest.expect(o.email, unittest.equals('foo')); |
581 unittest.expect(o.id, unittest.equals('foo')); | 581 unittest.expect(o.id, unittest.equals('foo')); |
582 unittest.expect(o.self, unittest.isTrue); | 582 unittest.expect(o.self, unittest.isTrue); |
583 } | 583 } |
584 buildCounterEventCreator--; | 584 buildCounterEventCreator--; |
585 } | 585 } |
586 | 586 |
587 buildUnnamed1032() { | 587 buildUnnamed1023() { |
588 var o = new core.Map<core.String, core.String>(); | 588 var o = new core.Map<core.String, core.String>(); |
589 o["x"] = "foo"; | 589 o["x"] = "foo"; |
590 o["y"] = "foo"; | 590 o["y"] = "foo"; |
591 return o; | 591 return o; |
592 } | 592 } |
593 | 593 |
594 checkUnnamed1032(core.Map<core.String, core.String> o) { | 594 checkUnnamed1023(core.Map<core.String, core.String> o) { |
595 unittest.expect(o, unittest.hasLength(2)); | 595 unittest.expect(o, unittest.hasLength(2)); |
596 unittest.expect(o["x"], unittest.equals('foo')); | 596 unittest.expect(o["x"], unittest.equals('foo')); |
597 unittest.expect(o["y"], unittest.equals('foo')); | 597 unittest.expect(o["y"], unittest.equals('foo')); |
598 } | 598 } |
599 | 599 |
600 buildUnnamed1033() { | 600 buildUnnamed1024() { |
601 var o = new core.Map<core.String, core.String>(); | 601 var o = new core.Map<core.String, core.String>(); |
602 o["x"] = "foo"; | 602 o["x"] = "foo"; |
603 o["y"] = "foo"; | 603 o["y"] = "foo"; |
604 return o; | 604 return o; |
605 } | 605 } |
606 | 606 |
607 checkUnnamed1033(core.Map<core.String, core.String> o) { | 607 checkUnnamed1024(core.Map<core.String, core.String> o) { |
608 unittest.expect(o, unittest.hasLength(2)); | 608 unittest.expect(o, unittest.hasLength(2)); |
609 unittest.expect(o["x"], unittest.equals('foo')); | 609 unittest.expect(o["x"], unittest.equals('foo')); |
610 unittest.expect(o["y"], unittest.equals('foo')); | 610 unittest.expect(o["y"], unittest.equals('foo')); |
611 } | 611 } |
612 | 612 |
613 core.int buildCounterEventExtendedProperties = 0; | 613 core.int buildCounterEventExtendedProperties = 0; |
614 buildEventExtendedProperties() { | 614 buildEventExtendedProperties() { |
615 var o = new api.EventExtendedProperties(); | 615 var o = new api.EventExtendedProperties(); |
616 buildCounterEventExtendedProperties++; | 616 buildCounterEventExtendedProperties++; |
617 if (buildCounterEventExtendedProperties < 3) { | 617 if (buildCounterEventExtendedProperties < 3) { |
618 o.private = buildUnnamed1032(); | 618 o.private = buildUnnamed1023(); |
619 o.shared = buildUnnamed1033(); | 619 o.shared = buildUnnamed1024(); |
620 } | 620 } |
621 buildCounterEventExtendedProperties--; | 621 buildCounterEventExtendedProperties--; |
622 return o; | 622 return o; |
623 } | 623 } |
624 | 624 |
625 checkEventExtendedProperties(api.EventExtendedProperties o) { | 625 checkEventExtendedProperties(api.EventExtendedProperties o) { |
626 buildCounterEventExtendedProperties++; | 626 buildCounterEventExtendedProperties++; |
627 if (buildCounterEventExtendedProperties < 3) { | 627 if (buildCounterEventExtendedProperties < 3) { |
628 checkUnnamed1032(o.private); | 628 checkUnnamed1023(o.private); |
629 checkUnnamed1033(o.shared); | 629 checkUnnamed1024(o.shared); |
630 } | 630 } |
631 buildCounterEventExtendedProperties--; | 631 buildCounterEventExtendedProperties--; |
632 } | 632 } |
633 | 633 |
634 buildUnnamed1034() { | 634 buildUnnamed1025() { |
635 var o = new core.Map<core.String, core.String>(); | 635 var o = new core.Map<core.String, core.String>(); |
636 o["x"] = "foo"; | 636 o["x"] = "foo"; |
637 o["y"] = "foo"; | 637 o["y"] = "foo"; |
638 return o; | 638 return o; |
639 } | 639 } |
640 | 640 |
641 checkUnnamed1034(core.Map<core.String, core.String> o) { | 641 checkUnnamed1025(core.Map<core.String, core.String> o) { |
642 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
643 unittest.expect(o["x"], unittest.equals('foo')); | 643 unittest.expect(o["x"], unittest.equals('foo')); |
644 unittest.expect(o["y"], unittest.equals('foo')); | 644 unittest.expect(o["y"], unittest.equals('foo')); |
645 } | 645 } |
646 | 646 |
647 core.int buildCounterEventGadget = 0; | 647 core.int buildCounterEventGadget = 0; |
648 buildEventGadget() { | 648 buildEventGadget() { |
649 var o = new api.EventGadget(); | 649 var o = new api.EventGadget(); |
650 buildCounterEventGadget++; | 650 buildCounterEventGadget++; |
651 if (buildCounterEventGadget < 3) { | 651 if (buildCounterEventGadget < 3) { |
652 o.display = "foo"; | 652 o.display = "foo"; |
653 o.height = 42; | 653 o.height = 42; |
654 o.iconLink = "foo"; | 654 o.iconLink = "foo"; |
655 o.link = "foo"; | 655 o.link = "foo"; |
656 o.preferences = buildUnnamed1034(); | 656 o.preferences = buildUnnamed1025(); |
657 o.title = "foo"; | 657 o.title = "foo"; |
658 o.type = "foo"; | 658 o.type = "foo"; |
659 o.width = 42; | 659 o.width = 42; |
660 } | 660 } |
661 buildCounterEventGadget--; | 661 buildCounterEventGadget--; |
662 return o; | 662 return o; |
663 } | 663 } |
664 | 664 |
665 checkEventGadget(api.EventGadget o) { | 665 checkEventGadget(api.EventGadget o) { |
666 buildCounterEventGadget++; | 666 buildCounterEventGadget++; |
667 if (buildCounterEventGadget < 3) { | 667 if (buildCounterEventGadget < 3) { |
668 unittest.expect(o.display, unittest.equals('foo')); | 668 unittest.expect(o.display, unittest.equals('foo')); |
669 unittest.expect(o.height, unittest.equals(42)); | 669 unittest.expect(o.height, unittest.equals(42)); |
670 unittest.expect(o.iconLink, unittest.equals('foo')); | 670 unittest.expect(o.iconLink, unittest.equals('foo')); |
671 unittest.expect(o.link, unittest.equals('foo')); | 671 unittest.expect(o.link, unittest.equals('foo')); |
672 checkUnnamed1034(o.preferences); | 672 checkUnnamed1025(o.preferences); |
673 unittest.expect(o.title, unittest.equals('foo')); | 673 unittest.expect(o.title, unittest.equals('foo')); |
674 unittest.expect(o.type, unittest.equals('foo')); | 674 unittest.expect(o.type, unittest.equals('foo')); |
675 unittest.expect(o.width, unittest.equals(42)); | 675 unittest.expect(o.width, unittest.equals(42)); |
676 } | 676 } |
677 buildCounterEventGadget--; | 677 buildCounterEventGadget--; |
678 } | 678 } |
679 | 679 |
680 core.int buildCounterEventOrganizer = 0; | 680 core.int buildCounterEventOrganizer = 0; |
681 buildEventOrganizer() { | 681 buildEventOrganizer() { |
682 var o = new api.EventOrganizer(); | 682 var o = new api.EventOrganizer(); |
(...skipping 12 matching lines...) Expand all Loading... |
695 buildCounterEventOrganizer++; | 695 buildCounterEventOrganizer++; |
696 if (buildCounterEventOrganizer < 3) { | 696 if (buildCounterEventOrganizer < 3) { |
697 unittest.expect(o.displayName, unittest.equals('foo')); | 697 unittest.expect(o.displayName, unittest.equals('foo')); |
698 unittest.expect(o.email, unittest.equals('foo')); | 698 unittest.expect(o.email, unittest.equals('foo')); |
699 unittest.expect(o.id, unittest.equals('foo')); | 699 unittest.expect(o.id, unittest.equals('foo')); |
700 unittest.expect(o.self, unittest.isTrue); | 700 unittest.expect(o.self, unittest.isTrue); |
701 } | 701 } |
702 buildCounterEventOrganizer--; | 702 buildCounterEventOrganizer--; |
703 } | 703 } |
704 | 704 |
705 buildUnnamed1035() { | 705 buildUnnamed1026() { |
706 var o = new core.List<core.String>(); | 706 var o = new core.List<core.String>(); |
707 o.add("foo"); | 707 o.add("foo"); |
708 o.add("foo"); | 708 o.add("foo"); |
709 return o; | 709 return o; |
710 } | 710 } |
711 | 711 |
712 checkUnnamed1035(core.List<core.String> o) { | 712 checkUnnamed1026(core.List<core.String> o) { |
713 unittest.expect(o, unittest.hasLength(2)); | 713 unittest.expect(o, unittest.hasLength(2)); |
714 unittest.expect(o[0], unittest.equals('foo')); | 714 unittest.expect(o[0], unittest.equals('foo')); |
715 unittest.expect(o[1], unittest.equals('foo')); | 715 unittest.expect(o[1], unittest.equals('foo')); |
716 } | 716 } |
717 | 717 |
718 buildUnnamed1036() { | 718 buildUnnamed1027() { |
719 var o = new core.List<api.EventReminder>(); | 719 var o = new core.List<api.EventReminder>(); |
720 o.add(buildEventReminder()); | 720 o.add(buildEventReminder()); |
721 o.add(buildEventReminder()); | 721 o.add(buildEventReminder()); |
722 return o; | 722 return o; |
723 } | 723 } |
724 | 724 |
725 checkUnnamed1036(core.List<api.EventReminder> o) { | 725 checkUnnamed1027(core.List<api.EventReminder> o) { |
726 unittest.expect(o, unittest.hasLength(2)); | 726 unittest.expect(o, unittest.hasLength(2)); |
727 checkEventReminder(o[0]); | 727 checkEventReminder(o[0]); |
728 checkEventReminder(o[1]); | 728 checkEventReminder(o[1]); |
729 } | 729 } |
730 | 730 |
731 core.int buildCounterEventReminders = 0; | 731 core.int buildCounterEventReminders = 0; |
732 buildEventReminders() { | 732 buildEventReminders() { |
733 var o = new api.EventReminders(); | 733 var o = new api.EventReminders(); |
734 buildCounterEventReminders++; | 734 buildCounterEventReminders++; |
735 if (buildCounterEventReminders < 3) { | 735 if (buildCounterEventReminders < 3) { |
736 o.overrides = buildUnnamed1036(); | 736 o.overrides = buildUnnamed1027(); |
737 o.useDefault = true; | 737 o.useDefault = true; |
738 } | 738 } |
739 buildCounterEventReminders--; | 739 buildCounterEventReminders--; |
740 return o; | 740 return o; |
741 } | 741 } |
742 | 742 |
743 checkEventReminders(api.EventReminders o) { | 743 checkEventReminders(api.EventReminders o) { |
744 buildCounterEventReminders++; | 744 buildCounterEventReminders++; |
745 if (buildCounterEventReminders < 3) { | 745 if (buildCounterEventReminders < 3) { |
746 checkUnnamed1036(o.overrides); | 746 checkUnnamed1027(o.overrides); |
747 unittest.expect(o.useDefault, unittest.isTrue); | 747 unittest.expect(o.useDefault, unittest.isTrue); |
748 } | 748 } |
749 buildCounterEventReminders--; | 749 buildCounterEventReminders--; |
750 } | 750 } |
751 | 751 |
752 core.int buildCounterEventSource = 0; | 752 core.int buildCounterEventSource = 0; |
753 buildEventSource() { | 753 buildEventSource() { |
754 var o = new api.EventSource(); | 754 var o = new api.EventSource(); |
755 buildCounterEventSource++; | 755 buildCounterEventSource++; |
756 if (buildCounterEventSource < 3) { | 756 if (buildCounterEventSource < 3) { |
(...skipping 12 matching lines...) Expand all Loading... |
769 } | 769 } |
770 buildCounterEventSource--; | 770 buildCounterEventSource--; |
771 } | 771 } |
772 | 772 |
773 core.int buildCounterEvent = 0; | 773 core.int buildCounterEvent = 0; |
774 buildEvent() { | 774 buildEvent() { |
775 var o = new api.Event(); | 775 var o = new api.Event(); |
776 buildCounterEvent++; | 776 buildCounterEvent++; |
777 if (buildCounterEvent < 3) { | 777 if (buildCounterEvent < 3) { |
778 o.anyoneCanAddSelf = true; | 778 o.anyoneCanAddSelf = true; |
779 o.attachments = buildUnnamed1030(); | 779 o.attachments = buildUnnamed1021(); |
780 o.attendees = buildUnnamed1031(); | 780 o.attendees = buildUnnamed1022(); |
781 o.attendeesOmitted = true; | 781 o.attendeesOmitted = true; |
782 o.colorId = "foo"; | 782 o.colorId = "foo"; |
783 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 783 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
784 o.creator = buildEventCreator(); | 784 o.creator = buildEventCreator(); |
785 o.description = "foo"; | 785 o.description = "foo"; |
786 o.end = buildEventDateTime(); | 786 o.end = buildEventDateTime(); |
787 o.endTimeUnspecified = true; | 787 o.endTimeUnspecified = true; |
788 o.etag = "foo"; | 788 o.etag = "foo"; |
789 o.extendedProperties = buildEventExtendedProperties(); | 789 o.extendedProperties = buildEventExtendedProperties(); |
790 o.gadget = buildEventGadget(); | 790 o.gadget = buildEventGadget(); |
791 o.guestsCanInviteOthers = true; | 791 o.guestsCanInviteOthers = true; |
792 o.guestsCanModify = true; | 792 o.guestsCanModify = true; |
793 o.guestsCanSeeOtherGuests = true; | 793 o.guestsCanSeeOtherGuests = true; |
794 o.hangoutLink = "foo"; | 794 o.hangoutLink = "foo"; |
795 o.htmlLink = "foo"; | 795 o.htmlLink = "foo"; |
796 o.iCalUID = "foo"; | 796 o.iCalUID = "foo"; |
797 o.id = "foo"; | 797 o.id = "foo"; |
798 o.kind = "foo"; | 798 o.kind = "foo"; |
799 o.location = "foo"; | 799 o.location = "foo"; |
800 o.locked = true; | 800 o.locked = true; |
801 o.organizer = buildEventOrganizer(); | 801 o.organizer = buildEventOrganizer(); |
802 o.originalStartTime = buildEventDateTime(); | 802 o.originalStartTime = buildEventDateTime(); |
803 o.privateCopy = true; | 803 o.privateCopy = true; |
804 o.recurrence = buildUnnamed1035(); | 804 o.recurrence = buildUnnamed1026(); |
805 o.recurringEventId = "foo"; | 805 o.recurringEventId = "foo"; |
806 o.reminders = buildEventReminders(); | 806 o.reminders = buildEventReminders(); |
807 o.sequence = 42; | 807 o.sequence = 42; |
808 o.source = buildEventSource(); | 808 o.source = buildEventSource(); |
809 o.start = buildEventDateTime(); | 809 o.start = buildEventDateTime(); |
810 o.status = "foo"; | 810 o.status = "foo"; |
811 o.summary = "foo"; | 811 o.summary = "foo"; |
812 o.transparency = "foo"; | 812 o.transparency = "foo"; |
813 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 813 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
814 o.visibility = "foo"; | 814 o.visibility = "foo"; |
815 } | 815 } |
816 buildCounterEvent--; | 816 buildCounterEvent--; |
817 return o; | 817 return o; |
818 } | 818 } |
819 | 819 |
820 checkEvent(api.Event o) { | 820 checkEvent(api.Event o) { |
821 buildCounterEvent++; | 821 buildCounterEvent++; |
822 if (buildCounterEvent < 3) { | 822 if (buildCounterEvent < 3) { |
823 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); | 823 unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); |
824 checkUnnamed1030(o.attachments); | 824 checkUnnamed1021(o.attachments); |
825 checkUnnamed1031(o.attendees); | 825 checkUnnamed1022(o.attendees); |
826 unittest.expect(o.attendeesOmitted, unittest.isTrue); | 826 unittest.expect(o.attendeesOmitted, unittest.isTrue); |
827 unittest.expect(o.colorId, unittest.equals('foo')); | 827 unittest.expect(o.colorId, unittest.equals('foo')); |
828 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 828 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
829 checkEventCreator(o.creator); | 829 checkEventCreator(o.creator); |
830 unittest.expect(o.description, unittest.equals('foo')); | 830 unittest.expect(o.description, unittest.equals('foo')); |
831 checkEventDateTime(o.end); | 831 checkEventDateTime(o.end); |
832 unittest.expect(o.endTimeUnspecified, unittest.isTrue); | 832 unittest.expect(o.endTimeUnspecified, unittest.isTrue); |
833 unittest.expect(o.etag, unittest.equals('foo')); | 833 unittest.expect(o.etag, unittest.equals('foo')); |
834 checkEventExtendedProperties(o.extendedProperties); | 834 checkEventExtendedProperties(o.extendedProperties); |
835 checkEventGadget(o.gadget); | 835 checkEventGadget(o.gadget); |
836 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue); | 836 unittest.expect(o.guestsCanInviteOthers, unittest.isTrue); |
837 unittest.expect(o.guestsCanModify, unittest.isTrue); | 837 unittest.expect(o.guestsCanModify, unittest.isTrue); |
838 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue); | 838 unittest.expect(o.guestsCanSeeOtherGuests, unittest.isTrue); |
839 unittest.expect(o.hangoutLink, unittest.equals('foo')); | 839 unittest.expect(o.hangoutLink, unittest.equals('foo')); |
840 unittest.expect(o.htmlLink, unittest.equals('foo')); | 840 unittest.expect(o.htmlLink, unittest.equals('foo')); |
841 unittest.expect(o.iCalUID, unittest.equals('foo')); | 841 unittest.expect(o.iCalUID, unittest.equals('foo')); |
842 unittest.expect(o.id, unittest.equals('foo')); | 842 unittest.expect(o.id, unittest.equals('foo')); |
843 unittest.expect(o.kind, unittest.equals('foo')); | 843 unittest.expect(o.kind, unittest.equals('foo')); |
844 unittest.expect(o.location, unittest.equals('foo')); | 844 unittest.expect(o.location, unittest.equals('foo')); |
845 unittest.expect(o.locked, unittest.isTrue); | 845 unittest.expect(o.locked, unittest.isTrue); |
846 checkEventOrganizer(o.organizer); | 846 checkEventOrganizer(o.organizer); |
847 checkEventDateTime(o.originalStartTime); | 847 checkEventDateTime(o.originalStartTime); |
848 unittest.expect(o.privateCopy, unittest.isTrue); | 848 unittest.expect(o.privateCopy, unittest.isTrue); |
849 checkUnnamed1035(o.recurrence); | 849 checkUnnamed1026(o.recurrence); |
850 unittest.expect(o.recurringEventId, unittest.equals('foo')); | 850 unittest.expect(o.recurringEventId, unittest.equals('foo')); |
851 checkEventReminders(o.reminders); | 851 checkEventReminders(o.reminders); |
852 unittest.expect(o.sequence, unittest.equals(42)); | 852 unittest.expect(o.sequence, unittest.equals(42)); |
853 checkEventSource(o.source); | 853 checkEventSource(o.source); |
854 checkEventDateTime(o.start); | 854 checkEventDateTime(o.start); |
855 unittest.expect(o.status, unittest.equals('foo')); | 855 unittest.expect(o.status, unittest.equals('foo')); |
856 unittest.expect(o.summary, unittest.equals('foo')); | 856 unittest.expect(o.summary, unittest.equals('foo')); |
857 unittest.expect(o.transparency, unittest.equals('foo')); | 857 unittest.expect(o.transparency, unittest.equals('foo')); |
858 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 858 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
859 unittest.expect(o.visibility, unittest.equals('foo')); | 859 unittest.expect(o.visibility, unittest.equals('foo')); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 | 983 |
984 checkEventReminder(api.EventReminder o) { | 984 checkEventReminder(api.EventReminder o) { |
985 buildCounterEventReminder++; | 985 buildCounterEventReminder++; |
986 if (buildCounterEventReminder < 3) { | 986 if (buildCounterEventReminder < 3) { |
987 unittest.expect(o.method, unittest.equals('foo')); | 987 unittest.expect(o.method, unittest.equals('foo')); |
988 unittest.expect(o.minutes, unittest.equals(42)); | 988 unittest.expect(o.minutes, unittest.equals(42)); |
989 } | 989 } |
990 buildCounterEventReminder--; | 990 buildCounterEventReminder--; |
991 } | 991 } |
992 | 992 |
993 buildUnnamed1037() { | 993 buildUnnamed1028() { |
994 var o = new core.List<api.EventReminder>(); | 994 var o = new core.List<api.EventReminder>(); |
995 o.add(buildEventReminder()); | 995 o.add(buildEventReminder()); |
996 o.add(buildEventReminder()); | 996 o.add(buildEventReminder()); |
997 return o; | 997 return o; |
998 } | 998 } |
999 | 999 |
1000 checkUnnamed1037(core.List<api.EventReminder> o) { | 1000 checkUnnamed1028(core.List<api.EventReminder> o) { |
1001 unittest.expect(o, unittest.hasLength(2)); | 1001 unittest.expect(o, unittest.hasLength(2)); |
1002 checkEventReminder(o[0]); | 1002 checkEventReminder(o[0]); |
1003 checkEventReminder(o[1]); | 1003 checkEventReminder(o[1]); |
1004 } | 1004 } |
1005 | 1005 |
1006 buildUnnamed1038() { | 1006 buildUnnamed1029() { |
1007 var o = new core.List<api.Event>(); | 1007 var o = new core.List<api.Event>(); |
1008 o.add(buildEvent()); | 1008 o.add(buildEvent()); |
1009 o.add(buildEvent()); | 1009 o.add(buildEvent()); |
1010 return o; | 1010 return o; |
1011 } | 1011 } |
1012 | 1012 |
1013 checkUnnamed1038(core.List<api.Event> o) { | 1013 checkUnnamed1029(core.List<api.Event> o) { |
1014 unittest.expect(o, unittest.hasLength(2)); | 1014 unittest.expect(o, unittest.hasLength(2)); |
1015 checkEvent(o[0]); | 1015 checkEvent(o[0]); |
1016 checkEvent(o[1]); | 1016 checkEvent(o[1]); |
1017 } | 1017 } |
1018 | 1018 |
1019 core.int buildCounterEvents = 0; | 1019 core.int buildCounterEvents = 0; |
1020 buildEvents() { | 1020 buildEvents() { |
1021 var o = new api.Events(); | 1021 var o = new api.Events(); |
1022 buildCounterEvents++; | 1022 buildCounterEvents++; |
1023 if (buildCounterEvents < 3) { | 1023 if (buildCounterEvents < 3) { |
1024 o.accessRole = "foo"; | 1024 o.accessRole = "foo"; |
1025 o.defaultReminders = buildUnnamed1037(); | 1025 o.defaultReminders = buildUnnamed1028(); |
1026 o.description = "foo"; | 1026 o.description = "foo"; |
1027 o.etag = "foo"; | 1027 o.etag = "foo"; |
1028 o.items = buildUnnamed1038(); | 1028 o.items = buildUnnamed1029(); |
1029 o.kind = "foo"; | 1029 o.kind = "foo"; |
1030 o.nextPageToken = "foo"; | 1030 o.nextPageToken = "foo"; |
1031 o.nextSyncToken = "foo"; | 1031 o.nextSyncToken = "foo"; |
1032 o.summary = "foo"; | 1032 o.summary = "foo"; |
1033 o.timeZone = "foo"; | 1033 o.timeZone = "foo"; |
1034 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1034 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1035 } | 1035 } |
1036 buildCounterEvents--; | 1036 buildCounterEvents--; |
1037 return o; | 1037 return o; |
1038 } | 1038 } |
1039 | 1039 |
1040 checkEvents(api.Events o) { | 1040 checkEvents(api.Events o) { |
1041 buildCounterEvents++; | 1041 buildCounterEvents++; |
1042 if (buildCounterEvents < 3) { | 1042 if (buildCounterEvents < 3) { |
1043 unittest.expect(o.accessRole, unittest.equals('foo')); | 1043 unittest.expect(o.accessRole, unittest.equals('foo')); |
1044 checkUnnamed1037(o.defaultReminders); | 1044 checkUnnamed1028(o.defaultReminders); |
1045 unittest.expect(o.description, unittest.equals('foo')); | 1045 unittest.expect(o.description, unittest.equals('foo')); |
1046 unittest.expect(o.etag, unittest.equals('foo')); | 1046 unittest.expect(o.etag, unittest.equals('foo')); |
1047 checkUnnamed1038(o.items); | 1047 checkUnnamed1029(o.items); |
1048 unittest.expect(o.kind, unittest.equals('foo')); | 1048 unittest.expect(o.kind, unittest.equals('foo')); |
1049 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1049 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1050 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 1050 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
1051 unittest.expect(o.summary, unittest.equals('foo')); | 1051 unittest.expect(o.summary, unittest.equals('foo')); |
1052 unittest.expect(o.timeZone, unittest.equals('foo')); | 1052 unittest.expect(o.timeZone, unittest.equals('foo')); |
1053 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1053 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1054 } | 1054 } |
1055 buildCounterEvents--; | 1055 buildCounterEvents--; |
1056 } | 1056 } |
1057 | 1057 |
1058 buildUnnamed1039() { | 1058 buildUnnamed1030() { |
1059 var o = new core.List<api.TimePeriod>(); | 1059 var o = new core.List<api.TimePeriod>(); |
1060 o.add(buildTimePeriod()); | 1060 o.add(buildTimePeriod()); |
1061 o.add(buildTimePeriod()); | 1061 o.add(buildTimePeriod()); |
1062 return o; | 1062 return o; |
1063 } | 1063 } |
1064 | 1064 |
1065 checkUnnamed1039(core.List<api.TimePeriod> o) { | 1065 checkUnnamed1030(core.List<api.TimePeriod> o) { |
1066 unittest.expect(o, unittest.hasLength(2)); | 1066 unittest.expect(o, unittest.hasLength(2)); |
1067 checkTimePeriod(o[0]); | 1067 checkTimePeriod(o[0]); |
1068 checkTimePeriod(o[1]); | 1068 checkTimePeriod(o[1]); |
1069 } | 1069 } |
1070 | 1070 |
1071 buildUnnamed1040() { | 1071 buildUnnamed1031() { |
1072 var o = new core.List<api.Error>(); | 1072 var o = new core.List<api.Error>(); |
1073 o.add(buildError()); | 1073 o.add(buildError()); |
1074 o.add(buildError()); | 1074 o.add(buildError()); |
1075 return o; | 1075 return o; |
1076 } | 1076 } |
1077 | 1077 |
1078 checkUnnamed1040(core.List<api.Error> o) { | 1078 checkUnnamed1031(core.List<api.Error> o) { |
1079 unittest.expect(o, unittest.hasLength(2)); | 1079 unittest.expect(o, unittest.hasLength(2)); |
1080 checkError(o[0]); | 1080 checkError(o[0]); |
1081 checkError(o[1]); | 1081 checkError(o[1]); |
1082 } | 1082 } |
1083 | 1083 |
1084 core.int buildCounterFreeBusyCalendar = 0; | 1084 core.int buildCounterFreeBusyCalendar = 0; |
1085 buildFreeBusyCalendar() { | 1085 buildFreeBusyCalendar() { |
1086 var o = new api.FreeBusyCalendar(); | 1086 var o = new api.FreeBusyCalendar(); |
1087 buildCounterFreeBusyCalendar++; | 1087 buildCounterFreeBusyCalendar++; |
1088 if (buildCounterFreeBusyCalendar < 3) { | 1088 if (buildCounterFreeBusyCalendar < 3) { |
1089 o.busy = buildUnnamed1039(); | 1089 o.busy = buildUnnamed1030(); |
1090 o.errors = buildUnnamed1040(); | 1090 o.errors = buildUnnamed1031(); |
1091 } | 1091 } |
1092 buildCounterFreeBusyCalendar--; | 1092 buildCounterFreeBusyCalendar--; |
1093 return o; | 1093 return o; |
1094 } | 1094 } |
1095 | 1095 |
1096 checkFreeBusyCalendar(api.FreeBusyCalendar o) { | 1096 checkFreeBusyCalendar(api.FreeBusyCalendar o) { |
1097 buildCounterFreeBusyCalendar++; | 1097 buildCounterFreeBusyCalendar++; |
1098 if (buildCounterFreeBusyCalendar < 3) { | 1098 if (buildCounterFreeBusyCalendar < 3) { |
1099 checkUnnamed1039(o.busy); | 1099 checkUnnamed1030(o.busy); |
1100 checkUnnamed1040(o.errors); | 1100 checkUnnamed1031(o.errors); |
1101 } | 1101 } |
1102 buildCounterFreeBusyCalendar--; | 1102 buildCounterFreeBusyCalendar--; |
1103 } | 1103 } |
1104 | 1104 |
1105 buildUnnamed1041() { | 1105 buildUnnamed1032() { |
1106 var o = new core.List<core.String>(); | 1106 var o = new core.List<core.String>(); |
1107 o.add("foo"); | 1107 o.add("foo"); |
1108 o.add("foo"); | 1108 o.add("foo"); |
1109 return o; | 1109 return o; |
1110 } | 1110 } |
1111 | 1111 |
1112 checkUnnamed1041(core.List<core.String> o) { | 1112 checkUnnamed1032(core.List<core.String> o) { |
1113 unittest.expect(o, unittest.hasLength(2)); | 1113 unittest.expect(o, unittest.hasLength(2)); |
1114 unittest.expect(o[0], unittest.equals('foo')); | 1114 unittest.expect(o[0], unittest.equals('foo')); |
1115 unittest.expect(o[1], unittest.equals('foo')); | 1115 unittest.expect(o[1], unittest.equals('foo')); |
1116 } | 1116 } |
1117 | 1117 |
1118 buildUnnamed1042() { | 1118 buildUnnamed1033() { |
1119 var o = new core.List<api.Error>(); | 1119 var o = new core.List<api.Error>(); |
1120 o.add(buildError()); | 1120 o.add(buildError()); |
1121 o.add(buildError()); | 1121 o.add(buildError()); |
1122 return o; | 1122 return o; |
1123 } | 1123 } |
1124 | 1124 |
1125 checkUnnamed1042(core.List<api.Error> o) { | 1125 checkUnnamed1033(core.List<api.Error> o) { |
1126 unittest.expect(o, unittest.hasLength(2)); | 1126 unittest.expect(o, unittest.hasLength(2)); |
1127 checkError(o[0]); | 1127 checkError(o[0]); |
1128 checkError(o[1]); | 1128 checkError(o[1]); |
1129 } | 1129 } |
1130 | 1130 |
1131 core.int buildCounterFreeBusyGroup = 0; | 1131 core.int buildCounterFreeBusyGroup = 0; |
1132 buildFreeBusyGroup() { | 1132 buildFreeBusyGroup() { |
1133 var o = new api.FreeBusyGroup(); | 1133 var o = new api.FreeBusyGroup(); |
1134 buildCounterFreeBusyGroup++; | 1134 buildCounterFreeBusyGroup++; |
1135 if (buildCounterFreeBusyGroup < 3) { | 1135 if (buildCounterFreeBusyGroup < 3) { |
1136 o.calendars = buildUnnamed1041(); | 1136 o.calendars = buildUnnamed1032(); |
1137 o.errors = buildUnnamed1042(); | 1137 o.errors = buildUnnamed1033(); |
1138 } | 1138 } |
1139 buildCounterFreeBusyGroup--; | 1139 buildCounterFreeBusyGroup--; |
1140 return o; | 1140 return o; |
1141 } | 1141 } |
1142 | 1142 |
1143 checkFreeBusyGroup(api.FreeBusyGroup o) { | 1143 checkFreeBusyGroup(api.FreeBusyGroup o) { |
1144 buildCounterFreeBusyGroup++; | 1144 buildCounterFreeBusyGroup++; |
1145 if (buildCounterFreeBusyGroup < 3) { | 1145 if (buildCounterFreeBusyGroup < 3) { |
1146 checkUnnamed1041(o.calendars); | 1146 checkUnnamed1032(o.calendars); |
1147 checkUnnamed1042(o.errors); | 1147 checkUnnamed1033(o.errors); |
1148 } | 1148 } |
1149 buildCounterFreeBusyGroup--; | 1149 buildCounterFreeBusyGroup--; |
1150 } | 1150 } |
1151 | 1151 |
1152 buildUnnamed1043() { | 1152 buildUnnamed1034() { |
1153 var o = new core.List<api.FreeBusyRequestItem>(); | 1153 var o = new core.List<api.FreeBusyRequestItem>(); |
1154 o.add(buildFreeBusyRequestItem()); | 1154 o.add(buildFreeBusyRequestItem()); |
1155 o.add(buildFreeBusyRequestItem()); | 1155 o.add(buildFreeBusyRequestItem()); |
1156 return o; | 1156 return o; |
1157 } | 1157 } |
1158 | 1158 |
1159 checkUnnamed1043(core.List<api.FreeBusyRequestItem> o) { | 1159 checkUnnamed1034(core.List<api.FreeBusyRequestItem> o) { |
1160 unittest.expect(o, unittest.hasLength(2)); | 1160 unittest.expect(o, unittest.hasLength(2)); |
1161 checkFreeBusyRequestItem(o[0]); | 1161 checkFreeBusyRequestItem(o[0]); |
1162 checkFreeBusyRequestItem(o[1]); | 1162 checkFreeBusyRequestItem(o[1]); |
1163 } | 1163 } |
1164 | 1164 |
1165 core.int buildCounterFreeBusyRequest = 0; | 1165 core.int buildCounterFreeBusyRequest = 0; |
1166 buildFreeBusyRequest() { | 1166 buildFreeBusyRequest() { |
1167 var o = new api.FreeBusyRequest(); | 1167 var o = new api.FreeBusyRequest(); |
1168 buildCounterFreeBusyRequest++; | 1168 buildCounterFreeBusyRequest++; |
1169 if (buildCounterFreeBusyRequest < 3) { | 1169 if (buildCounterFreeBusyRequest < 3) { |
1170 o.calendarExpansionMax = 42; | 1170 o.calendarExpansionMax = 42; |
1171 o.groupExpansionMax = 42; | 1171 o.groupExpansionMax = 42; |
1172 o.items = buildUnnamed1043(); | 1172 o.items = buildUnnamed1034(); |
1173 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 1173 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
1174 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 1174 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
1175 o.timeZone = "foo"; | 1175 o.timeZone = "foo"; |
1176 } | 1176 } |
1177 buildCounterFreeBusyRequest--; | 1177 buildCounterFreeBusyRequest--; |
1178 return o; | 1178 return o; |
1179 } | 1179 } |
1180 | 1180 |
1181 checkFreeBusyRequest(api.FreeBusyRequest o) { | 1181 checkFreeBusyRequest(api.FreeBusyRequest o) { |
1182 buildCounterFreeBusyRequest++; | 1182 buildCounterFreeBusyRequest++; |
1183 if (buildCounterFreeBusyRequest < 3) { | 1183 if (buildCounterFreeBusyRequest < 3) { |
1184 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); | 1184 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); |
1185 unittest.expect(o.groupExpansionMax, unittest.equals(42)); | 1185 unittest.expect(o.groupExpansionMax, unittest.equals(42)); |
1186 checkUnnamed1043(o.items); | 1186 checkUnnamed1034(o.items); |
1187 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1187 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1188 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1188 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1189 unittest.expect(o.timeZone, unittest.equals('foo')); | 1189 unittest.expect(o.timeZone, unittest.equals('foo')); |
1190 } | 1190 } |
1191 buildCounterFreeBusyRequest--; | 1191 buildCounterFreeBusyRequest--; |
1192 } | 1192 } |
1193 | 1193 |
1194 core.int buildCounterFreeBusyRequestItem = 0; | 1194 core.int buildCounterFreeBusyRequestItem = 0; |
1195 buildFreeBusyRequestItem() { | 1195 buildFreeBusyRequestItem() { |
1196 var o = new api.FreeBusyRequestItem(); | 1196 var o = new api.FreeBusyRequestItem(); |
1197 buildCounterFreeBusyRequestItem++; | 1197 buildCounterFreeBusyRequestItem++; |
1198 if (buildCounterFreeBusyRequestItem < 3) { | 1198 if (buildCounterFreeBusyRequestItem < 3) { |
1199 o.id = "foo"; | 1199 o.id = "foo"; |
1200 } | 1200 } |
1201 buildCounterFreeBusyRequestItem--; | 1201 buildCounterFreeBusyRequestItem--; |
1202 return o; | 1202 return o; |
1203 } | 1203 } |
1204 | 1204 |
1205 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { | 1205 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { |
1206 buildCounterFreeBusyRequestItem++; | 1206 buildCounterFreeBusyRequestItem++; |
1207 if (buildCounterFreeBusyRequestItem < 3) { | 1207 if (buildCounterFreeBusyRequestItem < 3) { |
1208 unittest.expect(o.id, unittest.equals('foo')); | 1208 unittest.expect(o.id, unittest.equals('foo')); |
1209 } | 1209 } |
1210 buildCounterFreeBusyRequestItem--; | 1210 buildCounterFreeBusyRequestItem--; |
1211 } | 1211 } |
1212 | 1212 |
1213 buildUnnamed1044() { | 1213 buildUnnamed1035() { |
1214 var o = new core.Map<core.String, api.FreeBusyCalendar>(); | 1214 var o = new core.Map<core.String, api.FreeBusyCalendar>(); |
1215 o["x"] = buildFreeBusyCalendar(); | 1215 o["x"] = buildFreeBusyCalendar(); |
1216 o["y"] = buildFreeBusyCalendar(); | 1216 o["y"] = buildFreeBusyCalendar(); |
1217 return o; | 1217 return o; |
1218 } | 1218 } |
1219 | 1219 |
1220 checkUnnamed1044(core.Map<core.String, api.FreeBusyCalendar> o) { | 1220 checkUnnamed1035(core.Map<core.String, api.FreeBusyCalendar> o) { |
1221 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
1222 checkFreeBusyCalendar(o["x"]); | 1222 checkFreeBusyCalendar(o["x"]); |
1223 checkFreeBusyCalendar(o["y"]); | 1223 checkFreeBusyCalendar(o["y"]); |
1224 } | 1224 } |
1225 | 1225 |
1226 buildUnnamed1045() { | 1226 buildUnnamed1036() { |
1227 var o = new core.Map<core.String, api.FreeBusyGroup>(); | 1227 var o = new core.Map<core.String, api.FreeBusyGroup>(); |
1228 o["x"] = buildFreeBusyGroup(); | 1228 o["x"] = buildFreeBusyGroup(); |
1229 o["y"] = buildFreeBusyGroup(); | 1229 o["y"] = buildFreeBusyGroup(); |
1230 return o; | 1230 return o; |
1231 } | 1231 } |
1232 | 1232 |
1233 checkUnnamed1045(core.Map<core.String, api.FreeBusyGroup> o) { | 1233 checkUnnamed1036(core.Map<core.String, api.FreeBusyGroup> o) { |
1234 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
1235 checkFreeBusyGroup(o["x"]); | 1235 checkFreeBusyGroup(o["x"]); |
1236 checkFreeBusyGroup(o["y"]); | 1236 checkFreeBusyGroup(o["y"]); |
1237 } | 1237 } |
1238 | 1238 |
1239 core.int buildCounterFreeBusyResponse = 0; | 1239 core.int buildCounterFreeBusyResponse = 0; |
1240 buildFreeBusyResponse() { | 1240 buildFreeBusyResponse() { |
1241 var o = new api.FreeBusyResponse(); | 1241 var o = new api.FreeBusyResponse(); |
1242 buildCounterFreeBusyResponse++; | 1242 buildCounterFreeBusyResponse++; |
1243 if (buildCounterFreeBusyResponse < 3) { | 1243 if (buildCounterFreeBusyResponse < 3) { |
1244 o.calendars = buildUnnamed1044(); | 1244 o.calendars = buildUnnamed1035(); |
1245 o.groups = buildUnnamed1045(); | 1245 o.groups = buildUnnamed1036(); |
1246 o.kind = "foo"; | 1246 o.kind = "foo"; |
1247 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 1247 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
1248 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 1248 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
1249 } | 1249 } |
1250 buildCounterFreeBusyResponse--; | 1250 buildCounterFreeBusyResponse--; |
1251 return o; | 1251 return o; |
1252 } | 1252 } |
1253 | 1253 |
1254 checkFreeBusyResponse(api.FreeBusyResponse o) { | 1254 checkFreeBusyResponse(api.FreeBusyResponse o) { |
1255 buildCounterFreeBusyResponse++; | 1255 buildCounterFreeBusyResponse++; |
1256 if (buildCounterFreeBusyResponse < 3) { | 1256 if (buildCounterFreeBusyResponse < 3) { |
1257 checkUnnamed1044(o.calendars); | 1257 checkUnnamed1035(o.calendars); |
1258 checkUnnamed1045(o.groups); | 1258 checkUnnamed1036(o.groups); |
1259 unittest.expect(o.kind, unittest.equals('foo')); | 1259 unittest.expect(o.kind, unittest.equals('foo')); |
1260 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1260 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1261 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1261 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1262 } | 1262 } |
1263 buildCounterFreeBusyResponse--; | 1263 buildCounterFreeBusyResponse--; |
1264 } | 1264 } |
1265 | 1265 |
1266 core.int buildCounterHabitInstanceData = 0; | 1266 core.int buildCounterHabitInstanceData = 0; |
1267 buildHabitInstanceData() { | 1267 buildHabitInstanceData() { |
1268 var o = new api.HabitInstanceData(); | 1268 var o = new api.HabitInstanceData(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 buildCounterSetting++; | 1356 buildCounterSetting++; |
1357 if (buildCounterSetting < 3) { | 1357 if (buildCounterSetting < 3) { |
1358 unittest.expect(o.etag, unittest.equals('foo')); | 1358 unittest.expect(o.etag, unittest.equals('foo')); |
1359 unittest.expect(o.id, unittest.equals('foo')); | 1359 unittest.expect(o.id, unittest.equals('foo')); |
1360 unittest.expect(o.kind, unittest.equals('foo')); | 1360 unittest.expect(o.kind, unittest.equals('foo')); |
1361 unittest.expect(o.value, unittest.equals('foo')); | 1361 unittest.expect(o.value, unittest.equals('foo')); |
1362 } | 1362 } |
1363 buildCounterSetting--; | 1363 buildCounterSetting--; |
1364 } | 1364 } |
1365 | 1365 |
1366 buildUnnamed1046() { | 1366 buildUnnamed1037() { |
1367 var o = new core.List<api.Setting>(); | 1367 var o = new core.List<api.Setting>(); |
1368 o.add(buildSetting()); | 1368 o.add(buildSetting()); |
1369 o.add(buildSetting()); | 1369 o.add(buildSetting()); |
1370 return o; | 1370 return o; |
1371 } | 1371 } |
1372 | 1372 |
1373 checkUnnamed1046(core.List<api.Setting> o) { | 1373 checkUnnamed1037(core.List<api.Setting> o) { |
1374 unittest.expect(o, unittest.hasLength(2)); | 1374 unittest.expect(o, unittest.hasLength(2)); |
1375 checkSetting(o[0]); | 1375 checkSetting(o[0]); |
1376 checkSetting(o[1]); | 1376 checkSetting(o[1]); |
1377 } | 1377 } |
1378 | 1378 |
1379 core.int buildCounterSettings = 0; | 1379 core.int buildCounterSettings = 0; |
1380 buildSettings() { | 1380 buildSettings() { |
1381 var o = new api.Settings(); | 1381 var o = new api.Settings(); |
1382 buildCounterSettings++; | 1382 buildCounterSettings++; |
1383 if (buildCounterSettings < 3) { | 1383 if (buildCounterSettings < 3) { |
1384 o.etag = "foo"; | 1384 o.etag = "foo"; |
1385 o.items = buildUnnamed1046(); | 1385 o.items = buildUnnamed1037(); |
1386 o.kind = "foo"; | 1386 o.kind = "foo"; |
1387 o.nextPageToken = "foo"; | 1387 o.nextPageToken = "foo"; |
1388 o.nextSyncToken = "foo"; | 1388 o.nextSyncToken = "foo"; |
1389 } | 1389 } |
1390 buildCounterSettings--; | 1390 buildCounterSettings--; |
1391 return o; | 1391 return o; |
1392 } | 1392 } |
1393 | 1393 |
1394 checkSettings(api.Settings o) { | 1394 checkSettings(api.Settings o) { |
1395 buildCounterSettings++; | 1395 buildCounterSettings++; |
1396 if (buildCounterSettings < 3) { | 1396 if (buildCounterSettings < 3) { |
1397 unittest.expect(o.etag, unittest.equals('foo')); | 1397 unittest.expect(o.etag, unittest.equals('foo')); |
1398 checkUnnamed1046(o.items); | 1398 checkUnnamed1037(o.items); |
1399 unittest.expect(o.kind, unittest.equals('foo')); | 1399 unittest.expect(o.kind, unittest.equals('foo')); |
1400 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1400 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1401 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 1401 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
1402 } | 1402 } |
1403 buildCounterSettings--; | 1403 buildCounterSettings--; |
1404 } | 1404 } |
1405 | 1405 |
1406 core.int buildCounterTimePeriod = 0; | 1406 core.int buildCounterTimePeriod = 0; |
1407 buildTimePeriod() { | 1407 buildTimePeriod() { |
1408 var o = new api.TimePeriod(); | 1408 var o = new api.TimePeriod(); |
1409 buildCounterTimePeriod++; | 1409 buildCounterTimePeriod++; |
1410 if (buildCounterTimePeriod < 3) { | 1410 if (buildCounterTimePeriod < 3) { |
1411 o.end = core.DateTime.parse("2002-02-27T14:01:02"); | 1411 o.end = core.DateTime.parse("2002-02-27T14:01:02"); |
1412 o.start = core.DateTime.parse("2002-02-27T14:01:02"); | 1412 o.start = core.DateTime.parse("2002-02-27T14:01:02"); |
1413 } | 1413 } |
1414 buildCounterTimePeriod--; | 1414 buildCounterTimePeriod--; |
1415 return o; | 1415 return o; |
1416 } | 1416 } |
1417 | 1417 |
1418 checkTimePeriod(api.TimePeriod o) { | 1418 checkTimePeriod(api.TimePeriod o) { |
1419 buildCounterTimePeriod++; | 1419 buildCounterTimePeriod++; |
1420 if (buildCounterTimePeriod < 3) { | 1420 if (buildCounterTimePeriod < 3) { |
1421 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01
:02"))); | 1421 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01
:02"))); |
1422 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14:
01:02"))); | 1422 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14:
01:02"))); |
1423 } | 1423 } |
1424 buildCounterTimePeriod--; | 1424 buildCounterTimePeriod--; |
1425 } | 1425 } |
1426 | 1426 |
1427 buildUnnamed1047() { | 1427 buildUnnamed1038() { |
1428 var o = new core.List<core.String>(); | 1428 var o = new core.List<core.String>(); |
1429 o.add("foo"); | 1429 o.add("foo"); |
1430 o.add("foo"); | 1430 o.add("foo"); |
1431 return o; | 1431 return o; |
1432 } | 1432 } |
1433 | 1433 |
1434 checkUnnamed1047(core.List<core.String> o) { | 1434 checkUnnamed1038(core.List<core.String> o) { |
1435 unittest.expect(o, unittest.hasLength(2)); | 1435 unittest.expect(o, unittest.hasLength(2)); |
1436 unittest.expect(o[0], unittest.equals('foo')); | 1436 unittest.expect(o[0], unittest.equals('foo')); |
1437 unittest.expect(o[1], unittest.equals('foo')); | 1437 unittest.expect(o[1], unittest.equals('foo')); |
1438 } | 1438 } |
1439 | 1439 |
1440 buildUnnamed1048() { | 1440 buildUnnamed1039() { |
1441 var o = new core.List<core.String>(); | 1441 var o = new core.List<core.String>(); |
1442 o.add("foo"); | 1442 o.add("foo"); |
1443 o.add("foo"); | 1443 o.add("foo"); |
1444 return o; | 1444 return o; |
1445 } | 1445 } |
1446 | 1446 |
1447 checkUnnamed1048(core.List<core.String> o) { | 1447 checkUnnamed1039(core.List<core.String> o) { |
1448 unittest.expect(o, unittest.hasLength(2)); | 1448 unittest.expect(o, unittest.hasLength(2)); |
1449 unittest.expect(o[0], unittest.equals('foo')); | 1449 unittest.expect(o[0], unittest.equals('foo')); |
1450 unittest.expect(o[1], unittest.equals('foo')); | 1450 unittest.expect(o[1], unittest.equals('foo')); |
1451 } | 1451 } |
1452 | 1452 |
1453 buildUnnamed1049() { | 1453 buildUnnamed1040() { |
1454 var o = new core.List<core.String>(); | 1454 var o = new core.List<core.String>(); |
1455 o.add("foo"); | 1455 o.add("foo"); |
1456 o.add("foo"); | 1456 o.add("foo"); |
1457 return o; | 1457 return o; |
1458 } | 1458 } |
1459 | 1459 |
1460 checkUnnamed1049(core.List<core.String> o) { | 1460 checkUnnamed1040(core.List<core.String> o) { |
1461 unittest.expect(o, unittest.hasLength(2)); | 1461 unittest.expect(o, unittest.hasLength(2)); |
1462 unittest.expect(o[0], unittest.equals('foo')); | 1462 unittest.expect(o[0], unittest.equals('foo')); |
1463 unittest.expect(o[1], unittest.equals('foo')); | 1463 unittest.expect(o[1], unittest.equals('foo')); |
1464 } | 1464 } |
1465 | 1465 |
1466 buildUnnamed1050() { | 1466 buildUnnamed1041() { |
1467 var o = new core.List<core.String>(); | 1467 var o = new core.List<core.String>(); |
1468 o.add("foo"); | 1468 o.add("foo"); |
1469 o.add("foo"); | 1469 o.add("foo"); |
1470 return o; | 1470 return o; |
1471 } | 1471 } |
1472 | 1472 |
1473 checkUnnamed1050(core.List<core.String> o) { | 1473 checkUnnamed1041(core.List<core.String> o) { |
1474 unittest.expect(o, unittest.hasLength(2)); | 1474 unittest.expect(o, unittest.hasLength(2)); |
1475 unittest.expect(o[0], unittest.equals('foo')); | 1475 unittest.expect(o[0], unittest.equals('foo')); |
1476 unittest.expect(o[1], unittest.equals('foo')); | 1476 unittest.expect(o[1], unittest.equals('foo')); |
1477 } | 1477 } |
1478 | 1478 |
1479 | 1479 |
1480 main() { | 1480 main() { |
1481 unittest.group("obj-schema-Acl", () { | 1481 unittest.group("obj-schema-Acl", () { |
1482 unittest.test("to-json--from-json", () { | 1482 unittest.test("to-json--from-json", () { |
1483 var o = buildAcl(); | 1483 var o = buildAcl(); |
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3352 | 3352 |
3353 var mock = new HttpServerMock(); | 3353 var mock = new HttpServerMock(); |
3354 api.EventsResourceApi res = new api.CalendarApi(mock).events; | 3354 api.EventsResourceApi res = new api.CalendarApi(mock).events; |
3355 var arg_calendarId = "foo"; | 3355 var arg_calendarId = "foo"; |
3356 var arg_alwaysIncludeEmail = true; | 3356 var arg_alwaysIncludeEmail = true; |
3357 var arg_iCalUID = "foo"; | 3357 var arg_iCalUID = "foo"; |
3358 var arg_maxAttendees = 42; | 3358 var arg_maxAttendees = 42; |
3359 var arg_maxResults = 42; | 3359 var arg_maxResults = 42; |
3360 var arg_orderBy = "foo"; | 3360 var arg_orderBy = "foo"; |
3361 var arg_pageToken = "foo"; | 3361 var arg_pageToken = "foo"; |
3362 var arg_privateExtendedProperty = buildUnnamed1047(); | 3362 var arg_privateExtendedProperty = buildUnnamed1038(); |
3363 var arg_q = "foo"; | 3363 var arg_q = "foo"; |
3364 var arg_sharedExtendedProperty = buildUnnamed1048(); | 3364 var arg_sharedExtendedProperty = buildUnnamed1039(); |
3365 var arg_showDeleted = true; | 3365 var arg_showDeleted = true; |
3366 var arg_showHiddenInvitations = true; | 3366 var arg_showHiddenInvitations = true; |
3367 var arg_singleEvents = true; | 3367 var arg_singleEvents = true; |
3368 var arg_syncToken = "foo"; | 3368 var arg_syncToken = "foo"; |
3369 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 3369 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
3370 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3370 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3371 var arg_timeZone = "foo"; | 3371 var arg_timeZone = "foo"; |
3372 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3372 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3373 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3373 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3374 var path = (req.url).path; | 3374 var path = (req.url).path; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3700 var mock = new HttpServerMock(); | 3700 var mock = new HttpServerMock(); |
3701 api.EventsResourceApi res = new api.CalendarApi(mock).events; | 3701 api.EventsResourceApi res = new api.CalendarApi(mock).events; |
3702 var arg_request = buildChannel(); | 3702 var arg_request = buildChannel(); |
3703 var arg_calendarId = "foo"; | 3703 var arg_calendarId = "foo"; |
3704 var arg_alwaysIncludeEmail = true; | 3704 var arg_alwaysIncludeEmail = true; |
3705 var arg_iCalUID = "foo"; | 3705 var arg_iCalUID = "foo"; |
3706 var arg_maxAttendees = 42; | 3706 var arg_maxAttendees = 42; |
3707 var arg_maxResults = 42; | 3707 var arg_maxResults = 42; |
3708 var arg_orderBy = "foo"; | 3708 var arg_orderBy = "foo"; |
3709 var arg_pageToken = "foo"; | 3709 var arg_pageToken = "foo"; |
3710 var arg_privateExtendedProperty = buildUnnamed1049(); | 3710 var arg_privateExtendedProperty = buildUnnamed1040(); |
3711 var arg_q = "foo"; | 3711 var arg_q = "foo"; |
3712 var arg_sharedExtendedProperty = buildUnnamed1050(); | 3712 var arg_sharedExtendedProperty = buildUnnamed1041(); |
3713 var arg_showDeleted = true; | 3713 var arg_showDeleted = true; |
3714 var arg_showHiddenInvitations = true; | 3714 var arg_showHiddenInvitations = true; |
3715 var arg_singleEvents = true; | 3715 var arg_singleEvents = true; |
3716 var arg_syncToken = "foo"; | 3716 var arg_syncToken = "foo"; |
3717 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 3717 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
3718 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3718 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3719 var arg_timeZone = "foo"; | 3719 var arg_timeZone = "foo"; |
3720 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3720 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3722 var obj = new api.Channel.fromJson(json); | 3722 var obj = new api.Channel.fromJson(json); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3996 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke
n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { | 3996 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke
n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { |
3997 checkChannel(response); | 3997 checkChannel(response); |
3998 }))); | 3998 }))); |
3999 }); | 3999 }); |
4000 | 4000 |
4001 }); | 4001 }); |
4002 | 4002 |
4003 | 4003 |
4004 } | 4004 } |
4005 | 4005 |
OLD | NEW |