| 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 buildUnnamed2502() { | 54 buildUnnamed1801() { |
| 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 checkUnnamed2502(core.List<core.String> o) { | 61 checkUnnamed1801(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 buildUnnamed2503() { | 67 buildUnnamed1802() { |
| 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"] = buildUnnamed2502(); | 69 o["x"] = buildUnnamed1801(); |
| 70 o["y"] = buildUnnamed2502(); | 70 o["y"] = buildUnnamed1801(); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed2503(core.Map<core.String, core.List<core.String>> o) { | 74 checkUnnamed1802(core.Map<core.String, core.List<core.String>> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkUnnamed2502(o["x"]); | 76 checkUnnamed1801(o["x"]); |
| 77 checkUnnamed2502(o["y"]); | 77 checkUnnamed1801(o["y"]); |
| 78 } | 78 } |
| 79 | 79 |
| 80 buildUnnamed2504() { | 80 buildUnnamed1803() { |
| 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 checkUnnamed2504(core.List<core.String> o) { | 87 checkUnnamed1803(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 buildUnnamed2505() { | 93 buildUnnamed1804() { |
| 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 checkUnnamed2505(core.List<core.String> o) { | 100 checkUnnamed1804(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 buildUnnamed2506() { | 106 buildUnnamed1805() { |
| 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"] = buildUnnamed2505(); | 108 o["x"] = buildUnnamed1804(); |
| 109 o["y"] = buildUnnamed2505(); | 109 o["y"] = buildUnnamed1804(); |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkUnnamed2506(core.Map<core.String, core.List<core.String>> o) { | 113 checkUnnamed1805(core.Map<core.String, core.List<core.String>> o) { |
| 114 unittest.expect(o, unittest.hasLength(2)); | 114 unittest.expect(o, unittest.hasLength(2)); |
| 115 checkUnnamed2505(o["x"]); | 115 checkUnnamed1804(o["x"]); |
| 116 checkUnnamed2505(o["y"]); | 116 checkUnnamed1804(o["y"]); |
| 117 } | 117 } |
| 118 | 118 |
| 119 buildUnnamed2507() { | 119 buildUnnamed1806() { |
| 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 checkUnnamed2507(core.Map<core.String, core.String> o) { | 126 checkUnnamed1806(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 = buildUnnamed2503(); | 163 o.exportFormats = buildUnnamed1802(); |
| 164 o.folderColorPalette = buildUnnamed2504(); | 164 o.folderColorPalette = buildUnnamed1803(); |
| 165 o.importFormats = buildUnnamed2506(); | 165 o.importFormats = buildUnnamed1805(); |
| 166 o.kind = "foo"; | 166 o.kind = "foo"; |
| 167 o.maxImportSizes = buildUnnamed2507(); | 167 o.maxImportSizes = buildUnnamed1806(); |
| 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 checkUnnamed2503(o.exportFormats); | 180 checkUnnamed1802(o.exportFormats); |
| 181 checkUnnamed2504(o.folderColorPalette); | 181 checkUnnamed1803(o.folderColorPalette); |
| 182 checkUnnamed2506(o.importFormats); | 182 checkUnnamed1805(o.importFormats); |
| 183 unittest.expect(o.kind, unittest.equals('foo')); | 183 unittest.expect(o.kind, unittest.equals('foo')); |
| 184 checkUnnamed2507(o.maxImportSizes); | 184 checkUnnamed1806(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 buildUnnamed2508() { | 219 buildUnnamed1807() { |
| 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 checkUnnamed2508(core.List<api.Change> o) { | 226 checkUnnamed1807(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 = buildUnnamed2508(); | 237 o.changes = buildUnnamed1807(); |
| 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 checkUnnamed2508(o.changes); | 249 checkUnnamed1807(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 buildUnnamed2509() { | 257 buildUnnamed1808() { |
| 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 checkUnnamed2509(core.Map<core.String, core.String> o) { | 264 checkUnnamed1808(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 = buildUnnamed2509(); | 279 o.params = buildUnnamed1808(); |
| 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 checkUnnamed2509(o.params); | 297 checkUnnamed1808(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 buildUnnamed2510() { | 328 buildUnnamed1809() { |
| 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 checkUnnamed2510(core.List<api.Reply> o) { | 335 checkUnnamed1809(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 = buildUnnamed2510(); | 356 o.replies = buildUnnamed1809(); |
| 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 checkUnnamed2510(o.replies); | 376 checkUnnamed1809(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 buildUnnamed2511() { | 382 buildUnnamed1810() { |
| 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 checkUnnamed2511(core.List<api.Comment> o) { | 389 checkUnnamed1810(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 = buildUnnamed2511(); | 400 o.comments = buildUnnamed1810(); |
| 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 checkUnnamed2511(o.comments); | 411 checkUnnamed1810(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 buildUnnamed2512() { | 418 buildUnnamed1811() { |
| 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 checkUnnamed2512(core.Map<core.String, core.String> o) { | 425 checkUnnamed1811(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 buildUnnamed2513() { | 582 buildUnnamed1812() { |
| 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 checkUnnamed2513(core.List<api.User> o) { | 589 checkUnnamed1812(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 buildUnnamed2514() { | 595 buildUnnamed1813() { |
| 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 checkUnnamed2514(core.List<core.String> o) { | 602 checkUnnamed1813(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 buildUnnamed2515() { | 608 buildUnnamed1814() { |
| 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 checkUnnamed2515(core.List<api.Permission> o) { | 615 checkUnnamed1814(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 buildUnnamed2516() { | 621 buildUnnamed1815() { |
| 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 checkUnnamed2516(core.Map<core.String, core.String> o) { | 628 checkUnnamed1815(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 buildUnnamed2517() { | 634 buildUnnamed1816() { |
| 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 checkUnnamed2517(core.List<core.String> o) { | 641 checkUnnamed1816(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 = buildUnnamed2512(); | 675 o.appProperties = buildUnnamed1811(); |
| 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.headRevisionId = "foo"; | 684 o.headRevisionId = "foo"; |
| 685 o.iconLink = "foo"; | 685 o.iconLink = "foo"; |
| 686 o.id = "foo"; | 686 o.id = "foo"; |
| 687 o.imageMediaMetadata = buildFileImageMediaMetadata(); | 687 o.imageMediaMetadata = buildFileImageMediaMetadata(); |
| 688 o.isAppAuthorized = true; | 688 o.isAppAuthorized = true; |
| 689 o.kind = "foo"; | 689 o.kind = "foo"; |
| 690 o.lastModifyingUser = buildUser(); | 690 o.lastModifyingUser = buildUser(); |
| 691 o.md5Checksum = "foo"; | 691 o.md5Checksum = "foo"; |
| 692 o.mimeType = "foo"; | 692 o.mimeType = "foo"; |
| 693 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 693 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 694 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 694 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 695 o.name = "foo"; | 695 o.name = "foo"; |
| 696 o.originalFilename = "foo"; | 696 o.originalFilename = "foo"; |
| 697 o.ownedByMe = true; | 697 o.ownedByMe = true; |
| 698 o.owners = buildUnnamed2513(); | 698 o.owners = buildUnnamed1812(); |
| 699 o.parents = buildUnnamed2514(); | 699 o.parents = buildUnnamed1813(); |
| 700 o.permissions = buildUnnamed2515(); | 700 o.permissions = buildUnnamed1814(); |
| 701 o.properties = buildUnnamed2516(); | 701 o.properties = buildUnnamed1815(); |
| 702 o.quotaBytesUsed = "foo"; | 702 o.quotaBytesUsed = "foo"; |
| 703 o.shared = true; | 703 o.shared = true; |
| 704 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 704 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 705 o.sharingUser = buildUser(); | 705 o.sharingUser = buildUser(); |
| 706 o.size = "foo"; | 706 o.size = "foo"; |
| 707 o.spaces = buildUnnamed2517(); | 707 o.spaces = buildUnnamed1816(); |
| 708 o.starred = true; | 708 o.starred = true; |
| 709 o.thumbnailLink = "foo"; | 709 o.thumbnailLink = "foo"; |
| 710 o.trashed = true; | 710 o.trashed = true; |
| 711 o.version = "foo"; | 711 o.version = "foo"; |
| 712 o.videoMediaMetadata = buildFileVideoMediaMetadata(); | 712 o.videoMediaMetadata = buildFileVideoMediaMetadata(); |
| 713 o.viewedByMe = true; | 713 o.viewedByMe = true; |
| 714 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); | 714 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 715 o.viewersCanCopyContent = true; | 715 o.viewersCanCopyContent = true; |
| 716 o.webContentLink = "foo"; | 716 o.webContentLink = "foo"; |
| 717 o.webViewLink = "foo"; | 717 o.webViewLink = "foo"; |
| 718 o.writersCanShare = true; | 718 o.writersCanShare = true; |
| 719 } | 719 } |
| 720 buildCounterFile--; | 720 buildCounterFile--; |
| 721 return o; | 721 return o; |
| 722 } | 722 } |
| 723 | 723 |
| 724 checkFile(api.File o) { | 724 checkFile(api.File o) { |
| 725 buildCounterFile++; | 725 buildCounterFile++; |
| 726 if (buildCounterFile < 3) { | 726 if (buildCounterFile < 3) { |
| 727 checkUnnamed2512(o.appProperties); | 727 checkUnnamed1811(o.appProperties); |
| 728 checkFileCapabilities(o.capabilities); | 728 checkFileCapabilities(o.capabilities); |
| 729 checkFileContentHints(o.contentHints); | 729 checkFileContentHints(o.contentHints); |
| 730 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 730 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 731 unittest.expect(o.description, unittest.equals('foo')); | 731 unittest.expect(o.description, unittest.equals('foo')); |
| 732 unittest.expect(o.explicitlyTrashed, unittest.isTrue); | 732 unittest.expect(o.explicitlyTrashed, unittest.isTrue); |
| 733 unittest.expect(o.fileExtension, unittest.equals('foo')); | 733 unittest.expect(o.fileExtension, unittest.equals('foo')); |
| 734 unittest.expect(o.folderColorRgb, unittest.equals('foo')); | 734 unittest.expect(o.folderColorRgb, unittest.equals('foo')); |
| 735 unittest.expect(o.fullFileExtension, unittest.equals('foo')); | 735 unittest.expect(o.fullFileExtension, unittest.equals('foo')); |
| 736 unittest.expect(o.headRevisionId, unittest.equals('foo')); | 736 unittest.expect(o.headRevisionId, unittest.equals('foo')); |
| 737 unittest.expect(o.iconLink, unittest.equals('foo')); | 737 unittest.expect(o.iconLink, unittest.equals('foo')); |
| 738 unittest.expect(o.id, unittest.equals('foo')); | 738 unittest.expect(o.id, unittest.equals('foo')); |
| 739 checkFileImageMediaMetadata(o.imageMediaMetadata); | 739 checkFileImageMediaMetadata(o.imageMediaMetadata); |
| 740 unittest.expect(o.isAppAuthorized, unittest.isTrue); | 740 unittest.expect(o.isAppAuthorized, unittest.isTrue); |
| 741 unittest.expect(o.kind, unittest.equals('foo')); | 741 unittest.expect(o.kind, unittest.equals('foo')); |
| 742 checkUser(o.lastModifyingUser); | 742 checkUser(o.lastModifyingUser); |
| 743 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 743 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
| 744 unittest.expect(o.mimeType, unittest.equals('foo')); | 744 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 745 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 745 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 746 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 746 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 747 unittest.expect(o.name, unittest.equals('foo')); | 747 unittest.expect(o.name, unittest.equals('foo')); |
| 748 unittest.expect(o.originalFilename, unittest.equals('foo')); | 748 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 749 unittest.expect(o.ownedByMe, unittest.isTrue); | 749 unittest.expect(o.ownedByMe, unittest.isTrue); |
| 750 checkUnnamed2513(o.owners); | 750 checkUnnamed1812(o.owners); |
| 751 checkUnnamed2514(o.parents); | 751 checkUnnamed1813(o.parents); |
| 752 checkUnnamed2515(o.permissions); | 752 checkUnnamed1814(o.permissions); |
| 753 checkUnnamed2516(o.properties); | 753 checkUnnamed1815(o.properties); |
| 754 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 754 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
| 755 unittest.expect(o.shared, unittest.isTrue); | 755 unittest.expect(o.shared, unittest.isTrue); |
| 756 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 756 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 757 checkUser(o.sharingUser); | 757 checkUser(o.sharingUser); |
| 758 unittest.expect(o.size, unittest.equals('foo')); | 758 unittest.expect(o.size, unittest.equals('foo')); |
| 759 checkUnnamed2517(o.spaces); | 759 checkUnnamed1816(o.spaces); |
| 760 unittest.expect(o.starred, unittest.isTrue); | 760 unittest.expect(o.starred, unittest.isTrue); |
| 761 unittest.expect(o.thumbnailLink, unittest.equals('foo')); | 761 unittest.expect(o.thumbnailLink, unittest.equals('foo')); |
| 762 unittest.expect(o.trashed, unittest.isTrue); | 762 unittest.expect(o.trashed, unittest.isTrue); |
| 763 unittest.expect(o.version, unittest.equals('foo')); | 763 unittest.expect(o.version, unittest.equals('foo')); |
| 764 checkFileVideoMediaMetadata(o.videoMediaMetadata); | 764 checkFileVideoMediaMetadata(o.videoMediaMetadata); |
| 765 unittest.expect(o.viewedByMe, unittest.isTrue); | 765 unittest.expect(o.viewedByMe, unittest.isTrue); |
| 766 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 766 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
| 767 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); | 767 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); |
| 768 unittest.expect(o.webContentLink, unittest.equals('foo')); | 768 unittest.expect(o.webContentLink, unittest.equals('foo')); |
| 769 unittest.expect(o.webViewLink, unittest.equals('foo')); | 769 unittest.expect(o.webViewLink, unittest.equals('foo')); |
| 770 unittest.expect(o.writersCanShare, unittest.isTrue); | 770 unittest.expect(o.writersCanShare, unittest.isTrue); |
| 771 } | 771 } |
| 772 buildCounterFile--; | 772 buildCounterFile--; |
| 773 } | 773 } |
| 774 | 774 |
| 775 buildUnnamed2518() { | 775 buildUnnamed1817() { |
| 776 var o = new core.List<api.File>(); | 776 var o = new core.List<api.File>(); |
| 777 o.add(buildFile()); | 777 o.add(buildFile()); |
| 778 o.add(buildFile()); | 778 o.add(buildFile()); |
| 779 return o; | 779 return o; |
| 780 } | 780 } |
| 781 | 781 |
| 782 checkUnnamed2518(core.List<api.File> o) { | 782 checkUnnamed1817(core.List<api.File> o) { |
| 783 unittest.expect(o, unittest.hasLength(2)); | 783 unittest.expect(o, unittest.hasLength(2)); |
| 784 checkFile(o[0]); | 784 checkFile(o[0]); |
| 785 checkFile(o[1]); | 785 checkFile(o[1]); |
| 786 } | 786 } |
| 787 | 787 |
| 788 core.int buildCounterFileList = 0; | 788 core.int buildCounterFileList = 0; |
| 789 buildFileList() { | 789 buildFileList() { |
| 790 var o = new api.FileList(); | 790 var o = new api.FileList(); |
| 791 buildCounterFileList++; | 791 buildCounterFileList++; |
| 792 if (buildCounterFileList < 3) { | 792 if (buildCounterFileList < 3) { |
| 793 o.files = buildUnnamed2518(); | 793 o.files = buildUnnamed1817(); |
| 794 o.kind = "foo"; | 794 o.kind = "foo"; |
| 795 o.nextPageToken = "foo"; | 795 o.nextPageToken = "foo"; |
| 796 } | 796 } |
| 797 buildCounterFileList--; | 797 buildCounterFileList--; |
| 798 return o; | 798 return o; |
| 799 } | 799 } |
| 800 | 800 |
| 801 checkFileList(api.FileList o) { | 801 checkFileList(api.FileList o) { |
| 802 buildCounterFileList++; | 802 buildCounterFileList++; |
| 803 if (buildCounterFileList < 3) { | 803 if (buildCounterFileList < 3) { |
| 804 checkUnnamed2518(o.files); | 804 checkUnnamed1817(o.files); |
| 805 unittest.expect(o.kind, unittest.equals('foo')); | 805 unittest.expect(o.kind, unittest.equals('foo')); |
| 806 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 806 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 807 } | 807 } |
| 808 buildCounterFileList--; | 808 buildCounterFileList--; |
| 809 } | 809 } |
| 810 | 810 |
| 811 buildUnnamed2519() { | 811 buildUnnamed1818() { |
| 812 var o = new core.List<core.String>(); | 812 var o = new core.List<core.String>(); |
| 813 o.add("foo"); | 813 o.add("foo"); |
| 814 o.add("foo"); | 814 o.add("foo"); |
| 815 return o; | 815 return o; |
| 816 } | 816 } |
| 817 | 817 |
| 818 checkUnnamed2519(core.List<core.String> o) { | 818 checkUnnamed1818(core.List<core.String> o) { |
| 819 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
| 820 unittest.expect(o[0], unittest.equals('foo')); | 820 unittest.expect(o[0], unittest.equals('foo')); |
| 821 unittest.expect(o[1], unittest.equals('foo')); | 821 unittest.expect(o[1], unittest.equals('foo')); |
| 822 } | 822 } |
| 823 | 823 |
| 824 core.int buildCounterGeneratedIds = 0; | 824 core.int buildCounterGeneratedIds = 0; |
| 825 buildGeneratedIds() { | 825 buildGeneratedIds() { |
| 826 var o = new api.GeneratedIds(); | 826 var o = new api.GeneratedIds(); |
| 827 buildCounterGeneratedIds++; | 827 buildCounterGeneratedIds++; |
| 828 if (buildCounterGeneratedIds < 3) { | 828 if (buildCounterGeneratedIds < 3) { |
| 829 o.ids = buildUnnamed2519(); | 829 o.ids = buildUnnamed1818(); |
| 830 o.kind = "foo"; | 830 o.kind = "foo"; |
| 831 o.space = "foo"; | 831 o.space = "foo"; |
| 832 } | 832 } |
| 833 buildCounterGeneratedIds--; | 833 buildCounterGeneratedIds--; |
| 834 return o; | 834 return o; |
| 835 } | 835 } |
| 836 | 836 |
| 837 checkGeneratedIds(api.GeneratedIds o) { | 837 checkGeneratedIds(api.GeneratedIds o) { |
| 838 buildCounterGeneratedIds++; | 838 buildCounterGeneratedIds++; |
| 839 if (buildCounterGeneratedIds < 3) { | 839 if (buildCounterGeneratedIds < 3) { |
| 840 checkUnnamed2519(o.ids); | 840 checkUnnamed1818(o.ids); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 unittest.expect(o.space, unittest.equals('foo')); | 842 unittest.expect(o.space, unittest.equals('foo')); |
| 843 } | 843 } |
| 844 buildCounterGeneratedIds--; | 844 buildCounterGeneratedIds--; |
| 845 } | 845 } |
| 846 | 846 |
| 847 core.int buildCounterPermission = 0; | 847 core.int buildCounterPermission = 0; |
| 848 buildPermission() { | 848 buildPermission() { |
| 849 var o = new api.Permission(); | 849 var o = new api.Permission(); |
| 850 buildCounterPermission++; | 850 buildCounterPermission++; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 874 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 874 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
| 875 unittest.expect(o.id, unittest.equals('foo')); | 875 unittest.expect(o.id, unittest.equals('foo')); |
| 876 unittest.expect(o.kind, unittest.equals('foo')); | 876 unittest.expect(o.kind, unittest.equals('foo')); |
| 877 unittest.expect(o.photoLink, unittest.equals('foo')); | 877 unittest.expect(o.photoLink, unittest.equals('foo')); |
| 878 unittest.expect(o.role, unittest.equals('foo')); | 878 unittest.expect(o.role, unittest.equals('foo')); |
| 879 unittest.expect(o.type, unittest.equals('foo')); | 879 unittest.expect(o.type, unittest.equals('foo')); |
| 880 } | 880 } |
| 881 buildCounterPermission--; | 881 buildCounterPermission--; |
| 882 } | 882 } |
| 883 | 883 |
| 884 buildUnnamed2520() { | 884 buildUnnamed1819() { |
| 885 var o = new core.List<api.Permission>(); | 885 var o = new core.List<api.Permission>(); |
| 886 o.add(buildPermission()); | 886 o.add(buildPermission()); |
| 887 o.add(buildPermission()); | 887 o.add(buildPermission()); |
| 888 return o; | 888 return o; |
| 889 } | 889 } |
| 890 | 890 |
| 891 checkUnnamed2520(core.List<api.Permission> o) { | 891 checkUnnamed1819(core.List<api.Permission> o) { |
| 892 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
| 893 checkPermission(o[0]); | 893 checkPermission(o[0]); |
| 894 checkPermission(o[1]); | 894 checkPermission(o[1]); |
| 895 } | 895 } |
| 896 | 896 |
| 897 core.int buildCounterPermissionList = 0; | 897 core.int buildCounterPermissionList = 0; |
| 898 buildPermissionList() { | 898 buildPermissionList() { |
| 899 var o = new api.PermissionList(); | 899 var o = new api.PermissionList(); |
| 900 buildCounterPermissionList++; | 900 buildCounterPermissionList++; |
| 901 if (buildCounterPermissionList < 3) { | 901 if (buildCounterPermissionList < 3) { |
| 902 o.kind = "foo"; | 902 o.kind = "foo"; |
| 903 o.permissions = buildUnnamed2520(); | 903 o.permissions = buildUnnamed1819(); |
| 904 } | 904 } |
| 905 buildCounterPermissionList--; | 905 buildCounterPermissionList--; |
| 906 return o; | 906 return o; |
| 907 } | 907 } |
| 908 | 908 |
| 909 checkPermissionList(api.PermissionList o) { | 909 checkPermissionList(api.PermissionList o) { |
| 910 buildCounterPermissionList++; | 910 buildCounterPermissionList++; |
| 911 if (buildCounterPermissionList < 3) { | 911 if (buildCounterPermissionList < 3) { |
| 912 unittest.expect(o.kind, unittest.equals('foo')); | 912 unittest.expect(o.kind, unittest.equals('foo')); |
| 913 checkUnnamed2520(o.permissions); | 913 checkUnnamed1819(o.permissions); |
| 914 } | 914 } |
| 915 buildCounterPermissionList--; | 915 buildCounterPermissionList--; |
| 916 } | 916 } |
| 917 | 917 |
| 918 core.int buildCounterReply = 0; | 918 core.int buildCounterReply = 0; |
| 919 buildReply() { | 919 buildReply() { |
| 920 var o = new api.Reply(); | 920 var o = new api.Reply(); |
| 921 buildCounterReply++; | 921 buildCounterReply++; |
| 922 if (buildCounterReply < 3) { | 922 if (buildCounterReply < 3) { |
| 923 o.action = "foo"; | 923 o.action = "foo"; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 943 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 943 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 944 unittest.expect(o.deleted, unittest.isTrue); | 944 unittest.expect(o.deleted, unittest.isTrue); |
| 945 unittest.expect(o.htmlContent, unittest.equals('foo')); | 945 unittest.expect(o.htmlContent, unittest.equals('foo')); |
| 946 unittest.expect(o.id, unittest.equals('foo')); | 946 unittest.expect(o.id, unittest.equals('foo')); |
| 947 unittest.expect(o.kind, unittest.equals('foo')); | 947 unittest.expect(o.kind, unittest.equals('foo')); |
| 948 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 948 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 949 } | 949 } |
| 950 buildCounterReply--; | 950 buildCounterReply--; |
| 951 } | 951 } |
| 952 | 952 |
| 953 buildUnnamed2521() { | 953 buildUnnamed1820() { |
| 954 var o = new core.List<api.Reply>(); | 954 var o = new core.List<api.Reply>(); |
| 955 o.add(buildReply()); | 955 o.add(buildReply()); |
| 956 o.add(buildReply()); | 956 o.add(buildReply()); |
| 957 return o; | 957 return o; |
| 958 } | 958 } |
| 959 | 959 |
| 960 checkUnnamed2521(core.List<api.Reply> o) { | 960 checkUnnamed1820(core.List<api.Reply> o) { |
| 961 unittest.expect(o, unittest.hasLength(2)); | 961 unittest.expect(o, unittest.hasLength(2)); |
| 962 checkReply(o[0]); | 962 checkReply(o[0]); |
| 963 checkReply(o[1]); | 963 checkReply(o[1]); |
| 964 } | 964 } |
| 965 | 965 |
| 966 core.int buildCounterReplyList = 0; | 966 core.int buildCounterReplyList = 0; |
| 967 buildReplyList() { | 967 buildReplyList() { |
| 968 var o = new api.ReplyList(); | 968 var o = new api.ReplyList(); |
| 969 buildCounterReplyList++; | 969 buildCounterReplyList++; |
| 970 if (buildCounterReplyList < 3) { | 970 if (buildCounterReplyList < 3) { |
| 971 o.kind = "foo"; | 971 o.kind = "foo"; |
| 972 o.nextPageToken = "foo"; | 972 o.nextPageToken = "foo"; |
| 973 o.replies = buildUnnamed2521(); | 973 o.replies = buildUnnamed1820(); |
| 974 } | 974 } |
| 975 buildCounterReplyList--; | 975 buildCounterReplyList--; |
| 976 return o; | 976 return o; |
| 977 } | 977 } |
| 978 | 978 |
| 979 checkReplyList(api.ReplyList o) { | 979 checkReplyList(api.ReplyList o) { |
| 980 buildCounterReplyList++; | 980 buildCounterReplyList++; |
| 981 if (buildCounterReplyList < 3) { | 981 if (buildCounterReplyList < 3) { |
| 982 unittest.expect(o.kind, unittest.equals('foo')); | 982 unittest.expect(o.kind, unittest.equals('foo')); |
| 983 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 983 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 984 checkUnnamed2521(o.replies); | 984 checkUnnamed1820(o.replies); |
| 985 } | 985 } |
| 986 buildCounterReplyList--; | 986 buildCounterReplyList--; |
| 987 } | 987 } |
| 988 | 988 |
| 989 core.int buildCounterRevision = 0; | 989 core.int buildCounterRevision = 0; |
| 990 buildRevision() { | 990 buildRevision() { |
| 991 var o = new api.Revision(); | 991 var o = new api.Revision(); |
| 992 buildCounterRevision++; | 992 buildCounterRevision++; |
| 993 if (buildCounterRevision < 3) { | 993 if (buildCounterRevision < 3) { |
| 994 o.id = "foo"; | 994 o.id = "foo"; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1020 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1020 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1021 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1021 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 1022 unittest.expect(o.publishAuto, unittest.isTrue); | 1022 unittest.expect(o.publishAuto, unittest.isTrue); |
| 1023 unittest.expect(o.published, unittest.isTrue); | 1023 unittest.expect(o.published, unittest.isTrue); |
| 1024 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); | 1024 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); |
| 1025 unittest.expect(o.size, unittest.equals('foo')); | 1025 unittest.expect(o.size, unittest.equals('foo')); |
| 1026 } | 1026 } |
| 1027 buildCounterRevision--; | 1027 buildCounterRevision--; |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 buildUnnamed2522() { | 1030 buildUnnamed1821() { |
| 1031 var o = new core.List<api.Revision>(); | 1031 var o = new core.List<api.Revision>(); |
| 1032 o.add(buildRevision()); | 1032 o.add(buildRevision()); |
| 1033 o.add(buildRevision()); | 1033 o.add(buildRevision()); |
| 1034 return o; | 1034 return o; |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 checkUnnamed2522(core.List<api.Revision> o) { | 1037 checkUnnamed1821(core.List<api.Revision> o) { |
| 1038 unittest.expect(o, unittest.hasLength(2)); | 1038 unittest.expect(o, unittest.hasLength(2)); |
| 1039 checkRevision(o[0]); | 1039 checkRevision(o[0]); |
| 1040 checkRevision(o[1]); | 1040 checkRevision(o[1]); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 core.int buildCounterRevisionList = 0; | 1043 core.int buildCounterRevisionList = 0; |
| 1044 buildRevisionList() { | 1044 buildRevisionList() { |
| 1045 var o = new api.RevisionList(); | 1045 var o = new api.RevisionList(); |
| 1046 buildCounterRevisionList++; | 1046 buildCounterRevisionList++; |
| 1047 if (buildCounterRevisionList < 3) { | 1047 if (buildCounterRevisionList < 3) { |
| 1048 o.kind = "foo"; | 1048 o.kind = "foo"; |
| 1049 o.revisions = buildUnnamed2522(); | 1049 o.revisions = buildUnnamed1821(); |
| 1050 } | 1050 } |
| 1051 buildCounterRevisionList--; | 1051 buildCounterRevisionList--; |
| 1052 return o; | 1052 return o; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 checkRevisionList(api.RevisionList o) { | 1055 checkRevisionList(api.RevisionList o) { |
| 1056 buildCounterRevisionList++; | 1056 buildCounterRevisionList++; |
| 1057 if (buildCounterRevisionList < 3) { | 1057 if (buildCounterRevisionList < 3) { |
| 1058 unittest.expect(o.kind, unittest.equals('foo')); | 1058 unittest.expect(o.kind, unittest.equals('foo')); |
| 1059 checkUnnamed2522(o.revisions); | 1059 checkUnnamed1821(o.revisions); |
| 1060 } | 1060 } |
| 1061 buildCounterRevisionList--; | 1061 buildCounterRevisionList--; |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 core.int buildCounterStartPageToken = 0; | 1064 core.int buildCounterStartPageToken = 0; |
| 1065 buildStartPageToken() { | 1065 buildStartPageToken() { |
| 1066 var o = new api.StartPageToken(); | 1066 var o = new api.StartPageToken(); |
| 1067 buildCounterStartPageToken++; | 1067 buildCounterStartPageToken++; |
| 1068 if (buildCounterStartPageToken < 3) { | 1068 if (buildCounterStartPageToken < 3) { |
| 1069 o.kind = "foo"; | 1069 o.kind = "foo"; |
| (...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3315 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { | 3315 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { |
| 3316 checkRevision(response); | 3316 checkRevision(response); |
| 3317 }))); | 3317 }))); |
| 3318 }); | 3318 }); |
| 3319 | 3319 |
| 3320 }); | 3320 }); |
| 3321 | 3321 |
| 3322 | 3322 |
| 3323 } | 3323 } |
| 3324 | 3324 |
| OLD | NEW |