| OLD | NEW |
| 1 library googleapis.mapsengine.v1.test; | 1 library googleapis.mapsengine.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| 11 import 'package:googleapis/common/common.dart' as common; | |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
| 13 import '../common/common_internal_test.dart' as common_test; | |
| 14 | 11 |
| 15 import 'package:googleapis/mapsengine/v1.dart' as api; | 12 import 'package:googleapis/mapsengine/v1.dart' as api; |
| 16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 18 | 53 |
| 19 core.int buildCounterAcquisitionTime = 0; | 54 core.int buildCounterAcquisitionTime = 0; |
| 20 buildAcquisitionTime() { | 55 buildAcquisitionTime() { |
| 21 var o = new api.AcquisitionTime(); | 56 var o = new api.AcquisitionTime(); |
| 22 buildCounterAcquisitionTime++; | 57 buildCounterAcquisitionTime++; |
| 23 if (buildCounterAcquisitionTime < 3) { | 58 if (buildCounterAcquisitionTime < 3) { |
| 24 o.end = core.DateTime.parse("2002-02-27T14:01:02"); | 59 o.end = core.DateTime.parse("2002-02-27T14:01:02"); |
| 25 o.precision = "foo"; | 60 o.precision = "foo"; |
| 26 o.start = core.DateTime.parse("2002-02-27T14:01:02"); | 61 o.start = core.DateTime.parse("2002-02-27T14:01:02"); |
| 27 } | 62 } |
| 28 buildCounterAcquisitionTime--; | 63 buildCounterAcquisitionTime--; |
| 29 return o; | 64 return o; |
| 30 } | 65 } |
| 31 | 66 |
| 32 checkAcquisitionTime(api.AcquisitionTime o) { | 67 checkAcquisitionTime(api.AcquisitionTime o) { |
| 33 buildCounterAcquisitionTime++; | 68 buildCounterAcquisitionTime++; |
| 34 if (buildCounterAcquisitionTime < 3) { | 69 if (buildCounterAcquisitionTime < 3) { |
| 35 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01
:02"))); | 70 unittest.expect(o.end, unittest.equals(core.DateTime.parse("2002-02-27T14:01
:02"))); |
| 36 unittest.expect(o.precision, unittest.equals('foo')); | 71 unittest.expect(o.precision, unittest.equals('foo')); |
| 37 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14:
01:02"))); | 72 unittest.expect(o.start, unittest.equals(core.DateTime.parse("2002-02-27T14:
01:02"))); |
| 38 } | 73 } |
| 39 buildCounterAcquisitionTime--; | 74 buildCounterAcquisitionTime--; |
| 40 } | 75 } |
| 41 | 76 |
| 42 buildUnnamed92() { | 77 buildUnnamed1163() { |
| 43 var o = new core.List<core.double>(); | 78 var o = new core.List<core.double>(); |
| 44 o.add(42.0); | 79 o.add(42.0); |
| 45 o.add(42.0); | 80 o.add(42.0); |
| 46 return o; | 81 return o; |
| 47 } | 82 } |
| 48 | 83 |
| 49 checkUnnamed92(core.List<core.double> o) { | 84 checkUnnamed1163(core.List<core.double> o) { |
| 50 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 51 unittest.expect(o[0], unittest.equals(42.0)); | 86 unittest.expect(o[0], unittest.equals(42.0)); |
| 52 unittest.expect(o[1], unittest.equals(42.0)); | 87 unittest.expect(o[1], unittest.equals(42.0)); |
| 53 } | 88 } |
| 54 | 89 |
| 55 buildUnnamed93() { | 90 buildUnnamed1164() { |
| 56 var o = new core.List<core.String>(); | 91 var o = new core.List<core.String>(); |
| 57 o.add("foo"); | 92 o.add("foo"); |
| 58 o.add("foo"); | 93 o.add("foo"); |
| 59 return o; | 94 return o; |
| 60 } | 95 } |
| 61 | 96 |
| 62 checkUnnamed93(core.List<core.String> o) { | 97 checkUnnamed1164(core.List<core.String> o) { |
| 63 unittest.expect(o, unittest.hasLength(2)); | 98 unittest.expect(o, unittest.hasLength(2)); |
| 64 unittest.expect(o[0], unittest.equals('foo')); | 99 unittest.expect(o[0], unittest.equals('foo')); |
| 65 unittest.expect(o[1], unittest.equals('foo')); | 100 unittest.expect(o[1], unittest.equals('foo')); |
| 66 } | 101 } |
| 67 | 102 |
| 68 core.int buildCounterAsset = 0; | 103 core.int buildCounterAsset = 0; |
| 69 buildAsset() { | 104 buildAsset() { |
| 70 var o = new api.Asset(); | 105 var o = new api.Asset(); |
| 71 buildCounterAsset++; | 106 buildCounterAsset++; |
| 72 if (buildCounterAsset < 3) { | 107 if (buildCounterAsset < 3) { |
| 73 o.bbox = buildUnnamed92(); | 108 o.bbox = buildUnnamed1163(); |
| 74 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 109 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 75 o.creatorEmail = "foo"; | 110 o.creatorEmail = "foo"; |
| 76 o.description = "foo"; | 111 o.description = "foo"; |
| 77 o.etag = "foo"; | 112 o.etag = "foo"; |
| 78 o.id = "foo"; | 113 o.id = "foo"; |
| 79 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 114 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 80 o.lastModifierEmail = "foo"; | 115 o.lastModifierEmail = "foo"; |
| 81 o.name = "foo"; | 116 o.name = "foo"; |
| 82 o.projectId = "foo"; | 117 o.projectId = "foo"; |
| 83 o.resource = "foo"; | 118 o.resource = "foo"; |
| 84 o.tags = buildUnnamed93(); | 119 o.tags = buildUnnamed1164(); |
| 85 o.type = "foo"; | 120 o.type = "foo"; |
| 86 o.writersCanEditPermissions = true; | 121 o.writersCanEditPermissions = true; |
| 87 } | 122 } |
| 88 buildCounterAsset--; | 123 buildCounterAsset--; |
| 89 return o; | 124 return o; |
| 90 } | 125 } |
| 91 | 126 |
| 92 checkAsset(api.Asset o) { | 127 checkAsset(api.Asset o) { |
| 93 buildCounterAsset++; | 128 buildCounterAsset++; |
| 94 if (buildCounterAsset < 3) { | 129 if (buildCounterAsset < 3) { |
| 95 checkUnnamed92(o.bbox); | 130 checkUnnamed1163(o.bbox); |
| 96 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 131 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 97 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 132 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 98 unittest.expect(o.description, unittest.equals('foo')); | 133 unittest.expect(o.description, unittest.equals('foo')); |
| 99 unittest.expect(o.etag, unittest.equals('foo')); | 134 unittest.expect(o.etag, unittest.equals('foo')); |
| 100 unittest.expect(o.id, unittest.equals('foo')); | 135 unittest.expect(o.id, unittest.equals('foo')); |
| 101 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 136 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 102 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 137 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 103 unittest.expect(o.name, unittest.equals('foo')); | 138 unittest.expect(o.name, unittest.equals('foo')); |
| 104 unittest.expect(o.projectId, unittest.equals('foo')); | 139 unittest.expect(o.projectId, unittest.equals('foo')); |
| 105 unittest.expect(o.resource, unittest.equals('foo')); | 140 unittest.expect(o.resource, unittest.equals('foo')); |
| 106 checkUnnamed93(o.tags); | 141 checkUnnamed1164(o.tags); |
| 107 unittest.expect(o.type, unittest.equals('foo')); | 142 unittest.expect(o.type, unittest.equals('foo')); |
| 108 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); | 143 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); |
| 109 } | 144 } |
| 110 buildCounterAsset--; | 145 buildCounterAsset--; |
| 111 } | 146 } |
| 112 | 147 |
| 113 buildUnnamed94() { | 148 buildUnnamed1165() { |
| 114 var o = new core.List<api.Asset>(); | 149 var o = new core.List<api.Asset>(); |
| 115 o.add(buildAsset()); | 150 o.add(buildAsset()); |
| 116 o.add(buildAsset()); | 151 o.add(buildAsset()); |
| 117 return o; | 152 return o; |
| 118 } | 153 } |
| 119 | 154 |
| 120 checkUnnamed94(core.List<api.Asset> o) { | 155 checkUnnamed1165(core.List<api.Asset> o) { |
| 121 unittest.expect(o, unittest.hasLength(2)); | 156 unittest.expect(o, unittest.hasLength(2)); |
| 122 checkAsset(o[0]); | 157 checkAsset(o[0]); |
| 123 checkAsset(o[1]); | 158 checkAsset(o[1]); |
| 124 } | 159 } |
| 125 | 160 |
| 126 core.int buildCounterAssetsListResponse = 0; | 161 core.int buildCounterAssetsListResponse = 0; |
| 127 buildAssetsListResponse() { | 162 buildAssetsListResponse() { |
| 128 var o = new api.AssetsListResponse(); | 163 var o = new api.AssetsListResponse(); |
| 129 buildCounterAssetsListResponse++; | 164 buildCounterAssetsListResponse++; |
| 130 if (buildCounterAssetsListResponse < 3) { | 165 if (buildCounterAssetsListResponse < 3) { |
| 131 o.assets = buildUnnamed94(); | 166 o.assets = buildUnnamed1165(); |
| 132 o.nextPageToken = "foo"; | 167 o.nextPageToken = "foo"; |
| 133 } | 168 } |
| 134 buildCounterAssetsListResponse--; | 169 buildCounterAssetsListResponse--; |
| 135 return o; | 170 return o; |
| 136 } | 171 } |
| 137 | 172 |
| 138 checkAssetsListResponse(api.AssetsListResponse o) { | 173 checkAssetsListResponse(api.AssetsListResponse o) { |
| 139 buildCounterAssetsListResponse++; | 174 buildCounterAssetsListResponse++; |
| 140 if (buildCounterAssetsListResponse < 3) { | 175 if (buildCounterAssetsListResponse < 3) { |
| 141 checkUnnamed94(o.assets); | 176 checkUnnamed1165(o.assets); |
| 142 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 177 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 143 } | 178 } |
| 144 buildCounterAssetsListResponse--; | 179 buildCounterAssetsListResponse--; |
| 145 } | 180 } |
| 146 | 181 |
| 147 core.int buildCounterBorder = 0; | 182 core.int buildCounterBorder = 0; |
| 148 buildBorder() { | 183 buildBorder() { |
| 149 var o = new api.Border(); | 184 var o = new api.Border(); |
| 150 buildCounterBorder++; | 185 buildCounterBorder++; |
| 151 if (buildCounterBorder < 3) { | 186 if (buildCounterBorder < 3) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 o.add(buildDatasource()); | 248 o.add(buildDatasource()); |
| 214 return o; | 249 return o; |
| 215 } | 250 } |
| 216 | 251 |
| 217 checkDatasources(api.Datasources o) { | 252 checkDatasources(api.Datasources o) { |
| 218 unittest.expect(o, unittest.hasLength(2)); | 253 unittest.expect(o, unittest.hasLength(2)); |
| 219 checkDatasource(o[0]); | 254 checkDatasource(o[0]); |
| 220 checkDatasource(o[1]); | 255 checkDatasource(o[1]); |
| 221 } | 256 } |
| 222 | 257 |
| 223 buildUnnamed95() { | 258 buildUnnamed1166() { |
| 224 var o = new core.List<api.Filter>(); | 259 var o = new core.List<api.Filter>(); |
| 225 o.add(buildFilter()); | 260 o.add(buildFilter()); |
| 226 o.add(buildFilter()); | 261 o.add(buildFilter()); |
| 227 return o; | 262 return o; |
| 228 } | 263 } |
| 229 | 264 |
| 230 checkUnnamed95(core.List<api.Filter> o) { | 265 checkUnnamed1166(core.List<api.Filter> o) { |
| 231 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 232 checkFilter(o[0]); | 267 checkFilter(o[0]); |
| 233 checkFilter(o[1]); | 268 checkFilter(o[1]); |
| 234 } | 269 } |
| 235 | 270 |
| 236 core.int buildCounterDisplayRule = 0; | 271 core.int buildCounterDisplayRule = 0; |
| 237 buildDisplayRule() { | 272 buildDisplayRule() { |
| 238 var o = new api.DisplayRule(); | 273 var o = new api.DisplayRule(); |
| 239 buildCounterDisplayRule++; | 274 buildCounterDisplayRule++; |
| 240 if (buildCounterDisplayRule < 3) { | 275 if (buildCounterDisplayRule < 3) { |
| 241 o.filters = buildUnnamed95(); | 276 o.filters = buildUnnamed1166(); |
| 242 o.lineOptions = buildLineStyle(); | 277 o.lineOptions = buildLineStyle(); |
| 243 o.name = "foo"; | 278 o.name = "foo"; |
| 244 o.pointOptions = buildPointStyle(); | 279 o.pointOptions = buildPointStyle(); |
| 245 o.polygonOptions = buildPolygonStyle(); | 280 o.polygonOptions = buildPolygonStyle(); |
| 246 o.zoomLevels = buildZoomLevels(); | 281 o.zoomLevels = buildZoomLevels(); |
| 247 } | 282 } |
| 248 buildCounterDisplayRule--; | 283 buildCounterDisplayRule--; |
| 249 return o; | 284 return o; |
| 250 } | 285 } |
| 251 | 286 |
| 252 checkDisplayRule(api.DisplayRule o) { | 287 checkDisplayRule(api.DisplayRule o) { |
| 253 buildCounterDisplayRule++; | 288 buildCounterDisplayRule++; |
| 254 if (buildCounterDisplayRule < 3) { | 289 if (buildCounterDisplayRule < 3) { |
| 255 checkUnnamed95(o.filters); | 290 checkUnnamed1166(o.filters); |
| 256 checkLineStyle(o.lineOptions); | 291 checkLineStyle(o.lineOptions); |
| 257 unittest.expect(o.name, unittest.equals('foo')); | 292 unittest.expect(o.name, unittest.equals('foo')); |
| 258 checkPointStyle(o.pointOptions); | 293 checkPointStyle(o.pointOptions); |
| 259 checkPolygonStyle(o.polygonOptions); | 294 checkPolygonStyle(o.polygonOptions); |
| 260 checkZoomLevels(o.zoomLevels); | 295 checkZoomLevels(o.zoomLevels); |
| 261 } | 296 } |
| 262 buildCounterDisplayRule--; | 297 buildCounterDisplayRule--; |
| 263 } | 298 } |
| 264 | 299 |
| 265 core.int buildCounterFeature = 0; | 300 core.int buildCounterFeature = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 332 } |
| 298 | 333 |
| 299 checkFeatureInfo(api.FeatureInfo o) { | 334 checkFeatureInfo(api.FeatureInfo o) { |
| 300 buildCounterFeatureInfo++; | 335 buildCounterFeatureInfo++; |
| 301 if (buildCounterFeatureInfo < 3) { | 336 if (buildCounterFeatureInfo < 3) { |
| 302 unittest.expect(o.content, unittest.equals('foo')); | 337 unittest.expect(o.content, unittest.equals('foo')); |
| 303 } | 338 } |
| 304 buildCounterFeatureInfo--; | 339 buildCounterFeatureInfo--; |
| 305 } | 340 } |
| 306 | 341 |
| 307 buildUnnamed96() { | 342 buildUnnamed1167() { |
| 308 var o = new core.List<core.String>(); | 343 var o = new core.List<core.String>(); |
| 309 o.add("foo"); | 344 o.add("foo"); |
| 310 o.add("foo"); | 345 o.add("foo"); |
| 311 return o; | 346 return o; |
| 312 } | 347 } |
| 313 | 348 |
| 314 checkUnnamed96(core.List<core.String> o) { | 349 checkUnnamed1167(core.List<core.String> o) { |
| 315 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
| 316 unittest.expect(o[0], unittest.equals('foo')); | 351 unittest.expect(o[0], unittest.equals('foo')); |
| 317 unittest.expect(o[1], unittest.equals('foo')); | 352 unittest.expect(o[1], unittest.equals('foo')); |
| 318 } | 353 } |
| 319 | 354 |
| 320 buildUnnamed97() { | 355 buildUnnamed1168() { |
| 321 var o = new core.List<core.String>(); | 356 var o = new core.List<core.String>(); |
| 322 o.add("foo"); | 357 o.add("foo"); |
| 323 o.add("foo"); | 358 o.add("foo"); |
| 324 return o; | 359 return o; |
| 325 } | 360 } |
| 326 | 361 |
| 327 checkUnnamed97(core.List<core.String> o) { | 362 checkUnnamed1168(core.List<core.String> o) { |
| 328 unittest.expect(o, unittest.hasLength(2)); | 363 unittest.expect(o, unittest.hasLength(2)); |
| 329 unittest.expect(o[0], unittest.equals('foo')); | 364 unittest.expect(o[0], unittest.equals('foo')); |
| 330 unittest.expect(o[1], unittest.equals('foo')); | 365 unittest.expect(o[1], unittest.equals('foo')); |
| 331 } | 366 } |
| 332 | 367 |
| 333 core.int buildCounterFeaturesBatchDeleteRequest = 0; | 368 core.int buildCounterFeaturesBatchDeleteRequest = 0; |
| 334 buildFeaturesBatchDeleteRequest() { | 369 buildFeaturesBatchDeleteRequest() { |
| 335 var o = new api.FeaturesBatchDeleteRequest(); | 370 var o = new api.FeaturesBatchDeleteRequest(); |
| 336 buildCounterFeaturesBatchDeleteRequest++; | 371 buildCounterFeaturesBatchDeleteRequest++; |
| 337 if (buildCounterFeaturesBatchDeleteRequest < 3) { | 372 if (buildCounterFeaturesBatchDeleteRequest < 3) { |
| 338 o.gxIds = buildUnnamed96(); | 373 o.gxIds = buildUnnamed1167(); |
| 339 o.primaryKeys = buildUnnamed97(); | 374 o.primaryKeys = buildUnnamed1168(); |
| 340 } | 375 } |
| 341 buildCounterFeaturesBatchDeleteRequest--; | 376 buildCounterFeaturesBatchDeleteRequest--; |
| 342 return o; | 377 return o; |
| 343 } | 378 } |
| 344 | 379 |
| 345 checkFeaturesBatchDeleteRequest(api.FeaturesBatchDeleteRequest o) { | 380 checkFeaturesBatchDeleteRequest(api.FeaturesBatchDeleteRequest o) { |
| 346 buildCounterFeaturesBatchDeleteRequest++; | 381 buildCounterFeaturesBatchDeleteRequest++; |
| 347 if (buildCounterFeaturesBatchDeleteRequest < 3) { | 382 if (buildCounterFeaturesBatchDeleteRequest < 3) { |
| 348 checkUnnamed96(o.gxIds); | 383 checkUnnamed1167(o.gxIds); |
| 349 checkUnnamed97(o.primaryKeys); | 384 checkUnnamed1168(o.primaryKeys); |
| 350 } | 385 } |
| 351 buildCounterFeaturesBatchDeleteRequest--; | 386 buildCounterFeaturesBatchDeleteRequest--; |
| 352 } | 387 } |
| 353 | 388 |
| 354 buildUnnamed98() { | 389 buildUnnamed1169() { |
| 355 var o = new core.List<api.Feature>(); | 390 var o = new core.List<api.Feature>(); |
| 356 o.add(buildFeature()); | 391 o.add(buildFeature()); |
| 357 o.add(buildFeature()); | 392 o.add(buildFeature()); |
| 358 return o; | 393 return o; |
| 359 } | 394 } |
| 360 | 395 |
| 361 checkUnnamed98(core.List<api.Feature> o) { | 396 checkUnnamed1169(core.List<api.Feature> o) { |
| 362 unittest.expect(o, unittest.hasLength(2)); | 397 unittest.expect(o, unittest.hasLength(2)); |
| 363 checkFeature(o[0]); | 398 checkFeature(o[0]); |
| 364 checkFeature(o[1]); | 399 checkFeature(o[1]); |
| 365 } | 400 } |
| 366 | 401 |
| 367 core.int buildCounterFeaturesBatchInsertRequest = 0; | 402 core.int buildCounterFeaturesBatchInsertRequest = 0; |
| 368 buildFeaturesBatchInsertRequest() { | 403 buildFeaturesBatchInsertRequest() { |
| 369 var o = new api.FeaturesBatchInsertRequest(); | 404 var o = new api.FeaturesBatchInsertRequest(); |
| 370 buildCounterFeaturesBatchInsertRequest++; | 405 buildCounterFeaturesBatchInsertRequest++; |
| 371 if (buildCounterFeaturesBatchInsertRequest < 3) { | 406 if (buildCounterFeaturesBatchInsertRequest < 3) { |
| 372 o.features = buildUnnamed98(); | 407 o.features = buildUnnamed1169(); |
| 373 o.normalizeGeometries = true; | 408 o.normalizeGeometries = true; |
| 374 } | 409 } |
| 375 buildCounterFeaturesBatchInsertRequest--; | 410 buildCounterFeaturesBatchInsertRequest--; |
| 376 return o; | 411 return o; |
| 377 } | 412 } |
| 378 | 413 |
| 379 checkFeaturesBatchInsertRequest(api.FeaturesBatchInsertRequest o) { | 414 checkFeaturesBatchInsertRequest(api.FeaturesBatchInsertRequest o) { |
| 380 buildCounterFeaturesBatchInsertRequest++; | 415 buildCounterFeaturesBatchInsertRequest++; |
| 381 if (buildCounterFeaturesBatchInsertRequest < 3) { | 416 if (buildCounterFeaturesBatchInsertRequest < 3) { |
| 382 checkUnnamed98(o.features); | 417 checkUnnamed1169(o.features); |
| 383 unittest.expect(o.normalizeGeometries, unittest.isTrue); | 418 unittest.expect(o.normalizeGeometries, unittest.isTrue); |
| 384 } | 419 } |
| 385 buildCounterFeaturesBatchInsertRequest--; | 420 buildCounterFeaturesBatchInsertRequest--; |
| 386 } | 421 } |
| 387 | 422 |
| 388 buildUnnamed99() { | 423 buildUnnamed1170() { |
| 389 var o = new core.List<api.Feature>(); | 424 var o = new core.List<api.Feature>(); |
| 390 o.add(buildFeature()); | 425 o.add(buildFeature()); |
| 391 o.add(buildFeature()); | 426 o.add(buildFeature()); |
| 392 return o; | 427 return o; |
| 393 } | 428 } |
| 394 | 429 |
| 395 checkUnnamed99(core.List<api.Feature> o) { | 430 checkUnnamed1170(core.List<api.Feature> o) { |
| 396 unittest.expect(o, unittest.hasLength(2)); | 431 unittest.expect(o, unittest.hasLength(2)); |
| 397 checkFeature(o[0]); | 432 checkFeature(o[0]); |
| 398 checkFeature(o[1]); | 433 checkFeature(o[1]); |
| 399 } | 434 } |
| 400 | 435 |
| 401 core.int buildCounterFeaturesBatchPatchRequest = 0; | 436 core.int buildCounterFeaturesBatchPatchRequest = 0; |
| 402 buildFeaturesBatchPatchRequest() { | 437 buildFeaturesBatchPatchRequest() { |
| 403 var o = new api.FeaturesBatchPatchRequest(); | 438 var o = new api.FeaturesBatchPatchRequest(); |
| 404 buildCounterFeaturesBatchPatchRequest++; | 439 buildCounterFeaturesBatchPatchRequest++; |
| 405 if (buildCounterFeaturesBatchPatchRequest < 3) { | 440 if (buildCounterFeaturesBatchPatchRequest < 3) { |
| 406 o.features = buildUnnamed99(); | 441 o.features = buildUnnamed1170(); |
| 407 o.normalizeGeometries = true; | 442 o.normalizeGeometries = true; |
| 408 } | 443 } |
| 409 buildCounterFeaturesBatchPatchRequest--; | 444 buildCounterFeaturesBatchPatchRequest--; |
| 410 return o; | 445 return o; |
| 411 } | 446 } |
| 412 | 447 |
| 413 checkFeaturesBatchPatchRequest(api.FeaturesBatchPatchRequest o) { | 448 checkFeaturesBatchPatchRequest(api.FeaturesBatchPatchRequest o) { |
| 414 buildCounterFeaturesBatchPatchRequest++; | 449 buildCounterFeaturesBatchPatchRequest++; |
| 415 if (buildCounterFeaturesBatchPatchRequest < 3) { | 450 if (buildCounterFeaturesBatchPatchRequest < 3) { |
| 416 checkUnnamed99(o.features); | 451 checkUnnamed1170(o.features); |
| 417 unittest.expect(o.normalizeGeometries, unittest.isTrue); | 452 unittest.expect(o.normalizeGeometries, unittest.isTrue); |
| 418 } | 453 } |
| 419 buildCounterFeaturesBatchPatchRequest--; | 454 buildCounterFeaturesBatchPatchRequest--; |
| 420 } | 455 } |
| 421 | 456 |
| 422 buildUnnamed100() { | 457 buildUnnamed1171() { |
| 423 var o = new core.List<api.Feature>(); | 458 var o = new core.List<api.Feature>(); |
| 424 o.add(buildFeature()); | 459 o.add(buildFeature()); |
| 425 o.add(buildFeature()); | 460 o.add(buildFeature()); |
| 426 return o; | 461 return o; |
| 427 } | 462 } |
| 428 | 463 |
| 429 checkUnnamed100(core.List<api.Feature> o) { | 464 checkUnnamed1171(core.List<api.Feature> o) { |
| 430 unittest.expect(o, unittest.hasLength(2)); | 465 unittest.expect(o, unittest.hasLength(2)); |
| 431 checkFeature(o[0]); | 466 checkFeature(o[0]); |
| 432 checkFeature(o[1]); | 467 checkFeature(o[1]); |
| 433 } | 468 } |
| 434 | 469 |
| 435 core.int buildCounterFeaturesListResponse = 0; | 470 core.int buildCounterFeaturesListResponse = 0; |
| 436 buildFeaturesListResponse() { | 471 buildFeaturesListResponse() { |
| 437 var o = new api.FeaturesListResponse(); | 472 var o = new api.FeaturesListResponse(); |
| 438 buildCounterFeaturesListResponse++; | 473 buildCounterFeaturesListResponse++; |
| 439 if (buildCounterFeaturesListResponse < 3) { | 474 if (buildCounterFeaturesListResponse < 3) { |
| 440 o.allowedQueriesPerSecond = 42.0; | 475 o.allowedQueriesPerSecond = 42.0; |
| 441 o.features = buildUnnamed100(); | 476 o.features = buildUnnamed1171(); |
| 442 o.nextPageToken = "foo"; | 477 o.nextPageToken = "foo"; |
| 443 o.schema = buildSchema(); | 478 o.schema = buildSchema(); |
| 444 o.type = "foo"; | 479 o.type = "foo"; |
| 445 } | 480 } |
| 446 buildCounterFeaturesListResponse--; | 481 buildCounterFeaturesListResponse--; |
| 447 return o; | 482 return o; |
| 448 } | 483 } |
| 449 | 484 |
| 450 checkFeaturesListResponse(api.FeaturesListResponse o) { | 485 checkFeaturesListResponse(api.FeaturesListResponse o) { |
| 451 buildCounterFeaturesListResponse++; | 486 buildCounterFeaturesListResponse++; |
| 452 if (buildCounterFeaturesListResponse < 3) { | 487 if (buildCounterFeaturesListResponse < 3) { |
| 453 unittest.expect(o.allowedQueriesPerSecond, unittest.equals(42.0)); | 488 unittest.expect(o.allowedQueriesPerSecond, unittest.equals(42.0)); |
| 454 checkUnnamed100(o.features); | 489 checkUnnamed1171(o.features); |
| 455 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 490 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 456 checkSchema(o.schema); | 491 checkSchema(o.schema); |
| 457 unittest.expect(o.type, unittest.equals('foo')); | 492 unittest.expect(o.type, unittest.equals('foo')); |
| 458 } | 493 } |
| 459 buildCounterFeaturesListResponse--; | 494 buildCounterFeaturesListResponse--; |
| 460 } | 495 } |
| 461 | 496 |
| 462 core.int buildCounterFile = 0; | 497 core.int buildCounterFile = 0; |
| 463 buildFile() { | 498 buildFile() { |
| 464 var o = new api.File(); | 499 var o = new api.File(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 } | 541 } |
| 507 | 542 |
| 508 buildGeoJsonGeometry() { | 543 buildGeoJsonGeometry() { |
| 509 return buildGeoJsonGeometryCollection(); | 544 return buildGeoJsonGeometryCollection(); |
| 510 } | 545 } |
| 511 | 546 |
| 512 checkGeoJsonGeometry(api.GeoJsonGeometry o) { | 547 checkGeoJsonGeometry(api.GeoJsonGeometry o) { |
| 513 checkGeoJsonGeometryCollection(api.GeoJsonGeometryCollection o) { | 548 checkGeoJsonGeometryCollection(api.GeoJsonGeometryCollection o) { |
| 514 buildCounterGeoJsonGeometryCollection++; | 549 buildCounterGeoJsonGeometryCollection++; |
| 515 if (buildCounterGeoJsonGeometryCollection < 3) { | 550 if (buildCounterGeoJsonGeometryCollection < 3) { |
| 516 checkUnnamed101(o.geometries); | 551 checkUnnamed1172(o.geometries); |
| 517 } | 552 } |
| 518 buildCounterGeoJsonGeometryCollection--; | 553 buildCounterGeoJsonGeometryCollection--; |
| 519 } | 554 } |
| 520 | 555 |
| 521 (o); | 556 (o); |
| 522 } | 557 } |
| 523 | 558 |
| 524 buildUnnamed101() { | 559 buildUnnamed1172() { |
| 525 var o = new core.List<api.GeoJsonGeometry>(); | 560 var o = new core.List<api.GeoJsonGeometry>(); |
| 526 o.add(buildGeoJsonGeometry()); | 561 o.add(buildGeoJsonGeometry()); |
| 527 o.add(buildGeoJsonGeometry()); | 562 o.add(buildGeoJsonGeometry()); |
| 528 return o; | 563 return o; |
| 529 } | 564 } |
| 530 | 565 |
| 531 checkUnnamed101(core.List<api.GeoJsonGeometry> o) { | 566 checkUnnamed1172(core.List<api.GeoJsonGeometry> o) { |
| 532 unittest.expect(o, unittest.hasLength(2)); | 567 unittest.expect(o, unittest.hasLength(2)); |
| 533 checkGeoJsonGeometry(o[0]); | 568 checkGeoJsonGeometry(o[0]); |
| 534 checkGeoJsonGeometry(o[1]); | 569 checkGeoJsonGeometry(o[1]); |
| 535 } | 570 } |
| 536 | 571 |
| 537 core.int buildCounterGeoJsonGeometryCollection = 0; | 572 core.int buildCounterGeoJsonGeometryCollection = 0; |
| 538 buildGeoJsonGeometryCollection() { | 573 buildGeoJsonGeometryCollection() { |
| 539 var o = new api.GeoJsonGeometryCollection(); | 574 var o = new api.GeoJsonGeometryCollection(); |
| 540 buildCounterGeoJsonGeometryCollection++; | 575 buildCounterGeoJsonGeometryCollection++; |
| 541 if (buildCounterGeoJsonGeometryCollection < 3) { | 576 if (buildCounterGeoJsonGeometryCollection < 3) { |
| 542 o.geometries = buildUnnamed101(); | 577 o.geometries = buildUnnamed1172(); |
| 543 } | 578 } |
| 544 buildCounterGeoJsonGeometryCollection--; | 579 buildCounterGeoJsonGeometryCollection--; |
| 545 return o; | 580 return o; |
| 546 } | 581 } |
| 547 | 582 |
| 548 checkGeoJsonGeometryCollection(api.GeoJsonGeometryCollection o) { | 583 checkGeoJsonGeometryCollection(api.GeoJsonGeometryCollection o) { |
| 549 buildCounterGeoJsonGeometryCollection++; | 584 buildCounterGeoJsonGeometryCollection++; |
| 550 if (buildCounterGeoJsonGeometryCollection < 3) { | 585 if (buildCounterGeoJsonGeometryCollection < 3) { |
| 551 checkUnnamed101(o.geometries); | 586 checkUnnamed1172(o.geometries); |
| 552 } | 587 } |
| 553 buildCounterGeoJsonGeometryCollection--; | 588 buildCounterGeoJsonGeometryCollection--; |
| 554 } | 589 } |
| 555 | 590 |
| 556 buildUnnamed102() { | 591 buildUnnamed1173() { |
| 557 var o = new core.List<api.GeoJsonPosition>(); | 592 var o = new core.List<api.GeoJsonPosition>(); |
| 558 o.add(buildGeoJsonPosition()); | 593 o.add(buildGeoJsonPosition()); |
| 559 o.add(buildGeoJsonPosition()); | 594 o.add(buildGeoJsonPosition()); |
| 560 return o; | 595 return o; |
| 561 } | 596 } |
| 562 | 597 |
| 563 checkUnnamed102(core.List<api.GeoJsonPosition> o) { | 598 checkUnnamed1173(core.List<api.GeoJsonPosition> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
| 565 checkGeoJsonPosition(o[0]); | 600 checkGeoJsonPosition(o[0]); |
| 566 checkGeoJsonPosition(o[1]); | 601 checkGeoJsonPosition(o[1]); |
| 567 } | 602 } |
| 568 | 603 |
| 569 core.int buildCounterGeoJsonLineString = 0; | 604 core.int buildCounterGeoJsonLineString = 0; |
| 570 buildGeoJsonLineString() { | 605 buildGeoJsonLineString() { |
| 571 var o = new api.GeoJsonLineString(); | 606 var o = new api.GeoJsonLineString(); |
| 572 buildCounterGeoJsonLineString++; | 607 buildCounterGeoJsonLineString++; |
| 573 if (buildCounterGeoJsonLineString < 3) { | 608 if (buildCounterGeoJsonLineString < 3) { |
| 574 o.coordinates = buildUnnamed102(); | 609 o.coordinates = buildUnnamed1173(); |
| 575 } | 610 } |
| 576 buildCounterGeoJsonLineString--; | 611 buildCounterGeoJsonLineString--; |
| 577 return o; | 612 return o; |
| 578 } | 613 } |
| 579 | 614 |
| 580 checkGeoJsonLineString(api.GeoJsonLineString o) { | 615 checkGeoJsonLineString(api.GeoJsonLineString o) { |
| 581 buildCounterGeoJsonLineString++; | 616 buildCounterGeoJsonLineString++; |
| 582 if (buildCounterGeoJsonLineString < 3) { | 617 if (buildCounterGeoJsonLineString < 3) { |
| 583 checkUnnamed102(o.coordinates); | 618 checkUnnamed1173(o.coordinates); |
| 584 } | 619 } |
| 585 buildCounterGeoJsonLineString--; | 620 buildCounterGeoJsonLineString--; |
| 586 } | 621 } |
| 587 | 622 |
| 588 buildUnnamed103() { | 623 buildUnnamed1174() { |
| 589 var o = new core.List<api.GeoJsonPosition>(); | 624 var o = new core.List<api.GeoJsonPosition>(); |
| 590 o.add(buildGeoJsonPosition()); | 625 o.add(buildGeoJsonPosition()); |
| 591 o.add(buildGeoJsonPosition()); | 626 o.add(buildGeoJsonPosition()); |
| 592 return o; | 627 return o; |
| 593 } | 628 } |
| 594 | 629 |
| 595 checkUnnamed103(core.List<api.GeoJsonPosition> o) { | 630 checkUnnamed1174(core.List<api.GeoJsonPosition> o) { |
| 596 unittest.expect(o, unittest.hasLength(2)); | 631 unittest.expect(o, unittest.hasLength(2)); |
| 597 checkGeoJsonPosition(o[0]); | 632 checkGeoJsonPosition(o[0]); |
| 598 checkGeoJsonPosition(o[1]); | 633 checkGeoJsonPosition(o[1]); |
| 599 } | 634 } |
| 600 | 635 |
| 601 buildUnnamed104() { | 636 buildUnnamed1175() { |
| 602 var o = new core.List<core.List<api.GeoJsonPosition>>(); | 637 var o = new core.List<core.List<api.GeoJsonPosition>>(); |
| 603 o.add(buildUnnamed103()); | 638 o.add(buildUnnamed1174()); |
| 604 o.add(buildUnnamed103()); | 639 o.add(buildUnnamed1174()); |
| 605 return o; | 640 return o; |
| 606 } | 641 } |
| 607 | 642 |
| 608 checkUnnamed104(core.List<core.List<api.GeoJsonPosition>> o) { | 643 checkUnnamed1175(core.List<core.List<api.GeoJsonPosition>> o) { |
| 609 unittest.expect(o, unittest.hasLength(2)); | 644 unittest.expect(o, unittest.hasLength(2)); |
| 610 checkUnnamed103(o[0]); | 645 checkUnnamed1174(o[0]); |
| 611 checkUnnamed103(o[1]); | 646 checkUnnamed1174(o[1]); |
| 612 } | 647 } |
| 613 | 648 |
| 614 core.int buildCounterGeoJsonMultiLineString = 0; | 649 core.int buildCounterGeoJsonMultiLineString = 0; |
| 615 buildGeoJsonMultiLineString() { | 650 buildGeoJsonMultiLineString() { |
| 616 var o = new api.GeoJsonMultiLineString(); | 651 var o = new api.GeoJsonMultiLineString(); |
| 617 buildCounterGeoJsonMultiLineString++; | 652 buildCounterGeoJsonMultiLineString++; |
| 618 if (buildCounterGeoJsonMultiLineString < 3) { | 653 if (buildCounterGeoJsonMultiLineString < 3) { |
| 619 o.coordinates = buildUnnamed104(); | 654 o.coordinates = buildUnnamed1175(); |
| 620 } | 655 } |
| 621 buildCounterGeoJsonMultiLineString--; | 656 buildCounterGeoJsonMultiLineString--; |
| 622 return o; | 657 return o; |
| 623 } | 658 } |
| 624 | 659 |
| 625 checkGeoJsonMultiLineString(api.GeoJsonMultiLineString o) { | 660 checkGeoJsonMultiLineString(api.GeoJsonMultiLineString o) { |
| 626 buildCounterGeoJsonMultiLineString++; | 661 buildCounterGeoJsonMultiLineString++; |
| 627 if (buildCounterGeoJsonMultiLineString < 3) { | 662 if (buildCounterGeoJsonMultiLineString < 3) { |
| 628 checkUnnamed104(o.coordinates); | 663 checkUnnamed1175(o.coordinates); |
| 629 } | 664 } |
| 630 buildCounterGeoJsonMultiLineString--; | 665 buildCounterGeoJsonMultiLineString--; |
| 631 } | 666 } |
| 632 | 667 |
| 633 buildUnnamed105() { | 668 buildUnnamed1176() { |
| 634 var o = new core.List<api.GeoJsonPosition>(); | 669 var o = new core.List<api.GeoJsonPosition>(); |
| 635 o.add(buildGeoJsonPosition()); | 670 o.add(buildGeoJsonPosition()); |
| 636 o.add(buildGeoJsonPosition()); | 671 o.add(buildGeoJsonPosition()); |
| 637 return o; | 672 return o; |
| 638 } | 673 } |
| 639 | 674 |
| 640 checkUnnamed105(core.List<api.GeoJsonPosition> o) { | 675 checkUnnamed1176(core.List<api.GeoJsonPosition> o) { |
| 641 unittest.expect(o, unittest.hasLength(2)); | 676 unittest.expect(o, unittest.hasLength(2)); |
| 642 checkGeoJsonPosition(o[0]); | 677 checkGeoJsonPosition(o[0]); |
| 643 checkGeoJsonPosition(o[1]); | 678 checkGeoJsonPosition(o[1]); |
| 644 } | 679 } |
| 645 | 680 |
| 646 core.int buildCounterGeoJsonMultiPoint = 0; | 681 core.int buildCounterGeoJsonMultiPoint = 0; |
| 647 buildGeoJsonMultiPoint() { | 682 buildGeoJsonMultiPoint() { |
| 648 var o = new api.GeoJsonMultiPoint(); | 683 var o = new api.GeoJsonMultiPoint(); |
| 649 buildCounterGeoJsonMultiPoint++; | 684 buildCounterGeoJsonMultiPoint++; |
| 650 if (buildCounterGeoJsonMultiPoint < 3) { | 685 if (buildCounterGeoJsonMultiPoint < 3) { |
| 651 o.coordinates = buildUnnamed105(); | 686 o.coordinates = buildUnnamed1176(); |
| 652 } | 687 } |
| 653 buildCounterGeoJsonMultiPoint--; | 688 buildCounterGeoJsonMultiPoint--; |
| 654 return o; | 689 return o; |
| 655 } | 690 } |
| 656 | 691 |
| 657 checkGeoJsonMultiPoint(api.GeoJsonMultiPoint o) { | 692 checkGeoJsonMultiPoint(api.GeoJsonMultiPoint o) { |
| 658 buildCounterGeoJsonMultiPoint++; | 693 buildCounterGeoJsonMultiPoint++; |
| 659 if (buildCounterGeoJsonMultiPoint < 3) { | 694 if (buildCounterGeoJsonMultiPoint < 3) { |
| 660 checkUnnamed105(o.coordinates); | 695 checkUnnamed1176(o.coordinates); |
| 661 } | 696 } |
| 662 buildCounterGeoJsonMultiPoint--; | 697 buildCounterGeoJsonMultiPoint--; |
| 663 } | 698 } |
| 664 | 699 |
| 665 buildUnnamed106() { | 700 buildUnnamed1177() { |
| 666 var o = new core.List<api.GeoJsonPosition>(); | 701 var o = new core.List<api.GeoJsonPosition>(); |
| 667 o.add(buildGeoJsonPosition()); | 702 o.add(buildGeoJsonPosition()); |
| 668 o.add(buildGeoJsonPosition()); | 703 o.add(buildGeoJsonPosition()); |
| 669 return o; | 704 return o; |
| 670 } | 705 } |
| 671 | 706 |
| 672 checkUnnamed106(core.List<api.GeoJsonPosition> o) { | 707 checkUnnamed1177(core.List<api.GeoJsonPosition> o) { |
| 673 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
| 674 checkGeoJsonPosition(o[0]); | 709 checkGeoJsonPosition(o[0]); |
| 675 checkGeoJsonPosition(o[1]); | 710 checkGeoJsonPosition(o[1]); |
| 676 } | 711 } |
| 677 | 712 |
| 678 buildUnnamed107() { | 713 buildUnnamed1178() { |
| 679 var o = new core.List<core.List<api.GeoJsonPosition>>(); | 714 var o = new core.List<core.List<api.GeoJsonPosition>>(); |
| 680 o.add(buildUnnamed106()); | 715 o.add(buildUnnamed1177()); |
| 681 o.add(buildUnnamed106()); | 716 o.add(buildUnnamed1177()); |
| 682 return o; | 717 return o; |
| 683 } | 718 } |
| 684 | 719 |
| 685 checkUnnamed107(core.List<core.List<api.GeoJsonPosition>> o) { | 720 checkUnnamed1178(core.List<core.List<api.GeoJsonPosition>> o) { |
| 686 unittest.expect(o, unittest.hasLength(2)); | 721 unittest.expect(o, unittest.hasLength(2)); |
| 687 checkUnnamed106(o[0]); | 722 checkUnnamed1177(o[0]); |
| 688 checkUnnamed106(o[1]); | 723 checkUnnamed1177(o[1]); |
| 689 } | 724 } |
| 690 | 725 |
| 691 buildUnnamed108() { | 726 buildUnnamed1179() { |
| 692 var o = new core.List<core.List<core.List<api.GeoJsonPosition>>>(); | 727 var o = new core.List<core.List<core.List<api.GeoJsonPosition>>>(); |
| 693 o.add(buildUnnamed107()); | 728 o.add(buildUnnamed1178()); |
| 694 o.add(buildUnnamed107()); | 729 o.add(buildUnnamed1178()); |
| 695 return o; | 730 return o; |
| 696 } | 731 } |
| 697 | 732 |
| 698 checkUnnamed108(core.List<core.List<core.List<api.GeoJsonPosition>>> o) { | 733 checkUnnamed1179(core.List<core.List<core.List<api.GeoJsonPosition>>> o) { |
| 699 unittest.expect(o, unittest.hasLength(2)); | 734 unittest.expect(o, unittest.hasLength(2)); |
| 700 checkUnnamed107(o[0]); | 735 checkUnnamed1178(o[0]); |
| 701 checkUnnamed107(o[1]); | 736 checkUnnamed1178(o[1]); |
| 702 } | 737 } |
| 703 | 738 |
| 704 core.int buildCounterGeoJsonMultiPolygon = 0; | 739 core.int buildCounterGeoJsonMultiPolygon = 0; |
| 705 buildGeoJsonMultiPolygon() { | 740 buildGeoJsonMultiPolygon() { |
| 706 var o = new api.GeoJsonMultiPolygon(); | 741 var o = new api.GeoJsonMultiPolygon(); |
| 707 buildCounterGeoJsonMultiPolygon++; | 742 buildCounterGeoJsonMultiPolygon++; |
| 708 if (buildCounterGeoJsonMultiPolygon < 3) { | 743 if (buildCounterGeoJsonMultiPolygon < 3) { |
| 709 o.coordinates = buildUnnamed108(); | 744 o.coordinates = buildUnnamed1179(); |
| 710 } | 745 } |
| 711 buildCounterGeoJsonMultiPolygon--; | 746 buildCounterGeoJsonMultiPolygon--; |
| 712 return o; | 747 return o; |
| 713 } | 748 } |
| 714 | 749 |
| 715 checkGeoJsonMultiPolygon(api.GeoJsonMultiPolygon o) { | 750 checkGeoJsonMultiPolygon(api.GeoJsonMultiPolygon o) { |
| 716 buildCounterGeoJsonMultiPolygon++; | 751 buildCounterGeoJsonMultiPolygon++; |
| 717 if (buildCounterGeoJsonMultiPolygon < 3) { | 752 if (buildCounterGeoJsonMultiPolygon < 3) { |
| 718 checkUnnamed108(o.coordinates); | 753 checkUnnamed1179(o.coordinates); |
| 719 } | 754 } |
| 720 buildCounterGeoJsonMultiPolygon--; | 755 buildCounterGeoJsonMultiPolygon--; |
| 721 } | 756 } |
| 722 | 757 |
| 723 core.int buildCounterGeoJsonPoint = 0; | 758 core.int buildCounterGeoJsonPoint = 0; |
| 724 buildGeoJsonPoint() { | 759 buildGeoJsonPoint() { |
| 725 var o = new api.GeoJsonPoint(); | 760 var o = new api.GeoJsonPoint(); |
| 726 buildCounterGeoJsonPoint++; | 761 buildCounterGeoJsonPoint++; |
| 727 if (buildCounterGeoJsonPoint < 3) { | 762 if (buildCounterGeoJsonPoint < 3) { |
| 728 o.coordinates = buildGeoJsonPosition(); | 763 o.coordinates = buildGeoJsonPosition(); |
| 729 } | 764 } |
| 730 buildCounterGeoJsonPoint--; | 765 buildCounterGeoJsonPoint--; |
| 731 return o; | 766 return o; |
| 732 } | 767 } |
| 733 | 768 |
| 734 checkGeoJsonPoint(api.GeoJsonPoint o) { | 769 checkGeoJsonPoint(api.GeoJsonPoint o) { |
| 735 buildCounterGeoJsonPoint++; | 770 buildCounterGeoJsonPoint++; |
| 736 if (buildCounterGeoJsonPoint < 3) { | 771 if (buildCounterGeoJsonPoint < 3) { |
| 737 checkGeoJsonPosition(o.coordinates); | 772 checkGeoJsonPosition(o.coordinates); |
| 738 } | 773 } |
| 739 buildCounterGeoJsonPoint--; | 774 buildCounterGeoJsonPoint--; |
| 740 } | 775 } |
| 741 | 776 |
| 742 buildUnnamed109() { | 777 buildUnnamed1180() { |
| 743 var o = new core.List<api.GeoJsonPosition>(); | 778 var o = new core.List<api.GeoJsonPosition>(); |
| 744 o.add(buildGeoJsonPosition()); | 779 o.add(buildGeoJsonPosition()); |
| 745 o.add(buildGeoJsonPosition()); | 780 o.add(buildGeoJsonPosition()); |
| 746 return o; | 781 return o; |
| 747 } | 782 } |
| 748 | 783 |
| 749 checkUnnamed109(core.List<api.GeoJsonPosition> o) { | 784 checkUnnamed1180(core.List<api.GeoJsonPosition> o) { |
| 750 unittest.expect(o, unittest.hasLength(2)); | 785 unittest.expect(o, unittest.hasLength(2)); |
| 751 checkGeoJsonPosition(o[0]); | 786 checkGeoJsonPosition(o[0]); |
| 752 checkGeoJsonPosition(o[1]); | 787 checkGeoJsonPosition(o[1]); |
| 753 } | 788 } |
| 754 | 789 |
| 755 buildUnnamed110() { | 790 buildUnnamed1181() { |
| 756 var o = new core.List<core.List<api.GeoJsonPosition>>(); | 791 var o = new core.List<core.List<api.GeoJsonPosition>>(); |
| 757 o.add(buildUnnamed109()); | 792 o.add(buildUnnamed1180()); |
| 758 o.add(buildUnnamed109()); | 793 o.add(buildUnnamed1180()); |
| 759 return o; | 794 return o; |
| 760 } | 795 } |
| 761 | 796 |
| 762 checkUnnamed110(core.List<core.List<api.GeoJsonPosition>> o) { | 797 checkUnnamed1181(core.List<core.List<api.GeoJsonPosition>> o) { |
| 763 unittest.expect(o, unittest.hasLength(2)); | 798 unittest.expect(o, unittest.hasLength(2)); |
| 764 checkUnnamed109(o[0]); | 799 checkUnnamed1180(o[0]); |
| 765 checkUnnamed109(o[1]); | 800 checkUnnamed1180(o[1]); |
| 766 } | 801 } |
| 767 | 802 |
| 768 core.int buildCounterGeoJsonPolygon = 0; | 803 core.int buildCounterGeoJsonPolygon = 0; |
| 769 buildGeoJsonPolygon() { | 804 buildGeoJsonPolygon() { |
| 770 var o = new api.GeoJsonPolygon(); | 805 var o = new api.GeoJsonPolygon(); |
| 771 buildCounterGeoJsonPolygon++; | 806 buildCounterGeoJsonPolygon++; |
| 772 if (buildCounterGeoJsonPolygon < 3) { | 807 if (buildCounterGeoJsonPolygon < 3) { |
| 773 o.coordinates = buildUnnamed110(); | 808 o.coordinates = buildUnnamed1181(); |
| 774 } | 809 } |
| 775 buildCounterGeoJsonPolygon--; | 810 buildCounterGeoJsonPolygon--; |
| 776 return o; | 811 return o; |
| 777 } | 812 } |
| 778 | 813 |
| 779 checkGeoJsonPolygon(api.GeoJsonPolygon o) { | 814 checkGeoJsonPolygon(api.GeoJsonPolygon o) { |
| 780 buildCounterGeoJsonPolygon++; | 815 buildCounterGeoJsonPolygon++; |
| 781 if (buildCounterGeoJsonPolygon < 3) { | 816 if (buildCounterGeoJsonPolygon < 3) { |
| 782 checkUnnamed110(o.coordinates); | 817 checkUnnamed1181(o.coordinates); |
| 783 } | 818 } |
| 784 buildCounterGeoJsonPolygon--; | 819 buildCounterGeoJsonPolygon--; |
| 785 } | 820 } |
| 786 | 821 |
| 787 buildGeoJsonPosition() { | 822 buildGeoJsonPosition() { |
| 788 var o = new api.GeoJsonPosition(); | 823 var o = new api.GeoJsonPosition(); |
| 789 o.add(42.0); | 824 o.add(42.0); |
| 790 o.add(42.0); | 825 o.add(42.0); |
| 791 return o; | 826 return o; |
| 792 } | 827 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 buildCounterIconStyle++; | 886 buildCounterIconStyle++; |
| 852 if (buildCounterIconStyle < 3) { | 887 if (buildCounterIconStyle < 3) { |
| 853 unittest.expect(o.id, unittest.equals('foo')); | 888 unittest.expect(o.id, unittest.equals('foo')); |
| 854 unittest.expect(o.name, unittest.equals('foo')); | 889 unittest.expect(o.name, unittest.equals('foo')); |
| 855 checkScaledShape(o.scaledShape); | 890 checkScaledShape(o.scaledShape); |
| 856 checkScalingFunction(o.scalingFunction); | 891 checkScalingFunction(o.scalingFunction); |
| 857 } | 892 } |
| 858 buildCounterIconStyle--; | 893 buildCounterIconStyle--; |
| 859 } | 894 } |
| 860 | 895 |
| 861 buildUnnamed111() { | 896 buildUnnamed1182() { |
| 862 var o = new core.List<api.Icon>(); | 897 var o = new core.List<api.Icon>(); |
| 863 o.add(buildIcon()); | 898 o.add(buildIcon()); |
| 864 o.add(buildIcon()); | 899 o.add(buildIcon()); |
| 865 return o; | 900 return o; |
| 866 } | 901 } |
| 867 | 902 |
| 868 checkUnnamed111(core.List<api.Icon> o) { | 903 checkUnnamed1182(core.List<api.Icon> o) { |
| 869 unittest.expect(o, unittest.hasLength(2)); | 904 unittest.expect(o, unittest.hasLength(2)); |
| 870 checkIcon(o[0]); | 905 checkIcon(o[0]); |
| 871 checkIcon(o[1]); | 906 checkIcon(o[1]); |
| 872 } | 907 } |
| 873 | 908 |
| 874 core.int buildCounterIconsListResponse = 0; | 909 core.int buildCounterIconsListResponse = 0; |
| 875 buildIconsListResponse() { | 910 buildIconsListResponse() { |
| 876 var o = new api.IconsListResponse(); | 911 var o = new api.IconsListResponse(); |
| 877 buildCounterIconsListResponse++; | 912 buildCounterIconsListResponse++; |
| 878 if (buildCounterIconsListResponse < 3) { | 913 if (buildCounterIconsListResponse < 3) { |
| 879 o.icons = buildUnnamed111(); | 914 o.icons = buildUnnamed1182(); |
| 880 o.nextPageToken = "foo"; | 915 o.nextPageToken = "foo"; |
| 881 } | 916 } |
| 882 buildCounterIconsListResponse--; | 917 buildCounterIconsListResponse--; |
| 883 return o; | 918 return o; |
| 884 } | 919 } |
| 885 | 920 |
| 886 checkIconsListResponse(api.IconsListResponse o) { | 921 checkIconsListResponse(api.IconsListResponse o) { |
| 887 buildCounterIconsListResponse++; | 922 buildCounterIconsListResponse++; |
| 888 if (buildCounterIconsListResponse < 3) { | 923 if (buildCounterIconsListResponse < 3) { |
| 889 checkUnnamed111(o.icons); | 924 checkUnnamed1182(o.icons); |
| 890 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 925 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 891 } | 926 } |
| 892 buildCounterIconsListResponse--; | 927 buildCounterIconsListResponse--; |
| 893 } | 928 } |
| 894 | 929 |
| 895 core.int buildCounterLabelStyle = 0; | 930 core.int buildCounterLabelStyle = 0; |
| 896 buildLabelStyle() { | 931 buildLabelStyle() { |
| 897 var o = new api.LabelStyle(); | 932 var o = new api.LabelStyle(); |
| 898 buildCounterLabelStyle++; | 933 buildCounterLabelStyle++; |
| 899 if (buildCounterLabelStyle < 3) { | 934 if (buildCounterLabelStyle < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 929 o.add(42.0); | 964 o.add(42.0); |
| 930 return o; | 965 return o; |
| 931 } | 966 } |
| 932 | 967 |
| 933 checkLatLngBox(api.LatLngBox o) { | 968 checkLatLngBox(api.LatLngBox o) { |
| 934 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
| 935 unittest.expect(o[0], unittest.equals(42.0)); | 970 unittest.expect(o[0], unittest.equals(42.0)); |
| 936 unittest.expect(o[1], unittest.equals(42.0)); | 971 unittest.expect(o[1], unittest.equals(42.0)); |
| 937 } | 972 } |
| 938 | 973 |
| 939 buildUnnamed112() { | 974 buildUnnamed1183() { |
| 940 var o = new core.List<core.double>(); | 975 var o = new core.List<core.double>(); |
| 941 o.add(42.0); | 976 o.add(42.0); |
| 942 o.add(42.0); | 977 o.add(42.0); |
| 943 return o; | 978 return o; |
| 944 } | 979 } |
| 945 | 980 |
| 946 checkUnnamed112(core.List<core.double> o) { | 981 checkUnnamed1183(core.List<core.double> o) { |
| 947 unittest.expect(o, unittest.hasLength(2)); | 982 unittest.expect(o, unittest.hasLength(2)); |
| 948 unittest.expect(o[0], unittest.equals(42.0)); | 983 unittest.expect(o[0], unittest.equals(42.0)); |
| 949 unittest.expect(o[1], unittest.equals(42.0)); | 984 unittest.expect(o[1], unittest.equals(42.0)); |
| 950 } | 985 } |
| 951 | 986 |
| 952 core.int buildCounterLayer = 0; | 987 core.int buildCounterLayer = 0; |
| 953 buildLayer() { | 988 buildLayer() { |
| 954 var o = new api.Layer(); | 989 var o = new api.Layer(); |
| 955 buildCounterLayer++; | 990 buildCounterLayer++; |
| 956 if (buildCounterLayer < 3) { | 991 if (buildCounterLayer < 3) { |
| 957 o.bbox = buildUnnamed112(); | 992 o.bbox = buildUnnamed1183(); |
| 958 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 993 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 959 o.creatorEmail = "foo"; | 994 o.creatorEmail = "foo"; |
| 960 o.datasourceType = "foo"; | 995 o.datasourceType = "foo"; |
| 961 o.datasources = buildDatasources(); | 996 o.datasources = buildDatasources(); |
| 962 o.description = "foo"; | 997 o.description = "foo"; |
| 963 o.draftAccessList = "foo"; | 998 o.draftAccessList = "foo"; |
| 964 o.etag = "foo"; | 999 o.etag = "foo"; |
| 965 o.id = "foo"; | 1000 o.id = "foo"; |
| 966 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1001 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 967 o.lastModifierEmail = "foo"; | 1002 o.lastModifierEmail = "foo"; |
| 968 o.layerType = "foo"; | 1003 o.layerType = "foo"; |
| 969 o.name = "foo"; | 1004 o.name = "foo"; |
| 970 o.processingStatus = "foo"; | 1005 o.processingStatus = "foo"; |
| 971 o.projectId = "foo"; | 1006 o.projectId = "foo"; |
| 972 o.publishedAccessList = "foo"; | 1007 o.publishedAccessList = "foo"; |
| 973 o.publishingStatus = "foo"; | 1008 o.publishingStatus = "foo"; |
| 974 o.style = buildVectorStyle(); | 1009 o.style = buildVectorStyle(); |
| 975 o.tags = buildTags(); | 1010 o.tags = buildTags(); |
| 976 o.writersCanEditPermissions = true; | 1011 o.writersCanEditPermissions = true; |
| 977 } | 1012 } |
| 978 buildCounterLayer--; | 1013 buildCounterLayer--; |
| 979 return o; | 1014 return o; |
| 980 } | 1015 } |
| 981 | 1016 |
| 982 checkLayer(api.Layer o) { | 1017 checkLayer(api.Layer o) { |
| 983 buildCounterLayer++; | 1018 buildCounterLayer++; |
| 984 if (buildCounterLayer < 3) { | 1019 if (buildCounterLayer < 3) { |
| 985 checkUnnamed112(o.bbox); | 1020 checkUnnamed1183(o.bbox); |
| 986 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1021 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 987 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 1022 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 988 unittest.expect(o.datasourceType, unittest.equals('foo')); | 1023 unittest.expect(o.datasourceType, unittest.equals('foo')); |
| 989 checkDatasources(o.datasources); | 1024 checkDatasources(o.datasources); |
| 990 unittest.expect(o.description, unittest.equals('foo')); | 1025 unittest.expect(o.description, unittest.equals('foo')); |
| 991 unittest.expect(o.draftAccessList, unittest.equals('foo')); | 1026 unittest.expect(o.draftAccessList, unittest.equals('foo')); |
| 992 unittest.expect(o.etag, unittest.equals('foo')); | 1027 unittest.expect(o.etag, unittest.equals('foo')); |
| 993 unittest.expect(o.id, unittest.equals('foo')); | 1028 unittest.expect(o.id, unittest.equals('foo')); |
| 994 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1029 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 995 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 1030 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 996 unittest.expect(o.layerType, unittest.equals('foo')); | 1031 unittest.expect(o.layerType, unittest.equals('foo')); |
| 997 unittest.expect(o.name, unittest.equals('foo')); | 1032 unittest.expect(o.name, unittest.equals('foo')); |
| 998 unittest.expect(o.processingStatus, unittest.equals('foo')); | 1033 unittest.expect(o.processingStatus, unittest.equals('foo')); |
| 999 unittest.expect(o.projectId, unittest.equals('foo')); | 1034 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1000 unittest.expect(o.publishedAccessList, unittest.equals('foo')); | 1035 unittest.expect(o.publishedAccessList, unittest.equals('foo')); |
| 1001 unittest.expect(o.publishingStatus, unittest.equals('foo')); | 1036 unittest.expect(o.publishingStatus, unittest.equals('foo')); |
| 1002 checkVectorStyle(o.style); | 1037 checkVectorStyle(o.style); |
| 1003 checkTags(o.tags); | 1038 checkTags(o.tags); |
| 1004 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); | 1039 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); |
| 1005 } | 1040 } |
| 1006 buildCounterLayer--; | 1041 buildCounterLayer--; |
| 1007 } | 1042 } |
| 1008 | 1043 |
| 1009 buildUnnamed113() { | 1044 buildUnnamed1184() { |
| 1010 var o = new core.List<api.Layer>(); | 1045 var o = new core.List<api.Layer>(); |
| 1011 o.add(buildLayer()); | 1046 o.add(buildLayer()); |
| 1012 o.add(buildLayer()); | 1047 o.add(buildLayer()); |
| 1013 return o; | 1048 return o; |
| 1014 } | 1049 } |
| 1015 | 1050 |
| 1016 checkUnnamed113(core.List<api.Layer> o) { | 1051 checkUnnamed1184(core.List<api.Layer> o) { |
| 1017 unittest.expect(o, unittest.hasLength(2)); | 1052 unittest.expect(o, unittest.hasLength(2)); |
| 1018 checkLayer(o[0]); | 1053 checkLayer(o[0]); |
| 1019 checkLayer(o[1]); | 1054 checkLayer(o[1]); |
| 1020 } | 1055 } |
| 1021 | 1056 |
| 1022 core.int buildCounterLayersListResponse = 0; | 1057 core.int buildCounterLayersListResponse = 0; |
| 1023 buildLayersListResponse() { | 1058 buildLayersListResponse() { |
| 1024 var o = new api.LayersListResponse(); | 1059 var o = new api.LayersListResponse(); |
| 1025 buildCounterLayersListResponse++; | 1060 buildCounterLayersListResponse++; |
| 1026 if (buildCounterLayersListResponse < 3) { | 1061 if (buildCounterLayersListResponse < 3) { |
| 1027 o.layers = buildUnnamed113(); | 1062 o.layers = buildUnnamed1184(); |
| 1028 o.nextPageToken = "foo"; | 1063 o.nextPageToken = "foo"; |
| 1029 } | 1064 } |
| 1030 buildCounterLayersListResponse--; | 1065 buildCounterLayersListResponse--; |
| 1031 return o; | 1066 return o; |
| 1032 } | 1067 } |
| 1033 | 1068 |
| 1034 checkLayersListResponse(api.LayersListResponse o) { | 1069 checkLayersListResponse(api.LayersListResponse o) { |
| 1035 buildCounterLayersListResponse++; | 1070 buildCounterLayersListResponse++; |
| 1036 if (buildCounterLayersListResponse < 3) { | 1071 if (buildCounterLayersListResponse < 3) { |
| 1037 checkUnnamed113(o.layers); | 1072 checkUnnamed1184(o.layers); |
| 1038 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1073 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1039 } | 1074 } |
| 1040 buildCounterLayersListResponse--; | 1075 buildCounterLayersListResponse--; |
| 1041 } | 1076 } |
| 1042 | 1077 |
| 1043 buildUnnamed114() { | 1078 buildUnnamed1185() { |
| 1044 var o = new core.List<core.double>(); | 1079 var o = new core.List<core.double>(); |
| 1045 o.add(42.0); | 1080 o.add(42.0); |
| 1046 o.add(42.0); | 1081 o.add(42.0); |
| 1047 return o; | 1082 return o; |
| 1048 } | 1083 } |
| 1049 | 1084 |
| 1050 checkUnnamed114(core.List<core.double> o) { | 1085 checkUnnamed1185(core.List<core.double> o) { |
| 1051 unittest.expect(o, unittest.hasLength(2)); | 1086 unittest.expect(o, unittest.hasLength(2)); |
| 1052 unittest.expect(o[0], unittest.equals(42.0)); | 1087 unittest.expect(o[0], unittest.equals(42.0)); |
| 1053 unittest.expect(o[1], unittest.equals(42.0)); | 1088 unittest.expect(o[1], unittest.equals(42.0)); |
| 1054 } | 1089 } |
| 1055 | 1090 |
| 1056 core.int buildCounterLineStyleStroke = 0; | 1091 core.int buildCounterLineStyleStroke = 0; |
| 1057 buildLineStyleStroke() { | 1092 buildLineStyleStroke() { |
| 1058 var o = new api.LineStyleStroke(); | 1093 var o = new api.LineStyleStroke(); |
| 1059 buildCounterLineStyleStroke++; | 1094 buildCounterLineStyleStroke++; |
| 1060 if (buildCounterLineStyleStroke < 3) { | 1095 if (buildCounterLineStyleStroke < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1075 } | 1110 } |
| 1076 buildCounterLineStyleStroke--; | 1111 buildCounterLineStyleStroke--; |
| 1077 } | 1112 } |
| 1078 | 1113 |
| 1079 core.int buildCounterLineStyle = 0; | 1114 core.int buildCounterLineStyle = 0; |
| 1080 buildLineStyle() { | 1115 buildLineStyle() { |
| 1081 var o = new api.LineStyle(); | 1116 var o = new api.LineStyle(); |
| 1082 buildCounterLineStyle++; | 1117 buildCounterLineStyle++; |
| 1083 if (buildCounterLineStyle < 3) { | 1118 if (buildCounterLineStyle < 3) { |
| 1084 o.border = buildBorder(); | 1119 o.border = buildBorder(); |
| 1085 o.dash = buildUnnamed114(); | 1120 o.dash = buildUnnamed1185(); |
| 1086 o.label = buildLabelStyle(); | 1121 o.label = buildLabelStyle(); |
| 1087 o.stroke = buildLineStyleStroke(); | 1122 o.stroke = buildLineStyleStroke(); |
| 1088 } | 1123 } |
| 1089 buildCounterLineStyle--; | 1124 buildCounterLineStyle--; |
| 1090 return o; | 1125 return o; |
| 1091 } | 1126 } |
| 1092 | 1127 |
| 1093 checkLineStyle(api.LineStyle o) { | 1128 checkLineStyle(api.LineStyle o) { |
| 1094 buildCounterLineStyle++; | 1129 buildCounterLineStyle++; |
| 1095 if (buildCounterLineStyle < 3) { | 1130 if (buildCounterLineStyle < 3) { |
| 1096 checkBorder(o.border); | 1131 checkBorder(o.border); |
| 1097 checkUnnamed114(o.dash); | 1132 checkUnnamed1185(o.dash); |
| 1098 checkLabelStyle(o.label); | 1133 checkLabelStyle(o.label); |
| 1099 checkLineStyleStroke(o.stroke); | 1134 checkLineStyleStroke(o.stroke); |
| 1100 } | 1135 } |
| 1101 buildCounterLineStyle--; | 1136 buildCounterLineStyle--; |
| 1102 } | 1137 } |
| 1103 | 1138 |
| 1104 buildUnnamed115() { | 1139 buildUnnamed1186() { |
| 1105 var o = new core.List<core.double>(); | 1140 var o = new core.List<core.double>(); |
| 1106 o.add(42.0); | 1141 o.add(42.0); |
| 1107 o.add(42.0); | 1142 o.add(42.0); |
| 1108 return o; | 1143 return o; |
| 1109 } | 1144 } |
| 1110 | 1145 |
| 1111 checkUnnamed115(core.List<core.double> o) { | 1146 checkUnnamed1186(core.List<core.double> o) { |
| 1112 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
| 1113 unittest.expect(o[0], unittest.equals(42.0)); | 1148 unittest.expect(o[0], unittest.equals(42.0)); |
| 1114 unittest.expect(o[1], unittest.equals(42.0)); | 1149 unittest.expect(o[1], unittest.equals(42.0)); |
| 1115 } | 1150 } |
| 1116 | 1151 |
| 1117 buildUnnamed116() { | 1152 buildUnnamed1187() { |
| 1118 var o = new core.List<core.String>(); | 1153 var o = new core.List<core.String>(); |
| 1119 o.add("foo"); | 1154 o.add("foo"); |
| 1120 o.add("foo"); | 1155 o.add("foo"); |
| 1121 return o; | 1156 return o; |
| 1122 } | 1157 } |
| 1123 | 1158 |
| 1124 checkUnnamed116(core.List<core.String> o) { | 1159 checkUnnamed1187(core.List<core.String> o) { |
| 1125 unittest.expect(o, unittest.hasLength(2)); | 1160 unittest.expect(o, unittest.hasLength(2)); |
| 1126 unittest.expect(o[0], unittest.equals('foo')); | 1161 unittest.expect(o[0], unittest.equals('foo')); |
| 1127 unittest.expect(o[1], unittest.equals('foo')); | 1162 unittest.expect(o[1], unittest.equals('foo')); |
| 1128 } | 1163 } |
| 1129 | 1164 |
| 1130 core.int buildCounterMap = 0; | 1165 core.int buildCounterMap = 0; |
| 1131 buildMap() { | 1166 buildMap() { |
| 1132 var o = new api.Map(); | 1167 var o = new api.Map(); |
| 1133 buildCounterMap++; | 1168 buildCounterMap++; |
| 1134 if (buildCounterMap < 3) { | 1169 if (buildCounterMap < 3) { |
| 1135 o.bbox = buildUnnamed115(); | 1170 o.bbox = buildUnnamed1186(); |
| 1136 o.contents = buildMapContents(); | 1171 o.contents = buildMapContents(); |
| 1137 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1172 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1138 o.creatorEmail = "foo"; | 1173 o.creatorEmail = "foo"; |
| 1139 o.defaultViewport = buildLatLngBox(); | 1174 o.defaultViewport = buildLatLngBox(); |
| 1140 o.description = "foo"; | 1175 o.description = "foo"; |
| 1141 o.draftAccessList = "foo"; | 1176 o.draftAccessList = "foo"; |
| 1142 o.etag = "foo"; | 1177 o.etag = "foo"; |
| 1143 o.id = "foo"; | 1178 o.id = "foo"; |
| 1144 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1179 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1145 o.lastModifierEmail = "foo"; | 1180 o.lastModifierEmail = "foo"; |
| 1146 o.name = "foo"; | 1181 o.name = "foo"; |
| 1147 o.processingStatus = "foo"; | 1182 o.processingStatus = "foo"; |
| 1148 o.projectId = "foo"; | 1183 o.projectId = "foo"; |
| 1149 o.publishedAccessList = "foo"; | 1184 o.publishedAccessList = "foo"; |
| 1150 o.publishingStatus = "foo"; | 1185 o.publishingStatus = "foo"; |
| 1151 o.tags = buildTags(); | 1186 o.tags = buildTags(); |
| 1152 o.versions = buildUnnamed116(); | 1187 o.versions = buildUnnamed1187(); |
| 1153 o.writersCanEditPermissions = true; | 1188 o.writersCanEditPermissions = true; |
| 1154 } | 1189 } |
| 1155 buildCounterMap--; | 1190 buildCounterMap--; |
| 1156 return o; | 1191 return o; |
| 1157 } | 1192 } |
| 1158 | 1193 |
| 1159 checkMap(api.Map o) { | 1194 checkMap(api.Map o) { |
| 1160 buildCounterMap++; | 1195 buildCounterMap++; |
| 1161 if (buildCounterMap < 3) { | 1196 if (buildCounterMap < 3) { |
| 1162 checkUnnamed115(o.bbox); | 1197 checkUnnamed1186(o.bbox); |
| 1163 checkMapContents(o.contents); | 1198 checkMapContents(o.contents); |
| 1164 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1199 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1165 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 1200 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 1166 checkLatLngBox(o.defaultViewport); | 1201 checkLatLngBox(o.defaultViewport); |
| 1167 unittest.expect(o.description, unittest.equals('foo')); | 1202 unittest.expect(o.description, unittest.equals('foo')); |
| 1168 unittest.expect(o.draftAccessList, unittest.equals('foo')); | 1203 unittest.expect(o.draftAccessList, unittest.equals('foo')); |
| 1169 unittest.expect(o.etag, unittest.equals('foo')); | 1204 unittest.expect(o.etag, unittest.equals('foo')); |
| 1170 unittest.expect(o.id, unittest.equals('foo')); | 1205 unittest.expect(o.id, unittest.equals('foo')); |
| 1171 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1206 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1172 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 1207 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 1173 unittest.expect(o.name, unittest.equals('foo')); | 1208 unittest.expect(o.name, unittest.equals('foo')); |
| 1174 unittest.expect(o.processingStatus, unittest.equals('foo')); | 1209 unittest.expect(o.processingStatus, unittest.equals('foo')); |
| 1175 unittest.expect(o.projectId, unittest.equals('foo')); | 1210 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1176 unittest.expect(o.publishedAccessList, unittest.equals('foo')); | 1211 unittest.expect(o.publishedAccessList, unittest.equals('foo')); |
| 1177 unittest.expect(o.publishingStatus, unittest.equals('foo')); | 1212 unittest.expect(o.publishingStatus, unittest.equals('foo')); |
| 1178 checkTags(o.tags); | 1213 checkTags(o.tags); |
| 1179 checkUnnamed116(o.versions); | 1214 checkUnnamed1187(o.versions); |
| 1180 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); | 1215 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); |
| 1181 } | 1216 } |
| 1182 buildCounterMap--; | 1217 buildCounterMap--; |
| 1183 } | 1218 } |
| 1184 | 1219 |
| 1185 buildMapContents() { | 1220 buildMapContents() { |
| 1186 var o = new api.MapContents(); | 1221 var o = new api.MapContents(); |
| 1187 o.add(buildMapItem()); | 1222 o.add(buildMapItem()); |
| 1188 o.add(buildMapItem()); | 1223 o.add(buildMapItem()); |
| 1189 return o; | 1224 return o; |
| 1190 } | 1225 } |
| 1191 | 1226 |
| 1192 checkMapContents(api.MapContents o) { | 1227 checkMapContents(api.MapContents o) { |
| 1193 unittest.expect(o, unittest.hasLength(2)); | 1228 unittest.expect(o, unittest.hasLength(2)); |
| 1194 checkMapItem(o[0]); | 1229 checkMapItem(o[0]); |
| 1195 checkMapItem(o[1]); | 1230 checkMapItem(o[1]); |
| 1196 } | 1231 } |
| 1197 | 1232 |
| 1198 buildUnnamed117() { | 1233 buildUnnamed1188() { |
| 1199 var o = new core.List<api.MapItem>(); | 1234 var o = new core.List<api.MapItem>(); |
| 1200 o.add(buildMapItem()); | 1235 o.add(buildMapItem()); |
| 1201 o.add(buildMapItem()); | 1236 o.add(buildMapItem()); |
| 1202 return o; | 1237 return o; |
| 1203 } | 1238 } |
| 1204 | 1239 |
| 1205 checkUnnamed117(core.List<api.MapItem> o) { | 1240 checkUnnamed1188(core.List<api.MapItem> o) { |
| 1206 unittest.expect(o, unittest.hasLength(2)); | 1241 unittest.expect(o, unittest.hasLength(2)); |
| 1207 checkMapItem(o[0]); | 1242 checkMapItem(o[0]); |
| 1208 checkMapItem(o[1]); | 1243 checkMapItem(o[1]); |
| 1209 } | 1244 } |
| 1210 | 1245 |
| 1211 buildUnnamed118() { | 1246 buildUnnamed1189() { |
| 1212 var o = new core.List<core.double>(); | 1247 var o = new core.List<core.double>(); |
| 1213 o.add(42.0); | 1248 o.add(42.0); |
| 1214 o.add(42.0); | 1249 o.add(42.0); |
| 1215 return o; | 1250 return o; |
| 1216 } | 1251 } |
| 1217 | 1252 |
| 1218 checkUnnamed118(core.List<core.double> o) { | 1253 checkUnnamed1189(core.List<core.double> o) { |
| 1219 unittest.expect(o, unittest.hasLength(2)); | 1254 unittest.expect(o, unittest.hasLength(2)); |
| 1220 unittest.expect(o[0], unittest.equals(42.0)); | 1255 unittest.expect(o[0], unittest.equals(42.0)); |
| 1221 unittest.expect(o[1], unittest.equals(42.0)); | 1256 unittest.expect(o[1], unittest.equals(42.0)); |
| 1222 } | 1257 } |
| 1223 | 1258 |
| 1224 core.int buildCounterMapFolder = 0; | 1259 core.int buildCounterMapFolder = 0; |
| 1225 buildMapFolder() { | 1260 buildMapFolder() { |
| 1226 var o = new api.MapFolder(); | 1261 var o = new api.MapFolder(); |
| 1227 buildCounterMapFolder++; | 1262 buildCounterMapFolder++; |
| 1228 if (buildCounterMapFolder < 3) { | 1263 if (buildCounterMapFolder < 3) { |
| 1229 o.contents = buildUnnamed117(); | 1264 o.contents = buildUnnamed1188(); |
| 1230 o.defaultViewport = buildUnnamed118(); | 1265 o.defaultViewport = buildUnnamed1189(); |
| 1231 o.expandable = true; | 1266 o.expandable = true; |
| 1232 o.key = "foo"; | 1267 o.key = "foo"; |
| 1233 o.name = "foo"; | 1268 o.name = "foo"; |
| 1234 o.visibility = "foo"; | 1269 o.visibility = "foo"; |
| 1235 } | 1270 } |
| 1236 buildCounterMapFolder--; | 1271 buildCounterMapFolder--; |
| 1237 return o; | 1272 return o; |
| 1238 } | 1273 } |
| 1239 | 1274 |
| 1240 checkMapFolder(api.MapFolder o) { | 1275 checkMapFolder(api.MapFolder o) { |
| 1241 buildCounterMapFolder++; | 1276 buildCounterMapFolder++; |
| 1242 if (buildCounterMapFolder < 3) { | 1277 if (buildCounterMapFolder < 3) { |
| 1243 checkUnnamed117(o.contents); | 1278 checkUnnamed1188(o.contents); |
| 1244 checkUnnamed118(o.defaultViewport); | 1279 checkUnnamed1189(o.defaultViewport); |
| 1245 unittest.expect(o.expandable, unittest.isTrue); | 1280 unittest.expect(o.expandable, unittest.isTrue); |
| 1246 unittest.expect(o.key, unittest.equals('foo')); | 1281 unittest.expect(o.key, unittest.equals('foo')); |
| 1247 unittest.expect(o.name, unittest.equals('foo')); | 1282 unittest.expect(o.name, unittest.equals('foo')); |
| 1248 unittest.expect(o.visibility, unittest.equals('foo')); | 1283 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1249 } | 1284 } |
| 1250 buildCounterMapFolder--; | 1285 buildCounterMapFolder--; |
| 1251 } | 1286 } |
| 1252 | 1287 |
| 1253 buildMapItem() { | 1288 buildMapItem() { |
| 1254 return buildMapFolder(); | 1289 return buildMapFolder(); |
| 1255 } | 1290 } |
| 1256 | 1291 |
| 1257 checkMapItem(api.MapItem o) { | 1292 checkMapItem(api.MapItem o) { |
| 1258 checkMapFolder(api.MapFolder o) { | 1293 checkMapFolder(api.MapFolder o) { |
| 1259 buildCounterMapFolder++; | 1294 buildCounterMapFolder++; |
| 1260 if (buildCounterMapFolder < 3) { | 1295 if (buildCounterMapFolder < 3) { |
| 1261 checkUnnamed117(o.contents); | 1296 checkUnnamed1188(o.contents); |
| 1262 checkUnnamed118(o.defaultViewport); | 1297 checkUnnamed1189(o.defaultViewport); |
| 1263 unittest.expect(o.expandable, unittest.isTrue); | 1298 unittest.expect(o.expandable, unittest.isTrue); |
| 1264 unittest.expect(o.key, unittest.equals('foo')); | 1299 unittest.expect(o.key, unittest.equals('foo')); |
| 1265 unittest.expect(o.name, unittest.equals('foo')); | 1300 unittest.expect(o.name, unittest.equals('foo')); |
| 1266 unittest.expect(o.visibility, unittest.equals('foo')); | 1301 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1267 } | 1302 } |
| 1268 buildCounterMapFolder--; | 1303 buildCounterMapFolder--; |
| 1269 } | 1304 } |
| 1270 | 1305 |
| 1271 (o); | 1306 (o); |
| 1272 } | 1307 } |
| 1273 | 1308 |
| 1274 buildUnnamed119() { | 1309 buildUnnamed1190() { |
| 1275 var o = new core.List<core.double>(); | 1310 var o = new core.List<core.double>(); |
| 1276 o.add(42.0); | 1311 o.add(42.0); |
| 1277 o.add(42.0); | 1312 o.add(42.0); |
| 1278 return o; | 1313 return o; |
| 1279 } | 1314 } |
| 1280 | 1315 |
| 1281 checkUnnamed119(core.List<core.double> o) { | 1316 checkUnnamed1190(core.List<core.double> o) { |
| 1282 unittest.expect(o, unittest.hasLength(2)); | 1317 unittest.expect(o, unittest.hasLength(2)); |
| 1283 unittest.expect(o[0], unittest.equals(42.0)); | 1318 unittest.expect(o[0], unittest.equals(42.0)); |
| 1284 unittest.expect(o[1], unittest.equals(42.0)); | 1319 unittest.expect(o[1], unittest.equals(42.0)); |
| 1285 } | 1320 } |
| 1286 | 1321 |
| 1287 core.int buildCounterMapKmlLink = 0; | 1322 core.int buildCounterMapKmlLink = 0; |
| 1288 buildMapKmlLink() { | 1323 buildMapKmlLink() { |
| 1289 var o = new api.MapKmlLink(); | 1324 var o = new api.MapKmlLink(); |
| 1290 buildCounterMapKmlLink++; | 1325 buildCounterMapKmlLink++; |
| 1291 if (buildCounterMapKmlLink < 3) { | 1326 if (buildCounterMapKmlLink < 3) { |
| 1292 o.defaultViewport = buildUnnamed119(); | 1327 o.defaultViewport = buildUnnamed1190(); |
| 1293 o.kmlUrl = "foo"; | 1328 o.kmlUrl = "foo"; |
| 1294 o.name = "foo"; | 1329 o.name = "foo"; |
| 1295 o.visibility = "foo"; | 1330 o.visibility = "foo"; |
| 1296 } | 1331 } |
| 1297 buildCounterMapKmlLink--; | 1332 buildCounterMapKmlLink--; |
| 1298 return o; | 1333 return o; |
| 1299 } | 1334 } |
| 1300 | 1335 |
| 1301 checkMapKmlLink(api.MapKmlLink o) { | 1336 checkMapKmlLink(api.MapKmlLink o) { |
| 1302 buildCounterMapKmlLink++; | 1337 buildCounterMapKmlLink++; |
| 1303 if (buildCounterMapKmlLink < 3) { | 1338 if (buildCounterMapKmlLink < 3) { |
| 1304 checkUnnamed119(o.defaultViewport); | 1339 checkUnnamed1190(o.defaultViewport); |
| 1305 unittest.expect(o.kmlUrl, unittest.equals('foo')); | 1340 unittest.expect(o.kmlUrl, unittest.equals('foo')); |
| 1306 unittest.expect(o.name, unittest.equals('foo')); | 1341 unittest.expect(o.name, unittest.equals('foo')); |
| 1307 unittest.expect(o.visibility, unittest.equals('foo')); | 1342 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1308 } | 1343 } |
| 1309 buildCounterMapKmlLink--; | 1344 buildCounterMapKmlLink--; |
| 1310 } | 1345 } |
| 1311 | 1346 |
| 1312 buildUnnamed120() { | 1347 buildUnnamed1191() { |
| 1313 var o = new core.List<core.double>(); | 1348 var o = new core.List<core.double>(); |
| 1314 o.add(42.0); | 1349 o.add(42.0); |
| 1315 o.add(42.0); | 1350 o.add(42.0); |
| 1316 return o; | 1351 return o; |
| 1317 } | 1352 } |
| 1318 | 1353 |
| 1319 checkUnnamed120(core.List<core.double> o) { | 1354 checkUnnamed1191(core.List<core.double> o) { |
| 1320 unittest.expect(o, unittest.hasLength(2)); | 1355 unittest.expect(o, unittest.hasLength(2)); |
| 1321 unittest.expect(o[0], unittest.equals(42.0)); | 1356 unittest.expect(o[0], unittest.equals(42.0)); |
| 1322 unittest.expect(o[1], unittest.equals(42.0)); | 1357 unittest.expect(o[1], unittest.equals(42.0)); |
| 1323 } | 1358 } |
| 1324 | 1359 |
| 1325 core.int buildCounterMapLayer = 0; | 1360 core.int buildCounterMapLayer = 0; |
| 1326 buildMapLayer() { | 1361 buildMapLayer() { |
| 1327 var o = new api.MapLayer(); | 1362 var o = new api.MapLayer(); |
| 1328 buildCounterMapLayer++; | 1363 buildCounterMapLayer++; |
| 1329 if (buildCounterMapLayer < 3) { | 1364 if (buildCounterMapLayer < 3) { |
| 1330 o.defaultViewport = buildUnnamed120(); | 1365 o.defaultViewport = buildUnnamed1191(); |
| 1331 o.id = "foo"; | 1366 o.id = "foo"; |
| 1332 o.key = "foo"; | 1367 o.key = "foo"; |
| 1333 o.name = "foo"; | 1368 o.name = "foo"; |
| 1334 o.visibility = "foo"; | 1369 o.visibility = "foo"; |
| 1335 } | 1370 } |
| 1336 buildCounterMapLayer--; | 1371 buildCounterMapLayer--; |
| 1337 return o; | 1372 return o; |
| 1338 } | 1373 } |
| 1339 | 1374 |
| 1340 checkMapLayer(api.MapLayer o) { | 1375 checkMapLayer(api.MapLayer o) { |
| 1341 buildCounterMapLayer++; | 1376 buildCounterMapLayer++; |
| 1342 if (buildCounterMapLayer < 3) { | 1377 if (buildCounterMapLayer < 3) { |
| 1343 checkUnnamed120(o.defaultViewport); | 1378 checkUnnamed1191(o.defaultViewport); |
| 1344 unittest.expect(o.id, unittest.equals('foo')); | 1379 unittest.expect(o.id, unittest.equals('foo')); |
| 1345 unittest.expect(o.key, unittest.equals('foo')); | 1380 unittest.expect(o.key, unittest.equals('foo')); |
| 1346 unittest.expect(o.name, unittest.equals('foo')); | 1381 unittest.expect(o.name, unittest.equals('foo')); |
| 1347 unittest.expect(o.visibility, unittest.equals('foo')); | 1382 unittest.expect(o.visibility, unittest.equals('foo')); |
| 1348 } | 1383 } |
| 1349 buildCounterMapLayer--; | 1384 buildCounterMapLayer--; |
| 1350 } | 1385 } |
| 1351 | 1386 |
| 1352 buildUnnamed121() { | 1387 buildUnnamed1192() { |
| 1353 var o = new core.List<api.Map>(); | 1388 var o = new core.List<api.Map>(); |
| 1354 o.add(buildMap()); | 1389 o.add(buildMap()); |
| 1355 o.add(buildMap()); | 1390 o.add(buildMap()); |
| 1356 return o; | 1391 return o; |
| 1357 } | 1392 } |
| 1358 | 1393 |
| 1359 checkUnnamed121(core.List<api.Map> o) { | 1394 checkUnnamed1192(core.List<api.Map> o) { |
| 1360 unittest.expect(o, unittest.hasLength(2)); | 1395 unittest.expect(o, unittest.hasLength(2)); |
| 1361 checkMap(o[0]); | 1396 checkMap(o[0]); |
| 1362 checkMap(o[1]); | 1397 checkMap(o[1]); |
| 1363 } | 1398 } |
| 1364 | 1399 |
| 1365 core.int buildCounterMapsListResponse = 0; | 1400 core.int buildCounterMapsListResponse = 0; |
| 1366 buildMapsListResponse() { | 1401 buildMapsListResponse() { |
| 1367 var o = new api.MapsListResponse(); | 1402 var o = new api.MapsListResponse(); |
| 1368 buildCounterMapsListResponse++; | 1403 buildCounterMapsListResponse++; |
| 1369 if (buildCounterMapsListResponse < 3) { | 1404 if (buildCounterMapsListResponse < 3) { |
| 1370 o.maps = buildUnnamed121(); | 1405 o.maps = buildUnnamed1192(); |
| 1371 o.nextPageToken = "foo"; | 1406 o.nextPageToken = "foo"; |
| 1372 } | 1407 } |
| 1373 buildCounterMapsListResponse--; | 1408 buildCounterMapsListResponse--; |
| 1374 return o; | 1409 return o; |
| 1375 } | 1410 } |
| 1376 | 1411 |
| 1377 checkMapsListResponse(api.MapsListResponse o) { | 1412 checkMapsListResponse(api.MapsListResponse o) { |
| 1378 buildCounterMapsListResponse++; | 1413 buildCounterMapsListResponse++; |
| 1379 if (buildCounterMapsListResponse < 3) { | 1414 if (buildCounterMapsListResponse < 3) { |
| 1380 checkUnnamed121(o.maps); | 1415 checkUnnamed1192(o.maps); |
| 1381 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1416 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1382 } | 1417 } |
| 1383 buildCounterMapsListResponse--; | 1418 buildCounterMapsListResponse--; |
| 1384 } | 1419 } |
| 1385 | 1420 |
| 1386 core.int buildCounterParent = 0; | 1421 core.int buildCounterParent = 0; |
| 1387 buildParent() { | 1422 buildParent() { |
| 1388 var o = new api.Parent(); | 1423 var o = new api.Parent(); |
| 1389 buildCounterParent++; | 1424 buildCounterParent++; |
| 1390 if (buildCounterParent < 3) { | 1425 if (buildCounterParent < 3) { |
| 1391 o.id = "foo"; | 1426 o.id = "foo"; |
| 1392 } | 1427 } |
| 1393 buildCounterParent--; | 1428 buildCounterParent--; |
| 1394 return o; | 1429 return o; |
| 1395 } | 1430 } |
| 1396 | 1431 |
| 1397 checkParent(api.Parent o) { | 1432 checkParent(api.Parent o) { |
| 1398 buildCounterParent++; | 1433 buildCounterParent++; |
| 1399 if (buildCounterParent < 3) { | 1434 if (buildCounterParent < 3) { |
| 1400 unittest.expect(o.id, unittest.equals('foo')); | 1435 unittest.expect(o.id, unittest.equals('foo')); |
| 1401 } | 1436 } |
| 1402 buildCounterParent--; | 1437 buildCounterParent--; |
| 1403 } | 1438 } |
| 1404 | 1439 |
| 1405 buildUnnamed122() { | 1440 buildUnnamed1193() { |
| 1406 var o = new core.List<api.Parent>(); | 1441 var o = new core.List<api.Parent>(); |
| 1407 o.add(buildParent()); | 1442 o.add(buildParent()); |
| 1408 o.add(buildParent()); | 1443 o.add(buildParent()); |
| 1409 return o; | 1444 return o; |
| 1410 } | 1445 } |
| 1411 | 1446 |
| 1412 checkUnnamed122(core.List<api.Parent> o) { | 1447 checkUnnamed1193(core.List<api.Parent> o) { |
| 1413 unittest.expect(o, unittest.hasLength(2)); | 1448 unittest.expect(o, unittest.hasLength(2)); |
| 1414 checkParent(o[0]); | 1449 checkParent(o[0]); |
| 1415 checkParent(o[1]); | 1450 checkParent(o[1]); |
| 1416 } | 1451 } |
| 1417 | 1452 |
| 1418 core.int buildCounterParentsListResponse = 0; | 1453 core.int buildCounterParentsListResponse = 0; |
| 1419 buildParentsListResponse() { | 1454 buildParentsListResponse() { |
| 1420 var o = new api.ParentsListResponse(); | 1455 var o = new api.ParentsListResponse(); |
| 1421 buildCounterParentsListResponse++; | 1456 buildCounterParentsListResponse++; |
| 1422 if (buildCounterParentsListResponse < 3) { | 1457 if (buildCounterParentsListResponse < 3) { |
| 1423 o.nextPageToken = "foo"; | 1458 o.nextPageToken = "foo"; |
| 1424 o.parents = buildUnnamed122(); | 1459 o.parents = buildUnnamed1193(); |
| 1425 } | 1460 } |
| 1426 buildCounterParentsListResponse--; | 1461 buildCounterParentsListResponse--; |
| 1427 return o; | 1462 return o; |
| 1428 } | 1463 } |
| 1429 | 1464 |
| 1430 checkParentsListResponse(api.ParentsListResponse o) { | 1465 checkParentsListResponse(api.ParentsListResponse o) { |
| 1431 buildCounterParentsListResponse++; | 1466 buildCounterParentsListResponse++; |
| 1432 if (buildCounterParentsListResponse < 3) { | 1467 if (buildCounterParentsListResponse < 3) { |
| 1433 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1468 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1434 checkUnnamed122(o.parents); | 1469 checkUnnamed1193(o.parents); |
| 1435 } | 1470 } |
| 1436 buildCounterParentsListResponse--; | 1471 buildCounterParentsListResponse--; |
| 1437 } | 1472 } |
| 1438 | 1473 |
| 1439 core.int buildCounterPermission = 0; | 1474 core.int buildCounterPermission = 0; |
| 1440 buildPermission() { | 1475 buildPermission() { |
| 1441 var o = new api.Permission(); | 1476 var o = new api.Permission(); |
| 1442 buildCounterPermission++; | 1477 buildCounterPermission++; |
| 1443 if (buildCounterPermission < 3) { | 1478 if (buildCounterPermission < 3) { |
| 1444 o.discoverable = true; | 1479 o.discoverable = true; |
| 1445 o.id = "foo"; | 1480 o.id = "foo"; |
| 1446 o.role = "foo"; | 1481 o.role = "foo"; |
| 1447 o.type = "foo"; | 1482 o.type = "foo"; |
| 1448 } | 1483 } |
| 1449 buildCounterPermission--; | 1484 buildCounterPermission--; |
| 1450 return o; | 1485 return o; |
| 1451 } | 1486 } |
| 1452 | 1487 |
| 1453 checkPermission(api.Permission o) { | 1488 checkPermission(api.Permission o) { |
| 1454 buildCounterPermission++; | 1489 buildCounterPermission++; |
| 1455 if (buildCounterPermission < 3) { | 1490 if (buildCounterPermission < 3) { |
| 1456 unittest.expect(o.discoverable, unittest.isTrue); | 1491 unittest.expect(o.discoverable, unittest.isTrue); |
| 1457 unittest.expect(o.id, unittest.equals('foo')); | 1492 unittest.expect(o.id, unittest.equals('foo')); |
| 1458 unittest.expect(o.role, unittest.equals('foo')); | 1493 unittest.expect(o.role, unittest.equals('foo')); |
| 1459 unittest.expect(o.type, unittest.equals('foo')); | 1494 unittest.expect(o.type, unittest.equals('foo')); |
| 1460 } | 1495 } |
| 1461 buildCounterPermission--; | 1496 buildCounterPermission--; |
| 1462 } | 1497 } |
| 1463 | 1498 |
| 1464 buildUnnamed123() { | 1499 buildUnnamed1194() { |
| 1465 var o = new core.List<core.String>(); | 1500 var o = new core.List<core.String>(); |
| 1466 o.add("foo"); | 1501 o.add("foo"); |
| 1467 o.add("foo"); | 1502 o.add("foo"); |
| 1468 return o; | 1503 return o; |
| 1469 } | 1504 } |
| 1470 | 1505 |
| 1471 checkUnnamed123(core.List<core.String> o) { | 1506 checkUnnamed1194(core.List<core.String> o) { |
| 1472 unittest.expect(o, unittest.hasLength(2)); | 1507 unittest.expect(o, unittest.hasLength(2)); |
| 1473 unittest.expect(o[0], unittest.equals('foo')); | 1508 unittest.expect(o[0], unittest.equals('foo')); |
| 1474 unittest.expect(o[1], unittest.equals('foo')); | 1509 unittest.expect(o[1], unittest.equals('foo')); |
| 1475 } | 1510 } |
| 1476 | 1511 |
| 1477 core.int buildCounterPermissionsBatchDeleteRequest = 0; | 1512 core.int buildCounterPermissionsBatchDeleteRequest = 0; |
| 1478 buildPermissionsBatchDeleteRequest() { | 1513 buildPermissionsBatchDeleteRequest() { |
| 1479 var o = new api.PermissionsBatchDeleteRequest(); | 1514 var o = new api.PermissionsBatchDeleteRequest(); |
| 1480 buildCounterPermissionsBatchDeleteRequest++; | 1515 buildCounterPermissionsBatchDeleteRequest++; |
| 1481 if (buildCounterPermissionsBatchDeleteRequest < 3) { | 1516 if (buildCounterPermissionsBatchDeleteRequest < 3) { |
| 1482 o.ids = buildUnnamed123(); | 1517 o.ids = buildUnnamed1194(); |
| 1483 } | 1518 } |
| 1484 buildCounterPermissionsBatchDeleteRequest--; | 1519 buildCounterPermissionsBatchDeleteRequest--; |
| 1485 return o; | 1520 return o; |
| 1486 } | 1521 } |
| 1487 | 1522 |
| 1488 checkPermissionsBatchDeleteRequest(api.PermissionsBatchDeleteRequest o) { | 1523 checkPermissionsBatchDeleteRequest(api.PermissionsBatchDeleteRequest o) { |
| 1489 buildCounterPermissionsBatchDeleteRequest++; | 1524 buildCounterPermissionsBatchDeleteRequest++; |
| 1490 if (buildCounterPermissionsBatchDeleteRequest < 3) { | 1525 if (buildCounterPermissionsBatchDeleteRequest < 3) { |
| 1491 checkUnnamed123(o.ids); | 1526 checkUnnamed1194(o.ids); |
| 1492 } | 1527 } |
| 1493 buildCounterPermissionsBatchDeleteRequest--; | 1528 buildCounterPermissionsBatchDeleteRequest--; |
| 1494 } | 1529 } |
| 1495 | 1530 |
| 1496 core.int buildCounterPermissionsBatchDeleteResponse = 0; | 1531 core.int buildCounterPermissionsBatchDeleteResponse = 0; |
| 1497 buildPermissionsBatchDeleteResponse() { | 1532 buildPermissionsBatchDeleteResponse() { |
| 1498 var o = new api.PermissionsBatchDeleteResponse(); | 1533 var o = new api.PermissionsBatchDeleteResponse(); |
| 1499 buildCounterPermissionsBatchDeleteResponse++; | 1534 buildCounterPermissionsBatchDeleteResponse++; |
| 1500 if (buildCounterPermissionsBatchDeleteResponse < 3) { | 1535 if (buildCounterPermissionsBatchDeleteResponse < 3) { |
| 1501 } | 1536 } |
| 1502 buildCounterPermissionsBatchDeleteResponse--; | 1537 buildCounterPermissionsBatchDeleteResponse--; |
| 1503 return o; | 1538 return o; |
| 1504 } | 1539 } |
| 1505 | 1540 |
| 1506 checkPermissionsBatchDeleteResponse(api.PermissionsBatchDeleteResponse o) { | 1541 checkPermissionsBatchDeleteResponse(api.PermissionsBatchDeleteResponse o) { |
| 1507 buildCounterPermissionsBatchDeleteResponse++; | 1542 buildCounterPermissionsBatchDeleteResponse++; |
| 1508 if (buildCounterPermissionsBatchDeleteResponse < 3) { | 1543 if (buildCounterPermissionsBatchDeleteResponse < 3) { |
| 1509 } | 1544 } |
| 1510 buildCounterPermissionsBatchDeleteResponse--; | 1545 buildCounterPermissionsBatchDeleteResponse--; |
| 1511 } | 1546 } |
| 1512 | 1547 |
| 1513 buildUnnamed124() { | 1548 buildUnnamed1195() { |
| 1514 var o = new core.List<api.Permission>(); | 1549 var o = new core.List<api.Permission>(); |
| 1515 o.add(buildPermission()); | 1550 o.add(buildPermission()); |
| 1516 o.add(buildPermission()); | 1551 o.add(buildPermission()); |
| 1517 return o; | 1552 return o; |
| 1518 } | 1553 } |
| 1519 | 1554 |
| 1520 checkUnnamed124(core.List<api.Permission> o) { | 1555 checkUnnamed1195(core.List<api.Permission> o) { |
| 1521 unittest.expect(o, unittest.hasLength(2)); | 1556 unittest.expect(o, unittest.hasLength(2)); |
| 1522 checkPermission(o[0]); | 1557 checkPermission(o[0]); |
| 1523 checkPermission(o[1]); | 1558 checkPermission(o[1]); |
| 1524 } | 1559 } |
| 1525 | 1560 |
| 1526 core.int buildCounterPermissionsBatchUpdateRequest = 0; | 1561 core.int buildCounterPermissionsBatchUpdateRequest = 0; |
| 1527 buildPermissionsBatchUpdateRequest() { | 1562 buildPermissionsBatchUpdateRequest() { |
| 1528 var o = new api.PermissionsBatchUpdateRequest(); | 1563 var o = new api.PermissionsBatchUpdateRequest(); |
| 1529 buildCounterPermissionsBatchUpdateRequest++; | 1564 buildCounterPermissionsBatchUpdateRequest++; |
| 1530 if (buildCounterPermissionsBatchUpdateRequest < 3) { | 1565 if (buildCounterPermissionsBatchUpdateRequest < 3) { |
| 1531 o.permissions = buildUnnamed124(); | 1566 o.permissions = buildUnnamed1195(); |
| 1532 } | 1567 } |
| 1533 buildCounterPermissionsBatchUpdateRequest--; | 1568 buildCounterPermissionsBatchUpdateRequest--; |
| 1534 return o; | 1569 return o; |
| 1535 } | 1570 } |
| 1536 | 1571 |
| 1537 checkPermissionsBatchUpdateRequest(api.PermissionsBatchUpdateRequest o) { | 1572 checkPermissionsBatchUpdateRequest(api.PermissionsBatchUpdateRequest o) { |
| 1538 buildCounterPermissionsBatchUpdateRequest++; | 1573 buildCounterPermissionsBatchUpdateRequest++; |
| 1539 if (buildCounterPermissionsBatchUpdateRequest < 3) { | 1574 if (buildCounterPermissionsBatchUpdateRequest < 3) { |
| 1540 checkUnnamed124(o.permissions); | 1575 checkUnnamed1195(o.permissions); |
| 1541 } | 1576 } |
| 1542 buildCounterPermissionsBatchUpdateRequest--; | 1577 buildCounterPermissionsBatchUpdateRequest--; |
| 1543 } | 1578 } |
| 1544 | 1579 |
| 1545 core.int buildCounterPermissionsBatchUpdateResponse = 0; | 1580 core.int buildCounterPermissionsBatchUpdateResponse = 0; |
| 1546 buildPermissionsBatchUpdateResponse() { | 1581 buildPermissionsBatchUpdateResponse() { |
| 1547 var o = new api.PermissionsBatchUpdateResponse(); | 1582 var o = new api.PermissionsBatchUpdateResponse(); |
| 1548 buildCounterPermissionsBatchUpdateResponse++; | 1583 buildCounterPermissionsBatchUpdateResponse++; |
| 1549 if (buildCounterPermissionsBatchUpdateResponse < 3) { | 1584 if (buildCounterPermissionsBatchUpdateResponse < 3) { |
| 1550 } | 1585 } |
| 1551 buildCounterPermissionsBatchUpdateResponse--; | 1586 buildCounterPermissionsBatchUpdateResponse--; |
| 1552 return o; | 1587 return o; |
| 1553 } | 1588 } |
| 1554 | 1589 |
| 1555 checkPermissionsBatchUpdateResponse(api.PermissionsBatchUpdateResponse o) { | 1590 checkPermissionsBatchUpdateResponse(api.PermissionsBatchUpdateResponse o) { |
| 1556 buildCounterPermissionsBatchUpdateResponse++; | 1591 buildCounterPermissionsBatchUpdateResponse++; |
| 1557 if (buildCounterPermissionsBatchUpdateResponse < 3) { | 1592 if (buildCounterPermissionsBatchUpdateResponse < 3) { |
| 1558 } | 1593 } |
| 1559 buildCounterPermissionsBatchUpdateResponse--; | 1594 buildCounterPermissionsBatchUpdateResponse--; |
| 1560 } | 1595 } |
| 1561 | 1596 |
| 1562 buildUnnamed125() { | 1597 buildUnnamed1196() { |
| 1563 var o = new core.List<api.Permission>(); | 1598 var o = new core.List<api.Permission>(); |
| 1564 o.add(buildPermission()); | 1599 o.add(buildPermission()); |
| 1565 o.add(buildPermission()); | 1600 o.add(buildPermission()); |
| 1566 return o; | 1601 return o; |
| 1567 } | 1602 } |
| 1568 | 1603 |
| 1569 checkUnnamed125(core.List<api.Permission> o) { | 1604 checkUnnamed1196(core.List<api.Permission> o) { |
| 1570 unittest.expect(o, unittest.hasLength(2)); | 1605 unittest.expect(o, unittest.hasLength(2)); |
| 1571 checkPermission(o[0]); | 1606 checkPermission(o[0]); |
| 1572 checkPermission(o[1]); | 1607 checkPermission(o[1]); |
| 1573 } | 1608 } |
| 1574 | 1609 |
| 1575 core.int buildCounterPermissionsListResponse = 0; | 1610 core.int buildCounterPermissionsListResponse = 0; |
| 1576 buildPermissionsListResponse() { | 1611 buildPermissionsListResponse() { |
| 1577 var o = new api.PermissionsListResponse(); | 1612 var o = new api.PermissionsListResponse(); |
| 1578 buildCounterPermissionsListResponse++; | 1613 buildCounterPermissionsListResponse++; |
| 1579 if (buildCounterPermissionsListResponse < 3) { | 1614 if (buildCounterPermissionsListResponse < 3) { |
| 1580 o.permissions = buildUnnamed125(); | 1615 o.permissions = buildUnnamed1196(); |
| 1581 } | 1616 } |
| 1582 buildCounterPermissionsListResponse--; | 1617 buildCounterPermissionsListResponse--; |
| 1583 return o; | 1618 return o; |
| 1584 } | 1619 } |
| 1585 | 1620 |
| 1586 checkPermissionsListResponse(api.PermissionsListResponse o) { | 1621 checkPermissionsListResponse(api.PermissionsListResponse o) { |
| 1587 buildCounterPermissionsListResponse++; | 1622 buildCounterPermissionsListResponse++; |
| 1588 if (buildCounterPermissionsListResponse < 3) { | 1623 if (buildCounterPermissionsListResponse < 3) { |
| 1589 checkUnnamed125(o.permissions); | 1624 checkUnnamed1196(o.permissions); |
| 1590 } | 1625 } |
| 1591 buildCounterPermissionsListResponse--; | 1626 buildCounterPermissionsListResponse--; |
| 1592 } | 1627 } |
| 1593 | 1628 |
| 1594 core.int buildCounterPointStyle = 0; | 1629 core.int buildCounterPointStyle = 0; |
| 1595 buildPointStyle() { | 1630 buildPointStyle() { |
| 1596 var o = new api.PointStyle(); | 1631 var o = new api.PointStyle(); |
| 1597 buildCounterPointStyle++; | 1632 buildCounterPointStyle++; |
| 1598 if (buildCounterPointStyle < 3) { | 1633 if (buildCounterPointStyle < 3) { |
| 1599 o.icon = buildIconStyle(); | 1634 o.icon = buildIconStyle(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1666 | 1701 |
| 1667 checkProject(api.Project o) { | 1702 checkProject(api.Project o) { |
| 1668 buildCounterProject++; | 1703 buildCounterProject++; |
| 1669 if (buildCounterProject < 3) { | 1704 if (buildCounterProject < 3) { |
| 1670 unittest.expect(o.id, unittest.equals('foo')); | 1705 unittest.expect(o.id, unittest.equals('foo')); |
| 1671 unittest.expect(o.name, unittest.equals('foo')); | 1706 unittest.expect(o.name, unittest.equals('foo')); |
| 1672 } | 1707 } |
| 1673 buildCounterProject--; | 1708 buildCounterProject--; |
| 1674 } | 1709 } |
| 1675 | 1710 |
| 1676 buildUnnamed126() { | 1711 buildUnnamed1197() { |
| 1677 var o = new core.List<api.Project>(); | 1712 var o = new core.List<api.Project>(); |
| 1678 o.add(buildProject()); | 1713 o.add(buildProject()); |
| 1679 o.add(buildProject()); | 1714 o.add(buildProject()); |
| 1680 return o; | 1715 return o; |
| 1681 } | 1716 } |
| 1682 | 1717 |
| 1683 checkUnnamed126(core.List<api.Project> o) { | 1718 checkUnnamed1197(core.List<api.Project> o) { |
| 1684 unittest.expect(o, unittest.hasLength(2)); | 1719 unittest.expect(o, unittest.hasLength(2)); |
| 1685 checkProject(o[0]); | 1720 checkProject(o[0]); |
| 1686 checkProject(o[1]); | 1721 checkProject(o[1]); |
| 1687 } | 1722 } |
| 1688 | 1723 |
| 1689 core.int buildCounterProjectsListResponse = 0; | 1724 core.int buildCounterProjectsListResponse = 0; |
| 1690 buildProjectsListResponse() { | 1725 buildProjectsListResponse() { |
| 1691 var o = new api.ProjectsListResponse(); | 1726 var o = new api.ProjectsListResponse(); |
| 1692 buildCounterProjectsListResponse++; | 1727 buildCounterProjectsListResponse++; |
| 1693 if (buildCounterProjectsListResponse < 3) { | 1728 if (buildCounterProjectsListResponse < 3) { |
| 1694 o.projects = buildUnnamed126(); | 1729 o.projects = buildUnnamed1197(); |
| 1695 } | 1730 } |
| 1696 buildCounterProjectsListResponse--; | 1731 buildCounterProjectsListResponse--; |
| 1697 return o; | 1732 return o; |
| 1698 } | 1733 } |
| 1699 | 1734 |
| 1700 checkProjectsListResponse(api.ProjectsListResponse o) { | 1735 checkProjectsListResponse(api.ProjectsListResponse o) { |
| 1701 buildCounterProjectsListResponse++; | 1736 buildCounterProjectsListResponse++; |
| 1702 if (buildCounterProjectsListResponse < 3) { | 1737 if (buildCounterProjectsListResponse < 3) { |
| 1703 checkUnnamed126(o.projects); | 1738 checkUnnamed1197(o.projects); |
| 1704 } | 1739 } |
| 1705 buildCounterProjectsListResponse--; | 1740 buildCounterProjectsListResponse--; |
| 1706 } | 1741 } |
| 1707 | 1742 |
| 1708 core.int buildCounterPublishResponse = 0; | 1743 core.int buildCounterPublishResponse = 0; |
| 1709 buildPublishResponse() { | 1744 buildPublishResponse() { |
| 1710 var o = new api.PublishResponse(); | 1745 var o = new api.PublishResponse(); |
| 1711 buildCounterPublishResponse++; | 1746 buildCounterPublishResponse++; |
| 1712 if (buildCounterPublishResponse < 3) { | 1747 if (buildCounterPublishResponse < 3) { |
| 1713 } | 1748 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1742 if (buildCounterPublishedLayer < 3) { | 1777 if (buildCounterPublishedLayer < 3) { |
| 1743 unittest.expect(o.description, unittest.equals('foo')); | 1778 unittest.expect(o.description, unittest.equals('foo')); |
| 1744 unittest.expect(o.id, unittest.equals('foo')); | 1779 unittest.expect(o.id, unittest.equals('foo')); |
| 1745 unittest.expect(o.layerType, unittest.equals('foo')); | 1780 unittest.expect(o.layerType, unittest.equals('foo')); |
| 1746 unittest.expect(o.name, unittest.equals('foo')); | 1781 unittest.expect(o.name, unittest.equals('foo')); |
| 1747 unittest.expect(o.projectId, unittest.equals('foo')); | 1782 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1748 } | 1783 } |
| 1749 buildCounterPublishedLayer--; | 1784 buildCounterPublishedLayer--; |
| 1750 } | 1785 } |
| 1751 | 1786 |
| 1752 buildUnnamed127() { | 1787 buildUnnamed1198() { |
| 1753 var o = new core.List<api.PublishedLayer>(); | 1788 var o = new core.List<api.PublishedLayer>(); |
| 1754 o.add(buildPublishedLayer()); | 1789 o.add(buildPublishedLayer()); |
| 1755 o.add(buildPublishedLayer()); | 1790 o.add(buildPublishedLayer()); |
| 1756 return o; | 1791 return o; |
| 1757 } | 1792 } |
| 1758 | 1793 |
| 1759 checkUnnamed127(core.List<api.PublishedLayer> o) { | 1794 checkUnnamed1198(core.List<api.PublishedLayer> o) { |
| 1760 unittest.expect(o, unittest.hasLength(2)); | 1795 unittest.expect(o, unittest.hasLength(2)); |
| 1761 checkPublishedLayer(o[0]); | 1796 checkPublishedLayer(o[0]); |
| 1762 checkPublishedLayer(o[1]); | 1797 checkPublishedLayer(o[1]); |
| 1763 } | 1798 } |
| 1764 | 1799 |
| 1765 core.int buildCounterPublishedLayersListResponse = 0; | 1800 core.int buildCounterPublishedLayersListResponse = 0; |
| 1766 buildPublishedLayersListResponse() { | 1801 buildPublishedLayersListResponse() { |
| 1767 var o = new api.PublishedLayersListResponse(); | 1802 var o = new api.PublishedLayersListResponse(); |
| 1768 buildCounterPublishedLayersListResponse++; | 1803 buildCounterPublishedLayersListResponse++; |
| 1769 if (buildCounterPublishedLayersListResponse < 3) { | 1804 if (buildCounterPublishedLayersListResponse < 3) { |
| 1770 o.layers = buildUnnamed127(); | 1805 o.layers = buildUnnamed1198(); |
| 1771 o.nextPageToken = "foo"; | 1806 o.nextPageToken = "foo"; |
| 1772 } | 1807 } |
| 1773 buildCounterPublishedLayersListResponse--; | 1808 buildCounterPublishedLayersListResponse--; |
| 1774 return o; | 1809 return o; |
| 1775 } | 1810 } |
| 1776 | 1811 |
| 1777 checkPublishedLayersListResponse(api.PublishedLayersListResponse o) { | 1812 checkPublishedLayersListResponse(api.PublishedLayersListResponse o) { |
| 1778 buildCounterPublishedLayersListResponse++; | 1813 buildCounterPublishedLayersListResponse++; |
| 1779 if (buildCounterPublishedLayersListResponse < 3) { | 1814 if (buildCounterPublishedLayersListResponse < 3) { |
| 1780 checkUnnamed127(o.layers); | 1815 checkUnnamed1198(o.layers); |
| 1781 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1816 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1782 } | 1817 } |
| 1783 buildCounterPublishedLayersListResponse--; | 1818 buildCounterPublishedLayersListResponse--; |
| 1784 } | 1819 } |
| 1785 | 1820 |
| 1786 core.int buildCounterPublishedMap = 0; | 1821 core.int buildCounterPublishedMap = 0; |
| 1787 buildPublishedMap() { | 1822 buildPublishedMap() { |
| 1788 var o = new api.PublishedMap(); | 1823 var o = new api.PublishedMap(); |
| 1789 buildCounterPublishedMap++; | 1824 buildCounterPublishedMap++; |
| 1790 if (buildCounterPublishedMap < 3) { | 1825 if (buildCounterPublishedMap < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1805 checkMapContents(o.contents); | 1840 checkMapContents(o.contents); |
| 1806 checkLatLngBox(o.defaultViewport); | 1841 checkLatLngBox(o.defaultViewport); |
| 1807 unittest.expect(o.description, unittest.equals('foo')); | 1842 unittest.expect(o.description, unittest.equals('foo')); |
| 1808 unittest.expect(o.id, unittest.equals('foo')); | 1843 unittest.expect(o.id, unittest.equals('foo')); |
| 1809 unittest.expect(o.name, unittest.equals('foo')); | 1844 unittest.expect(o.name, unittest.equals('foo')); |
| 1810 unittest.expect(o.projectId, unittest.equals('foo')); | 1845 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1811 } | 1846 } |
| 1812 buildCounterPublishedMap--; | 1847 buildCounterPublishedMap--; |
| 1813 } | 1848 } |
| 1814 | 1849 |
| 1815 buildUnnamed128() { | 1850 buildUnnamed1199() { |
| 1816 var o = new core.List<api.PublishedMap>(); | 1851 var o = new core.List<api.PublishedMap>(); |
| 1817 o.add(buildPublishedMap()); | 1852 o.add(buildPublishedMap()); |
| 1818 o.add(buildPublishedMap()); | 1853 o.add(buildPublishedMap()); |
| 1819 return o; | 1854 return o; |
| 1820 } | 1855 } |
| 1821 | 1856 |
| 1822 checkUnnamed128(core.List<api.PublishedMap> o) { | 1857 checkUnnamed1199(core.List<api.PublishedMap> o) { |
| 1823 unittest.expect(o, unittest.hasLength(2)); | 1858 unittest.expect(o, unittest.hasLength(2)); |
| 1824 checkPublishedMap(o[0]); | 1859 checkPublishedMap(o[0]); |
| 1825 checkPublishedMap(o[1]); | 1860 checkPublishedMap(o[1]); |
| 1826 } | 1861 } |
| 1827 | 1862 |
| 1828 core.int buildCounterPublishedMapsListResponse = 0; | 1863 core.int buildCounterPublishedMapsListResponse = 0; |
| 1829 buildPublishedMapsListResponse() { | 1864 buildPublishedMapsListResponse() { |
| 1830 var o = new api.PublishedMapsListResponse(); | 1865 var o = new api.PublishedMapsListResponse(); |
| 1831 buildCounterPublishedMapsListResponse++; | 1866 buildCounterPublishedMapsListResponse++; |
| 1832 if (buildCounterPublishedMapsListResponse < 3) { | 1867 if (buildCounterPublishedMapsListResponse < 3) { |
| 1833 o.maps = buildUnnamed128(); | 1868 o.maps = buildUnnamed1199(); |
| 1834 o.nextPageToken = "foo"; | 1869 o.nextPageToken = "foo"; |
| 1835 } | 1870 } |
| 1836 buildCounterPublishedMapsListResponse--; | 1871 buildCounterPublishedMapsListResponse--; |
| 1837 return o; | 1872 return o; |
| 1838 } | 1873 } |
| 1839 | 1874 |
| 1840 checkPublishedMapsListResponse(api.PublishedMapsListResponse o) { | 1875 checkPublishedMapsListResponse(api.PublishedMapsListResponse o) { |
| 1841 buildCounterPublishedMapsListResponse++; | 1876 buildCounterPublishedMapsListResponse++; |
| 1842 if (buildCounterPublishedMapsListResponse < 3) { | 1877 if (buildCounterPublishedMapsListResponse < 3) { |
| 1843 checkUnnamed128(o.maps); | 1878 checkUnnamed1199(o.maps); |
| 1844 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1879 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1845 } | 1880 } |
| 1846 buildCounterPublishedMapsListResponse--; | 1881 buildCounterPublishedMapsListResponse--; |
| 1847 } | 1882 } |
| 1848 | 1883 |
| 1849 buildUnnamed129() { | 1884 buildUnnamed1200() { |
| 1850 var o = new core.List<core.double>(); | 1885 var o = new core.List<core.double>(); |
| 1851 o.add(42.0); | 1886 o.add(42.0); |
| 1852 o.add(42.0); | 1887 o.add(42.0); |
| 1853 return o; | 1888 return o; |
| 1854 } | 1889 } |
| 1855 | 1890 |
| 1856 checkUnnamed129(core.List<core.double> o) { | 1891 checkUnnamed1200(core.List<core.double> o) { |
| 1857 unittest.expect(o, unittest.hasLength(2)); | 1892 unittest.expect(o, unittest.hasLength(2)); |
| 1858 unittest.expect(o[0], unittest.equals(42.0)); | 1893 unittest.expect(o[0], unittest.equals(42.0)); |
| 1859 unittest.expect(o[1], unittest.equals(42.0)); | 1894 unittest.expect(o[1], unittest.equals(42.0)); |
| 1860 } | 1895 } |
| 1861 | 1896 |
| 1862 buildUnnamed130() { | 1897 buildUnnamed1201() { |
| 1863 var o = new core.List<api.File>(); | 1898 var o = new core.List<api.File>(); |
| 1864 o.add(buildFile()); | 1899 o.add(buildFile()); |
| 1865 o.add(buildFile()); | 1900 o.add(buildFile()); |
| 1866 return o; | 1901 return o; |
| 1867 } | 1902 } |
| 1868 | 1903 |
| 1869 checkUnnamed130(core.List<api.File> o) { | 1904 checkUnnamed1201(core.List<api.File> o) { |
| 1870 unittest.expect(o, unittest.hasLength(2)); | 1905 unittest.expect(o, unittest.hasLength(2)); |
| 1871 checkFile(o[0]); | 1906 checkFile(o[0]); |
| 1872 checkFile(o[1]); | 1907 checkFile(o[1]); |
| 1873 } | 1908 } |
| 1874 | 1909 |
| 1875 core.int buildCounterRaster = 0; | 1910 core.int buildCounterRaster = 0; |
| 1876 buildRaster() { | 1911 buildRaster() { |
| 1877 var o = new api.Raster(); | 1912 var o = new api.Raster(); |
| 1878 buildCounterRaster++; | 1913 buildCounterRaster++; |
| 1879 if (buildCounterRaster < 3) { | 1914 if (buildCounterRaster < 3) { |
| 1880 o.acquisitionTime = buildAcquisitionTime(); | 1915 o.acquisitionTime = buildAcquisitionTime(); |
| 1881 o.attribution = "foo"; | 1916 o.attribution = "foo"; |
| 1882 o.bbox = buildUnnamed129(); | 1917 o.bbox = buildUnnamed1200(); |
| 1883 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1918 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1884 o.creatorEmail = "foo"; | 1919 o.creatorEmail = "foo"; |
| 1885 o.description = "foo"; | 1920 o.description = "foo"; |
| 1886 o.draftAccessList = "foo"; | 1921 o.draftAccessList = "foo"; |
| 1887 o.etag = "foo"; | 1922 o.etag = "foo"; |
| 1888 o.files = buildUnnamed130(); | 1923 o.files = buildUnnamed1201(); |
| 1889 o.id = "foo"; | 1924 o.id = "foo"; |
| 1890 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1925 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1891 o.lastModifierEmail = "foo"; | 1926 o.lastModifierEmail = "foo"; |
| 1892 o.maskType = "foo"; | 1927 o.maskType = "foo"; |
| 1893 o.name = "foo"; | 1928 o.name = "foo"; |
| 1894 o.processingStatus = "foo"; | 1929 o.processingStatus = "foo"; |
| 1895 o.projectId = "foo"; | 1930 o.projectId = "foo"; |
| 1896 o.rasterType = "foo"; | 1931 o.rasterType = "foo"; |
| 1897 o.tags = buildTags(); | 1932 o.tags = buildTags(); |
| 1898 o.writersCanEditPermissions = true; | 1933 o.writersCanEditPermissions = true; |
| 1899 } | 1934 } |
| 1900 buildCounterRaster--; | 1935 buildCounterRaster--; |
| 1901 return o; | 1936 return o; |
| 1902 } | 1937 } |
| 1903 | 1938 |
| 1904 checkRaster(api.Raster o) { | 1939 checkRaster(api.Raster o) { |
| 1905 buildCounterRaster++; | 1940 buildCounterRaster++; |
| 1906 if (buildCounterRaster < 3) { | 1941 if (buildCounterRaster < 3) { |
| 1907 checkAcquisitionTime(o.acquisitionTime); | 1942 checkAcquisitionTime(o.acquisitionTime); |
| 1908 unittest.expect(o.attribution, unittest.equals('foo')); | 1943 unittest.expect(o.attribution, unittest.equals('foo')); |
| 1909 checkUnnamed129(o.bbox); | 1944 checkUnnamed1200(o.bbox); |
| 1910 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1945 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1911 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 1946 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 1912 unittest.expect(o.description, unittest.equals('foo')); | 1947 unittest.expect(o.description, unittest.equals('foo')); |
| 1913 unittest.expect(o.draftAccessList, unittest.equals('foo')); | 1948 unittest.expect(o.draftAccessList, unittest.equals('foo')); |
| 1914 unittest.expect(o.etag, unittest.equals('foo')); | 1949 unittest.expect(o.etag, unittest.equals('foo')); |
| 1915 checkUnnamed130(o.files); | 1950 checkUnnamed1201(o.files); |
| 1916 unittest.expect(o.id, unittest.equals('foo')); | 1951 unittest.expect(o.id, unittest.equals('foo')); |
| 1917 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 1952 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1918 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 1953 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 1919 unittest.expect(o.maskType, unittest.equals('foo')); | 1954 unittest.expect(o.maskType, unittest.equals('foo')); |
| 1920 unittest.expect(o.name, unittest.equals('foo')); | 1955 unittest.expect(o.name, unittest.equals('foo')); |
| 1921 unittest.expect(o.processingStatus, unittest.equals('foo')); | 1956 unittest.expect(o.processingStatus, unittest.equals('foo')); |
| 1922 unittest.expect(o.projectId, unittest.equals('foo')); | 1957 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1923 unittest.expect(o.rasterType, unittest.equals('foo')); | 1958 unittest.expect(o.rasterType, unittest.equals('foo')); |
| 1924 checkTags(o.tags); | 1959 checkTags(o.tags); |
| 1925 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); | 1960 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); |
| 1926 } | 1961 } |
| 1927 buildCounterRaster--; | 1962 buildCounterRaster--; |
| 1928 } | 1963 } |
| 1929 | 1964 |
| 1930 buildUnnamed131() { | 1965 buildUnnamed1202() { |
| 1931 var o = new core.List<core.double>(); | 1966 var o = new core.List<core.double>(); |
| 1932 o.add(42.0); | 1967 o.add(42.0); |
| 1933 o.add(42.0); | 1968 o.add(42.0); |
| 1934 return o; | 1969 return o; |
| 1935 } | 1970 } |
| 1936 | 1971 |
| 1937 checkUnnamed131(core.List<core.double> o) { | 1972 checkUnnamed1202(core.List<core.double> o) { |
| 1938 unittest.expect(o, unittest.hasLength(2)); | 1973 unittest.expect(o, unittest.hasLength(2)); |
| 1939 unittest.expect(o[0], unittest.equals(42.0)); | 1974 unittest.expect(o[0], unittest.equals(42.0)); |
| 1940 unittest.expect(o[1], unittest.equals(42.0)); | 1975 unittest.expect(o[1], unittest.equals(42.0)); |
| 1941 } | 1976 } |
| 1942 | 1977 |
| 1943 core.int buildCounterRasterCollection = 0; | 1978 core.int buildCounterRasterCollection = 0; |
| 1944 buildRasterCollection() { | 1979 buildRasterCollection() { |
| 1945 var o = new api.RasterCollection(); | 1980 var o = new api.RasterCollection(); |
| 1946 buildCounterRasterCollection++; | 1981 buildCounterRasterCollection++; |
| 1947 if (buildCounterRasterCollection < 3) { | 1982 if (buildCounterRasterCollection < 3) { |
| 1948 o.attribution = "foo"; | 1983 o.attribution = "foo"; |
| 1949 o.bbox = buildUnnamed131(); | 1984 o.bbox = buildUnnamed1202(); |
| 1950 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1985 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1951 o.creatorEmail = "foo"; | 1986 o.creatorEmail = "foo"; |
| 1952 o.description = "foo"; | 1987 o.description = "foo"; |
| 1953 o.draftAccessList = "foo"; | 1988 o.draftAccessList = "foo"; |
| 1954 o.etag = "foo"; | 1989 o.etag = "foo"; |
| 1955 o.id = "foo"; | 1990 o.id = "foo"; |
| 1956 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1991 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1957 o.lastModifierEmail = "foo"; | 1992 o.lastModifierEmail = "foo"; |
| 1958 o.mosaic = true; | 1993 o.mosaic = true; |
| 1959 o.name = "foo"; | 1994 o.name = "foo"; |
| 1960 o.processingStatus = "foo"; | 1995 o.processingStatus = "foo"; |
| 1961 o.projectId = "foo"; | 1996 o.projectId = "foo"; |
| 1962 o.rasterType = "foo"; | 1997 o.rasterType = "foo"; |
| 1963 o.tags = buildTags(); | 1998 o.tags = buildTags(); |
| 1964 o.writersCanEditPermissions = true; | 1999 o.writersCanEditPermissions = true; |
| 1965 } | 2000 } |
| 1966 buildCounterRasterCollection--; | 2001 buildCounterRasterCollection--; |
| 1967 return o; | 2002 return o; |
| 1968 } | 2003 } |
| 1969 | 2004 |
| 1970 checkRasterCollection(api.RasterCollection o) { | 2005 checkRasterCollection(api.RasterCollection o) { |
| 1971 buildCounterRasterCollection++; | 2006 buildCounterRasterCollection++; |
| 1972 if (buildCounterRasterCollection < 3) { | 2007 if (buildCounterRasterCollection < 3) { |
| 1973 unittest.expect(o.attribution, unittest.equals('foo')); | 2008 unittest.expect(o.attribution, unittest.equals('foo')); |
| 1974 checkUnnamed131(o.bbox); | 2009 checkUnnamed1202(o.bbox); |
| 1975 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 2010 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1976 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 2011 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 1977 unittest.expect(o.description, unittest.equals('foo')); | 2012 unittest.expect(o.description, unittest.equals('foo')); |
| 1978 unittest.expect(o.draftAccessList, unittest.equals('foo')); | 2013 unittest.expect(o.draftAccessList, unittest.equals('foo')); |
| 1979 unittest.expect(o.etag, unittest.equals('foo')); | 2014 unittest.expect(o.etag, unittest.equals('foo')); |
| 1980 unittest.expect(o.id, unittest.equals('foo')); | 2015 unittest.expect(o.id, unittest.equals('foo')); |
| 1981 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 2016 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 1982 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 2017 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 1983 unittest.expect(o.mosaic, unittest.isTrue); | 2018 unittest.expect(o.mosaic, unittest.isTrue); |
| 1984 unittest.expect(o.name, unittest.equals('foo')); | 2019 unittest.expect(o.name, unittest.equals('foo')); |
| 1985 unittest.expect(o.processingStatus, unittest.equals('foo')); | 2020 unittest.expect(o.processingStatus, unittest.equals('foo')); |
| 1986 unittest.expect(o.projectId, unittest.equals('foo')); | 2021 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1987 unittest.expect(o.rasterType, unittest.equals('foo')); | 2022 unittest.expect(o.rasterType, unittest.equals('foo')); |
| 1988 checkTags(o.tags); | 2023 checkTags(o.tags); |
| 1989 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); | 2024 unittest.expect(o.writersCanEditPermissions, unittest.isTrue); |
| 1990 } | 2025 } |
| 1991 buildCounterRasterCollection--; | 2026 buildCounterRasterCollection--; |
| 1992 } | 2027 } |
| 1993 | 2028 |
| 1994 buildUnnamed132() { | 2029 buildUnnamed1203() { |
| 1995 var o = new core.List<api.RasterCollection>(); | 2030 var o = new core.List<api.RasterCollection>(); |
| 1996 o.add(buildRasterCollection()); | 2031 o.add(buildRasterCollection()); |
| 1997 o.add(buildRasterCollection()); | 2032 o.add(buildRasterCollection()); |
| 1998 return o; | 2033 return o; |
| 1999 } | 2034 } |
| 2000 | 2035 |
| 2001 checkUnnamed132(core.List<api.RasterCollection> o) { | 2036 checkUnnamed1203(core.List<api.RasterCollection> o) { |
| 2002 unittest.expect(o, unittest.hasLength(2)); | 2037 unittest.expect(o, unittest.hasLength(2)); |
| 2003 checkRasterCollection(o[0]); | 2038 checkRasterCollection(o[0]); |
| 2004 checkRasterCollection(o[1]); | 2039 checkRasterCollection(o[1]); |
| 2005 } | 2040 } |
| 2006 | 2041 |
| 2007 core.int buildCounterRasterCollectionsListResponse = 0; | 2042 core.int buildCounterRasterCollectionsListResponse = 0; |
| 2008 buildRasterCollectionsListResponse() { | 2043 buildRasterCollectionsListResponse() { |
| 2009 var o = new api.RasterCollectionsListResponse(); | 2044 var o = new api.RasterCollectionsListResponse(); |
| 2010 buildCounterRasterCollectionsListResponse++; | 2045 buildCounterRasterCollectionsListResponse++; |
| 2011 if (buildCounterRasterCollectionsListResponse < 3) { | 2046 if (buildCounterRasterCollectionsListResponse < 3) { |
| 2012 o.nextPageToken = "foo"; | 2047 o.nextPageToken = "foo"; |
| 2013 o.rasterCollections = buildUnnamed132(); | 2048 o.rasterCollections = buildUnnamed1203(); |
| 2014 } | 2049 } |
| 2015 buildCounterRasterCollectionsListResponse--; | 2050 buildCounterRasterCollectionsListResponse--; |
| 2016 return o; | 2051 return o; |
| 2017 } | 2052 } |
| 2018 | 2053 |
| 2019 checkRasterCollectionsListResponse(api.RasterCollectionsListResponse o) { | 2054 checkRasterCollectionsListResponse(api.RasterCollectionsListResponse o) { |
| 2020 buildCounterRasterCollectionsListResponse++; | 2055 buildCounterRasterCollectionsListResponse++; |
| 2021 if (buildCounterRasterCollectionsListResponse < 3) { | 2056 if (buildCounterRasterCollectionsListResponse < 3) { |
| 2022 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2057 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2023 checkUnnamed132(o.rasterCollections); | 2058 checkUnnamed1203(o.rasterCollections); |
| 2024 } | 2059 } |
| 2025 buildCounterRasterCollectionsListResponse--; | 2060 buildCounterRasterCollectionsListResponse--; |
| 2026 } | 2061 } |
| 2027 | 2062 |
| 2028 buildUnnamed133() { | 2063 buildUnnamed1204() { |
| 2029 var o = new core.List<core.double>(); | 2064 var o = new core.List<core.double>(); |
| 2030 o.add(42.0); | 2065 o.add(42.0); |
| 2031 o.add(42.0); | 2066 o.add(42.0); |
| 2032 return o; | 2067 return o; |
| 2033 } | 2068 } |
| 2034 | 2069 |
| 2035 checkUnnamed133(core.List<core.double> o) { | 2070 checkUnnamed1204(core.List<core.double> o) { |
| 2036 unittest.expect(o, unittest.hasLength(2)); | 2071 unittest.expect(o, unittest.hasLength(2)); |
| 2037 unittest.expect(o[0], unittest.equals(42.0)); | 2072 unittest.expect(o[0], unittest.equals(42.0)); |
| 2038 unittest.expect(o[1], unittest.equals(42.0)); | 2073 unittest.expect(o[1], unittest.equals(42.0)); |
| 2039 } | 2074 } |
| 2040 | 2075 |
| 2041 buildUnnamed134() { | 2076 buildUnnamed1205() { |
| 2042 var o = new core.List<core.String>(); | 2077 var o = new core.List<core.String>(); |
| 2043 o.add("foo"); | 2078 o.add("foo"); |
| 2044 o.add("foo"); | 2079 o.add("foo"); |
| 2045 return o; | 2080 return o; |
| 2046 } | 2081 } |
| 2047 | 2082 |
| 2048 checkUnnamed134(core.List<core.String> o) { | 2083 checkUnnamed1205(core.List<core.String> o) { |
| 2049 unittest.expect(o, unittest.hasLength(2)); | 2084 unittest.expect(o, unittest.hasLength(2)); |
| 2050 unittest.expect(o[0], unittest.equals('foo')); | 2085 unittest.expect(o[0], unittest.equals('foo')); |
| 2051 unittest.expect(o[1], unittest.equals('foo')); | 2086 unittest.expect(o[1], unittest.equals('foo')); |
| 2052 } | 2087 } |
| 2053 | 2088 |
| 2054 core.int buildCounterRasterCollectionsRaster = 0; | 2089 core.int buildCounterRasterCollectionsRaster = 0; |
| 2055 buildRasterCollectionsRaster() { | 2090 buildRasterCollectionsRaster() { |
| 2056 var o = new api.RasterCollectionsRaster(); | 2091 var o = new api.RasterCollectionsRaster(); |
| 2057 buildCounterRasterCollectionsRaster++; | 2092 buildCounterRasterCollectionsRaster++; |
| 2058 if (buildCounterRasterCollectionsRaster < 3) { | 2093 if (buildCounterRasterCollectionsRaster < 3) { |
| 2059 o.bbox = buildUnnamed133(); | 2094 o.bbox = buildUnnamed1204(); |
| 2060 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2095 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2061 o.description = "foo"; | 2096 o.description = "foo"; |
| 2062 o.id = "foo"; | 2097 o.id = "foo"; |
| 2063 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2098 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2064 o.name = "foo"; | 2099 o.name = "foo"; |
| 2065 o.projectId = "foo"; | 2100 o.projectId = "foo"; |
| 2066 o.rasterType = "foo"; | 2101 o.rasterType = "foo"; |
| 2067 o.tags = buildUnnamed134(); | 2102 o.tags = buildUnnamed1205(); |
| 2068 } | 2103 } |
| 2069 buildCounterRasterCollectionsRaster--; | 2104 buildCounterRasterCollectionsRaster--; |
| 2070 return o; | 2105 return o; |
| 2071 } | 2106 } |
| 2072 | 2107 |
| 2073 checkRasterCollectionsRaster(api.RasterCollectionsRaster o) { | 2108 checkRasterCollectionsRaster(api.RasterCollectionsRaster o) { |
| 2074 buildCounterRasterCollectionsRaster++; | 2109 buildCounterRasterCollectionsRaster++; |
| 2075 if (buildCounterRasterCollectionsRaster < 3) { | 2110 if (buildCounterRasterCollectionsRaster < 3) { |
| 2076 checkUnnamed133(o.bbox); | 2111 checkUnnamed1204(o.bbox); |
| 2077 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 2112 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 2078 unittest.expect(o.description, unittest.equals('foo')); | 2113 unittest.expect(o.description, unittest.equals('foo')); |
| 2079 unittest.expect(o.id, unittest.equals('foo')); | 2114 unittest.expect(o.id, unittest.equals('foo')); |
| 2080 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 2115 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 2081 unittest.expect(o.name, unittest.equals('foo')); | 2116 unittest.expect(o.name, unittest.equals('foo')); |
| 2082 unittest.expect(o.projectId, unittest.equals('foo')); | 2117 unittest.expect(o.projectId, unittest.equals('foo')); |
| 2083 unittest.expect(o.rasterType, unittest.equals('foo')); | 2118 unittest.expect(o.rasterType, unittest.equals('foo')); |
| 2084 checkUnnamed134(o.tags); | 2119 checkUnnamed1205(o.tags); |
| 2085 } | 2120 } |
| 2086 buildCounterRasterCollectionsRaster--; | 2121 buildCounterRasterCollectionsRaster--; |
| 2087 } | 2122 } |
| 2088 | 2123 |
| 2089 buildUnnamed135() { | 2124 buildUnnamed1206() { |
| 2090 var o = new core.List<core.String>(); | 2125 var o = new core.List<core.String>(); |
| 2091 o.add("foo"); | 2126 o.add("foo"); |
| 2092 o.add("foo"); | 2127 o.add("foo"); |
| 2093 return o; | 2128 return o; |
| 2094 } | 2129 } |
| 2095 | 2130 |
| 2096 checkUnnamed135(core.List<core.String> o) { | 2131 checkUnnamed1206(core.List<core.String> o) { |
| 2097 unittest.expect(o, unittest.hasLength(2)); | 2132 unittest.expect(o, unittest.hasLength(2)); |
| 2098 unittest.expect(o[0], unittest.equals('foo')); | 2133 unittest.expect(o[0], unittest.equals('foo')); |
| 2099 unittest.expect(o[1], unittest.equals('foo')); | 2134 unittest.expect(o[1], unittest.equals('foo')); |
| 2100 } | 2135 } |
| 2101 | 2136 |
| 2102 core.int buildCounterRasterCollectionsRasterBatchDeleteRequest = 0; | 2137 core.int buildCounterRasterCollectionsRasterBatchDeleteRequest = 0; |
| 2103 buildRasterCollectionsRasterBatchDeleteRequest() { | 2138 buildRasterCollectionsRasterBatchDeleteRequest() { |
| 2104 var o = new api.RasterCollectionsRasterBatchDeleteRequest(); | 2139 var o = new api.RasterCollectionsRasterBatchDeleteRequest(); |
| 2105 buildCounterRasterCollectionsRasterBatchDeleteRequest++; | 2140 buildCounterRasterCollectionsRasterBatchDeleteRequest++; |
| 2106 if (buildCounterRasterCollectionsRasterBatchDeleteRequest < 3) { | 2141 if (buildCounterRasterCollectionsRasterBatchDeleteRequest < 3) { |
| 2107 o.ids = buildUnnamed135(); | 2142 o.ids = buildUnnamed1206(); |
| 2108 } | 2143 } |
| 2109 buildCounterRasterCollectionsRasterBatchDeleteRequest--; | 2144 buildCounterRasterCollectionsRasterBatchDeleteRequest--; |
| 2110 return o; | 2145 return o; |
| 2111 } | 2146 } |
| 2112 | 2147 |
| 2113 checkRasterCollectionsRasterBatchDeleteRequest(api.RasterCollectionsRasterBatchD
eleteRequest o) { | 2148 checkRasterCollectionsRasterBatchDeleteRequest(api.RasterCollectionsRasterBatchD
eleteRequest o) { |
| 2114 buildCounterRasterCollectionsRasterBatchDeleteRequest++; | 2149 buildCounterRasterCollectionsRasterBatchDeleteRequest++; |
| 2115 if (buildCounterRasterCollectionsRasterBatchDeleteRequest < 3) { | 2150 if (buildCounterRasterCollectionsRasterBatchDeleteRequest < 3) { |
| 2116 checkUnnamed135(o.ids); | 2151 checkUnnamed1206(o.ids); |
| 2117 } | 2152 } |
| 2118 buildCounterRasterCollectionsRasterBatchDeleteRequest--; | 2153 buildCounterRasterCollectionsRasterBatchDeleteRequest--; |
| 2119 } | 2154 } |
| 2120 | 2155 |
| 2121 core.int buildCounterRasterCollectionsRastersBatchDeleteResponse = 0; | 2156 core.int buildCounterRasterCollectionsRastersBatchDeleteResponse = 0; |
| 2122 buildRasterCollectionsRastersBatchDeleteResponse() { | 2157 buildRasterCollectionsRastersBatchDeleteResponse() { |
| 2123 var o = new api.RasterCollectionsRastersBatchDeleteResponse(); | 2158 var o = new api.RasterCollectionsRastersBatchDeleteResponse(); |
| 2124 buildCounterRasterCollectionsRastersBatchDeleteResponse++; | 2159 buildCounterRasterCollectionsRastersBatchDeleteResponse++; |
| 2125 if (buildCounterRasterCollectionsRastersBatchDeleteResponse < 3) { | 2160 if (buildCounterRasterCollectionsRastersBatchDeleteResponse < 3) { |
| 2126 } | 2161 } |
| 2127 buildCounterRasterCollectionsRastersBatchDeleteResponse--; | 2162 buildCounterRasterCollectionsRastersBatchDeleteResponse--; |
| 2128 return o; | 2163 return o; |
| 2129 } | 2164 } |
| 2130 | 2165 |
| 2131 checkRasterCollectionsRastersBatchDeleteResponse(api.RasterCollectionsRastersBat
chDeleteResponse o) { | 2166 checkRasterCollectionsRastersBatchDeleteResponse(api.RasterCollectionsRastersBat
chDeleteResponse o) { |
| 2132 buildCounterRasterCollectionsRastersBatchDeleteResponse++; | 2167 buildCounterRasterCollectionsRastersBatchDeleteResponse++; |
| 2133 if (buildCounterRasterCollectionsRastersBatchDeleteResponse < 3) { | 2168 if (buildCounterRasterCollectionsRastersBatchDeleteResponse < 3) { |
| 2134 } | 2169 } |
| 2135 buildCounterRasterCollectionsRastersBatchDeleteResponse--; | 2170 buildCounterRasterCollectionsRastersBatchDeleteResponse--; |
| 2136 } | 2171 } |
| 2137 | 2172 |
| 2138 buildUnnamed136() { | 2173 buildUnnamed1207() { |
| 2139 var o = new core.List<core.String>(); | 2174 var o = new core.List<core.String>(); |
| 2140 o.add("foo"); | 2175 o.add("foo"); |
| 2141 o.add("foo"); | 2176 o.add("foo"); |
| 2142 return o; | 2177 return o; |
| 2143 } | 2178 } |
| 2144 | 2179 |
| 2145 checkUnnamed136(core.List<core.String> o) { | 2180 checkUnnamed1207(core.List<core.String> o) { |
| 2146 unittest.expect(o, unittest.hasLength(2)); | 2181 unittest.expect(o, unittest.hasLength(2)); |
| 2147 unittest.expect(o[0], unittest.equals('foo')); | 2182 unittest.expect(o[0], unittest.equals('foo')); |
| 2148 unittest.expect(o[1], unittest.equals('foo')); | 2183 unittest.expect(o[1], unittest.equals('foo')); |
| 2149 } | 2184 } |
| 2150 | 2185 |
| 2151 core.int buildCounterRasterCollectionsRastersBatchInsertRequest = 0; | 2186 core.int buildCounterRasterCollectionsRastersBatchInsertRequest = 0; |
| 2152 buildRasterCollectionsRastersBatchInsertRequest() { | 2187 buildRasterCollectionsRastersBatchInsertRequest() { |
| 2153 var o = new api.RasterCollectionsRastersBatchInsertRequest(); | 2188 var o = new api.RasterCollectionsRastersBatchInsertRequest(); |
| 2154 buildCounterRasterCollectionsRastersBatchInsertRequest++; | 2189 buildCounterRasterCollectionsRastersBatchInsertRequest++; |
| 2155 if (buildCounterRasterCollectionsRastersBatchInsertRequest < 3) { | 2190 if (buildCounterRasterCollectionsRastersBatchInsertRequest < 3) { |
| 2156 o.ids = buildUnnamed136(); | 2191 o.ids = buildUnnamed1207(); |
| 2157 } | 2192 } |
| 2158 buildCounterRasterCollectionsRastersBatchInsertRequest--; | 2193 buildCounterRasterCollectionsRastersBatchInsertRequest--; |
| 2159 return o; | 2194 return o; |
| 2160 } | 2195 } |
| 2161 | 2196 |
| 2162 checkRasterCollectionsRastersBatchInsertRequest(api.RasterCollectionsRastersBatc
hInsertRequest o) { | 2197 checkRasterCollectionsRastersBatchInsertRequest(api.RasterCollectionsRastersBatc
hInsertRequest o) { |
| 2163 buildCounterRasterCollectionsRastersBatchInsertRequest++; | 2198 buildCounterRasterCollectionsRastersBatchInsertRequest++; |
| 2164 if (buildCounterRasterCollectionsRastersBatchInsertRequest < 3) { | 2199 if (buildCounterRasterCollectionsRastersBatchInsertRequest < 3) { |
| 2165 checkUnnamed136(o.ids); | 2200 checkUnnamed1207(o.ids); |
| 2166 } | 2201 } |
| 2167 buildCounterRasterCollectionsRastersBatchInsertRequest--; | 2202 buildCounterRasterCollectionsRastersBatchInsertRequest--; |
| 2168 } | 2203 } |
| 2169 | 2204 |
| 2170 core.int buildCounterRasterCollectionsRastersBatchInsertResponse = 0; | 2205 core.int buildCounterRasterCollectionsRastersBatchInsertResponse = 0; |
| 2171 buildRasterCollectionsRastersBatchInsertResponse() { | 2206 buildRasterCollectionsRastersBatchInsertResponse() { |
| 2172 var o = new api.RasterCollectionsRastersBatchInsertResponse(); | 2207 var o = new api.RasterCollectionsRastersBatchInsertResponse(); |
| 2173 buildCounterRasterCollectionsRastersBatchInsertResponse++; | 2208 buildCounterRasterCollectionsRastersBatchInsertResponse++; |
| 2174 if (buildCounterRasterCollectionsRastersBatchInsertResponse < 3) { | 2209 if (buildCounterRasterCollectionsRastersBatchInsertResponse < 3) { |
| 2175 } | 2210 } |
| 2176 buildCounterRasterCollectionsRastersBatchInsertResponse--; | 2211 buildCounterRasterCollectionsRastersBatchInsertResponse--; |
| 2177 return o; | 2212 return o; |
| 2178 } | 2213 } |
| 2179 | 2214 |
| 2180 checkRasterCollectionsRastersBatchInsertResponse(api.RasterCollectionsRastersBat
chInsertResponse o) { | 2215 checkRasterCollectionsRastersBatchInsertResponse(api.RasterCollectionsRastersBat
chInsertResponse o) { |
| 2181 buildCounterRasterCollectionsRastersBatchInsertResponse++; | 2216 buildCounterRasterCollectionsRastersBatchInsertResponse++; |
| 2182 if (buildCounterRasterCollectionsRastersBatchInsertResponse < 3) { | 2217 if (buildCounterRasterCollectionsRastersBatchInsertResponse < 3) { |
| 2183 } | 2218 } |
| 2184 buildCounterRasterCollectionsRastersBatchInsertResponse--; | 2219 buildCounterRasterCollectionsRastersBatchInsertResponse--; |
| 2185 } | 2220 } |
| 2186 | 2221 |
| 2187 buildUnnamed137() { | 2222 buildUnnamed1208() { |
| 2188 var o = new core.List<api.RasterCollectionsRaster>(); | 2223 var o = new core.List<api.RasterCollectionsRaster>(); |
| 2189 o.add(buildRasterCollectionsRaster()); | 2224 o.add(buildRasterCollectionsRaster()); |
| 2190 o.add(buildRasterCollectionsRaster()); | 2225 o.add(buildRasterCollectionsRaster()); |
| 2191 return o; | 2226 return o; |
| 2192 } | 2227 } |
| 2193 | 2228 |
| 2194 checkUnnamed137(core.List<api.RasterCollectionsRaster> o) { | 2229 checkUnnamed1208(core.List<api.RasterCollectionsRaster> o) { |
| 2195 unittest.expect(o, unittest.hasLength(2)); | 2230 unittest.expect(o, unittest.hasLength(2)); |
| 2196 checkRasterCollectionsRaster(o[0]); | 2231 checkRasterCollectionsRaster(o[0]); |
| 2197 checkRasterCollectionsRaster(o[1]); | 2232 checkRasterCollectionsRaster(o[1]); |
| 2198 } | 2233 } |
| 2199 | 2234 |
| 2200 core.int buildCounterRasterCollectionsRastersListResponse = 0; | 2235 core.int buildCounterRasterCollectionsRastersListResponse = 0; |
| 2201 buildRasterCollectionsRastersListResponse() { | 2236 buildRasterCollectionsRastersListResponse() { |
| 2202 var o = new api.RasterCollectionsRastersListResponse(); | 2237 var o = new api.RasterCollectionsRastersListResponse(); |
| 2203 buildCounterRasterCollectionsRastersListResponse++; | 2238 buildCounterRasterCollectionsRastersListResponse++; |
| 2204 if (buildCounterRasterCollectionsRastersListResponse < 3) { | 2239 if (buildCounterRasterCollectionsRastersListResponse < 3) { |
| 2205 o.nextPageToken = "foo"; | 2240 o.nextPageToken = "foo"; |
| 2206 o.rasters = buildUnnamed137(); | 2241 o.rasters = buildUnnamed1208(); |
| 2207 } | 2242 } |
| 2208 buildCounterRasterCollectionsRastersListResponse--; | 2243 buildCounterRasterCollectionsRastersListResponse--; |
| 2209 return o; | 2244 return o; |
| 2210 } | 2245 } |
| 2211 | 2246 |
| 2212 checkRasterCollectionsRastersListResponse(api.RasterCollectionsRastersListRespon
se o) { | 2247 checkRasterCollectionsRastersListResponse(api.RasterCollectionsRastersListRespon
se o) { |
| 2213 buildCounterRasterCollectionsRastersListResponse++; | 2248 buildCounterRasterCollectionsRastersListResponse++; |
| 2214 if (buildCounterRasterCollectionsRastersListResponse < 3) { | 2249 if (buildCounterRasterCollectionsRastersListResponse < 3) { |
| 2215 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2250 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2216 checkUnnamed137(o.rasters); | 2251 checkUnnamed1208(o.rasters); |
| 2217 } | 2252 } |
| 2218 buildCounterRasterCollectionsRastersListResponse--; | 2253 buildCounterRasterCollectionsRastersListResponse--; |
| 2219 } | 2254 } |
| 2220 | 2255 |
| 2221 buildUnnamed138() { | 2256 buildUnnamed1209() { |
| 2222 var o = new core.List<api.Raster>(); | 2257 var o = new core.List<api.Raster>(); |
| 2223 o.add(buildRaster()); | 2258 o.add(buildRaster()); |
| 2224 o.add(buildRaster()); | 2259 o.add(buildRaster()); |
| 2225 return o; | 2260 return o; |
| 2226 } | 2261 } |
| 2227 | 2262 |
| 2228 checkUnnamed138(core.List<api.Raster> o) { | 2263 checkUnnamed1209(core.List<api.Raster> o) { |
| 2229 unittest.expect(o, unittest.hasLength(2)); | 2264 unittest.expect(o, unittest.hasLength(2)); |
| 2230 checkRaster(o[0]); | 2265 checkRaster(o[0]); |
| 2231 checkRaster(o[1]); | 2266 checkRaster(o[1]); |
| 2232 } | 2267 } |
| 2233 | 2268 |
| 2234 core.int buildCounterRastersListResponse = 0; | 2269 core.int buildCounterRastersListResponse = 0; |
| 2235 buildRastersListResponse() { | 2270 buildRastersListResponse() { |
| 2236 var o = new api.RastersListResponse(); | 2271 var o = new api.RastersListResponse(); |
| 2237 buildCounterRastersListResponse++; | 2272 buildCounterRastersListResponse++; |
| 2238 if (buildCounterRastersListResponse < 3) { | 2273 if (buildCounterRastersListResponse < 3) { |
| 2239 o.nextPageToken = "foo"; | 2274 o.nextPageToken = "foo"; |
| 2240 o.rasters = buildUnnamed138(); | 2275 o.rasters = buildUnnamed1209(); |
| 2241 } | 2276 } |
| 2242 buildCounterRastersListResponse--; | 2277 buildCounterRastersListResponse--; |
| 2243 return o; | 2278 return o; |
| 2244 } | 2279 } |
| 2245 | 2280 |
| 2246 checkRastersListResponse(api.RastersListResponse o) { | 2281 checkRastersListResponse(api.RastersListResponse o) { |
| 2247 buildCounterRastersListResponse++; | 2282 buildCounterRastersListResponse++; |
| 2248 if (buildCounterRastersListResponse < 3) { | 2283 if (buildCounterRastersListResponse < 3) { |
| 2249 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2284 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2250 checkUnnamed138(o.rasters); | 2285 checkUnnamed1209(o.rasters); |
| 2251 } | 2286 } |
| 2252 buildCounterRastersListResponse--; | 2287 buildCounterRastersListResponse--; |
| 2253 } | 2288 } |
| 2254 | 2289 |
| 2255 core.int buildCounterScaledShape = 0; | 2290 core.int buildCounterScaledShape = 0; |
| 2256 buildScaledShape() { | 2291 buildScaledShape() { |
| 2257 var o = new api.ScaledShape(); | 2292 var o = new api.ScaledShape(); |
| 2258 buildCounterScaledShape++; | 2293 buildCounterScaledShape++; |
| 2259 if (buildCounterScaledShape < 3) { | 2294 if (buildCounterScaledShape < 3) { |
| 2260 o.border = buildBorder(); | 2295 o.border = buildBorder(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2293 buildCounterScalingFunction++; | 2328 buildCounterScalingFunction++; |
| 2294 if (buildCounterScalingFunction < 3) { | 2329 if (buildCounterScalingFunction < 3) { |
| 2295 unittest.expect(o.column, unittest.equals('foo')); | 2330 unittest.expect(o.column, unittest.equals('foo')); |
| 2296 unittest.expect(o.scalingType, unittest.equals('foo')); | 2331 unittest.expect(o.scalingType, unittest.equals('foo')); |
| 2297 checkSizeRange(o.sizeRange); | 2332 checkSizeRange(o.sizeRange); |
| 2298 checkValueRange(o.valueRange); | 2333 checkValueRange(o.valueRange); |
| 2299 } | 2334 } |
| 2300 buildCounterScalingFunction--; | 2335 buildCounterScalingFunction--; |
| 2301 } | 2336 } |
| 2302 | 2337 |
| 2303 buildUnnamed139() { | 2338 buildUnnamed1210() { |
| 2304 var o = new core.List<api.TableColumn>(); | 2339 var o = new core.List<api.TableColumn>(); |
| 2305 o.add(buildTableColumn()); | 2340 o.add(buildTableColumn()); |
| 2306 o.add(buildTableColumn()); | 2341 o.add(buildTableColumn()); |
| 2307 return o; | 2342 return o; |
| 2308 } | 2343 } |
| 2309 | 2344 |
| 2310 checkUnnamed139(core.List<api.TableColumn> o) { | 2345 checkUnnamed1210(core.List<api.TableColumn> o) { |
| 2311 unittest.expect(o, unittest.hasLength(2)); | 2346 unittest.expect(o, unittest.hasLength(2)); |
| 2312 checkTableColumn(o[0]); | 2347 checkTableColumn(o[0]); |
| 2313 checkTableColumn(o[1]); | 2348 checkTableColumn(o[1]); |
| 2314 } | 2349 } |
| 2315 | 2350 |
| 2316 core.int buildCounterSchema = 0; | 2351 core.int buildCounterSchema = 0; |
| 2317 buildSchema() { | 2352 buildSchema() { |
| 2318 var o = new api.Schema(); | 2353 var o = new api.Schema(); |
| 2319 buildCounterSchema++; | 2354 buildCounterSchema++; |
| 2320 if (buildCounterSchema < 3) { | 2355 if (buildCounterSchema < 3) { |
| 2321 o.columns = buildUnnamed139(); | 2356 o.columns = buildUnnamed1210(); |
| 2322 o.primaryGeometry = "foo"; | 2357 o.primaryGeometry = "foo"; |
| 2323 o.primaryKey = "foo"; | 2358 o.primaryKey = "foo"; |
| 2324 } | 2359 } |
| 2325 buildCounterSchema--; | 2360 buildCounterSchema--; |
| 2326 return o; | 2361 return o; |
| 2327 } | 2362 } |
| 2328 | 2363 |
| 2329 checkSchema(api.Schema o) { | 2364 checkSchema(api.Schema o) { |
| 2330 buildCounterSchema++; | 2365 buildCounterSchema++; |
| 2331 if (buildCounterSchema < 3) { | 2366 if (buildCounterSchema < 3) { |
| 2332 checkUnnamed139(o.columns); | 2367 checkUnnamed1210(o.columns); |
| 2333 unittest.expect(o.primaryGeometry, unittest.equals('foo')); | 2368 unittest.expect(o.primaryGeometry, unittest.equals('foo')); |
| 2334 unittest.expect(o.primaryKey, unittest.equals('foo')); | 2369 unittest.expect(o.primaryKey, unittest.equals('foo')); |
| 2335 } | 2370 } |
| 2336 buildCounterSchema--; | 2371 buildCounterSchema--; |
| 2337 } | 2372 } |
| 2338 | 2373 |
| 2339 core.int buildCounterSizeRange = 0; | 2374 core.int buildCounterSizeRange = 0; |
| 2340 buildSizeRange() { | 2375 buildSizeRange() { |
| 2341 var o = new api.SizeRange(); | 2376 var o = new api.SizeRange(); |
| 2342 buildCounterSizeRange++; | 2377 buildCounterSizeRange++; |
| 2343 if (buildCounterSizeRange < 3) { | 2378 if (buildCounterSizeRange < 3) { |
| 2344 o.max = 42.0; | 2379 o.max = 42.0; |
| 2345 o.min = 42.0; | 2380 o.min = 42.0; |
| 2346 } | 2381 } |
| 2347 buildCounterSizeRange--; | 2382 buildCounterSizeRange--; |
| 2348 return o; | 2383 return o; |
| 2349 } | 2384 } |
| 2350 | 2385 |
| 2351 checkSizeRange(api.SizeRange o) { | 2386 checkSizeRange(api.SizeRange o) { |
| 2352 buildCounterSizeRange++; | 2387 buildCounterSizeRange++; |
| 2353 if (buildCounterSizeRange < 3) { | 2388 if (buildCounterSizeRange < 3) { |
| 2354 unittest.expect(o.max, unittest.equals(42.0)); | 2389 unittest.expect(o.max, unittest.equals(42.0)); |
| 2355 unittest.expect(o.min, unittest.equals(42.0)); | 2390 unittest.expect(o.min, unittest.equals(42.0)); |
| 2356 } | 2391 } |
| 2357 buildCounterSizeRange--; | 2392 buildCounterSizeRange--; |
| 2358 } | 2393 } |
| 2359 | 2394 |
| 2360 buildUnnamed140() { | 2395 buildUnnamed1211() { |
| 2361 var o = new core.List<core.double>(); | 2396 var o = new core.List<core.double>(); |
| 2362 o.add(42.0); | 2397 o.add(42.0); |
| 2363 o.add(42.0); | 2398 o.add(42.0); |
| 2364 return o; | 2399 return o; |
| 2365 } | 2400 } |
| 2366 | 2401 |
| 2367 checkUnnamed140(core.List<core.double> o) { | 2402 checkUnnamed1211(core.List<core.double> o) { |
| 2368 unittest.expect(o, unittest.hasLength(2)); | 2403 unittest.expect(o, unittest.hasLength(2)); |
| 2369 unittest.expect(o[0], unittest.equals(42.0)); | 2404 unittest.expect(o[0], unittest.equals(42.0)); |
| 2370 unittest.expect(o[1], unittest.equals(42.0)); | 2405 unittest.expect(o[1], unittest.equals(42.0)); |
| 2371 } | 2406 } |
| 2372 | 2407 |
| 2373 buildUnnamed141() { | 2408 buildUnnamed1212() { |
| 2374 var o = new core.List<api.File>(); | 2409 var o = new core.List<api.File>(); |
| 2375 o.add(buildFile()); | 2410 o.add(buildFile()); |
| 2376 o.add(buildFile()); | 2411 o.add(buildFile()); |
| 2377 return o; | 2412 return o; |
| 2378 } | 2413 } |
| 2379 | 2414 |
| 2380 checkUnnamed141(core.List<api.File> o) { | 2415 checkUnnamed1212(core.List<api.File> o) { |
| 2381 unittest.expect(o, unittest.hasLength(2)); | 2416 unittest.expect(o, unittest.hasLength(2)); |
| 2382 checkFile(o[0]); | 2417 checkFile(o[0]); |
| 2383 checkFile(o[1]); | 2418 checkFile(o[1]); |
| 2384 } | 2419 } |
| 2385 | 2420 |
| 2386 core.int buildCounterTable = 0; | 2421 core.int buildCounterTable = 0; |
| 2387 buildTable() { | 2422 buildTable() { |
| 2388 var o = new api.Table(); | 2423 var o = new api.Table(); |
| 2389 buildCounterTable++; | 2424 buildCounterTable++; |
| 2390 if (buildCounterTable < 3) { | 2425 if (buildCounterTable < 3) { |
| 2391 o.bbox = buildUnnamed140(); | 2426 o.bbox = buildUnnamed1211(); |
| 2392 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2427 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2393 o.creatorEmail = "foo"; | 2428 o.creatorEmail = "foo"; |
| 2394 o.description = "foo"; | 2429 o.description = "foo"; |
| 2395 o.draftAccessList = "foo"; | 2430 o.draftAccessList = "foo"; |
| 2396 o.etag = "foo"; | 2431 o.etag = "foo"; |
| 2397 o.files = buildUnnamed141(); | 2432 o.files = buildUnnamed1212(); |
| 2398 o.id = "foo"; | 2433 o.id = "foo"; |
| 2399 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 2434 o.lastModifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2400 o.lastModifierEmail = "foo"; | 2435 o.lastModifierEmail = "foo"; |
| 2401 o.name = "foo"; | 2436 o.name = "foo"; |
| 2402 o.processingStatus = "foo"; | 2437 o.processingStatus = "foo"; |
| 2403 o.projectId = "foo"; | 2438 o.projectId = "foo"; |
| 2404 o.publishedAccessList = "foo"; | 2439 o.publishedAccessList = "foo"; |
| 2405 o.schema = buildSchema(); | 2440 o.schema = buildSchema(); |
| 2406 o.sourceEncoding = "foo"; | 2441 o.sourceEncoding = "foo"; |
| 2407 o.tags = buildTags(); | 2442 o.tags = buildTags(); |
| 2408 o.writersCanEditPermissions = true; | 2443 o.writersCanEditPermissions = true; |
| 2409 } | 2444 } |
| 2410 buildCounterTable--; | 2445 buildCounterTable--; |
| 2411 return o; | 2446 return o; |
| 2412 } | 2447 } |
| 2413 | 2448 |
| 2414 checkTable(api.Table o) { | 2449 checkTable(api.Table o) { |
| 2415 buildCounterTable++; | 2450 buildCounterTable++; |
| 2416 if (buildCounterTable < 3) { | 2451 if (buildCounterTable < 3) { |
| 2417 checkUnnamed140(o.bbox); | 2452 checkUnnamed1211(o.bbox); |
| 2418 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 2453 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 2419 unittest.expect(o.creatorEmail, unittest.equals('foo')); | 2454 unittest.expect(o.creatorEmail, unittest.equals('foo')); |
| 2420 unittest.expect(o.description, unittest.equals('foo')); | 2455 unittest.expect(o.description, unittest.equals('foo')); |
| 2421 unittest.expect(o.draftAccessList, unittest.equals('foo')); | 2456 unittest.expect(o.draftAccessList, unittest.equals('foo')); |
| 2422 unittest.expect(o.etag, unittest.equals('foo')); | 2457 unittest.expect(o.etag, unittest.equals('foo')); |
| 2423 checkUnnamed141(o.files); | 2458 checkUnnamed1212(o.files); |
| 2424 unittest.expect(o.id, unittest.equals('foo')); | 2459 unittest.expect(o.id, unittest.equals('foo')); |
| 2425 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 2460 unittest.expect(o.lastModifiedTime, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 2426 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); | 2461 unittest.expect(o.lastModifierEmail, unittest.equals('foo')); |
| 2427 unittest.expect(o.name, unittest.equals('foo')); | 2462 unittest.expect(o.name, unittest.equals('foo')); |
| 2428 unittest.expect(o.processingStatus, unittest.equals('foo')); | 2463 unittest.expect(o.processingStatus, unittest.equals('foo')); |
| 2429 unittest.expect(o.projectId, unittest.equals('foo')); | 2464 unittest.expect(o.projectId, unittest.equals('foo')); |
| 2430 unittest.expect(o.publishedAccessList, unittest.equals('foo')); | 2465 unittest.expect(o.publishedAccessList, unittest.equals('foo')); |
| 2431 checkSchema(o.schema); | 2466 checkSchema(o.schema); |
| 2432 unittest.expect(o.sourceEncoding, unittest.equals('foo')); | 2467 unittest.expect(o.sourceEncoding, unittest.equals('foo')); |
| 2433 checkTags(o.tags); | 2468 checkTags(o.tags); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2450 | 2485 |
| 2451 checkTableColumn(api.TableColumn o) { | 2486 checkTableColumn(api.TableColumn o) { |
| 2452 buildCounterTableColumn++; | 2487 buildCounterTableColumn++; |
| 2453 if (buildCounterTableColumn < 3) { | 2488 if (buildCounterTableColumn < 3) { |
| 2454 unittest.expect(o.name, unittest.equals('foo')); | 2489 unittest.expect(o.name, unittest.equals('foo')); |
| 2455 unittest.expect(o.type, unittest.equals('foo')); | 2490 unittest.expect(o.type, unittest.equals('foo')); |
| 2456 } | 2491 } |
| 2457 buildCounterTableColumn--; | 2492 buildCounterTableColumn--; |
| 2458 } | 2493 } |
| 2459 | 2494 |
| 2460 buildUnnamed142() { | 2495 buildUnnamed1213() { |
| 2461 var o = new core.List<api.Table>(); | 2496 var o = new core.List<api.Table>(); |
| 2462 o.add(buildTable()); | 2497 o.add(buildTable()); |
| 2463 o.add(buildTable()); | 2498 o.add(buildTable()); |
| 2464 return o; | 2499 return o; |
| 2465 } | 2500 } |
| 2466 | 2501 |
| 2467 checkUnnamed142(core.List<api.Table> o) { | 2502 checkUnnamed1213(core.List<api.Table> o) { |
| 2468 unittest.expect(o, unittest.hasLength(2)); | 2503 unittest.expect(o, unittest.hasLength(2)); |
| 2469 checkTable(o[0]); | 2504 checkTable(o[0]); |
| 2470 checkTable(o[1]); | 2505 checkTable(o[1]); |
| 2471 } | 2506 } |
| 2472 | 2507 |
| 2473 core.int buildCounterTablesListResponse = 0; | 2508 core.int buildCounterTablesListResponse = 0; |
| 2474 buildTablesListResponse() { | 2509 buildTablesListResponse() { |
| 2475 var o = new api.TablesListResponse(); | 2510 var o = new api.TablesListResponse(); |
| 2476 buildCounterTablesListResponse++; | 2511 buildCounterTablesListResponse++; |
| 2477 if (buildCounterTablesListResponse < 3) { | 2512 if (buildCounterTablesListResponse < 3) { |
| 2478 o.nextPageToken = "foo"; | 2513 o.nextPageToken = "foo"; |
| 2479 o.tables = buildUnnamed142(); | 2514 o.tables = buildUnnamed1213(); |
| 2480 } | 2515 } |
| 2481 buildCounterTablesListResponse--; | 2516 buildCounterTablesListResponse--; |
| 2482 return o; | 2517 return o; |
| 2483 } | 2518 } |
| 2484 | 2519 |
| 2485 checkTablesListResponse(api.TablesListResponse o) { | 2520 checkTablesListResponse(api.TablesListResponse o) { |
| 2486 buildCounterTablesListResponse++; | 2521 buildCounterTablesListResponse++; |
| 2487 if (buildCounterTablesListResponse < 3) { | 2522 if (buildCounterTablesListResponse < 3) { |
| 2488 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2523 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2489 checkUnnamed142(o.tables); | 2524 checkUnnamed1213(o.tables); |
| 2490 } | 2525 } |
| 2491 buildCounterTablesListResponse--; | 2526 buildCounterTablesListResponse--; |
| 2492 } | 2527 } |
| 2493 | 2528 |
| 2494 buildTags() { | 2529 buildTags() { |
| 2495 var o = new api.Tags(); | 2530 var o = new api.Tags(); |
| 2496 o.add("foo"); | 2531 o.add("foo"); |
| 2497 o.add("foo"); | 2532 o.add("foo"); |
| 2498 return o; | 2533 return o; |
| 2499 } | 2534 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2518 | 2553 |
| 2519 checkValueRange(api.ValueRange o) { | 2554 checkValueRange(api.ValueRange o) { |
| 2520 buildCounterValueRange++; | 2555 buildCounterValueRange++; |
| 2521 if (buildCounterValueRange < 3) { | 2556 if (buildCounterValueRange < 3) { |
| 2522 unittest.expect(o.max, unittest.equals(42.0)); | 2557 unittest.expect(o.max, unittest.equals(42.0)); |
| 2523 unittest.expect(o.min, unittest.equals(42.0)); | 2558 unittest.expect(o.min, unittest.equals(42.0)); |
| 2524 } | 2559 } |
| 2525 buildCounterValueRange--; | 2560 buildCounterValueRange--; |
| 2526 } | 2561 } |
| 2527 | 2562 |
| 2528 buildUnnamed143() { | 2563 buildUnnamed1214() { |
| 2529 var o = new core.List<api.DisplayRule>(); | 2564 var o = new core.List<api.DisplayRule>(); |
| 2530 o.add(buildDisplayRule()); | 2565 o.add(buildDisplayRule()); |
| 2531 o.add(buildDisplayRule()); | 2566 o.add(buildDisplayRule()); |
| 2532 return o; | 2567 return o; |
| 2533 } | 2568 } |
| 2534 | 2569 |
| 2535 checkUnnamed143(core.List<api.DisplayRule> o) { | 2570 checkUnnamed1214(core.List<api.DisplayRule> o) { |
| 2536 unittest.expect(o, unittest.hasLength(2)); | 2571 unittest.expect(o, unittest.hasLength(2)); |
| 2537 checkDisplayRule(o[0]); | 2572 checkDisplayRule(o[0]); |
| 2538 checkDisplayRule(o[1]); | 2573 checkDisplayRule(o[1]); |
| 2539 } | 2574 } |
| 2540 | 2575 |
| 2541 core.int buildCounterVectorStyle = 0; | 2576 core.int buildCounterVectorStyle = 0; |
| 2542 buildVectorStyle() { | 2577 buildVectorStyle() { |
| 2543 var o = new api.VectorStyle(); | 2578 var o = new api.VectorStyle(); |
| 2544 buildCounterVectorStyle++; | 2579 buildCounterVectorStyle++; |
| 2545 if (buildCounterVectorStyle < 3) { | 2580 if (buildCounterVectorStyle < 3) { |
| 2546 o.displayRules = buildUnnamed143(); | 2581 o.displayRules = buildUnnamed1214(); |
| 2547 o.featureInfo = buildFeatureInfo(); | 2582 o.featureInfo = buildFeatureInfo(); |
| 2548 o.type = "foo"; | 2583 o.type = "foo"; |
| 2549 } | 2584 } |
| 2550 buildCounterVectorStyle--; | 2585 buildCounterVectorStyle--; |
| 2551 return o; | 2586 return o; |
| 2552 } | 2587 } |
| 2553 | 2588 |
| 2554 checkVectorStyle(api.VectorStyle o) { | 2589 checkVectorStyle(api.VectorStyle o) { |
| 2555 buildCounterVectorStyle++; | 2590 buildCounterVectorStyle++; |
| 2556 if (buildCounterVectorStyle < 3) { | 2591 if (buildCounterVectorStyle < 3) { |
| 2557 checkUnnamed143(o.displayRules); | 2592 checkUnnamed1214(o.displayRules); |
| 2558 checkFeatureInfo(o.featureInfo); | 2593 checkFeatureInfo(o.featureInfo); |
| 2559 unittest.expect(o.type, unittest.equals('foo')); | 2594 unittest.expect(o.type, unittest.equals('foo')); |
| 2560 } | 2595 } |
| 2561 buildCounterVectorStyle--; | 2596 buildCounterVectorStyle--; |
| 2562 } | 2597 } |
| 2563 | 2598 |
| 2564 core.int buildCounterZoomLevels = 0; | 2599 core.int buildCounterZoomLevels = 0; |
| 2565 buildZoomLevels() { | 2600 buildZoomLevels() { |
| 2566 var o = new api.ZoomLevels(); | 2601 var o = new api.ZoomLevels(); |
| 2567 buildCounterZoomLevels++; | 2602 buildCounterZoomLevels++; |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3309 var o = buildZoomLevels(); | 3344 var o = buildZoomLevels(); |
| 3310 var od = new api.ZoomLevels.fromJson(o.toJson()); | 3345 var od = new api.ZoomLevels.fromJson(o.toJson()); |
| 3311 checkZoomLevels(od); | 3346 checkZoomLevels(od); |
| 3312 }); | 3347 }); |
| 3313 }); | 3348 }); |
| 3314 | 3349 |
| 3315 | 3350 |
| 3316 unittest.group("resource-AssetsResourceApi", () { | 3351 unittest.group("resource-AssetsResourceApi", () { |
| 3317 unittest.test("method--get", () { | 3352 unittest.test("method--get", () { |
| 3318 | 3353 |
| 3319 var mock = new common_test.HttpServerMock(); | 3354 var mock = new HttpServerMock(); |
| 3320 api.AssetsResourceApi res = new api.MapsengineApi(mock).assets; | 3355 api.AssetsResourceApi res = new api.MapsengineApi(mock).assets; |
| 3321 var arg_id = "foo"; | 3356 var arg_id = "foo"; |
| 3322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3357 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3323 var path = (req.url).path; | 3358 var path = (req.url).path; |
| 3324 var pathOffset = 0; | 3359 var pathOffset = 0; |
| 3325 var index; | 3360 var index; |
| 3326 var subPart; | 3361 var subPart; |
| 3327 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3362 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3328 pathOffset += 1; | 3363 pathOffset += 1; |
| 3329 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 3364 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3349 var keyvalue = part.split("="); | 3384 var keyvalue = part.split("="); |
| 3350 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3385 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3351 } | 3386 } |
| 3352 } | 3387 } |
| 3353 | 3388 |
| 3354 | 3389 |
| 3355 var h = { | 3390 var h = { |
| 3356 "content-type" : "application/json; charset=utf-8", | 3391 "content-type" : "application/json; charset=utf-8", |
| 3357 }; | 3392 }; |
| 3358 var resp = convert.JSON.encode(buildAsset()); | 3393 var resp = convert.JSON.encode(buildAsset()); |
| 3359 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3394 return new async.Future.value(stringResponse(200, h, resp)); |
| 3360 }), true); | 3395 }), true); |
| 3361 res.get(arg_id).then(unittest.expectAsync(((api.Asset response) { | 3396 res.get(arg_id).then(unittest.expectAsync(((api.Asset response) { |
| 3362 checkAsset(response); | 3397 checkAsset(response); |
| 3363 }))); | 3398 }))); |
| 3364 }); | 3399 }); |
| 3365 | 3400 |
| 3366 unittest.test("method--list", () { | 3401 unittest.test("method--list", () { |
| 3367 | 3402 |
| 3368 var mock = new common_test.HttpServerMock(); | 3403 var mock = new HttpServerMock(); |
| 3369 api.AssetsResourceApi res = new api.MapsengineApi(mock).assets; | 3404 api.AssetsResourceApi res = new api.MapsengineApi(mock).assets; |
| 3370 var arg_bbox = "foo"; | 3405 var arg_bbox = "foo"; |
| 3371 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 3406 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3372 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 3407 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3373 var arg_creatorEmail = "foo"; | 3408 var arg_creatorEmail = "foo"; |
| 3374 var arg_maxResults = 42; | 3409 var arg_maxResults = 42; |
| 3375 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 3410 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3376 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 3411 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3377 var arg_pageToken = "foo"; | 3412 var arg_pageToken = "foo"; |
| 3378 var arg_projectId = "foo"; | 3413 var arg_projectId = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3420 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 3455 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 3421 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 3456 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 3422 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 3457 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 3423 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); | 3458 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); |
| 3424 | 3459 |
| 3425 | 3460 |
| 3426 var h = { | 3461 var h = { |
| 3427 "content-type" : "application/json; charset=utf-8", | 3462 "content-type" : "application/json; charset=utf-8", |
| 3428 }; | 3463 }; |
| 3429 var resp = convert.JSON.encode(buildAssetsListResponse()); | 3464 var resp = convert.JSON.encode(buildAssetsListResponse()); |
| 3430 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3465 return new async.Future.value(stringResponse(200, h, resp)); |
| 3431 }), true); | 3466 }), true); |
| 3432 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, projectId: arg_projectId, role: arg_role, search: arg_search, tags:
arg_tags, type: arg_type).then(unittest.expectAsync(((api.AssetsListResponse re
sponse) { | 3467 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, projectId: arg_projectId, role: arg_role, search: arg_search, tags:
arg_tags, type: arg_type).then(unittest.expectAsync(((api.AssetsListResponse re
sponse) { |
| 3433 checkAssetsListResponse(response); | 3468 checkAssetsListResponse(response); |
| 3434 }))); | 3469 }))); |
| 3435 }); | 3470 }); |
| 3436 | 3471 |
| 3437 }); | 3472 }); |
| 3438 | 3473 |
| 3439 | 3474 |
| 3440 unittest.group("resource-AssetsParentsResourceApi", () { | 3475 unittest.group("resource-AssetsParentsResourceApi", () { |
| 3441 unittest.test("method--list", () { | 3476 unittest.test("method--list", () { |
| 3442 | 3477 |
| 3443 var mock = new common_test.HttpServerMock(); | 3478 var mock = new HttpServerMock(); |
| 3444 api.AssetsParentsResourceApi res = new api.MapsengineApi(mock).assets.pare
nts; | 3479 api.AssetsParentsResourceApi res = new api.MapsengineApi(mock).assets.pare
nts; |
| 3445 var arg_id = "foo"; | 3480 var arg_id = "foo"; |
| 3446 var arg_maxResults = 42; | 3481 var arg_maxResults = 42; |
| 3447 var arg_pageToken = "foo"; | 3482 var arg_pageToken = "foo"; |
| 3448 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3483 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3449 var path = (req.url).path; | 3484 var path = (req.url).path; |
| 3450 var pathOffset = 0; | 3485 var pathOffset = 0; |
| 3451 var index; | 3486 var index; |
| 3452 var subPart; | 3487 var subPart; |
| 3453 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3481 } | 3516 } |
| 3482 } | 3517 } |
| 3483 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3518 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 3484 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3519 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3485 | 3520 |
| 3486 | 3521 |
| 3487 var h = { | 3522 var h = { |
| 3488 "content-type" : "application/json; charset=utf-8", | 3523 "content-type" : "application/json; charset=utf-8", |
| 3489 }; | 3524 }; |
| 3490 var resp = convert.JSON.encode(buildParentsListResponse()); | 3525 var resp = convert.JSON.encode(buildParentsListResponse()); |
| 3491 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3526 return new async.Future.value(stringResponse(200, h, resp)); |
| 3492 }), true); | 3527 }), true); |
| 3493 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { | 3528 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { |
| 3494 checkParentsListResponse(response); | 3529 checkParentsListResponse(response); |
| 3495 }))); | 3530 }))); |
| 3496 }); | 3531 }); |
| 3497 | 3532 |
| 3498 }); | 3533 }); |
| 3499 | 3534 |
| 3500 | 3535 |
| 3501 unittest.group("resource-AssetsPermissionsResourceApi", () { | 3536 unittest.group("resource-AssetsPermissionsResourceApi", () { |
| 3502 unittest.test("method--list", () { | 3537 unittest.test("method--list", () { |
| 3503 | 3538 |
| 3504 var mock = new common_test.HttpServerMock(); | 3539 var mock = new HttpServerMock(); |
| 3505 api.AssetsPermissionsResourceApi res = new api.MapsengineApi(mock).assets.
permissions; | 3540 api.AssetsPermissionsResourceApi res = new api.MapsengineApi(mock).assets.
permissions; |
| 3506 var arg_id = "foo"; | 3541 var arg_id = "foo"; |
| 3507 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3542 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3508 var path = (req.url).path; | 3543 var path = (req.url).path; |
| 3509 var pathOffset = 0; | 3544 var pathOffset = 0; |
| 3510 var index; | 3545 var index; |
| 3511 var subPart; | 3546 var subPart; |
| 3512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3547 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3513 pathOffset += 1; | 3548 pathOffset += 1; |
| 3514 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 3549 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3538 var keyvalue = part.split("="); | 3573 var keyvalue = part.split("="); |
| 3539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3574 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3540 } | 3575 } |
| 3541 } | 3576 } |
| 3542 | 3577 |
| 3543 | 3578 |
| 3544 var h = { | 3579 var h = { |
| 3545 "content-type" : "application/json; charset=utf-8", | 3580 "content-type" : "application/json; charset=utf-8", |
| 3546 }; | 3581 }; |
| 3547 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 3582 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 3548 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3583 return new async.Future.value(stringResponse(200, h, resp)); |
| 3549 }), true); | 3584 }), true); |
| 3550 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 3585 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 3551 checkPermissionsListResponse(response); | 3586 checkPermissionsListResponse(response); |
| 3552 }))); | 3587 }))); |
| 3553 }); | 3588 }); |
| 3554 | 3589 |
| 3555 }); | 3590 }); |
| 3556 | 3591 |
| 3557 | 3592 |
| 3558 unittest.group("resource-LayersResourceApi", () { | 3593 unittest.group("resource-LayersResourceApi", () { |
| 3559 unittest.test("method--cancelProcessing", () { | 3594 unittest.test("method--cancelProcessing", () { |
| 3560 | 3595 |
| 3561 var mock = new common_test.HttpServerMock(); | 3596 var mock = new HttpServerMock(); |
| 3562 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3597 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3563 var arg_id = "foo"; | 3598 var arg_id = "foo"; |
| 3564 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3565 var path = (req.url).path; | 3600 var path = (req.url).path; |
| 3566 var pathOffset = 0; | 3601 var pathOffset = 0; |
| 3567 var index; | 3602 var index; |
| 3568 var subPart; | 3603 var subPart; |
| 3569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3604 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3570 pathOffset += 1; | 3605 pathOffset += 1; |
| 3571 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 3606 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3595 var keyvalue = part.split("="); | 3630 var keyvalue = part.split("="); |
| 3596 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3631 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3597 } | 3632 } |
| 3598 } | 3633 } |
| 3599 | 3634 |
| 3600 | 3635 |
| 3601 var h = { | 3636 var h = { |
| 3602 "content-type" : "application/json; charset=utf-8", | 3637 "content-type" : "application/json; charset=utf-8", |
| 3603 }; | 3638 }; |
| 3604 var resp = convert.JSON.encode(buildProcessResponse()); | 3639 var resp = convert.JSON.encode(buildProcessResponse()); |
| 3605 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3640 return new async.Future.value(stringResponse(200, h, resp)); |
| 3606 }), true); | 3641 }), true); |
| 3607 res.cancelProcessing(arg_id).then(unittest.expectAsync(((api.ProcessRespon
se response) { | 3642 res.cancelProcessing(arg_id).then(unittest.expectAsync(((api.ProcessRespon
se response) { |
| 3608 checkProcessResponse(response); | 3643 checkProcessResponse(response); |
| 3609 }))); | 3644 }))); |
| 3610 }); | 3645 }); |
| 3611 | 3646 |
| 3612 unittest.test("method--create", () { | 3647 unittest.test("method--create", () { |
| 3613 | 3648 |
| 3614 var mock = new common_test.HttpServerMock(); | 3649 var mock = new HttpServerMock(); |
| 3615 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3650 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3616 var arg_request = buildLayer(); | 3651 var arg_request = buildLayer(); |
| 3617 var arg_process_1 = true; | 3652 var arg_process_1 = true; |
| 3618 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3653 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3619 var obj = new api.Layer.fromJson(json); | 3654 var obj = new api.Layer.fromJson(json); |
| 3620 checkLayer(obj); | 3655 checkLayer(obj); |
| 3621 | 3656 |
| 3622 var path = (req.url).path; | 3657 var path = (req.url).path; |
| 3623 var pathOffset = 0; | 3658 var pathOffset = 0; |
| 3624 var index; | 3659 var index; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3646 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3681 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3647 } | 3682 } |
| 3648 } | 3683 } |
| 3649 unittest.expect(queryMap["process"].first, unittest.equals("$arg_process
_1")); | 3684 unittest.expect(queryMap["process"].first, unittest.equals("$arg_process
_1")); |
| 3650 | 3685 |
| 3651 | 3686 |
| 3652 var h = { | 3687 var h = { |
| 3653 "content-type" : "application/json; charset=utf-8", | 3688 "content-type" : "application/json; charset=utf-8", |
| 3654 }; | 3689 }; |
| 3655 var resp = convert.JSON.encode(buildLayer()); | 3690 var resp = convert.JSON.encode(buildLayer()); |
| 3656 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3691 return new async.Future.value(stringResponse(200, h, resp)); |
| 3657 }), true); | 3692 }), true); |
| 3658 res.create(arg_request, process_1: arg_process_1).then(unittest.expectAsyn
c(((api.Layer response) { | 3693 res.create(arg_request, process_1: arg_process_1).then(unittest.expectAsyn
c(((api.Layer response) { |
| 3659 checkLayer(response); | 3694 checkLayer(response); |
| 3660 }))); | 3695 }))); |
| 3661 }); | 3696 }); |
| 3662 | 3697 |
| 3663 unittest.test("method--delete", () { | 3698 unittest.test("method--delete", () { |
| 3664 | 3699 |
| 3665 var mock = new common_test.HttpServerMock(); | 3700 var mock = new HttpServerMock(); |
| 3666 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3701 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3667 var arg_id = "foo"; | 3702 var arg_id = "foo"; |
| 3668 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3703 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3669 var path = (req.url).path; | 3704 var path = (req.url).path; |
| 3670 var pathOffset = 0; | 3705 var pathOffset = 0; |
| 3671 var index; | 3706 var index; |
| 3672 var subPart; | 3707 var subPart; |
| 3673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3708 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3674 pathOffset += 1; | 3709 pathOffset += 1; |
| 3675 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 3710 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3695 var keyvalue = part.split("="); | 3730 var keyvalue = part.split("="); |
| 3696 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3731 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3697 } | 3732 } |
| 3698 } | 3733 } |
| 3699 | 3734 |
| 3700 | 3735 |
| 3701 var h = { | 3736 var h = { |
| 3702 "content-type" : "application/json; charset=utf-8", | 3737 "content-type" : "application/json; charset=utf-8", |
| 3703 }; | 3738 }; |
| 3704 var resp = ""; | 3739 var resp = ""; |
| 3705 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3740 return new async.Future.value(stringResponse(200, h, resp)); |
| 3706 }), true); | 3741 }), true); |
| 3707 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 3742 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
| 3708 }); | 3743 }); |
| 3709 | 3744 |
| 3710 unittest.test("method--get", () { | 3745 unittest.test("method--get", () { |
| 3711 | 3746 |
| 3712 var mock = new common_test.HttpServerMock(); | 3747 var mock = new HttpServerMock(); |
| 3713 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3748 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3714 var arg_id = "foo"; | 3749 var arg_id = "foo"; |
| 3715 var arg_version = "foo"; | 3750 var arg_version = "foo"; |
| 3716 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3751 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3717 var path = (req.url).path; | 3752 var path = (req.url).path; |
| 3718 var pathOffset = 0; | 3753 var pathOffset = 0; |
| 3719 var index; | 3754 var index; |
| 3720 var subPart; | 3755 var subPart; |
| 3721 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3756 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3722 pathOffset += 1; | 3757 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3744 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3779 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3745 } | 3780 } |
| 3746 } | 3781 } |
| 3747 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; | 3782 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; |
| 3748 | 3783 |
| 3749 | 3784 |
| 3750 var h = { | 3785 var h = { |
| 3751 "content-type" : "application/json; charset=utf-8", | 3786 "content-type" : "application/json; charset=utf-8", |
| 3752 }; | 3787 }; |
| 3753 var resp = convert.JSON.encode(buildLayer()); | 3788 var resp = convert.JSON.encode(buildLayer()); |
| 3754 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3789 return new async.Future.value(stringResponse(200, h, resp)); |
| 3755 }), true); | 3790 }), true); |
| 3756 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Laye
r response) { | 3791 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Laye
r response) { |
| 3757 checkLayer(response); | 3792 checkLayer(response); |
| 3758 }))); | 3793 }))); |
| 3759 }); | 3794 }); |
| 3760 | 3795 |
| 3761 unittest.test("method--getPublished", () { | 3796 unittest.test("method--getPublished", () { |
| 3762 | 3797 |
| 3763 var mock = new common_test.HttpServerMock(); | 3798 var mock = new HttpServerMock(); |
| 3764 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3799 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3765 var arg_id = "foo"; | 3800 var arg_id = "foo"; |
| 3766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3767 var path = (req.url).path; | 3802 var path = (req.url).path; |
| 3768 var pathOffset = 0; | 3803 var pathOffset = 0; |
| 3769 var index; | 3804 var index; |
| 3770 var subPart; | 3805 var subPart; |
| 3771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3772 pathOffset += 1; | 3807 pathOffset += 1; |
| 3773 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 3808 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3797 var keyvalue = part.split("="); | 3832 var keyvalue = part.split("="); |
| 3798 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3833 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3799 } | 3834 } |
| 3800 } | 3835 } |
| 3801 | 3836 |
| 3802 | 3837 |
| 3803 var h = { | 3838 var h = { |
| 3804 "content-type" : "application/json; charset=utf-8", | 3839 "content-type" : "application/json; charset=utf-8", |
| 3805 }; | 3840 }; |
| 3806 var resp = convert.JSON.encode(buildPublishedLayer()); | 3841 var resp = convert.JSON.encode(buildPublishedLayer()); |
| 3807 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3842 return new async.Future.value(stringResponse(200, h, resp)); |
| 3808 }), true); | 3843 }), true); |
| 3809 res.getPublished(arg_id).then(unittest.expectAsync(((api.PublishedLayer re
sponse) { | 3844 res.getPublished(arg_id).then(unittest.expectAsync(((api.PublishedLayer re
sponse) { |
| 3810 checkPublishedLayer(response); | 3845 checkPublishedLayer(response); |
| 3811 }))); | 3846 }))); |
| 3812 }); | 3847 }); |
| 3813 | 3848 |
| 3814 unittest.test("method--list", () { | 3849 unittest.test("method--list", () { |
| 3815 | 3850 |
| 3816 var mock = new common_test.HttpServerMock(); | 3851 var mock = new HttpServerMock(); |
| 3817 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3852 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3818 var arg_bbox = "foo"; | 3853 var arg_bbox = "foo"; |
| 3819 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 3854 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3820 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 3855 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3821 var arg_creatorEmail = "foo"; | 3856 var arg_creatorEmail = "foo"; |
| 3822 var arg_maxResults = 42; | 3857 var arg_maxResults = 42; |
| 3823 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 3858 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3824 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 3859 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 3825 var arg_pageToken = "foo"; | 3860 var arg_pageToken = "foo"; |
| 3826 var arg_processingStatus = "foo"; | 3861 var arg_processingStatus = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3868 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 3903 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 3869 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 3904 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 3870 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 3905 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 3871 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 3906 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 3872 | 3907 |
| 3873 | 3908 |
| 3874 var h = { | 3909 var h = { |
| 3875 "content-type" : "application/json; charset=utf-8", | 3910 "content-type" : "application/json; charset=utf-8", |
| 3876 }; | 3911 }; |
| 3877 var resp = convert.JSON.encode(buildLayersListResponse()); | 3912 var resp = convert.JSON.encode(buildLayersListResponse()); |
| 3878 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3913 return new async.Future.value(stringResponse(200, h, resp)); |
| 3879 }), true); | 3914 }), true); |
| 3880 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.LayersListResponse response) { | 3915 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.LayersListResponse response) { |
| 3881 checkLayersListResponse(response); | 3916 checkLayersListResponse(response); |
| 3882 }))); | 3917 }))); |
| 3883 }); | 3918 }); |
| 3884 | 3919 |
| 3885 unittest.test("method--listPublished", () { | 3920 unittest.test("method--listPublished", () { |
| 3886 | 3921 |
| 3887 var mock = new common_test.HttpServerMock(); | 3922 var mock = new HttpServerMock(); |
| 3888 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3923 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3889 var arg_maxResults = 42; | 3924 var arg_maxResults = 42; |
| 3890 var arg_pageToken = "foo"; | 3925 var arg_pageToken = "foo"; |
| 3891 var arg_projectId = "foo"; | 3926 var arg_projectId = "foo"; |
| 3892 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3927 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3893 var path = (req.url).path; | 3928 var path = (req.url).path; |
| 3894 var pathOffset = 0; | 3929 var pathOffset = 0; |
| 3895 var index; | 3930 var index; |
| 3896 var subPart; | 3931 var subPart; |
| 3897 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3932 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3919 } | 3954 } |
| 3920 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3955 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 3921 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3956 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3922 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 3957 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 3923 | 3958 |
| 3924 | 3959 |
| 3925 var h = { | 3960 var h = { |
| 3926 "content-type" : "application/json; charset=utf-8", | 3961 "content-type" : "application/json; charset=utf-8", |
| 3927 }; | 3962 }; |
| 3928 var resp = convert.JSON.encode(buildPublishedLayersListResponse()); | 3963 var resp = convert.JSON.encode(buildPublishedLayersListResponse()); |
| 3929 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3964 return new async.Future.value(stringResponse(200, h, resp)); |
| 3930 }), true); | 3965 }), true); |
| 3931 res.listPublished(maxResults: arg_maxResults, pageToken: arg_pageToken, pr
ojectId: arg_projectId).then(unittest.expectAsync(((api.PublishedLayersListRespo
nse response) { | 3966 res.listPublished(maxResults: arg_maxResults, pageToken: arg_pageToken, pr
ojectId: arg_projectId).then(unittest.expectAsync(((api.PublishedLayersListRespo
nse response) { |
| 3932 checkPublishedLayersListResponse(response); | 3967 checkPublishedLayersListResponse(response); |
| 3933 }))); | 3968 }))); |
| 3934 }); | 3969 }); |
| 3935 | 3970 |
| 3936 unittest.test("method--patch", () { | 3971 unittest.test("method--patch", () { |
| 3937 | 3972 |
| 3938 var mock = new common_test.HttpServerMock(); | 3973 var mock = new HttpServerMock(); |
| 3939 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 3974 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3940 var arg_request = buildLayer(); | 3975 var arg_request = buildLayer(); |
| 3941 var arg_id = "foo"; | 3976 var arg_id = "foo"; |
| 3942 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3943 var obj = new api.Layer.fromJson(json); | 3978 var obj = new api.Layer.fromJson(json); |
| 3944 checkLayer(obj); | 3979 checkLayer(obj); |
| 3945 | 3980 |
| 3946 var path = (req.url).path; | 3981 var path = (req.url).path; |
| 3947 var pathOffset = 0; | 3982 var pathOffset = 0; |
| 3948 var index; | 3983 var index; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3972 var keyvalue = part.split("="); | 4007 var keyvalue = part.split("="); |
| 3973 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4008 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3974 } | 4009 } |
| 3975 } | 4010 } |
| 3976 | 4011 |
| 3977 | 4012 |
| 3978 var h = { | 4013 var h = { |
| 3979 "content-type" : "application/json; charset=utf-8", | 4014 "content-type" : "application/json; charset=utf-8", |
| 3980 }; | 4015 }; |
| 3981 var resp = ""; | 4016 var resp = ""; |
| 3982 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4017 return new async.Future.value(stringResponse(200, h, resp)); |
| 3983 }), true); | 4018 }), true); |
| 3984 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 4019 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 3985 }); | 4020 }); |
| 3986 | 4021 |
| 3987 unittest.test("method--process", () { | 4022 unittest.test("method--process", () { |
| 3988 | 4023 |
| 3989 var mock = new common_test.HttpServerMock(); | 4024 var mock = new HttpServerMock(); |
| 3990 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 4025 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 3991 var arg_id = "foo"; | 4026 var arg_id = "foo"; |
| 3992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3993 var path = (req.url).path; | 4028 var path = (req.url).path; |
| 3994 var pathOffset = 0; | 4029 var pathOffset = 0; |
| 3995 var index; | 4030 var index; |
| 3996 var subPart; | 4031 var subPart; |
| 3997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4032 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3998 pathOffset += 1; | 4033 pathOffset += 1; |
| 3999 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4034 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4023 var keyvalue = part.split("="); | 4058 var keyvalue = part.split("="); |
| 4024 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4025 } | 4060 } |
| 4026 } | 4061 } |
| 4027 | 4062 |
| 4028 | 4063 |
| 4029 var h = { | 4064 var h = { |
| 4030 "content-type" : "application/json; charset=utf-8", | 4065 "content-type" : "application/json; charset=utf-8", |
| 4031 }; | 4066 }; |
| 4032 var resp = convert.JSON.encode(buildProcessResponse()); | 4067 var resp = convert.JSON.encode(buildProcessResponse()); |
| 4033 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4068 return new async.Future.value(stringResponse(200, h, resp)); |
| 4034 }), true); | 4069 }), true); |
| 4035 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { | 4070 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { |
| 4036 checkProcessResponse(response); | 4071 checkProcessResponse(response); |
| 4037 }))); | 4072 }))); |
| 4038 }); | 4073 }); |
| 4039 | 4074 |
| 4040 unittest.test("method--publish", () { | 4075 unittest.test("method--publish", () { |
| 4041 | 4076 |
| 4042 var mock = new common_test.HttpServerMock(); | 4077 var mock = new HttpServerMock(); |
| 4043 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 4078 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 4044 var arg_id = "foo"; | 4079 var arg_id = "foo"; |
| 4045 var arg_force = true; | 4080 var arg_force = true; |
| 4046 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4047 var path = (req.url).path; | 4082 var path = (req.url).path; |
| 4048 var pathOffset = 0; | 4083 var pathOffset = 0; |
| 4049 var index; | 4084 var index; |
| 4050 var subPart; | 4085 var subPart; |
| 4051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4052 pathOffset += 1; | 4087 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4078 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4113 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4079 } | 4114 } |
| 4080 } | 4115 } |
| 4081 unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); | 4116 unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); |
| 4082 | 4117 |
| 4083 | 4118 |
| 4084 var h = { | 4119 var h = { |
| 4085 "content-type" : "application/json; charset=utf-8", | 4120 "content-type" : "application/json; charset=utf-8", |
| 4086 }; | 4121 }; |
| 4087 var resp = convert.JSON.encode(buildPublishResponse()); | 4122 var resp = convert.JSON.encode(buildPublishResponse()); |
| 4088 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4123 return new async.Future.value(stringResponse(200, h, resp)); |
| 4089 }), true); | 4124 }), true); |
| 4090 res.publish(arg_id, force: arg_force).then(unittest.expectAsync(((api.Publ
ishResponse response) { | 4125 res.publish(arg_id, force: arg_force).then(unittest.expectAsync(((api.Publ
ishResponse response) { |
| 4091 checkPublishResponse(response); | 4126 checkPublishResponse(response); |
| 4092 }))); | 4127 }))); |
| 4093 }); | 4128 }); |
| 4094 | 4129 |
| 4095 unittest.test("method--unpublish", () { | 4130 unittest.test("method--unpublish", () { |
| 4096 | 4131 |
| 4097 var mock = new common_test.HttpServerMock(); | 4132 var mock = new HttpServerMock(); |
| 4098 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; | 4133 api.LayersResourceApi res = new api.MapsengineApi(mock).layers; |
| 4099 var arg_id = "foo"; | 4134 var arg_id = "foo"; |
| 4100 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4135 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4101 var path = (req.url).path; | 4136 var path = (req.url).path; |
| 4102 var pathOffset = 0; | 4137 var pathOffset = 0; |
| 4103 var index; | 4138 var index; |
| 4104 var subPart; | 4139 var subPart; |
| 4105 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4140 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4106 pathOffset += 1; | 4141 pathOffset += 1; |
| 4107 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4142 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4131 var keyvalue = part.split("="); | 4166 var keyvalue = part.split("="); |
| 4132 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4167 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4133 } | 4168 } |
| 4134 } | 4169 } |
| 4135 | 4170 |
| 4136 | 4171 |
| 4137 var h = { | 4172 var h = { |
| 4138 "content-type" : "application/json; charset=utf-8", | 4173 "content-type" : "application/json; charset=utf-8", |
| 4139 }; | 4174 }; |
| 4140 var resp = convert.JSON.encode(buildPublishResponse()); | 4175 var resp = convert.JSON.encode(buildPublishResponse()); |
| 4141 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4176 return new async.Future.value(stringResponse(200, h, resp)); |
| 4142 }), true); | 4177 }), true); |
| 4143 res.unpublish(arg_id).then(unittest.expectAsync(((api.PublishResponse resp
onse) { | 4178 res.unpublish(arg_id).then(unittest.expectAsync(((api.PublishResponse resp
onse) { |
| 4144 checkPublishResponse(response); | 4179 checkPublishResponse(response); |
| 4145 }))); | 4180 }))); |
| 4146 }); | 4181 }); |
| 4147 | 4182 |
| 4148 }); | 4183 }); |
| 4149 | 4184 |
| 4150 | 4185 |
| 4151 unittest.group("resource-LayersParentsResourceApi", () { | 4186 unittest.group("resource-LayersParentsResourceApi", () { |
| 4152 unittest.test("method--list", () { | 4187 unittest.test("method--list", () { |
| 4153 | 4188 |
| 4154 var mock = new common_test.HttpServerMock(); | 4189 var mock = new HttpServerMock(); |
| 4155 api.LayersParentsResourceApi res = new api.MapsengineApi(mock).layers.pare
nts; | 4190 api.LayersParentsResourceApi res = new api.MapsengineApi(mock).layers.pare
nts; |
| 4156 var arg_id = "foo"; | 4191 var arg_id = "foo"; |
| 4157 var arg_maxResults = 42; | 4192 var arg_maxResults = 42; |
| 4158 var arg_pageToken = "foo"; | 4193 var arg_pageToken = "foo"; |
| 4159 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4194 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4160 var path = (req.url).path; | 4195 var path = (req.url).path; |
| 4161 var pathOffset = 0; | 4196 var pathOffset = 0; |
| 4162 var index; | 4197 var index; |
| 4163 var subPart; | 4198 var subPart; |
| 4164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4192 } | 4227 } |
| 4193 } | 4228 } |
| 4194 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4229 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4195 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4230 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4196 | 4231 |
| 4197 | 4232 |
| 4198 var h = { | 4233 var h = { |
| 4199 "content-type" : "application/json; charset=utf-8", | 4234 "content-type" : "application/json; charset=utf-8", |
| 4200 }; | 4235 }; |
| 4201 var resp = convert.JSON.encode(buildParentsListResponse()); | 4236 var resp = convert.JSON.encode(buildParentsListResponse()); |
| 4202 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4237 return new async.Future.value(stringResponse(200, h, resp)); |
| 4203 }), true); | 4238 }), true); |
| 4204 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { | 4239 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { |
| 4205 checkParentsListResponse(response); | 4240 checkParentsListResponse(response); |
| 4206 }))); | 4241 }))); |
| 4207 }); | 4242 }); |
| 4208 | 4243 |
| 4209 }); | 4244 }); |
| 4210 | 4245 |
| 4211 | 4246 |
| 4212 unittest.group("resource-LayersPermissionsResourceApi", () { | 4247 unittest.group("resource-LayersPermissionsResourceApi", () { |
| 4213 unittest.test("method--batchDelete", () { | 4248 unittest.test("method--batchDelete", () { |
| 4214 | 4249 |
| 4215 var mock = new common_test.HttpServerMock(); | 4250 var mock = new HttpServerMock(); |
| 4216 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; | 4251 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; |
| 4217 var arg_request = buildPermissionsBatchDeleteRequest(); | 4252 var arg_request = buildPermissionsBatchDeleteRequest(); |
| 4218 var arg_id = "foo"; | 4253 var arg_id = "foo"; |
| 4219 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4254 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4220 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); | 4255 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); |
| 4221 checkPermissionsBatchDeleteRequest(obj); | 4256 checkPermissionsBatchDeleteRequest(obj); |
| 4222 | 4257 |
| 4223 var path = (req.url).path; | 4258 var path = (req.url).path; |
| 4224 var pathOffset = 0; | 4259 var pathOffset = 0; |
| 4225 var index; | 4260 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4253 var keyvalue = part.split("="); | 4288 var keyvalue = part.split("="); |
| 4254 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4289 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4255 } | 4290 } |
| 4256 } | 4291 } |
| 4257 | 4292 |
| 4258 | 4293 |
| 4259 var h = { | 4294 var h = { |
| 4260 "content-type" : "application/json; charset=utf-8", | 4295 "content-type" : "application/json; charset=utf-8", |
| 4261 }; | 4296 }; |
| 4262 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); | 4297 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); |
| 4263 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4298 return new async.Future.value(stringResponse(200, h, resp)); |
| 4264 }), true); | 4299 }), true); |
| 4265 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { | 4300 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { |
| 4266 checkPermissionsBatchDeleteResponse(response); | 4301 checkPermissionsBatchDeleteResponse(response); |
| 4267 }))); | 4302 }))); |
| 4268 }); | 4303 }); |
| 4269 | 4304 |
| 4270 unittest.test("method--batchUpdate", () { | 4305 unittest.test("method--batchUpdate", () { |
| 4271 | 4306 |
| 4272 var mock = new common_test.HttpServerMock(); | 4307 var mock = new HttpServerMock(); |
| 4273 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; | 4308 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; |
| 4274 var arg_request = buildPermissionsBatchUpdateRequest(); | 4309 var arg_request = buildPermissionsBatchUpdateRequest(); |
| 4275 var arg_id = "foo"; | 4310 var arg_id = "foo"; |
| 4276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4311 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4277 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); | 4312 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); |
| 4278 checkPermissionsBatchUpdateRequest(obj); | 4313 checkPermissionsBatchUpdateRequest(obj); |
| 4279 | 4314 |
| 4280 var path = (req.url).path; | 4315 var path = (req.url).path; |
| 4281 var pathOffset = 0; | 4316 var pathOffset = 0; |
| 4282 var index; | 4317 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4310 var keyvalue = part.split("="); | 4345 var keyvalue = part.split("="); |
| 4311 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4346 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4312 } | 4347 } |
| 4313 } | 4348 } |
| 4314 | 4349 |
| 4315 | 4350 |
| 4316 var h = { | 4351 var h = { |
| 4317 "content-type" : "application/json; charset=utf-8", | 4352 "content-type" : "application/json; charset=utf-8", |
| 4318 }; | 4353 }; |
| 4319 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); | 4354 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); |
| 4320 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4355 return new async.Future.value(stringResponse(200, h, resp)); |
| 4321 }), true); | 4356 }), true); |
| 4322 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { | 4357 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { |
| 4323 checkPermissionsBatchUpdateResponse(response); | 4358 checkPermissionsBatchUpdateResponse(response); |
| 4324 }))); | 4359 }))); |
| 4325 }); | 4360 }); |
| 4326 | 4361 |
| 4327 unittest.test("method--list", () { | 4362 unittest.test("method--list", () { |
| 4328 | 4363 |
| 4329 var mock = new common_test.HttpServerMock(); | 4364 var mock = new HttpServerMock(); |
| 4330 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; | 4365 api.LayersPermissionsResourceApi res = new api.MapsengineApi(mock).layers.
permissions; |
| 4331 var arg_id = "foo"; | 4366 var arg_id = "foo"; |
| 4332 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4367 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4333 var path = (req.url).path; | 4368 var path = (req.url).path; |
| 4334 var pathOffset = 0; | 4369 var pathOffset = 0; |
| 4335 var index; | 4370 var index; |
| 4336 var subPart; | 4371 var subPart; |
| 4337 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4372 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4338 pathOffset += 1; | 4373 pathOffset += 1; |
| 4339 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4374 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4363 var keyvalue = part.split("="); | 4398 var keyvalue = part.split("="); |
| 4364 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4399 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4365 } | 4400 } |
| 4366 } | 4401 } |
| 4367 | 4402 |
| 4368 | 4403 |
| 4369 var h = { | 4404 var h = { |
| 4370 "content-type" : "application/json; charset=utf-8", | 4405 "content-type" : "application/json; charset=utf-8", |
| 4371 }; | 4406 }; |
| 4372 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 4407 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 4373 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4408 return new async.Future.value(stringResponse(200, h, resp)); |
| 4374 }), true); | 4409 }), true); |
| 4375 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 4410 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 4376 checkPermissionsListResponse(response); | 4411 checkPermissionsListResponse(response); |
| 4377 }))); | 4412 }))); |
| 4378 }); | 4413 }); |
| 4379 | 4414 |
| 4380 }); | 4415 }); |
| 4381 | 4416 |
| 4382 | 4417 |
| 4383 unittest.group("resource-MapsResourceApi", () { | 4418 unittest.group("resource-MapsResourceApi", () { |
| 4384 unittest.test("method--create", () { | 4419 unittest.test("method--create", () { |
| 4385 | 4420 |
| 4386 var mock = new common_test.HttpServerMock(); | 4421 var mock = new HttpServerMock(); |
| 4387 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4422 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4388 var arg_request = buildMap(); | 4423 var arg_request = buildMap(); |
| 4389 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4424 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4390 var obj = new api.Map.fromJson(json); | 4425 var obj = new api.Map.fromJson(json); |
| 4391 checkMap(obj); | 4426 checkMap(obj); |
| 4392 | 4427 |
| 4393 var path = (req.url).path; | 4428 var path = (req.url).path; |
| 4394 var pathOffset = 0; | 4429 var pathOffset = 0; |
| 4395 var index; | 4430 var index; |
| 4396 var subPart; | 4431 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4416 var keyvalue = part.split("="); | 4451 var keyvalue = part.split("="); |
| 4417 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4452 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4418 } | 4453 } |
| 4419 } | 4454 } |
| 4420 | 4455 |
| 4421 | 4456 |
| 4422 var h = { | 4457 var h = { |
| 4423 "content-type" : "application/json; charset=utf-8", | 4458 "content-type" : "application/json; charset=utf-8", |
| 4424 }; | 4459 }; |
| 4425 var resp = convert.JSON.encode(buildMap()); | 4460 var resp = convert.JSON.encode(buildMap()); |
| 4426 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4461 return new async.Future.value(stringResponse(200, h, resp)); |
| 4427 }), true); | 4462 }), true); |
| 4428 res.create(arg_request).then(unittest.expectAsync(((api.Map response) { | 4463 res.create(arg_request).then(unittest.expectAsync(((api.Map response) { |
| 4429 checkMap(response); | 4464 checkMap(response); |
| 4430 }))); | 4465 }))); |
| 4431 }); | 4466 }); |
| 4432 | 4467 |
| 4433 unittest.test("method--delete", () { | 4468 unittest.test("method--delete", () { |
| 4434 | 4469 |
| 4435 var mock = new common_test.HttpServerMock(); | 4470 var mock = new HttpServerMock(); |
| 4436 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4471 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4437 var arg_id = "foo"; | 4472 var arg_id = "foo"; |
| 4438 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4473 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4439 var path = (req.url).path; | 4474 var path = (req.url).path; |
| 4440 var pathOffset = 0; | 4475 var pathOffset = 0; |
| 4441 var index; | 4476 var index; |
| 4442 var subPart; | 4477 var subPart; |
| 4443 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4478 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4444 pathOffset += 1; | 4479 pathOffset += 1; |
| 4445 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4480 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4465 var keyvalue = part.split("="); | 4500 var keyvalue = part.split("="); |
| 4466 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4501 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4467 } | 4502 } |
| 4468 } | 4503 } |
| 4469 | 4504 |
| 4470 | 4505 |
| 4471 var h = { | 4506 var h = { |
| 4472 "content-type" : "application/json; charset=utf-8", | 4507 "content-type" : "application/json; charset=utf-8", |
| 4473 }; | 4508 }; |
| 4474 var resp = ""; | 4509 var resp = ""; |
| 4475 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4510 return new async.Future.value(stringResponse(200, h, resp)); |
| 4476 }), true); | 4511 }), true); |
| 4477 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 4512 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
| 4478 }); | 4513 }); |
| 4479 | 4514 |
| 4480 unittest.test("method--get", () { | 4515 unittest.test("method--get", () { |
| 4481 | 4516 |
| 4482 var mock = new common_test.HttpServerMock(); | 4517 var mock = new HttpServerMock(); |
| 4483 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4518 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4484 var arg_id = "foo"; | 4519 var arg_id = "foo"; |
| 4485 var arg_version = "foo"; | 4520 var arg_version = "foo"; |
| 4486 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4487 var path = (req.url).path; | 4522 var path = (req.url).path; |
| 4488 var pathOffset = 0; | 4523 var pathOffset = 0; |
| 4489 var index; | 4524 var index; |
| 4490 var subPart; | 4525 var subPart; |
| 4491 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4492 pathOffset += 1; | 4527 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4514 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4549 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4515 } | 4550 } |
| 4516 } | 4551 } |
| 4517 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; | 4552 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; |
| 4518 | 4553 |
| 4519 | 4554 |
| 4520 var h = { | 4555 var h = { |
| 4521 "content-type" : "application/json; charset=utf-8", | 4556 "content-type" : "application/json; charset=utf-8", |
| 4522 }; | 4557 }; |
| 4523 var resp = convert.JSON.encode(buildMap()); | 4558 var resp = convert.JSON.encode(buildMap()); |
| 4524 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4559 return new async.Future.value(stringResponse(200, h, resp)); |
| 4525 }), true); | 4560 }), true); |
| 4526 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Map
response) { | 4561 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Map
response) { |
| 4527 checkMap(response); | 4562 checkMap(response); |
| 4528 }))); | 4563 }))); |
| 4529 }); | 4564 }); |
| 4530 | 4565 |
| 4531 unittest.test("method--getPublished", () { | 4566 unittest.test("method--getPublished", () { |
| 4532 | 4567 |
| 4533 var mock = new common_test.HttpServerMock(); | 4568 var mock = new HttpServerMock(); |
| 4534 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4569 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4535 var arg_id = "foo"; | 4570 var arg_id = "foo"; |
| 4536 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4571 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4537 var path = (req.url).path; | 4572 var path = (req.url).path; |
| 4538 var pathOffset = 0; | 4573 var pathOffset = 0; |
| 4539 var index; | 4574 var index; |
| 4540 var subPart; | 4575 var subPart; |
| 4541 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4542 pathOffset += 1; | 4577 pathOffset += 1; |
| 4543 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4578 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4567 var keyvalue = part.split("="); | 4602 var keyvalue = part.split("="); |
| 4568 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4603 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4569 } | 4604 } |
| 4570 } | 4605 } |
| 4571 | 4606 |
| 4572 | 4607 |
| 4573 var h = { | 4608 var h = { |
| 4574 "content-type" : "application/json; charset=utf-8", | 4609 "content-type" : "application/json; charset=utf-8", |
| 4575 }; | 4610 }; |
| 4576 var resp = convert.JSON.encode(buildPublishedMap()); | 4611 var resp = convert.JSON.encode(buildPublishedMap()); |
| 4577 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4612 return new async.Future.value(stringResponse(200, h, resp)); |
| 4578 }), true); | 4613 }), true); |
| 4579 res.getPublished(arg_id).then(unittest.expectAsync(((api.PublishedMap resp
onse) { | 4614 res.getPublished(arg_id).then(unittest.expectAsync(((api.PublishedMap resp
onse) { |
| 4580 checkPublishedMap(response); | 4615 checkPublishedMap(response); |
| 4581 }))); | 4616 }))); |
| 4582 }); | 4617 }); |
| 4583 | 4618 |
| 4584 unittest.test("method--list", () { | 4619 unittest.test("method--list", () { |
| 4585 | 4620 |
| 4586 var mock = new common_test.HttpServerMock(); | 4621 var mock = new HttpServerMock(); |
| 4587 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4622 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4588 var arg_bbox = "foo"; | 4623 var arg_bbox = "foo"; |
| 4589 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 4624 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 4590 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 4625 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 4591 var arg_creatorEmail = "foo"; | 4626 var arg_creatorEmail = "foo"; |
| 4592 var arg_maxResults = 42; | 4627 var arg_maxResults = 42; |
| 4593 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 4628 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 4594 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 4629 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 4595 var arg_pageToken = "foo"; | 4630 var arg_pageToken = "foo"; |
| 4596 var arg_processingStatus = "foo"; | 4631 var arg_processingStatus = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4638 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 4673 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 4639 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 4674 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 4640 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 4675 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 4641 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 4676 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 4642 | 4677 |
| 4643 | 4678 |
| 4644 var h = { | 4679 var h = { |
| 4645 "content-type" : "application/json; charset=utf-8", | 4680 "content-type" : "application/json; charset=utf-8", |
| 4646 }; | 4681 }; |
| 4647 var resp = convert.JSON.encode(buildMapsListResponse()); | 4682 var resp = convert.JSON.encode(buildMapsListResponse()); |
| 4648 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4683 return new async.Future.value(stringResponse(200, h, resp)); |
| 4649 }), true); | 4684 }), true); |
| 4650 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.MapsListResponse response) { | 4685 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.MapsListResponse response) { |
| 4651 checkMapsListResponse(response); | 4686 checkMapsListResponse(response); |
| 4652 }))); | 4687 }))); |
| 4653 }); | 4688 }); |
| 4654 | 4689 |
| 4655 unittest.test("method--listPublished", () { | 4690 unittest.test("method--listPublished", () { |
| 4656 | 4691 |
| 4657 var mock = new common_test.HttpServerMock(); | 4692 var mock = new HttpServerMock(); |
| 4658 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4693 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4659 var arg_maxResults = 42; | 4694 var arg_maxResults = 42; |
| 4660 var arg_pageToken = "foo"; | 4695 var arg_pageToken = "foo"; |
| 4661 var arg_projectId = "foo"; | 4696 var arg_projectId = "foo"; |
| 4662 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4697 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4663 var path = (req.url).path; | 4698 var path = (req.url).path; |
| 4664 var pathOffset = 0; | 4699 var pathOffset = 0; |
| 4665 var index; | 4700 var index; |
| 4666 var subPart; | 4701 var subPart; |
| 4667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4702 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4689 } | 4724 } |
| 4690 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4725 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 4691 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4726 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4692 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 4727 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 4693 | 4728 |
| 4694 | 4729 |
| 4695 var h = { | 4730 var h = { |
| 4696 "content-type" : "application/json; charset=utf-8", | 4731 "content-type" : "application/json; charset=utf-8", |
| 4697 }; | 4732 }; |
| 4698 var resp = convert.JSON.encode(buildPublishedMapsListResponse()); | 4733 var resp = convert.JSON.encode(buildPublishedMapsListResponse()); |
| 4699 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4734 return new async.Future.value(stringResponse(200, h, resp)); |
| 4700 }), true); | 4735 }), true); |
| 4701 res.listPublished(maxResults: arg_maxResults, pageToken: arg_pageToken, pr
ojectId: arg_projectId).then(unittest.expectAsync(((api.PublishedMapsListRespons
e response) { | 4736 res.listPublished(maxResults: arg_maxResults, pageToken: arg_pageToken, pr
ojectId: arg_projectId).then(unittest.expectAsync(((api.PublishedMapsListRespons
e response) { |
| 4702 checkPublishedMapsListResponse(response); | 4737 checkPublishedMapsListResponse(response); |
| 4703 }))); | 4738 }))); |
| 4704 }); | 4739 }); |
| 4705 | 4740 |
| 4706 unittest.test("method--patch", () { | 4741 unittest.test("method--patch", () { |
| 4707 | 4742 |
| 4708 var mock = new common_test.HttpServerMock(); | 4743 var mock = new HttpServerMock(); |
| 4709 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4744 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4710 var arg_request = buildMap(); | 4745 var arg_request = buildMap(); |
| 4711 var arg_id = "foo"; | 4746 var arg_id = "foo"; |
| 4712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4713 var obj = new api.Map.fromJson(json); | 4748 var obj = new api.Map.fromJson(json); |
| 4714 checkMap(obj); | 4749 checkMap(obj); |
| 4715 | 4750 |
| 4716 var path = (req.url).path; | 4751 var path = (req.url).path; |
| 4717 var pathOffset = 0; | 4752 var pathOffset = 0; |
| 4718 var index; | 4753 var index; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4742 var keyvalue = part.split("="); | 4777 var keyvalue = part.split("="); |
| 4743 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4778 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4744 } | 4779 } |
| 4745 } | 4780 } |
| 4746 | 4781 |
| 4747 | 4782 |
| 4748 var h = { | 4783 var h = { |
| 4749 "content-type" : "application/json; charset=utf-8", | 4784 "content-type" : "application/json; charset=utf-8", |
| 4750 }; | 4785 }; |
| 4751 var resp = ""; | 4786 var resp = ""; |
| 4752 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4787 return new async.Future.value(stringResponse(200, h, resp)); |
| 4753 }), true); | 4788 }), true); |
| 4754 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 4789 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 4755 }); | 4790 }); |
| 4756 | 4791 |
| 4757 unittest.test("method--publish", () { | 4792 unittest.test("method--publish", () { |
| 4758 | 4793 |
| 4759 var mock = new common_test.HttpServerMock(); | 4794 var mock = new HttpServerMock(); |
| 4760 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4795 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4761 var arg_id = "foo"; | 4796 var arg_id = "foo"; |
| 4762 var arg_force = true; | 4797 var arg_force = true; |
| 4763 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4798 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4764 var path = (req.url).path; | 4799 var path = (req.url).path; |
| 4765 var pathOffset = 0; | 4800 var pathOffset = 0; |
| 4766 var index; | 4801 var index; |
| 4767 var subPart; | 4802 var subPart; |
| 4768 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4803 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4769 pathOffset += 1; | 4804 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4795 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4830 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4796 } | 4831 } |
| 4797 } | 4832 } |
| 4798 unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); | 4833 unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); |
| 4799 | 4834 |
| 4800 | 4835 |
| 4801 var h = { | 4836 var h = { |
| 4802 "content-type" : "application/json; charset=utf-8", | 4837 "content-type" : "application/json; charset=utf-8", |
| 4803 }; | 4838 }; |
| 4804 var resp = convert.JSON.encode(buildPublishResponse()); | 4839 var resp = convert.JSON.encode(buildPublishResponse()); |
| 4805 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4840 return new async.Future.value(stringResponse(200, h, resp)); |
| 4806 }), true); | 4841 }), true); |
| 4807 res.publish(arg_id, force: arg_force).then(unittest.expectAsync(((api.Publ
ishResponse response) { | 4842 res.publish(arg_id, force: arg_force).then(unittest.expectAsync(((api.Publ
ishResponse response) { |
| 4808 checkPublishResponse(response); | 4843 checkPublishResponse(response); |
| 4809 }))); | 4844 }))); |
| 4810 }); | 4845 }); |
| 4811 | 4846 |
| 4812 unittest.test("method--unpublish", () { | 4847 unittest.test("method--unpublish", () { |
| 4813 | 4848 |
| 4814 var mock = new common_test.HttpServerMock(); | 4849 var mock = new HttpServerMock(); |
| 4815 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; | 4850 api.MapsResourceApi res = new api.MapsengineApi(mock).maps; |
| 4816 var arg_id = "foo"; | 4851 var arg_id = "foo"; |
| 4817 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4818 var path = (req.url).path; | 4853 var path = (req.url).path; |
| 4819 var pathOffset = 0; | 4854 var pathOffset = 0; |
| 4820 var index; | 4855 var index; |
| 4821 var subPart; | 4856 var subPart; |
| 4822 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4857 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4823 pathOffset += 1; | 4858 pathOffset += 1; |
| 4824 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 4859 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4848 var keyvalue = part.split("="); | 4883 var keyvalue = part.split("="); |
| 4849 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4884 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4850 } | 4885 } |
| 4851 } | 4886 } |
| 4852 | 4887 |
| 4853 | 4888 |
| 4854 var h = { | 4889 var h = { |
| 4855 "content-type" : "application/json; charset=utf-8", | 4890 "content-type" : "application/json; charset=utf-8", |
| 4856 }; | 4891 }; |
| 4857 var resp = convert.JSON.encode(buildPublishResponse()); | 4892 var resp = convert.JSON.encode(buildPublishResponse()); |
| 4858 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4893 return new async.Future.value(stringResponse(200, h, resp)); |
| 4859 }), true); | 4894 }), true); |
| 4860 res.unpublish(arg_id).then(unittest.expectAsync(((api.PublishResponse resp
onse) { | 4895 res.unpublish(arg_id).then(unittest.expectAsync(((api.PublishResponse resp
onse) { |
| 4861 checkPublishResponse(response); | 4896 checkPublishResponse(response); |
| 4862 }))); | 4897 }))); |
| 4863 }); | 4898 }); |
| 4864 | 4899 |
| 4865 }); | 4900 }); |
| 4866 | 4901 |
| 4867 | 4902 |
| 4868 unittest.group("resource-MapsPermissionsResourceApi", () { | 4903 unittest.group("resource-MapsPermissionsResourceApi", () { |
| 4869 unittest.test("method--batchDelete", () { | 4904 unittest.test("method--batchDelete", () { |
| 4870 | 4905 |
| 4871 var mock = new common_test.HttpServerMock(); | 4906 var mock = new HttpServerMock(); |
| 4872 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; | 4907 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; |
| 4873 var arg_request = buildPermissionsBatchDeleteRequest(); | 4908 var arg_request = buildPermissionsBatchDeleteRequest(); |
| 4874 var arg_id = "foo"; | 4909 var arg_id = "foo"; |
| 4875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4876 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); | 4911 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); |
| 4877 checkPermissionsBatchDeleteRequest(obj); | 4912 checkPermissionsBatchDeleteRequest(obj); |
| 4878 | 4913 |
| 4879 var path = (req.url).path; | 4914 var path = (req.url).path; |
| 4880 var pathOffset = 0; | 4915 var pathOffset = 0; |
| 4881 var index; | 4916 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4909 var keyvalue = part.split("="); | 4944 var keyvalue = part.split("="); |
| 4910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4945 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4911 } | 4946 } |
| 4912 } | 4947 } |
| 4913 | 4948 |
| 4914 | 4949 |
| 4915 var h = { | 4950 var h = { |
| 4916 "content-type" : "application/json; charset=utf-8", | 4951 "content-type" : "application/json; charset=utf-8", |
| 4917 }; | 4952 }; |
| 4918 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); | 4953 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); |
| 4919 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4954 return new async.Future.value(stringResponse(200, h, resp)); |
| 4920 }), true); | 4955 }), true); |
| 4921 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { | 4956 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { |
| 4922 checkPermissionsBatchDeleteResponse(response); | 4957 checkPermissionsBatchDeleteResponse(response); |
| 4923 }))); | 4958 }))); |
| 4924 }); | 4959 }); |
| 4925 | 4960 |
| 4926 unittest.test("method--batchUpdate", () { | 4961 unittest.test("method--batchUpdate", () { |
| 4927 | 4962 |
| 4928 var mock = new common_test.HttpServerMock(); | 4963 var mock = new HttpServerMock(); |
| 4929 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; | 4964 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; |
| 4930 var arg_request = buildPermissionsBatchUpdateRequest(); | 4965 var arg_request = buildPermissionsBatchUpdateRequest(); |
| 4931 var arg_id = "foo"; | 4966 var arg_id = "foo"; |
| 4932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4933 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); | 4968 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); |
| 4934 checkPermissionsBatchUpdateRequest(obj); | 4969 checkPermissionsBatchUpdateRequest(obj); |
| 4935 | 4970 |
| 4936 var path = (req.url).path; | 4971 var path = (req.url).path; |
| 4937 var pathOffset = 0; | 4972 var pathOffset = 0; |
| 4938 var index; | 4973 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4966 var keyvalue = part.split("="); | 5001 var keyvalue = part.split("="); |
| 4967 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4968 } | 5003 } |
| 4969 } | 5004 } |
| 4970 | 5005 |
| 4971 | 5006 |
| 4972 var h = { | 5007 var h = { |
| 4973 "content-type" : "application/json; charset=utf-8", | 5008 "content-type" : "application/json; charset=utf-8", |
| 4974 }; | 5009 }; |
| 4975 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); | 5010 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); |
| 4976 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5011 return new async.Future.value(stringResponse(200, h, resp)); |
| 4977 }), true); | 5012 }), true); |
| 4978 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { | 5013 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { |
| 4979 checkPermissionsBatchUpdateResponse(response); | 5014 checkPermissionsBatchUpdateResponse(response); |
| 4980 }))); | 5015 }))); |
| 4981 }); | 5016 }); |
| 4982 | 5017 |
| 4983 unittest.test("method--list", () { | 5018 unittest.test("method--list", () { |
| 4984 | 5019 |
| 4985 var mock = new common_test.HttpServerMock(); | 5020 var mock = new HttpServerMock(); |
| 4986 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; | 5021 api.MapsPermissionsResourceApi res = new api.MapsengineApi(mock).maps.perm
issions; |
| 4987 var arg_id = "foo"; | 5022 var arg_id = "foo"; |
| 4988 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5023 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4989 var path = (req.url).path; | 5024 var path = (req.url).path; |
| 4990 var pathOffset = 0; | 5025 var pathOffset = 0; |
| 4991 var index; | 5026 var index; |
| 4992 var subPart; | 5027 var subPart; |
| 4993 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5028 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4994 pathOffset += 1; | 5029 pathOffset += 1; |
| 4995 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5030 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5019 var keyvalue = part.split("="); | 5054 var keyvalue = part.split("="); |
| 5020 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5055 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5021 } | 5056 } |
| 5022 } | 5057 } |
| 5023 | 5058 |
| 5024 | 5059 |
| 5025 var h = { | 5060 var h = { |
| 5026 "content-type" : "application/json; charset=utf-8", | 5061 "content-type" : "application/json; charset=utf-8", |
| 5027 }; | 5062 }; |
| 5028 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 5063 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 5029 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5064 return new async.Future.value(stringResponse(200, h, resp)); |
| 5030 }), true); | 5065 }), true); |
| 5031 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 5066 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 5032 checkPermissionsListResponse(response); | 5067 checkPermissionsListResponse(response); |
| 5033 }))); | 5068 }))); |
| 5034 }); | 5069 }); |
| 5035 | 5070 |
| 5036 }); | 5071 }); |
| 5037 | 5072 |
| 5038 | 5073 |
| 5039 unittest.group("resource-ProjectsResourceApi", () { | 5074 unittest.group("resource-ProjectsResourceApi", () { |
| 5040 unittest.test("method--list", () { | 5075 unittest.test("method--list", () { |
| 5041 | 5076 |
| 5042 var mock = new common_test.HttpServerMock(); | 5077 var mock = new HttpServerMock(); |
| 5043 api.ProjectsResourceApi res = new api.MapsengineApi(mock).projects; | 5078 api.ProjectsResourceApi res = new api.MapsengineApi(mock).projects; |
| 5044 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5079 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5045 var path = (req.url).path; | 5080 var path = (req.url).path; |
| 5046 var pathOffset = 0; | 5081 var pathOffset = 0; |
| 5047 var index; | 5082 var index; |
| 5048 var subPart; | 5083 var subPart; |
| 5049 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5084 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5050 pathOffset += 1; | 5085 pathOffset += 1; |
| 5051 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5086 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| 5052 pathOffset += 14; | 5087 pathOffset += 14; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 5068 var keyvalue = part.split("="); | 5103 var keyvalue = part.split("="); |
| 5069 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5070 } | 5105 } |
| 5071 } | 5106 } |
| 5072 | 5107 |
| 5073 | 5108 |
| 5074 var h = { | 5109 var h = { |
| 5075 "content-type" : "application/json; charset=utf-8", | 5110 "content-type" : "application/json; charset=utf-8", |
| 5076 }; | 5111 }; |
| 5077 var resp = convert.JSON.encode(buildProjectsListResponse()); | 5112 var resp = convert.JSON.encode(buildProjectsListResponse()); |
| 5078 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5113 return new async.Future.value(stringResponse(200, h, resp)); |
| 5079 }), true); | 5114 }), true); |
| 5080 res.list().then(unittest.expectAsync(((api.ProjectsListResponse response)
{ | 5115 res.list().then(unittest.expectAsync(((api.ProjectsListResponse response)
{ |
| 5081 checkProjectsListResponse(response); | 5116 checkProjectsListResponse(response); |
| 5082 }))); | 5117 }))); |
| 5083 }); | 5118 }); |
| 5084 | 5119 |
| 5085 }); | 5120 }); |
| 5086 | 5121 |
| 5087 | 5122 |
| 5088 unittest.group("resource-ProjectsIconsResourceApi", () { | 5123 unittest.group("resource-ProjectsIconsResourceApi", () { |
| 5089 unittest.test("method--create", () { | 5124 unittest.test("method--create", () { |
| 5090 // TODO: Implement tests for media upload; | 5125 // TODO: Implement tests for media upload; |
| 5091 // TODO: Implement tests for media download; | 5126 // TODO: Implement tests for media download; |
| 5092 | 5127 |
| 5093 var mock = new common_test.HttpServerMock(); | 5128 var mock = new HttpServerMock(); |
| 5094 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; | 5129 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; |
| 5095 var arg_request = buildIcon(); | 5130 var arg_request = buildIcon(); |
| 5096 var arg_projectId = "foo"; | 5131 var arg_projectId = "foo"; |
| 5097 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5132 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5098 var obj = new api.Icon.fromJson(json); | 5133 var obj = new api.Icon.fromJson(json); |
| 5099 checkIcon(obj); | 5134 checkIcon(obj); |
| 5100 | 5135 |
| 5101 var path = (req.url).path; | 5136 var path = (req.url).path; |
| 5102 var pathOffset = 0; | 5137 var pathOffset = 0; |
| 5103 var index; | 5138 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5131 var keyvalue = part.split("="); | 5166 var keyvalue = part.split("="); |
| 5132 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5167 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5133 } | 5168 } |
| 5134 } | 5169 } |
| 5135 | 5170 |
| 5136 | 5171 |
| 5137 var h = { | 5172 var h = { |
| 5138 "content-type" : "application/json; charset=utf-8", | 5173 "content-type" : "application/json; charset=utf-8", |
| 5139 }; | 5174 }; |
| 5140 var resp = convert.JSON.encode(buildIcon()); | 5175 var resp = convert.JSON.encode(buildIcon()); |
| 5141 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5176 return new async.Future.value(stringResponse(200, h, resp)); |
| 5142 }), true); | 5177 }), true); |
| 5143 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Ico
n response) { | 5178 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Ico
n response) { |
| 5144 checkIcon(response); | 5179 checkIcon(response); |
| 5145 }))); | 5180 }))); |
| 5146 }); | 5181 }); |
| 5147 | 5182 |
| 5148 unittest.test("method--get", () { | 5183 unittest.test("method--get", () { |
| 5149 // TODO: Implement tests for media upload; | 5184 // TODO: Implement tests for media upload; |
| 5150 // TODO: Implement tests for media download; | 5185 // TODO: Implement tests for media download; |
| 5151 | 5186 |
| 5152 var mock = new common_test.HttpServerMock(); | 5187 var mock = new HttpServerMock(); |
| 5153 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; | 5188 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; |
| 5154 var arg_projectId = "foo"; | 5189 var arg_projectId = "foo"; |
| 5155 var arg_id = "foo"; | 5190 var arg_id = "foo"; |
| 5156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5191 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5157 var path = (req.url).path; | 5192 var path = (req.url).path; |
| 5158 var pathOffset = 0; | 5193 var pathOffset = 0; |
| 5159 var index; | 5194 var index; |
| 5160 var subPart; | 5195 var subPart; |
| 5161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5196 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5162 pathOffset += 1; | 5197 pathOffset += 1; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5190 var keyvalue = part.split("="); | 5225 var keyvalue = part.split("="); |
| 5191 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5226 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5192 } | 5227 } |
| 5193 } | 5228 } |
| 5194 | 5229 |
| 5195 | 5230 |
| 5196 var h = { | 5231 var h = { |
| 5197 "content-type" : "application/json; charset=utf-8", | 5232 "content-type" : "application/json; charset=utf-8", |
| 5198 }; | 5233 }; |
| 5199 var resp = convert.JSON.encode(buildIcon()); | 5234 var resp = convert.JSON.encode(buildIcon()); |
| 5200 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5235 return new async.Future.value(stringResponse(200, h, resp)); |
| 5201 }), true); | 5236 }), true); |
| 5202 res.get(arg_projectId, arg_id).then(unittest.expectAsync(((api.Icon respon
se) { | 5237 res.get(arg_projectId, arg_id).then(unittest.expectAsync(((api.Icon respon
se) { |
| 5203 checkIcon(response); | 5238 checkIcon(response); |
| 5204 }))); | 5239 }))); |
| 5205 }); | 5240 }); |
| 5206 | 5241 |
| 5207 unittest.test("method--list", () { | 5242 unittest.test("method--list", () { |
| 5208 | 5243 |
| 5209 var mock = new common_test.HttpServerMock(); | 5244 var mock = new HttpServerMock(); |
| 5210 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; | 5245 api.ProjectsIconsResourceApi res = new api.MapsengineApi(mock).projects.ic
ons; |
| 5211 var arg_projectId = "foo"; | 5246 var arg_projectId = "foo"; |
| 5212 var arg_maxResults = 42; | 5247 var arg_maxResults = 42; |
| 5213 var arg_pageToken = "foo"; | 5248 var arg_pageToken = "foo"; |
| 5214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5249 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5215 var path = (req.url).path; | 5250 var path = (req.url).path; |
| 5216 var pathOffset = 0; | 5251 var pathOffset = 0; |
| 5217 var index; | 5252 var index; |
| 5218 var subPart; | 5253 var subPart; |
| 5219 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5254 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5247 } | 5282 } |
| 5248 } | 5283 } |
| 5249 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5284 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5250 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5285 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5251 | 5286 |
| 5252 | 5287 |
| 5253 var h = { | 5288 var h = { |
| 5254 "content-type" : "application/json; charset=utf-8", | 5289 "content-type" : "application/json; charset=utf-8", |
| 5255 }; | 5290 }; |
| 5256 var resp = convert.JSON.encode(buildIconsListResponse()); | 5291 var resp = convert.JSON.encode(buildIconsListResponse()); |
| 5257 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5292 return new async.Future.value(stringResponse(200, h, resp)); |
| 5258 }), true); | 5293 }), true); |
| 5259 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.IconsListResponse response) { | 5294 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.IconsListResponse response) { |
| 5260 checkIconsListResponse(response); | 5295 checkIconsListResponse(response); |
| 5261 }))); | 5296 }))); |
| 5262 }); | 5297 }); |
| 5263 | 5298 |
| 5264 }); | 5299 }); |
| 5265 | 5300 |
| 5266 | 5301 |
| 5267 unittest.group("resource-RasterCollectionsResourceApi", () { | 5302 unittest.group("resource-RasterCollectionsResourceApi", () { |
| 5268 unittest.test("method--cancelProcessing", () { | 5303 unittest.test("method--cancelProcessing", () { |
| 5269 | 5304 |
| 5270 var mock = new common_test.HttpServerMock(); | 5305 var mock = new HttpServerMock(); |
| 5271 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5306 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5272 var arg_id = "foo"; | 5307 var arg_id = "foo"; |
| 5273 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5274 var path = (req.url).path; | 5309 var path = (req.url).path; |
| 5275 var pathOffset = 0; | 5310 var pathOffset = 0; |
| 5276 var index; | 5311 var index; |
| 5277 var subPart; | 5312 var subPart; |
| 5278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5313 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5279 pathOffset += 1; | 5314 pathOffset += 1; |
| 5280 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5315 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5304 var keyvalue = part.split("="); | 5339 var keyvalue = part.split("="); |
| 5305 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5340 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5306 } | 5341 } |
| 5307 } | 5342 } |
| 5308 | 5343 |
| 5309 | 5344 |
| 5310 var h = { | 5345 var h = { |
| 5311 "content-type" : "application/json; charset=utf-8", | 5346 "content-type" : "application/json; charset=utf-8", |
| 5312 }; | 5347 }; |
| 5313 var resp = convert.JSON.encode(buildProcessResponse()); | 5348 var resp = convert.JSON.encode(buildProcessResponse()); |
| 5314 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5349 return new async.Future.value(stringResponse(200, h, resp)); |
| 5315 }), true); | 5350 }), true); |
| 5316 res.cancelProcessing(arg_id).then(unittest.expectAsync(((api.ProcessRespon
se response) { | 5351 res.cancelProcessing(arg_id).then(unittest.expectAsync(((api.ProcessRespon
se response) { |
| 5317 checkProcessResponse(response); | 5352 checkProcessResponse(response); |
| 5318 }))); | 5353 }))); |
| 5319 }); | 5354 }); |
| 5320 | 5355 |
| 5321 unittest.test("method--create", () { | 5356 unittest.test("method--create", () { |
| 5322 | 5357 |
| 5323 var mock = new common_test.HttpServerMock(); | 5358 var mock = new HttpServerMock(); |
| 5324 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5359 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5325 var arg_request = buildRasterCollection(); | 5360 var arg_request = buildRasterCollection(); |
| 5326 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5361 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5327 var obj = new api.RasterCollection.fromJson(json); | 5362 var obj = new api.RasterCollection.fromJson(json); |
| 5328 checkRasterCollection(obj); | 5363 checkRasterCollection(obj); |
| 5329 | 5364 |
| 5330 var path = (req.url).path; | 5365 var path = (req.url).path; |
| 5331 var pathOffset = 0; | 5366 var pathOffset = 0; |
| 5332 var index; | 5367 var index; |
| 5333 var subPart; | 5368 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5353 var keyvalue = part.split("="); | 5388 var keyvalue = part.split("="); |
| 5354 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5389 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5355 } | 5390 } |
| 5356 } | 5391 } |
| 5357 | 5392 |
| 5358 | 5393 |
| 5359 var h = { | 5394 var h = { |
| 5360 "content-type" : "application/json; charset=utf-8", | 5395 "content-type" : "application/json; charset=utf-8", |
| 5361 }; | 5396 }; |
| 5362 var resp = convert.JSON.encode(buildRasterCollection()); | 5397 var resp = convert.JSON.encode(buildRasterCollection()); |
| 5363 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5398 return new async.Future.value(stringResponse(200, h, resp)); |
| 5364 }), true); | 5399 }), true); |
| 5365 res.create(arg_request).then(unittest.expectAsync(((api.RasterCollection r
esponse) { | 5400 res.create(arg_request).then(unittest.expectAsync(((api.RasterCollection r
esponse) { |
| 5366 checkRasterCollection(response); | 5401 checkRasterCollection(response); |
| 5367 }))); | 5402 }))); |
| 5368 }); | 5403 }); |
| 5369 | 5404 |
| 5370 unittest.test("method--delete", () { | 5405 unittest.test("method--delete", () { |
| 5371 | 5406 |
| 5372 var mock = new common_test.HttpServerMock(); | 5407 var mock = new HttpServerMock(); |
| 5373 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5408 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5374 var arg_id = "foo"; | 5409 var arg_id = "foo"; |
| 5375 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5410 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5376 var path = (req.url).path; | 5411 var path = (req.url).path; |
| 5377 var pathOffset = 0; | 5412 var pathOffset = 0; |
| 5378 var index; | 5413 var index; |
| 5379 var subPart; | 5414 var subPart; |
| 5380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5415 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5381 pathOffset += 1; | 5416 pathOffset += 1; |
| 5382 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5417 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5402 var keyvalue = part.split("="); | 5437 var keyvalue = part.split("="); |
| 5403 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5438 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5404 } | 5439 } |
| 5405 } | 5440 } |
| 5406 | 5441 |
| 5407 | 5442 |
| 5408 var h = { | 5443 var h = { |
| 5409 "content-type" : "application/json; charset=utf-8", | 5444 "content-type" : "application/json; charset=utf-8", |
| 5410 }; | 5445 }; |
| 5411 var resp = ""; | 5446 var resp = ""; |
| 5412 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5447 return new async.Future.value(stringResponse(200, h, resp)); |
| 5413 }), true); | 5448 }), true); |
| 5414 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 5449 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
| 5415 }); | 5450 }); |
| 5416 | 5451 |
| 5417 unittest.test("method--get", () { | 5452 unittest.test("method--get", () { |
| 5418 | 5453 |
| 5419 var mock = new common_test.HttpServerMock(); | 5454 var mock = new HttpServerMock(); |
| 5420 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5455 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5421 var arg_id = "foo"; | 5456 var arg_id = "foo"; |
| 5422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5423 var path = (req.url).path; | 5458 var path = (req.url).path; |
| 5424 var pathOffset = 0; | 5459 var pathOffset = 0; |
| 5425 var index; | 5460 var index; |
| 5426 var subPart; | 5461 var subPart; |
| 5427 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5428 pathOffset += 1; | 5463 pathOffset += 1; |
| 5429 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5464 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5449 var keyvalue = part.split("="); | 5484 var keyvalue = part.split("="); |
| 5450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5485 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5451 } | 5486 } |
| 5452 } | 5487 } |
| 5453 | 5488 |
| 5454 | 5489 |
| 5455 var h = { | 5490 var h = { |
| 5456 "content-type" : "application/json; charset=utf-8", | 5491 "content-type" : "application/json; charset=utf-8", |
| 5457 }; | 5492 }; |
| 5458 var resp = convert.JSON.encode(buildRasterCollection()); | 5493 var resp = convert.JSON.encode(buildRasterCollection()); |
| 5459 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5494 return new async.Future.value(stringResponse(200, h, resp)); |
| 5460 }), true); | 5495 }), true); |
| 5461 res.get(arg_id).then(unittest.expectAsync(((api.RasterCollection response)
{ | 5496 res.get(arg_id).then(unittest.expectAsync(((api.RasterCollection response)
{ |
| 5462 checkRasterCollection(response); | 5497 checkRasterCollection(response); |
| 5463 }))); | 5498 }))); |
| 5464 }); | 5499 }); |
| 5465 | 5500 |
| 5466 unittest.test("method--list", () { | 5501 unittest.test("method--list", () { |
| 5467 | 5502 |
| 5468 var mock = new common_test.HttpServerMock(); | 5503 var mock = new HttpServerMock(); |
| 5469 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5504 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5470 var arg_bbox = "foo"; | 5505 var arg_bbox = "foo"; |
| 5471 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 5506 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5472 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 5507 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5473 var arg_creatorEmail = "foo"; | 5508 var arg_creatorEmail = "foo"; |
| 5474 var arg_maxResults = 42; | 5509 var arg_maxResults = 42; |
| 5475 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 5510 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5476 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 5511 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5477 var arg_pageToken = "foo"; | 5512 var arg_pageToken = "foo"; |
| 5478 var arg_processingStatus = "foo"; | 5513 var arg_processingStatus = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5520 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 5555 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 5521 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 5556 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 5522 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 5557 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 5523 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 5558 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 5524 | 5559 |
| 5525 | 5560 |
| 5526 var h = { | 5561 var h = { |
| 5527 "content-type" : "application/json; charset=utf-8", | 5562 "content-type" : "application/json; charset=utf-8", |
| 5528 }; | 5563 }; |
| 5529 var resp = convert.JSON.encode(buildRasterCollectionsListResponse()); | 5564 var resp = convert.JSON.encode(buildRasterCollectionsListResponse()); |
| 5530 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5565 return new async.Future.value(stringResponse(200, h, resp)); |
| 5531 }), true); | 5566 }), true); |
| 5532 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.RasterCollectionsListResponse response) { | 5567 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.RasterCollectionsListResponse response) { |
| 5533 checkRasterCollectionsListResponse(response); | 5568 checkRasterCollectionsListResponse(response); |
| 5534 }))); | 5569 }))); |
| 5535 }); | 5570 }); |
| 5536 | 5571 |
| 5537 unittest.test("method--patch", () { | 5572 unittest.test("method--patch", () { |
| 5538 | 5573 |
| 5539 var mock = new common_test.HttpServerMock(); | 5574 var mock = new HttpServerMock(); |
| 5540 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5575 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5541 var arg_request = buildRasterCollection(); | 5576 var arg_request = buildRasterCollection(); |
| 5542 var arg_id = "foo"; | 5577 var arg_id = "foo"; |
| 5543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5544 var obj = new api.RasterCollection.fromJson(json); | 5579 var obj = new api.RasterCollection.fromJson(json); |
| 5545 checkRasterCollection(obj); | 5580 checkRasterCollection(obj); |
| 5546 | 5581 |
| 5547 var path = (req.url).path; | 5582 var path = (req.url).path; |
| 5548 var pathOffset = 0; | 5583 var pathOffset = 0; |
| 5549 var index; | 5584 var index; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5573 var keyvalue = part.split("="); | 5608 var keyvalue = part.split("="); |
| 5574 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5609 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5575 } | 5610 } |
| 5576 } | 5611 } |
| 5577 | 5612 |
| 5578 | 5613 |
| 5579 var h = { | 5614 var h = { |
| 5580 "content-type" : "application/json; charset=utf-8", | 5615 "content-type" : "application/json; charset=utf-8", |
| 5581 }; | 5616 }; |
| 5582 var resp = ""; | 5617 var resp = ""; |
| 5583 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5618 return new async.Future.value(stringResponse(200, h, resp)); |
| 5584 }), true); | 5619 }), true); |
| 5585 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 5620 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 5586 }); | 5621 }); |
| 5587 | 5622 |
| 5588 unittest.test("method--process", () { | 5623 unittest.test("method--process", () { |
| 5589 | 5624 |
| 5590 var mock = new common_test.HttpServerMock(); | 5625 var mock = new HttpServerMock(); |
| 5591 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; | 5626 api.RasterCollectionsResourceApi res = new api.MapsengineApi(mock).rasterC
ollections; |
| 5592 var arg_id = "foo"; | 5627 var arg_id = "foo"; |
| 5593 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5628 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5594 var path = (req.url).path; | 5629 var path = (req.url).path; |
| 5595 var pathOffset = 0; | 5630 var pathOffset = 0; |
| 5596 var index; | 5631 var index; |
| 5597 var subPart; | 5632 var subPart; |
| 5598 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5599 pathOffset += 1; | 5634 pathOffset += 1; |
| 5600 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5635 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5624 var keyvalue = part.split("="); | 5659 var keyvalue = part.split("="); |
| 5625 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5660 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5626 } | 5661 } |
| 5627 } | 5662 } |
| 5628 | 5663 |
| 5629 | 5664 |
| 5630 var h = { | 5665 var h = { |
| 5631 "content-type" : "application/json; charset=utf-8", | 5666 "content-type" : "application/json; charset=utf-8", |
| 5632 }; | 5667 }; |
| 5633 var resp = convert.JSON.encode(buildProcessResponse()); | 5668 var resp = convert.JSON.encode(buildProcessResponse()); |
| 5634 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5669 return new async.Future.value(stringResponse(200, h, resp)); |
| 5635 }), true); | 5670 }), true); |
| 5636 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { | 5671 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { |
| 5637 checkProcessResponse(response); | 5672 checkProcessResponse(response); |
| 5638 }))); | 5673 }))); |
| 5639 }); | 5674 }); |
| 5640 | 5675 |
| 5641 }); | 5676 }); |
| 5642 | 5677 |
| 5643 | 5678 |
| 5644 unittest.group("resource-RasterCollectionsParentsResourceApi", () { | 5679 unittest.group("resource-RasterCollectionsParentsResourceApi", () { |
| 5645 unittest.test("method--list", () { | 5680 unittest.test("method--list", () { |
| 5646 | 5681 |
| 5647 var mock = new common_test.HttpServerMock(); | 5682 var mock = new HttpServerMock(); |
| 5648 api.RasterCollectionsParentsResourceApi res = new api.MapsengineApi(mock).
rasterCollections.parents; | 5683 api.RasterCollectionsParentsResourceApi res = new api.MapsengineApi(mock).
rasterCollections.parents; |
| 5649 var arg_id = "foo"; | 5684 var arg_id = "foo"; |
| 5650 var arg_maxResults = 42; | 5685 var arg_maxResults = 42; |
| 5651 var arg_pageToken = "foo"; | 5686 var arg_pageToken = "foo"; |
| 5652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5653 var path = (req.url).path; | 5688 var path = (req.url).path; |
| 5654 var pathOffset = 0; | 5689 var pathOffset = 0; |
| 5655 var index; | 5690 var index; |
| 5656 var subPart; | 5691 var subPart; |
| 5657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5692 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5685 } | 5720 } |
| 5686 } | 5721 } |
| 5687 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5722 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5688 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5723 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5689 | 5724 |
| 5690 | 5725 |
| 5691 var h = { | 5726 var h = { |
| 5692 "content-type" : "application/json; charset=utf-8", | 5727 "content-type" : "application/json; charset=utf-8", |
| 5693 }; | 5728 }; |
| 5694 var resp = convert.JSON.encode(buildParentsListResponse()); | 5729 var resp = convert.JSON.encode(buildParentsListResponse()); |
| 5695 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5730 return new async.Future.value(stringResponse(200, h, resp)); |
| 5696 }), true); | 5731 }), true); |
| 5697 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { | 5732 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { |
| 5698 checkParentsListResponse(response); | 5733 checkParentsListResponse(response); |
| 5699 }))); | 5734 }))); |
| 5700 }); | 5735 }); |
| 5701 | 5736 |
| 5702 }); | 5737 }); |
| 5703 | 5738 |
| 5704 | 5739 |
| 5705 unittest.group("resource-RasterCollectionsPermissionsResourceApi", () { | 5740 unittest.group("resource-RasterCollectionsPermissionsResourceApi", () { |
| 5706 unittest.test("method--batchDelete", () { | 5741 unittest.test("method--batchDelete", () { |
| 5707 | 5742 |
| 5708 var mock = new common_test.HttpServerMock(); | 5743 var mock = new HttpServerMock(); |
| 5709 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; | 5744 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; |
| 5710 var arg_request = buildPermissionsBatchDeleteRequest(); | 5745 var arg_request = buildPermissionsBatchDeleteRequest(); |
| 5711 var arg_id = "foo"; | 5746 var arg_id = "foo"; |
| 5712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5713 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); | 5748 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); |
| 5714 checkPermissionsBatchDeleteRequest(obj); | 5749 checkPermissionsBatchDeleteRequest(obj); |
| 5715 | 5750 |
| 5716 var path = (req.url).path; | 5751 var path = (req.url).path; |
| 5717 var pathOffset = 0; | 5752 var pathOffset = 0; |
| 5718 var index; | 5753 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5746 var keyvalue = part.split("="); | 5781 var keyvalue = part.split("="); |
| 5747 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5782 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5748 } | 5783 } |
| 5749 } | 5784 } |
| 5750 | 5785 |
| 5751 | 5786 |
| 5752 var h = { | 5787 var h = { |
| 5753 "content-type" : "application/json; charset=utf-8", | 5788 "content-type" : "application/json; charset=utf-8", |
| 5754 }; | 5789 }; |
| 5755 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); | 5790 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); |
| 5756 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5791 return new async.Future.value(stringResponse(200, h, resp)); |
| 5757 }), true); | 5792 }), true); |
| 5758 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { | 5793 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { |
| 5759 checkPermissionsBatchDeleteResponse(response); | 5794 checkPermissionsBatchDeleteResponse(response); |
| 5760 }))); | 5795 }))); |
| 5761 }); | 5796 }); |
| 5762 | 5797 |
| 5763 unittest.test("method--batchUpdate", () { | 5798 unittest.test("method--batchUpdate", () { |
| 5764 | 5799 |
| 5765 var mock = new common_test.HttpServerMock(); | 5800 var mock = new HttpServerMock(); |
| 5766 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; | 5801 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; |
| 5767 var arg_request = buildPermissionsBatchUpdateRequest(); | 5802 var arg_request = buildPermissionsBatchUpdateRequest(); |
| 5768 var arg_id = "foo"; | 5803 var arg_id = "foo"; |
| 5769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5804 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5770 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); | 5805 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); |
| 5771 checkPermissionsBatchUpdateRequest(obj); | 5806 checkPermissionsBatchUpdateRequest(obj); |
| 5772 | 5807 |
| 5773 var path = (req.url).path; | 5808 var path = (req.url).path; |
| 5774 var pathOffset = 0; | 5809 var pathOffset = 0; |
| 5775 var index; | 5810 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5803 var keyvalue = part.split("="); | 5838 var keyvalue = part.split("="); |
| 5804 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5839 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5805 } | 5840 } |
| 5806 } | 5841 } |
| 5807 | 5842 |
| 5808 | 5843 |
| 5809 var h = { | 5844 var h = { |
| 5810 "content-type" : "application/json; charset=utf-8", | 5845 "content-type" : "application/json; charset=utf-8", |
| 5811 }; | 5846 }; |
| 5812 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); | 5847 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); |
| 5813 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5848 return new async.Future.value(stringResponse(200, h, resp)); |
| 5814 }), true); | 5849 }), true); |
| 5815 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { | 5850 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { |
| 5816 checkPermissionsBatchUpdateResponse(response); | 5851 checkPermissionsBatchUpdateResponse(response); |
| 5817 }))); | 5852 }))); |
| 5818 }); | 5853 }); |
| 5819 | 5854 |
| 5820 unittest.test("method--list", () { | 5855 unittest.test("method--list", () { |
| 5821 | 5856 |
| 5822 var mock = new common_test.HttpServerMock(); | 5857 var mock = new HttpServerMock(); |
| 5823 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; | 5858 api.RasterCollectionsPermissionsResourceApi res = new api.MapsengineApi(mo
ck).rasterCollections.permissions; |
| 5824 var arg_id = "foo"; | 5859 var arg_id = "foo"; |
| 5825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5860 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5826 var path = (req.url).path; | 5861 var path = (req.url).path; |
| 5827 var pathOffset = 0; | 5862 var pathOffset = 0; |
| 5828 var index; | 5863 var index; |
| 5829 var subPart; | 5864 var subPart; |
| 5830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5831 pathOffset += 1; | 5866 pathOffset += 1; |
| 5832 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 5867 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5856 var keyvalue = part.split("="); | 5891 var keyvalue = part.split("="); |
| 5857 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5892 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5858 } | 5893 } |
| 5859 } | 5894 } |
| 5860 | 5895 |
| 5861 | 5896 |
| 5862 var h = { | 5897 var h = { |
| 5863 "content-type" : "application/json; charset=utf-8", | 5898 "content-type" : "application/json; charset=utf-8", |
| 5864 }; | 5899 }; |
| 5865 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 5900 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 5866 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5901 return new async.Future.value(stringResponse(200, h, resp)); |
| 5867 }), true); | 5902 }), true); |
| 5868 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 5903 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 5869 checkPermissionsListResponse(response); | 5904 checkPermissionsListResponse(response); |
| 5870 }))); | 5905 }))); |
| 5871 }); | 5906 }); |
| 5872 | 5907 |
| 5873 }); | 5908 }); |
| 5874 | 5909 |
| 5875 | 5910 |
| 5876 unittest.group("resource-RasterCollectionsRastersResourceApi", () { | 5911 unittest.group("resource-RasterCollectionsRastersResourceApi", () { |
| 5877 unittest.test("method--batchDelete", () { | 5912 unittest.test("method--batchDelete", () { |
| 5878 | 5913 |
| 5879 var mock = new common_test.HttpServerMock(); | 5914 var mock = new HttpServerMock(); |
| 5880 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; | 5915 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; |
| 5881 var arg_request = buildRasterCollectionsRasterBatchDeleteRequest(); | 5916 var arg_request = buildRasterCollectionsRasterBatchDeleteRequest(); |
| 5882 var arg_id = "foo"; | 5917 var arg_id = "foo"; |
| 5883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5918 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5884 var obj = new api.RasterCollectionsRasterBatchDeleteRequest.fromJson(jso
n); | 5919 var obj = new api.RasterCollectionsRasterBatchDeleteRequest.fromJson(jso
n); |
| 5885 checkRasterCollectionsRasterBatchDeleteRequest(obj); | 5920 checkRasterCollectionsRasterBatchDeleteRequest(obj); |
| 5886 | 5921 |
| 5887 var path = (req.url).path; | 5922 var path = (req.url).path; |
| 5888 var pathOffset = 0; | 5923 var pathOffset = 0; |
| 5889 var index; | 5924 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5917 var keyvalue = part.split("="); | 5952 var keyvalue = part.split("="); |
| 5918 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5953 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5919 } | 5954 } |
| 5920 } | 5955 } |
| 5921 | 5956 |
| 5922 | 5957 |
| 5923 var h = { | 5958 var h = { |
| 5924 "content-type" : "application/json; charset=utf-8", | 5959 "content-type" : "application/json; charset=utf-8", |
| 5925 }; | 5960 }; |
| 5926 var resp = convert.JSON.encode(buildRasterCollectionsRastersBatchDeleteR
esponse()); | 5961 var resp = convert.JSON.encode(buildRasterCollectionsRastersBatchDeleteR
esponse()); |
| 5927 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5962 return new async.Future.value(stringResponse(200, h, resp)); |
| 5928 }), true); | 5963 }), true); |
| 5929 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Raste
rCollectionsRastersBatchDeleteResponse response) { | 5964 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Raste
rCollectionsRastersBatchDeleteResponse response) { |
| 5930 checkRasterCollectionsRastersBatchDeleteResponse(response); | 5965 checkRasterCollectionsRastersBatchDeleteResponse(response); |
| 5931 }))); | 5966 }))); |
| 5932 }); | 5967 }); |
| 5933 | 5968 |
| 5934 unittest.test("method--batchInsert", () { | 5969 unittest.test("method--batchInsert", () { |
| 5935 | 5970 |
| 5936 var mock = new common_test.HttpServerMock(); | 5971 var mock = new HttpServerMock(); |
| 5937 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; | 5972 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; |
| 5938 var arg_request = buildRasterCollectionsRastersBatchInsertRequest(); | 5973 var arg_request = buildRasterCollectionsRastersBatchInsertRequest(); |
| 5939 var arg_id = "foo"; | 5974 var arg_id = "foo"; |
| 5940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5975 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5941 var obj = new api.RasterCollectionsRastersBatchInsertRequest.fromJson(js
on); | 5976 var obj = new api.RasterCollectionsRastersBatchInsertRequest.fromJson(js
on); |
| 5942 checkRasterCollectionsRastersBatchInsertRequest(obj); | 5977 checkRasterCollectionsRastersBatchInsertRequest(obj); |
| 5943 | 5978 |
| 5944 var path = (req.url).path; | 5979 var path = (req.url).path; |
| 5945 var pathOffset = 0; | 5980 var pathOffset = 0; |
| 5946 var index; | 5981 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5974 var keyvalue = part.split("="); | 6009 var keyvalue = part.split("="); |
| 5975 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6010 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5976 } | 6011 } |
| 5977 } | 6012 } |
| 5978 | 6013 |
| 5979 | 6014 |
| 5980 var h = { | 6015 var h = { |
| 5981 "content-type" : "application/json; charset=utf-8", | 6016 "content-type" : "application/json; charset=utf-8", |
| 5982 }; | 6017 }; |
| 5983 var resp = convert.JSON.encode(buildRasterCollectionsRastersBatchInsertR
esponse()); | 6018 var resp = convert.JSON.encode(buildRasterCollectionsRastersBatchInsertR
esponse()); |
| 5984 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6019 return new async.Future.value(stringResponse(200, h, resp)); |
| 5985 }), true); | 6020 }), true); |
| 5986 res.batchInsert(arg_request, arg_id).then(unittest.expectAsync(((api.Raste
rCollectionsRastersBatchInsertResponse response) { | 6021 res.batchInsert(arg_request, arg_id).then(unittest.expectAsync(((api.Raste
rCollectionsRastersBatchInsertResponse response) { |
| 5987 checkRasterCollectionsRastersBatchInsertResponse(response); | 6022 checkRasterCollectionsRastersBatchInsertResponse(response); |
| 5988 }))); | 6023 }))); |
| 5989 }); | 6024 }); |
| 5990 | 6025 |
| 5991 unittest.test("method--list", () { | 6026 unittest.test("method--list", () { |
| 5992 | 6027 |
| 5993 var mock = new common_test.HttpServerMock(); | 6028 var mock = new HttpServerMock(); |
| 5994 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; | 6029 api.RasterCollectionsRastersResourceApi res = new api.MapsengineApi(mock).
rasterCollections.rasters; |
| 5995 var arg_id = "foo"; | 6030 var arg_id = "foo"; |
| 5996 var arg_bbox = "foo"; | 6031 var arg_bbox = "foo"; |
| 5997 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6032 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5998 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6033 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 5999 var arg_creatorEmail = "foo"; | 6034 var arg_creatorEmail = "foo"; |
| 6000 var arg_maxResults = 42; | 6035 var arg_maxResults = 42; |
| 6001 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6036 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6002 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6037 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6003 var arg_pageToken = "foo"; | 6038 var arg_pageToken = "foo"; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6049 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6084 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6050 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 6085 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 6051 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 6086 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 6052 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 6087 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 6053 | 6088 |
| 6054 | 6089 |
| 6055 var h = { | 6090 var h = { |
| 6056 "content-type" : "application/json; charset=utf-8", | 6091 "content-type" : "application/json; charset=utf-8", |
| 6057 }; | 6092 }; |
| 6058 var resp = convert.JSON.encode(buildRasterCollectionsRastersListResponse
()); | 6093 var resp = convert.JSON.encode(buildRasterCollectionsRastersListResponse
()); |
| 6059 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6094 return new async.Future.value(stringResponse(200, h, resp)); |
| 6060 }), true); | 6095 }), true); |
| 6061 res.list(arg_id, bbox: arg_bbox, createdAfter: arg_createdAfter, createdBe
fore: arg_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResu
lts, modifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageT
oken: arg_pageToken, role: arg_role, search: arg_search, tags: arg_tags).then(un
ittest.expectAsync(((api.RasterCollectionsRastersListResponse response) { | 6096 res.list(arg_id, bbox: arg_bbox, createdAfter: arg_createdAfter, createdBe
fore: arg_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResu
lts, modifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageT
oken: arg_pageToken, role: arg_role, search: arg_search, tags: arg_tags).then(un
ittest.expectAsync(((api.RasterCollectionsRastersListResponse response) { |
| 6062 checkRasterCollectionsRastersListResponse(response); | 6097 checkRasterCollectionsRastersListResponse(response); |
| 6063 }))); | 6098 }))); |
| 6064 }); | 6099 }); |
| 6065 | 6100 |
| 6066 }); | 6101 }); |
| 6067 | 6102 |
| 6068 | 6103 |
| 6069 unittest.group("resource-RastersResourceApi", () { | 6104 unittest.group("resource-RastersResourceApi", () { |
| 6070 unittest.test("method--delete", () { | 6105 unittest.test("method--delete", () { |
| 6071 | 6106 |
| 6072 var mock = new common_test.HttpServerMock(); | 6107 var mock = new HttpServerMock(); |
| 6073 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6108 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6074 var arg_id = "foo"; | 6109 var arg_id = "foo"; |
| 6075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6110 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6076 var path = (req.url).path; | 6111 var path = (req.url).path; |
| 6077 var pathOffset = 0; | 6112 var pathOffset = 0; |
| 6078 var index; | 6113 var index; |
| 6079 var subPart; | 6114 var subPart; |
| 6080 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6115 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6081 pathOffset += 1; | 6116 pathOffset += 1; |
| 6082 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 6117 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6102 var keyvalue = part.split("="); | 6137 var keyvalue = part.split("="); |
| 6103 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6138 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6104 } | 6139 } |
| 6105 } | 6140 } |
| 6106 | 6141 |
| 6107 | 6142 |
| 6108 var h = { | 6143 var h = { |
| 6109 "content-type" : "application/json; charset=utf-8", | 6144 "content-type" : "application/json; charset=utf-8", |
| 6110 }; | 6145 }; |
| 6111 var resp = ""; | 6146 var resp = ""; |
| 6112 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6147 return new async.Future.value(stringResponse(200, h, resp)); |
| 6113 }), true); | 6148 }), true); |
| 6114 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 6149 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
| 6115 }); | 6150 }); |
| 6116 | 6151 |
| 6117 unittest.test("method--get", () { | 6152 unittest.test("method--get", () { |
| 6118 | 6153 |
| 6119 var mock = new common_test.HttpServerMock(); | 6154 var mock = new HttpServerMock(); |
| 6120 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6155 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6121 var arg_id = "foo"; | 6156 var arg_id = "foo"; |
| 6122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6157 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6123 var path = (req.url).path; | 6158 var path = (req.url).path; |
| 6124 var pathOffset = 0; | 6159 var pathOffset = 0; |
| 6125 var index; | 6160 var index; |
| 6126 var subPart; | 6161 var subPart; |
| 6127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6162 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6128 pathOffset += 1; | 6163 pathOffset += 1; |
| 6129 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 6164 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6149 var keyvalue = part.split("="); | 6184 var keyvalue = part.split("="); |
| 6150 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6185 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6151 } | 6186 } |
| 6152 } | 6187 } |
| 6153 | 6188 |
| 6154 | 6189 |
| 6155 var h = { | 6190 var h = { |
| 6156 "content-type" : "application/json; charset=utf-8", | 6191 "content-type" : "application/json; charset=utf-8", |
| 6157 }; | 6192 }; |
| 6158 var resp = convert.JSON.encode(buildRaster()); | 6193 var resp = convert.JSON.encode(buildRaster()); |
| 6159 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6194 return new async.Future.value(stringResponse(200, h, resp)); |
| 6160 }), true); | 6195 }), true); |
| 6161 res.get(arg_id).then(unittest.expectAsync(((api.Raster response) { | 6196 res.get(arg_id).then(unittest.expectAsync(((api.Raster response) { |
| 6162 checkRaster(response); | 6197 checkRaster(response); |
| 6163 }))); | 6198 }))); |
| 6164 }); | 6199 }); |
| 6165 | 6200 |
| 6166 unittest.test("method--list", () { | 6201 unittest.test("method--list", () { |
| 6167 | 6202 |
| 6168 var mock = new common_test.HttpServerMock(); | 6203 var mock = new HttpServerMock(); |
| 6169 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6204 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6170 var arg_projectId = "foo"; | 6205 var arg_projectId = "foo"; |
| 6171 var arg_bbox = "foo"; | 6206 var arg_bbox = "foo"; |
| 6172 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6207 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6173 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6208 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6174 var arg_creatorEmail = "foo"; | 6209 var arg_creatorEmail = "foo"; |
| 6175 var arg_maxResults = 42; | 6210 var arg_maxResults = 42; |
| 6176 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6211 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6177 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6212 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6178 var arg_pageToken = "foo"; | 6213 var arg_pageToken = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6220 unittest.expect(queryMap["processingStatus"].first, unittest.equals(arg_
processingStatus)); | 6255 unittest.expect(queryMap["processingStatus"].first, unittest.equals(arg_
processingStatus)); |
| 6221 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 6256 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 6222 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 6257 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 6223 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 6258 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 6224 | 6259 |
| 6225 | 6260 |
| 6226 var h = { | 6261 var h = { |
| 6227 "content-type" : "application/json; charset=utf-8", | 6262 "content-type" : "application/json; charset=utf-8", |
| 6228 }; | 6263 }; |
| 6229 var resp = convert.JSON.encode(buildRastersListResponse()); | 6264 var resp = convert.JSON.encode(buildRastersListResponse()); |
| 6230 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6265 return new async.Future.value(stringResponse(200, h, resp)); |
| 6231 }), true); | 6266 }), true); |
| 6232 res.list(arg_projectId, bbox: arg_bbox, createdAfter: arg_createdAfter, cr
eatedBefore: arg_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_
maxResults, modifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore
, pageToken: arg_pageToken, processingStatus: arg_processingStatus, role: arg_ro
le, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((api.RastersL
istResponse response) { | 6267 res.list(arg_projectId, bbox: arg_bbox, createdAfter: arg_createdAfter, cr
eatedBefore: arg_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_
maxResults, modifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore
, pageToken: arg_pageToken, processingStatus: arg_processingStatus, role: arg_ro
le, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((api.RastersL
istResponse response) { |
| 6233 checkRastersListResponse(response); | 6268 checkRastersListResponse(response); |
| 6234 }))); | 6269 }))); |
| 6235 }); | 6270 }); |
| 6236 | 6271 |
| 6237 unittest.test("method--patch", () { | 6272 unittest.test("method--patch", () { |
| 6238 | 6273 |
| 6239 var mock = new common_test.HttpServerMock(); | 6274 var mock = new HttpServerMock(); |
| 6240 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6275 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6241 var arg_request = buildRaster(); | 6276 var arg_request = buildRaster(); |
| 6242 var arg_id = "foo"; | 6277 var arg_id = "foo"; |
| 6243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6244 var obj = new api.Raster.fromJson(json); | 6279 var obj = new api.Raster.fromJson(json); |
| 6245 checkRaster(obj); | 6280 checkRaster(obj); |
| 6246 | 6281 |
| 6247 var path = (req.url).path; | 6282 var path = (req.url).path; |
| 6248 var pathOffset = 0; | 6283 var pathOffset = 0; |
| 6249 var index; | 6284 var index; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6273 var keyvalue = part.split("="); | 6308 var keyvalue = part.split("="); |
| 6274 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6275 } | 6310 } |
| 6276 } | 6311 } |
| 6277 | 6312 |
| 6278 | 6313 |
| 6279 var h = { | 6314 var h = { |
| 6280 "content-type" : "application/json; charset=utf-8", | 6315 "content-type" : "application/json; charset=utf-8", |
| 6281 }; | 6316 }; |
| 6282 var resp = ""; | 6317 var resp = ""; |
| 6283 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6318 return new async.Future.value(stringResponse(200, h, resp)); |
| 6284 }), true); | 6319 }), true); |
| 6285 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 6320 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 6286 }); | 6321 }); |
| 6287 | 6322 |
| 6288 unittest.test("method--process", () { | 6323 unittest.test("method--process", () { |
| 6289 | 6324 |
| 6290 var mock = new common_test.HttpServerMock(); | 6325 var mock = new HttpServerMock(); |
| 6291 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6326 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6292 var arg_id = "foo"; | 6327 var arg_id = "foo"; |
| 6293 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6328 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6294 var path = (req.url).path; | 6329 var path = (req.url).path; |
| 6295 var pathOffset = 0; | 6330 var pathOffset = 0; |
| 6296 var index; | 6331 var index; |
| 6297 var subPart; | 6332 var subPart; |
| 6298 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6333 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6299 pathOffset += 1; | 6334 pathOffset += 1; |
| 6300 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 6335 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6324 var keyvalue = part.split("="); | 6359 var keyvalue = part.split("="); |
| 6325 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6360 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6326 } | 6361 } |
| 6327 } | 6362 } |
| 6328 | 6363 |
| 6329 | 6364 |
| 6330 var h = { | 6365 var h = { |
| 6331 "content-type" : "application/json; charset=utf-8", | 6366 "content-type" : "application/json; charset=utf-8", |
| 6332 }; | 6367 }; |
| 6333 var resp = convert.JSON.encode(buildProcessResponse()); | 6368 var resp = convert.JSON.encode(buildProcessResponse()); |
| 6334 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6369 return new async.Future.value(stringResponse(200, h, resp)); |
| 6335 }), true); | 6370 }), true); |
| 6336 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { | 6371 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { |
| 6337 checkProcessResponse(response); | 6372 checkProcessResponse(response); |
| 6338 }))); | 6373 }))); |
| 6339 }); | 6374 }); |
| 6340 | 6375 |
| 6341 unittest.test("method--upload", () { | 6376 unittest.test("method--upload", () { |
| 6342 | 6377 |
| 6343 var mock = new common_test.HttpServerMock(); | 6378 var mock = new HttpServerMock(); |
| 6344 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; | 6379 api.RastersResourceApi res = new api.MapsengineApi(mock).rasters; |
| 6345 var arg_request = buildRaster(); | 6380 var arg_request = buildRaster(); |
| 6346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6347 var obj = new api.Raster.fromJson(json); | 6382 var obj = new api.Raster.fromJson(json); |
| 6348 checkRaster(obj); | 6383 checkRaster(obj); |
| 6349 | 6384 |
| 6350 var path = (req.url).path; | 6385 var path = (req.url).path; |
| 6351 var pathOffset = 0; | 6386 var pathOffset = 0; |
| 6352 var index; | 6387 var index; |
| 6353 var subPart; | 6388 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6373 var keyvalue = part.split("="); | 6408 var keyvalue = part.split("="); |
| 6374 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6409 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6375 } | 6410 } |
| 6376 } | 6411 } |
| 6377 | 6412 |
| 6378 | 6413 |
| 6379 var h = { | 6414 var h = { |
| 6380 "content-type" : "application/json; charset=utf-8", | 6415 "content-type" : "application/json; charset=utf-8", |
| 6381 }; | 6416 }; |
| 6382 var resp = convert.JSON.encode(buildRaster()); | 6417 var resp = convert.JSON.encode(buildRaster()); |
| 6383 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6418 return new async.Future.value(stringResponse(200, h, resp)); |
| 6384 }), true); | 6419 }), true); |
| 6385 res.upload(arg_request).then(unittest.expectAsync(((api.Raster response) { | 6420 res.upload(arg_request).then(unittest.expectAsync(((api.Raster response) { |
| 6386 checkRaster(response); | 6421 checkRaster(response); |
| 6387 }))); | 6422 }))); |
| 6388 }); | 6423 }); |
| 6389 | 6424 |
| 6390 }); | 6425 }); |
| 6391 | 6426 |
| 6392 | 6427 |
| 6393 unittest.group("resource-RastersFilesResourceApi", () { | 6428 unittest.group("resource-RastersFilesResourceApi", () { |
| 6394 unittest.test("method--insert", () { | 6429 unittest.test("method--insert", () { |
| 6395 // TODO: Implement tests for media upload; | 6430 // TODO: Implement tests for media upload; |
| 6396 // TODO: Implement tests for media download; | 6431 // TODO: Implement tests for media download; |
| 6397 | 6432 |
| 6398 var mock = new common_test.HttpServerMock(); | 6433 var mock = new HttpServerMock(); |
| 6399 api.RastersFilesResourceApi res = new api.MapsengineApi(mock).rasters.file
s; | 6434 api.RastersFilesResourceApi res = new api.MapsengineApi(mock).rasters.file
s; |
| 6400 var arg_id = "foo"; | 6435 var arg_id = "foo"; |
| 6401 var arg_filename = "foo"; | 6436 var arg_filename = "foo"; |
| 6402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6403 var path = (req.url).path; | 6438 var path = (req.url).path; |
| 6404 var pathOffset = 0; | 6439 var pathOffset = 0; |
| 6405 var index; | 6440 var index; |
| 6406 var subPart; | 6441 var subPart; |
| 6407 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6442 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6408 pathOffset += 1; | 6443 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6434 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6469 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6435 } | 6470 } |
| 6436 } | 6471 } |
| 6437 unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename
)); | 6472 unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename
)); |
| 6438 | 6473 |
| 6439 | 6474 |
| 6440 var h = { | 6475 var h = { |
| 6441 "content-type" : "application/json; charset=utf-8", | 6476 "content-type" : "application/json; charset=utf-8", |
| 6442 }; | 6477 }; |
| 6443 var resp = ""; | 6478 var resp = ""; |
| 6444 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6479 return new async.Future.value(stringResponse(200, h, resp)); |
| 6445 }), true); | 6480 }), true); |
| 6446 res.insert(arg_id, arg_filename).then(unittest.expectAsync((_) {})); | 6481 res.insert(arg_id, arg_filename).then(unittest.expectAsync((_) {})); |
| 6447 }); | 6482 }); |
| 6448 | 6483 |
| 6449 }); | 6484 }); |
| 6450 | 6485 |
| 6451 | 6486 |
| 6452 unittest.group("resource-RastersParentsResourceApi", () { | 6487 unittest.group("resource-RastersParentsResourceApi", () { |
| 6453 unittest.test("method--list", () { | 6488 unittest.test("method--list", () { |
| 6454 | 6489 |
| 6455 var mock = new common_test.HttpServerMock(); | 6490 var mock = new HttpServerMock(); |
| 6456 api.RastersParentsResourceApi res = new api.MapsengineApi(mock).rasters.pa
rents; | 6491 api.RastersParentsResourceApi res = new api.MapsengineApi(mock).rasters.pa
rents; |
| 6457 var arg_id = "foo"; | 6492 var arg_id = "foo"; |
| 6458 var arg_maxResults = 42; | 6493 var arg_maxResults = 42; |
| 6459 var arg_pageToken = "foo"; | 6494 var arg_pageToken = "foo"; |
| 6460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6495 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6461 var path = (req.url).path; | 6496 var path = (req.url).path; |
| 6462 var pathOffset = 0; | 6497 var pathOffset = 0; |
| 6463 var index; | 6498 var index; |
| 6464 var subPart; | 6499 var subPart; |
| 6465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6500 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6493 } | 6528 } |
| 6494 } | 6529 } |
| 6495 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6530 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6496 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6531 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6497 | 6532 |
| 6498 | 6533 |
| 6499 var h = { | 6534 var h = { |
| 6500 "content-type" : "application/json; charset=utf-8", | 6535 "content-type" : "application/json; charset=utf-8", |
| 6501 }; | 6536 }; |
| 6502 var resp = convert.JSON.encode(buildParentsListResponse()); | 6537 var resp = convert.JSON.encode(buildParentsListResponse()); |
| 6503 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6538 return new async.Future.value(stringResponse(200, h, resp)); |
| 6504 }), true); | 6539 }), true); |
| 6505 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { | 6540 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { |
| 6506 checkParentsListResponse(response); | 6541 checkParentsListResponse(response); |
| 6507 }))); | 6542 }))); |
| 6508 }); | 6543 }); |
| 6509 | 6544 |
| 6510 }); | 6545 }); |
| 6511 | 6546 |
| 6512 | 6547 |
| 6513 unittest.group("resource-RastersPermissionsResourceApi", () { | 6548 unittest.group("resource-RastersPermissionsResourceApi", () { |
| 6514 unittest.test("method--batchDelete", () { | 6549 unittest.test("method--batchDelete", () { |
| 6515 | 6550 |
| 6516 var mock = new common_test.HttpServerMock(); | 6551 var mock = new HttpServerMock(); |
| 6517 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; | 6552 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; |
| 6518 var arg_request = buildPermissionsBatchDeleteRequest(); | 6553 var arg_request = buildPermissionsBatchDeleteRequest(); |
| 6519 var arg_id = "foo"; | 6554 var arg_id = "foo"; |
| 6520 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6555 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6521 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); | 6556 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); |
| 6522 checkPermissionsBatchDeleteRequest(obj); | 6557 checkPermissionsBatchDeleteRequest(obj); |
| 6523 | 6558 |
| 6524 var path = (req.url).path; | 6559 var path = (req.url).path; |
| 6525 var pathOffset = 0; | 6560 var pathOffset = 0; |
| 6526 var index; | 6561 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6554 var keyvalue = part.split("="); | 6589 var keyvalue = part.split("="); |
| 6555 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6590 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6556 } | 6591 } |
| 6557 } | 6592 } |
| 6558 | 6593 |
| 6559 | 6594 |
| 6560 var h = { | 6595 var h = { |
| 6561 "content-type" : "application/json; charset=utf-8", | 6596 "content-type" : "application/json; charset=utf-8", |
| 6562 }; | 6597 }; |
| 6563 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); | 6598 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); |
| 6564 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6599 return new async.Future.value(stringResponse(200, h, resp)); |
| 6565 }), true); | 6600 }), true); |
| 6566 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { | 6601 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { |
| 6567 checkPermissionsBatchDeleteResponse(response); | 6602 checkPermissionsBatchDeleteResponse(response); |
| 6568 }))); | 6603 }))); |
| 6569 }); | 6604 }); |
| 6570 | 6605 |
| 6571 unittest.test("method--batchUpdate", () { | 6606 unittest.test("method--batchUpdate", () { |
| 6572 | 6607 |
| 6573 var mock = new common_test.HttpServerMock(); | 6608 var mock = new HttpServerMock(); |
| 6574 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; | 6609 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; |
| 6575 var arg_request = buildPermissionsBatchUpdateRequest(); | 6610 var arg_request = buildPermissionsBatchUpdateRequest(); |
| 6576 var arg_id = "foo"; | 6611 var arg_id = "foo"; |
| 6577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6612 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6578 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); | 6613 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); |
| 6579 checkPermissionsBatchUpdateRequest(obj); | 6614 checkPermissionsBatchUpdateRequest(obj); |
| 6580 | 6615 |
| 6581 var path = (req.url).path; | 6616 var path = (req.url).path; |
| 6582 var pathOffset = 0; | 6617 var pathOffset = 0; |
| 6583 var index; | 6618 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6611 var keyvalue = part.split("="); | 6646 var keyvalue = part.split("="); |
| 6612 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6613 } | 6648 } |
| 6614 } | 6649 } |
| 6615 | 6650 |
| 6616 | 6651 |
| 6617 var h = { | 6652 var h = { |
| 6618 "content-type" : "application/json; charset=utf-8", | 6653 "content-type" : "application/json; charset=utf-8", |
| 6619 }; | 6654 }; |
| 6620 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); | 6655 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); |
| 6621 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6656 return new async.Future.value(stringResponse(200, h, resp)); |
| 6622 }), true); | 6657 }), true); |
| 6623 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { | 6658 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { |
| 6624 checkPermissionsBatchUpdateResponse(response); | 6659 checkPermissionsBatchUpdateResponse(response); |
| 6625 }))); | 6660 }))); |
| 6626 }); | 6661 }); |
| 6627 | 6662 |
| 6628 unittest.test("method--list", () { | 6663 unittest.test("method--list", () { |
| 6629 | 6664 |
| 6630 var mock = new common_test.HttpServerMock(); | 6665 var mock = new HttpServerMock(); |
| 6631 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; | 6666 api.RastersPermissionsResourceApi res = new api.MapsengineApi(mock).raster
s.permissions; |
| 6632 var arg_id = "foo"; | 6667 var arg_id = "foo"; |
| 6633 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6668 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6634 var path = (req.url).path; | 6669 var path = (req.url).path; |
| 6635 var pathOffset = 0; | 6670 var pathOffset = 0; |
| 6636 var index; | 6671 var index; |
| 6637 var subPart; | 6672 var subPart; |
| 6638 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6673 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6639 pathOffset += 1; | 6674 pathOffset += 1; |
| 6640 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 6675 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6664 var keyvalue = part.split("="); | 6699 var keyvalue = part.split("="); |
| 6665 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6700 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6666 } | 6701 } |
| 6667 } | 6702 } |
| 6668 | 6703 |
| 6669 | 6704 |
| 6670 var h = { | 6705 var h = { |
| 6671 "content-type" : "application/json; charset=utf-8", | 6706 "content-type" : "application/json; charset=utf-8", |
| 6672 }; | 6707 }; |
| 6673 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 6708 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 6674 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6709 return new async.Future.value(stringResponse(200, h, resp)); |
| 6675 }), true); | 6710 }), true); |
| 6676 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 6711 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 6677 checkPermissionsListResponse(response); | 6712 checkPermissionsListResponse(response); |
| 6678 }))); | 6713 }))); |
| 6679 }); | 6714 }); |
| 6680 | 6715 |
| 6681 }); | 6716 }); |
| 6682 | 6717 |
| 6683 | 6718 |
| 6684 unittest.group("resource-TablesResourceApi", () { | 6719 unittest.group("resource-TablesResourceApi", () { |
| 6685 unittest.test("method--create", () { | 6720 unittest.test("method--create", () { |
| 6686 | 6721 |
| 6687 var mock = new common_test.HttpServerMock(); | 6722 var mock = new HttpServerMock(); |
| 6688 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6723 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6689 var arg_request = buildTable(); | 6724 var arg_request = buildTable(); |
| 6690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6725 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6691 var obj = new api.Table.fromJson(json); | 6726 var obj = new api.Table.fromJson(json); |
| 6692 checkTable(obj); | 6727 checkTable(obj); |
| 6693 | 6728 |
| 6694 var path = (req.url).path; | 6729 var path = (req.url).path; |
| 6695 var pathOffset = 0; | 6730 var pathOffset = 0; |
| 6696 var index; | 6731 var index; |
| 6697 var subPart; | 6732 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6717 var keyvalue = part.split("="); | 6752 var keyvalue = part.split("="); |
| 6718 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6753 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6719 } | 6754 } |
| 6720 } | 6755 } |
| 6721 | 6756 |
| 6722 | 6757 |
| 6723 var h = { | 6758 var h = { |
| 6724 "content-type" : "application/json; charset=utf-8", | 6759 "content-type" : "application/json; charset=utf-8", |
| 6725 }; | 6760 }; |
| 6726 var resp = convert.JSON.encode(buildTable()); | 6761 var resp = convert.JSON.encode(buildTable()); |
| 6727 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6762 return new async.Future.value(stringResponse(200, h, resp)); |
| 6728 }), true); | 6763 }), true); |
| 6729 res.create(arg_request).then(unittest.expectAsync(((api.Table response) { | 6764 res.create(arg_request).then(unittest.expectAsync(((api.Table response) { |
| 6730 checkTable(response); | 6765 checkTable(response); |
| 6731 }))); | 6766 }))); |
| 6732 }); | 6767 }); |
| 6733 | 6768 |
| 6734 unittest.test("method--delete", () { | 6769 unittest.test("method--delete", () { |
| 6735 | 6770 |
| 6736 var mock = new common_test.HttpServerMock(); | 6771 var mock = new HttpServerMock(); |
| 6737 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6772 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6738 var arg_id = "foo"; | 6773 var arg_id = "foo"; |
| 6739 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6740 var path = (req.url).path; | 6775 var path = (req.url).path; |
| 6741 var pathOffset = 0; | 6776 var pathOffset = 0; |
| 6742 var index; | 6777 var index; |
| 6743 var subPart; | 6778 var subPart; |
| 6744 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6779 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6745 pathOffset += 1; | 6780 pathOffset += 1; |
| 6746 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 6781 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6766 var keyvalue = part.split("="); | 6801 var keyvalue = part.split("="); |
| 6767 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6802 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6768 } | 6803 } |
| 6769 } | 6804 } |
| 6770 | 6805 |
| 6771 | 6806 |
| 6772 var h = { | 6807 var h = { |
| 6773 "content-type" : "application/json; charset=utf-8", | 6808 "content-type" : "application/json; charset=utf-8", |
| 6774 }; | 6809 }; |
| 6775 var resp = ""; | 6810 var resp = ""; |
| 6776 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6811 return new async.Future.value(stringResponse(200, h, resp)); |
| 6777 }), true); | 6812 }), true); |
| 6778 res.delete(arg_id).then(unittest.expectAsync((_) {})); | 6813 res.delete(arg_id).then(unittest.expectAsync((_) {})); |
| 6779 }); | 6814 }); |
| 6780 | 6815 |
| 6781 unittest.test("method--get", () { | 6816 unittest.test("method--get", () { |
| 6782 | 6817 |
| 6783 var mock = new common_test.HttpServerMock(); | 6818 var mock = new HttpServerMock(); |
| 6784 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6819 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6785 var arg_id = "foo"; | 6820 var arg_id = "foo"; |
| 6786 var arg_version = "foo"; | 6821 var arg_version = "foo"; |
| 6787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6788 var path = (req.url).path; | 6823 var path = (req.url).path; |
| 6789 var pathOffset = 0; | 6824 var pathOffset = 0; |
| 6790 var index; | 6825 var index; |
| 6791 var subPart; | 6826 var subPart; |
| 6792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6793 pathOffset += 1; | 6828 pathOffset += 1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6815 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6850 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6816 } | 6851 } |
| 6817 } | 6852 } |
| 6818 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; | 6853 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; |
| 6819 | 6854 |
| 6820 | 6855 |
| 6821 var h = { | 6856 var h = { |
| 6822 "content-type" : "application/json; charset=utf-8", | 6857 "content-type" : "application/json; charset=utf-8", |
| 6823 }; | 6858 }; |
| 6824 var resp = convert.JSON.encode(buildTable()); | 6859 var resp = convert.JSON.encode(buildTable()); |
| 6825 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6860 return new async.Future.value(stringResponse(200, h, resp)); |
| 6826 }), true); | 6861 }), true); |
| 6827 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Tabl
e response) { | 6862 res.get(arg_id, version: arg_version).then(unittest.expectAsync(((api.Tabl
e response) { |
| 6828 checkTable(response); | 6863 checkTable(response); |
| 6829 }))); | 6864 }))); |
| 6830 }); | 6865 }); |
| 6831 | 6866 |
| 6832 unittest.test("method--list", () { | 6867 unittest.test("method--list", () { |
| 6833 | 6868 |
| 6834 var mock = new common_test.HttpServerMock(); | 6869 var mock = new HttpServerMock(); |
| 6835 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6870 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6836 var arg_bbox = "foo"; | 6871 var arg_bbox = "foo"; |
| 6837 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6872 var arg_createdAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6838 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6873 var arg_createdBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6839 var arg_creatorEmail = "foo"; | 6874 var arg_creatorEmail = "foo"; |
| 6840 var arg_maxResults = 42; | 6875 var arg_maxResults = 42; |
| 6841 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); | 6876 var arg_modifiedAfter = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6842 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); | 6877 var arg_modifiedBefore = core.DateTime.parse("2002-02-27T14:01:02"); |
| 6843 var arg_pageToken = "foo"; | 6878 var arg_pageToken = "foo"; |
| 6844 var arg_processingStatus = "foo"; | 6879 var arg_processingStatus = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6886 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 6921 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 6887 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); | 6922 unittest.expect(queryMap["role"].first, unittest.equals(arg_role)); |
| 6888 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); | 6923 unittest.expect(queryMap["search"].first, unittest.equals(arg_search)); |
| 6889 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); | 6924 unittest.expect(queryMap["tags"].first, unittest.equals(arg_tags)); |
| 6890 | 6925 |
| 6891 | 6926 |
| 6892 var h = { | 6927 var h = { |
| 6893 "content-type" : "application/json; charset=utf-8", | 6928 "content-type" : "application/json; charset=utf-8", |
| 6894 }; | 6929 }; |
| 6895 var resp = convert.JSON.encode(buildTablesListResponse()); | 6930 var resp = convert.JSON.encode(buildTablesListResponse()); |
| 6896 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6931 return new async.Future.value(stringResponse(200, h, resp)); |
| 6897 }), true); | 6932 }), true); |
| 6898 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.TablesListResponse response) { | 6933 res.list(bbox: arg_bbox, createdAfter: arg_createdAfter, createdBefore: ar
g_createdBefore, creatorEmail: arg_creatorEmail, maxResults: arg_maxResults, mod
ifiedAfter: arg_modifiedAfter, modifiedBefore: arg_modifiedBefore, pageToken: ar
g_pageToken, processingStatus: arg_processingStatus, projectId: arg_projectId, r
ole: arg_role, search: arg_search, tags: arg_tags).then(unittest.expectAsync(((a
pi.TablesListResponse response) { |
| 6899 checkTablesListResponse(response); | 6934 checkTablesListResponse(response); |
| 6900 }))); | 6935 }))); |
| 6901 }); | 6936 }); |
| 6902 | 6937 |
| 6903 unittest.test("method--patch", () { | 6938 unittest.test("method--patch", () { |
| 6904 | 6939 |
| 6905 var mock = new common_test.HttpServerMock(); | 6940 var mock = new HttpServerMock(); |
| 6906 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6941 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6907 var arg_request = buildTable(); | 6942 var arg_request = buildTable(); |
| 6908 var arg_id = "foo"; | 6943 var arg_id = "foo"; |
| 6909 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6944 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6910 var obj = new api.Table.fromJson(json); | 6945 var obj = new api.Table.fromJson(json); |
| 6911 checkTable(obj); | 6946 checkTable(obj); |
| 6912 | 6947 |
| 6913 var path = (req.url).path; | 6948 var path = (req.url).path; |
| 6914 var pathOffset = 0; | 6949 var pathOffset = 0; |
| 6915 var index; | 6950 var index; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6939 var keyvalue = part.split("="); | 6974 var keyvalue = part.split("="); |
| 6940 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6975 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6941 } | 6976 } |
| 6942 } | 6977 } |
| 6943 | 6978 |
| 6944 | 6979 |
| 6945 var h = { | 6980 var h = { |
| 6946 "content-type" : "application/json; charset=utf-8", | 6981 "content-type" : "application/json; charset=utf-8", |
| 6947 }; | 6982 }; |
| 6948 var resp = ""; | 6983 var resp = ""; |
| 6949 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6984 return new async.Future.value(stringResponse(200, h, resp)); |
| 6950 }), true); | 6985 }), true); |
| 6951 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 6986 res.patch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 6952 }); | 6987 }); |
| 6953 | 6988 |
| 6954 unittest.test("method--process", () { | 6989 unittest.test("method--process", () { |
| 6955 | 6990 |
| 6956 var mock = new common_test.HttpServerMock(); | 6991 var mock = new HttpServerMock(); |
| 6957 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 6992 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 6958 var arg_id = "foo"; | 6993 var arg_id = "foo"; |
| 6959 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6994 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6960 var path = (req.url).path; | 6995 var path = (req.url).path; |
| 6961 var pathOffset = 0; | 6996 var pathOffset = 0; |
| 6962 var index; | 6997 var index; |
| 6963 var subPart; | 6998 var subPart; |
| 6964 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6999 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6965 pathOffset += 1; | 7000 pathOffset += 1; |
| 6966 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 7001 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6990 var keyvalue = part.split("="); | 7025 var keyvalue = part.split("="); |
| 6991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7026 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6992 } | 7027 } |
| 6993 } | 7028 } |
| 6994 | 7029 |
| 6995 | 7030 |
| 6996 var h = { | 7031 var h = { |
| 6997 "content-type" : "application/json; charset=utf-8", | 7032 "content-type" : "application/json; charset=utf-8", |
| 6998 }; | 7033 }; |
| 6999 var resp = convert.JSON.encode(buildProcessResponse()); | 7034 var resp = convert.JSON.encode(buildProcessResponse()); |
| 7000 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7035 return new async.Future.value(stringResponse(200, h, resp)); |
| 7001 }), true); | 7036 }), true); |
| 7002 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { | 7037 res.process(arg_id).then(unittest.expectAsync(((api.ProcessResponse respon
se) { |
| 7003 checkProcessResponse(response); | 7038 checkProcessResponse(response); |
| 7004 }))); | 7039 }))); |
| 7005 }); | 7040 }); |
| 7006 | 7041 |
| 7007 unittest.test("method--upload", () { | 7042 unittest.test("method--upload", () { |
| 7008 | 7043 |
| 7009 var mock = new common_test.HttpServerMock(); | 7044 var mock = new HttpServerMock(); |
| 7010 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; | 7045 api.TablesResourceApi res = new api.MapsengineApi(mock).tables; |
| 7011 var arg_request = buildTable(); | 7046 var arg_request = buildTable(); |
| 7012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7013 var obj = new api.Table.fromJson(json); | 7048 var obj = new api.Table.fromJson(json); |
| 7014 checkTable(obj); | 7049 checkTable(obj); |
| 7015 | 7050 |
| 7016 var path = (req.url).path; | 7051 var path = (req.url).path; |
| 7017 var pathOffset = 0; | 7052 var pathOffset = 0; |
| 7018 var index; | 7053 var index; |
| 7019 var subPart; | 7054 var subPart; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7039 var keyvalue = part.split("="); | 7074 var keyvalue = part.split("="); |
| 7040 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7075 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7041 } | 7076 } |
| 7042 } | 7077 } |
| 7043 | 7078 |
| 7044 | 7079 |
| 7045 var h = { | 7080 var h = { |
| 7046 "content-type" : "application/json; charset=utf-8", | 7081 "content-type" : "application/json; charset=utf-8", |
| 7047 }; | 7082 }; |
| 7048 var resp = convert.JSON.encode(buildTable()); | 7083 var resp = convert.JSON.encode(buildTable()); |
| 7049 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7084 return new async.Future.value(stringResponse(200, h, resp)); |
| 7050 }), true); | 7085 }), true); |
| 7051 res.upload(arg_request).then(unittest.expectAsync(((api.Table response) { | 7086 res.upload(arg_request).then(unittest.expectAsync(((api.Table response) { |
| 7052 checkTable(response); | 7087 checkTable(response); |
| 7053 }))); | 7088 }))); |
| 7054 }); | 7089 }); |
| 7055 | 7090 |
| 7056 }); | 7091 }); |
| 7057 | 7092 |
| 7058 | 7093 |
| 7059 unittest.group("resource-TablesFeaturesResourceApi", () { | 7094 unittest.group("resource-TablesFeaturesResourceApi", () { |
| 7060 unittest.test("method--batchDelete", () { | 7095 unittest.test("method--batchDelete", () { |
| 7061 | 7096 |
| 7062 var mock = new common_test.HttpServerMock(); | 7097 var mock = new HttpServerMock(); |
| 7063 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; | 7098 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; |
| 7064 var arg_request = buildFeaturesBatchDeleteRequest(); | 7099 var arg_request = buildFeaturesBatchDeleteRequest(); |
| 7065 var arg_id = "foo"; | 7100 var arg_id = "foo"; |
| 7066 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7101 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7067 var obj = new api.FeaturesBatchDeleteRequest.fromJson(json); | 7102 var obj = new api.FeaturesBatchDeleteRequest.fromJson(json); |
| 7068 checkFeaturesBatchDeleteRequest(obj); | 7103 checkFeaturesBatchDeleteRequest(obj); |
| 7069 | 7104 |
| 7070 var path = (req.url).path; | 7105 var path = (req.url).path; |
| 7071 var pathOffset = 0; | 7106 var pathOffset = 0; |
| 7072 var index; | 7107 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7100 var keyvalue = part.split("="); | 7135 var keyvalue = part.split("="); |
| 7101 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7136 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7102 } | 7137 } |
| 7103 } | 7138 } |
| 7104 | 7139 |
| 7105 | 7140 |
| 7106 var h = { | 7141 var h = { |
| 7107 "content-type" : "application/json; charset=utf-8", | 7142 "content-type" : "application/json; charset=utf-8", |
| 7108 }; | 7143 }; |
| 7109 var resp = ""; | 7144 var resp = ""; |
| 7110 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7145 return new async.Future.value(stringResponse(200, h, resp)); |
| 7111 }), true); | 7146 }), true); |
| 7112 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 7147 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 7113 }); | 7148 }); |
| 7114 | 7149 |
| 7115 unittest.test("method--batchInsert", () { | 7150 unittest.test("method--batchInsert", () { |
| 7116 | 7151 |
| 7117 var mock = new common_test.HttpServerMock(); | 7152 var mock = new HttpServerMock(); |
| 7118 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; | 7153 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; |
| 7119 var arg_request = buildFeaturesBatchInsertRequest(); | 7154 var arg_request = buildFeaturesBatchInsertRequest(); |
| 7120 var arg_id = "foo"; | 7155 var arg_id = "foo"; |
| 7121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7122 var obj = new api.FeaturesBatchInsertRequest.fromJson(json); | 7157 var obj = new api.FeaturesBatchInsertRequest.fromJson(json); |
| 7123 checkFeaturesBatchInsertRequest(obj); | 7158 checkFeaturesBatchInsertRequest(obj); |
| 7124 | 7159 |
| 7125 var path = (req.url).path; | 7160 var path = (req.url).path; |
| 7126 var pathOffset = 0; | 7161 var pathOffset = 0; |
| 7127 var index; | 7162 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7155 var keyvalue = part.split("="); | 7190 var keyvalue = part.split("="); |
| 7156 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7191 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7157 } | 7192 } |
| 7158 } | 7193 } |
| 7159 | 7194 |
| 7160 | 7195 |
| 7161 var h = { | 7196 var h = { |
| 7162 "content-type" : "application/json; charset=utf-8", | 7197 "content-type" : "application/json; charset=utf-8", |
| 7163 }; | 7198 }; |
| 7164 var resp = ""; | 7199 var resp = ""; |
| 7165 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7200 return new async.Future.value(stringResponse(200, h, resp)); |
| 7166 }), true); | 7201 }), true); |
| 7167 res.batchInsert(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 7202 res.batchInsert(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 7168 }); | 7203 }); |
| 7169 | 7204 |
| 7170 unittest.test("method--batchPatch", () { | 7205 unittest.test("method--batchPatch", () { |
| 7171 | 7206 |
| 7172 var mock = new common_test.HttpServerMock(); | 7207 var mock = new HttpServerMock(); |
| 7173 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; | 7208 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; |
| 7174 var arg_request = buildFeaturesBatchPatchRequest(); | 7209 var arg_request = buildFeaturesBatchPatchRequest(); |
| 7175 var arg_id = "foo"; | 7210 var arg_id = "foo"; |
| 7176 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7211 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7177 var obj = new api.FeaturesBatchPatchRequest.fromJson(json); | 7212 var obj = new api.FeaturesBatchPatchRequest.fromJson(json); |
| 7178 checkFeaturesBatchPatchRequest(obj); | 7213 checkFeaturesBatchPatchRequest(obj); |
| 7179 | 7214 |
| 7180 var path = (req.url).path; | 7215 var path = (req.url).path; |
| 7181 var pathOffset = 0; | 7216 var pathOffset = 0; |
| 7182 var index; | 7217 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7210 var keyvalue = part.split("="); | 7245 var keyvalue = part.split("="); |
| 7211 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7246 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7212 } | 7247 } |
| 7213 } | 7248 } |
| 7214 | 7249 |
| 7215 | 7250 |
| 7216 var h = { | 7251 var h = { |
| 7217 "content-type" : "application/json; charset=utf-8", | 7252 "content-type" : "application/json; charset=utf-8", |
| 7218 }; | 7253 }; |
| 7219 var resp = ""; | 7254 var resp = ""; |
| 7220 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7255 return new async.Future.value(stringResponse(200, h, resp)); |
| 7221 }), true); | 7256 }), true); |
| 7222 res.batchPatch(arg_request, arg_id).then(unittest.expectAsync((_) {})); | 7257 res.batchPatch(arg_request, arg_id).then(unittest.expectAsync((_) {})); |
| 7223 }); | 7258 }); |
| 7224 | 7259 |
| 7225 unittest.test("method--get", () { | 7260 unittest.test("method--get", () { |
| 7226 | 7261 |
| 7227 var mock = new common_test.HttpServerMock(); | 7262 var mock = new HttpServerMock(); |
| 7228 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; | 7263 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; |
| 7229 var arg_tableId = "foo"; | 7264 var arg_tableId = "foo"; |
| 7230 var arg_id = "foo"; | 7265 var arg_id = "foo"; |
| 7231 var arg_select = "foo"; | 7266 var arg_select = "foo"; |
| 7232 var arg_version = "foo"; | 7267 var arg_version = "foo"; |
| 7233 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7268 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7234 var path = (req.url).path; | 7269 var path = (req.url).path; |
| 7235 var pathOffset = 0; | 7270 var pathOffset = 0; |
| 7236 var index; | 7271 var index; |
| 7237 var subPart; | 7272 var subPart; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7269 } | 7304 } |
| 7270 } | 7305 } |
| 7271 unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); | 7306 unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); |
| 7272 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; | 7307 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; |
| 7273 | 7308 |
| 7274 | 7309 |
| 7275 var h = { | 7310 var h = { |
| 7276 "content-type" : "application/json; charset=utf-8", | 7311 "content-type" : "application/json; charset=utf-8", |
| 7277 }; | 7312 }; |
| 7278 var resp = convert.JSON.encode(buildFeature()); | 7313 var resp = convert.JSON.encode(buildFeature()); |
| 7279 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7314 return new async.Future.value(stringResponse(200, h, resp)); |
| 7280 }), true); | 7315 }), true); |
| 7281 res.get(arg_tableId, arg_id, select: arg_select, version: arg_version).the
n(unittest.expectAsync(((api.Feature response) { | 7316 res.get(arg_tableId, arg_id, select: arg_select, version: arg_version).the
n(unittest.expectAsync(((api.Feature response) { |
| 7282 checkFeature(response); | 7317 checkFeature(response); |
| 7283 }))); | 7318 }))); |
| 7284 }); | 7319 }); |
| 7285 | 7320 |
| 7286 unittest.test("method--list", () { | 7321 unittest.test("method--list", () { |
| 7287 | 7322 |
| 7288 var mock = new common_test.HttpServerMock(); | 7323 var mock = new HttpServerMock(); |
| 7289 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; | 7324 api.TablesFeaturesResourceApi res = new api.MapsengineApi(mock).tables.fea
tures; |
| 7290 var arg_id = "foo"; | 7325 var arg_id = "foo"; |
| 7291 var arg_include = "foo"; | 7326 var arg_include = "foo"; |
| 7292 var arg_intersects = "foo"; | 7327 var arg_intersects = "foo"; |
| 7293 var arg_limit = 42; | 7328 var arg_limit = 42; |
| 7294 var arg_maxResults = 42; | 7329 var arg_maxResults = 42; |
| 7295 var arg_orderBy = "foo"; | 7330 var arg_orderBy = "foo"; |
| 7296 var arg_pageToken = "foo"; | 7331 var arg_pageToken = "foo"; |
| 7297 var arg_select = "foo"; | 7332 var arg_select = "foo"; |
| 7298 var arg_version = "foo"; | 7333 var arg_version = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7340 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7375 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7341 unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); | 7376 unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); |
| 7342 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; | 7377 unittest.expect(queryMap["version"].first, unittest.equals(arg_version))
; |
| 7343 unittest.expect(queryMap["where"].first, unittest.equals(arg_where)); | 7378 unittest.expect(queryMap["where"].first, unittest.equals(arg_where)); |
| 7344 | 7379 |
| 7345 | 7380 |
| 7346 var h = { | 7381 var h = { |
| 7347 "content-type" : "application/json; charset=utf-8", | 7382 "content-type" : "application/json; charset=utf-8", |
| 7348 }; | 7383 }; |
| 7349 var resp = convert.JSON.encode(buildFeaturesListResponse()); | 7384 var resp = convert.JSON.encode(buildFeaturesListResponse()); |
| 7350 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7385 return new async.Future.value(stringResponse(200, h, resp)); |
| 7351 }), true); | 7386 }), true); |
| 7352 res.list(arg_id, include: arg_include, intersects: arg_intersects, limit:
arg_limit, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_page
Token, select: arg_select, version: arg_version, where: arg_where).then(unittest
.expectAsync(((api.FeaturesListResponse response) { | 7387 res.list(arg_id, include: arg_include, intersects: arg_intersects, limit:
arg_limit, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_page
Token, select: arg_select, version: arg_version, where: arg_where).then(unittest
.expectAsync(((api.FeaturesListResponse response) { |
| 7353 checkFeaturesListResponse(response); | 7388 checkFeaturesListResponse(response); |
| 7354 }))); | 7389 }))); |
| 7355 }); | 7390 }); |
| 7356 | 7391 |
| 7357 }); | 7392 }); |
| 7358 | 7393 |
| 7359 | 7394 |
| 7360 unittest.group("resource-TablesFilesResourceApi", () { | 7395 unittest.group("resource-TablesFilesResourceApi", () { |
| 7361 unittest.test("method--insert", () { | 7396 unittest.test("method--insert", () { |
| 7362 // TODO: Implement tests for media upload; | 7397 // TODO: Implement tests for media upload; |
| 7363 // TODO: Implement tests for media download; | 7398 // TODO: Implement tests for media download; |
| 7364 | 7399 |
| 7365 var mock = new common_test.HttpServerMock(); | 7400 var mock = new HttpServerMock(); |
| 7366 api.TablesFilesResourceApi res = new api.MapsengineApi(mock).tables.files; | 7401 api.TablesFilesResourceApi res = new api.MapsengineApi(mock).tables.files; |
| 7367 var arg_id = "foo"; | 7402 var arg_id = "foo"; |
| 7368 var arg_filename = "foo"; | 7403 var arg_filename = "foo"; |
| 7369 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7404 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7370 var path = (req.url).path; | 7405 var path = (req.url).path; |
| 7371 var pathOffset = 0; | 7406 var pathOffset = 0; |
| 7372 var index; | 7407 var index; |
| 7373 var subPart; | 7408 var subPart; |
| 7374 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7409 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7375 pathOffset += 1; | 7410 pathOffset += 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 7401 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7436 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7402 } | 7437 } |
| 7403 } | 7438 } |
| 7404 unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename
)); | 7439 unittest.expect(queryMap["filename"].first, unittest.equals(arg_filename
)); |
| 7405 | 7440 |
| 7406 | 7441 |
| 7407 var h = { | 7442 var h = { |
| 7408 "content-type" : "application/json; charset=utf-8", | 7443 "content-type" : "application/json; charset=utf-8", |
| 7409 }; | 7444 }; |
| 7410 var resp = ""; | 7445 var resp = ""; |
| 7411 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7446 return new async.Future.value(stringResponse(200, h, resp)); |
| 7412 }), true); | 7447 }), true); |
| 7413 res.insert(arg_id, arg_filename).then(unittest.expectAsync((_) {})); | 7448 res.insert(arg_id, arg_filename).then(unittest.expectAsync((_) {})); |
| 7414 }); | 7449 }); |
| 7415 | 7450 |
| 7416 }); | 7451 }); |
| 7417 | 7452 |
| 7418 | 7453 |
| 7419 unittest.group("resource-TablesParentsResourceApi", () { | 7454 unittest.group("resource-TablesParentsResourceApi", () { |
| 7420 unittest.test("method--list", () { | 7455 unittest.test("method--list", () { |
| 7421 | 7456 |
| 7422 var mock = new common_test.HttpServerMock(); | 7457 var mock = new HttpServerMock(); |
| 7423 api.TablesParentsResourceApi res = new api.MapsengineApi(mock).tables.pare
nts; | 7458 api.TablesParentsResourceApi res = new api.MapsengineApi(mock).tables.pare
nts; |
| 7424 var arg_id = "foo"; | 7459 var arg_id = "foo"; |
| 7425 var arg_maxResults = 42; | 7460 var arg_maxResults = 42; |
| 7426 var arg_pageToken = "foo"; | 7461 var arg_pageToken = "foo"; |
| 7427 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7428 var path = (req.url).path; | 7463 var path = (req.url).path; |
| 7429 var pathOffset = 0; | 7464 var pathOffset = 0; |
| 7430 var index; | 7465 var index; |
| 7431 var subPart; | 7466 var subPart; |
| 7432 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7460 } | 7495 } |
| 7461 } | 7496 } |
| 7462 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7497 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7463 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7498 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7464 | 7499 |
| 7465 | 7500 |
| 7466 var h = { | 7501 var h = { |
| 7467 "content-type" : "application/json; charset=utf-8", | 7502 "content-type" : "application/json; charset=utf-8", |
| 7468 }; | 7503 }; |
| 7469 var resp = convert.JSON.encode(buildParentsListResponse()); | 7504 var resp = convert.JSON.encode(buildParentsListResponse()); |
| 7470 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7505 return new async.Future.value(stringResponse(200, h, resp)); |
| 7471 }), true); | 7506 }), true); |
| 7472 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { | 7507 res.list(arg_id, maxResults: arg_maxResults, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ParentsListResponse response) { |
| 7473 checkParentsListResponse(response); | 7508 checkParentsListResponse(response); |
| 7474 }))); | 7509 }))); |
| 7475 }); | 7510 }); |
| 7476 | 7511 |
| 7477 }); | 7512 }); |
| 7478 | 7513 |
| 7479 | 7514 |
| 7480 unittest.group("resource-TablesPermissionsResourceApi", () { | 7515 unittest.group("resource-TablesPermissionsResourceApi", () { |
| 7481 unittest.test("method--batchDelete", () { | 7516 unittest.test("method--batchDelete", () { |
| 7482 | 7517 |
| 7483 var mock = new common_test.HttpServerMock(); | 7518 var mock = new HttpServerMock(); |
| 7484 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; | 7519 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; |
| 7485 var arg_request = buildPermissionsBatchDeleteRequest(); | 7520 var arg_request = buildPermissionsBatchDeleteRequest(); |
| 7486 var arg_id = "foo"; | 7521 var arg_id = "foo"; |
| 7487 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7522 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7488 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); | 7523 var obj = new api.PermissionsBatchDeleteRequest.fromJson(json); |
| 7489 checkPermissionsBatchDeleteRequest(obj); | 7524 checkPermissionsBatchDeleteRequest(obj); |
| 7490 | 7525 |
| 7491 var path = (req.url).path; | 7526 var path = (req.url).path; |
| 7492 var pathOffset = 0; | 7527 var pathOffset = 0; |
| 7493 var index; | 7528 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7521 var keyvalue = part.split("="); | 7556 var keyvalue = part.split("="); |
| 7522 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7557 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7523 } | 7558 } |
| 7524 } | 7559 } |
| 7525 | 7560 |
| 7526 | 7561 |
| 7527 var h = { | 7562 var h = { |
| 7528 "content-type" : "application/json; charset=utf-8", | 7563 "content-type" : "application/json; charset=utf-8", |
| 7529 }; | 7564 }; |
| 7530 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); | 7565 var resp = convert.JSON.encode(buildPermissionsBatchDeleteResponse()); |
| 7531 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7566 return new async.Future.value(stringResponse(200, h, resp)); |
| 7532 }), true); | 7567 }), true); |
| 7533 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { | 7568 res.batchDelete(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchDeleteResponse response) { |
| 7534 checkPermissionsBatchDeleteResponse(response); | 7569 checkPermissionsBatchDeleteResponse(response); |
| 7535 }))); | 7570 }))); |
| 7536 }); | 7571 }); |
| 7537 | 7572 |
| 7538 unittest.test("method--batchUpdate", () { | 7573 unittest.test("method--batchUpdate", () { |
| 7539 | 7574 |
| 7540 var mock = new common_test.HttpServerMock(); | 7575 var mock = new HttpServerMock(); |
| 7541 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; | 7576 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; |
| 7542 var arg_request = buildPermissionsBatchUpdateRequest(); | 7577 var arg_request = buildPermissionsBatchUpdateRequest(); |
| 7543 var arg_id = "foo"; | 7578 var arg_id = "foo"; |
| 7544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7579 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7545 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); | 7580 var obj = new api.PermissionsBatchUpdateRequest.fromJson(json); |
| 7546 checkPermissionsBatchUpdateRequest(obj); | 7581 checkPermissionsBatchUpdateRequest(obj); |
| 7547 | 7582 |
| 7548 var path = (req.url).path; | 7583 var path = (req.url).path; |
| 7549 var pathOffset = 0; | 7584 var pathOffset = 0; |
| 7550 var index; | 7585 var index; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7578 var keyvalue = part.split("="); | 7613 var keyvalue = part.split("="); |
| 7579 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7614 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7580 } | 7615 } |
| 7581 } | 7616 } |
| 7582 | 7617 |
| 7583 | 7618 |
| 7584 var h = { | 7619 var h = { |
| 7585 "content-type" : "application/json; charset=utf-8", | 7620 "content-type" : "application/json; charset=utf-8", |
| 7586 }; | 7621 }; |
| 7587 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); | 7622 var resp = convert.JSON.encode(buildPermissionsBatchUpdateResponse()); |
| 7588 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7623 return new async.Future.value(stringResponse(200, h, resp)); |
| 7589 }), true); | 7624 }), true); |
| 7590 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { | 7625 res.batchUpdate(arg_request, arg_id).then(unittest.expectAsync(((api.Permi
ssionsBatchUpdateResponse response) { |
| 7591 checkPermissionsBatchUpdateResponse(response); | 7626 checkPermissionsBatchUpdateResponse(response); |
| 7592 }))); | 7627 }))); |
| 7593 }); | 7628 }); |
| 7594 | 7629 |
| 7595 unittest.test("method--list", () { | 7630 unittest.test("method--list", () { |
| 7596 | 7631 |
| 7597 var mock = new common_test.HttpServerMock(); | 7632 var mock = new HttpServerMock(); |
| 7598 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; | 7633 api.TablesPermissionsResourceApi res = new api.MapsengineApi(mock).tables.
permissions; |
| 7599 var arg_id = "foo"; | 7634 var arg_id = "foo"; |
| 7600 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7635 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7601 var path = (req.url).path; | 7636 var path = (req.url).path; |
| 7602 var pathOffset = 0; | 7637 var pathOffset = 0; |
| 7603 var index; | 7638 var index; |
| 7604 var subPart; | 7639 var subPart; |
| 7605 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7640 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7606 pathOffset += 1; | 7641 pathOffset += 1; |
| 7607 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); | 7642 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("mapsengine/v1/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 7631 var keyvalue = part.split("="); | 7666 var keyvalue = part.split("="); |
| 7632 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7667 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7633 } | 7668 } |
| 7634 } | 7669 } |
| 7635 | 7670 |
| 7636 | 7671 |
| 7637 var h = { | 7672 var h = { |
| 7638 "content-type" : "application/json; charset=utf-8", | 7673 "content-type" : "application/json; charset=utf-8", |
| 7639 }; | 7674 }; |
| 7640 var resp = convert.JSON.encode(buildPermissionsListResponse()); | 7675 var resp = convert.JSON.encode(buildPermissionsListResponse()); |
| 7641 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7676 return new async.Future.value(stringResponse(200, h, resp)); |
| 7642 }), true); | 7677 }), true); |
| 7643 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { | 7678 res.list(arg_id).then(unittest.expectAsync(((api.PermissionsListResponse r
esponse) { |
| 7644 checkPermissionsListResponse(response); | 7679 checkPermissionsListResponse(response); |
| 7645 }))); | 7680 }))); |
| 7646 }); | 7681 }); |
| 7647 | 7682 |
| 7648 }); | 7683 }); |
| 7649 | 7684 |
| 7650 | 7685 |
| 7651 } | 7686 } |
| 7652 | 7687 |
| OLD | NEW |