OLD | NEW |
1 library googleapis.drive.v3.test; | 1 library googleapis.drive.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 buildUnnamed1569() { | 54 buildUnnamed1581() { |
55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
56 o.add("foo"); | 56 o.add("foo"); |
57 o.add("foo"); | 57 o.add("foo"); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1569(core.List<core.String> o) { | 61 checkUnnamed1581(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed1570() { | 67 buildUnnamed1582() { |
68 var o = new core.Map<core.String, core.List<core.String>>(); | 68 var o = new core.Map<core.String, core.List<core.String>>(); |
69 o["x"] = buildUnnamed1569(); | 69 o["x"] = buildUnnamed1581(); |
70 o["y"] = buildUnnamed1569(); | 70 o["y"] = buildUnnamed1581(); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed1570(core.Map<core.String, core.List<core.String>> o) { | 74 checkUnnamed1582(core.Map<core.String, core.List<core.String>> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 checkUnnamed1569(o["x"]); | 76 checkUnnamed1581(o["x"]); |
77 checkUnnamed1569(o["y"]); | 77 checkUnnamed1581(o["y"]); |
78 } | 78 } |
79 | 79 |
80 buildUnnamed1571() { | 80 buildUnnamed1583() { |
81 var o = new core.List<core.String>(); | 81 var o = new core.List<core.String>(); |
82 o.add("foo"); | 82 o.add("foo"); |
83 o.add("foo"); | 83 o.add("foo"); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed1571(core.List<core.String> o) { | 87 checkUnnamed1583(core.List<core.String> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 unittest.expect(o[0], unittest.equals('foo')); | 89 unittest.expect(o[0], unittest.equals('foo')); |
90 unittest.expect(o[1], unittest.equals('foo')); | 90 unittest.expect(o[1], unittest.equals('foo')); |
91 } | 91 } |
92 | 92 |
93 buildUnnamed1572() { | 93 buildUnnamed1584() { |
94 var o = new core.List<core.String>(); | 94 var o = new core.List<core.String>(); |
95 o.add("foo"); | 95 o.add("foo"); |
96 o.add("foo"); | 96 o.add("foo"); |
97 return o; | 97 return o; |
98 } | 98 } |
99 | 99 |
100 checkUnnamed1572(core.List<core.String> o) { | 100 checkUnnamed1584(core.List<core.String> o) { |
101 unittest.expect(o, unittest.hasLength(2)); | 101 unittest.expect(o, unittest.hasLength(2)); |
102 unittest.expect(o[0], unittest.equals('foo')); | 102 unittest.expect(o[0], unittest.equals('foo')); |
103 unittest.expect(o[1], unittest.equals('foo')); | 103 unittest.expect(o[1], unittest.equals('foo')); |
104 } | 104 } |
105 | 105 |
106 buildUnnamed1573() { | 106 buildUnnamed1585() { |
107 var o = new core.Map<core.String, core.List<core.String>>(); | 107 var o = new core.Map<core.String, core.List<core.String>>(); |
108 o["x"] = buildUnnamed1572(); | 108 o["x"] = buildUnnamed1584(); |
109 o["y"] = buildUnnamed1572(); | 109 o["y"] = buildUnnamed1584(); |
110 return o; | 110 return o; |
111 } | 111 } |
112 | 112 |
113 checkUnnamed1573(core.Map<core.String, core.List<core.String>> o) { | 113 checkUnnamed1585(core.Map<core.String, core.List<core.String>> o) { |
114 unittest.expect(o, unittest.hasLength(2)); | 114 unittest.expect(o, unittest.hasLength(2)); |
115 checkUnnamed1572(o["x"]); | 115 checkUnnamed1584(o["x"]); |
116 checkUnnamed1572(o["y"]); | 116 checkUnnamed1584(o["y"]); |
117 } | 117 } |
118 | 118 |
119 buildUnnamed1574() { | 119 buildUnnamed1586() { |
120 var o = new core.Map<core.String, core.String>(); | 120 var o = new core.Map<core.String, core.String>(); |
121 o["x"] = "foo"; | 121 o["x"] = "foo"; |
122 o["y"] = "foo"; | 122 o["y"] = "foo"; |
123 return o; | 123 return o; |
124 } | 124 } |
125 | 125 |
126 checkUnnamed1574(core.Map<core.String, core.String> o) { | 126 checkUnnamed1586(core.Map<core.String, core.String> o) { |
127 unittest.expect(o, unittest.hasLength(2)); | 127 unittest.expect(o, unittest.hasLength(2)); |
128 unittest.expect(o["x"], unittest.equals('foo')); | 128 unittest.expect(o["x"], unittest.equals('foo')); |
129 unittest.expect(o["y"], unittest.equals('foo')); | 129 unittest.expect(o["y"], unittest.equals('foo')); |
130 } | 130 } |
131 | 131 |
132 core.int buildCounterAboutStorageQuota = 0; | 132 core.int buildCounterAboutStorageQuota = 0; |
133 buildAboutStorageQuota() { | 133 buildAboutStorageQuota() { |
134 var o = new api.AboutStorageQuota(); | 134 var o = new api.AboutStorageQuota(); |
135 buildCounterAboutStorageQuota++; | 135 buildCounterAboutStorageQuota++; |
136 if (buildCounterAboutStorageQuota < 3) { | 136 if (buildCounterAboutStorageQuota < 3) { |
(...skipping 16 matching lines...) Expand all Loading... |
153 } | 153 } |
154 buildCounterAboutStorageQuota--; | 154 buildCounterAboutStorageQuota--; |
155 } | 155 } |
156 | 156 |
157 core.int buildCounterAbout = 0; | 157 core.int buildCounterAbout = 0; |
158 buildAbout() { | 158 buildAbout() { |
159 var o = new api.About(); | 159 var o = new api.About(); |
160 buildCounterAbout++; | 160 buildCounterAbout++; |
161 if (buildCounterAbout < 3) { | 161 if (buildCounterAbout < 3) { |
162 o.appInstalled = true; | 162 o.appInstalled = true; |
163 o.exportFormats = buildUnnamed1570(); | 163 o.exportFormats = buildUnnamed1582(); |
164 o.folderColorPalette = buildUnnamed1571(); | 164 o.folderColorPalette = buildUnnamed1583(); |
165 o.importFormats = buildUnnamed1573(); | 165 o.importFormats = buildUnnamed1585(); |
166 o.kind = "foo"; | 166 o.kind = "foo"; |
167 o.maxImportSizes = buildUnnamed1574(); | 167 o.maxImportSizes = buildUnnamed1586(); |
168 o.maxUploadSize = "foo"; | 168 o.maxUploadSize = "foo"; |
169 o.storageQuota = buildAboutStorageQuota(); | 169 o.storageQuota = buildAboutStorageQuota(); |
170 o.user = buildUser(); | 170 o.user = buildUser(); |
171 } | 171 } |
172 buildCounterAbout--; | 172 buildCounterAbout--; |
173 return o; | 173 return o; |
174 } | 174 } |
175 | 175 |
176 checkAbout(api.About o) { | 176 checkAbout(api.About o) { |
177 buildCounterAbout++; | 177 buildCounterAbout++; |
178 if (buildCounterAbout < 3) { | 178 if (buildCounterAbout < 3) { |
179 unittest.expect(o.appInstalled, unittest.isTrue); | 179 unittest.expect(o.appInstalled, unittest.isTrue); |
180 checkUnnamed1570(o.exportFormats); | 180 checkUnnamed1582(o.exportFormats); |
181 checkUnnamed1571(o.folderColorPalette); | 181 checkUnnamed1583(o.folderColorPalette); |
182 checkUnnamed1573(o.importFormats); | 182 checkUnnamed1585(o.importFormats); |
183 unittest.expect(o.kind, unittest.equals('foo')); | 183 unittest.expect(o.kind, unittest.equals('foo')); |
184 checkUnnamed1574(o.maxImportSizes); | 184 checkUnnamed1586(o.maxImportSizes); |
185 unittest.expect(o.maxUploadSize, unittest.equals('foo')); | 185 unittest.expect(o.maxUploadSize, unittest.equals('foo')); |
186 checkAboutStorageQuota(o.storageQuota); | 186 checkAboutStorageQuota(o.storageQuota); |
187 checkUser(o.user); | 187 checkUser(o.user); |
188 } | 188 } |
189 buildCounterAbout--; | 189 buildCounterAbout--; |
190 } | 190 } |
191 | 191 |
192 core.int buildCounterChange = 0; | 192 core.int buildCounterChange = 0; |
193 buildChange() { | 193 buildChange() { |
194 var o = new api.Change(); | 194 var o = new api.Change(); |
(...skipping 14 matching lines...) Expand all Loading... |
209 if (buildCounterChange < 3) { | 209 if (buildCounterChange < 3) { |
210 checkFile(o.file); | 210 checkFile(o.file); |
211 unittest.expect(o.fileId, unittest.equals('foo')); | 211 unittest.expect(o.fileId, unittest.equals('foo')); |
212 unittest.expect(o.kind, unittest.equals('foo')); | 212 unittest.expect(o.kind, unittest.equals('foo')); |
213 unittest.expect(o.removed, unittest.isTrue); | 213 unittest.expect(o.removed, unittest.isTrue); |
214 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); | 214 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0
1:02"))); |
215 } | 215 } |
216 buildCounterChange--; | 216 buildCounterChange--; |
217 } | 217 } |
218 | 218 |
219 buildUnnamed1575() { | 219 buildUnnamed1587() { |
220 var o = new core.List<api.Change>(); | 220 var o = new core.List<api.Change>(); |
221 o.add(buildChange()); | 221 o.add(buildChange()); |
222 o.add(buildChange()); | 222 o.add(buildChange()); |
223 return o; | 223 return o; |
224 } | 224 } |
225 | 225 |
226 checkUnnamed1575(core.List<api.Change> o) { | 226 checkUnnamed1587(core.List<api.Change> o) { |
227 unittest.expect(o, unittest.hasLength(2)); | 227 unittest.expect(o, unittest.hasLength(2)); |
228 checkChange(o[0]); | 228 checkChange(o[0]); |
229 checkChange(o[1]); | 229 checkChange(o[1]); |
230 } | 230 } |
231 | 231 |
232 core.int buildCounterChangeList = 0; | 232 core.int buildCounterChangeList = 0; |
233 buildChangeList() { | 233 buildChangeList() { |
234 var o = new api.ChangeList(); | 234 var o = new api.ChangeList(); |
235 buildCounterChangeList++; | 235 buildCounterChangeList++; |
236 if (buildCounterChangeList < 3) { | 236 if (buildCounterChangeList < 3) { |
237 o.changes = buildUnnamed1575(); | 237 o.changes = buildUnnamed1587(); |
238 o.kind = "foo"; | 238 o.kind = "foo"; |
239 o.newStartPageToken = "foo"; | 239 o.newStartPageToken = "foo"; |
240 o.nextPageToken = "foo"; | 240 o.nextPageToken = "foo"; |
241 } | 241 } |
242 buildCounterChangeList--; | 242 buildCounterChangeList--; |
243 return o; | 243 return o; |
244 } | 244 } |
245 | 245 |
246 checkChangeList(api.ChangeList o) { | 246 checkChangeList(api.ChangeList o) { |
247 buildCounterChangeList++; | 247 buildCounterChangeList++; |
248 if (buildCounterChangeList < 3) { | 248 if (buildCounterChangeList < 3) { |
249 checkUnnamed1575(o.changes); | 249 checkUnnamed1587(o.changes); |
250 unittest.expect(o.kind, unittest.equals('foo')); | 250 unittest.expect(o.kind, unittest.equals('foo')); |
251 unittest.expect(o.newStartPageToken, unittest.equals('foo')); | 251 unittest.expect(o.newStartPageToken, unittest.equals('foo')); |
252 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 252 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
253 } | 253 } |
254 buildCounterChangeList--; | 254 buildCounterChangeList--; |
255 } | 255 } |
256 | 256 |
257 buildUnnamed1576() { | 257 buildUnnamed1588() { |
258 var o = new core.Map<core.String, core.String>(); | 258 var o = new core.Map<core.String, core.String>(); |
259 o["x"] = "foo"; | 259 o["x"] = "foo"; |
260 o["y"] = "foo"; | 260 o["y"] = "foo"; |
261 return o; | 261 return o; |
262 } | 262 } |
263 | 263 |
264 checkUnnamed1576(core.Map<core.String, core.String> o) { | 264 checkUnnamed1588(core.Map<core.String, core.String> o) { |
265 unittest.expect(o, unittest.hasLength(2)); | 265 unittest.expect(o, unittest.hasLength(2)); |
266 unittest.expect(o["x"], unittest.equals('foo')); | 266 unittest.expect(o["x"], unittest.equals('foo')); |
267 unittest.expect(o["y"], unittest.equals('foo')); | 267 unittest.expect(o["y"], unittest.equals('foo')); |
268 } | 268 } |
269 | 269 |
270 core.int buildCounterChannel = 0; | 270 core.int buildCounterChannel = 0; |
271 buildChannel() { | 271 buildChannel() { |
272 var o = new api.Channel(); | 272 var o = new api.Channel(); |
273 buildCounterChannel++; | 273 buildCounterChannel++; |
274 if (buildCounterChannel < 3) { | 274 if (buildCounterChannel < 3) { |
275 o.address = "foo"; | 275 o.address = "foo"; |
276 o.expiration = "foo"; | 276 o.expiration = "foo"; |
277 o.id = "foo"; | 277 o.id = "foo"; |
278 o.kind = "foo"; | 278 o.kind = "foo"; |
279 o.params = buildUnnamed1576(); | 279 o.params = buildUnnamed1588(); |
280 o.payload = true; | 280 o.payload = true; |
281 o.resourceId = "foo"; | 281 o.resourceId = "foo"; |
282 o.resourceUri = "foo"; | 282 o.resourceUri = "foo"; |
283 o.token = "foo"; | 283 o.token = "foo"; |
284 o.type = "foo"; | 284 o.type = "foo"; |
285 } | 285 } |
286 buildCounterChannel--; | 286 buildCounterChannel--; |
287 return o; | 287 return o; |
288 } | 288 } |
289 | 289 |
290 checkChannel(api.Channel o) { | 290 checkChannel(api.Channel o) { |
291 buildCounterChannel++; | 291 buildCounterChannel++; |
292 if (buildCounterChannel < 3) { | 292 if (buildCounterChannel < 3) { |
293 unittest.expect(o.address, unittest.equals('foo')); | 293 unittest.expect(o.address, unittest.equals('foo')); |
294 unittest.expect(o.expiration, unittest.equals('foo')); | 294 unittest.expect(o.expiration, unittest.equals('foo')); |
295 unittest.expect(o.id, unittest.equals('foo')); | 295 unittest.expect(o.id, unittest.equals('foo')); |
296 unittest.expect(o.kind, unittest.equals('foo')); | 296 unittest.expect(o.kind, unittest.equals('foo')); |
297 checkUnnamed1576(o.params); | 297 checkUnnamed1588(o.params); |
298 unittest.expect(o.payload, unittest.isTrue); | 298 unittest.expect(o.payload, unittest.isTrue); |
299 unittest.expect(o.resourceId, unittest.equals('foo')); | 299 unittest.expect(o.resourceId, unittest.equals('foo')); |
300 unittest.expect(o.resourceUri, unittest.equals('foo')); | 300 unittest.expect(o.resourceUri, unittest.equals('foo')); |
301 unittest.expect(o.token, unittest.equals('foo')); | 301 unittest.expect(o.token, unittest.equals('foo')); |
302 unittest.expect(o.type, unittest.equals('foo')); | 302 unittest.expect(o.type, unittest.equals('foo')); |
303 } | 303 } |
304 buildCounterChannel--; | 304 buildCounterChannel--; |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterCommentQuotedFileContent = 0; | 307 core.int buildCounterCommentQuotedFileContent = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
318 | 318 |
319 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) { | 319 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) { |
320 buildCounterCommentQuotedFileContent++; | 320 buildCounterCommentQuotedFileContent++; |
321 if (buildCounterCommentQuotedFileContent < 3) { | 321 if (buildCounterCommentQuotedFileContent < 3) { |
322 unittest.expect(o.mimeType, unittest.equals('foo')); | 322 unittest.expect(o.mimeType, unittest.equals('foo')); |
323 unittest.expect(o.value, unittest.equals('foo')); | 323 unittest.expect(o.value, unittest.equals('foo')); |
324 } | 324 } |
325 buildCounterCommentQuotedFileContent--; | 325 buildCounterCommentQuotedFileContent--; |
326 } | 326 } |
327 | 327 |
328 buildUnnamed1577() { | 328 buildUnnamed1589() { |
329 var o = new core.List<api.Reply>(); | 329 var o = new core.List<api.Reply>(); |
330 o.add(buildReply()); | 330 o.add(buildReply()); |
331 o.add(buildReply()); | 331 o.add(buildReply()); |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkUnnamed1577(core.List<api.Reply> o) { | 335 checkUnnamed1589(core.List<api.Reply> o) { |
336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
337 checkReply(o[0]); | 337 checkReply(o[0]); |
338 checkReply(o[1]); | 338 checkReply(o[1]); |
339 } | 339 } |
340 | 340 |
341 core.int buildCounterComment = 0; | 341 core.int buildCounterComment = 0; |
342 buildComment() { | 342 buildComment() { |
343 var o = new api.Comment(); | 343 var o = new api.Comment(); |
344 buildCounterComment++; | 344 buildCounterComment++; |
345 if (buildCounterComment < 3) { | 345 if (buildCounterComment < 3) { |
346 o.anchor = "foo"; | 346 o.anchor = "foo"; |
347 o.author = buildUser(); | 347 o.author = buildUser(); |
348 o.content = "foo"; | 348 o.content = "foo"; |
349 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); | 349 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); |
350 o.deleted = true; | 350 o.deleted = true; |
351 o.htmlContent = "foo"; | 351 o.htmlContent = "foo"; |
352 o.id = "foo"; | 352 o.id = "foo"; |
353 o.kind = "foo"; | 353 o.kind = "foo"; |
354 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 354 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
355 o.quotedFileContent = buildCommentQuotedFileContent(); | 355 o.quotedFileContent = buildCommentQuotedFileContent(); |
356 o.replies = buildUnnamed1577(); | 356 o.replies = buildUnnamed1589(); |
357 o.resolved = true; | 357 o.resolved = true; |
358 } | 358 } |
359 buildCounterComment--; | 359 buildCounterComment--; |
360 return o; | 360 return o; |
361 } | 361 } |
362 | 362 |
363 checkComment(api.Comment o) { | 363 checkComment(api.Comment o) { |
364 buildCounterComment++; | 364 buildCounterComment++; |
365 if (buildCounterComment < 3) { | 365 if (buildCounterComment < 3) { |
366 unittest.expect(o.anchor, unittest.equals('foo')); | 366 unittest.expect(o.anchor, unittest.equals('foo')); |
367 checkUser(o.author); | 367 checkUser(o.author); |
368 unittest.expect(o.content, unittest.equals('foo')); | 368 unittest.expect(o.content, unittest.equals('foo')); |
369 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 369 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
370 unittest.expect(o.deleted, unittest.isTrue); | 370 unittest.expect(o.deleted, unittest.isTrue); |
371 unittest.expect(o.htmlContent, unittest.equals('foo')); | 371 unittest.expect(o.htmlContent, unittest.equals('foo')); |
372 unittest.expect(o.id, unittest.equals('foo')); | 372 unittest.expect(o.id, unittest.equals('foo')); |
373 unittest.expect(o.kind, unittest.equals('foo')); | 373 unittest.expect(o.kind, unittest.equals('foo')); |
374 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 374 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
375 checkCommentQuotedFileContent(o.quotedFileContent); | 375 checkCommentQuotedFileContent(o.quotedFileContent); |
376 checkUnnamed1577(o.replies); | 376 checkUnnamed1589(o.replies); |
377 unittest.expect(o.resolved, unittest.isTrue); | 377 unittest.expect(o.resolved, unittest.isTrue); |
378 } | 378 } |
379 buildCounterComment--; | 379 buildCounterComment--; |
380 } | 380 } |
381 | 381 |
382 buildUnnamed1578() { | 382 buildUnnamed1590() { |
383 var o = new core.List<api.Comment>(); | 383 var o = new core.List<api.Comment>(); |
384 o.add(buildComment()); | 384 o.add(buildComment()); |
385 o.add(buildComment()); | 385 o.add(buildComment()); |
386 return o; | 386 return o; |
387 } | 387 } |
388 | 388 |
389 checkUnnamed1578(core.List<api.Comment> o) { | 389 checkUnnamed1590(core.List<api.Comment> o) { |
390 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
391 checkComment(o[0]); | 391 checkComment(o[0]); |
392 checkComment(o[1]); | 392 checkComment(o[1]); |
393 } | 393 } |
394 | 394 |
395 core.int buildCounterCommentList = 0; | 395 core.int buildCounterCommentList = 0; |
396 buildCommentList() { | 396 buildCommentList() { |
397 var o = new api.CommentList(); | 397 var o = new api.CommentList(); |
398 buildCounterCommentList++; | 398 buildCounterCommentList++; |
399 if (buildCounterCommentList < 3) { | 399 if (buildCounterCommentList < 3) { |
400 o.comments = buildUnnamed1578(); | 400 o.comments = buildUnnamed1590(); |
401 o.kind = "foo"; | 401 o.kind = "foo"; |
402 o.nextPageToken = "foo"; | 402 o.nextPageToken = "foo"; |
403 } | 403 } |
404 buildCounterCommentList--; | 404 buildCounterCommentList--; |
405 return o; | 405 return o; |
406 } | 406 } |
407 | 407 |
408 checkCommentList(api.CommentList o) { | 408 checkCommentList(api.CommentList o) { |
409 buildCounterCommentList++; | 409 buildCounterCommentList++; |
410 if (buildCounterCommentList < 3) { | 410 if (buildCounterCommentList < 3) { |
411 checkUnnamed1578(o.comments); | 411 checkUnnamed1590(o.comments); |
412 unittest.expect(o.kind, unittest.equals('foo')); | 412 unittest.expect(o.kind, unittest.equals('foo')); |
413 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 413 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
414 } | 414 } |
415 buildCounterCommentList--; | 415 buildCounterCommentList--; |
416 } | 416 } |
417 | 417 |
418 buildUnnamed1579() { | 418 buildUnnamed1591() { |
419 var o = new core.Map<core.String, core.String>(); | 419 var o = new core.Map<core.String, core.String>(); |
420 o["x"] = "foo"; | 420 o["x"] = "foo"; |
421 o["y"] = "foo"; | 421 o["y"] = "foo"; |
422 return o; | 422 return o; |
423 } | 423 } |
424 | 424 |
425 checkUnnamed1579(core.Map<core.String, core.String> o) { | 425 checkUnnamed1591(core.Map<core.String, core.String> o) { |
426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
427 unittest.expect(o["x"], unittest.equals('foo')); | 427 unittest.expect(o["x"], unittest.equals('foo')); |
428 unittest.expect(o["y"], unittest.equals('foo')); | 428 unittest.expect(o["y"], unittest.equals('foo')); |
429 } | 429 } |
430 | 430 |
431 core.int buildCounterFileCapabilities = 0; | 431 core.int buildCounterFileCapabilities = 0; |
432 buildFileCapabilities() { | 432 buildFileCapabilities() { |
433 var o = new api.FileCapabilities(); | 433 var o = new api.FileCapabilities(); |
434 buildCounterFileCapabilities++; | 434 buildCounterFileCapabilities++; |
435 if (buildCounterFileCapabilities < 3) { | 435 if (buildCounterFileCapabilities < 3) { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 unittest.expect(o.rotation, unittest.equals(42)); | 572 unittest.expect(o.rotation, unittest.equals(42)); |
573 unittest.expect(o.sensor, unittest.equals('foo')); | 573 unittest.expect(o.sensor, unittest.equals('foo')); |
574 unittest.expect(o.subjectDistance, unittest.equals(42)); | 574 unittest.expect(o.subjectDistance, unittest.equals(42)); |
575 unittest.expect(o.time, unittest.equals('foo')); | 575 unittest.expect(o.time, unittest.equals('foo')); |
576 unittest.expect(o.whiteBalance, unittest.equals('foo')); | 576 unittest.expect(o.whiteBalance, unittest.equals('foo')); |
577 unittest.expect(o.width, unittest.equals(42)); | 577 unittest.expect(o.width, unittest.equals(42)); |
578 } | 578 } |
579 buildCounterFileImageMediaMetadata--; | 579 buildCounterFileImageMediaMetadata--; |
580 } | 580 } |
581 | 581 |
582 buildUnnamed1580() { | 582 buildUnnamed1592() { |
583 var o = new core.List<api.User>(); | 583 var o = new core.List<api.User>(); |
584 o.add(buildUser()); | 584 o.add(buildUser()); |
585 o.add(buildUser()); | 585 o.add(buildUser()); |
586 return o; | 586 return o; |
587 } | 587 } |
588 | 588 |
589 checkUnnamed1580(core.List<api.User> o) { | 589 checkUnnamed1592(core.List<api.User> o) { |
590 unittest.expect(o, unittest.hasLength(2)); | 590 unittest.expect(o, unittest.hasLength(2)); |
591 checkUser(o[0]); | 591 checkUser(o[0]); |
592 checkUser(o[1]); | 592 checkUser(o[1]); |
593 } | 593 } |
594 | 594 |
595 buildUnnamed1581() { | 595 buildUnnamed1593() { |
596 var o = new core.List<core.String>(); | 596 var o = new core.List<core.String>(); |
597 o.add("foo"); | 597 o.add("foo"); |
598 o.add("foo"); | 598 o.add("foo"); |
599 return o; | 599 return o; |
600 } | 600 } |
601 | 601 |
602 checkUnnamed1581(core.List<core.String> o) { | 602 checkUnnamed1593(core.List<core.String> o) { |
603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
604 unittest.expect(o[0], unittest.equals('foo')); | 604 unittest.expect(o[0], unittest.equals('foo')); |
605 unittest.expect(o[1], unittest.equals('foo')); | 605 unittest.expect(o[1], unittest.equals('foo')); |
606 } | 606 } |
607 | 607 |
608 buildUnnamed1582() { | 608 buildUnnamed1594() { |
609 var o = new core.List<api.Permission>(); | 609 var o = new core.List<api.Permission>(); |
610 o.add(buildPermission()); | 610 o.add(buildPermission()); |
611 o.add(buildPermission()); | 611 o.add(buildPermission()); |
612 return o; | 612 return o; |
613 } | 613 } |
614 | 614 |
615 checkUnnamed1582(core.List<api.Permission> o) { | 615 checkUnnamed1594(core.List<api.Permission> o) { |
616 unittest.expect(o, unittest.hasLength(2)); | 616 unittest.expect(o, unittest.hasLength(2)); |
617 checkPermission(o[0]); | 617 checkPermission(o[0]); |
618 checkPermission(o[1]); | 618 checkPermission(o[1]); |
619 } | 619 } |
620 | 620 |
621 buildUnnamed1583() { | 621 buildUnnamed1595() { |
622 var o = new core.Map<core.String, core.String>(); | 622 var o = new core.Map<core.String, core.String>(); |
623 o["x"] = "foo"; | 623 o["x"] = "foo"; |
624 o["y"] = "foo"; | 624 o["y"] = "foo"; |
625 return o; | 625 return o; |
626 } | 626 } |
627 | 627 |
628 checkUnnamed1583(core.Map<core.String, core.String> o) { | 628 checkUnnamed1595(core.Map<core.String, core.String> o) { |
629 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
630 unittest.expect(o["x"], unittest.equals('foo')); | 630 unittest.expect(o["x"], unittest.equals('foo')); |
631 unittest.expect(o["y"], unittest.equals('foo')); | 631 unittest.expect(o["y"], unittest.equals('foo')); |
632 } | 632 } |
633 | 633 |
634 buildUnnamed1584() { | 634 buildUnnamed1596() { |
635 var o = new core.List<core.String>(); | 635 var o = new core.List<core.String>(); |
636 o.add("foo"); | 636 o.add("foo"); |
637 o.add("foo"); | 637 o.add("foo"); |
638 return o; | 638 return o; |
639 } | 639 } |
640 | 640 |
641 checkUnnamed1584(core.List<core.String> o) { | 641 checkUnnamed1596(core.List<core.String> o) { |
642 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
643 unittest.expect(o[0], unittest.equals('foo')); | 643 unittest.expect(o[0], unittest.equals('foo')); |
644 unittest.expect(o[1], unittest.equals('foo')); | 644 unittest.expect(o[1], unittest.equals('foo')); |
645 } | 645 } |
646 | 646 |
647 core.int buildCounterFileVideoMediaMetadata = 0; | 647 core.int buildCounterFileVideoMediaMetadata = 0; |
648 buildFileVideoMediaMetadata() { | 648 buildFileVideoMediaMetadata() { |
649 var o = new api.FileVideoMediaMetadata(); | 649 var o = new api.FileVideoMediaMetadata(); |
650 buildCounterFileVideoMediaMetadata++; | 650 buildCounterFileVideoMediaMetadata++; |
651 if (buildCounterFileVideoMediaMetadata < 3) { | 651 if (buildCounterFileVideoMediaMetadata < 3) { |
(...skipping 13 matching lines...) Expand all Loading... |
665 unittest.expect(o.width, unittest.equals(42)); | 665 unittest.expect(o.width, unittest.equals(42)); |
666 } | 666 } |
667 buildCounterFileVideoMediaMetadata--; | 667 buildCounterFileVideoMediaMetadata--; |
668 } | 668 } |
669 | 669 |
670 core.int buildCounterFile = 0; | 670 core.int buildCounterFile = 0; |
671 buildFile() { | 671 buildFile() { |
672 var o = new api.File(); | 672 var o = new api.File(); |
673 buildCounterFile++; | 673 buildCounterFile++; |
674 if (buildCounterFile < 3) { | 674 if (buildCounterFile < 3) { |
675 o.appProperties = buildUnnamed1579(); | 675 o.appProperties = buildUnnamed1591(); |
676 o.capabilities = buildFileCapabilities(); | 676 o.capabilities = buildFileCapabilities(); |
677 o.contentHints = buildFileContentHints(); | 677 o.contentHints = buildFileContentHints(); |
678 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); | 678 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); |
679 o.description = "foo"; | 679 o.description = "foo"; |
680 o.explicitlyTrashed = true; | 680 o.explicitlyTrashed = true; |
681 o.fileExtension = "foo"; | 681 o.fileExtension = "foo"; |
682 o.folderColorRgb = "foo"; | 682 o.folderColorRgb = "foo"; |
683 o.fullFileExtension = "foo"; | 683 o.fullFileExtension = "foo"; |
684 o.hasThumbnail = true; | 684 o.hasThumbnail = true; |
685 o.headRevisionId = "foo"; | 685 o.headRevisionId = "foo"; |
686 o.iconLink = "foo"; | 686 o.iconLink = "foo"; |
687 o.id = "foo"; | 687 o.id = "foo"; |
688 o.imageMediaMetadata = buildFileImageMediaMetadata(); | 688 o.imageMediaMetadata = buildFileImageMediaMetadata(); |
689 o.isAppAuthorized = true; | 689 o.isAppAuthorized = true; |
690 o.kind = "foo"; | 690 o.kind = "foo"; |
691 o.lastModifyingUser = buildUser(); | 691 o.lastModifyingUser = buildUser(); |
692 o.md5Checksum = "foo"; | 692 o.md5Checksum = "foo"; |
693 o.mimeType = "foo"; | 693 o.mimeType = "foo"; |
694 o.modifiedByMe = true; | 694 o.modifiedByMe = true; |
695 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 695 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
696 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 696 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
697 o.name = "foo"; | 697 o.name = "foo"; |
698 o.originalFilename = "foo"; | 698 o.originalFilename = "foo"; |
699 o.ownedByMe = true; | 699 o.ownedByMe = true; |
700 o.owners = buildUnnamed1580(); | 700 o.owners = buildUnnamed1592(); |
701 o.parents = buildUnnamed1581(); | 701 o.parents = buildUnnamed1593(); |
702 o.permissions = buildUnnamed1582(); | 702 o.permissions = buildUnnamed1594(); |
703 o.properties = buildUnnamed1583(); | 703 o.properties = buildUnnamed1595(); |
704 o.quotaBytesUsed = "foo"; | 704 o.quotaBytesUsed = "foo"; |
705 o.shared = true; | 705 o.shared = true; |
706 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 706 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
707 o.sharingUser = buildUser(); | 707 o.sharingUser = buildUser(); |
708 o.size = "foo"; | 708 o.size = "foo"; |
709 o.spaces = buildUnnamed1584(); | 709 o.spaces = buildUnnamed1596(); |
710 o.starred = true; | 710 o.starred = true; |
711 o.thumbnailLink = "foo"; | 711 o.thumbnailLink = "foo"; |
712 o.thumbnailVersion = "foo"; | 712 o.thumbnailVersion = "foo"; |
713 o.trashed = true; | 713 o.trashed = true; |
714 o.version = "foo"; | 714 o.version = "foo"; |
715 o.videoMediaMetadata = buildFileVideoMediaMetadata(); | 715 o.videoMediaMetadata = buildFileVideoMediaMetadata(); |
716 o.viewedByMe = true; | 716 o.viewedByMe = true; |
717 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 717 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
718 o.viewersCanCopyContent = true; | 718 o.viewersCanCopyContent = true; |
719 o.webContentLink = "foo"; | 719 o.webContentLink = "foo"; |
720 o.webViewLink = "foo"; | 720 o.webViewLink = "foo"; |
721 o.writersCanShare = true; | 721 o.writersCanShare = true; |
722 } | 722 } |
723 buildCounterFile--; | 723 buildCounterFile--; |
724 return o; | 724 return o; |
725 } | 725 } |
726 | 726 |
727 checkFile(api.File o) { | 727 checkFile(api.File o) { |
728 buildCounterFile++; | 728 buildCounterFile++; |
729 if (buildCounterFile < 3) { | 729 if (buildCounterFile < 3) { |
730 checkUnnamed1579(o.appProperties); | 730 checkUnnamed1591(o.appProperties); |
731 checkFileCapabilities(o.capabilities); | 731 checkFileCapabilities(o.capabilities); |
732 checkFileContentHints(o.contentHints); | 732 checkFileContentHints(o.contentHints); |
733 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 733 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
734 unittest.expect(o.description, unittest.equals('foo')); | 734 unittest.expect(o.description, unittest.equals('foo')); |
735 unittest.expect(o.explicitlyTrashed, unittest.isTrue); | 735 unittest.expect(o.explicitlyTrashed, unittest.isTrue); |
736 unittest.expect(o.fileExtension, unittest.equals('foo')); | 736 unittest.expect(o.fileExtension, unittest.equals('foo')); |
737 unittest.expect(o.folderColorRgb, unittest.equals('foo')); | 737 unittest.expect(o.folderColorRgb, unittest.equals('foo')); |
738 unittest.expect(o.fullFileExtension, unittest.equals('foo')); | 738 unittest.expect(o.fullFileExtension, unittest.equals('foo')); |
739 unittest.expect(o.hasThumbnail, unittest.isTrue); | 739 unittest.expect(o.hasThumbnail, unittest.isTrue); |
740 unittest.expect(o.headRevisionId, unittest.equals('foo')); | 740 unittest.expect(o.headRevisionId, unittest.equals('foo')); |
741 unittest.expect(o.iconLink, unittest.equals('foo')); | 741 unittest.expect(o.iconLink, unittest.equals('foo')); |
742 unittest.expect(o.id, unittest.equals('foo')); | 742 unittest.expect(o.id, unittest.equals('foo')); |
743 checkFileImageMediaMetadata(o.imageMediaMetadata); | 743 checkFileImageMediaMetadata(o.imageMediaMetadata); |
744 unittest.expect(o.isAppAuthorized, unittest.isTrue); | 744 unittest.expect(o.isAppAuthorized, unittest.isTrue); |
745 unittest.expect(o.kind, unittest.equals('foo')); | 745 unittest.expect(o.kind, unittest.equals('foo')); |
746 checkUser(o.lastModifyingUser); | 746 checkUser(o.lastModifyingUser); |
747 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 747 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
748 unittest.expect(o.mimeType, unittest.equals('foo')); | 748 unittest.expect(o.mimeType, unittest.equals('foo')); |
749 unittest.expect(o.modifiedByMe, unittest.isTrue); | 749 unittest.expect(o.modifiedByMe, unittest.isTrue); |
750 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 750 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
751 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 751 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
752 unittest.expect(o.name, unittest.equals('foo')); | 752 unittest.expect(o.name, unittest.equals('foo')); |
753 unittest.expect(o.originalFilename, unittest.equals('foo')); | 753 unittest.expect(o.originalFilename, unittest.equals('foo')); |
754 unittest.expect(o.ownedByMe, unittest.isTrue); | 754 unittest.expect(o.ownedByMe, unittest.isTrue); |
755 checkUnnamed1580(o.owners); | 755 checkUnnamed1592(o.owners); |
756 checkUnnamed1581(o.parents); | 756 checkUnnamed1593(o.parents); |
757 checkUnnamed1582(o.permissions); | 757 checkUnnamed1594(o.permissions); |
758 checkUnnamed1583(o.properties); | 758 checkUnnamed1595(o.properties); |
759 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 759 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
760 unittest.expect(o.shared, unittest.isTrue); | 760 unittest.expect(o.shared, unittest.isTrue); |
761 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 761 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
762 checkUser(o.sharingUser); | 762 checkUser(o.sharingUser); |
763 unittest.expect(o.size, unittest.equals('foo')); | 763 unittest.expect(o.size, unittest.equals('foo')); |
764 checkUnnamed1584(o.spaces); | 764 checkUnnamed1596(o.spaces); |
765 unittest.expect(o.starred, unittest.isTrue); | 765 unittest.expect(o.starred, unittest.isTrue); |
766 unittest.expect(o.thumbnailLink, unittest.equals('foo')); | 766 unittest.expect(o.thumbnailLink, unittest.equals('foo')); |
767 unittest.expect(o.thumbnailVersion, unittest.equals('foo')); | 767 unittest.expect(o.thumbnailVersion, unittest.equals('foo')); |
768 unittest.expect(o.trashed, unittest.isTrue); | 768 unittest.expect(o.trashed, unittest.isTrue); |
769 unittest.expect(o.version, unittest.equals('foo')); | 769 unittest.expect(o.version, unittest.equals('foo')); |
770 checkFileVideoMediaMetadata(o.videoMediaMetadata); | 770 checkFileVideoMediaMetadata(o.videoMediaMetadata); |
771 unittest.expect(o.viewedByMe, unittest.isTrue); | 771 unittest.expect(o.viewedByMe, unittest.isTrue); |
772 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 772 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
773 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); | 773 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); |
774 unittest.expect(o.webContentLink, unittest.equals('foo')); | 774 unittest.expect(o.webContentLink, unittest.equals('foo')); |
775 unittest.expect(o.webViewLink, unittest.equals('foo')); | 775 unittest.expect(o.webViewLink, unittest.equals('foo')); |
776 unittest.expect(o.writersCanShare, unittest.isTrue); | 776 unittest.expect(o.writersCanShare, unittest.isTrue); |
777 } | 777 } |
778 buildCounterFile--; | 778 buildCounterFile--; |
779 } | 779 } |
780 | 780 |
781 buildUnnamed1585() { | 781 buildUnnamed1597() { |
782 var o = new core.List<api.File>(); | 782 var o = new core.List<api.File>(); |
783 o.add(buildFile()); | 783 o.add(buildFile()); |
784 o.add(buildFile()); | 784 o.add(buildFile()); |
785 return o; | 785 return o; |
786 } | 786 } |
787 | 787 |
788 checkUnnamed1585(core.List<api.File> o) { | 788 checkUnnamed1597(core.List<api.File> o) { |
789 unittest.expect(o, unittest.hasLength(2)); | 789 unittest.expect(o, unittest.hasLength(2)); |
790 checkFile(o[0]); | 790 checkFile(o[0]); |
791 checkFile(o[1]); | 791 checkFile(o[1]); |
792 } | 792 } |
793 | 793 |
794 core.int buildCounterFileList = 0; | 794 core.int buildCounterFileList = 0; |
795 buildFileList() { | 795 buildFileList() { |
796 var o = new api.FileList(); | 796 var o = new api.FileList(); |
797 buildCounterFileList++; | 797 buildCounterFileList++; |
798 if (buildCounterFileList < 3) { | 798 if (buildCounterFileList < 3) { |
799 o.files = buildUnnamed1585(); | 799 o.files = buildUnnamed1597(); |
800 o.kind = "foo"; | 800 o.kind = "foo"; |
801 o.nextPageToken = "foo"; | 801 o.nextPageToken = "foo"; |
802 } | 802 } |
803 buildCounterFileList--; | 803 buildCounterFileList--; |
804 return o; | 804 return o; |
805 } | 805 } |
806 | 806 |
807 checkFileList(api.FileList o) { | 807 checkFileList(api.FileList o) { |
808 buildCounterFileList++; | 808 buildCounterFileList++; |
809 if (buildCounterFileList < 3) { | 809 if (buildCounterFileList < 3) { |
810 checkUnnamed1585(o.files); | 810 checkUnnamed1597(o.files); |
811 unittest.expect(o.kind, unittest.equals('foo')); | 811 unittest.expect(o.kind, unittest.equals('foo')); |
812 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 812 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
813 } | 813 } |
814 buildCounterFileList--; | 814 buildCounterFileList--; |
815 } | 815 } |
816 | 816 |
817 buildUnnamed1586() { | 817 buildUnnamed1598() { |
818 var o = new core.List<core.String>(); | 818 var o = new core.List<core.String>(); |
819 o.add("foo"); | 819 o.add("foo"); |
820 o.add("foo"); | 820 o.add("foo"); |
821 return o; | 821 return o; |
822 } | 822 } |
823 | 823 |
824 checkUnnamed1586(core.List<core.String> o) { | 824 checkUnnamed1598(core.List<core.String> o) { |
825 unittest.expect(o, unittest.hasLength(2)); | 825 unittest.expect(o, unittest.hasLength(2)); |
826 unittest.expect(o[0], unittest.equals('foo')); | 826 unittest.expect(o[0], unittest.equals('foo')); |
827 unittest.expect(o[1], unittest.equals('foo')); | 827 unittest.expect(o[1], unittest.equals('foo')); |
828 } | 828 } |
829 | 829 |
830 core.int buildCounterGeneratedIds = 0; | 830 core.int buildCounterGeneratedIds = 0; |
831 buildGeneratedIds() { | 831 buildGeneratedIds() { |
832 var o = new api.GeneratedIds(); | 832 var o = new api.GeneratedIds(); |
833 buildCounterGeneratedIds++; | 833 buildCounterGeneratedIds++; |
834 if (buildCounterGeneratedIds < 3) { | 834 if (buildCounterGeneratedIds < 3) { |
835 o.ids = buildUnnamed1586(); | 835 o.ids = buildUnnamed1598(); |
836 o.kind = "foo"; | 836 o.kind = "foo"; |
837 o.space = "foo"; | 837 o.space = "foo"; |
838 } | 838 } |
839 buildCounterGeneratedIds--; | 839 buildCounterGeneratedIds--; |
840 return o; | 840 return o; |
841 } | 841 } |
842 | 842 |
843 checkGeneratedIds(api.GeneratedIds o) { | 843 checkGeneratedIds(api.GeneratedIds o) { |
844 buildCounterGeneratedIds++; | 844 buildCounterGeneratedIds++; |
845 if (buildCounterGeneratedIds < 3) { | 845 if (buildCounterGeneratedIds < 3) { |
846 checkUnnamed1586(o.ids); | 846 checkUnnamed1598(o.ids); |
847 unittest.expect(o.kind, unittest.equals('foo')); | 847 unittest.expect(o.kind, unittest.equals('foo')); |
848 unittest.expect(o.space, unittest.equals('foo')); | 848 unittest.expect(o.space, unittest.equals('foo')); |
849 } | 849 } |
850 buildCounterGeneratedIds--; | 850 buildCounterGeneratedIds--; |
851 } | 851 } |
852 | 852 |
853 core.int buildCounterPermission = 0; | 853 core.int buildCounterPermission = 0; |
854 buildPermission() { | 854 buildPermission() { |
855 var o = new api.Permission(); | 855 var o = new api.Permission(); |
856 buildCounterPermission++; | 856 buildCounterPermission++; |
(...skipping 23 matching lines...) Expand all Loading... |
880 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 880 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
881 unittest.expect(o.id, unittest.equals('foo')); | 881 unittest.expect(o.id, unittest.equals('foo')); |
882 unittest.expect(o.kind, unittest.equals('foo')); | 882 unittest.expect(o.kind, unittest.equals('foo')); |
883 unittest.expect(o.photoLink, unittest.equals('foo')); | 883 unittest.expect(o.photoLink, unittest.equals('foo')); |
884 unittest.expect(o.role, unittest.equals('foo')); | 884 unittest.expect(o.role, unittest.equals('foo')); |
885 unittest.expect(o.type, unittest.equals('foo')); | 885 unittest.expect(o.type, unittest.equals('foo')); |
886 } | 886 } |
887 buildCounterPermission--; | 887 buildCounterPermission--; |
888 } | 888 } |
889 | 889 |
890 buildUnnamed1587() { | 890 buildUnnamed1599() { |
891 var o = new core.List<api.Permission>(); | 891 var o = new core.List<api.Permission>(); |
892 o.add(buildPermission()); | 892 o.add(buildPermission()); |
893 o.add(buildPermission()); | 893 o.add(buildPermission()); |
894 return o; | 894 return o; |
895 } | 895 } |
896 | 896 |
897 checkUnnamed1587(core.List<api.Permission> o) { | 897 checkUnnamed1599(core.List<api.Permission> o) { |
898 unittest.expect(o, unittest.hasLength(2)); | 898 unittest.expect(o, unittest.hasLength(2)); |
899 checkPermission(o[0]); | 899 checkPermission(o[0]); |
900 checkPermission(o[1]); | 900 checkPermission(o[1]); |
901 } | 901 } |
902 | 902 |
903 core.int buildCounterPermissionList = 0; | 903 core.int buildCounterPermissionList = 0; |
904 buildPermissionList() { | 904 buildPermissionList() { |
905 var o = new api.PermissionList(); | 905 var o = new api.PermissionList(); |
906 buildCounterPermissionList++; | 906 buildCounterPermissionList++; |
907 if (buildCounterPermissionList < 3) { | 907 if (buildCounterPermissionList < 3) { |
908 o.kind = "foo"; | 908 o.kind = "foo"; |
909 o.permissions = buildUnnamed1587(); | 909 o.permissions = buildUnnamed1599(); |
910 } | 910 } |
911 buildCounterPermissionList--; | 911 buildCounterPermissionList--; |
912 return o; | 912 return o; |
913 } | 913 } |
914 | 914 |
915 checkPermissionList(api.PermissionList o) { | 915 checkPermissionList(api.PermissionList o) { |
916 buildCounterPermissionList++; | 916 buildCounterPermissionList++; |
917 if (buildCounterPermissionList < 3) { | 917 if (buildCounterPermissionList < 3) { |
918 unittest.expect(o.kind, unittest.equals('foo')); | 918 unittest.expect(o.kind, unittest.equals('foo')); |
919 checkUnnamed1587(o.permissions); | 919 checkUnnamed1599(o.permissions); |
920 } | 920 } |
921 buildCounterPermissionList--; | 921 buildCounterPermissionList--; |
922 } | 922 } |
923 | 923 |
924 core.int buildCounterReply = 0; | 924 core.int buildCounterReply = 0; |
925 buildReply() { | 925 buildReply() { |
926 var o = new api.Reply(); | 926 var o = new api.Reply(); |
927 buildCounterReply++; | 927 buildCounterReply++; |
928 if (buildCounterReply < 3) { | 928 if (buildCounterReply < 3) { |
929 o.action = "foo"; | 929 o.action = "foo"; |
(...skipping 19 matching lines...) Expand all Loading... |
949 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 949 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
950 unittest.expect(o.deleted, unittest.isTrue); | 950 unittest.expect(o.deleted, unittest.isTrue); |
951 unittest.expect(o.htmlContent, unittest.equals('foo')); | 951 unittest.expect(o.htmlContent, unittest.equals('foo')); |
952 unittest.expect(o.id, unittest.equals('foo')); | 952 unittest.expect(o.id, unittest.equals('foo')); |
953 unittest.expect(o.kind, unittest.equals('foo')); | 953 unittest.expect(o.kind, unittest.equals('foo')); |
954 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 954 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
955 } | 955 } |
956 buildCounterReply--; | 956 buildCounterReply--; |
957 } | 957 } |
958 | 958 |
959 buildUnnamed1588() { | 959 buildUnnamed1600() { |
960 var o = new core.List<api.Reply>(); | 960 var o = new core.List<api.Reply>(); |
961 o.add(buildReply()); | 961 o.add(buildReply()); |
962 o.add(buildReply()); | 962 o.add(buildReply()); |
963 return o; | 963 return o; |
964 } | 964 } |
965 | 965 |
966 checkUnnamed1588(core.List<api.Reply> o) { | 966 checkUnnamed1600(core.List<api.Reply> o) { |
967 unittest.expect(o, unittest.hasLength(2)); | 967 unittest.expect(o, unittest.hasLength(2)); |
968 checkReply(o[0]); | 968 checkReply(o[0]); |
969 checkReply(o[1]); | 969 checkReply(o[1]); |
970 } | 970 } |
971 | 971 |
972 core.int buildCounterReplyList = 0; | 972 core.int buildCounterReplyList = 0; |
973 buildReplyList() { | 973 buildReplyList() { |
974 var o = new api.ReplyList(); | 974 var o = new api.ReplyList(); |
975 buildCounterReplyList++; | 975 buildCounterReplyList++; |
976 if (buildCounterReplyList < 3) { | 976 if (buildCounterReplyList < 3) { |
977 o.kind = "foo"; | 977 o.kind = "foo"; |
978 o.nextPageToken = "foo"; | 978 o.nextPageToken = "foo"; |
979 o.replies = buildUnnamed1588(); | 979 o.replies = buildUnnamed1600(); |
980 } | 980 } |
981 buildCounterReplyList--; | 981 buildCounterReplyList--; |
982 return o; | 982 return o; |
983 } | 983 } |
984 | 984 |
985 checkReplyList(api.ReplyList o) { | 985 checkReplyList(api.ReplyList o) { |
986 buildCounterReplyList++; | 986 buildCounterReplyList++; |
987 if (buildCounterReplyList < 3) { | 987 if (buildCounterReplyList < 3) { |
988 unittest.expect(o.kind, unittest.equals('foo')); | 988 unittest.expect(o.kind, unittest.equals('foo')); |
989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
990 checkUnnamed1588(o.replies); | 990 checkUnnamed1600(o.replies); |
991 } | 991 } |
992 buildCounterReplyList--; | 992 buildCounterReplyList--; |
993 } | 993 } |
994 | 994 |
995 core.int buildCounterRevision = 0; | 995 core.int buildCounterRevision = 0; |
996 buildRevision() { | 996 buildRevision() { |
997 var o = new api.Revision(); | 997 var o = new api.Revision(); |
998 buildCounterRevision++; | 998 buildCounterRevision++; |
999 if (buildCounterRevision < 3) { | 999 if (buildCounterRevision < 3) { |
1000 o.id = "foo"; | 1000 o.id = "foo"; |
(...skipping 25 matching lines...) Expand all Loading... |
1026 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1026 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
1027 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1027 unittest.expect(o.originalFilename, unittest.equals('foo')); |
1028 unittest.expect(o.publishAuto, unittest.isTrue); | 1028 unittest.expect(o.publishAuto, unittest.isTrue); |
1029 unittest.expect(o.published, unittest.isTrue); | 1029 unittest.expect(o.published, unittest.isTrue); |
1030 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); | 1030 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); |
1031 unittest.expect(o.size, unittest.equals('foo')); | 1031 unittest.expect(o.size, unittest.equals('foo')); |
1032 } | 1032 } |
1033 buildCounterRevision--; | 1033 buildCounterRevision--; |
1034 } | 1034 } |
1035 | 1035 |
1036 buildUnnamed1589() { | 1036 buildUnnamed1601() { |
1037 var o = new core.List<api.Revision>(); | 1037 var o = new core.List<api.Revision>(); |
1038 o.add(buildRevision()); | 1038 o.add(buildRevision()); |
1039 o.add(buildRevision()); | 1039 o.add(buildRevision()); |
1040 return o; | 1040 return o; |
1041 } | 1041 } |
1042 | 1042 |
1043 checkUnnamed1589(core.List<api.Revision> o) { | 1043 checkUnnamed1601(core.List<api.Revision> o) { |
1044 unittest.expect(o, unittest.hasLength(2)); | 1044 unittest.expect(o, unittest.hasLength(2)); |
1045 checkRevision(o[0]); | 1045 checkRevision(o[0]); |
1046 checkRevision(o[1]); | 1046 checkRevision(o[1]); |
1047 } | 1047 } |
1048 | 1048 |
1049 core.int buildCounterRevisionList = 0; | 1049 core.int buildCounterRevisionList = 0; |
1050 buildRevisionList() { | 1050 buildRevisionList() { |
1051 var o = new api.RevisionList(); | 1051 var o = new api.RevisionList(); |
1052 buildCounterRevisionList++; | 1052 buildCounterRevisionList++; |
1053 if (buildCounterRevisionList < 3) { | 1053 if (buildCounterRevisionList < 3) { |
1054 o.kind = "foo"; | 1054 o.kind = "foo"; |
1055 o.nextPageToken = "foo"; | 1055 o.nextPageToken = "foo"; |
1056 o.revisions = buildUnnamed1589(); | 1056 o.revisions = buildUnnamed1601(); |
1057 } | 1057 } |
1058 buildCounterRevisionList--; | 1058 buildCounterRevisionList--; |
1059 return o; | 1059 return o; |
1060 } | 1060 } |
1061 | 1061 |
1062 checkRevisionList(api.RevisionList o) { | 1062 checkRevisionList(api.RevisionList o) { |
1063 buildCounterRevisionList++; | 1063 buildCounterRevisionList++; |
1064 if (buildCounterRevisionList < 3) { | 1064 if (buildCounterRevisionList < 3) { |
1065 unittest.expect(o.kind, unittest.equals('foo')); | 1065 unittest.expect(o.kind, unittest.equals('foo')); |
1066 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1066 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1067 checkUnnamed1589(o.revisions); | 1067 checkUnnamed1601(o.revisions); |
1068 } | 1068 } |
1069 buildCounterRevisionList--; | 1069 buildCounterRevisionList--; |
1070 } | 1070 } |
1071 | 1071 |
1072 core.int buildCounterStartPageToken = 0; | 1072 core.int buildCounterStartPageToken = 0; |
1073 buildStartPageToken() { | 1073 buildStartPageToken() { |
1074 var o = new api.StartPageToken(); | 1074 var o = new api.StartPageToken(); |
1075 buildCounterStartPageToken++; | 1075 buildCounterStartPageToken++; |
1076 if (buildCounterStartPageToken < 3) { | 1076 if (buildCounterStartPageToken < 3) { |
1077 o.kind = "foo"; | 1077 o.kind = "foo"; |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3327 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { | 3327 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { |
3328 checkRevision(response); | 3328 checkRevision(response); |
3329 }))); | 3329 }))); |
3330 }); | 3330 }); |
3331 | 3331 |
3332 }); | 3332 }); |
3333 | 3333 |
3334 | 3334 |
3335 } | 3335 } |
3336 | 3336 |
OLD | NEW |