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; |
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 buildUnnamed682() { | 19 buildUnnamed345() { |
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 checkUnnamed682(core.List<api.AclRule> o) { | 26 checkUnnamed345(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 = buildUnnamed682(); | 38 o.items = buildUnnamed345(); |
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 checkUnnamed682(o.items); | 51 checkUnnamed345(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...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 buildUnnamed683() { | 138 buildUnnamed346() { |
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 checkUnnamed683(core.List<api.CalendarListEntry> o) { | 145 checkUnnamed346(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 = buildUnnamed683(); | 157 o.items = buildUnnamed346(); |
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 checkUnnamed683(o.items); | 170 checkUnnamed346(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 buildUnnamed684() { | 178 buildUnnamed347() { |
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 checkUnnamed684(core.List<api.EventReminder> o) { | 185 checkUnnamed347(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 buildUnnamed685() { | 191 buildUnnamed348() { |
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 checkUnnamed685(core.List<api.CalendarNotification> o) { | 198 checkUnnamed348(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 = buildUnnamed685(); | 209 o.notifications = buildUnnamed348(); |
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 checkUnnamed685(o.notifications); | 218 checkUnnamed348(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 = buildUnnamed684(); | 231 o.defaultReminders = buildUnnamed347(); |
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 checkUnnamed684(o.defaultReminders); | 257 checkUnnamed347(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...) Expand all Loading... |
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 buildUnnamed686() { | 297 buildUnnamed349() { |
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 checkUnnamed686(core.Map<core.String, core.String> o) { | 304 checkUnnamed349(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 = buildUnnamed686(); | 319 o.params = buildUnnamed349(); |
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 checkUnnamed686(o.params); | 337 checkUnnamed349(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...) Expand all Loading... |
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 buildUnnamed687() { | 368 buildUnnamed350() { |
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 checkUnnamed687(core.Map<core.String, api.ColorDefinition> o) { | 375 checkUnnamed350(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 buildUnnamed688() { | 381 buildUnnamed351() { |
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 checkUnnamed688(core.Map<core.String, api.ColorDefinition> o) { | 388 checkUnnamed351(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 = buildUnnamed687(); | 399 o.calendar = buildUnnamed350(); |
400 o.event = buildUnnamed688(); | 400 o.event = buildUnnamed351(); |
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 checkUnnamed687(o.calendar); | 411 checkUnnamed350(o.calendar); |
412 checkUnnamed688(o.event); | 412 checkUnnamed351(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 buildUnnamed689() { | 440 buildUnnamed352() { |
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 checkUnnamed689(core.List<api.EventAttendee> o) { | 447 checkUnnamed352(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...) Expand all Loading... |
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 buildUnnamed690() { | 478 buildUnnamed353() { |
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 checkUnnamed690(core.Map<core.String, core.String> o) { | 485 checkUnnamed353(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 buildUnnamed691() { | 491 buildUnnamed354() { |
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 checkUnnamed691(core.Map<core.String, core.String> o) { | 498 checkUnnamed354(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 = buildUnnamed690(); | 509 o.private = buildUnnamed353(); |
510 o.shared = buildUnnamed691(); | 510 o.shared = buildUnnamed354(); |
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 checkUnnamed690(o.private); | 519 checkUnnamed353(o.private); |
520 checkUnnamed691(o.shared); | 520 checkUnnamed354(o.shared); |
521 } | 521 } |
522 buildCounterEventExtendedProperties--; | 522 buildCounterEventExtendedProperties--; |
523 } | 523 } |
524 | 524 |
525 buildUnnamed692() { | 525 buildUnnamed355() { |
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 checkUnnamed692(core.Map<core.String, core.String> o) { | 532 checkUnnamed355(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 = buildUnnamed692(); | 547 o.preferences = buildUnnamed355(); |
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 checkUnnamed692(o.preferences); | 563 checkUnnamed355(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...) Expand all Loading... |
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 buildUnnamed693() { | 596 buildUnnamed356() { |
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 checkUnnamed693(core.List<core.String> o) { | 603 checkUnnamed356(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 buildUnnamed694() { | 609 buildUnnamed357() { |
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 checkUnnamed694(core.List<api.EventReminder> o) { | 616 checkUnnamed357(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 = buildUnnamed694(); | 627 o.overrides = buildUnnamed357(); |
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 checkUnnamed694(o.overrides); | 637 checkUnnamed357(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...) Expand all Loading... |
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 = buildUnnamed689(); | 670 o.attendees = buildUnnamed352(); |
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 = buildUnnamed693(); | 694 o.recurrence = buildUnnamed356(); |
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 checkUnnamed689(o.attendees); | 714 checkUnnamed352(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 checkUnnamed693(o.recurrence); | 738 checkUnnamed356(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; | 753 core.int buildCounterEventAttachment = 0; |
754 buildEventAttachment() { | 754 buildEventAttachment() { |
755 var o = new api.EventAttachment(); | 755 var o = new api.EventAttachment(); |
756 buildCounterEventAttachment++; | 756 buildCounterEventAttachment++; |
757 if (buildCounterEventAttachment < 3) { | 757 if (buildCounterEventAttachment < 3) { |
758 o.title = "foo"; | |
759 } | 758 } |
760 buildCounterEventAttachment--; | 759 buildCounterEventAttachment--; |
761 return o; | 760 return o; |
762 } | 761 } |
763 | 762 |
764 checkEventAttachment(api.EventAttachment o) { | 763 checkEventAttachment(api.EventAttachment o) { |
765 buildCounterEventAttachment++; | 764 buildCounterEventAttachment++; |
766 if (buildCounterEventAttachment < 3) { | 765 if (buildCounterEventAttachment < 3) { |
767 unittest.expect(o.title, unittest.equals('foo')); | |
768 } | 766 } |
769 buildCounterEventAttachment--; | 767 buildCounterEventAttachment--; |
770 } | 768 } |
771 | 769 |
772 core.int buildCounterEventAttendee = 0; | 770 core.int buildCounterEventAttendee = 0; |
773 buildEventAttendee() { | 771 buildEventAttendee() { |
774 var o = new api.EventAttendee(); | 772 var o = new api.EventAttendee(); |
775 buildCounterEventAttendee++; | 773 buildCounterEventAttendee++; |
776 if (buildCounterEventAttendee < 3) { | 774 if (buildCounterEventAttendee < 3) { |
777 o.additionalGuests = 42; | 775 o.additionalGuests = 42; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 | 841 |
844 checkEventReminder(api.EventReminder o) { | 842 checkEventReminder(api.EventReminder o) { |
845 buildCounterEventReminder++; | 843 buildCounterEventReminder++; |
846 if (buildCounterEventReminder < 3) { | 844 if (buildCounterEventReminder < 3) { |
847 unittest.expect(o.method, unittest.equals('foo')); | 845 unittest.expect(o.method, unittest.equals('foo')); |
848 unittest.expect(o.minutes, unittest.equals(42)); | 846 unittest.expect(o.minutes, unittest.equals(42)); |
849 } | 847 } |
850 buildCounterEventReminder--; | 848 buildCounterEventReminder--; |
851 } | 849 } |
852 | 850 |
853 buildUnnamed695() { | 851 buildUnnamed358() { |
854 var o = new core.List<api.EventReminder>(); | 852 var o = new core.List<api.EventReminder>(); |
855 o.add(buildEventReminder()); | 853 o.add(buildEventReminder()); |
856 o.add(buildEventReminder()); | 854 o.add(buildEventReminder()); |
857 return o; | 855 return o; |
858 } | 856 } |
859 | 857 |
860 checkUnnamed695(core.List<api.EventReminder> o) { | 858 checkUnnamed358(core.List<api.EventReminder> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 859 unittest.expect(o, unittest.hasLength(2)); |
862 checkEventReminder(o[0]); | 860 checkEventReminder(o[0]); |
863 checkEventReminder(o[1]); | 861 checkEventReminder(o[1]); |
864 } | 862 } |
865 | 863 |
866 buildUnnamed696() { | 864 buildUnnamed359() { |
867 var o = new core.List<api.Event>(); | 865 var o = new core.List<api.Event>(); |
868 o.add(buildEvent()); | 866 o.add(buildEvent()); |
869 o.add(buildEvent()); | 867 o.add(buildEvent()); |
870 return o; | 868 return o; |
871 } | 869 } |
872 | 870 |
873 checkUnnamed696(core.List<api.Event> o) { | 871 checkUnnamed359(core.List<api.Event> o) { |
874 unittest.expect(o, unittest.hasLength(2)); | 872 unittest.expect(o, unittest.hasLength(2)); |
875 checkEvent(o[0]); | 873 checkEvent(o[0]); |
876 checkEvent(o[1]); | 874 checkEvent(o[1]); |
877 } | 875 } |
878 | 876 |
879 core.int buildCounterEvents = 0; | 877 core.int buildCounterEvents = 0; |
880 buildEvents() { | 878 buildEvents() { |
881 var o = new api.Events(); | 879 var o = new api.Events(); |
882 buildCounterEvents++; | 880 buildCounterEvents++; |
883 if (buildCounterEvents < 3) { | 881 if (buildCounterEvents < 3) { |
884 o.accessRole = "foo"; | 882 o.accessRole = "foo"; |
885 o.defaultReminders = buildUnnamed695(); | 883 o.defaultReminders = buildUnnamed358(); |
886 o.description = "foo"; | 884 o.description = "foo"; |
887 o.etag = "foo"; | 885 o.etag = "foo"; |
888 o.items = buildUnnamed696(); | 886 o.items = buildUnnamed359(); |
889 o.kind = "foo"; | 887 o.kind = "foo"; |
890 o.nextPageToken = "foo"; | 888 o.nextPageToken = "foo"; |
891 o.nextSyncToken = "foo"; | 889 o.nextSyncToken = "foo"; |
892 o.summary = "foo"; | 890 o.summary = "foo"; |
893 o.timeZone = "foo"; | 891 o.timeZone = "foo"; |
894 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 892 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
895 } | 893 } |
896 buildCounterEvents--; | 894 buildCounterEvents--; |
897 return o; | 895 return o; |
898 } | 896 } |
899 | 897 |
900 checkEvents(api.Events o) { | 898 checkEvents(api.Events o) { |
901 buildCounterEvents++; | 899 buildCounterEvents++; |
902 if (buildCounterEvents < 3) { | 900 if (buildCounterEvents < 3) { |
903 unittest.expect(o.accessRole, unittest.equals('foo')); | 901 unittest.expect(o.accessRole, unittest.equals('foo')); |
904 checkUnnamed695(o.defaultReminders); | 902 checkUnnamed358(o.defaultReminders); |
905 unittest.expect(o.description, unittest.equals('foo')); | 903 unittest.expect(o.description, unittest.equals('foo')); |
906 unittest.expect(o.etag, unittest.equals('foo')); | 904 unittest.expect(o.etag, unittest.equals('foo')); |
907 checkUnnamed696(o.items); | 905 checkUnnamed359(o.items); |
908 unittest.expect(o.kind, unittest.equals('foo')); | 906 unittest.expect(o.kind, unittest.equals('foo')); |
909 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 907 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
910 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 908 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
911 unittest.expect(o.summary, unittest.equals('foo')); | 909 unittest.expect(o.summary, unittest.equals('foo')); |
912 unittest.expect(o.timeZone, unittest.equals('foo')); | 910 unittest.expect(o.timeZone, unittest.equals('foo')); |
913 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 911 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
914 } | 912 } |
915 buildCounterEvents--; | 913 buildCounterEvents--; |
916 } | 914 } |
917 | 915 |
918 buildUnnamed697() { | 916 buildUnnamed360() { |
919 var o = new core.List<api.TimePeriod>(); | 917 var o = new core.List<api.TimePeriod>(); |
920 o.add(buildTimePeriod()); | 918 o.add(buildTimePeriod()); |
921 o.add(buildTimePeriod()); | 919 o.add(buildTimePeriod()); |
922 return o; | 920 return o; |
923 } | 921 } |
924 | 922 |
925 checkUnnamed697(core.List<api.TimePeriod> o) { | 923 checkUnnamed360(core.List<api.TimePeriod> o) { |
926 unittest.expect(o, unittest.hasLength(2)); | 924 unittest.expect(o, unittest.hasLength(2)); |
927 checkTimePeriod(o[0]); | 925 checkTimePeriod(o[0]); |
928 checkTimePeriod(o[1]); | 926 checkTimePeriod(o[1]); |
929 } | 927 } |
930 | 928 |
931 buildUnnamed698() { | 929 buildUnnamed361() { |
932 var o = new core.List<api.Error>(); | 930 var o = new core.List<api.Error>(); |
933 o.add(buildError()); | 931 o.add(buildError()); |
934 o.add(buildError()); | 932 o.add(buildError()); |
935 return o; | 933 return o; |
936 } | 934 } |
937 | 935 |
938 checkUnnamed698(core.List<api.Error> o) { | 936 checkUnnamed361(core.List<api.Error> o) { |
939 unittest.expect(o, unittest.hasLength(2)); | 937 unittest.expect(o, unittest.hasLength(2)); |
940 checkError(o[0]); | 938 checkError(o[0]); |
941 checkError(o[1]); | 939 checkError(o[1]); |
942 } | 940 } |
943 | 941 |
944 core.int buildCounterFreeBusyCalendar = 0; | 942 core.int buildCounterFreeBusyCalendar = 0; |
945 buildFreeBusyCalendar() { | 943 buildFreeBusyCalendar() { |
946 var o = new api.FreeBusyCalendar(); | 944 var o = new api.FreeBusyCalendar(); |
947 buildCounterFreeBusyCalendar++; | 945 buildCounterFreeBusyCalendar++; |
948 if (buildCounterFreeBusyCalendar < 3) { | 946 if (buildCounterFreeBusyCalendar < 3) { |
949 o.busy = buildUnnamed697(); | 947 o.busy = buildUnnamed360(); |
950 o.errors = buildUnnamed698(); | 948 o.errors = buildUnnamed361(); |
951 } | 949 } |
952 buildCounterFreeBusyCalendar--; | 950 buildCounterFreeBusyCalendar--; |
953 return o; | 951 return o; |
954 } | 952 } |
955 | 953 |
956 checkFreeBusyCalendar(api.FreeBusyCalendar o) { | 954 checkFreeBusyCalendar(api.FreeBusyCalendar o) { |
957 buildCounterFreeBusyCalendar++; | 955 buildCounterFreeBusyCalendar++; |
958 if (buildCounterFreeBusyCalendar < 3) { | 956 if (buildCounterFreeBusyCalendar < 3) { |
959 checkUnnamed697(o.busy); | 957 checkUnnamed360(o.busy); |
960 checkUnnamed698(o.errors); | 958 checkUnnamed361(o.errors); |
961 } | 959 } |
962 buildCounterFreeBusyCalendar--; | 960 buildCounterFreeBusyCalendar--; |
963 } | 961 } |
964 | 962 |
965 buildUnnamed699() { | 963 buildUnnamed362() { |
966 var o = new core.List<core.String>(); | 964 var o = new core.List<core.String>(); |
967 o.add("foo"); | 965 o.add("foo"); |
968 o.add("foo"); | 966 o.add("foo"); |
969 return o; | 967 return o; |
970 } | 968 } |
971 | 969 |
972 checkUnnamed699(core.List<core.String> o) { | 970 checkUnnamed362(core.List<core.String> o) { |
973 unittest.expect(o, unittest.hasLength(2)); | 971 unittest.expect(o, unittest.hasLength(2)); |
974 unittest.expect(o[0], unittest.equals('foo')); | 972 unittest.expect(o[0], unittest.equals('foo')); |
975 unittest.expect(o[1], unittest.equals('foo')); | 973 unittest.expect(o[1], unittest.equals('foo')); |
976 } | 974 } |
977 | 975 |
978 buildUnnamed700() { | 976 buildUnnamed363() { |
979 var o = new core.List<api.Error>(); | 977 var o = new core.List<api.Error>(); |
980 o.add(buildError()); | 978 o.add(buildError()); |
981 o.add(buildError()); | 979 o.add(buildError()); |
982 return o; | 980 return o; |
983 } | 981 } |
984 | 982 |
985 checkUnnamed700(core.List<api.Error> o) { | 983 checkUnnamed363(core.List<api.Error> o) { |
986 unittest.expect(o, unittest.hasLength(2)); | 984 unittest.expect(o, unittest.hasLength(2)); |
987 checkError(o[0]); | 985 checkError(o[0]); |
988 checkError(o[1]); | 986 checkError(o[1]); |
989 } | 987 } |
990 | 988 |
991 core.int buildCounterFreeBusyGroup = 0; | 989 core.int buildCounterFreeBusyGroup = 0; |
992 buildFreeBusyGroup() { | 990 buildFreeBusyGroup() { |
993 var o = new api.FreeBusyGroup(); | 991 var o = new api.FreeBusyGroup(); |
994 buildCounterFreeBusyGroup++; | 992 buildCounterFreeBusyGroup++; |
995 if (buildCounterFreeBusyGroup < 3) { | 993 if (buildCounterFreeBusyGroup < 3) { |
996 o.calendars = buildUnnamed699(); | 994 o.calendars = buildUnnamed362(); |
997 o.errors = buildUnnamed700(); | 995 o.errors = buildUnnamed363(); |
998 } | 996 } |
999 buildCounterFreeBusyGroup--; | 997 buildCounterFreeBusyGroup--; |
1000 return o; | 998 return o; |
1001 } | 999 } |
1002 | 1000 |
1003 checkFreeBusyGroup(api.FreeBusyGroup o) { | 1001 checkFreeBusyGroup(api.FreeBusyGroup o) { |
1004 buildCounterFreeBusyGroup++; | 1002 buildCounterFreeBusyGroup++; |
1005 if (buildCounterFreeBusyGroup < 3) { | 1003 if (buildCounterFreeBusyGroup < 3) { |
1006 checkUnnamed699(o.calendars); | 1004 checkUnnamed362(o.calendars); |
1007 checkUnnamed700(o.errors); | 1005 checkUnnamed363(o.errors); |
1008 } | 1006 } |
1009 buildCounterFreeBusyGroup--; | 1007 buildCounterFreeBusyGroup--; |
1010 } | 1008 } |
1011 | 1009 |
1012 buildUnnamed701() { | 1010 buildUnnamed364() { |
1013 var o = new core.List<api.FreeBusyRequestItem>(); | 1011 var o = new core.List<api.FreeBusyRequestItem>(); |
1014 o.add(buildFreeBusyRequestItem()); | 1012 o.add(buildFreeBusyRequestItem()); |
1015 o.add(buildFreeBusyRequestItem()); | 1013 o.add(buildFreeBusyRequestItem()); |
1016 return o; | 1014 return o; |
1017 } | 1015 } |
1018 | 1016 |
1019 checkUnnamed701(core.List<api.FreeBusyRequestItem> o) { | 1017 checkUnnamed364(core.List<api.FreeBusyRequestItem> o) { |
1020 unittest.expect(o, unittest.hasLength(2)); | 1018 unittest.expect(o, unittest.hasLength(2)); |
1021 checkFreeBusyRequestItem(o[0]); | 1019 checkFreeBusyRequestItem(o[0]); |
1022 checkFreeBusyRequestItem(o[1]); | 1020 checkFreeBusyRequestItem(o[1]); |
1023 } | 1021 } |
1024 | 1022 |
1025 core.int buildCounterFreeBusyRequest = 0; | 1023 core.int buildCounterFreeBusyRequest = 0; |
1026 buildFreeBusyRequest() { | 1024 buildFreeBusyRequest() { |
1027 var o = new api.FreeBusyRequest(); | 1025 var o = new api.FreeBusyRequest(); |
1028 buildCounterFreeBusyRequest++; | 1026 buildCounterFreeBusyRequest++; |
1029 if (buildCounterFreeBusyRequest < 3) { | 1027 if (buildCounterFreeBusyRequest < 3) { |
1030 o.calendarExpansionMax = 42; | 1028 o.calendarExpansionMax = 42; |
1031 o.groupExpansionMax = 42; | 1029 o.groupExpansionMax = 42; |
1032 o.items = buildUnnamed701(); | 1030 o.items = buildUnnamed364(); |
1033 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 1031 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
1034 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 1032 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
1035 o.timeZone = "foo"; | 1033 o.timeZone = "foo"; |
1036 } | 1034 } |
1037 buildCounterFreeBusyRequest--; | 1035 buildCounterFreeBusyRequest--; |
1038 return o; | 1036 return o; |
1039 } | 1037 } |
1040 | 1038 |
1041 checkFreeBusyRequest(api.FreeBusyRequest o) { | 1039 checkFreeBusyRequest(api.FreeBusyRequest o) { |
1042 buildCounterFreeBusyRequest++; | 1040 buildCounterFreeBusyRequest++; |
1043 if (buildCounterFreeBusyRequest < 3) { | 1041 if (buildCounterFreeBusyRequest < 3) { |
1044 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); | 1042 unittest.expect(o.calendarExpansionMax, unittest.equals(42)); |
1045 unittest.expect(o.groupExpansionMax, unittest.equals(42)); | 1043 unittest.expect(o.groupExpansionMax, unittest.equals(42)); |
1046 checkUnnamed701(o.items); | 1044 checkUnnamed364(o.items); |
1047 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1045 unittest.expect(o.timeMax, 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"))); | 1046 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1049 unittest.expect(o.timeZone, unittest.equals('foo')); | 1047 unittest.expect(o.timeZone, unittest.equals('foo')); |
1050 } | 1048 } |
1051 buildCounterFreeBusyRequest--; | 1049 buildCounterFreeBusyRequest--; |
1052 } | 1050 } |
1053 | 1051 |
1054 core.int buildCounterFreeBusyRequestItem = 0; | 1052 core.int buildCounterFreeBusyRequestItem = 0; |
1055 buildFreeBusyRequestItem() { | 1053 buildFreeBusyRequestItem() { |
1056 var o = new api.FreeBusyRequestItem(); | 1054 var o = new api.FreeBusyRequestItem(); |
1057 buildCounterFreeBusyRequestItem++; | 1055 buildCounterFreeBusyRequestItem++; |
1058 if (buildCounterFreeBusyRequestItem < 3) { | 1056 if (buildCounterFreeBusyRequestItem < 3) { |
1059 o.id = "foo"; | 1057 o.id = "foo"; |
1060 } | 1058 } |
1061 buildCounterFreeBusyRequestItem--; | 1059 buildCounterFreeBusyRequestItem--; |
1062 return o; | 1060 return o; |
1063 } | 1061 } |
1064 | 1062 |
1065 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { | 1063 checkFreeBusyRequestItem(api.FreeBusyRequestItem o) { |
1066 buildCounterFreeBusyRequestItem++; | 1064 buildCounterFreeBusyRequestItem++; |
1067 if (buildCounterFreeBusyRequestItem < 3) { | 1065 if (buildCounterFreeBusyRequestItem < 3) { |
1068 unittest.expect(o.id, unittest.equals('foo')); | 1066 unittest.expect(o.id, unittest.equals('foo')); |
1069 } | 1067 } |
1070 buildCounterFreeBusyRequestItem--; | 1068 buildCounterFreeBusyRequestItem--; |
1071 } | 1069 } |
1072 | 1070 |
1073 buildUnnamed702() { | 1071 buildUnnamed365() { |
1074 var o = new core.Map<core.String, api.FreeBusyCalendar>(); | 1072 var o = new core.Map<core.String, api.FreeBusyCalendar>(); |
1075 o["x"] = buildFreeBusyCalendar(); | 1073 o["x"] = buildFreeBusyCalendar(); |
1076 o["y"] = buildFreeBusyCalendar(); | 1074 o["y"] = buildFreeBusyCalendar(); |
1077 return o; | 1075 return o; |
1078 } | 1076 } |
1079 | 1077 |
1080 checkUnnamed702(core.Map<core.String, api.FreeBusyCalendar> o) { | 1078 checkUnnamed365(core.Map<core.String, api.FreeBusyCalendar> o) { |
1081 unittest.expect(o, unittest.hasLength(2)); | 1079 unittest.expect(o, unittest.hasLength(2)); |
1082 checkFreeBusyCalendar(o["x"]); | 1080 checkFreeBusyCalendar(o["x"]); |
1083 checkFreeBusyCalendar(o["y"]); | 1081 checkFreeBusyCalendar(o["y"]); |
1084 } | 1082 } |
1085 | 1083 |
1086 buildUnnamed703() { | 1084 buildUnnamed366() { |
1087 var o = new core.Map<core.String, api.FreeBusyGroup>(); | 1085 var o = new core.Map<core.String, api.FreeBusyGroup>(); |
1088 o["x"] = buildFreeBusyGroup(); | 1086 o["x"] = buildFreeBusyGroup(); |
1089 o["y"] = buildFreeBusyGroup(); | 1087 o["y"] = buildFreeBusyGroup(); |
1090 return o; | 1088 return o; |
1091 } | 1089 } |
1092 | 1090 |
1093 checkUnnamed703(core.Map<core.String, api.FreeBusyGroup> o) { | 1091 checkUnnamed366(core.Map<core.String, api.FreeBusyGroup> o) { |
1094 unittest.expect(o, unittest.hasLength(2)); | 1092 unittest.expect(o, unittest.hasLength(2)); |
1095 checkFreeBusyGroup(o["x"]); | 1093 checkFreeBusyGroup(o["x"]); |
1096 checkFreeBusyGroup(o["y"]); | 1094 checkFreeBusyGroup(o["y"]); |
1097 } | 1095 } |
1098 | 1096 |
1099 core.int buildCounterFreeBusyResponse = 0; | 1097 core.int buildCounterFreeBusyResponse = 0; |
1100 buildFreeBusyResponse() { | 1098 buildFreeBusyResponse() { |
1101 var o = new api.FreeBusyResponse(); | 1099 var o = new api.FreeBusyResponse(); |
1102 buildCounterFreeBusyResponse++; | 1100 buildCounterFreeBusyResponse++; |
1103 if (buildCounterFreeBusyResponse < 3) { | 1101 if (buildCounterFreeBusyResponse < 3) { |
1104 o.calendars = buildUnnamed702(); | 1102 o.calendars = buildUnnamed365(); |
1105 o.groups = buildUnnamed703(); | 1103 o.groups = buildUnnamed366(); |
1106 o.kind = "foo"; | 1104 o.kind = "foo"; |
1107 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 1105 o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
1108 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 1106 o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
1109 } | 1107 } |
1110 buildCounterFreeBusyResponse--; | 1108 buildCounterFreeBusyResponse--; |
1111 return o; | 1109 return o; |
1112 } | 1110 } |
1113 | 1111 |
1114 checkFreeBusyResponse(api.FreeBusyResponse o) { | 1112 checkFreeBusyResponse(api.FreeBusyResponse o) { |
1115 buildCounterFreeBusyResponse++; | 1113 buildCounterFreeBusyResponse++; |
1116 if (buildCounterFreeBusyResponse < 3) { | 1114 if (buildCounterFreeBusyResponse < 3) { |
1117 checkUnnamed702(o.calendars); | 1115 checkUnnamed365(o.calendars); |
1118 checkUnnamed703(o.groups); | 1116 checkUnnamed366(o.groups); |
1119 unittest.expect(o.kind, unittest.equals('foo')); | 1117 unittest.expect(o.kind, unittest.equals('foo')); |
1120 unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1118 unittest.expect(o.timeMax, 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"))); | 1119 unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1122 } | 1120 } |
1123 buildCounterFreeBusyResponse--; | 1121 buildCounterFreeBusyResponse--; |
1124 } | 1122 } |
1125 | 1123 |
1126 core.int buildCounterSetting = 0; | 1124 core.int buildCounterSetting = 0; |
1127 buildSetting() { | 1125 buildSetting() { |
1128 var o = new api.Setting(); | 1126 var o = new api.Setting(); |
(...skipping 12 matching lines...) Expand all Loading... |
1141 buildCounterSetting++; | 1139 buildCounterSetting++; |
1142 if (buildCounterSetting < 3) { | 1140 if (buildCounterSetting < 3) { |
1143 unittest.expect(o.etag, unittest.equals('foo')); | 1141 unittest.expect(o.etag, unittest.equals('foo')); |
1144 unittest.expect(o.id, unittest.equals('foo')); | 1142 unittest.expect(o.id, unittest.equals('foo')); |
1145 unittest.expect(o.kind, unittest.equals('foo')); | 1143 unittest.expect(o.kind, unittest.equals('foo')); |
1146 unittest.expect(o.value, unittest.equals('foo')); | 1144 unittest.expect(o.value, unittest.equals('foo')); |
1147 } | 1145 } |
1148 buildCounterSetting--; | 1146 buildCounterSetting--; |
1149 } | 1147 } |
1150 | 1148 |
1151 buildUnnamed704() { | 1149 buildUnnamed367() { |
1152 var o = new core.List<api.Setting>(); | 1150 var o = new core.List<api.Setting>(); |
1153 o.add(buildSetting()); | 1151 o.add(buildSetting()); |
1154 o.add(buildSetting()); | 1152 o.add(buildSetting()); |
1155 return o; | 1153 return o; |
1156 } | 1154 } |
1157 | 1155 |
1158 checkUnnamed704(core.List<api.Setting> o) { | 1156 checkUnnamed367(core.List<api.Setting> o) { |
1159 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
1160 checkSetting(o[0]); | 1158 checkSetting(o[0]); |
1161 checkSetting(o[1]); | 1159 checkSetting(o[1]); |
1162 } | 1160 } |
1163 | 1161 |
1164 core.int buildCounterSettings = 0; | 1162 core.int buildCounterSettings = 0; |
1165 buildSettings() { | 1163 buildSettings() { |
1166 var o = new api.Settings(); | 1164 var o = new api.Settings(); |
1167 buildCounterSettings++; | 1165 buildCounterSettings++; |
1168 if (buildCounterSettings < 3) { | 1166 if (buildCounterSettings < 3) { |
1169 o.etag = "foo"; | 1167 o.etag = "foo"; |
1170 o.items = buildUnnamed704(); | 1168 o.items = buildUnnamed367(); |
1171 o.kind = "foo"; | 1169 o.kind = "foo"; |
1172 o.nextPageToken = "foo"; | 1170 o.nextPageToken = "foo"; |
1173 o.nextSyncToken = "foo"; | 1171 o.nextSyncToken = "foo"; |
1174 } | 1172 } |
1175 buildCounterSettings--; | 1173 buildCounterSettings--; |
1176 return o; | 1174 return o; |
1177 } | 1175 } |
1178 | 1176 |
1179 checkSettings(api.Settings o) { | 1177 checkSettings(api.Settings o) { |
1180 buildCounterSettings++; | 1178 buildCounterSettings++; |
1181 if (buildCounterSettings < 3) { | 1179 if (buildCounterSettings < 3) { |
1182 unittest.expect(o.etag, unittest.equals('foo')); | 1180 unittest.expect(o.etag, unittest.equals('foo')); |
1183 checkUnnamed704(o.items); | 1181 checkUnnamed367(o.items); |
1184 unittest.expect(o.kind, unittest.equals('foo')); | 1182 unittest.expect(o.kind, unittest.equals('foo')); |
1185 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1183 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1186 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 1184 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
1187 } | 1185 } |
1188 buildCounterSettings--; | 1186 buildCounterSettings--; |
1189 } | 1187 } |
1190 | 1188 |
1191 core.int buildCounterTimePeriod = 0; | 1189 core.int buildCounterTimePeriod = 0; |
1192 buildTimePeriod() { | 1190 buildTimePeriod() { |
1193 var o = new api.TimePeriod(); | 1191 var o = new api.TimePeriod(); |
1194 buildCounterTimePeriod++; | 1192 buildCounterTimePeriod++; |
1195 if (buildCounterTimePeriod < 3) { | 1193 if (buildCounterTimePeriod < 3) { |
1196 o.end = core.DateTime.parse("2002-02-27T14:01:02"); | 1194 o.end = core.DateTime.parse("2002-02-27T14:01:02"); |
1197 o.start = core.DateTime.parse("2002-02-27T14:01:02"); | 1195 o.start = core.DateTime.parse("2002-02-27T14:01:02"); |
1198 } | 1196 } |
1199 buildCounterTimePeriod--; | 1197 buildCounterTimePeriod--; |
1200 return o; | 1198 return o; |
1201 } | 1199 } |
1202 | 1200 |
1203 checkTimePeriod(api.TimePeriod o) { | 1201 checkTimePeriod(api.TimePeriod o) { |
1204 buildCounterTimePeriod++; | 1202 buildCounterTimePeriod++; |
1205 if (buildCounterTimePeriod < 3) { | 1203 if (buildCounterTimePeriod < 3) { |
1206 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01
:02"))); | 1204 unittest.expect(o.end, 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"))); | 1205 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14:
01:02"))); |
1208 } | 1206 } |
1209 buildCounterTimePeriod--; | 1207 buildCounterTimePeriod--; |
1210 } | 1208 } |
1211 | 1209 |
1212 buildUnnamed705() { | 1210 buildUnnamed368() { |
1213 var o = new core.List<core.String>(); | 1211 var o = new core.List<core.String>(); |
1214 o.add("foo"); | 1212 o.add("foo"); |
1215 o.add("foo"); | 1213 o.add("foo"); |
1216 return o; | 1214 return o; |
1217 } | 1215 } |
1218 | 1216 |
1219 checkUnnamed705(core.List<core.String> o) { | 1217 checkUnnamed368(core.List<core.String> o) { |
1220 unittest.expect(o, unittest.hasLength(2)); | 1218 unittest.expect(o, unittest.hasLength(2)); |
1221 unittest.expect(o[0], unittest.equals('foo')); | 1219 unittest.expect(o[0], unittest.equals('foo')); |
1222 unittest.expect(o[1], unittest.equals('foo')); | 1220 unittest.expect(o[1], unittest.equals('foo')); |
1223 } | 1221 } |
1224 | 1222 |
1225 buildUnnamed706() { | 1223 buildUnnamed369() { |
1226 var o = new core.List<core.String>(); | 1224 var o = new core.List<core.String>(); |
1227 o.add("foo"); | 1225 o.add("foo"); |
1228 o.add("foo"); | 1226 o.add("foo"); |
1229 return o; | 1227 return o; |
1230 } | 1228 } |
1231 | 1229 |
1232 checkUnnamed706(core.List<core.String> o) { | 1230 checkUnnamed369(core.List<core.String> o) { |
1233 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
1234 unittest.expect(o[0], unittest.equals('foo')); | 1232 unittest.expect(o[0], unittest.equals('foo')); |
1235 unittest.expect(o[1], unittest.equals('foo')); | 1233 unittest.expect(o[1], unittest.equals('foo')); |
1236 } | 1234 } |
1237 | 1235 |
1238 buildUnnamed707() { | 1236 buildUnnamed370() { |
1239 var o = new core.List<core.String>(); | 1237 var o = new core.List<core.String>(); |
1240 o.add("foo"); | 1238 o.add("foo"); |
1241 o.add("foo"); | 1239 o.add("foo"); |
1242 return o; | 1240 return o; |
1243 } | 1241 } |
1244 | 1242 |
1245 checkUnnamed707(core.List<core.String> o) { | 1243 checkUnnamed370(core.List<core.String> o) { |
1246 unittest.expect(o, unittest.hasLength(2)); | 1244 unittest.expect(o, unittest.hasLength(2)); |
1247 unittest.expect(o[0], unittest.equals('foo')); | 1245 unittest.expect(o[0], unittest.equals('foo')); |
1248 unittest.expect(o[1], unittest.equals('foo')); | 1246 unittest.expect(o[1], unittest.equals('foo')); |
1249 } | 1247 } |
1250 | 1248 |
1251 buildUnnamed708() { | 1249 buildUnnamed371() { |
1252 var o = new core.List<core.String>(); | 1250 var o = new core.List<core.String>(); |
1253 o.add("foo"); | 1251 o.add("foo"); |
1254 o.add("foo"); | 1252 o.add("foo"); |
1255 return o; | 1253 return o; |
1256 } | 1254 } |
1257 | 1255 |
1258 checkUnnamed708(core.List<core.String> o) { | 1256 checkUnnamed371(core.List<core.String> o) { |
1259 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
1260 unittest.expect(o[0], unittest.equals('foo')); | 1258 unittest.expect(o[0], unittest.equals('foo')); |
1261 unittest.expect(o[1], unittest.equals('foo')); | 1259 unittest.expect(o[1], unittest.equals('foo')); |
1262 } | 1260 } |
1263 | 1261 |
1264 | 1262 |
1265 main() { | 1263 main() { |
1266 unittest.group("obj-schema-Acl", () { | 1264 unittest.group("obj-schema-Acl", () { |
1267 unittest.test("to-json--from-json", () { | 1265 unittest.test("to-json--from-json", () { |
1268 var o = buildAcl(); | 1266 var o = buildAcl(); |
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3079 | 3077 |
3080 var mock = new common_test.HttpServerMock(); | 3078 var mock = new common_test.HttpServerMock(); |
3081 api.EventsResourceApi res = new api.CalendarApi(mock).events; | 3079 api.EventsResourceApi res = new api.CalendarApi(mock).events; |
3082 var arg_calendarId = "foo"; | 3080 var arg_calendarId = "foo"; |
3083 var arg_alwaysIncludeEmail = true; | 3081 var arg_alwaysIncludeEmail = true; |
3084 var arg_iCalUID = "foo"; | 3082 var arg_iCalUID = "foo"; |
3085 var arg_maxAttendees = 42; | 3083 var arg_maxAttendees = 42; |
3086 var arg_maxResults = 42; | 3084 var arg_maxResults = 42; |
3087 var arg_orderBy = "foo"; | 3085 var arg_orderBy = "foo"; |
3088 var arg_pageToken = "foo"; | 3086 var arg_pageToken = "foo"; |
3089 var arg_privateExtendedProperty = buildUnnamed705(); | 3087 var arg_privateExtendedProperty = buildUnnamed368(); |
3090 var arg_q = "foo"; | 3088 var arg_q = "foo"; |
3091 var arg_sharedExtendedProperty = buildUnnamed706(); | 3089 var arg_sharedExtendedProperty = buildUnnamed369(); |
3092 var arg_showDeleted = true; | 3090 var arg_showDeleted = true; |
3093 var arg_showHiddenInvitations = true; | 3091 var arg_showHiddenInvitations = true; |
3094 var arg_singleEvents = true; | 3092 var arg_singleEvents = true; |
3095 var arg_syncToken = "foo"; | 3093 var arg_syncToken = "foo"; |
3096 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 3094 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
3097 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3095 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3098 var arg_timeZone = "foo"; | 3096 var arg_timeZone = "foo"; |
3099 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3097 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3098 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3101 var path = (req.url).path; | 3099 var path = (req.url).path; |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3423 var mock = new common_test.HttpServerMock(); | 3421 var mock = new common_test.HttpServerMock(); |
3424 api.EventsResourceApi res = new api.CalendarApi(mock).events; | 3422 api.EventsResourceApi res = new api.CalendarApi(mock).events; |
3425 var arg_request = buildChannel(); | 3423 var arg_request = buildChannel(); |
3426 var arg_calendarId = "foo"; | 3424 var arg_calendarId = "foo"; |
3427 var arg_alwaysIncludeEmail = true; | 3425 var arg_alwaysIncludeEmail = true; |
3428 var arg_iCalUID = "foo"; | 3426 var arg_iCalUID = "foo"; |
3429 var arg_maxAttendees = 42; | 3427 var arg_maxAttendees = 42; |
3430 var arg_maxResults = 42; | 3428 var arg_maxResults = 42; |
3431 var arg_orderBy = "foo"; | 3429 var arg_orderBy = "foo"; |
3432 var arg_pageToken = "foo"; | 3430 var arg_pageToken = "foo"; |
3433 var arg_privateExtendedProperty = buildUnnamed707(); | 3431 var arg_privateExtendedProperty = buildUnnamed370(); |
3434 var arg_q = "foo"; | 3432 var arg_q = "foo"; |
3435 var arg_sharedExtendedProperty = buildUnnamed708(); | 3433 var arg_sharedExtendedProperty = buildUnnamed371(); |
3436 var arg_showDeleted = true; | 3434 var arg_showDeleted = true; |
3437 var arg_showHiddenInvitations = true; | 3435 var arg_showHiddenInvitations = true; |
3438 var arg_singleEvents = true; | 3436 var arg_singleEvents = true; |
3439 var arg_syncToken = "foo"; | 3437 var arg_syncToken = "foo"; |
3440 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); | 3438 var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); |
3441 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3439 var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3442 var arg_timeZone = "foo"; | 3440 var arg_timeZone = "foo"; |
3443 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); | 3441 var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); |
3444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3442 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3445 var obj = new api.Channel.fromJson(json); | 3443 var obj = new api.Channel.fromJson(json); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3719 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke
n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { | 3717 res.watch(arg_request, maxResults: arg_maxResults, pageToken: arg_pageToke
n, syncToken: arg_syncToken).then(unittest.expectAsync(((api.Channel response) { |
3720 checkChannel(response); | 3718 checkChannel(response); |
3721 }))); | 3719 }))); |
3722 }); | 3720 }); |
3723 | 3721 |
3724 }); | 3722 }); |
3725 | 3723 |
3726 | 3724 |
3727 } | 3725 } |
3728 | 3726 |
OLD | NEW |