| OLD | NEW |
| 1 library googleapis.drive.v2.test; | 1 library googleapis.drive.v2.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 buildUnnamed1615() { | 54 buildUnnamed681() { |
| 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 checkUnnamed1615(core.List<core.String> o) { | 61 checkUnnamed681(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 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0; | 67 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0; |
| 68 buildAboutAdditionalRoleInfoRoleSets() { | 68 buildAboutAdditionalRoleInfoRoleSets() { |
| 69 var o = new api.AboutAdditionalRoleInfoRoleSets(); | 69 var o = new api.AboutAdditionalRoleInfoRoleSets(); |
| 70 buildCounterAboutAdditionalRoleInfoRoleSets++; | 70 buildCounterAboutAdditionalRoleInfoRoleSets++; |
| 71 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { | 71 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { |
| 72 o.additionalRoles = buildUnnamed1615(); | 72 o.additionalRoles = buildUnnamed681(); |
| 73 o.primaryRole = "foo"; | 73 o.primaryRole = "foo"; |
| 74 } | 74 } |
| 75 buildCounterAboutAdditionalRoleInfoRoleSets--; | 75 buildCounterAboutAdditionalRoleInfoRoleSets--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { | 79 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { |
| 80 buildCounterAboutAdditionalRoleInfoRoleSets++; | 80 buildCounterAboutAdditionalRoleInfoRoleSets++; |
| 81 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { | 81 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { |
| 82 checkUnnamed1615(o.additionalRoles); | 82 checkUnnamed681(o.additionalRoles); |
| 83 unittest.expect(o.primaryRole, unittest.equals('foo')); | 83 unittest.expect(o.primaryRole, unittest.equals('foo')); |
| 84 } | 84 } |
| 85 buildCounterAboutAdditionalRoleInfoRoleSets--; | 85 buildCounterAboutAdditionalRoleInfoRoleSets--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed1616() { | 88 buildUnnamed682() { |
| 89 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); | 89 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); |
| 90 o.add(buildAboutAdditionalRoleInfoRoleSets()); | 90 o.add(buildAboutAdditionalRoleInfoRoleSets()); |
| 91 o.add(buildAboutAdditionalRoleInfoRoleSets()); | 91 o.add(buildAboutAdditionalRoleInfoRoleSets()); |
| 92 return o; | 92 return o; |
| 93 } | 93 } |
| 94 | 94 |
| 95 checkUnnamed1616(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { | 95 checkUnnamed682(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 checkAboutAdditionalRoleInfoRoleSets(o[0]); | 97 checkAboutAdditionalRoleInfoRoleSets(o[0]); |
| 98 checkAboutAdditionalRoleInfoRoleSets(o[1]); | 98 checkAboutAdditionalRoleInfoRoleSets(o[1]); |
| 99 } | 99 } |
| 100 | 100 |
| 101 core.int buildCounterAboutAdditionalRoleInfo = 0; | 101 core.int buildCounterAboutAdditionalRoleInfo = 0; |
| 102 buildAboutAdditionalRoleInfo() { | 102 buildAboutAdditionalRoleInfo() { |
| 103 var o = new api.AboutAdditionalRoleInfo(); | 103 var o = new api.AboutAdditionalRoleInfo(); |
| 104 buildCounterAboutAdditionalRoleInfo++; | 104 buildCounterAboutAdditionalRoleInfo++; |
| 105 if (buildCounterAboutAdditionalRoleInfo < 3) { | 105 if (buildCounterAboutAdditionalRoleInfo < 3) { |
| 106 o.roleSets = buildUnnamed1616(); | 106 o.roleSets = buildUnnamed682(); |
| 107 o.type = "foo"; | 107 o.type = "foo"; |
| 108 } | 108 } |
| 109 buildCounterAboutAdditionalRoleInfo--; | 109 buildCounterAboutAdditionalRoleInfo--; |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { | 113 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { |
| 114 buildCounterAboutAdditionalRoleInfo++; | 114 buildCounterAboutAdditionalRoleInfo++; |
| 115 if (buildCounterAboutAdditionalRoleInfo < 3) { | 115 if (buildCounterAboutAdditionalRoleInfo < 3) { |
| 116 checkUnnamed1616(o.roleSets); | 116 checkUnnamed682(o.roleSets); |
| 117 unittest.expect(o.type, unittest.equals('foo')); | 117 unittest.expect(o.type, unittest.equals('foo')); |
| 118 } | 118 } |
| 119 buildCounterAboutAdditionalRoleInfo--; | 119 buildCounterAboutAdditionalRoleInfo--; |
| 120 } | 120 } |
| 121 | 121 |
| 122 buildUnnamed1617() { | 122 buildUnnamed683() { |
| 123 var o = new core.List<api.AboutAdditionalRoleInfo>(); | 123 var o = new core.List<api.AboutAdditionalRoleInfo>(); |
| 124 o.add(buildAboutAdditionalRoleInfo()); | 124 o.add(buildAboutAdditionalRoleInfo()); |
| 125 o.add(buildAboutAdditionalRoleInfo()); | 125 o.add(buildAboutAdditionalRoleInfo()); |
| 126 return o; | 126 return o; |
| 127 } | 127 } |
| 128 | 128 |
| 129 checkUnnamed1617(core.List<api.AboutAdditionalRoleInfo> o) { | 129 checkUnnamed683(core.List<api.AboutAdditionalRoleInfo> o) { |
| 130 unittest.expect(o, unittest.hasLength(2)); | 130 unittest.expect(o, unittest.hasLength(2)); |
| 131 checkAboutAdditionalRoleInfo(o[0]); | 131 checkAboutAdditionalRoleInfo(o[0]); |
| 132 checkAboutAdditionalRoleInfo(o[1]); | 132 checkAboutAdditionalRoleInfo(o[1]); |
| 133 } | 133 } |
| 134 | 134 |
| 135 buildUnnamed1618() { | 135 buildUnnamed684() { |
| 136 var o = new core.List<core.String>(); | 136 var o = new core.List<core.String>(); |
| 137 o.add("foo"); | 137 o.add("foo"); |
| 138 o.add("foo"); | 138 o.add("foo"); |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkUnnamed1618(core.List<core.String> o) { | 142 checkUnnamed684(core.List<core.String> o) { |
| 143 unittest.expect(o, unittest.hasLength(2)); | 143 unittest.expect(o, unittest.hasLength(2)); |
| 144 unittest.expect(o[0], unittest.equals('foo')); | 144 unittest.expect(o[0], unittest.equals('foo')); |
| 145 unittest.expect(o[1], unittest.equals('foo')); | 145 unittest.expect(o[1], unittest.equals('foo')); |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterAboutExportFormats = 0; | 148 core.int buildCounterAboutExportFormats = 0; |
| 149 buildAboutExportFormats() { | 149 buildAboutExportFormats() { |
| 150 var o = new api.AboutExportFormats(); | 150 var o = new api.AboutExportFormats(); |
| 151 buildCounterAboutExportFormats++; | 151 buildCounterAboutExportFormats++; |
| 152 if (buildCounterAboutExportFormats < 3) { | 152 if (buildCounterAboutExportFormats < 3) { |
| 153 o.source = "foo"; | 153 o.source = "foo"; |
| 154 o.targets = buildUnnamed1618(); | 154 o.targets = buildUnnamed684(); |
| 155 } | 155 } |
| 156 buildCounterAboutExportFormats--; | 156 buildCounterAboutExportFormats--; |
| 157 return o; | 157 return o; |
| 158 } | 158 } |
| 159 | 159 |
| 160 checkAboutExportFormats(api.AboutExportFormats o) { | 160 checkAboutExportFormats(api.AboutExportFormats o) { |
| 161 buildCounterAboutExportFormats++; | 161 buildCounterAboutExportFormats++; |
| 162 if (buildCounterAboutExportFormats < 3) { | 162 if (buildCounterAboutExportFormats < 3) { |
| 163 unittest.expect(o.source, unittest.equals('foo')); | 163 unittest.expect(o.source, unittest.equals('foo')); |
| 164 checkUnnamed1618(o.targets); | 164 checkUnnamed684(o.targets); |
| 165 } | 165 } |
| 166 buildCounterAboutExportFormats--; | 166 buildCounterAboutExportFormats--; |
| 167 } | 167 } |
| 168 | 168 |
| 169 buildUnnamed1619() { | 169 buildUnnamed685() { |
| 170 var o = new core.List<api.AboutExportFormats>(); | 170 var o = new core.List<api.AboutExportFormats>(); |
| 171 o.add(buildAboutExportFormats()); | 171 o.add(buildAboutExportFormats()); |
| 172 o.add(buildAboutExportFormats()); | 172 o.add(buildAboutExportFormats()); |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkUnnamed1619(core.List<api.AboutExportFormats> o) { | 176 checkUnnamed685(core.List<api.AboutExportFormats> o) { |
| 177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
| 178 checkAboutExportFormats(o[0]); | 178 checkAboutExportFormats(o[0]); |
| 179 checkAboutExportFormats(o[1]); | 179 checkAboutExportFormats(o[1]); |
| 180 } | 180 } |
| 181 | 181 |
| 182 core.int buildCounterAboutFeatures = 0; | 182 core.int buildCounterAboutFeatures = 0; |
| 183 buildAboutFeatures() { | 183 buildAboutFeatures() { |
| 184 var o = new api.AboutFeatures(); | 184 var o = new api.AboutFeatures(); |
| 185 buildCounterAboutFeatures++; | 185 buildCounterAboutFeatures++; |
| 186 if (buildCounterAboutFeatures < 3) { | 186 if (buildCounterAboutFeatures < 3) { |
| 187 o.featureName = "foo"; | 187 o.featureName = "foo"; |
| 188 o.featureRate = 42.0; | 188 o.featureRate = 42.0; |
| 189 } | 189 } |
| 190 buildCounterAboutFeatures--; | 190 buildCounterAboutFeatures--; |
| 191 return o; | 191 return o; |
| 192 } | 192 } |
| 193 | 193 |
| 194 checkAboutFeatures(api.AboutFeatures o) { | 194 checkAboutFeatures(api.AboutFeatures o) { |
| 195 buildCounterAboutFeatures++; | 195 buildCounterAboutFeatures++; |
| 196 if (buildCounterAboutFeatures < 3) { | 196 if (buildCounterAboutFeatures < 3) { |
| 197 unittest.expect(o.featureName, unittest.equals('foo')); | 197 unittest.expect(o.featureName, unittest.equals('foo')); |
| 198 unittest.expect(o.featureRate, unittest.equals(42.0)); | 198 unittest.expect(o.featureRate, unittest.equals(42.0)); |
| 199 } | 199 } |
| 200 buildCounterAboutFeatures--; | 200 buildCounterAboutFeatures--; |
| 201 } | 201 } |
| 202 | 202 |
| 203 buildUnnamed1620() { | 203 buildUnnamed686() { |
| 204 var o = new core.List<api.AboutFeatures>(); | 204 var o = new core.List<api.AboutFeatures>(); |
| 205 o.add(buildAboutFeatures()); | 205 o.add(buildAboutFeatures()); |
| 206 o.add(buildAboutFeatures()); | 206 o.add(buildAboutFeatures()); |
| 207 return o; | 207 return o; |
| 208 } | 208 } |
| 209 | 209 |
| 210 checkUnnamed1620(core.List<api.AboutFeatures> o) { | 210 checkUnnamed686(core.List<api.AboutFeatures> o) { |
| 211 unittest.expect(o, unittest.hasLength(2)); | 211 unittest.expect(o, unittest.hasLength(2)); |
| 212 checkAboutFeatures(o[0]); | 212 checkAboutFeatures(o[0]); |
| 213 checkAboutFeatures(o[1]); | 213 checkAboutFeatures(o[1]); |
| 214 } | 214 } |
| 215 | 215 |
| 216 buildUnnamed1621() { | 216 buildUnnamed687() { |
| 217 var o = new core.List<core.String>(); | 217 var o = new core.List<core.String>(); |
| 218 o.add("foo"); | 218 o.add("foo"); |
| 219 o.add("foo"); | 219 o.add("foo"); |
| 220 return o; | 220 return o; |
| 221 } | 221 } |
| 222 | 222 |
| 223 checkUnnamed1621(core.List<core.String> o) { | 223 checkUnnamed687(core.List<core.String> o) { |
| 224 unittest.expect(o, unittest.hasLength(2)); | 224 unittest.expect(o, unittest.hasLength(2)); |
| 225 unittest.expect(o[0], unittest.equals('foo')); | 225 unittest.expect(o[0], unittest.equals('foo')); |
| 226 unittest.expect(o[1], unittest.equals('foo')); | 226 unittest.expect(o[1], unittest.equals('foo')); |
| 227 } | 227 } |
| 228 | 228 |
| 229 buildUnnamed1622() { | 229 buildUnnamed688() { |
| 230 var o = new core.List<core.String>(); | 230 var o = new core.List<core.String>(); |
| 231 o.add("foo"); | 231 o.add("foo"); |
| 232 o.add("foo"); | 232 o.add("foo"); |
| 233 return o; | 233 return o; |
| 234 } | 234 } |
| 235 | 235 |
| 236 checkUnnamed1622(core.List<core.String> o) { | 236 checkUnnamed688(core.List<core.String> o) { |
| 237 unittest.expect(o, unittest.hasLength(2)); | 237 unittest.expect(o, unittest.hasLength(2)); |
| 238 unittest.expect(o[0], unittest.equals('foo')); | 238 unittest.expect(o[0], unittest.equals('foo')); |
| 239 unittest.expect(o[1], unittest.equals('foo')); | 239 unittest.expect(o[1], unittest.equals('foo')); |
| 240 } | 240 } |
| 241 | 241 |
| 242 core.int buildCounterAboutImportFormats = 0; | 242 core.int buildCounterAboutImportFormats = 0; |
| 243 buildAboutImportFormats() { | 243 buildAboutImportFormats() { |
| 244 var o = new api.AboutImportFormats(); | 244 var o = new api.AboutImportFormats(); |
| 245 buildCounterAboutImportFormats++; | 245 buildCounterAboutImportFormats++; |
| 246 if (buildCounterAboutImportFormats < 3) { | 246 if (buildCounterAboutImportFormats < 3) { |
| 247 o.source = "foo"; | 247 o.source = "foo"; |
| 248 o.targets = buildUnnamed1622(); | 248 o.targets = buildUnnamed688(); |
| 249 } | 249 } |
| 250 buildCounterAboutImportFormats--; | 250 buildCounterAboutImportFormats--; |
| 251 return o; | 251 return o; |
| 252 } | 252 } |
| 253 | 253 |
| 254 checkAboutImportFormats(api.AboutImportFormats o) { | 254 checkAboutImportFormats(api.AboutImportFormats o) { |
| 255 buildCounterAboutImportFormats++; | 255 buildCounterAboutImportFormats++; |
| 256 if (buildCounterAboutImportFormats < 3) { | 256 if (buildCounterAboutImportFormats < 3) { |
| 257 unittest.expect(o.source, unittest.equals('foo')); | 257 unittest.expect(o.source, unittest.equals('foo')); |
| 258 checkUnnamed1622(o.targets); | 258 checkUnnamed688(o.targets); |
| 259 } | 259 } |
| 260 buildCounterAboutImportFormats--; | 260 buildCounterAboutImportFormats--; |
| 261 } | 261 } |
| 262 | 262 |
| 263 buildUnnamed1623() { | 263 buildUnnamed689() { |
| 264 var o = new core.List<api.AboutImportFormats>(); | 264 var o = new core.List<api.AboutImportFormats>(); |
| 265 o.add(buildAboutImportFormats()); | 265 o.add(buildAboutImportFormats()); |
| 266 o.add(buildAboutImportFormats()); | 266 o.add(buildAboutImportFormats()); |
| 267 return o; | 267 return o; |
| 268 } | 268 } |
| 269 | 269 |
| 270 checkUnnamed1623(core.List<api.AboutImportFormats> o) { | 270 checkUnnamed689(core.List<api.AboutImportFormats> o) { |
| 271 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
| 272 checkAboutImportFormats(o[0]); | 272 checkAboutImportFormats(o[0]); |
| 273 checkAboutImportFormats(o[1]); | 273 checkAboutImportFormats(o[1]); |
| 274 } | 274 } |
| 275 | 275 |
| 276 core.int buildCounterAboutMaxUploadSizes = 0; | 276 core.int buildCounterAboutMaxUploadSizes = 0; |
| 277 buildAboutMaxUploadSizes() { | 277 buildAboutMaxUploadSizes() { |
| 278 var o = new api.AboutMaxUploadSizes(); | 278 var o = new api.AboutMaxUploadSizes(); |
| 279 buildCounterAboutMaxUploadSizes++; | 279 buildCounterAboutMaxUploadSizes++; |
| 280 if (buildCounterAboutMaxUploadSizes < 3) { | 280 if (buildCounterAboutMaxUploadSizes < 3) { |
| 281 o.size = "foo"; | 281 o.size = "foo"; |
| 282 o.type = "foo"; | 282 o.type = "foo"; |
| 283 } | 283 } |
| 284 buildCounterAboutMaxUploadSizes--; | 284 buildCounterAboutMaxUploadSizes--; |
| 285 return o; | 285 return o; |
| 286 } | 286 } |
| 287 | 287 |
| 288 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { | 288 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { |
| 289 buildCounterAboutMaxUploadSizes++; | 289 buildCounterAboutMaxUploadSizes++; |
| 290 if (buildCounterAboutMaxUploadSizes < 3) { | 290 if (buildCounterAboutMaxUploadSizes < 3) { |
| 291 unittest.expect(o.size, unittest.equals('foo')); | 291 unittest.expect(o.size, unittest.equals('foo')); |
| 292 unittest.expect(o.type, unittest.equals('foo')); | 292 unittest.expect(o.type, unittest.equals('foo')); |
| 293 } | 293 } |
| 294 buildCounterAboutMaxUploadSizes--; | 294 buildCounterAboutMaxUploadSizes--; |
| 295 } | 295 } |
| 296 | 296 |
| 297 buildUnnamed1624() { | 297 buildUnnamed690() { |
| 298 var o = new core.List<api.AboutMaxUploadSizes>(); | 298 var o = new core.List<api.AboutMaxUploadSizes>(); |
| 299 o.add(buildAboutMaxUploadSizes()); | 299 o.add(buildAboutMaxUploadSizes()); |
| 300 o.add(buildAboutMaxUploadSizes()); | 300 o.add(buildAboutMaxUploadSizes()); |
| 301 return o; | 301 return o; |
| 302 } | 302 } |
| 303 | 303 |
| 304 checkUnnamed1624(core.List<api.AboutMaxUploadSizes> o) { | 304 checkUnnamed690(core.List<api.AboutMaxUploadSizes> o) { |
| 305 unittest.expect(o, unittest.hasLength(2)); | 305 unittest.expect(o, unittest.hasLength(2)); |
| 306 checkAboutMaxUploadSizes(o[0]); | 306 checkAboutMaxUploadSizes(o[0]); |
| 307 checkAboutMaxUploadSizes(o[1]); | 307 checkAboutMaxUploadSizes(o[1]); |
| 308 } | 308 } |
| 309 | 309 |
| 310 core.int buildCounterAboutQuotaBytesByService = 0; | 310 core.int buildCounterAboutQuotaBytesByService = 0; |
| 311 buildAboutQuotaBytesByService() { | 311 buildAboutQuotaBytesByService() { |
| 312 var o = new api.AboutQuotaBytesByService(); | 312 var o = new api.AboutQuotaBytesByService(); |
| 313 buildCounterAboutQuotaBytesByService++; | 313 buildCounterAboutQuotaBytesByService++; |
| 314 if (buildCounterAboutQuotaBytesByService < 3) { | 314 if (buildCounterAboutQuotaBytesByService < 3) { |
| 315 o.bytesUsed = "foo"; | 315 o.bytesUsed = "foo"; |
| 316 o.serviceName = "foo"; | 316 o.serviceName = "foo"; |
| 317 } | 317 } |
| 318 buildCounterAboutQuotaBytesByService--; | 318 buildCounterAboutQuotaBytesByService--; |
| 319 return o; | 319 return o; |
| 320 } | 320 } |
| 321 | 321 |
| 322 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { | 322 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { |
| 323 buildCounterAboutQuotaBytesByService++; | 323 buildCounterAboutQuotaBytesByService++; |
| 324 if (buildCounterAboutQuotaBytesByService < 3) { | 324 if (buildCounterAboutQuotaBytesByService < 3) { |
| 325 unittest.expect(o.bytesUsed, unittest.equals('foo')); | 325 unittest.expect(o.bytesUsed, unittest.equals('foo')); |
| 326 unittest.expect(o.serviceName, unittest.equals('foo')); | 326 unittest.expect(o.serviceName, unittest.equals('foo')); |
| 327 } | 327 } |
| 328 buildCounterAboutQuotaBytesByService--; | 328 buildCounterAboutQuotaBytesByService--; |
| 329 } | 329 } |
| 330 | 330 |
| 331 buildUnnamed1625() { | 331 buildUnnamed691() { |
| 332 var o = new core.List<api.AboutQuotaBytesByService>(); | 332 var o = new core.List<api.AboutQuotaBytesByService>(); |
| 333 o.add(buildAboutQuotaBytesByService()); | 333 o.add(buildAboutQuotaBytesByService()); |
| 334 o.add(buildAboutQuotaBytesByService()); | 334 o.add(buildAboutQuotaBytesByService()); |
| 335 return o; | 335 return o; |
| 336 } | 336 } |
| 337 | 337 |
| 338 checkUnnamed1625(core.List<api.AboutQuotaBytesByService> o) { | 338 checkUnnamed691(core.List<api.AboutQuotaBytesByService> o) { |
| 339 unittest.expect(o, unittest.hasLength(2)); | 339 unittest.expect(o, unittest.hasLength(2)); |
| 340 checkAboutQuotaBytesByService(o[0]); | 340 checkAboutQuotaBytesByService(o[0]); |
| 341 checkAboutQuotaBytesByService(o[1]); | 341 checkAboutQuotaBytesByService(o[1]); |
| 342 } | 342 } |
| 343 | 343 |
| 344 core.int buildCounterAbout = 0; | 344 core.int buildCounterAbout = 0; |
| 345 buildAbout() { | 345 buildAbout() { |
| 346 var o = new api.About(); | 346 var o = new api.About(); |
| 347 buildCounterAbout++; | 347 buildCounterAbout++; |
| 348 if (buildCounterAbout < 3) { | 348 if (buildCounterAbout < 3) { |
| 349 o.additionalRoleInfo = buildUnnamed1617(); | 349 o.additionalRoleInfo = buildUnnamed683(); |
| 350 o.domainSharingPolicy = "foo"; | 350 o.domainSharingPolicy = "foo"; |
| 351 o.etag = "foo"; | 351 o.etag = "foo"; |
| 352 o.exportFormats = buildUnnamed1619(); | 352 o.exportFormats = buildUnnamed685(); |
| 353 o.features = buildUnnamed1620(); | 353 o.features = buildUnnamed686(); |
| 354 o.folderColorPalette = buildUnnamed1621(); | 354 o.folderColorPalette = buildUnnamed687(); |
| 355 o.importFormats = buildUnnamed1623(); | 355 o.importFormats = buildUnnamed689(); |
| 356 o.isCurrentAppInstalled = true; | 356 o.isCurrentAppInstalled = true; |
| 357 o.kind = "foo"; | 357 o.kind = "foo"; |
| 358 o.languageCode = "foo"; | 358 o.languageCode = "foo"; |
| 359 o.largestChangeId = "foo"; | 359 o.largestChangeId = "foo"; |
| 360 o.maxUploadSizes = buildUnnamed1624(); | 360 o.maxUploadSizes = buildUnnamed690(); |
| 361 o.name = "foo"; | 361 o.name = "foo"; |
| 362 o.permissionId = "foo"; | 362 o.permissionId = "foo"; |
| 363 o.quotaBytesByService = buildUnnamed1625(); | 363 o.quotaBytesByService = buildUnnamed691(); |
| 364 o.quotaBytesTotal = "foo"; | 364 o.quotaBytesTotal = "foo"; |
| 365 o.quotaBytesUsed = "foo"; | 365 o.quotaBytesUsed = "foo"; |
| 366 o.quotaBytesUsedAggregate = "foo"; | 366 o.quotaBytesUsedAggregate = "foo"; |
| 367 o.quotaBytesUsedInTrash = "foo"; | 367 o.quotaBytesUsedInTrash = "foo"; |
| 368 o.quotaType = "foo"; | 368 o.quotaType = "foo"; |
| 369 o.remainingChangeIds = "foo"; | 369 o.remainingChangeIds = "foo"; |
| 370 o.rootFolderId = "foo"; | 370 o.rootFolderId = "foo"; |
| 371 o.selfLink = "foo"; | 371 o.selfLink = "foo"; |
| 372 o.user = buildUser(); | 372 o.user = buildUser(); |
| 373 } | 373 } |
| 374 buildCounterAbout--; | 374 buildCounterAbout--; |
| 375 return o; | 375 return o; |
| 376 } | 376 } |
| 377 | 377 |
| 378 checkAbout(api.About o) { | 378 checkAbout(api.About o) { |
| 379 buildCounterAbout++; | 379 buildCounterAbout++; |
| 380 if (buildCounterAbout < 3) { | 380 if (buildCounterAbout < 3) { |
| 381 checkUnnamed1617(o.additionalRoleInfo); | 381 checkUnnamed683(o.additionalRoleInfo); |
| 382 unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); | 382 unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); |
| 383 unittest.expect(o.etag, unittest.equals('foo')); | 383 unittest.expect(o.etag, unittest.equals('foo')); |
| 384 checkUnnamed1619(o.exportFormats); | 384 checkUnnamed685(o.exportFormats); |
| 385 checkUnnamed1620(o.features); | 385 checkUnnamed686(o.features); |
| 386 checkUnnamed1621(o.folderColorPalette); | 386 checkUnnamed687(o.folderColorPalette); |
| 387 checkUnnamed1623(o.importFormats); | 387 checkUnnamed689(o.importFormats); |
| 388 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); | 388 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); |
| 389 unittest.expect(o.kind, unittest.equals('foo')); | 389 unittest.expect(o.kind, unittest.equals('foo')); |
| 390 unittest.expect(o.languageCode, unittest.equals('foo')); | 390 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 391 unittest.expect(o.largestChangeId, unittest.equals('foo')); | 391 unittest.expect(o.largestChangeId, unittest.equals('foo')); |
| 392 checkUnnamed1624(o.maxUploadSizes); | 392 checkUnnamed690(o.maxUploadSizes); |
| 393 unittest.expect(o.name, unittest.equals('foo')); | 393 unittest.expect(o.name, unittest.equals('foo')); |
| 394 unittest.expect(o.permissionId, unittest.equals('foo')); | 394 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 395 checkUnnamed1625(o.quotaBytesByService); | 395 checkUnnamed691(o.quotaBytesByService); |
| 396 unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); | 396 unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); |
| 397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
| 398 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); | 398 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); |
| 399 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); | 399 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); |
| 400 unittest.expect(o.quotaType, unittest.equals('foo')); | 400 unittest.expect(o.quotaType, unittest.equals('foo')); |
| 401 unittest.expect(o.remainingChangeIds, unittest.equals('foo')); | 401 unittest.expect(o.remainingChangeIds, unittest.equals('foo')); |
| 402 unittest.expect(o.rootFolderId, unittest.equals('foo')); | 402 unittest.expect(o.rootFolderId, unittest.equals('foo')); |
| 403 unittest.expect(o.selfLink, unittest.equals('foo')); | 403 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 404 checkUser(o.user); | 404 checkUser(o.user); |
| 405 } | 405 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 422 checkAppIcons(api.AppIcons o) { | 422 checkAppIcons(api.AppIcons o) { |
| 423 buildCounterAppIcons++; | 423 buildCounterAppIcons++; |
| 424 if (buildCounterAppIcons < 3) { | 424 if (buildCounterAppIcons < 3) { |
| 425 unittest.expect(o.category, unittest.equals('foo')); | 425 unittest.expect(o.category, unittest.equals('foo')); |
| 426 unittest.expect(o.iconUrl, unittest.equals('foo')); | 426 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 427 unittest.expect(o.size, unittest.equals(42)); | 427 unittest.expect(o.size, unittest.equals(42)); |
| 428 } | 428 } |
| 429 buildCounterAppIcons--; | 429 buildCounterAppIcons--; |
| 430 } | 430 } |
| 431 | 431 |
| 432 buildUnnamed1626() { | 432 buildUnnamed692() { |
| 433 var o = new core.List<api.AppIcons>(); | 433 var o = new core.List<api.AppIcons>(); |
| 434 o.add(buildAppIcons()); | 434 o.add(buildAppIcons()); |
| 435 o.add(buildAppIcons()); | 435 o.add(buildAppIcons()); |
| 436 return o; | 436 return o; |
| 437 } | 437 } |
| 438 | 438 |
| 439 checkUnnamed1626(core.List<api.AppIcons> o) { | 439 checkUnnamed692(core.List<api.AppIcons> o) { |
| 440 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
| 441 checkAppIcons(o[0]); | 441 checkAppIcons(o[0]); |
| 442 checkAppIcons(o[1]); | 442 checkAppIcons(o[1]); |
| 443 } | 443 } |
| 444 | 444 |
| 445 buildUnnamed1627() { | 445 buildUnnamed693() { |
| 446 var o = new core.List<core.String>(); | 446 var o = new core.List<core.String>(); |
| 447 o.add("foo"); | 447 o.add("foo"); |
| 448 o.add("foo"); | 448 o.add("foo"); |
| 449 return o; | 449 return o; |
| 450 } | 450 } |
| 451 | 451 |
| 452 checkUnnamed1627(core.List<core.String> o) { | 452 checkUnnamed693(core.List<core.String> o) { |
| 453 unittest.expect(o, unittest.hasLength(2)); | 453 unittest.expect(o, unittest.hasLength(2)); |
| 454 unittest.expect(o[0], unittest.equals('foo')); | 454 unittest.expect(o[0], unittest.equals('foo')); |
| 455 unittest.expect(o[1], unittest.equals('foo')); | 455 unittest.expect(o[1], unittest.equals('foo')); |
| 456 } | 456 } |
| 457 | 457 |
| 458 buildUnnamed1628() { | 458 buildUnnamed694() { |
| 459 var o = new core.List<core.String>(); | 459 var o = new core.List<core.String>(); |
| 460 o.add("foo"); | 460 o.add("foo"); |
| 461 o.add("foo"); | 461 o.add("foo"); |
| 462 return o; | 462 return o; |
| 463 } | 463 } |
| 464 | 464 |
| 465 checkUnnamed1628(core.List<core.String> o) { | 465 checkUnnamed694(core.List<core.String> o) { |
| 466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
| 467 unittest.expect(o[0], unittest.equals('foo')); | 467 unittest.expect(o[0], unittest.equals('foo')); |
| 468 unittest.expect(o[1], unittest.equals('foo')); | 468 unittest.expect(o[1], unittest.equals('foo')); |
| 469 } | 469 } |
| 470 | 470 |
| 471 buildUnnamed1629() { | 471 buildUnnamed695() { |
| 472 var o = new core.List<core.String>(); | 472 var o = new core.List<core.String>(); |
| 473 o.add("foo"); | 473 o.add("foo"); |
| 474 o.add("foo"); | 474 o.add("foo"); |
| 475 return o; | 475 return o; |
| 476 } | 476 } |
| 477 | 477 |
| 478 checkUnnamed1629(core.List<core.String> o) { | 478 checkUnnamed695(core.List<core.String> o) { |
| 479 unittest.expect(o, unittest.hasLength(2)); | 479 unittest.expect(o, unittest.hasLength(2)); |
| 480 unittest.expect(o[0], unittest.equals('foo')); | 480 unittest.expect(o[0], unittest.equals('foo')); |
| 481 unittest.expect(o[1], unittest.equals('foo')); | 481 unittest.expect(o[1], unittest.equals('foo')); |
| 482 } | 482 } |
| 483 | 483 |
| 484 buildUnnamed1630() { | 484 buildUnnamed696() { |
| 485 var o = new core.List<core.String>(); | 485 var o = new core.List<core.String>(); |
| 486 o.add("foo"); | 486 o.add("foo"); |
| 487 o.add("foo"); | 487 o.add("foo"); |
| 488 return o; | 488 return o; |
| 489 } | 489 } |
| 490 | 490 |
| 491 checkUnnamed1630(core.List<core.String> o) { | 491 checkUnnamed696(core.List<core.String> o) { |
| 492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
| 493 unittest.expect(o[0], unittest.equals('foo')); | 493 unittest.expect(o[0], unittest.equals('foo')); |
| 494 unittest.expect(o[1], unittest.equals('foo')); | 494 unittest.expect(o[1], unittest.equals('foo')); |
| 495 } | 495 } |
| 496 | 496 |
| 497 core.int buildCounterApp = 0; | 497 core.int buildCounterApp = 0; |
| 498 buildApp() { | 498 buildApp() { |
| 499 var o = new api.App(); | 499 var o = new api.App(); |
| 500 buildCounterApp++; | 500 buildCounterApp++; |
| 501 if (buildCounterApp < 3) { | 501 if (buildCounterApp < 3) { |
| 502 o.authorized = true; | 502 o.authorized = true; |
| 503 o.createInFolderTemplate = "foo"; | 503 o.createInFolderTemplate = "foo"; |
| 504 o.createUrl = "foo"; | 504 o.createUrl = "foo"; |
| 505 o.hasDriveWideScope = true; | 505 o.hasDriveWideScope = true; |
| 506 o.icons = buildUnnamed1626(); | 506 o.icons = buildUnnamed692(); |
| 507 o.id = "foo"; | 507 o.id = "foo"; |
| 508 o.installed = true; | 508 o.installed = true; |
| 509 o.kind = "foo"; | 509 o.kind = "foo"; |
| 510 o.longDescription = "foo"; | 510 o.longDescription = "foo"; |
| 511 o.name = "foo"; | 511 o.name = "foo"; |
| 512 o.objectType = "foo"; | 512 o.objectType = "foo"; |
| 513 o.openUrlTemplate = "foo"; | 513 o.openUrlTemplate = "foo"; |
| 514 o.primaryFileExtensions = buildUnnamed1627(); | 514 o.primaryFileExtensions = buildUnnamed693(); |
| 515 o.primaryMimeTypes = buildUnnamed1628(); | 515 o.primaryMimeTypes = buildUnnamed694(); |
| 516 o.productId = "foo"; | 516 o.productId = "foo"; |
| 517 o.productUrl = "foo"; | 517 o.productUrl = "foo"; |
| 518 o.secondaryFileExtensions = buildUnnamed1629(); | 518 o.secondaryFileExtensions = buildUnnamed695(); |
| 519 o.secondaryMimeTypes = buildUnnamed1630(); | 519 o.secondaryMimeTypes = buildUnnamed696(); |
| 520 o.shortDescription = "foo"; | 520 o.shortDescription = "foo"; |
| 521 o.supportsCreate = true; | 521 o.supportsCreate = true; |
| 522 o.supportsImport = true; | 522 o.supportsImport = true; |
| 523 o.supportsMultiOpen = true; | 523 o.supportsMultiOpen = true; |
| 524 o.supportsOfflineCreate = true; | 524 o.supportsOfflineCreate = true; |
| 525 o.useByDefault = true; | 525 o.useByDefault = true; |
| 526 } | 526 } |
| 527 buildCounterApp--; | 527 buildCounterApp--; |
| 528 return o; | 528 return o; |
| 529 } | 529 } |
| 530 | 530 |
| 531 checkApp(api.App o) { | 531 checkApp(api.App o) { |
| 532 buildCounterApp++; | 532 buildCounterApp++; |
| 533 if (buildCounterApp < 3) { | 533 if (buildCounterApp < 3) { |
| 534 unittest.expect(o.authorized, unittest.isTrue); | 534 unittest.expect(o.authorized, unittest.isTrue); |
| 535 unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); | 535 unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); |
| 536 unittest.expect(o.createUrl, unittest.equals('foo')); | 536 unittest.expect(o.createUrl, unittest.equals('foo')); |
| 537 unittest.expect(o.hasDriveWideScope, unittest.isTrue); | 537 unittest.expect(o.hasDriveWideScope, unittest.isTrue); |
| 538 checkUnnamed1626(o.icons); | 538 checkUnnamed692(o.icons); |
| 539 unittest.expect(o.id, unittest.equals('foo')); | 539 unittest.expect(o.id, unittest.equals('foo')); |
| 540 unittest.expect(o.installed, unittest.isTrue); | 540 unittest.expect(o.installed, unittest.isTrue); |
| 541 unittest.expect(o.kind, unittest.equals('foo')); | 541 unittest.expect(o.kind, unittest.equals('foo')); |
| 542 unittest.expect(o.longDescription, unittest.equals('foo')); | 542 unittest.expect(o.longDescription, unittest.equals('foo')); |
| 543 unittest.expect(o.name, unittest.equals('foo')); | 543 unittest.expect(o.name, unittest.equals('foo')); |
| 544 unittest.expect(o.objectType, unittest.equals('foo')); | 544 unittest.expect(o.objectType, unittest.equals('foo')); |
| 545 unittest.expect(o.openUrlTemplate, unittest.equals('foo')); | 545 unittest.expect(o.openUrlTemplate, unittest.equals('foo')); |
| 546 checkUnnamed1627(o.primaryFileExtensions); | 546 checkUnnamed693(o.primaryFileExtensions); |
| 547 checkUnnamed1628(o.primaryMimeTypes); | 547 checkUnnamed694(o.primaryMimeTypes); |
| 548 unittest.expect(o.productId, unittest.equals('foo')); | 548 unittest.expect(o.productId, unittest.equals('foo')); |
| 549 unittest.expect(o.productUrl, unittest.equals('foo')); | 549 unittest.expect(o.productUrl, unittest.equals('foo')); |
| 550 checkUnnamed1629(o.secondaryFileExtensions); | 550 checkUnnamed695(o.secondaryFileExtensions); |
| 551 checkUnnamed1630(o.secondaryMimeTypes); | 551 checkUnnamed696(o.secondaryMimeTypes); |
| 552 unittest.expect(o.shortDescription, unittest.equals('foo')); | 552 unittest.expect(o.shortDescription, unittest.equals('foo')); |
| 553 unittest.expect(o.supportsCreate, unittest.isTrue); | 553 unittest.expect(o.supportsCreate, unittest.isTrue); |
| 554 unittest.expect(o.supportsImport, unittest.isTrue); | 554 unittest.expect(o.supportsImport, unittest.isTrue); |
| 555 unittest.expect(o.supportsMultiOpen, unittest.isTrue); | 555 unittest.expect(o.supportsMultiOpen, unittest.isTrue); |
| 556 unittest.expect(o.supportsOfflineCreate, unittest.isTrue); | 556 unittest.expect(o.supportsOfflineCreate, unittest.isTrue); |
| 557 unittest.expect(o.useByDefault, unittest.isTrue); | 557 unittest.expect(o.useByDefault, unittest.isTrue); |
| 558 } | 558 } |
| 559 buildCounterApp--; | 559 buildCounterApp--; |
| 560 } | 560 } |
| 561 | 561 |
| 562 buildUnnamed1631() { | 562 buildUnnamed697() { |
| 563 var o = new core.List<core.String>(); | 563 var o = new core.List<core.String>(); |
| 564 o.add("foo"); | 564 o.add("foo"); |
| 565 o.add("foo"); | 565 o.add("foo"); |
| 566 return o; | 566 return o; |
| 567 } | 567 } |
| 568 | 568 |
| 569 checkUnnamed1631(core.List<core.String> o) { | 569 checkUnnamed697(core.List<core.String> o) { |
| 570 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
| 571 unittest.expect(o[0], unittest.equals('foo')); | 571 unittest.expect(o[0], unittest.equals('foo')); |
| 572 unittest.expect(o[1], unittest.equals('foo')); | 572 unittest.expect(o[1], unittest.equals('foo')); |
| 573 } | 573 } |
| 574 | 574 |
| 575 buildUnnamed1632() { | 575 buildUnnamed698() { |
| 576 var o = new core.List<api.App>(); | 576 var o = new core.List<api.App>(); |
| 577 o.add(buildApp()); | 577 o.add(buildApp()); |
| 578 o.add(buildApp()); | 578 o.add(buildApp()); |
| 579 return o; | 579 return o; |
| 580 } | 580 } |
| 581 | 581 |
| 582 checkUnnamed1632(core.List<api.App> o) { | 582 checkUnnamed698(core.List<api.App> o) { |
| 583 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
| 584 checkApp(o[0]); | 584 checkApp(o[0]); |
| 585 checkApp(o[1]); | 585 checkApp(o[1]); |
| 586 } | 586 } |
| 587 | 587 |
| 588 core.int buildCounterAppList = 0; | 588 core.int buildCounterAppList = 0; |
| 589 buildAppList() { | 589 buildAppList() { |
| 590 var o = new api.AppList(); | 590 var o = new api.AppList(); |
| 591 buildCounterAppList++; | 591 buildCounterAppList++; |
| 592 if (buildCounterAppList < 3) { | 592 if (buildCounterAppList < 3) { |
| 593 o.defaultAppIds = buildUnnamed1631(); | 593 o.defaultAppIds = buildUnnamed697(); |
| 594 o.etag = "foo"; | 594 o.etag = "foo"; |
| 595 o.items = buildUnnamed1632(); | 595 o.items = buildUnnamed698(); |
| 596 o.kind = "foo"; | 596 o.kind = "foo"; |
| 597 o.selfLink = "foo"; | 597 o.selfLink = "foo"; |
| 598 } | 598 } |
| 599 buildCounterAppList--; | 599 buildCounterAppList--; |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkAppList(api.AppList o) { | 603 checkAppList(api.AppList o) { |
| 604 buildCounterAppList++; | 604 buildCounterAppList++; |
| 605 if (buildCounterAppList < 3) { | 605 if (buildCounterAppList < 3) { |
| 606 checkUnnamed1631(o.defaultAppIds); | 606 checkUnnamed697(o.defaultAppIds); |
| 607 unittest.expect(o.etag, unittest.equals('foo')); | 607 unittest.expect(o.etag, unittest.equals('foo')); |
| 608 checkUnnamed1632(o.items); | 608 checkUnnamed698(o.items); |
| 609 unittest.expect(o.kind, unittest.equals('foo')); | 609 unittest.expect(o.kind, unittest.equals('foo')); |
| 610 unittest.expect(o.selfLink, unittest.equals('foo')); | 610 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 611 } | 611 } |
| 612 buildCounterAppList--; | 612 buildCounterAppList--; |
| 613 } | 613 } |
| 614 | 614 |
| 615 core.int buildCounterChange = 0; | 615 core.int buildCounterChange = 0; |
| 616 buildChange() { | 616 buildChange() { |
| 617 var o = new api.Change(); | 617 var o = new api.Change(); |
| 618 buildCounterChange++; | 618 buildCounterChange++; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 636 checkFile(o.file); | 636 checkFile(o.file); |
| 637 unittest.expect(o.fileId, unittest.equals('foo')); | 637 unittest.expect(o.fileId, unittest.equals('foo')); |
| 638 unittest.expect(o.id, unittest.equals('foo')); | 638 unittest.expect(o.id, unittest.equals('foo')); |
| 639 unittest.expect(o.kind, unittest.equals('foo')); | 639 unittest.expect(o.kind, unittest.equals('foo')); |
| 640 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 640 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 641 unittest.expect(o.selfLink, unittest.equals('foo')); | 641 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 642 } | 642 } |
| 643 buildCounterChange--; | 643 buildCounterChange--; |
| 644 } | 644 } |
| 645 | 645 |
| 646 buildUnnamed1633() { | 646 buildUnnamed699() { |
| 647 var o = new core.List<api.Change>(); | 647 var o = new core.List<api.Change>(); |
| 648 o.add(buildChange()); | 648 o.add(buildChange()); |
| 649 o.add(buildChange()); | 649 o.add(buildChange()); |
| 650 return o; | 650 return o; |
| 651 } | 651 } |
| 652 | 652 |
| 653 checkUnnamed1633(core.List<api.Change> o) { | 653 checkUnnamed699(core.List<api.Change> o) { |
| 654 unittest.expect(o, unittest.hasLength(2)); | 654 unittest.expect(o, unittest.hasLength(2)); |
| 655 checkChange(o[0]); | 655 checkChange(o[0]); |
| 656 checkChange(o[1]); | 656 checkChange(o[1]); |
| 657 } | 657 } |
| 658 | 658 |
| 659 core.int buildCounterChangeList = 0; | 659 core.int buildCounterChangeList = 0; |
| 660 buildChangeList() { | 660 buildChangeList() { |
| 661 var o = new api.ChangeList(); | 661 var o = new api.ChangeList(); |
| 662 buildCounterChangeList++; | 662 buildCounterChangeList++; |
| 663 if (buildCounterChangeList < 3) { | 663 if (buildCounterChangeList < 3) { |
| 664 o.etag = "foo"; | 664 o.etag = "foo"; |
| 665 o.items = buildUnnamed1633(); | 665 o.items = buildUnnamed699(); |
| 666 o.kind = "foo"; | 666 o.kind = "foo"; |
| 667 o.largestChangeId = "foo"; | 667 o.largestChangeId = "foo"; |
| 668 o.nextLink = "foo"; | 668 o.nextLink = "foo"; |
| 669 o.nextPageToken = "foo"; | 669 o.nextPageToken = "foo"; |
| 670 o.selfLink = "foo"; | 670 o.selfLink = "foo"; |
| 671 } | 671 } |
| 672 buildCounterChangeList--; | 672 buildCounterChangeList--; |
| 673 return o; | 673 return o; |
| 674 } | 674 } |
| 675 | 675 |
| 676 checkChangeList(api.ChangeList o) { | 676 checkChangeList(api.ChangeList o) { |
| 677 buildCounterChangeList++; | 677 buildCounterChangeList++; |
| 678 if (buildCounterChangeList < 3) { | 678 if (buildCounterChangeList < 3) { |
| 679 unittest.expect(o.etag, unittest.equals('foo')); | 679 unittest.expect(o.etag, unittest.equals('foo')); |
| 680 checkUnnamed1633(o.items); | 680 checkUnnamed699(o.items); |
| 681 unittest.expect(o.kind, unittest.equals('foo')); | 681 unittest.expect(o.kind, unittest.equals('foo')); |
| 682 unittest.expect(o.largestChangeId, unittest.equals('foo')); | 682 unittest.expect(o.largestChangeId, unittest.equals('foo')); |
| 683 unittest.expect(o.nextLink, unittest.equals('foo')); | 683 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 684 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 684 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 685 unittest.expect(o.selfLink, unittest.equals('foo')); | 685 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 686 } | 686 } |
| 687 buildCounterChangeList--; | 687 buildCounterChangeList--; |
| 688 } | 688 } |
| 689 | 689 |
| 690 buildUnnamed1634() { | 690 buildUnnamed700() { |
| 691 var o = new core.Map<core.String, core.String>(); | 691 var o = new core.Map<core.String, core.String>(); |
| 692 o["x"] = "foo"; | 692 o["x"] = "foo"; |
| 693 o["y"] = "foo"; | 693 o["y"] = "foo"; |
| 694 return o; | 694 return o; |
| 695 } | 695 } |
| 696 | 696 |
| 697 checkUnnamed1634(core.Map<core.String, core.String> o) { | 697 checkUnnamed700(core.Map<core.String, core.String> o) { |
| 698 unittest.expect(o, unittest.hasLength(2)); | 698 unittest.expect(o, unittest.hasLength(2)); |
| 699 unittest.expect(o["x"], unittest.equals('foo')); | 699 unittest.expect(o["x"], unittest.equals('foo')); |
| 700 unittest.expect(o["y"], unittest.equals('foo')); | 700 unittest.expect(o["y"], unittest.equals('foo')); |
| 701 } | 701 } |
| 702 | 702 |
| 703 core.int buildCounterChannel = 0; | 703 core.int buildCounterChannel = 0; |
| 704 buildChannel() { | 704 buildChannel() { |
| 705 var o = new api.Channel(); | 705 var o = new api.Channel(); |
| 706 buildCounterChannel++; | 706 buildCounterChannel++; |
| 707 if (buildCounterChannel < 3) { | 707 if (buildCounterChannel < 3) { |
| 708 o.address = "foo"; | 708 o.address = "foo"; |
| 709 o.expiration = "foo"; | 709 o.expiration = "foo"; |
| 710 o.id = "foo"; | 710 o.id = "foo"; |
| 711 o.kind = "foo"; | 711 o.kind = "foo"; |
| 712 o.params = buildUnnamed1634(); | 712 o.params = buildUnnamed700(); |
| 713 o.payload = true; | 713 o.payload = true; |
| 714 o.resourceId = "foo"; | 714 o.resourceId = "foo"; |
| 715 o.resourceUri = "foo"; | 715 o.resourceUri = "foo"; |
| 716 o.token = "foo"; | 716 o.token = "foo"; |
| 717 o.type = "foo"; | 717 o.type = "foo"; |
| 718 } | 718 } |
| 719 buildCounterChannel--; | 719 buildCounterChannel--; |
| 720 return o; | 720 return o; |
| 721 } | 721 } |
| 722 | 722 |
| 723 checkChannel(api.Channel o) { | 723 checkChannel(api.Channel o) { |
| 724 buildCounterChannel++; | 724 buildCounterChannel++; |
| 725 if (buildCounterChannel < 3) { | 725 if (buildCounterChannel < 3) { |
| 726 unittest.expect(o.address, unittest.equals('foo')); | 726 unittest.expect(o.address, unittest.equals('foo')); |
| 727 unittest.expect(o.expiration, unittest.equals('foo')); | 727 unittest.expect(o.expiration, unittest.equals('foo')); |
| 728 unittest.expect(o.id, unittest.equals('foo')); | 728 unittest.expect(o.id, unittest.equals('foo')); |
| 729 unittest.expect(o.kind, unittest.equals('foo')); | 729 unittest.expect(o.kind, unittest.equals('foo')); |
| 730 checkUnnamed1634(o.params); | 730 checkUnnamed700(o.params); |
| 731 unittest.expect(o.payload, unittest.isTrue); | 731 unittest.expect(o.payload, unittest.isTrue); |
| 732 unittest.expect(o.resourceId, unittest.equals('foo')); | 732 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 733 unittest.expect(o.resourceUri, unittest.equals('foo')); | 733 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 734 unittest.expect(o.token, unittest.equals('foo')); | 734 unittest.expect(o.token, unittest.equals('foo')); |
| 735 unittest.expect(o.type, unittest.equals('foo')); | 735 unittest.expect(o.type, unittest.equals('foo')); |
| 736 } | 736 } |
| 737 buildCounterChannel--; | 737 buildCounterChannel--; |
| 738 } | 738 } |
| 739 | 739 |
| 740 buildUnnamed1635() { | 740 buildUnnamed701() { |
| 741 var o = new core.List<api.ChildReference>(); | 741 var o = new core.List<api.ChildReference>(); |
| 742 o.add(buildChildReference()); | 742 o.add(buildChildReference()); |
| 743 o.add(buildChildReference()); | 743 o.add(buildChildReference()); |
| 744 return o; | 744 return o; |
| 745 } | 745 } |
| 746 | 746 |
| 747 checkUnnamed1635(core.List<api.ChildReference> o) { | 747 checkUnnamed701(core.List<api.ChildReference> o) { |
| 748 unittest.expect(o, unittest.hasLength(2)); | 748 unittest.expect(o, unittest.hasLength(2)); |
| 749 checkChildReference(o[0]); | 749 checkChildReference(o[0]); |
| 750 checkChildReference(o[1]); | 750 checkChildReference(o[1]); |
| 751 } | 751 } |
| 752 | 752 |
| 753 core.int buildCounterChildList = 0; | 753 core.int buildCounterChildList = 0; |
| 754 buildChildList() { | 754 buildChildList() { |
| 755 var o = new api.ChildList(); | 755 var o = new api.ChildList(); |
| 756 buildCounterChildList++; | 756 buildCounterChildList++; |
| 757 if (buildCounterChildList < 3) { | 757 if (buildCounterChildList < 3) { |
| 758 o.etag = "foo"; | 758 o.etag = "foo"; |
| 759 o.items = buildUnnamed1635(); | 759 o.items = buildUnnamed701(); |
| 760 o.kind = "foo"; | 760 o.kind = "foo"; |
| 761 o.nextLink = "foo"; | 761 o.nextLink = "foo"; |
| 762 o.nextPageToken = "foo"; | 762 o.nextPageToken = "foo"; |
| 763 o.selfLink = "foo"; | 763 o.selfLink = "foo"; |
| 764 } | 764 } |
| 765 buildCounterChildList--; | 765 buildCounterChildList--; |
| 766 return o; | 766 return o; |
| 767 } | 767 } |
| 768 | 768 |
| 769 checkChildList(api.ChildList o) { | 769 checkChildList(api.ChildList o) { |
| 770 buildCounterChildList++; | 770 buildCounterChildList++; |
| 771 if (buildCounterChildList < 3) { | 771 if (buildCounterChildList < 3) { |
| 772 unittest.expect(o.etag, unittest.equals('foo')); | 772 unittest.expect(o.etag, unittest.equals('foo')); |
| 773 checkUnnamed1635(o.items); | 773 checkUnnamed701(o.items); |
| 774 unittest.expect(o.kind, unittest.equals('foo')); | 774 unittest.expect(o.kind, unittest.equals('foo')); |
| 775 unittest.expect(o.nextLink, unittest.equals('foo')); | 775 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 776 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 776 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 777 unittest.expect(o.selfLink, unittest.equals('foo')); | 777 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 778 } | 778 } |
| 779 buildCounterChildList--; | 779 buildCounterChildList--; |
| 780 } | 780 } |
| 781 | 781 |
| 782 core.int buildCounterChildReference = 0; | 782 core.int buildCounterChildReference = 0; |
| 783 buildChildReference() { | 783 buildChildReference() { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 | 818 |
| 819 checkCommentContext(api.CommentContext o) { | 819 checkCommentContext(api.CommentContext o) { |
| 820 buildCounterCommentContext++; | 820 buildCounterCommentContext++; |
| 821 if (buildCounterCommentContext < 3) { | 821 if (buildCounterCommentContext < 3) { |
| 822 unittest.expect(o.type, unittest.equals('foo')); | 822 unittest.expect(o.type, unittest.equals('foo')); |
| 823 unittest.expect(o.value, unittest.equals('foo')); | 823 unittest.expect(o.value, unittest.equals('foo')); |
| 824 } | 824 } |
| 825 buildCounterCommentContext--; | 825 buildCounterCommentContext--; |
| 826 } | 826 } |
| 827 | 827 |
| 828 buildUnnamed1636() { | 828 buildUnnamed702() { |
| 829 var o = new core.List<api.CommentReply>(); | 829 var o = new core.List<api.CommentReply>(); |
| 830 o.add(buildCommentReply()); | 830 o.add(buildCommentReply()); |
| 831 o.add(buildCommentReply()); | 831 o.add(buildCommentReply()); |
| 832 return o; | 832 return o; |
| 833 } | 833 } |
| 834 | 834 |
| 835 checkUnnamed1636(core.List<api.CommentReply> o) { | 835 checkUnnamed702(core.List<api.CommentReply> o) { |
| 836 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
| 837 checkCommentReply(o[0]); | 837 checkCommentReply(o[0]); |
| 838 checkCommentReply(o[1]); | 838 checkCommentReply(o[1]); |
| 839 } | 839 } |
| 840 | 840 |
| 841 core.int buildCounterComment = 0; | 841 core.int buildCounterComment = 0; |
| 842 buildComment() { | 842 buildComment() { |
| 843 var o = new api.Comment(); | 843 var o = new api.Comment(); |
| 844 buildCounterComment++; | 844 buildCounterComment++; |
| 845 if (buildCounterComment < 3) { | 845 if (buildCounterComment < 3) { |
| 846 o.anchor = "foo"; | 846 o.anchor = "foo"; |
| 847 o.author = buildUser(); | 847 o.author = buildUser(); |
| 848 o.commentId = "foo"; | 848 o.commentId = "foo"; |
| 849 o.content = "foo"; | 849 o.content = "foo"; |
| 850 o.context = buildCommentContext(); | 850 o.context = buildCommentContext(); |
| 851 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); | 851 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 852 o.deleted = true; | 852 o.deleted = true; |
| 853 o.fileId = "foo"; | 853 o.fileId = "foo"; |
| 854 o.fileTitle = "foo"; | 854 o.fileTitle = "foo"; |
| 855 o.htmlContent = "foo"; | 855 o.htmlContent = "foo"; |
| 856 o.kind = "foo"; | 856 o.kind = "foo"; |
| 857 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 857 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 858 o.replies = buildUnnamed1636(); | 858 o.replies = buildUnnamed702(); |
| 859 o.selfLink = "foo"; | 859 o.selfLink = "foo"; |
| 860 o.status = "foo"; | 860 o.status = "foo"; |
| 861 } | 861 } |
| 862 buildCounterComment--; | 862 buildCounterComment--; |
| 863 return o; | 863 return o; |
| 864 } | 864 } |
| 865 | 865 |
| 866 checkComment(api.Comment o) { | 866 checkComment(api.Comment o) { |
| 867 buildCounterComment++; | 867 buildCounterComment++; |
| 868 if (buildCounterComment < 3) { | 868 if (buildCounterComment < 3) { |
| 869 unittest.expect(o.anchor, unittest.equals('foo')); | 869 unittest.expect(o.anchor, unittest.equals('foo')); |
| 870 checkUser(o.author); | 870 checkUser(o.author); |
| 871 unittest.expect(o.commentId, unittest.equals('foo')); | 871 unittest.expect(o.commentId, unittest.equals('foo')); |
| 872 unittest.expect(o.content, unittest.equals('foo')); | 872 unittest.expect(o.content, unittest.equals('foo')); |
| 873 checkCommentContext(o.context); | 873 checkCommentContext(o.context); |
| 874 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 874 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 875 unittest.expect(o.deleted, unittest.isTrue); | 875 unittest.expect(o.deleted, unittest.isTrue); |
| 876 unittest.expect(o.fileId, unittest.equals('foo')); | 876 unittest.expect(o.fileId, unittest.equals('foo')); |
| 877 unittest.expect(o.fileTitle, unittest.equals('foo')); | 877 unittest.expect(o.fileTitle, unittest.equals('foo')); |
| 878 unittest.expect(o.htmlContent, unittest.equals('foo')); | 878 unittest.expect(o.htmlContent, unittest.equals('foo')); |
| 879 unittest.expect(o.kind, unittest.equals('foo')); | 879 unittest.expect(o.kind, unittest.equals('foo')); |
| 880 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 880 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 881 checkUnnamed1636(o.replies); | 881 checkUnnamed702(o.replies); |
| 882 unittest.expect(o.selfLink, unittest.equals('foo')); | 882 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 883 unittest.expect(o.status, unittest.equals('foo')); | 883 unittest.expect(o.status, unittest.equals('foo')); |
| 884 } | 884 } |
| 885 buildCounterComment--; | 885 buildCounterComment--; |
| 886 } | 886 } |
| 887 | 887 |
| 888 buildUnnamed1637() { | 888 buildUnnamed703() { |
| 889 var o = new core.List<api.Comment>(); | 889 var o = new core.List<api.Comment>(); |
| 890 o.add(buildComment()); | 890 o.add(buildComment()); |
| 891 o.add(buildComment()); | 891 o.add(buildComment()); |
| 892 return o; | 892 return o; |
| 893 } | 893 } |
| 894 | 894 |
| 895 checkUnnamed1637(core.List<api.Comment> o) { | 895 checkUnnamed703(core.List<api.Comment> o) { |
| 896 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
| 897 checkComment(o[0]); | 897 checkComment(o[0]); |
| 898 checkComment(o[1]); | 898 checkComment(o[1]); |
| 899 } | 899 } |
| 900 | 900 |
| 901 core.int buildCounterCommentList = 0; | 901 core.int buildCounterCommentList = 0; |
| 902 buildCommentList() { | 902 buildCommentList() { |
| 903 var o = new api.CommentList(); | 903 var o = new api.CommentList(); |
| 904 buildCounterCommentList++; | 904 buildCounterCommentList++; |
| 905 if (buildCounterCommentList < 3) { | 905 if (buildCounterCommentList < 3) { |
| 906 o.items = buildUnnamed1637(); | 906 o.items = buildUnnamed703(); |
| 907 o.kind = "foo"; | 907 o.kind = "foo"; |
| 908 o.nextLink = "foo"; | 908 o.nextLink = "foo"; |
| 909 o.nextPageToken = "foo"; | 909 o.nextPageToken = "foo"; |
| 910 o.selfLink = "foo"; | 910 o.selfLink = "foo"; |
| 911 } | 911 } |
| 912 buildCounterCommentList--; | 912 buildCounterCommentList--; |
| 913 return o; | 913 return o; |
| 914 } | 914 } |
| 915 | 915 |
| 916 checkCommentList(api.CommentList o) { | 916 checkCommentList(api.CommentList o) { |
| 917 buildCounterCommentList++; | 917 buildCounterCommentList++; |
| 918 if (buildCounterCommentList < 3) { | 918 if (buildCounterCommentList < 3) { |
| 919 checkUnnamed1637(o.items); | 919 checkUnnamed703(o.items); |
| 920 unittest.expect(o.kind, unittest.equals('foo')); | 920 unittest.expect(o.kind, unittest.equals('foo')); |
| 921 unittest.expect(o.nextLink, unittest.equals('foo')); | 921 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 922 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 922 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 923 unittest.expect(o.selfLink, unittest.equals('foo')); | 923 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 924 } | 924 } |
| 925 buildCounterCommentList--; | 925 buildCounterCommentList--; |
| 926 } | 926 } |
| 927 | 927 |
| 928 core.int buildCounterCommentReply = 0; | 928 core.int buildCounterCommentReply = 0; |
| 929 buildCommentReply() { | 929 buildCommentReply() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 953 unittest.expect(o.deleted, unittest.isTrue); | 953 unittest.expect(o.deleted, unittest.isTrue); |
| 954 unittest.expect(o.htmlContent, unittest.equals('foo')); | 954 unittest.expect(o.htmlContent, unittest.equals('foo')); |
| 955 unittest.expect(o.kind, unittest.equals('foo')); | 955 unittest.expect(o.kind, unittest.equals('foo')); |
| 956 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 956 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 957 unittest.expect(o.replyId, unittest.equals('foo')); | 957 unittest.expect(o.replyId, unittest.equals('foo')); |
| 958 unittest.expect(o.verb, unittest.equals('foo')); | 958 unittest.expect(o.verb, unittest.equals('foo')); |
| 959 } | 959 } |
| 960 buildCounterCommentReply--; | 960 buildCounterCommentReply--; |
| 961 } | 961 } |
| 962 | 962 |
| 963 buildUnnamed1638() { | 963 buildUnnamed704() { |
| 964 var o = new core.List<api.CommentReply>(); | 964 var o = new core.List<api.CommentReply>(); |
| 965 o.add(buildCommentReply()); | 965 o.add(buildCommentReply()); |
| 966 o.add(buildCommentReply()); | 966 o.add(buildCommentReply()); |
| 967 return o; | 967 return o; |
| 968 } | 968 } |
| 969 | 969 |
| 970 checkUnnamed1638(core.List<api.CommentReply> o) { | 970 checkUnnamed704(core.List<api.CommentReply> o) { |
| 971 unittest.expect(o, unittest.hasLength(2)); | 971 unittest.expect(o, unittest.hasLength(2)); |
| 972 checkCommentReply(o[0]); | 972 checkCommentReply(o[0]); |
| 973 checkCommentReply(o[1]); | 973 checkCommentReply(o[1]); |
| 974 } | 974 } |
| 975 | 975 |
| 976 core.int buildCounterCommentReplyList = 0; | 976 core.int buildCounterCommentReplyList = 0; |
| 977 buildCommentReplyList() { | 977 buildCommentReplyList() { |
| 978 var o = new api.CommentReplyList(); | 978 var o = new api.CommentReplyList(); |
| 979 buildCounterCommentReplyList++; | 979 buildCounterCommentReplyList++; |
| 980 if (buildCounterCommentReplyList < 3) { | 980 if (buildCounterCommentReplyList < 3) { |
| 981 o.items = buildUnnamed1638(); | 981 o.items = buildUnnamed704(); |
| 982 o.kind = "foo"; | 982 o.kind = "foo"; |
| 983 o.nextLink = "foo"; | 983 o.nextLink = "foo"; |
| 984 o.nextPageToken = "foo"; | 984 o.nextPageToken = "foo"; |
| 985 o.selfLink = "foo"; | 985 o.selfLink = "foo"; |
| 986 } | 986 } |
| 987 buildCounterCommentReplyList--; | 987 buildCounterCommentReplyList--; |
| 988 return o; | 988 return o; |
| 989 } | 989 } |
| 990 | 990 |
| 991 checkCommentReplyList(api.CommentReplyList o) { | 991 checkCommentReplyList(api.CommentReplyList o) { |
| 992 buildCounterCommentReplyList++; | 992 buildCounterCommentReplyList++; |
| 993 if (buildCounterCommentReplyList < 3) { | 993 if (buildCounterCommentReplyList < 3) { |
| 994 checkUnnamed1638(o.items); | 994 checkUnnamed704(o.items); |
| 995 unittest.expect(o.kind, unittest.equals('foo')); | 995 unittest.expect(o.kind, unittest.equals('foo')); |
| 996 unittest.expect(o.nextLink, unittest.equals('foo')); | 996 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 997 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 997 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 998 unittest.expect(o.selfLink, unittest.equals('foo')); | 998 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 999 } | 999 } |
| 1000 buildCounterCommentReplyList--; | 1000 buildCounterCommentReplyList--; |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 buildUnnamed1639() { | 1003 buildUnnamed705() { |
| 1004 var o = new core.Map<core.String, core.String>(); | 1004 var o = new core.Map<core.String, core.String>(); |
| 1005 o["x"] = "foo"; | 1005 o["x"] = "foo"; |
| 1006 o["y"] = "foo"; | 1006 o["y"] = "foo"; |
| 1007 return o; | 1007 return o; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 checkUnnamed1639(core.Map<core.String, core.String> o) { | 1010 checkUnnamed705(core.Map<core.String, core.String> o) { |
| 1011 unittest.expect(o, unittest.hasLength(2)); | 1011 unittest.expect(o, unittest.hasLength(2)); |
| 1012 unittest.expect(o["x"], unittest.equals('foo')); | 1012 unittest.expect(o["x"], unittest.equals('foo')); |
| 1013 unittest.expect(o["y"], unittest.equals('foo')); | 1013 unittest.expect(o["y"], unittest.equals('foo')); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 core.int buildCounterFileImageMediaMetadataLocation = 0; | 1016 core.int buildCounterFileImageMediaMetadataLocation = 0; |
| 1017 buildFileImageMediaMetadataLocation() { | 1017 buildFileImageMediaMetadataLocation() { |
| 1018 var o = new api.FileImageMediaMetadataLocation(); | 1018 var o = new api.FileImageMediaMetadataLocation(); |
| 1019 buildCounterFileImageMediaMetadataLocation++; | 1019 buildCounterFileImageMediaMetadataLocation++; |
| 1020 if (buildCounterFileImageMediaMetadataLocation < 3) { | 1020 if (buildCounterFileImageMediaMetadataLocation < 3) { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 if (buildCounterFileLabels < 3) { | 1134 if (buildCounterFileLabels < 3) { |
| 1135 unittest.expect(o.hidden, unittest.isTrue); | 1135 unittest.expect(o.hidden, unittest.isTrue); |
| 1136 unittest.expect(o.restricted, unittest.isTrue); | 1136 unittest.expect(o.restricted, unittest.isTrue); |
| 1137 unittest.expect(o.starred, unittest.isTrue); | 1137 unittest.expect(o.starred, unittest.isTrue); |
| 1138 unittest.expect(o.trashed, unittest.isTrue); | 1138 unittest.expect(o.trashed, unittest.isTrue); |
| 1139 unittest.expect(o.viewed, unittest.isTrue); | 1139 unittest.expect(o.viewed, unittest.isTrue); |
| 1140 } | 1140 } |
| 1141 buildCounterFileLabels--; | 1141 buildCounterFileLabels--; |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 buildUnnamed1640() { | 1144 buildUnnamed706() { |
| 1145 var o = new core.Map<core.String, core.String>(); | 1145 var o = new core.Map<core.String, core.String>(); |
| 1146 o["x"] = "foo"; | 1146 o["x"] = "foo"; |
| 1147 o["y"] = "foo"; | 1147 o["y"] = "foo"; |
| 1148 return o; | 1148 return o; |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 checkUnnamed1640(core.Map<core.String, core.String> o) { | 1151 checkUnnamed706(core.Map<core.String, core.String> o) { |
| 1152 unittest.expect(o, unittest.hasLength(2)); | 1152 unittest.expect(o, unittest.hasLength(2)); |
| 1153 unittest.expect(o["x"], unittest.equals('foo')); | 1153 unittest.expect(o["x"], unittest.equals('foo')); |
| 1154 unittest.expect(o["y"], unittest.equals('foo')); | 1154 unittest.expect(o["y"], unittest.equals('foo')); |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 buildUnnamed1641() { | 1157 buildUnnamed707() { |
| 1158 var o = new core.List<core.String>(); | 1158 var o = new core.List<core.String>(); |
| 1159 o.add("foo"); | 1159 o.add("foo"); |
| 1160 o.add("foo"); | 1160 o.add("foo"); |
| 1161 return o; | 1161 return o; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 checkUnnamed1641(core.List<core.String> o) { | 1164 checkUnnamed707(core.List<core.String> o) { |
| 1165 unittest.expect(o, unittest.hasLength(2)); | 1165 unittest.expect(o, unittest.hasLength(2)); |
| 1166 unittest.expect(o[0], unittest.equals('foo')); | 1166 unittest.expect(o[0], unittest.equals('foo')); |
| 1167 unittest.expect(o[1], unittest.equals('foo')); | 1167 unittest.expect(o[1], unittest.equals('foo')); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 buildUnnamed1642() { | 1170 buildUnnamed708() { |
| 1171 var o = new core.List<api.User>(); | 1171 var o = new core.List<api.User>(); |
| 1172 o.add(buildUser()); | 1172 o.add(buildUser()); |
| 1173 o.add(buildUser()); | 1173 o.add(buildUser()); |
| 1174 return o; | 1174 return o; |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 checkUnnamed1642(core.List<api.User> o) { | 1177 checkUnnamed708(core.List<api.User> o) { |
| 1178 unittest.expect(o, unittest.hasLength(2)); | 1178 unittest.expect(o, unittest.hasLength(2)); |
| 1179 checkUser(o[0]); | 1179 checkUser(o[0]); |
| 1180 checkUser(o[1]); | 1180 checkUser(o[1]); |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 buildUnnamed1643() { | 1183 buildUnnamed709() { |
| 1184 var o = new core.List<api.ParentReference>(); | 1184 var o = new core.List<api.ParentReference>(); |
| 1185 o.add(buildParentReference()); | 1185 o.add(buildParentReference()); |
| 1186 o.add(buildParentReference()); | 1186 o.add(buildParentReference()); |
| 1187 return o; | 1187 return o; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 checkUnnamed1643(core.List<api.ParentReference> o) { | 1190 checkUnnamed709(core.List<api.ParentReference> o) { |
| 1191 unittest.expect(o, unittest.hasLength(2)); | 1191 unittest.expect(o, unittest.hasLength(2)); |
| 1192 checkParentReference(o[0]); | 1192 checkParentReference(o[0]); |
| 1193 checkParentReference(o[1]); | 1193 checkParentReference(o[1]); |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 buildUnnamed1644() { | 1196 buildUnnamed710() { |
| 1197 var o = new core.List<api.Permission>(); | 1197 var o = new core.List<api.Permission>(); |
| 1198 o.add(buildPermission()); | 1198 o.add(buildPermission()); |
| 1199 o.add(buildPermission()); | 1199 o.add(buildPermission()); |
| 1200 return o; | 1200 return o; |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 checkUnnamed1644(core.List<api.Permission> o) { | 1203 checkUnnamed710(core.List<api.Permission> o) { |
| 1204 unittest.expect(o, unittest.hasLength(2)); | 1204 unittest.expect(o, unittest.hasLength(2)); |
| 1205 checkPermission(o[0]); | 1205 checkPermission(o[0]); |
| 1206 checkPermission(o[1]); | 1206 checkPermission(o[1]); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 buildUnnamed1645() { | 1209 buildUnnamed711() { |
| 1210 var o = new core.List<api.Property>(); | 1210 var o = new core.List<api.Property>(); |
| 1211 o.add(buildProperty()); | 1211 o.add(buildProperty()); |
| 1212 o.add(buildProperty()); | 1212 o.add(buildProperty()); |
| 1213 return o; | 1213 return o; |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 1216 checkUnnamed1645(core.List<api.Property> o) { | 1216 checkUnnamed711(core.List<api.Property> o) { |
| 1217 unittest.expect(o, unittest.hasLength(2)); | 1217 unittest.expect(o, unittest.hasLength(2)); |
| 1218 checkProperty(o[0]); | 1218 checkProperty(o[0]); |
| 1219 checkProperty(o[1]); | 1219 checkProperty(o[1]); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 buildUnnamed1646() { | 1222 buildUnnamed712() { |
| 1223 var o = new core.List<core.String>(); | 1223 var o = new core.List<core.String>(); |
| 1224 o.add("foo"); | 1224 o.add("foo"); |
| 1225 o.add("foo"); | 1225 o.add("foo"); |
| 1226 return o; | 1226 return o; |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 checkUnnamed1646(core.List<core.String> o) { | 1229 checkUnnamed712(core.List<core.String> o) { |
| 1230 unittest.expect(o, unittest.hasLength(2)); | 1230 unittest.expect(o, unittest.hasLength(2)); |
| 1231 unittest.expect(o[0], unittest.equals('foo')); | 1231 unittest.expect(o[0], unittest.equals('foo')); |
| 1232 unittest.expect(o[1], unittest.equals('foo')); | 1232 unittest.expect(o[1], unittest.equals('foo')); |
| 1233 } | 1233 } |
| 1234 | 1234 |
| 1235 core.int buildCounterFileThumbnail = 0; | 1235 core.int buildCounterFileThumbnail = 0; |
| 1236 buildFileThumbnail() { | 1236 buildFileThumbnail() { |
| 1237 var o = new api.FileThumbnail(); | 1237 var o = new api.FileThumbnail(); |
| 1238 buildCounterFileThumbnail++; | 1238 buildCounterFileThumbnail++; |
| 1239 if (buildCounterFileThumbnail < 3) { | 1239 if (buildCounterFileThumbnail < 3) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 o.canComment = true; | 1286 o.canComment = true; |
| 1287 o.copyable = true; | 1287 o.copyable = true; |
| 1288 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1288 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1289 o.defaultOpenWithLink = "foo"; | 1289 o.defaultOpenWithLink = "foo"; |
| 1290 o.description = "foo"; | 1290 o.description = "foo"; |
| 1291 o.downloadUrl = "foo"; | 1291 o.downloadUrl = "foo"; |
| 1292 o.editable = true; | 1292 o.editable = true; |
| 1293 o.embedLink = "foo"; | 1293 o.embedLink = "foo"; |
| 1294 o.etag = "foo"; | 1294 o.etag = "foo"; |
| 1295 o.explicitlyTrashed = true; | 1295 o.explicitlyTrashed = true; |
| 1296 o.exportLinks = buildUnnamed1639(); | 1296 o.exportLinks = buildUnnamed705(); |
| 1297 o.fileExtension = "foo"; | 1297 o.fileExtension = "foo"; |
| 1298 o.fileSize = "foo"; | 1298 o.fileSize = "foo"; |
| 1299 o.folderColorRgb = "foo"; | 1299 o.folderColorRgb = "foo"; |
| 1300 o.fullFileExtension = "foo"; |
| 1300 o.headRevisionId = "foo"; | 1301 o.headRevisionId = "foo"; |
| 1301 o.iconLink = "foo"; | 1302 o.iconLink = "foo"; |
| 1302 o.id = "foo"; | 1303 o.id = "foo"; |
| 1303 o.imageMediaMetadata = buildFileImageMediaMetadata(); | 1304 o.imageMediaMetadata = buildFileImageMediaMetadata(); |
| 1304 o.indexableText = buildFileIndexableText(); | 1305 o.indexableText = buildFileIndexableText(); |
| 1305 o.kind = "foo"; | 1306 o.kind = "foo"; |
| 1306 o.labels = buildFileLabels(); | 1307 o.labels = buildFileLabels(); |
| 1307 o.lastModifyingUser = buildUser(); | 1308 o.lastModifyingUser = buildUser(); |
| 1308 o.lastModifyingUserName = "foo"; | 1309 o.lastModifyingUserName = "foo"; |
| 1309 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1310 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1310 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1311 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1311 o.md5Checksum = "foo"; | 1312 o.md5Checksum = "foo"; |
| 1312 o.mimeType = "foo"; | 1313 o.mimeType = "foo"; |
| 1313 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1314 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1314 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1315 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1315 o.openWithLinks = buildUnnamed1640(); | 1316 o.openWithLinks = buildUnnamed706(); |
| 1316 o.originalFilename = "foo"; | 1317 o.originalFilename = "foo"; |
| 1317 o.ownedByMe = true; | 1318 o.ownedByMe = true; |
| 1318 o.ownerNames = buildUnnamed1641(); | 1319 o.ownerNames = buildUnnamed707(); |
| 1319 o.owners = buildUnnamed1642(); | 1320 o.owners = buildUnnamed708(); |
| 1320 o.parents = buildUnnamed1643(); | 1321 o.parents = buildUnnamed709(); |
| 1321 o.permissions = buildUnnamed1644(); | 1322 o.permissions = buildUnnamed710(); |
| 1322 o.properties = buildUnnamed1645(); | 1323 o.properties = buildUnnamed711(); |
| 1323 o.quotaBytesUsed = "foo"; | 1324 o.quotaBytesUsed = "foo"; |
| 1324 o.selfLink = "foo"; | 1325 o.selfLink = "foo"; |
| 1325 o.shareable = true; | 1326 o.shareable = true; |
| 1326 o.shared = true; | 1327 o.shared = true; |
| 1327 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1328 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1328 o.sharingUser = buildUser(); | 1329 o.sharingUser = buildUser(); |
| 1329 o.spaces = buildUnnamed1646(); | 1330 o.spaces = buildUnnamed712(); |
| 1330 o.thumbnail = buildFileThumbnail(); | 1331 o.thumbnail = buildFileThumbnail(); |
| 1331 o.thumbnailLink = "foo"; | 1332 o.thumbnailLink = "foo"; |
| 1332 o.title = "foo"; | 1333 o.title = "foo"; |
| 1333 o.userPermission = buildPermission(); | 1334 o.userPermission = buildPermission(); |
| 1334 o.version = "foo"; | 1335 o.version = "foo"; |
| 1335 o.videoMediaMetadata = buildFileVideoMediaMetadata(); | 1336 o.videoMediaMetadata = buildFileVideoMediaMetadata(); |
| 1336 o.webContentLink = "foo"; | 1337 o.webContentLink = "foo"; |
| 1337 o.webViewLink = "foo"; | 1338 o.webViewLink = "foo"; |
| 1338 o.writersCanShare = true; | 1339 o.writersCanShare = true; |
| 1339 } | 1340 } |
| 1340 buildCounterFile--; | 1341 buildCounterFile--; |
| 1341 return o; | 1342 return o; |
| 1342 } | 1343 } |
| 1343 | 1344 |
| 1344 checkFile(api.File o) { | 1345 checkFile(api.File o) { |
| 1345 buildCounterFile++; | 1346 buildCounterFile++; |
| 1346 if (buildCounterFile < 3) { | 1347 if (buildCounterFile < 3) { |
| 1347 unittest.expect(o.alternateLink, unittest.equals('foo')); | 1348 unittest.expect(o.alternateLink, unittest.equals('foo')); |
| 1348 unittest.expect(o.appDataContents, unittest.isTrue); | 1349 unittest.expect(o.appDataContents, unittest.isTrue); |
| 1349 unittest.expect(o.canComment, unittest.isTrue); | 1350 unittest.expect(o.canComment, unittest.isTrue); |
| 1350 unittest.expect(o.copyable, unittest.isTrue); | 1351 unittest.expect(o.copyable, unittest.isTrue); |
| 1351 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 1352 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 1352 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); | 1353 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); |
| 1353 unittest.expect(o.description, unittest.equals('foo')); | 1354 unittest.expect(o.description, unittest.equals('foo')); |
| 1354 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 1355 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1355 unittest.expect(o.editable, unittest.isTrue); | 1356 unittest.expect(o.editable, unittest.isTrue); |
| 1356 unittest.expect(o.embedLink, unittest.equals('foo')); | 1357 unittest.expect(o.embedLink, unittest.equals('foo')); |
| 1357 unittest.expect(o.etag, unittest.equals('foo')); | 1358 unittest.expect(o.etag, unittest.equals('foo')); |
| 1358 unittest.expect(o.explicitlyTrashed, unittest.isTrue); | 1359 unittest.expect(o.explicitlyTrashed, unittest.isTrue); |
| 1359 checkUnnamed1639(o.exportLinks); | 1360 checkUnnamed705(o.exportLinks); |
| 1360 unittest.expect(o.fileExtension, unittest.equals('foo')); | 1361 unittest.expect(o.fileExtension, unittest.equals('foo')); |
| 1361 unittest.expect(o.fileSize, unittest.equals('foo')); | 1362 unittest.expect(o.fileSize, unittest.equals('foo')); |
| 1362 unittest.expect(o.folderColorRgb, unittest.equals('foo')); | 1363 unittest.expect(o.folderColorRgb, unittest.equals('foo')); |
| 1364 unittest.expect(o.fullFileExtension, unittest.equals('foo')); |
| 1363 unittest.expect(o.headRevisionId, unittest.equals('foo')); | 1365 unittest.expect(o.headRevisionId, unittest.equals('foo')); |
| 1364 unittest.expect(o.iconLink, unittest.equals('foo')); | 1366 unittest.expect(o.iconLink, unittest.equals('foo')); |
| 1365 unittest.expect(o.id, unittest.equals('foo')); | 1367 unittest.expect(o.id, unittest.equals('foo')); |
| 1366 checkFileImageMediaMetadata(o.imageMediaMetadata); | 1368 checkFileImageMediaMetadata(o.imageMediaMetadata); |
| 1367 checkFileIndexableText(o.indexableText); | 1369 checkFileIndexableText(o.indexableText); |
| 1368 unittest.expect(o.kind, unittest.equals('foo')); | 1370 unittest.expect(o.kind, unittest.equals('foo')); |
| 1369 checkFileLabels(o.labels); | 1371 checkFileLabels(o.labels); |
| 1370 checkUser(o.lastModifyingUser); | 1372 checkUser(o.lastModifyingUser); |
| 1371 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); | 1373 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); |
| 1372 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 1374 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
| 1373 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse(
"2002-02-27T14:01:02"))); | 1375 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse(
"2002-02-27T14:01:02"))); |
| 1374 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 1376 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
| 1375 unittest.expect(o.mimeType, unittest.equals('foo')); | 1377 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1376 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1378 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1377 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1379 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1378 checkUnnamed1640(o.openWithLinks); | 1380 checkUnnamed706(o.openWithLinks); |
| 1379 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1381 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 1380 unittest.expect(o.ownedByMe, unittest.isTrue); | 1382 unittest.expect(o.ownedByMe, unittest.isTrue); |
| 1381 checkUnnamed1641(o.ownerNames); | 1383 checkUnnamed707(o.ownerNames); |
| 1382 checkUnnamed1642(o.owners); | 1384 checkUnnamed708(o.owners); |
| 1383 checkUnnamed1643(o.parents); | 1385 checkUnnamed709(o.parents); |
| 1384 checkUnnamed1644(o.permissions); | 1386 checkUnnamed710(o.permissions); |
| 1385 checkUnnamed1645(o.properties); | 1387 checkUnnamed711(o.properties); |
| 1386 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); | 1388 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); |
| 1387 unittest.expect(o.selfLink, unittest.equals('foo')); | 1389 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1388 unittest.expect(o.shareable, unittest.isTrue); | 1390 unittest.expect(o.shareable, unittest.isTrue); |
| 1389 unittest.expect(o.shared, unittest.isTrue); | 1391 unittest.expect(o.shared, unittest.isTrue); |
| 1390 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1392 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1391 checkUser(o.sharingUser); | 1393 checkUser(o.sharingUser); |
| 1392 checkUnnamed1646(o.spaces); | 1394 checkUnnamed712(o.spaces); |
| 1393 checkFileThumbnail(o.thumbnail); | 1395 checkFileThumbnail(o.thumbnail); |
| 1394 unittest.expect(o.thumbnailLink, unittest.equals('foo')); | 1396 unittest.expect(o.thumbnailLink, unittest.equals('foo')); |
| 1395 unittest.expect(o.title, unittest.equals('foo')); | 1397 unittest.expect(o.title, unittest.equals('foo')); |
| 1396 checkPermission(o.userPermission); | 1398 checkPermission(o.userPermission); |
| 1397 unittest.expect(o.version, unittest.equals('foo')); | 1399 unittest.expect(o.version, unittest.equals('foo')); |
| 1398 checkFileVideoMediaMetadata(o.videoMediaMetadata); | 1400 checkFileVideoMediaMetadata(o.videoMediaMetadata); |
| 1399 unittest.expect(o.webContentLink, unittest.equals('foo')); | 1401 unittest.expect(o.webContentLink, unittest.equals('foo')); |
| 1400 unittest.expect(o.webViewLink, unittest.equals('foo')); | 1402 unittest.expect(o.webViewLink, unittest.equals('foo')); |
| 1401 unittest.expect(o.writersCanShare, unittest.isTrue); | 1403 unittest.expect(o.writersCanShare, unittest.isTrue); |
| 1402 } | 1404 } |
| 1403 buildCounterFile--; | 1405 buildCounterFile--; |
| 1404 } | 1406 } |
| 1405 | 1407 |
| 1406 buildUnnamed1647() { | 1408 buildUnnamed713() { |
| 1407 var o = new core.List<api.File>(); | 1409 var o = new core.List<api.File>(); |
| 1408 o.add(buildFile()); | 1410 o.add(buildFile()); |
| 1409 o.add(buildFile()); | 1411 o.add(buildFile()); |
| 1410 return o; | 1412 return o; |
| 1411 } | 1413 } |
| 1412 | 1414 |
| 1413 checkUnnamed1647(core.List<api.File> o) { | 1415 checkUnnamed713(core.List<api.File> o) { |
| 1414 unittest.expect(o, unittest.hasLength(2)); | 1416 unittest.expect(o, unittest.hasLength(2)); |
| 1415 checkFile(o[0]); | 1417 checkFile(o[0]); |
| 1416 checkFile(o[1]); | 1418 checkFile(o[1]); |
| 1417 } | 1419 } |
| 1418 | 1420 |
| 1419 core.int buildCounterFileList = 0; | 1421 core.int buildCounterFileList = 0; |
| 1420 buildFileList() { | 1422 buildFileList() { |
| 1421 var o = new api.FileList(); | 1423 var o = new api.FileList(); |
| 1422 buildCounterFileList++; | 1424 buildCounterFileList++; |
| 1423 if (buildCounterFileList < 3) { | 1425 if (buildCounterFileList < 3) { |
| 1424 o.etag = "foo"; | 1426 o.etag = "foo"; |
| 1425 o.items = buildUnnamed1647(); | 1427 o.items = buildUnnamed713(); |
| 1426 o.kind = "foo"; | 1428 o.kind = "foo"; |
| 1427 o.nextLink = "foo"; | 1429 o.nextLink = "foo"; |
| 1428 o.nextPageToken = "foo"; | 1430 o.nextPageToken = "foo"; |
| 1429 o.selfLink = "foo"; | 1431 o.selfLink = "foo"; |
| 1430 } | 1432 } |
| 1431 buildCounterFileList--; | 1433 buildCounterFileList--; |
| 1432 return o; | 1434 return o; |
| 1433 } | 1435 } |
| 1434 | 1436 |
| 1435 checkFileList(api.FileList o) { | 1437 checkFileList(api.FileList o) { |
| 1436 buildCounterFileList++; | 1438 buildCounterFileList++; |
| 1437 if (buildCounterFileList < 3) { | 1439 if (buildCounterFileList < 3) { |
| 1438 unittest.expect(o.etag, unittest.equals('foo')); | 1440 unittest.expect(o.etag, unittest.equals('foo')); |
| 1439 checkUnnamed1647(o.items); | 1441 checkUnnamed713(o.items); |
| 1440 unittest.expect(o.kind, unittest.equals('foo')); | 1442 unittest.expect(o.kind, unittest.equals('foo')); |
| 1441 unittest.expect(o.nextLink, unittest.equals('foo')); | 1443 unittest.expect(o.nextLink, unittest.equals('foo')); |
| 1442 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1444 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1443 unittest.expect(o.selfLink, unittest.equals('foo')); | 1445 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1444 } | 1446 } |
| 1445 buildCounterFileList--; | 1447 buildCounterFileList--; |
| 1446 } | 1448 } |
| 1447 | 1449 |
| 1448 buildUnnamed1648() { | 1450 buildUnnamed714() { |
| 1451 var o = new core.List<core.String>(); |
| 1452 o.add("foo"); |
| 1453 o.add("foo"); |
| 1454 return o; |
| 1455 } |
| 1456 |
| 1457 checkUnnamed714(core.List<core.String> o) { |
| 1458 unittest.expect(o, unittest.hasLength(2)); |
| 1459 unittest.expect(o[0], unittest.equals('foo')); |
| 1460 unittest.expect(o[1], unittest.equals('foo')); |
| 1461 } |
| 1462 |
| 1463 core.int buildCounterGeneratedIds = 0; |
| 1464 buildGeneratedIds() { |
| 1465 var o = new api.GeneratedIds(); |
| 1466 buildCounterGeneratedIds++; |
| 1467 if (buildCounterGeneratedIds < 3) { |
| 1468 o.ids = buildUnnamed714(); |
| 1469 o.kind = "foo"; |
| 1470 o.space = "foo"; |
| 1471 } |
| 1472 buildCounterGeneratedIds--; |
| 1473 return o; |
| 1474 } |
| 1475 |
| 1476 checkGeneratedIds(api.GeneratedIds o) { |
| 1477 buildCounterGeneratedIds++; |
| 1478 if (buildCounterGeneratedIds < 3) { |
| 1479 checkUnnamed714(o.ids); |
| 1480 unittest.expect(o.kind, unittest.equals('foo')); |
| 1481 unittest.expect(o.space, unittest.equals('foo')); |
| 1482 } |
| 1483 buildCounterGeneratedIds--; |
| 1484 } |
| 1485 |
| 1486 buildUnnamed715() { |
| 1449 var o = new core.List<api.ParentReference>(); | 1487 var o = new core.List<api.ParentReference>(); |
| 1450 o.add(buildParentReference()); | 1488 o.add(buildParentReference()); |
| 1451 o.add(buildParentReference()); | 1489 o.add(buildParentReference()); |
| 1452 return o; | 1490 return o; |
| 1453 } | 1491 } |
| 1454 | 1492 |
| 1455 checkUnnamed1648(core.List<api.ParentReference> o) { | 1493 checkUnnamed715(core.List<api.ParentReference> o) { |
| 1456 unittest.expect(o, unittest.hasLength(2)); | 1494 unittest.expect(o, unittest.hasLength(2)); |
| 1457 checkParentReference(o[0]); | 1495 checkParentReference(o[0]); |
| 1458 checkParentReference(o[1]); | 1496 checkParentReference(o[1]); |
| 1459 } | 1497 } |
| 1460 | 1498 |
| 1461 core.int buildCounterParentList = 0; | 1499 core.int buildCounterParentList = 0; |
| 1462 buildParentList() { | 1500 buildParentList() { |
| 1463 var o = new api.ParentList(); | 1501 var o = new api.ParentList(); |
| 1464 buildCounterParentList++; | 1502 buildCounterParentList++; |
| 1465 if (buildCounterParentList < 3) { | 1503 if (buildCounterParentList < 3) { |
| 1466 o.etag = "foo"; | 1504 o.etag = "foo"; |
| 1467 o.items = buildUnnamed1648(); | 1505 o.items = buildUnnamed715(); |
| 1468 o.kind = "foo"; | 1506 o.kind = "foo"; |
| 1469 o.selfLink = "foo"; | 1507 o.selfLink = "foo"; |
| 1470 } | 1508 } |
| 1471 buildCounterParentList--; | 1509 buildCounterParentList--; |
| 1472 return o; | 1510 return o; |
| 1473 } | 1511 } |
| 1474 | 1512 |
| 1475 checkParentList(api.ParentList o) { | 1513 checkParentList(api.ParentList o) { |
| 1476 buildCounterParentList++; | 1514 buildCounterParentList++; |
| 1477 if (buildCounterParentList < 3) { | 1515 if (buildCounterParentList < 3) { |
| 1478 unittest.expect(o.etag, unittest.equals('foo')); | 1516 unittest.expect(o.etag, unittest.equals('foo')); |
| 1479 checkUnnamed1648(o.items); | 1517 checkUnnamed715(o.items); |
| 1480 unittest.expect(o.kind, unittest.equals('foo')); | 1518 unittest.expect(o.kind, unittest.equals('foo')); |
| 1481 unittest.expect(o.selfLink, unittest.equals('foo')); | 1519 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1482 } | 1520 } |
| 1483 buildCounterParentList--; | 1521 buildCounterParentList--; |
| 1484 } | 1522 } |
| 1485 | 1523 |
| 1486 core.int buildCounterParentReference = 0; | 1524 core.int buildCounterParentReference = 0; |
| 1487 buildParentReference() { | 1525 buildParentReference() { |
| 1488 var o = new api.ParentReference(); | 1526 var o = new api.ParentReference(); |
| 1489 buildCounterParentReference++; | 1527 buildCounterParentReference++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1503 if (buildCounterParentReference < 3) { | 1541 if (buildCounterParentReference < 3) { |
| 1504 unittest.expect(o.id, unittest.equals('foo')); | 1542 unittest.expect(o.id, unittest.equals('foo')); |
| 1505 unittest.expect(o.isRoot, unittest.isTrue); | 1543 unittest.expect(o.isRoot, unittest.isTrue); |
| 1506 unittest.expect(o.kind, unittest.equals('foo')); | 1544 unittest.expect(o.kind, unittest.equals('foo')); |
| 1507 unittest.expect(o.parentLink, unittest.equals('foo')); | 1545 unittest.expect(o.parentLink, unittest.equals('foo')); |
| 1508 unittest.expect(o.selfLink, unittest.equals('foo')); | 1546 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1509 } | 1547 } |
| 1510 buildCounterParentReference--; | 1548 buildCounterParentReference--; |
| 1511 } | 1549 } |
| 1512 | 1550 |
| 1513 buildUnnamed1649() { | 1551 buildUnnamed716() { |
| 1514 var o = new core.List<core.String>(); | 1552 var o = new core.List<core.String>(); |
| 1515 o.add("foo"); | 1553 o.add("foo"); |
| 1516 o.add("foo"); | 1554 o.add("foo"); |
| 1517 return o; | 1555 return o; |
| 1518 } | 1556 } |
| 1519 | 1557 |
| 1520 checkUnnamed1649(core.List<core.String> o) { | 1558 checkUnnamed716(core.List<core.String> o) { |
| 1521 unittest.expect(o, unittest.hasLength(2)); | 1559 unittest.expect(o, unittest.hasLength(2)); |
| 1522 unittest.expect(o[0], unittest.equals('foo')); | 1560 unittest.expect(o[0], unittest.equals('foo')); |
| 1523 unittest.expect(o[1], unittest.equals('foo')); | 1561 unittest.expect(o[1], unittest.equals('foo')); |
| 1524 } | 1562 } |
| 1525 | 1563 |
| 1526 core.int buildCounterPermission = 0; | 1564 core.int buildCounterPermission = 0; |
| 1527 buildPermission() { | 1565 buildPermission() { |
| 1528 var o = new api.Permission(); | 1566 var o = new api.Permission(); |
| 1529 buildCounterPermission++; | 1567 buildCounterPermission++; |
| 1530 if (buildCounterPermission < 3) { | 1568 if (buildCounterPermission < 3) { |
| 1531 o.additionalRoles = buildUnnamed1649(); | 1569 o.additionalRoles = buildUnnamed716(); |
| 1532 o.authKey = "foo"; | 1570 o.authKey = "foo"; |
| 1533 o.domain = "foo"; | 1571 o.domain = "foo"; |
| 1534 o.emailAddress = "foo"; | 1572 o.emailAddress = "foo"; |
| 1535 o.etag = "foo"; | 1573 o.etag = "foo"; |
| 1536 o.id = "foo"; | 1574 o.id = "foo"; |
| 1537 o.kind = "foo"; | 1575 o.kind = "foo"; |
| 1538 o.name = "foo"; | 1576 o.name = "foo"; |
| 1539 o.photoLink = "foo"; | 1577 o.photoLink = "foo"; |
| 1540 o.role = "foo"; | 1578 o.role = "foo"; |
| 1541 o.selfLink = "foo"; | 1579 o.selfLink = "foo"; |
| 1542 o.type = "foo"; | 1580 o.type = "foo"; |
| 1543 o.value = "foo"; | 1581 o.value = "foo"; |
| 1544 o.withLink = true; | 1582 o.withLink = true; |
| 1545 } | 1583 } |
| 1546 buildCounterPermission--; | 1584 buildCounterPermission--; |
| 1547 return o; | 1585 return o; |
| 1548 } | 1586 } |
| 1549 | 1587 |
| 1550 checkPermission(api.Permission o) { | 1588 checkPermission(api.Permission o) { |
| 1551 buildCounterPermission++; | 1589 buildCounterPermission++; |
| 1552 if (buildCounterPermission < 3) { | 1590 if (buildCounterPermission < 3) { |
| 1553 checkUnnamed1649(o.additionalRoles); | 1591 checkUnnamed716(o.additionalRoles); |
| 1554 unittest.expect(o.authKey, unittest.equals('foo')); | 1592 unittest.expect(o.authKey, unittest.equals('foo')); |
| 1555 unittest.expect(o.domain, unittest.equals('foo')); | 1593 unittest.expect(o.domain, unittest.equals('foo')); |
| 1556 unittest.expect(o.emailAddress, unittest.equals('foo')); | 1594 unittest.expect(o.emailAddress, unittest.equals('foo')); |
| 1557 unittest.expect(o.etag, unittest.equals('foo')); | 1595 unittest.expect(o.etag, unittest.equals('foo')); |
| 1558 unittest.expect(o.id, unittest.equals('foo')); | 1596 unittest.expect(o.id, unittest.equals('foo')); |
| 1559 unittest.expect(o.kind, unittest.equals('foo')); | 1597 unittest.expect(o.kind, unittest.equals('foo')); |
| 1560 unittest.expect(o.name, unittest.equals('foo')); | 1598 unittest.expect(o.name, unittest.equals('foo')); |
| 1561 unittest.expect(o.photoLink, unittest.equals('foo')); | 1599 unittest.expect(o.photoLink, unittest.equals('foo')); |
| 1562 unittest.expect(o.role, unittest.equals('foo')); | 1600 unittest.expect(o.role, unittest.equals('foo')); |
| 1563 unittest.expect(o.selfLink, unittest.equals('foo')); | 1601 unittest.expect(o.selfLink, unittest.equals('foo')); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1582 | 1620 |
| 1583 checkPermissionId(api.PermissionId o) { | 1621 checkPermissionId(api.PermissionId o) { |
| 1584 buildCounterPermissionId++; | 1622 buildCounterPermissionId++; |
| 1585 if (buildCounterPermissionId < 3) { | 1623 if (buildCounterPermissionId < 3) { |
| 1586 unittest.expect(o.id, unittest.equals('foo')); | 1624 unittest.expect(o.id, unittest.equals('foo')); |
| 1587 unittest.expect(o.kind, unittest.equals('foo')); | 1625 unittest.expect(o.kind, unittest.equals('foo')); |
| 1588 } | 1626 } |
| 1589 buildCounterPermissionId--; | 1627 buildCounterPermissionId--; |
| 1590 } | 1628 } |
| 1591 | 1629 |
| 1592 buildUnnamed1650() { | 1630 buildUnnamed717() { |
| 1593 var o = new core.List<api.Permission>(); | 1631 var o = new core.List<api.Permission>(); |
| 1594 o.add(buildPermission()); | 1632 o.add(buildPermission()); |
| 1595 o.add(buildPermission()); | 1633 o.add(buildPermission()); |
| 1596 return o; | 1634 return o; |
| 1597 } | 1635 } |
| 1598 | 1636 |
| 1599 checkUnnamed1650(core.List<api.Permission> o) { | 1637 checkUnnamed717(core.List<api.Permission> o) { |
| 1600 unittest.expect(o, unittest.hasLength(2)); | 1638 unittest.expect(o, unittest.hasLength(2)); |
| 1601 checkPermission(o[0]); | 1639 checkPermission(o[0]); |
| 1602 checkPermission(o[1]); | 1640 checkPermission(o[1]); |
| 1603 } | 1641 } |
| 1604 | 1642 |
| 1605 core.int buildCounterPermissionList = 0; | 1643 core.int buildCounterPermissionList = 0; |
| 1606 buildPermissionList() { | 1644 buildPermissionList() { |
| 1607 var o = new api.PermissionList(); | 1645 var o = new api.PermissionList(); |
| 1608 buildCounterPermissionList++; | 1646 buildCounterPermissionList++; |
| 1609 if (buildCounterPermissionList < 3) { | 1647 if (buildCounterPermissionList < 3) { |
| 1610 o.etag = "foo"; | 1648 o.etag = "foo"; |
| 1611 o.items = buildUnnamed1650(); | 1649 o.items = buildUnnamed717(); |
| 1612 o.kind = "foo"; | 1650 o.kind = "foo"; |
| 1613 o.selfLink = "foo"; | 1651 o.selfLink = "foo"; |
| 1614 } | 1652 } |
| 1615 buildCounterPermissionList--; | 1653 buildCounterPermissionList--; |
| 1616 return o; | 1654 return o; |
| 1617 } | 1655 } |
| 1618 | 1656 |
| 1619 checkPermissionList(api.PermissionList o) { | 1657 checkPermissionList(api.PermissionList o) { |
| 1620 buildCounterPermissionList++; | 1658 buildCounterPermissionList++; |
| 1621 if (buildCounterPermissionList < 3) { | 1659 if (buildCounterPermissionList < 3) { |
| 1622 unittest.expect(o.etag, unittest.equals('foo')); | 1660 unittest.expect(o.etag, unittest.equals('foo')); |
| 1623 checkUnnamed1650(o.items); | 1661 checkUnnamed717(o.items); |
| 1624 unittest.expect(o.kind, unittest.equals('foo')); | 1662 unittest.expect(o.kind, unittest.equals('foo')); |
| 1625 unittest.expect(o.selfLink, unittest.equals('foo')); | 1663 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1626 } | 1664 } |
| 1627 buildCounterPermissionList--; | 1665 buildCounterPermissionList--; |
| 1628 } | 1666 } |
| 1629 | 1667 |
| 1630 core.int buildCounterProperty = 0; | 1668 core.int buildCounterProperty = 0; |
| 1631 buildProperty() { | 1669 buildProperty() { |
| 1632 var o = new api.Property(); | 1670 var o = new api.Property(); |
| 1633 buildCounterProperty++; | 1671 buildCounterProperty++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1649 unittest.expect(o.etag, unittest.equals('foo')); | 1687 unittest.expect(o.etag, unittest.equals('foo')); |
| 1650 unittest.expect(o.key, unittest.equals('foo')); | 1688 unittest.expect(o.key, unittest.equals('foo')); |
| 1651 unittest.expect(o.kind, unittest.equals('foo')); | 1689 unittest.expect(o.kind, unittest.equals('foo')); |
| 1652 unittest.expect(o.selfLink, unittest.equals('foo')); | 1690 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1653 unittest.expect(o.value, unittest.equals('foo')); | 1691 unittest.expect(o.value, unittest.equals('foo')); |
| 1654 unittest.expect(o.visibility, unittest.equals('foo')); | 1692 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1655 } | 1693 } |
| 1656 buildCounterProperty--; | 1694 buildCounterProperty--; |
| 1657 } | 1695 } |
| 1658 | 1696 |
| 1659 buildUnnamed1651() { | 1697 buildUnnamed718() { |
| 1660 var o = new core.List<api.Property>(); | 1698 var o = new core.List<api.Property>(); |
| 1661 o.add(buildProperty()); | 1699 o.add(buildProperty()); |
| 1662 o.add(buildProperty()); | 1700 o.add(buildProperty()); |
| 1663 return o; | 1701 return o; |
| 1664 } | 1702 } |
| 1665 | 1703 |
| 1666 checkUnnamed1651(core.List<api.Property> o) { | 1704 checkUnnamed718(core.List<api.Property> o) { |
| 1667 unittest.expect(o, unittest.hasLength(2)); | 1705 unittest.expect(o, unittest.hasLength(2)); |
| 1668 checkProperty(o[0]); | 1706 checkProperty(o[0]); |
| 1669 checkProperty(o[1]); | 1707 checkProperty(o[1]); |
| 1670 } | 1708 } |
| 1671 | 1709 |
| 1672 core.int buildCounterPropertyList = 0; | 1710 core.int buildCounterPropertyList = 0; |
| 1673 buildPropertyList() { | 1711 buildPropertyList() { |
| 1674 var o = new api.PropertyList(); | 1712 var o = new api.PropertyList(); |
| 1675 buildCounterPropertyList++; | 1713 buildCounterPropertyList++; |
| 1676 if (buildCounterPropertyList < 3) { | 1714 if (buildCounterPropertyList < 3) { |
| 1677 o.etag = "foo"; | 1715 o.etag = "foo"; |
| 1678 o.items = buildUnnamed1651(); | 1716 o.items = buildUnnamed718(); |
| 1679 o.kind = "foo"; | 1717 o.kind = "foo"; |
| 1680 o.selfLink = "foo"; | 1718 o.selfLink = "foo"; |
| 1681 } | 1719 } |
| 1682 buildCounterPropertyList--; | 1720 buildCounterPropertyList--; |
| 1683 return o; | 1721 return o; |
| 1684 } | 1722 } |
| 1685 | 1723 |
| 1686 checkPropertyList(api.PropertyList o) { | 1724 checkPropertyList(api.PropertyList o) { |
| 1687 buildCounterPropertyList++; | 1725 buildCounterPropertyList++; |
| 1688 if (buildCounterPropertyList < 3) { | 1726 if (buildCounterPropertyList < 3) { |
| 1689 unittest.expect(o.etag, unittest.equals('foo')); | 1727 unittest.expect(o.etag, unittest.equals('foo')); |
| 1690 checkUnnamed1651(o.items); | 1728 checkUnnamed718(o.items); |
| 1691 unittest.expect(o.kind, unittest.equals('foo')); | 1729 unittest.expect(o.kind, unittest.equals('foo')); |
| 1692 unittest.expect(o.selfLink, unittest.equals('foo')); | 1730 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1693 } | 1731 } |
| 1694 buildCounterPropertyList--; | 1732 buildCounterPropertyList--; |
| 1695 } | 1733 } |
| 1696 | 1734 |
| 1697 buildUnnamed1652() { | 1735 buildUnnamed719() { |
| 1698 var o = new core.Map<core.String, core.String>(); | 1736 var o = new core.Map<core.String, core.String>(); |
| 1699 o["x"] = "foo"; | 1737 o["x"] = "foo"; |
| 1700 o["y"] = "foo"; | 1738 o["y"] = "foo"; |
| 1701 return o; | 1739 return o; |
| 1702 } | 1740 } |
| 1703 | 1741 |
| 1704 checkUnnamed1652(core.Map<core.String, core.String> o) { | 1742 checkUnnamed719(core.Map<core.String, core.String> o) { |
| 1705 unittest.expect(o, unittest.hasLength(2)); | 1743 unittest.expect(o, unittest.hasLength(2)); |
| 1706 unittest.expect(o["x"], unittest.equals('foo')); | 1744 unittest.expect(o["x"], unittest.equals('foo')); |
| 1707 unittest.expect(o["y"], unittest.equals('foo')); | 1745 unittest.expect(o["y"], unittest.equals('foo')); |
| 1708 } | 1746 } |
| 1709 | 1747 |
| 1710 core.int buildCounterRevision = 0; | 1748 core.int buildCounterRevision = 0; |
| 1711 buildRevision() { | 1749 buildRevision() { |
| 1712 var o = new api.Revision(); | 1750 var o = new api.Revision(); |
| 1713 buildCounterRevision++; | 1751 buildCounterRevision++; |
| 1714 if (buildCounterRevision < 3) { | 1752 if (buildCounterRevision < 3) { |
| 1715 o.downloadUrl = "foo"; | 1753 o.downloadUrl = "foo"; |
| 1716 o.etag = "foo"; | 1754 o.etag = "foo"; |
| 1717 o.exportLinks = buildUnnamed1652(); | 1755 o.exportLinks = buildUnnamed719(); |
| 1718 o.fileSize = "foo"; | 1756 o.fileSize = "foo"; |
| 1719 o.id = "foo"; | 1757 o.id = "foo"; |
| 1720 o.kind = "foo"; | 1758 o.kind = "foo"; |
| 1721 o.lastModifyingUser = buildUser(); | 1759 o.lastModifyingUser = buildUser(); |
| 1722 o.lastModifyingUserName = "foo"; | 1760 o.lastModifyingUserName = "foo"; |
| 1723 o.md5Checksum = "foo"; | 1761 o.md5Checksum = "foo"; |
| 1724 o.mimeType = "foo"; | 1762 o.mimeType = "foo"; |
| 1725 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1763 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1726 o.originalFilename = "foo"; | 1764 o.originalFilename = "foo"; |
| 1727 o.pinned = true; | 1765 o.pinned = true; |
| 1728 o.publishAuto = true; | 1766 o.publishAuto = true; |
| 1729 o.published = true; | 1767 o.published = true; |
| 1730 o.publishedLink = "foo"; | 1768 o.publishedLink = "foo"; |
| 1731 o.publishedOutsideDomain = true; | 1769 o.publishedOutsideDomain = true; |
| 1732 o.selfLink = "foo"; | 1770 o.selfLink = "foo"; |
| 1733 } | 1771 } |
| 1734 buildCounterRevision--; | 1772 buildCounterRevision--; |
| 1735 return o; | 1773 return o; |
| 1736 } | 1774 } |
| 1737 | 1775 |
| 1738 checkRevision(api.Revision o) { | 1776 checkRevision(api.Revision o) { |
| 1739 buildCounterRevision++; | 1777 buildCounterRevision++; |
| 1740 if (buildCounterRevision < 3) { | 1778 if (buildCounterRevision < 3) { |
| 1741 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 1779 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1742 unittest.expect(o.etag, unittest.equals('foo')); | 1780 unittest.expect(o.etag, unittest.equals('foo')); |
| 1743 checkUnnamed1652(o.exportLinks); | 1781 checkUnnamed719(o.exportLinks); |
| 1744 unittest.expect(o.fileSize, unittest.equals('foo')); | 1782 unittest.expect(o.fileSize, unittest.equals('foo')); |
| 1745 unittest.expect(o.id, unittest.equals('foo')); | 1783 unittest.expect(o.id, unittest.equals('foo')); |
| 1746 unittest.expect(o.kind, unittest.equals('foo')); | 1784 unittest.expect(o.kind, unittest.equals('foo')); |
| 1747 checkUser(o.lastModifyingUser); | 1785 checkUser(o.lastModifyingUser); |
| 1748 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); | 1786 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); |
| 1749 unittest.expect(o.md5Checksum, unittest.equals('foo')); | 1787 unittest.expect(o.md5Checksum, unittest.equals('foo')); |
| 1750 unittest.expect(o.mimeType, unittest.equals('foo')); | 1788 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1751 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1789 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1752 unittest.expect(o.originalFilename, unittest.equals('foo')); | 1790 unittest.expect(o.originalFilename, unittest.equals('foo')); |
| 1753 unittest.expect(o.pinned, unittest.isTrue); | 1791 unittest.expect(o.pinned, unittest.isTrue); |
| 1754 unittest.expect(o.publishAuto, unittest.isTrue); | 1792 unittest.expect(o.publishAuto, unittest.isTrue); |
| 1755 unittest.expect(o.published, unittest.isTrue); | 1793 unittest.expect(o.published, unittest.isTrue); |
| 1756 unittest.expect(o.publishedLink, unittest.equals('foo')); | 1794 unittest.expect(o.publishedLink, unittest.equals('foo')); |
| 1757 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); | 1795 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); |
| 1758 unittest.expect(o.selfLink, unittest.equals('foo')); | 1796 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1759 } | 1797 } |
| 1760 buildCounterRevision--; | 1798 buildCounterRevision--; |
| 1761 } | 1799 } |
| 1762 | 1800 |
| 1763 buildUnnamed1653() { | 1801 buildUnnamed720() { |
| 1764 var o = new core.List<api.Revision>(); | 1802 var o = new core.List<api.Revision>(); |
| 1765 o.add(buildRevision()); | 1803 o.add(buildRevision()); |
| 1766 o.add(buildRevision()); | 1804 o.add(buildRevision()); |
| 1767 return o; | 1805 return o; |
| 1768 } | 1806 } |
| 1769 | 1807 |
| 1770 checkUnnamed1653(core.List<api.Revision> o) { | 1808 checkUnnamed720(core.List<api.Revision> o) { |
| 1771 unittest.expect(o, unittest.hasLength(2)); | 1809 unittest.expect(o, unittest.hasLength(2)); |
| 1772 checkRevision(o[0]); | 1810 checkRevision(o[0]); |
| 1773 checkRevision(o[1]); | 1811 checkRevision(o[1]); |
| 1774 } | 1812 } |
| 1775 | 1813 |
| 1776 core.int buildCounterRevisionList = 0; | 1814 core.int buildCounterRevisionList = 0; |
| 1777 buildRevisionList() { | 1815 buildRevisionList() { |
| 1778 var o = new api.RevisionList(); | 1816 var o = new api.RevisionList(); |
| 1779 buildCounterRevisionList++; | 1817 buildCounterRevisionList++; |
| 1780 if (buildCounterRevisionList < 3) { | 1818 if (buildCounterRevisionList < 3) { |
| 1781 o.etag = "foo"; | 1819 o.etag = "foo"; |
| 1782 o.items = buildUnnamed1653(); | 1820 o.items = buildUnnamed720(); |
| 1783 o.kind = "foo"; | 1821 o.kind = "foo"; |
| 1784 o.selfLink = "foo"; | 1822 o.selfLink = "foo"; |
| 1785 } | 1823 } |
| 1786 buildCounterRevisionList--; | 1824 buildCounterRevisionList--; |
| 1787 return o; | 1825 return o; |
| 1788 } | 1826 } |
| 1789 | 1827 |
| 1790 checkRevisionList(api.RevisionList o) { | 1828 checkRevisionList(api.RevisionList o) { |
| 1791 buildCounterRevisionList++; | 1829 buildCounterRevisionList++; |
| 1792 if (buildCounterRevisionList < 3) { | 1830 if (buildCounterRevisionList < 3) { |
| 1793 unittest.expect(o.etag, unittest.equals('foo')); | 1831 unittest.expect(o.etag, unittest.equals('foo')); |
| 1794 checkUnnamed1653(o.items); | 1832 checkUnnamed720(o.items); |
| 1795 unittest.expect(o.kind, unittest.equals('foo')); | 1833 unittest.expect(o.kind, unittest.equals('foo')); |
| 1796 unittest.expect(o.selfLink, unittest.equals('foo')); | 1834 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1797 } | 1835 } |
| 1798 buildCounterRevisionList--; | 1836 buildCounterRevisionList--; |
| 1799 } | 1837 } |
| 1800 | 1838 |
| 1801 core.int buildCounterUserPicture = 0; | 1839 core.int buildCounterUserPicture = 0; |
| 1802 buildUserPicture() { | 1840 buildUserPicture() { |
| 1803 var o = new api.UserPicture(); | 1841 var o = new api.UserPicture(); |
| 1804 buildCounterUserPicture++; | 1842 buildCounterUserPicture++; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 | 2140 |
| 2103 unittest.group("obj-schema-FileList", () { | 2141 unittest.group("obj-schema-FileList", () { |
| 2104 unittest.test("to-json--from-json", () { | 2142 unittest.test("to-json--from-json", () { |
| 2105 var o = buildFileList(); | 2143 var o = buildFileList(); |
| 2106 var od = new api.FileList.fromJson(o.toJson()); | 2144 var od = new api.FileList.fromJson(o.toJson()); |
| 2107 checkFileList(od); | 2145 checkFileList(od); |
| 2108 }); | 2146 }); |
| 2109 }); | 2147 }); |
| 2110 | 2148 |
| 2111 | 2149 |
| 2150 unittest.group("obj-schema-GeneratedIds", () { |
| 2151 unittest.test("to-json--from-json", () { |
| 2152 var o = buildGeneratedIds(); |
| 2153 var od = new api.GeneratedIds.fromJson(o.toJson()); |
| 2154 checkGeneratedIds(od); |
| 2155 }); |
| 2156 }); |
| 2157 |
| 2158 |
| 2112 unittest.group("obj-schema-ParentList", () { | 2159 unittest.group("obj-schema-ParentList", () { |
| 2113 unittest.test("to-json--from-json", () { | 2160 unittest.test("to-json--from-json", () { |
| 2114 var o = buildParentList(); | 2161 var o = buildParentList(); |
| 2115 var od = new api.ParentList.fromJson(o.toJson()); | 2162 var od = new api.ParentList.fromJson(o.toJson()); |
| 2116 checkParentList(od); | 2163 checkParentList(od); |
| 2117 }); | 2164 }); |
| 2118 }); | 2165 }); |
| 2119 | 2166 |
| 2120 | 2167 |
| 2121 unittest.group("obj-schema-ParentReference", () { | 2168 unittest.group("obj-schema-ParentReference", () { |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3334 | 3381 |
| 3335 var h = { | 3382 var h = { |
| 3336 "content-type" : "application/json; charset=utf-8", | 3383 "content-type" : "application/json; charset=utf-8", |
| 3337 }; | 3384 }; |
| 3338 var resp = ""; | 3385 var resp = ""; |
| 3339 return new async.Future.value(stringResponse(200, h, resp)); | 3386 return new async.Future.value(stringResponse(200, h, resp)); |
| 3340 }), true); | 3387 }), true); |
| 3341 res.emptyTrash().then(unittest.expectAsync((_) {})); | 3388 res.emptyTrash().then(unittest.expectAsync((_) {})); |
| 3342 }); | 3389 }); |
| 3343 | 3390 |
| 3391 unittest.test("method--generateIds", () { |
| 3392 |
| 3393 var mock = new HttpServerMock(); |
| 3394 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3395 var arg_maxResults = 42; |
| 3396 var arg_space = "foo"; |
| 3397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3398 var path = (req.url).path; |
| 3399 var pathOffset = 0; |
| 3400 var index; |
| 3401 var subPart; |
| 3402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3403 pathOffset += 1; |
| 3404 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("drive/v2/")); |
| 3405 pathOffset += 9; |
| 3406 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("files/generateIds")); |
| 3407 pathOffset += 17; |
| 3408 |
| 3409 var query = (req.url).query; |
| 3410 var queryOffset = 0; |
| 3411 var queryMap = {}; |
| 3412 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3413 parseBool(n) { |
| 3414 if (n == "true") return true; |
| 3415 if (n == "false") return false; |
| 3416 if (n == null) return null; |
| 3417 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3418 } |
| 3419 if (query.length > 0) { |
| 3420 for (var part in query.split("&")) { |
| 3421 var keyvalue = part.split("="); |
| 3422 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3423 } |
| 3424 } |
| 3425 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 3426 unittest.expect(queryMap["space"].first, unittest.equals(arg_space)); |
| 3427 |
| 3428 |
| 3429 var h = { |
| 3430 "content-type" : "application/json; charset=utf-8", |
| 3431 }; |
| 3432 var resp = convert.JSON.encode(buildGeneratedIds()); |
| 3433 return new async.Future.value(stringResponse(200, h, resp)); |
| 3434 }), true); |
| 3435 res.generateIds(maxResults: arg_maxResults, space: arg_space).then(unittes
t.expectAsync(((api.GeneratedIds response) { |
| 3436 checkGeneratedIds(response); |
| 3437 }))); |
| 3438 }); |
| 3439 |
| 3344 unittest.test("method--get", () { | 3440 unittest.test("method--get", () { |
| 3345 // TODO: Implement tests for media upload; | 3441 // TODO: Implement tests for media upload; |
| 3346 // TODO: Implement tests for media download; | 3442 // TODO: Implement tests for media download; |
| 3347 | 3443 |
| 3348 var mock = new HttpServerMock(); | 3444 var mock = new HttpServerMock(); |
| 3349 api.FilesResourceApi res = new api.DriveApi(mock).files; | 3445 api.FilesResourceApi res = new api.DriveApi(mock).files; |
| 3350 var arg_fileId = "foo"; | 3446 var arg_fileId = "foo"; |
| 3351 var arg_acknowledgeAbuse = true; | 3447 var arg_acknowledgeAbuse = true; |
| 3352 var arg_projection = "foo"; | 3448 var arg_projection = "foo"; |
| 3353 var arg_revisionId = "foo"; | 3449 var arg_revisionId = "foo"; |
| (...skipping 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5704 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { | 5800 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs
ync(((api.Revision response) { |
| 5705 checkRevision(response); | 5801 checkRevision(response); |
| 5706 }))); | 5802 }))); |
| 5707 }); | 5803 }); |
| 5708 | 5804 |
| 5709 }); | 5805 }); |
| 5710 | 5806 |
| 5711 | 5807 |
| 5712 } | 5808 } |
| 5713 | 5809 |
| OLD | NEW |