OLD | NEW |
(Empty) | |
| 1 library googleapis.slides.v1.test; |
| 2 |
| 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; |
| 7 |
| 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; |
| 11 |
| 12 import 'package:googleapis/slides/v1.dart' as api; |
| 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 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 } |
| 53 |
| 54 core.int buildCounterAffineTransform = 0; |
| 55 buildAffineTransform() { |
| 56 var o = new api.AffineTransform(); |
| 57 buildCounterAffineTransform++; |
| 58 if (buildCounterAffineTransform < 3) { |
| 59 o.scaleX = 42.0; |
| 60 o.scaleY = 42.0; |
| 61 o.shearX = 42.0; |
| 62 o.shearY = 42.0; |
| 63 o.translateX = 42.0; |
| 64 o.translateY = 42.0; |
| 65 o.unit = "foo"; |
| 66 } |
| 67 buildCounterAffineTransform--; |
| 68 return o; |
| 69 } |
| 70 |
| 71 checkAffineTransform(api.AffineTransform o) { |
| 72 buildCounterAffineTransform++; |
| 73 if (buildCounterAffineTransform < 3) { |
| 74 unittest.expect(o.scaleX, unittest.equals(42.0)); |
| 75 unittest.expect(o.scaleY, unittest.equals(42.0)); |
| 76 unittest.expect(o.shearX, unittest.equals(42.0)); |
| 77 unittest.expect(o.shearY, unittest.equals(42.0)); |
| 78 unittest.expect(o.translateX, unittest.equals(42.0)); |
| 79 unittest.expect(o.translateY, unittest.equals(42.0)); |
| 80 unittest.expect(o.unit, unittest.equals('foo')); |
| 81 } |
| 82 buildCounterAffineTransform--; |
| 83 } |
| 84 |
| 85 core.int buildCounterAutoText = 0; |
| 86 buildAutoText() { |
| 87 var o = new api.AutoText(); |
| 88 buildCounterAutoText++; |
| 89 if (buildCounterAutoText < 3) { |
| 90 o.content = "foo"; |
| 91 o.style = buildTextStyle(); |
| 92 o.type = "foo"; |
| 93 } |
| 94 buildCounterAutoText--; |
| 95 return o; |
| 96 } |
| 97 |
| 98 checkAutoText(api.AutoText o) { |
| 99 buildCounterAutoText++; |
| 100 if (buildCounterAutoText < 3) { |
| 101 unittest.expect(o.content, unittest.equals('foo')); |
| 102 checkTextStyle(o.style); |
| 103 unittest.expect(o.type, unittest.equals('foo')); |
| 104 } |
| 105 buildCounterAutoText--; |
| 106 } |
| 107 |
| 108 buildUnnamed1657() { |
| 109 var o = new core.List<api.Request>(); |
| 110 o.add(buildRequest()); |
| 111 o.add(buildRequest()); |
| 112 return o; |
| 113 } |
| 114 |
| 115 checkUnnamed1657(core.List<api.Request> o) { |
| 116 unittest.expect(o, unittest.hasLength(2)); |
| 117 checkRequest(o[0]); |
| 118 checkRequest(o[1]); |
| 119 } |
| 120 |
| 121 core.int buildCounterBatchUpdatePresentationRequest = 0; |
| 122 buildBatchUpdatePresentationRequest() { |
| 123 var o = new api.BatchUpdatePresentationRequest(); |
| 124 buildCounterBatchUpdatePresentationRequest++; |
| 125 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 126 o.requests = buildUnnamed1657(); |
| 127 } |
| 128 buildCounterBatchUpdatePresentationRequest--; |
| 129 return o; |
| 130 } |
| 131 |
| 132 checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { |
| 133 buildCounterBatchUpdatePresentationRequest++; |
| 134 if (buildCounterBatchUpdatePresentationRequest < 3) { |
| 135 checkUnnamed1657(o.requests); |
| 136 } |
| 137 buildCounterBatchUpdatePresentationRequest--; |
| 138 } |
| 139 |
| 140 buildUnnamed1658() { |
| 141 var o = new core.List<api.Response>(); |
| 142 o.add(buildResponse()); |
| 143 o.add(buildResponse()); |
| 144 return o; |
| 145 } |
| 146 |
| 147 checkUnnamed1658(core.List<api.Response> o) { |
| 148 unittest.expect(o, unittest.hasLength(2)); |
| 149 checkResponse(o[0]); |
| 150 checkResponse(o[1]); |
| 151 } |
| 152 |
| 153 core.int buildCounterBatchUpdatePresentationResponse = 0; |
| 154 buildBatchUpdatePresentationResponse() { |
| 155 var o = new api.BatchUpdatePresentationResponse(); |
| 156 buildCounterBatchUpdatePresentationResponse++; |
| 157 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 158 o.presentationId = "foo"; |
| 159 o.replies = buildUnnamed1658(); |
| 160 } |
| 161 buildCounterBatchUpdatePresentationResponse--; |
| 162 return o; |
| 163 } |
| 164 |
| 165 checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { |
| 166 buildCounterBatchUpdatePresentationResponse++; |
| 167 if (buildCounterBatchUpdatePresentationResponse < 3) { |
| 168 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 169 checkUnnamed1658(o.replies); |
| 170 } |
| 171 buildCounterBatchUpdatePresentationResponse--; |
| 172 } |
| 173 |
| 174 core.int buildCounterBullet = 0; |
| 175 buildBullet() { |
| 176 var o = new api.Bullet(); |
| 177 buildCounterBullet++; |
| 178 if (buildCounterBullet < 3) { |
| 179 o.bulletStyle = buildTextStyle(); |
| 180 o.glyph = "foo"; |
| 181 o.listId = "foo"; |
| 182 o.nestingLevel = 42; |
| 183 } |
| 184 buildCounterBullet--; |
| 185 return o; |
| 186 } |
| 187 |
| 188 checkBullet(api.Bullet o) { |
| 189 buildCounterBullet++; |
| 190 if (buildCounterBullet < 3) { |
| 191 checkTextStyle(o.bulletStyle); |
| 192 unittest.expect(o.glyph, unittest.equals('foo')); |
| 193 unittest.expect(o.listId, unittest.equals('foo')); |
| 194 unittest.expect(o.nestingLevel, unittest.equals(42)); |
| 195 } |
| 196 buildCounterBullet--; |
| 197 } |
| 198 |
| 199 buildUnnamed1659() { |
| 200 var o = new core.List<api.ThemeColorPair>(); |
| 201 o.add(buildThemeColorPair()); |
| 202 o.add(buildThemeColorPair()); |
| 203 return o; |
| 204 } |
| 205 |
| 206 checkUnnamed1659(core.List<api.ThemeColorPair> o) { |
| 207 unittest.expect(o, unittest.hasLength(2)); |
| 208 checkThemeColorPair(o[0]); |
| 209 checkThemeColorPair(o[1]); |
| 210 } |
| 211 |
| 212 core.int buildCounterColorScheme = 0; |
| 213 buildColorScheme() { |
| 214 var o = new api.ColorScheme(); |
| 215 buildCounterColorScheme++; |
| 216 if (buildCounterColorScheme < 3) { |
| 217 o.colors = buildUnnamed1659(); |
| 218 } |
| 219 buildCounterColorScheme--; |
| 220 return o; |
| 221 } |
| 222 |
| 223 checkColorScheme(api.ColorScheme o) { |
| 224 buildCounterColorScheme++; |
| 225 if (buildCounterColorScheme < 3) { |
| 226 checkUnnamed1659(o.colors); |
| 227 } |
| 228 buildCounterColorScheme--; |
| 229 } |
| 230 |
| 231 core.int buildCounterColorStop = 0; |
| 232 buildColorStop() { |
| 233 var o = new api.ColorStop(); |
| 234 buildCounterColorStop++; |
| 235 if (buildCounterColorStop < 3) { |
| 236 o.alpha = 42.0; |
| 237 o.color = buildOpaqueColor(); |
| 238 o.position = 42.0; |
| 239 } |
| 240 buildCounterColorStop--; |
| 241 return o; |
| 242 } |
| 243 |
| 244 checkColorStop(api.ColorStop o) { |
| 245 buildCounterColorStop++; |
| 246 if (buildCounterColorStop < 3) { |
| 247 unittest.expect(o.alpha, unittest.equals(42.0)); |
| 248 checkOpaqueColor(o.color); |
| 249 unittest.expect(o.position, unittest.equals(42.0)); |
| 250 } |
| 251 buildCounterColorStop--; |
| 252 } |
| 253 |
| 254 core.int buildCounterCreateImageRequest = 0; |
| 255 buildCreateImageRequest() { |
| 256 var o = new api.CreateImageRequest(); |
| 257 buildCounterCreateImageRequest++; |
| 258 if (buildCounterCreateImageRequest < 3) { |
| 259 o.elementProperties = buildPageElementProperties(); |
| 260 o.objectId = "foo"; |
| 261 o.url = "foo"; |
| 262 } |
| 263 buildCounterCreateImageRequest--; |
| 264 return o; |
| 265 } |
| 266 |
| 267 checkCreateImageRequest(api.CreateImageRequest o) { |
| 268 buildCounterCreateImageRequest++; |
| 269 if (buildCounterCreateImageRequest < 3) { |
| 270 checkPageElementProperties(o.elementProperties); |
| 271 unittest.expect(o.objectId, unittest.equals('foo')); |
| 272 unittest.expect(o.url, unittest.equals('foo')); |
| 273 } |
| 274 buildCounterCreateImageRequest--; |
| 275 } |
| 276 |
| 277 core.int buildCounterCreateImageResponse = 0; |
| 278 buildCreateImageResponse() { |
| 279 var o = new api.CreateImageResponse(); |
| 280 buildCounterCreateImageResponse++; |
| 281 if (buildCounterCreateImageResponse < 3) { |
| 282 o.objectId = "foo"; |
| 283 } |
| 284 buildCounterCreateImageResponse--; |
| 285 return o; |
| 286 } |
| 287 |
| 288 checkCreateImageResponse(api.CreateImageResponse o) { |
| 289 buildCounterCreateImageResponse++; |
| 290 if (buildCounterCreateImageResponse < 3) { |
| 291 unittest.expect(o.objectId, unittest.equals('foo')); |
| 292 } |
| 293 buildCounterCreateImageResponse--; |
| 294 } |
| 295 |
| 296 core.int buildCounterCreateLineRequest = 0; |
| 297 buildCreateLineRequest() { |
| 298 var o = new api.CreateLineRequest(); |
| 299 buildCounterCreateLineRequest++; |
| 300 if (buildCounterCreateLineRequest < 3) { |
| 301 o.elementProperties = buildPageElementProperties(); |
| 302 o.lineCategory = "foo"; |
| 303 o.objectId = "foo"; |
| 304 } |
| 305 buildCounterCreateLineRequest--; |
| 306 return o; |
| 307 } |
| 308 |
| 309 checkCreateLineRequest(api.CreateLineRequest o) { |
| 310 buildCounterCreateLineRequest++; |
| 311 if (buildCounterCreateLineRequest < 3) { |
| 312 checkPageElementProperties(o.elementProperties); |
| 313 unittest.expect(o.lineCategory, unittest.equals('foo')); |
| 314 unittest.expect(o.objectId, unittest.equals('foo')); |
| 315 } |
| 316 buildCounterCreateLineRequest--; |
| 317 } |
| 318 |
| 319 core.int buildCounterCreateLineResponse = 0; |
| 320 buildCreateLineResponse() { |
| 321 var o = new api.CreateLineResponse(); |
| 322 buildCounterCreateLineResponse++; |
| 323 if (buildCounterCreateLineResponse < 3) { |
| 324 o.objectId = "foo"; |
| 325 } |
| 326 buildCounterCreateLineResponse--; |
| 327 return o; |
| 328 } |
| 329 |
| 330 checkCreateLineResponse(api.CreateLineResponse o) { |
| 331 buildCounterCreateLineResponse++; |
| 332 if (buildCounterCreateLineResponse < 3) { |
| 333 unittest.expect(o.objectId, unittest.equals('foo')); |
| 334 } |
| 335 buildCounterCreateLineResponse--; |
| 336 } |
| 337 |
| 338 core.int buildCounterCreateParagraphBulletsRequest = 0; |
| 339 buildCreateParagraphBulletsRequest() { |
| 340 var o = new api.CreateParagraphBulletsRequest(); |
| 341 buildCounterCreateParagraphBulletsRequest++; |
| 342 if (buildCounterCreateParagraphBulletsRequest < 3) { |
| 343 o.bulletPreset = "foo"; |
| 344 o.cellLocation = buildTableCellLocation(); |
| 345 o.objectId = "foo"; |
| 346 o.textRange = buildRange(); |
| 347 } |
| 348 buildCounterCreateParagraphBulletsRequest--; |
| 349 return o; |
| 350 } |
| 351 |
| 352 checkCreateParagraphBulletsRequest(api.CreateParagraphBulletsRequest o) { |
| 353 buildCounterCreateParagraphBulletsRequest++; |
| 354 if (buildCounterCreateParagraphBulletsRequest < 3) { |
| 355 unittest.expect(o.bulletPreset, unittest.equals('foo')); |
| 356 checkTableCellLocation(o.cellLocation); |
| 357 unittest.expect(o.objectId, unittest.equals('foo')); |
| 358 checkRange(o.textRange); |
| 359 } |
| 360 buildCounterCreateParagraphBulletsRequest--; |
| 361 } |
| 362 |
| 363 core.int buildCounterCreateShapeRequest = 0; |
| 364 buildCreateShapeRequest() { |
| 365 var o = new api.CreateShapeRequest(); |
| 366 buildCounterCreateShapeRequest++; |
| 367 if (buildCounterCreateShapeRequest < 3) { |
| 368 o.elementProperties = buildPageElementProperties(); |
| 369 o.objectId = "foo"; |
| 370 o.shapeType = "foo"; |
| 371 } |
| 372 buildCounterCreateShapeRequest--; |
| 373 return o; |
| 374 } |
| 375 |
| 376 checkCreateShapeRequest(api.CreateShapeRequest o) { |
| 377 buildCounterCreateShapeRequest++; |
| 378 if (buildCounterCreateShapeRequest < 3) { |
| 379 checkPageElementProperties(o.elementProperties); |
| 380 unittest.expect(o.objectId, unittest.equals('foo')); |
| 381 unittest.expect(o.shapeType, unittest.equals('foo')); |
| 382 } |
| 383 buildCounterCreateShapeRequest--; |
| 384 } |
| 385 |
| 386 core.int buildCounterCreateShapeResponse = 0; |
| 387 buildCreateShapeResponse() { |
| 388 var o = new api.CreateShapeResponse(); |
| 389 buildCounterCreateShapeResponse++; |
| 390 if (buildCounterCreateShapeResponse < 3) { |
| 391 o.objectId = "foo"; |
| 392 } |
| 393 buildCounterCreateShapeResponse--; |
| 394 return o; |
| 395 } |
| 396 |
| 397 checkCreateShapeResponse(api.CreateShapeResponse o) { |
| 398 buildCounterCreateShapeResponse++; |
| 399 if (buildCounterCreateShapeResponse < 3) { |
| 400 unittest.expect(o.objectId, unittest.equals('foo')); |
| 401 } |
| 402 buildCounterCreateShapeResponse--; |
| 403 } |
| 404 |
| 405 core.int buildCounterCreateSheetsChartRequest = 0; |
| 406 buildCreateSheetsChartRequest() { |
| 407 var o = new api.CreateSheetsChartRequest(); |
| 408 buildCounterCreateSheetsChartRequest++; |
| 409 if (buildCounterCreateSheetsChartRequest < 3) { |
| 410 o.chartId = 42; |
| 411 o.elementProperties = buildPageElementProperties(); |
| 412 o.linkingMode = "foo"; |
| 413 o.objectId = "foo"; |
| 414 o.spreadsheetId = "foo"; |
| 415 } |
| 416 buildCounterCreateSheetsChartRequest--; |
| 417 return o; |
| 418 } |
| 419 |
| 420 checkCreateSheetsChartRequest(api.CreateSheetsChartRequest o) { |
| 421 buildCounterCreateSheetsChartRequest++; |
| 422 if (buildCounterCreateSheetsChartRequest < 3) { |
| 423 unittest.expect(o.chartId, unittest.equals(42)); |
| 424 checkPageElementProperties(o.elementProperties); |
| 425 unittest.expect(o.linkingMode, unittest.equals('foo')); |
| 426 unittest.expect(o.objectId, unittest.equals('foo')); |
| 427 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| 428 } |
| 429 buildCounterCreateSheetsChartRequest--; |
| 430 } |
| 431 |
| 432 core.int buildCounterCreateSheetsChartResponse = 0; |
| 433 buildCreateSheetsChartResponse() { |
| 434 var o = new api.CreateSheetsChartResponse(); |
| 435 buildCounterCreateSheetsChartResponse++; |
| 436 if (buildCounterCreateSheetsChartResponse < 3) { |
| 437 o.objectId = "foo"; |
| 438 } |
| 439 buildCounterCreateSheetsChartResponse--; |
| 440 return o; |
| 441 } |
| 442 |
| 443 checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { |
| 444 buildCounterCreateSheetsChartResponse++; |
| 445 if (buildCounterCreateSheetsChartResponse < 3) { |
| 446 unittest.expect(o.objectId, unittest.equals('foo')); |
| 447 } |
| 448 buildCounterCreateSheetsChartResponse--; |
| 449 } |
| 450 |
| 451 core.int buildCounterCreateSlideRequest = 0; |
| 452 buildCreateSlideRequest() { |
| 453 var o = new api.CreateSlideRequest(); |
| 454 buildCounterCreateSlideRequest++; |
| 455 if (buildCounterCreateSlideRequest < 3) { |
| 456 o.insertionIndex = 42; |
| 457 o.objectId = "foo"; |
| 458 o.slideLayoutReference = buildLayoutReference(); |
| 459 } |
| 460 buildCounterCreateSlideRequest--; |
| 461 return o; |
| 462 } |
| 463 |
| 464 checkCreateSlideRequest(api.CreateSlideRequest o) { |
| 465 buildCounterCreateSlideRequest++; |
| 466 if (buildCounterCreateSlideRequest < 3) { |
| 467 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 468 unittest.expect(o.objectId, unittest.equals('foo')); |
| 469 checkLayoutReference(o.slideLayoutReference); |
| 470 } |
| 471 buildCounterCreateSlideRequest--; |
| 472 } |
| 473 |
| 474 core.int buildCounterCreateSlideResponse = 0; |
| 475 buildCreateSlideResponse() { |
| 476 var o = new api.CreateSlideResponse(); |
| 477 buildCounterCreateSlideResponse++; |
| 478 if (buildCounterCreateSlideResponse < 3) { |
| 479 o.objectId = "foo"; |
| 480 } |
| 481 buildCounterCreateSlideResponse--; |
| 482 return o; |
| 483 } |
| 484 |
| 485 checkCreateSlideResponse(api.CreateSlideResponse o) { |
| 486 buildCounterCreateSlideResponse++; |
| 487 if (buildCounterCreateSlideResponse < 3) { |
| 488 unittest.expect(o.objectId, unittest.equals('foo')); |
| 489 } |
| 490 buildCounterCreateSlideResponse--; |
| 491 } |
| 492 |
| 493 core.int buildCounterCreateTableRequest = 0; |
| 494 buildCreateTableRequest() { |
| 495 var o = new api.CreateTableRequest(); |
| 496 buildCounterCreateTableRequest++; |
| 497 if (buildCounterCreateTableRequest < 3) { |
| 498 o.columns = 42; |
| 499 o.elementProperties = buildPageElementProperties(); |
| 500 o.objectId = "foo"; |
| 501 o.rows = 42; |
| 502 } |
| 503 buildCounterCreateTableRequest--; |
| 504 return o; |
| 505 } |
| 506 |
| 507 checkCreateTableRequest(api.CreateTableRequest o) { |
| 508 buildCounterCreateTableRequest++; |
| 509 if (buildCounterCreateTableRequest < 3) { |
| 510 unittest.expect(o.columns, unittest.equals(42)); |
| 511 checkPageElementProperties(o.elementProperties); |
| 512 unittest.expect(o.objectId, unittest.equals('foo')); |
| 513 unittest.expect(o.rows, unittest.equals(42)); |
| 514 } |
| 515 buildCounterCreateTableRequest--; |
| 516 } |
| 517 |
| 518 core.int buildCounterCreateTableResponse = 0; |
| 519 buildCreateTableResponse() { |
| 520 var o = new api.CreateTableResponse(); |
| 521 buildCounterCreateTableResponse++; |
| 522 if (buildCounterCreateTableResponse < 3) { |
| 523 o.objectId = "foo"; |
| 524 } |
| 525 buildCounterCreateTableResponse--; |
| 526 return o; |
| 527 } |
| 528 |
| 529 checkCreateTableResponse(api.CreateTableResponse o) { |
| 530 buildCounterCreateTableResponse++; |
| 531 if (buildCounterCreateTableResponse < 3) { |
| 532 unittest.expect(o.objectId, unittest.equals('foo')); |
| 533 } |
| 534 buildCounterCreateTableResponse--; |
| 535 } |
| 536 |
| 537 core.int buildCounterCreateVideoRequest = 0; |
| 538 buildCreateVideoRequest() { |
| 539 var o = new api.CreateVideoRequest(); |
| 540 buildCounterCreateVideoRequest++; |
| 541 if (buildCounterCreateVideoRequest < 3) { |
| 542 o.elementProperties = buildPageElementProperties(); |
| 543 o.id = "foo"; |
| 544 o.objectId = "foo"; |
| 545 o.source = "foo"; |
| 546 } |
| 547 buildCounterCreateVideoRequest--; |
| 548 return o; |
| 549 } |
| 550 |
| 551 checkCreateVideoRequest(api.CreateVideoRequest o) { |
| 552 buildCounterCreateVideoRequest++; |
| 553 if (buildCounterCreateVideoRequest < 3) { |
| 554 checkPageElementProperties(o.elementProperties); |
| 555 unittest.expect(o.id, unittest.equals('foo')); |
| 556 unittest.expect(o.objectId, unittest.equals('foo')); |
| 557 unittest.expect(o.source, unittest.equals('foo')); |
| 558 } |
| 559 buildCounterCreateVideoRequest--; |
| 560 } |
| 561 |
| 562 core.int buildCounterCreateVideoResponse = 0; |
| 563 buildCreateVideoResponse() { |
| 564 var o = new api.CreateVideoResponse(); |
| 565 buildCounterCreateVideoResponse++; |
| 566 if (buildCounterCreateVideoResponse < 3) { |
| 567 o.objectId = "foo"; |
| 568 } |
| 569 buildCounterCreateVideoResponse--; |
| 570 return o; |
| 571 } |
| 572 |
| 573 checkCreateVideoResponse(api.CreateVideoResponse o) { |
| 574 buildCounterCreateVideoResponse++; |
| 575 if (buildCounterCreateVideoResponse < 3) { |
| 576 unittest.expect(o.objectId, unittest.equals('foo')); |
| 577 } |
| 578 buildCounterCreateVideoResponse--; |
| 579 } |
| 580 |
| 581 core.int buildCounterCropProperties = 0; |
| 582 buildCropProperties() { |
| 583 var o = new api.CropProperties(); |
| 584 buildCounterCropProperties++; |
| 585 if (buildCounterCropProperties < 3) { |
| 586 o.angle = 42.0; |
| 587 o.bottomOffset = 42.0; |
| 588 o.leftOffset = 42.0; |
| 589 o.rightOffset = 42.0; |
| 590 o.topOffset = 42.0; |
| 591 } |
| 592 buildCounterCropProperties--; |
| 593 return o; |
| 594 } |
| 595 |
| 596 checkCropProperties(api.CropProperties o) { |
| 597 buildCounterCropProperties++; |
| 598 if (buildCounterCropProperties < 3) { |
| 599 unittest.expect(o.angle, unittest.equals(42.0)); |
| 600 unittest.expect(o.bottomOffset, unittest.equals(42.0)); |
| 601 unittest.expect(o.leftOffset, unittest.equals(42.0)); |
| 602 unittest.expect(o.rightOffset, unittest.equals(42.0)); |
| 603 unittest.expect(o.topOffset, unittest.equals(42.0)); |
| 604 } |
| 605 buildCounterCropProperties--; |
| 606 } |
| 607 |
| 608 core.int buildCounterDeleteObjectRequest = 0; |
| 609 buildDeleteObjectRequest() { |
| 610 var o = new api.DeleteObjectRequest(); |
| 611 buildCounterDeleteObjectRequest++; |
| 612 if (buildCounterDeleteObjectRequest < 3) { |
| 613 o.objectId = "foo"; |
| 614 } |
| 615 buildCounterDeleteObjectRequest--; |
| 616 return o; |
| 617 } |
| 618 |
| 619 checkDeleteObjectRequest(api.DeleteObjectRequest o) { |
| 620 buildCounterDeleteObjectRequest++; |
| 621 if (buildCounterDeleteObjectRequest < 3) { |
| 622 unittest.expect(o.objectId, unittest.equals('foo')); |
| 623 } |
| 624 buildCounterDeleteObjectRequest--; |
| 625 } |
| 626 |
| 627 core.int buildCounterDeleteTableColumnRequest = 0; |
| 628 buildDeleteTableColumnRequest() { |
| 629 var o = new api.DeleteTableColumnRequest(); |
| 630 buildCounterDeleteTableColumnRequest++; |
| 631 if (buildCounterDeleteTableColumnRequest < 3) { |
| 632 o.cellLocation = buildTableCellLocation(); |
| 633 o.tableObjectId = "foo"; |
| 634 } |
| 635 buildCounterDeleteTableColumnRequest--; |
| 636 return o; |
| 637 } |
| 638 |
| 639 checkDeleteTableColumnRequest(api.DeleteTableColumnRequest o) { |
| 640 buildCounterDeleteTableColumnRequest++; |
| 641 if (buildCounterDeleteTableColumnRequest < 3) { |
| 642 checkTableCellLocation(o.cellLocation); |
| 643 unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| 644 } |
| 645 buildCounterDeleteTableColumnRequest--; |
| 646 } |
| 647 |
| 648 core.int buildCounterDeleteTableRowRequest = 0; |
| 649 buildDeleteTableRowRequest() { |
| 650 var o = new api.DeleteTableRowRequest(); |
| 651 buildCounterDeleteTableRowRequest++; |
| 652 if (buildCounterDeleteTableRowRequest < 3) { |
| 653 o.cellLocation = buildTableCellLocation(); |
| 654 o.tableObjectId = "foo"; |
| 655 } |
| 656 buildCounterDeleteTableRowRequest--; |
| 657 return o; |
| 658 } |
| 659 |
| 660 checkDeleteTableRowRequest(api.DeleteTableRowRequest o) { |
| 661 buildCounterDeleteTableRowRequest++; |
| 662 if (buildCounterDeleteTableRowRequest < 3) { |
| 663 checkTableCellLocation(o.cellLocation); |
| 664 unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| 665 } |
| 666 buildCounterDeleteTableRowRequest--; |
| 667 } |
| 668 |
| 669 core.int buildCounterDeleteTextRequest = 0; |
| 670 buildDeleteTextRequest() { |
| 671 var o = new api.DeleteTextRequest(); |
| 672 buildCounterDeleteTextRequest++; |
| 673 if (buildCounterDeleteTextRequest < 3) { |
| 674 o.cellLocation = buildTableCellLocation(); |
| 675 o.objectId = "foo"; |
| 676 o.textRange = buildRange(); |
| 677 } |
| 678 buildCounterDeleteTextRequest--; |
| 679 return o; |
| 680 } |
| 681 |
| 682 checkDeleteTextRequest(api.DeleteTextRequest o) { |
| 683 buildCounterDeleteTextRequest++; |
| 684 if (buildCounterDeleteTextRequest < 3) { |
| 685 checkTableCellLocation(o.cellLocation); |
| 686 unittest.expect(o.objectId, unittest.equals('foo')); |
| 687 checkRange(o.textRange); |
| 688 } |
| 689 buildCounterDeleteTextRequest--; |
| 690 } |
| 691 |
| 692 core.int buildCounterDimension = 0; |
| 693 buildDimension() { |
| 694 var o = new api.Dimension(); |
| 695 buildCounterDimension++; |
| 696 if (buildCounterDimension < 3) { |
| 697 o.magnitude = 42.0; |
| 698 o.unit = "foo"; |
| 699 } |
| 700 buildCounterDimension--; |
| 701 return o; |
| 702 } |
| 703 |
| 704 checkDimension(api.Dimension o) { |
| 705 buildCounterDimension++; |
| 706 if (buildCounterDimension < 3) { |
| 707 unittest.expect(o.magnitude, unittest.equals(42.0)); |
| 708 unittest.expect(o.unit, unittest.equals('foo')); |
| 709 } |
| 710 buildCounterDimension--; |
| 711 } |
| 712 |
| 713 buildUnnamed1660() { |
| 714 var o = new core.Map<core.String, core.String>(); |
| 715 o["x"] = "foo"; |
| 716 o["y"] = "foo"; |
| 717 return o; |
| 718 } |
| 719 |
| 720 checkUnnamed1660(core.Map<core.String, core.String> o) { |
| 721 unittest.expect(o, unittest.hasLength(2)); |
| 722 unittest.expect(o["x"], unittest.equals('foo')); |
| 723 unittest.expect(o["y"], unittest.equals('foo')); |
| 724 } |
| 725 |
| 726 core.int buildCounterDuplicateObjectRequest = 0; |
| 727 buildDuplicateObjectRequest() { |
| 728 var o = new api.DuplicateObjectRequest(); |
| 729 buildCounterDuplicateObjectRequest++; |
| 730 if (buildCounterDuplicateObjectRequest < 3) { |
| 731 o.objectId = "foo"; |
| 732 o.objectIds = buildUnnamed1660(); |
| 733 } |
| 734 buildCounterDuplicateObjectRequest--; |
| 735 return o; |
| 736 } |
| 737 |
| 738 checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { |
| 739 buildCounterDuplicateObjectRequest++; |
| 740 if (buildCounterDuplicateObjectRequest < 3) { |
| 741 unittest.expect(o.objectId, unittest.equals('foo')); |
| 742 checkUnnamed1660(o.objectIds); |
| 743 } |
| 744 buildCounterDuplicateObjectRequest--; |
| 745 } |
| 746 |
| 747 core.int buildCounterDuplicateObjectResponse = 0; |
| 748 buildDuplicateObjectResponse() { |
| 749 var o = new api.DuplicateObjectResponse(); |
| 750 buildCounterDuplicateObjectResponse++; |
| 751 if (buildCounterDuplicateObjectResponse < 3) { |
| 752 o.objectId = "foo"; |
| 753 } |
| 754 buildCounterDuplicateObjectResponse--; |
| 755 return o; |
| 756 } |
| 757 |
| 758 checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { |
| 759 buildCounterDuplicateObjectResponse++; |
| 760 if (buildCounterDuplicateObjectResponse < 3) { |
| 761 unittest.expect(o.objectId, unittest.equals('foo')); |
| 762 } |
| 763 buildCounterDuplicateObjectResponse--; |
| 764 } |
| 765 |
| 766 buildUnnamed1661() { |
| 767 var o = new core.List<api.PageElement>(); |
| 768 o.add(buildPageElement()); |
| 769 o.add(buildPageElement()); |
| 770 return o; |
| 771 } |
| 772 |
| 773 checkUnnamed1661(core.List<api.PageElement> o) { |
| 774 unittest.expect(o, unittest.hasLength(2)); |
| 775 checkPageElement(o[0]); |
| 776 checkPageElement(o[1]); |
| 777 } |
| 778 |
| 779 core.int buildCounterGroup = 0; |
| 780 buildGroup() { |
| 781 var o = new api.Group(); |
| 782 buildCounterGroup++; |
| 783 if (buildCounterGroup < 3) { |
| 784 o.children = buildUnnamed1661(); |
| 785 } |
| 786 buildCounterGroup--; |
| 787 return o; |
| 788 } |
| 789 |
| 790 checkGroup(api.Group o) { |
| 791 buildCounterGroup++; |
| 792 if (buildCounterGroup < 3) { |
| 793 checkUnnamed1661(o.children); |
| 794 } |
| 795 buildCounterGroup--; |
| 796 } |
| 797 |
| 798 core.int buildCounterImage = 0; |
| 799 buildImage() { |
| 800 var o = new api.Image(); |
| 801 buildCounterImage++; |
| 802 if (buildCounterImage < 3) { |
| 803 o.contentUrl = "foo"; |
| 804 o.imageProperties = buildImageProperties(); |
| 805 } |
| 806 buildCounterImage--; |
| 807 return o; |
| 808 } |
| 809 |
| 810 checkImage(api.Image o) { |
| 811 buildCounterImage++; |
| 812 if (buildCounterImage < 3) { |
| 813 unittest.expect(o.contentUrl, unittest.equals('foo')); |
| 814 checkImageProperties(o.imageProperties); |
| 815 } |
| 816 buildCounterImage--; |
| 817 } |
| 818 |
| 819 core.int buildCounterImageProperties = 0; |
| 820 buildImageProperties() { |
| 821 var o = new api.ImageProperties(); |
| 822 buildCounterImageProperties++; |
| 823 if (buildCounterImageProperties < 3) { |
| 824 o.brightness = 42.0; |
| 825 o.contrast = 42.0; |
| 826 o.cropProperties = buildCropProperties(); |
| 827 o.link = buildLink(); |
| 828 o.outline = buildOutline(); |
| 829 o.recolor = buildRecolor(); |
| 830 o.shadow = buildShadow(); |
| 831 o.transparency = 42.0; |
| 832 } |
| 833 buildCounterImageProperties--; |
| 834 return o; |
| 835 } |
| 836 |
| 837 checkImageProperties(api.ImageProperties o) { |
| 838 buildCounterImageProperties++; |
| 839 if (buildCounterImageProperties < 3) { |
| 840 unittest.expect(o.brightness, unittest.equals(42.0)); |
| 841 unittest.expect(o.contrast, unittest.equals(42.0)); |
| 842 checkCropProperties(o.cropProperties); |
| 843 checkLink(o.link); |
| 844 checkOutline(o.outline); |
| 845 checkRecolor(o.recolor); |
| 846 checkShadow(o.shadow); |
| 847 unittest.expect(o.transparency, unittest.equals(42.0)); |
| 848 } |
| 849 buildCounterImageProperties--; |
| 850 } |
| 851 |
| 852 core.int buildCounterInsertTableColumnsRequest = 0; |
| 853 buildInsertTableColumnsRequest() { |
| 854 var o = new api.InsertTableColumnsRequest(); |
| 855 buildCounterInsertTableColumnsRequest++; |
| 856 if (buildCounterInsertTableColumnsRequest < 3) { |
| 857 o.cellLocation = buildTableCellLocation(); |
| 858 o.insertRight = true; |
| 859 o.number = 42; |
| 860 o.tableObjectId = "foo"; |
| 861 } |
| 862 buildCounterInsertTableColumnsRequest--; |
| 863 return o; |
| 864 } |
| 865 |
| 866 checkInsertTableColumnsRequest(api.InsertTableColumnsRequest o) { |
| 867 buildCounterInsertTableColumnsRequest++; |
| 868 if (buildCounterInsertTableColumnsRequest < 3) { |
| 869 checkTableCellLocation(o.cellLocation); |
| 870 unittest.expect(o.insertRight, unittest.isTrue); |
| 871 unittest.expect(o.number, unittest.equals(42)); |
| 872 unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| 873 } |
| 874 buildCounterInsertTableColumnsRequest--; |
| 875 } |
| 876 |
| 877 core.int buildCounterInsertTableRowsRequest = 0; |
| 878 buildInsertTableRowsRequest() { |
| 879 var o = new api.InsertTableRowsRequest(); |
| 880 buildCounterInsertTableRowsRequest++; |
| 881 if (buildCounterInsertTableRowsRequest < 3) { |
| 882 o.cellLocation = buildTableCellLocation(); |
| 883 o.insertBelow = true; |
| 884 o.number = 42; |
| 885 o.tableObjectId = "foo"; |
| 886 } |
| 887 buildCounterInsertTableRowsRequest--; |
| 888 return o; |
| 889 } |
| 890 |
| 891 checkInsertTableRowsRequest(api.InsertTableRowsRequest o) { |
| 892 buildCounterInsertTableRowsRequest++; |
| 893 if (buildCounterInsertTableRowsRequest < 3) { |
| 894 checkTableCellLocation(o.cellLocation); |
| 895 unittest.expect(o.insertBelow, unittest.isTrue); |
| 896 unittest.expect(o.number, unittest.equals(42)); |
| 897 unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| 898 } |
| 899 buildCounterInsertTableRowsRequest--; |
| 900 } |
| 901 |
| 902 core.int buildCounterInsertTextRequest = 0; |
| 903 buildInsertTextRequest() { |
| 904 var o = new api.InsertTextRequest(); |
| 905 buildCounterInsertTextRequest++; |
| 906 if (buildCounterInsertTextRequest < 3) { |
| 907 o.cellLocation = buildTableCellLocation(); |
| 908 o.insertionIndex = 42; |
| 909 o.objectId = "foo"; |
| 910 o.text = "foo"; |
| 911 } |
| 912 buildCounterInsertTextRequest--; |
| 913 return o; |
| 914 } |
| 915 |
| 916 checkInsertTextRequest(api.InsertTextRequest o) { |
| 917 buildCounterInsertTextRequest++; |
| 918 if (buildCounterInsertTextRequest < 3) { |
| 919 checkTableCellLocation(o.cellLocation); |
| 920 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 921 unittest.expect(o.objectId, unittest.equals('foo')); |
| 922 unittest.expect(o.text, unittest.equals('foo')); |
| 923 } |
| 924 buildCounterInsertTextRequest--; |
| 925 } |
| 926 |
| 927 core.int buildCounterLayoutProperties = 0; |
| 928 buildLayoutProperties() { |
| 929 var o = new api.LayoutProperties(); |
| 930 buildCounterLayoutProperties++; |
| 931 if (buildCounterLayoutProperties < 3) { |
| 932 o.displayName = "foo"; |
| 933 o.masterObjectId = "foo"; |
| 934 o.name = "foo"; |
| 935 } |
| 936 buildCounterLayoutProperties--; |
| 937 return o; |
| 938 } |
| 939 |
| 940 checkLayoutProperties(api.LayoutProperties o) { |
| 941 buildCounterLayoutProperties++; |
| 942 if (buildCounterLayoutProperties < 3) { |
| 943 unittest.expect(o.displayName, unittest.equals('foo')); |
| 944 unittest.expect(o.masterObjectId, unittest.equals('foo')); |
| 945 unittest.expect(o.name, unittest.equals('foo')); |
| 946 } |
| 947 buildCounterLayoutProperties--; |
| 948 } |
| 949 |
| 950 core.int buildCounterLayoutReference = 0; |
| 951 buildLayoutReference() { |
| 952 var o = new api.LayoutReference(); |
| 953 buildCounterLayoutReference++; |
| 954 if (buildCounterLayoutReference < 3) { |
| 955 o.layoutId = "foo"; |
| 956 o.predefinedLayout = "foo"; |
| 957 } |
| 958 buildCounterLayoutReference--; |
| 959 return o; |
| 960 } |
| 961 |
| 962 checkLayoutReference(api.LayoutReference o) { |
| 963 buildCounterLayoutReference++; |
| 964 if (buildCounterLayoutReference < 3) { |
| 965 unittest.expect(o.layoutId, unittest.equals('foo')); |
| 966 unittest.expect(o.predefinedLayout, unittest.equals('foo')); |
| 967 } |
| 968 buildCounterLayoutReference--; |
| 969 } |
| 970 |
| 971 core.int buildCounterLine = 0; |
| 972 buildLine() { |
| 973 var o = new api.Line(); |
| 974 buildCounterLine++; |
| 975 if (buildCounterLine < 3) { |
| 976 o.lineProperties = buildLineProperties(); |
| 977 o.lineType = "foo"; |
| 978 } |
| 979 buildCounterLine--; |
| 980 return o; |
| 981 } |
| 982 |
| 983 checkLine(api.Line o) { |
| 984 buildCounterLine++; |
| 985 if (buildCounterLine < 3) { |
| 986 checkLineProperties(o.lineProperties); |
| 987 unittest.expect(o.lineType, unittest.equals('foo')); |
| 988 } |
| 989 buildCounterLine--; |
| 990 } |
| 991 |
| 992 core.int buildCounterLineFill = 0; |
| 993 buildLineFill() { |
| 994 var o = new api.LineFill(); |
| 995 buildCounterLineFill++; |
| 996 if (buildCounterLineFill < 3) { |
| 997 o.solidFill = buildSolidFill(); |
| 998 } |
| 999 buildCounterLineFill--; |
| 1000 return o; |
| 1001 } |
| 1002 |
| 1003 checkLineFill(api.LineFill o) { |
| 1004 buildCounterLineFill++; |
| 1005 if (buildCounterLineFill < 3) { |
| 1006 checkSolidFill(o.solidFill); |
| 1007 } |
| 1008 buildCounterLineFill--; |
| 1009 } |
| 1010 |
| 1011 core.int buildCounterLineProperties = 0; |
| 1012 buildLineProperties() { |
| 1013 var o = new api.LineProperties(); |
| 1014 buildCounterLineProperties++; |
| 1015 if (buildCounterLineProperties < 3) { |
| 1016 o.dashStyle = "foo"; |
| 1017 o.endArrow = "foo"; |
| 1018 o.lineFill = buildLineFill(); |
| 1019 o.link = buildLink(); |
| 1020 o.startArrow = "foo"; |
| 1021 o.weight = buildDimension(); |
| 1022 } |
| 1023 buildCounterLineProperties--; |
| 1024 return o; |
| 1025 } |
| 1026 |
| 1027 checkLineProperties(api.LineProperties o) { |
| 1028 buildCounterLineProperties++; |
| 1029 if (buildCounterLineProperties < 3) { |
| 1030 unittest.expect(o.dashStyle, unittest.equals('foo')); |
| 1031 unittest.expect(o.endArrow, unittest.equals('foo')); |
| 1032 checkLineFill(o.lineFill); |
| 1033 checkLink(o.link); |
| 1034 unittest.expect(o.startArrow, unittest.equals('foo')); |
| 1035 checkDimension(o.weight); |
| 1036 } |
| 1037 buildCounterLineProperties--; |
| 1038 } |
| 1039 |
| 1040 core.int buildCounterLink = 0; |
| 1041 buildLink() { |
| 1042 var o = new api.Link(); |
| 1043 buildCounterLink++; |
| 1044 if (buildCounterLink < 3) { |
| 1045 o.pageObjectId = "foo"; |
| 1046 o.relativeLink = "foo"; |
| 1047 o.slideIndex = 42; |
| 1048 o.url = "foo"; |
| 1049 } |
| 1050 buildCounterLink--; |
| 1051 return o; |
| 1052 } |
| 1053 |
| 1054 checkLink(api.Link o) { |
| 1055 buildCounterLink++; |
| 1056 if (buildCounterLink < 3) { |
| 1057 unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| 1058 unittest.expect(o.relativeLink, unittest.equals('foo')); |
| 1059 unittest.expect(o.slideIndex, unittest.equals(42)); |
| 1060 unittest.expect(o.url, unittest.equals('foo')); |
| 1061 } |
| 1062 buildCounterLink--; |
| 1063 } |
| 1064 |
| 1065 buildUnnamed1662() { |
| 1066 var o = new core.Map<core.String, api.NestingLevel>(); |
| 1067 o["x"] = buildNestingLevel(); |
| 1068 o["y"] = buildNestingLevel(); |
| 1069 return o; |
| 1070 } |
| 1071 |
| 1072 checkUnnamed1662(core.Map<core.String, api.NestingLevel> o) { |
| 1073 unittest.expect(o, unittest.hasLength(2)); |
| 1074 checkNestingLevel(o["x"]); |
| 1075 checkNestingLevel(o["y"]); |
| 1076 } |
| 1077 |
| 1078 core.int buildCounterList = 0; |
| 1079 buildList() { |
| 1080 var o = new api.List(); |
| 1081 buildCounterList++; |
| 1082 if (buildCounterList < 3) { |
| 1083 o.listId = "foo"; |
| 1084 o.nestingLevel = buildUnnamed1662(); |
| 1085 } |
| 1086 buildCounterList--; |
| 1087 return o; |
| 1088 } |
| 1089 |
| 1090 checkList(api.List o) { |
| 1091 buildCounterList++; |
| 1092 if (buildCounterList < 3) { |
| 1093 unittest.expect(o.listId, unittest.equals('foo')); |
| 1094 checkUnnamed1662(o.nestingLevel); |
| 1095 } |
| 1096 buildCounterList--; |
| 1097 } |
| 1098 |
| 1099 core.int buildCounterNestingLevel = 0; |
| 1100 buildNestingLevel() { |
| 1101 var o = new api.NestingLevel(); |
| 1102 buildCounterNestingLevel++; |
| 1103 if (buildCounterNestingLevel < 3) { |
| 1104 o.bulletStyle = buildTextStyle(); |
| 1105 } |
| 1106 buildCounterNestingLevel--; |
| 1107 return o; |
| 1108 } |
| 1109 |
| 1110 checkNestingLevel(api.NestingLevel o) { |
| 1111 buildCounterNestingLevel++; |
| 1112 if (buildCounterNestingLevel < 3) { |
| 1113 checkTextStyle(o.bulletStyle); |
| 1114 } |
| 1115 buildCounterNestingLevel--; |
| 1116 } |
| 1117 |
| 1118 core.int buildCounterOpaqueColor = 0; |
| 1119 buildOpaqueColor() { |
| 1120 var o = new api.OpaqueColor(); |
| 1121 buildCounterOpaqueColor++; |
| 1122 if (buildCounterOpaqueColor < 3) { |
| 1123 o.rgbColor = buildRgbColor(); |
| 1124 o.themeColor = "foo"; |
| 1125 } |
| 1126 buildCounterOpaqueColor--; |
| 1127 return o; |
| 1128 } |
| 1129 |
| 1130 checkOpaqueColor(api.OpaqueColor o) { |
| 1131 buildCounterOpaqueColor++; |
| 1132 if (buildCounterOpaqueColor < 3) { |
| 1133 checkRgbColor(o.rgbColor); |
| 1134 unittest.expect(o.themeColor, unittest.equals('foo')); |
| 1135 } |
| 1136 buildCounterOpaqueColor--; |
| 1137 } |
| 1138 |
| 1139 core.int buildCounterOptionalColor = 0; |
| 1140 buildOptionalColor() { |
| 1141 var o = new api.OptionalColor(); |
| 1142 buildCounterOptionalColor++; |
| 1143 if (buildCounterOptionalColor < 3) { |
| 1144 o.opaqueColor = buildOpaqueColor(); |
| 1145 } |
| 1146 buildCounterOptionalColor--; |
| 1147 return o; |
| 1148 } |
| 1149 |
| 1150 checkOptionalColor(api.OptionalColor o) { |
| 1151 buildCounterOptionalColor++; |
| 1152 if (buildCounterOptionalColor < 3) { |
| 1153 checkOpaqueColor(o.opaqueColor); |
| 1154 } |
| 1155 buildCounterOptionalColor--; |
| 1156 } |
| 1157 |
| 1158 core.int buildCounterOutline = 0; |
| 1159 buildOutline() { |
| 1160 var o = new api.Outline(); |
| 1161 buildCounterOutline++; |
| 1162 if (buildCounterOutline < 3) { |
| 1163 o.dashStyle = "foo"; |
| 1164 o.outlineFill = buildOutlineFill(); |
| 1165 o.propertyState = "foo"; |
| 1166 o.weight = buildDimension(); |
| 1167 } |
| 1168 buildCounterOutline--; |
| 1169 return o; |
| 1170 } |
| 1171 |
| 1172 checkOutline(api.Outline o) { |
| 1173 buildCounterOutline++; |
| 1174 if (buildCounterOutline < 3) { |
| 1175 unittest.expect(o.dashStyle, unittest.equals('foo')); |
| 1176 checkOutlineFill(o.outlineFill); |
| 1177 unittest.expect(o.propertyState, unittest.equals('foo')); |
| 1178 checkDimension(o.weight); |
| 1179 } |
| 1180 buildCounterOutline--; |
| 1181 } |
| 1182 |
| 1183 core.int buildCounterOutlineFill = 0; |
| 1184 buildOutlineFill() { |
| 1185 var o = new api.OutlineFill(); |
| 1186 buildCounterOutlineFill++; |
| 1187 if (buildCounterOutlineFill < 3) { |
| 1188 o.solidFill = buildSolidFill(); |
| 1189 } |
| 1190 buildCounterOutlineFill--; |
| 1191 return o; |
| 1192 } |
| 1193 |
| 1194 checkOutlineFill(api.OutlineFill o) { |
| 1195 buildCounterOutlineFill++; |
| 1196 if (buildCounterOutlineFill < 3) { |
| 1197 checkSolidFill(o.solidFill); |
| 1198 } |
| 1199 buildCounterOutlineFill--; |
| 1200 } |
| 1201 |
| 1202 buildUnnamed1663() { |
| 1203 var o = new core.List<api.PageElement>(); |
| 1204 o.add(buildPageElement()); |
| 1205 o.add(buildPageElement()); |
| 1206 return o; |
| 1207 } |
| 1208 |
| 1209 checkUnnamed1663(core.List<api.PageElement> o) { |
| 1210 unittest.expect(o, unittest.hasLength(2)); |
| 1211 checkPageElement(o[0]); |
| 1212 checkPageElement(o[1]); |
| 1213 } |
| 1214 |
| 1215 core.int buildCounterPage = 0; |
| 1216 buildPage() { |
| 1217 var o = new api.Page(); |
| 1218 buildCounterPage++; |
| 1219 if (buildCounterPage < 3) { |
| 1220 o.layoutProperties = buildLayoutProperties(); |
| 1221 o.objectId = "foo"; |
| 1222 o.pageElements = buildUnnamed1663(); |
| 1223 o.pageProperties = buildPageProperties(); |
| 1224 o.pageType = "foo"; |
| 1225 o.slideProperties = buildSlideProperties(); |
| 1226 } |
| 1227 buildCounterPage--; |
| 1228 return o; |
| 1229 } |
| 1230 |
| 1231 checkPage(api.Page o) { |
| 1232 buildCounterPage++; |
| 1233 if (buildCounterPage < 3) { |
| 1234 checkLayoutProperties(o.layoutProperties); |
| 1235 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1236 checkUnnamed1663(o.pageElements); |
| 1237 checkPageProperties(o.pageProperties); |
| 1238 unittest.expect(o.pageType, unittest.equals('foo')); |
| 1239 checkSlideProperties(o.slideProperties); |
| 1240 } |
| 1241 buildCounterPage--; |
| 1242 } |
| 1243 |
| 1244 core.int buildCounterPageBackgroundFill = 0; |
| 1245 buildPageBackgroundFill() { |
| 1246 var o = new api.PageBackgroundFill(); |
| 1247 buildCounterPageBackgroundFill++; |
| 1248 if (buildCounterPageBackgroundFill < 3) { |
| 1249 o.propertyState = "foo"; |
| 1250 o.solidFill = buildSolidFill(); |
| 1251 o.stretchedPictureFill = buildStretchedPictureFill(); |
| 1252 } |
| 1253 buildCounterPageBackgroundFill--; |
| 1254 return o; |
| 1255 } |
| 1256 |
| 1257 checkPageBackgroundFill(api.PageBackgroundFill o) { |
| 1258 buildCounterPageBackgroundFill++; |
| 1259 if (buildCounterPageBackgroundFill < 3) { |
| 1260 unittest.expect(o.propertyState, unittest.equals('foo')); |
| 1261 checkSolidFill(o.solidFill); |
| 1262 checkStretchedPictureFill(o.stretchedPictureFill); |
| 1263 } |
| 1264 buildCounterPageBackgroundFill--; |
| 1265 } |
| 1266 |
| 1267 core.int buildCounterPageElement = 0; |
| 1268 buildPageElement() { |
| 1269 var o = new api.PageElement(); |
| 1270 buildCounterPageElement++; |
| 1271 if (buildCounterPageElement < 3) { |
| 1272 o.description = "foo"; |
| 1273 o.elementGroup = buildGroup(); |
| 1274 o.image = buildImage(); |
| 1275 o.line = buildLine(); |
| 1276 o.objectId = "foo"; |
| 1277 o.shape = buildShape(); |
| 1278 o.sheetsChart = buildSheetsChart(); |
| 1279 o.size = buildSize(); |
| 1280 o.table = buildTable(); |
| 1281 o.title = "foo"; |
| 1282 o.transform = buildAffineTransform(); |
| 1283 o.video = buildVideo(); |
| 1284 o.wordArt = buildWordArt(); |
| 1285 } |
| 1286 buildCounterPageElement--; |
| 1287 return o; |
| 1288 } |
| 1289 |
| 1290 checkPageElement(api.PageElement o) { |
| 1291 buildCounterPageElement++; |
| 1292 if (buildCounterPageElement < 3) { |
| 1293 unittest.expect(o.description, unittest.equals('foo')); |
| 1294 checkGroup(o.elementGroup); |
| 1295 checkImage(o.image); |
| 1296 checkLine(o.line); |
| 1297 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1298 checkShape(o.shape); |
| 1299 checkSheetsChart(o.sheetsChart); |
| 1300 checkSize(o.size); |
| 1301 checkTable(o.table); |
| 1302 unittest.expect(o.title, unittest.equals('foo')); |
| 1303 checkAffineTransform(o.transform); |
| 1304 checkVideo(o.video); |
| 1305 checkWordArt(o.wordArt); |
| 1306 } |
| 1307 buildCounterPageElement--; |
| 1308 } |
| 1309 |
| 1310 core.int buildCounterPageElementProperties = 0; |
| 1311 buildPageElementProperties() { |
| 1312 var o = new api.PageElementProperties(); |
| 1313 buildCounterPageElementProperties++; |
| 1314 if (buildCounterPageElementProperties < 3) { |
| 1315 o.pageObjectId = "foo"; |
| 1316 o.size = buildSize(); |
| 1317 o.transform = buildAffineTransform(); |
| 1318 } |
| 1319 buildCounterPageElementProperties--; |
| 1320 return o; |
| 1321 } |
| 1322 |
| 1323 checkPageElementProperties(api.PageElementProperties o) { |
| 1324 buildCounterPageElementProperties++; |
| 1325 if (buildCounterPageElementProperties < 3) { |
| 1326 unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| 1327 checkSize(o.size); |
| 1328 checkAffineTransform(o.transform); |
| 1329 } |
| 1330 buildCounterPageElementProperties--; |
| 1331 } |
| 1332 |
| 1333 core.int buildCounterPageProperties = 0; |
| 1334 buildPageProperties() { |
| 1335 var o = new api.PageProperties(); |
| 1336 buildCounterPageProperties++; |
| 1337 if (buildCounterPageProperties < 3) { |
| 1338 o.colorScheme = buildColorScheme(); |
| 1339 o.pageBackgroundFill = buildPageBackgroundFill(); |
| 1340 } |
| 1341 buildCounterPageProperties--; |
| 1342 return o; |
| 1343 } |
| 1344 |
| 1345 checkPageProperties(api.PageProperties o) { |
| 1346 buildCounterPageProperties++; |
| 1347 if (buildCounterPageProperties < 3) { |
| 1348 checkColorScheme(o.colorScheme); |
| 1349 checkPageBackgroundFill(o.pageBackgroundFill); |
| 1350 } |
| 1351 buildCounterPageProperties--; |
| 1352 } |
| 1353 |
| 1354 core.int buildCounterParagraphMarker = 0; |
| 1355 buildParagraphMarker() { |
| 1356 var o = new api.ParagraphMarker(); |
| 1357 buildCounterParagraphMarker++; |
| 1358 if (buildCounterParagraphMarker < 3) { |
| 1359 o.bullet = buildBullet(); |
| 1360 o.style = buildParagraphStyle(); |
| 1361 } |
| 1362 buildCounterParagraphMarker--; |
| 1363 return o; |
| 1364 } |
| 1365 |
| 1366 checkParagraphMarker(api.ParagraphMarker o) { |
| 1367 buildCounterParagraphMarker++; |
| 1368 if (buildCounterParagraphMarker < 3) { |
| 1369 checkBullet(o.bullet); |
| 1370 checkParagraphStyle(o.style); |
| 1371 } |
| 1372 buildCounterParagraphMarker--; |
| 1373 } |
| 1374 |
| 1375 core.int buildCounterParagraphStyle = 0; |
| 1376 buildParagraphStyle() { |
| 1377 var o = new api.ParagraphStyle(); |
| 1378 buildCounterParagraphStyle++; |
| 1379 if (buildCounterParagraphStyle < 3) { |
| 1380 o.alignment = "foo"; |
| 1381 o.direction = "foo"; |
| 1382 o.indentEnd = buildDimension(); |
| 1383 o.indentFirstLine = buildDimension(); |
| 1384 o.indentStart = buildDimension(); |
| 1385 o.lineSpacing = 42.0; |
| 1386 o.spaceAbove = buildDimension(); |
| 1387 o.spaceBelow = buildDimension(); |
| 1388 o.spacingMode = "foo"; |
| 1389 } |
| 1390 buildCounterParagraphStyle--; |
| 1391 return o; |
| 1392 } |
| 1393 |
| 1394 checkParagraphStyle(api.ParagraphStyle o) { |
| 1395 buildCounterParagraphStyle++; |
| 1396 if (buildCounterParagraphStyle < 3) { |
| 1397 unittest.expect(o.alignment, unittest.equals('foo')); |
| 1398 unittest.expect(o.direction, unittest.equals('foo')); |
| 1399 checkDimension(o.indentEnd); |
| 1400 checkDimension(o.indentFirstLine); |
| 1401 checkDimension(o.indentStart); |
| 1402 unittest.expect(o.lineSpacing, unittest.equals(42.0)); |
| 1403 checkDimension(o.spaceAbove); |
| 1404 checkDimension(o.spaceBelow); |
| 1405 unittest.expect(o.spacingMode, unittest.equals('foo')); |
| 1406 } |
| 1407 buildCounterParagraphStyle--; |
| 1408 } |
| 1409 |
| 1410 core.int buildCounterPlaceholder = 0; |
| 1411 buildPlaceholder() { |
| 1412 var o = new api.Placeholder(); |
| 1413 buildCounterPlaceholder++; |
| 1414 if (buildCounterPlaceholder < 3) { |
| 1415 o.index = 42; |
| 1416 o.parentObjectId = "foo"; |
| 1417 o.type = "foo"; |
| 1418 } |
| 1419 buildCounterPlaceholder--; |
| 1420 return o; |
| 1421 } |
| 1422 |
| 1423 checkPlaceholder(api.Placeholder o) { |
| 1424 buildCounterPlaceholder++; |
| 1425 if (buildCounterPlaceholder < 3) { |
| 1426 unittest.expect(o.index, unittest.equals(42)); |
| 1427 unittest.expect(o.parentObjectId, unittest.equals('foo')); |
| 1428 unittest.expect(o.type, unittest.equals('foo')); |
| 1429 } |
| 1430 buildCounterPlaceholder--; |
| 1431 } |
| 1432 |
| 1433 buildUnnamed1664() { |
| 1434 var o = new core.List<api.Page>(); |
| 1435 o.add(buildPage()); |
| 1436 o.add(buildPage()); |
| 1437 return o; |
| 1438 } |
| 1439 |
| 1440 checkUnnamed1664(core.List<api.Page> o) { |
| 1441 unittest.expect(o, unittest.hasLength(2)); |
| 1442 checkPage(o[0]); |
| 1443 checkPage(o[1]); |
| 1444 } |
| 1445 |
| 1446 buildUnnamed1665() { |
| 1447 var o = new core.List<api.Page>(); |
| 1448 o.add(buildPage()); |
| 1449 o.add(buildPage()); |
| 1450 return o; |
| 1451 } |
| 1452 |
| 1453 checkUnnamed1665(core.List<api.Page> o) { |
| 1454 unittest.expect(o, unittest.hasLength(2)); |
| 1455 checkPage(o[0]); |
| 1456 checkPage(o[1]); |
| 1457 } |
| 1458 |
| 1459 buildUnnamed1666() { |
| 1460 var o = new core.List<api.Page>(); |
| 1461 o.add(buildPage()); |
| 1462 o.add(buildPage()); |
| 1463 return o; |
| 1464 } |
| 1465 |
| 1466 checkUnnamed1666(core.List<api.Page> o) { |
| 1467 unittest.expect(o, unittest.hasLength(2)); |
| 1468 checkPage(o[0]); |
| 1469 checkPage(o[1]); |
| 1470 } |
| 1471 |
| 1472 core.int buildCounterPresentation = 0; |
| 1473 buildPresentation() { |
| 1474 var o = new api.Presentation(); |
| 1475 buildCounterPresentation++; |
| 1476 if (buildCounterPresentation < 3) { |
| 1477 o.layouts = buildUnnamed1664(); |
| 1478 o.locale = "foo"; |
| 1479 o.masters = buildUnnamed1665(); |
| 1480 o.pageSize = buildSize(); |
| 1481 o.presentationId = "foo"; |
| 1482 o.slides = buildUnnamed1666(); |
| 1483 o.title = "foo"; |
| 1484 } |
| 1485 buildCounterPresentation--; |
| 1486 return o; |
| 1487 } |
| 1488 |
| 1489 checkPresentation(api.Presentation o) { |
| 1490 buildCounterPresentation++; |
| 1491 if (buildCounterPresentation < 3) { |
| 1492 checkUnnamed1664(o.layouts); |
| 1493 unittest.expect(o.locale, unittest.equals('foo')); |
| 1494 checkUnnamed1665(o.masters); |
| 1495 checkSize(o.pageSize); |
| 1496 unittest.expect(o.presentationId, unittest.equals('foo')); |
| 1497 checkUnnamed1666(o.slides); |
| 1498 unittest.expect(o.title, unittest.equals('foo')); |
| 1499 } |
| 1500 buildCounterPresentation--; |
| 1501 } |
| 1502 |
| 1503 core.int buildCounterRange = 0; |
| 1504 buildRange() { |
| 1505 var o = new api.Range(); |
| 1506 buildCounterRange++; |
| 1507 if (buildCounterRange < 3) { |
| 1508 o.endIndex = 42; |
| 1509 o.startIndex = 42; |
| 1510 o.type = "foo"; |
| 1511 } |
| 1512 buildCounterRange--; |
| 1513 return o; |
| 1514 } |
| 1515 |
| 1516 checkRange(api.Range o) { |
| 1517 buildCounterRange++; |
| 1518 if (buildCounterRange < 3) { |
| 1519 unittest.expect(o.endIndex, unittest.equals(42)); |
| 1520 unittest.expect(o.startIndex, unittest.equals(42)); |
| 1521 unittest.expect(o.type, unittest.equals('foo')); |
| 1522 } |
| 1523 buildCounterRange--; |
| 1524 } |
| 1525 |
| 1526 buildUnnamed1667() { |
| 1527 var o = new core.List<api.ColorStop>(); |
| 1528 o.add(buildColorStop()); |
| 1529 o.add(buildColorStop()); |
| 1530 return o; |
| 1531 } |
| 1532 |
| 1533 checkUnnamed1667(core.List<api.ColorStop> o) { |
| 1534 unittest.expect(o, unittest.hasLength(2)); |
| 1535 checkColorStop(o[0]); |
| 1536 checkColorStop(o[1]); |
| 1537 } |
| 1538 |
| 1539 core.int buildCounterRecolor = 0; |
| 1540 buildRecolor() { |
| 1541 var o = new api.Recolor(); |
| 1542 buildCounterRecolor++; |
| 1543 if (buildCounterRecolor < 3) { |
| 1544 o.recolorStops = buildUnnamed1667(); |
| 1545 } |
| 1546 buildCounterRecolor--; |
| 1547 return o; |
| 1548 } |
| 1549 |
| 1550 checkRecolor(api.Recolor o) { |
| 1551 buildCounterRecolor++; |
| 1552 if (buildCounterRecolor < 3) { |
| 1553 checkUnnamed1667(o.recolorStops); |
| 1554 } |
| 1555 buildCounterRecolor--; |
| 1556 } |
| 1557 |
| 1558 core.int buildCounterRefreshSheetsChartRequest = 0; |
| 1559 buildRefreshSheetsChartRequest() { |
| 1560 var o = new api.RefreshSheetsChartRequest(); |
| 1561 buildCounterRefreshSheetsChartRequest++; |
| 1562 if (buildCounterRefreshSheetsChartRequest < 3) { |
| 1563 o.objectId = "foo"; |
| 1564 } |
| 1565 buildCounterRefreshSheetsChartRequest--; |
| 1566 return o; |
| 1567 } |
| 1568 |
| 1569 checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { |
| 1570 buildCounterRefreshSheetsChartRequest++; |
| 1571 if (buildCounterRefreshSheetsChartRequest < 3) { |
| 1572 unittest.expect(o.objectId, unittest.equals('foo')); |
| 1573 } |
| 1574 buildCounterRefreshSheetsChartRequest--; |
| 1575 } |
| 1576 |
| 1577 core.int buildCounterReplaceAllShapesWithImageRequest = 0; |
| 1578 buildReplaceAllShapesWithImageRequest() { |
| 1579 var o = new api.ReplaceAllShapesWithImageRequest(); |
| 1580 buildCounterReplaceAllShapesWithImageRequest++; |
| 1581 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| 1582 o.containsText = buildSubstringMatchCriteria(); |
| 1583 o.imageUrl = "foo"; |
| 1584 o.replaceMethod = "foo"; |
| 1585 } |
| 1586 buildCounterReplaceAllShapesWithImageRequest--; |
| 1587 return o; |
| 1588 } |
| 1589 |
| 1590 checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { |
| 1591 buildCounterReplaceAllShapesWithImageRequest++; |
| 1592 if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| 1593 checkSubstringMatchCriteria(o.containsText); |
| 1594 unittest.expect(o.imageUrl, unittest.equals('foo')); |
| 1595 unittest.expect(o.replaceMethod, unittest.equals('foo')); |
| 1596 } |
| 1597 buildCounterReplaceAllShapesWithImageRequest--; |
| 1598 } |
| 1599 |
| 1600 core.int buildCounterReplaceAllShapesWithImageResponse = 0; |
| 1601 buildReplaceAllShapesWithImageResponse() { |
| 1602 var o = new api.ReplaceAllShapesWithImageResponse(); |
| 1603 buildCounterReplaceAllShapesWithImageResponse++; |
| 1604 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| 1605 o.occurrencesChanged = 42; |
| 1606 } |
| 1607 buildCounterReplaceAllShapesWithImageResponse--; |
| 1608 return o; |
| 1609 } |
| 1610 |
| 1611 checkReplaceAllShapesWithImageResponse(api.ReplaceAllShapesWithImageResponse o)
{ |
| 1612 buildCounterReplaceAllShapesWithImageResponse++; |
| 1613 if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| 1614 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| 1615 } |
| 1616 buildCounterReplaceAllShapesWithImageResponse--; |
| 1617 } |
| 1618 |
| 1619 core.int buildCounterReplaceAllTextRequest = 0; |
| 1620 buildReplaceAllTextRequest() { |
| 1621 var o = new api.ReplaceAllTextRequest(); |
| 1622 buildCounterReplaceAllTextRequest++; |
| 1623 if (buildCounterReplaceAllTextRequest < 3) { |
| 1624 o.containsText = buildSubstringMatchCriteria(); |
| 1625 o.replaceText = "foo"; |
| 1626 } |
| 1627 buildCounterReplaceAllTextRequest--; |
| 1628 return o; |
| 1629 } |
| 1630 |
| 1631 checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { |
| 1632 buildCounterReplaceAllTextRequest++; |
| 1633 if (buildCounterReplaceAllTextRequest < 3) { |
| 1634 checkSubstringMatchCriteria(o.containsText); |
| 1635 unittest.expect(o.replaceText, unittest.equals('foo')); |
| 1636 } |
| 1637 buildCounterReplaceAllTextRequest--; |
| 1638 } |
| 1639 |
| 1640 core.int buildCounterReplaceAllTextResponse = 0; |
| 1641 buildReplaceAllTextResponse() { |
| 1642 var o = new api.ReplaceAllTextResponse(); |
| 1643 buildCounterReplaceAllTextResponse++; |
| 1644 if (buildCounterReplaceAllTextResponse < 3) { |
| 1645 o.occurrencesChanged = 42; |
| 1646 } |
| 1647 buildCounterReplaceAllTextResponse--; |
| 1648 return o; |
| 1649 } |
| 1650 |
| 1651 checkReplaceAllTextResponse(api.ReplaceAllTextResponse o) { |
| 1652 buildCounterReplaceAllTextResponse++; |
| 1653 if (buildCounterReplaceAllTextResponse < 3) { |
| 1654 unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| 1655 } |
| 1656 buildCounterReplaceAllTextResponse--; |
| 1657 } |
| 1658 |
| 1659 core.int buildCounterRequest = 0; |
| 1660 buildRequest() { |
| 1661 var o = new api.Request(); |
| 1662 buildCounterRequest++; |
| 1663 if (buildCounterRequest < 3) { |
| 1664 o.createImage = buildCreateImageRequest(); |
| 1665 o.createLine = buildCreateLineRequest(); |
| 1666 o.createParagraphBullets = buildCreateParagraphBulletsRequest(); |
| 1667 o.createShape = buildCreateShapeRequest(); |
| 1668 o.createSheetsChart = buildCreateSheetsChartRequest(); |
| 1669 o.createSlide = buildCreateSlideRequest(); |
| 1670 o.createTable = buildCreateTableRequest(); |
| 1671 o.createVideo = buildCreateVideoRequest(); |
| 1672 o.deleteObject = buildDeleteObjectRequest(); |
| 1673 o.deleteTableColumn = buildDeleteTableColumnRequest(); |
| 1674 o.deleteTableRow = buildDeleteTableRowRequest(); |
| 1675 o.deleteText = buildDeleteTextRequest(); |
| 1676 o.duplicateObject = buildDuplicateObjectRequest(); |
| 1677 o.insertTableColumns = buildInsertTableColumnsRequest(); |
| 1678 o.insertTableRows = buildInsertTableRowsRequest(); |
| 1679 o.insertText = buildInsertTextRequest(); |
| 1680 o.refreshSheetsChart = buildRefreshSheetsChartRequest(); |
| 1681 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageRequest(); |
| 1682 o.replaceAllText = buildReplaceAllTextRequest(); |
| 1683 o.updateImageProperties = buildUpdateImagePropertiesRequest(); |
| 1684 o.updateLineProperties = buildUpdateLinePropertiesRequest(); |
| 1685 o.updatePageElementTransform = buildUpdatePageElementTransformRequest(); |
| 1686 o.updatePageProperties = buildUpdatePagePropertiesRequest(); |
| 1687 o.updateShapeProperties = buildUpdateShapePropertiesRequest(); |
| 1688 o.updateSlidesPosition = buildUpdateSlidesPositionRequest(); |
| 1689 o.updateTableCellProperties = buildUpdateTableCellPropertiesRequest(); |
| 1690 o.updateTextStyle = buildUpdateTextStyleRequest(); |
| 1691 o.updateVideoProperties = buildUpdateVideoPropertiesRequest(); |
| 1692 } |
| 1693 buildCounterRequest--; |
| 1694 return o; |
| 1695 } |
| 1696 |
| 1697 checkRequest(api.Request o) { |
| 1698 buildCounterRequest++; |
| 1699 if (buildCounterRequest < 3) { |
| 1700 checkCreateImageRequest(o.createImage); |
| 1701 checkCreateLineRequest(o.createLine); |
| 1702 checkCreateParagraphBulletsRequest(o.createParagraphBullets); |
| 1703 checkCreateShapeRequest(o.createShape); |
| 1704 checkCreateSheetsChartRequest(o.createSheetsChart); |
| 1705 checkCreateSlideRequest(o.createSlide); |
| 1706 checkCreateTableRequest(o.createTable); |
| 1707 checkCreateVideoRequest(o.createVideo); |
| 1708 checkDeleteObjectRequest(o.deleteObject); |
| 1709 checkDeleteTableColumnRequest(o.deleteTableColumn); |
| 1710 checkDeleteTableRowRequest(o.deleteTableRow); |
| 1711 checkDeleteTextRequest(o.deleteText); |
| 1712 checkDuplicateObjectRequest(o.duplicateObject); |
| 1713 checkInsertTableColumnsRequest(o.insertTableColumns); |
| 1714 checkInsertTableRowsRequest(o.insertTableRows); |
| 1715 checkInsertTextRequest(o.insertText); |
| 1716 checkRefreshSheetsChartRequest(o.refreshSheetsChart); |
| 1717 checkReplaceAllShapesWithImageRequest(o.replaceAllShapesWithImage); |
| 1718 checkReplaceAllTextRequest(o.replaceAllText); |
| 1719 checkUpdateImagePropertiesRequest(o.updateImageProperties); |
| 1720 checkUpdateLinePropertiesRequest(o.updateLineProperties); |
| 1721 checkUpdatePageElementTransformRequest(o.updatePageElementTransform); |
| 1722 checkUpdatePagePropertiesRequest(o.updatePageProperties); |
| 1723 checkUpdateShapePropertiesRequest(o.updateShapeProperties); |
| 1724 checkUpdateSlidesPositionRequest(o.updateSlidesPosition); |
| 1725 checkUpdateTableCellPropertiesRequest(o.updateTableCellProperties); |
| 1726 checkUpdateTextStyleRequest(o.updateTextStyle); |
| 1727 checkUpdateVideoPropertiesRequest(o.updateVideoProperties); |
| 1728 } |
| 1729 buildCounterRequest--; |
| 1730 } |
| 1731 |
| 1732 core.int buildCounterResponse = 0; |
| 1733 buildResponse() { |
| 1734 var o = new api.Response(); |
| 1735 buildCounterResponse++; |
| 1736 if (buildCounterResponse < 3) { |
| 1737 o.createImage = buildCreateImageResponse(); |
| 1738 o.createLine = buildCreateLineResponse(); |
| 1739 o.createShape = buildCreateShapeResponse(); |
| 1740 o.createSheetsChart = buildCreateSheetsChartResponse(); |
| 1741 o.createSlide = buildCreateSlideResponse(); |
| 1742 o.createTable = buildCreateTableResponse(); |
| 1743 o.createVideo = buildCreateVideoResponse(); |
| 1744 o.duplicateObject = buildDuplicateObjectResponse(); |
| 1745 o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageResponse(); |
| 1746 o.replaceAllText = buildReplaceAllTextResponse(); |
| 1747 } |
| 1748 buildCounterResponse--; |
| 1749 return o; |
| 1750 } |
| 1751 |
| 1752 checkResponse(api.Response o) { |
| 1753 buildCounterResponse++; |
| 1754 if (buildCounterResponse < 3) { |
| 1755 checkCreateImageResponse(o.createImage); |
| 1756 checkCreateLineResponse(o.createLine); |
| 1757 checkCreateShapeResponse(o.createShape); |
| 1758 checkCreateSheetsChartResponse(o.createSheetsChart); |
| 1759 checkCreateSlideResponse(o.createSlide); |
| 1760 checkCreateTableResponse(o.createTable); |
| 1761 checkCreateVideoResponse(o.createVideo); |
| 1762 checkDuplicateObjectResponse(o.duplicateObject); |
| 1763 checkReplaceAllShapesWithImageResponse(o.replaceAllShapesWithImage); |
| 1764 checkReplaceAllTextResponse(o.replaceAllText); |
| 1765 } |
| 1766 buildCounterResponse--; |
| 1767 } |
| 1768 |
| 1769 core.int buildCounterRgbColor = 0; |
| 1770 buildRgbColor() { |
| 1771 var o = new api.RgbColor(); |
| 1772 buildCounterRgbColor++; |
| 1773 if (buildCounterRgbColor < 3) { |
| 1774 o.blue = 42.0; |
| 1775 o.green = 42.0; |
| 1776 o.red = 42.0; |
| 1777 } |
| 1778 buildCounterRgbColor--; |
| 1779 return o; |
| 1780 } |
| 1781 |
| 1782 checkRgbColor(api.RgbColor o) { |
| 1783 buildCounterRgbColor++; |
| 1784 if (buildCounterRgbColor < 3) { |
| 1785 unittest.expect(o.blue, unittest.equals(42.0)); |
| 1786 unittest.expect(o.green, unittest.equals(42.0)); |
| 1787 unittest.expect(o.red, unittest.equals(42.0)); |
| 1788 } |
| 1789 buildCounterRgbColor--; |
| 1790 } |
| 1791 |
| 1792 core.int buildCounterShadow = 0; |
| 1793 buildShadow() { |
| 1794 var o = new api.Shadow(); |
| 1795 buildCounterShadow++; |
| 1796 if (buildCounterShadow < 3) { |
| 1797 o.alignment = "foo"; |
| 1798 o.alpha = 42.0; |
| 1799 o.blurRadius = buildDimension(); |
| 1800 o.color = buildOpaqueColor(); |
| 1801 o.propertyState = "foo"; |
| 1802 o.rotateWithShape = true; |
| 1803 o.transform = buildAffineTransform(); |
| 1804 o.type = "foo"; |
| 1805 } |
| 1806 buildCounterShadow--; |
| 1807 return o; |
| 1808 } |
| 1809 |
| 1810 checkShadow(api.Shadow o) { |
| 1811 buildCounterShadow++; |
| 1812 if (buildCounterShadow < 3) { |
| 1813 unittest.expect(o.alignment, unittest.equals('foo')); |
| 1814 unittest.expect(o.alpha, unittest.equals(42.0)); |
| 1815 checkDimension(o.blurRadius); |
| 1816 checkOpaqueColor(o.color); |
| 1817 unittest.expect(o.propertyState, unittest.equals('foo')); |
| 1818 unittest.expect(o.rotateWithShape, unittest.isTrue); |
| 1819 checkAffineTransform(o.transform); |
| 1820 unittest.expect(o.type, unittest.equals('foo')); |
| 1821 } |
| 1822 buildCounterShadow--; |
| 1823 } |
| 1824 |
| 1825 core.int buildCounterShape = 0; |
| 1826 buildShape() { |
| 1827 var o = new api.Shape(); |
| 1828 buildCounterShape++; |
| 1829 if (buildCounterShape < 3) { |
| 1830 o.placeholder = buildPlaceholder(); |
| 1831 o.shapeProperties = buildShapeProperties(); |
| 1832 o.shapeType = "foo"; |
| 1833 o.text = buildTextContent(); |
| 1834 } |
| 1835 buildCounterShape--; |
| 1836 return o; |
| 1837 } |
| 1838 |
| 1839 checkShape(api.Shape o) { |
| 1840 buildCounterShape++; |
| 1841 if (buildCounterShape < 3) { |
| 1842 checkPlaceholder(o.placeholder); |
| 1843 checkShapeProperties(o.shapeProperties); |
| 1844 unittest.expect(o.shapeType, unittest.equals('foo')); |
| 1845 checkTextContent(o.text); |
| 1846 } |
| 1847 buildCounterShape--; |
| 1848 } |
| 1849 |
| 1850 core.int buildCounterShapeBackgroundFill = 0; |
| 1851 buildShapeBackgroundFill() { |
| 1852 var o = new api.ShapeBackgroundFill(); |
| 1853 buildCounterShapeBackgroundFill++; |
| 1854 if (buildCounterShapeBackgroundFill < 3) { |
| 1855 o.propertyState = "foo"; |
| 1856 o.solidFill = buildSolidFill(); |
| 1857 } |
| 1858 buildCounterShapeBackgroundFill--; |
| 1859 return o; |
| 1860 } |
| 1861 |
| 1862 checkShapeBackgroundFill(api.ShapeBackgroundFill o) { |
| 1863 buildCounterShapeBackgroundFill++; |
| 1864 if (buildCounterShapeBackgroundFill < 3) { |
| 1865 unittest.expect(o.propertyState, unittest.equals('foo')); |
| 1866 checkSolidFill(o.solidFill); |
| 1867 } |
| 1868 buildCounterShapeBackgroundFill--; |
| 1869 } |
| 1870 |
| 1871 core.int buildCounterShapeProperties = 0; |
| 1872 buildShapeProperties() { |
| 1873 var o = new api.ShapeProperties(); |
| 1874 buildCounterShapeProperties++; |
| 1875 if (buildCounterShapeProperties < 3) { |
| 1876 o.link = buildLink(); |
| 1877 o.outline = buildOutline(); |
| 1878 o.shadow = buildShadow(); |
| 1879 o.shapeBackgroundFill = buildShapeBackgroundFill(); |
| 1880 } |
| 1881 buildCounterShapeProperties--; |
| 1882 return o; |
| 1883 } |
| 1884 |
| 1885 checkShapeProperties(api.ShapeProperties o) { |
| 1886 buildCounterShapeProperties++; |
| 1887 if (buildCounterShapeProperties < 3) { |
| 1888 checkLink(o.link); |
| 1889 checkOutline(o.outline); |
| 1890 checkShadow(o.shadow); |
| 1891 checkShapeBackgroundFill(o.shapeBackgroundFill); |
| 1892 } |
| 1893 buildCounterShapeProperties--; |
| 1894 } |
| 1895 |
| 1896 core.int buildCounterSheetsChart = 0; |
| 1897 buildSheetsChart() { |
| 1898 var o = new api.SheetsChart(); |
| 1899 buildCounterSheetsChart++; |
| 1900 if (buildCounterSheetsChart < 3) { |
| 1901 o.chartId = 42; |
| 1902 o.contentUrl = "foo"; |
| 1903 o.sheetsChartProperties = buildSheetsChartProperties(); |
| 1904 o.spreadsheetId = "foo"; |
| 1905 } |
| 1906 buildCounterSheetsChart--; |
| 1907 return o; |
| 1908 } |
| 1909 |
| 1910 checkSheetsChart(api.SheetsChart o) { |
| 1911 buildCounterSheetsChart++; |
| 1912 if (buildCounterSheetsChart < 3) { |
| 1913 unittest.expect(o.chartId, unittest.equals(42)); |
| 1914 unittest.expect(o.contentUrl, unittest.equals('foo')); |
| 1915 checkSheetsChartProperties(o.sheetsChartProperties); |
| 1916 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| 1917 } |
| 1918 buildCounterSheetsChart--; |
| 1919 } |
| 1920 |
| 1921 core.int buildCounterSheetsChartProperties = 0; |
| 1922 buildSheetsChartProperties() { |
| 1923 var o = new api.SheetsChartProperties(); |
| 1924 buildCounterSheetsChartProperties++; |
| 1925 if (buildCounterSheetsChartProperties < 3) { |
| 1926 o.chartImageProperties = buildImageProperties(); |
| 1927 } |
| 1928 buildCounterSheetsChartProperties--; |
| 1929 return o; |
| 1930 } |
| 1931 |
| 1932 checkSheetsChartProperties(api.SheetsChartProperties o) { |
| 1933 buildCounterSheetsChartProperties++; |
| 1934 if (buildCounterSheetsChartProperties < 3) { |
| 1935 checkImageProperties(o.chartImageProperties); |
| 1936 } |
| 1937 buildCounterSheetsChartProperties--; |
| 1938 } |
| 1939 |
| 1940 core.int buildCounterSize = 0; |
| 1941 buildSize() { |
| 1942 var o = new api.Size(); |
| 1943 buildCounterSize++; |
| 1944 if (buildCounterSize < 3) { |
| 1945 o.height = buildDimension(); |
| 1946 o.width = buildDimension(); |
| 1947 } |
| 1948 buildCounterSize--; |
| 1949 return o; |
| 1950 } |
| 1951 |
| 1952 checkSize(api.Size o) { |
| 1953 buildCounterSize++; |
| 1954 if (buildCounterSize < 3) { |
| 1955 checkDimension(o.height); |
| 1956 checkDimension(o.width); |
| 1957 } |
| 1958 buildCounterSize--; |
| 1959 } |
| 1960 |
| 1961 core.int buildCounterSlideProperties = 0; |
| 1962 buildSlideProperties() { |
| 1963 var o = new api.SlideProperties(); |
| 1964 buildCounterSlideProperties++; |
| 1965 if (buildCounterSlideProperties < 3) { |
| 1966 o.layoutObjectId = "foo"; |
| 1967 o.masterObjectId = "foo"; |
| 1968 } |
| 1969 buildCounterSlideProperties--; |
| 1970 return o; |
| 1971 } |
| 1972 |
| 1973 checkSlideProperties(api.SlideProperties o) { |
| 1974 buildCounterSlideProperties++; |
| 1975 if (buildCounterSlideProperties < 3) { |
| 1976 unittest.expect(o.layoutObjectId, unittest.equals('foo')); |
| 1977 unittest.expect(o.masterObjectId, unittest.equals('foo')); |
| 1978 } |
| 1979 buildCounterSlideProperties--; |
| 1980 } |
| 1981 |
| 1982 core.int buildCounterSolidFill = 0; |
| 1983 buildSolidFill() { |
| 1984 var o = new api.SolidFill(); |
| 1985 buildCounterSolidFill++; |
| 1986 if (buildCounterSolidFill < 3) { |
| 1987 o.alpha = 42.0; |
| 1988 o.color = buildOpaqueColor(); |
| 1989 } |
| 1990 buildCounterSolidFill--; |
| 1991 return o; |
| 1992 } |
| 1993 |
| 1994 checkSolidFill(api.SolidFill o) { |
| 1995 buildCounterSolidFill++; |
| 1996 if (buildCounterSolidFill < 3) { |
| 1997 unittest.expect(o.alpha, unittest.equals(42.0)); |
| 1998 checkOpaqueColor(o.color); |
| 1999 } |
| 2000 buildCounterSolidFill--; |
| 2001 } |
| 2002 |
| 2003 core.int buildCounterStretchedPictureFill = 0; |
| 2004 buildStretchedPictureFill() { |
| 2005 var o = new api.StretchedPictureFill(); |
| 2006 buildCounterStretchedPictureFill++; |
| 2007 if (buildCounterStretchedPictureFill < 3) { |
| 2008 o.contentUrl = "foo"; |
| 2009 o.size = buildSize(); |
| 2010 } |
| 2011 buildCounterStretchedPictureFill--; |
| 2012 return o; |
| 2013 } |
| 2014 |
| 2015 checkStretchedPictureFill(api.StretchedPictureFill o) { |
| 2016 buildCounterStretchedPictureFill++; |
| 2017 if (buildCounterStretchedPictureFill < 3) { |
| 2018 unittest.expect(o.contentUrl, unittest.equals('foo')); |
| 2019 checkSize(o.size); |
| 2020 } |
| 2021 buildCounterStretchedPictureFill--; |
| 2022 } |
| 2023 |
| 2024 core.int buildCounterSubstringMatchCriteria = 0; |
| 2025 buildSubstringMatchCriteria() { |
| 2026 var o = new api.SubstringMatchCriteria(); |
| 2027 buildCounterSubstringMatchCriteria++; |
| 2028 if (buildCounterSubstringMatchCriteria < 3) { |
| 2029 o.matchCase = true; |
| 2030 o.text = "foo"; |
| 2031 } |
| 2032 buildCounterSubstringMatchCriteria--; |
| 2033 return o; |
| 2034 } |
| 2035 |
| 2036 checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { |
| 2037 buildCounterSubstringMatchCriteria++; |
| 2038 if (buildCounterSubstringMatchCriteria < 3) { |
| 2039 unittest.expect(o.matchCase, unittest.isTrue); |
| 2040 unittest.expect(o.text, unittest.equals('foo')); |
| 2041 } |
| 2042 buildCounterSubstringMatchCriteria--; |
| 2043 } |
| 2044 |
| 2045 buildUnnamed1668() { |
| 2046 var o = new core.List<api.TableColumnProperties>(); |
| 2047 o.add(buildTableColumnProperties()); |
| 2048 o.add(buildTableColumnProperties()); |
| 2049 return o; |
| 2050 } |
| 2051 |
| 2052 checkUnnamed1668(core.List<api.TableColumnProperties> o) { |
| 2053 unittest.expect(o, unittest.hasLength(2)); |
| 2054 checkTableColumnProperties(o[0]); |
| 2055 checkTableColumnProperties(o[1]); |
| 2056 } |
| 2057 |
| 2058 buildUnnamed1669() { |
| 2059 var o = new core.List<api.TableRow>(); |
| 2060 o.add(buildTableRow()); |
| 2061 o.add(buildTableRow()); |
| 2062 return o; |
| 2063 } |
| 2064 |
| 2065 checkUnnamed1669(core.List<api.TableRow> o) { |
| 2066 unittest.expect(o, unittest.hasLength(2)); |
| 2067 checkTableRow(o[0]); |
| 2068 checkTableRow(o[1]); |
| 2069 } |
| 2070 |
| 2071 core.int buildCounterTable = 0; |
| 2072 buildTable() { |
| 2073 var o = new api.Table(); |
| 2074 buildCounterTable++; |
| 2075 if (buildCounterTable < 3) { |
| 2076 o.columns = 42; |
| 2077 o.rows = 42; |
| 2078 o.tableColumns = buildUnnamed1668(); |
| 2079 o.tableRows = buildUnnamed1669(); |
| 2080 } |
| 2081 buildCounterTable--; |
| 2082 return o; |
| 2083 } |
| 2084 |
| 2085 checkTable(api.Table o) { |
| 2086 buildCounterTable++; |
| 2087 if (buildCounterTable < 3) { |
| 2088 unittest.expect(o.columns, unittest.equals(42)); |
| 2089 unittest.expect(o.rows, unittest.equals(42)); |
| 2090 checkUnnamed1668(o.tableColumns); |
| 2091 checkUnnamed1669(o.tableRows); |
| 2092 } |
| 2093 buildCounterTable--; |
| 2094 } |
| 2095 |
| 2096 core.int buildCounterTableCell = 0; |
| 2097 buildTableCell() { |
| 2098 var o = new api.TableCell(); |
| 2099 buildCounterTableCell++; |
| 2100 if (buildCounterTableCell < 3) { |
| 2101 o.columnSpan = 42; |
| 2102 o.location = buildTableCellLocation(); |
| 2103 o.rowSpan = 42; |
| 2104 o.tableCellProperties = buildTableCellProperties(); |
| 2105 o.text = buildTextContent(); |
| 2106 } |
| 2107 buildCounterTableCell--; |
| 2108 return o; |
| 2109 } |
| 2110 |
| 2111 checkTableCell(api.TableCell o) { |
| 2112 buildCounterTableCell++; |
| 2113 if (buildCounterTableCell < 3) { |
| 2114 unittest.expect(o.columnSpan, unittest.equals(42)); |
| 2115 checkTableCellLocation(o.location); |
| 2116 unittest.expect(o.rowSpan, unittest.equals(42)); |
| 2117 checkTableCellProperties(o.tableCellProperties); |
| 2118 checkTextContent(o.text); |
| 2119 } |
| 2120 buildCounterTableCell--; |
| 2121 } |
| 2122 |
| 2123 core.int buildCounterTableCellBackgroundFill = 0; |
| 2124 buildTableCellBackgroundFill() { |
| 2125 var o = new api.TableCellBackgroundFill(); |
| 2126 buildCounterTableCellBackgroundFill++; |
| 2127 if (buildCounterTableCellBackgroundFill < 3) { |
| 2128 o.propertyState = "foo"; |
| 2129 o.solidFill = buildSolidFill(); |
| 2130 } |
| 2131 buildCounterTableCellBackgroundFill--; |
| 2132 return o; |
| 2133 } |
| 2134 |
| 2135 checkTableCellBackgroundFill(api.TableCellBackgroundFill o) { |
| 2136 buildCounterTableCellBackgroundFill++; |
| 2137 if (buildCounterTableCellBackgroundFill < 3) { |
| 2138 unittest.expect(o.propertyState, unittest.equals('foo')); |
| 2139 checkSolidFill(o.solidFill); |
| 2140 } |
| 2141 buildCounterTableCellBackgroundFill--; |
| 2142 } |
| 2143 |
| 2144 core.int buildCounterTableCellLocation = 0; |
| 2145 buildTableCellLocation() { |
| 2146 var o = new api.TableCellLocation(); |
| 2147 buildCounterTableCellLocation++; |
| 2148 if (buildCounterTableCellLocation < 3) { |
| 2149 o.columnIndex = 42; |
| 2150 o.rowIndex = 42; |
| 2151 } |
| 2152 buildCounterTableCellLocation--; |
| 2153 return o; |
| 2154 } |
| 2155 |
| 2156 checkTableCellLocation(api.TableCellLocation o) { |
| 2157 buildCounterTableCellLocation++; |
| 2158 if (buildCounterTableCellLocation < 3) { |
| 2159 unittest.expect(o.columnIndex, unittest.equals(42)); |
| 2160 unittest.expect(o.rowIndex, unittest.equals(42)); |
| 2161 } |
| 2162 buildCounterTableCellLocation--; |
| 2163 } |
| 2164 |
| 2165 core.int buildCounterTableCellProperties = 0; |
| 2166 buildTableCellProperties() { |
| 2167 var o = new api.TableCellProperties(); |
| 2168 buildCounterTableCellProperties++; |
| 2169 if (buildCounterTableCellProperties < 3) { |
| 2170 o.tableCellBackgroundFill = buildTableCellBackgroundFill(); |
| 2171 } |
| 2172 buildCounterTableCellProperties--; |
| 2173 return o; |
| 2174 } |
| 2175 |
| 2176 checkTableCellProperties(api.TableCellProperties o) { |
| 2177 buildCounterTableCellProperties++; |
| 2178 if (buildCounterTableCellProperties < 3) { |
| 2179 checkTableCellBackgroundFill(o.tableCellBackgroundFill); |
| 2180 } |
| 2181 buildCounterTableCellProperties--; |
| 2182 } |
| 2183 |
| 2184 core.int buildCounterTableColumnProperties = 0; |
| 2185 buildTableColumnProperties() { |
| 2186 var o = new api.TableColumnProperties(); |
| 2187 buildCounterTableColumnProperties++; |
| 2188 if (buildCounterTableColumnProperties < 3) { |
| 2189 o.columnWidth = buildDimension(); |
| 2190 } |
| 2191 buildCounterTableColumnProperties--; |
| 2192 return o; |
| 2193 } |
| 2194 |
| 2195 checkTableColumnProperties(api.TableColumnProperties o) { |
| 2196 buildCounterTableColumnProperties++; |
| 2197 if (buildCounterTableColumnProperties < 3) { |
| 2198 checkDimension(o.columnWidth); |
| 2199 } |
| 2200 buildCounterTableColumnProperties--; |
| 2201 } |
| 2202 |
| 2203 core.int buildCounterTableRange = 0; |
| 2204 buildTableRange() { |
| 2205 var o = new api.TableRange(); |
| 2206 buildCounterTableRange++; |
| 2207 if (buildCounterTableRange < 3) { |
| 2208 o.columnSpan = 42; |
| 2209 o.location = buildTableCellLocation(); |
| 2210 o.rowSpan = 42; |
| 2211 } |
| 2212 buildCounterTableRange--; |
| 2213 return o; |
| 2214 } |
| 2215 |
| 2216 checkTableRange(api.TableRange o) { |
| 2217 buildCounterTableRange++; |
| 2218 if (buildCounterTableRange < 3) { |
| 2219 unittest.expect(o.columnSpan, unittest.equals(42)); |
| 2220 checkTableCellLocation(o.location); |
| 2221 unittest.expect(o.rowSpan, unittest.equals(42)); |
| 2222 } |
| 2223 buildCounterTableRange--; |
| 2224 } |
| 2225 |
| 2226 buildUnnamed1670() { |
| 2227 var o = new core.List<api.TableCell>(); |
| 2228 o.add(buildTableCell()); |
| 2229 o.add(buildTableCell()); |
| 2230 return o; |
| 2231 } |
| 2232 |
| 2233 checkUnnamed1670(core.List<api.TableCell> o) { |
| 2234 unittest.expect(o, unittest.hasLength(2)); |
| 2235 checkTableCell(o[0]); |
| 2236 checkTableCell(o[1]); |
| 2237 } |
| 2238 |
| 2239 core.int buildCounterTableRow = 0; |
| 2240 buildTableRow() { |
| 2241 var o = new api.TableRow(); |
| 2242 buildCounterTableRow++; |
| 2243 if (buildCounterTableRow < 3) { |
| 2244 o.rowHeight = buildDimension(); |
| 2245 o.tableCells = buildUnnamed1670(); |
| 2246 } |
| 2247 buildCounterTableRow--; |
| 2248 return o; |
| 2249 } |
| 2250 |
| 2251 checkTableRow(api.TableRow o) { |
| 2252 buildCounterTableRow++; |
| 2253 if (buildCounterTableRow < 3) { |
| 2254 checkDimension(o.rowHeight); |
| 2255 checkUnnamed1670(o.tableCells); |
| 2256 } |
| 2257 buildCounterTableRow--; |
| 2258 } |
| 2259 |
| 2260 buildUnnamed1671() { |
| 2261 var o = new core.Map<core.String, api.List>(); |
| 2262 o["x"] = buildList(); |
| 2263 o["y"] = buildList(); |
| 2264 return o; |
| 2265 } |
| 2266 |
| 2267 checkUnnamed1671(core.Map<core.String, api.List> o) { |
| 2268 unittest.expect(o, unittest.hasLength(2)); |
| 2269 checkList(o["x"]); |
| 2270 checkList(o["y"]); |
| 2271 } |
| 2272 |
| 2273 buildUnnamed1672() { |
| 2274 var o = new core.List<api.TextElement>(); |
| 2275 o.add(buildTextElement()); |
| 2276 o.add(buildTextElement()); |
| 2277 return o; |
| 2278 } |
| 2279 |
| 2280 checkUnnamed1672(core.List<api.TextElement> o) { |
| 2281 unittest.expect(o, unittest.hasLength(2)); |
| 2282 checkTextElement(o[0]); |
| 2283 checkTextElement(o[1]); |
| 2284 } |
| 2285 |
| 2286 core.int buildCounterTextContent = 0; |
| 2287 buildTextContent() { |
| 2288 var o = new api.TextContent(); |
| 2289 buildCounterTextContent++; |
| 2290 if (buildCounterTextContent < 3) { |
| 2291 o.lists = buildUnnamed1671(); |
| 2292 o.textElements = buildUnnamed1672(); |
| 2293 } |
| 2294 buildCounterTextContent--; |
| 2295 return o; |
| 2296 } |
| 2297 |
| 2298 checkTextContent(api.TextContent o) { |
| 2299 buildCounterTextContent++; |
| 2300 if (buildCounterTextContent < 3) { |
| 2301 checkUnnamed1671(o.lists); |
| 2302 checkUnnamed1672(o.textElements); |
| 2303 } |
| 2304 buildCounterTextContent--; |
| 2305 } |
| 2306 |
| 2307 core.int buildCounterTextElement = 0; |
| 2308 buildTextElement() { |
| 2309 var o = new api.TextElement(); |
| 2310 buildCounterTextElement++; |
| 2311 if (buildCounterTextElement < 3) { |
| 2312 o.autoText = buildAutoText(); |
| 2313 o.endIndex = 42; |
| 2314 o.paragraphMarker = buildParagraphMarker(); |
| 2315 o.startIndex = 42; |
| 2316 o.textRun = buildTextRun(); |
| 2317 } |
| 2318 buildCounterTextElement--; |
| 2319 return o; |
| 2320 } |
| 2321 |
| 2322 checkTextElement(api.TextElement o) { |
| 2323 buildCounterTextElement++; |
| 2324 if (buildCounterTextElement < 3) { |
| 2325 checkAutoText(o.autoText); |
| 2326 unittest.expect(o.endIndex, unittest.equals(42)); |
| 2327 checkParagraphMarker(o.paragraphMarker); |
| 2328 unittest.expect(o.startIndex, unittest.equals(42)); |
| 2329 checkTextRun(o.textRun); |
| 2330 } |
| 2331 buildCounterTextElement--; |
| 2332 } |
| 2333 |
| 2334 core.int buildCounterTextRun = 0; |
| 2335 buildTextRun() { |
| 2336 var o = new api.TextRun(); |
| 2337 buildCounterTextRun++; |
| 2338 if (buildCounterTextRun < 3) { |
| 2339 o.content = "foo"; |
| 2340 o.style = buildTextStyle(); |
| 2341 } |
| 2342 buildCounterTextRun--; |
| 2343 return o; |
| 2344 } |
| 2345 |
| 2346 checkTextRun(api.TextRun o) { |
| 2347 buildCounterTextRun++; |
| 2348 if (buildCounterTextRun < 3) { |
| 2349 unittest.expect(o.content, unittest.equals('foo')); |
| 2350 checkTextStyle(o.style); |
| 2351 } |
| 2352 buildCounterTextRun--; |
| 2353 } |
| 2354 |
| 2355 core.int buildCounterTextStyle = 0; |
| 2356 buildTextStyle() { |
| 2357 var o = new api.TextStyle(); |
| 2358 buildCounterTextStyle++; |
| 2359 if (buildCounterTextStyle < 3) { |
| 2360 o.backgroundColor = buildOptionalColor(); |
| 2361 o.baselineOffset = "foo"; |
| 2362 o.bold = true; |
| 2363 o.fontFamily = "foo"; |
| 2364 o.fontSize = buildDimension(); |
| 2365 o.foregroundColor = buildOptionalColor(); |
| 2366 o.italic = true; |
| 2367 o.link = buildLink(); |
| 2368 o.smallCaps = true; |
| 2369 o.strikethrough = true; |
| 2370 o.underline = true; |
| 2371 } |
| 2372 buildCounterTextStyle--; |
| 2373 return o; |
| 2374 } |
| 2375 |
| 2376 checkTextStyle(api.TextStyle o) { |
| 2377 buildCounterTextStyle++; |
| 2378 if (buildCounterTextStyle < 3) { |
| 2379 checkOptionalColor(o.backgroundColor); |
| 2380 unittest.expect(o.baselineOffset, unittest.equals('foo')); |
| 2381 unittest.expect(o.bold, unittest.isTrue); |
| 2382 unittest.expect(o.fontFamily, unittest.equals('foo')); |
| 2383 checkDimension(o.fontSize); |
| 2384 checkOptionalColor(o.foregroundColor); |
| 2385 unittest.expect(o.italic, unittest.isTrue); |
| 2386 checkLink(o.link); |
| 2387 unittest.expect(o.smallCaps, unittest.isTrue); |
| 2388 unittest.expect(o.strikethrough, unittest.isTrue); |
| 2389 unittest.expect(o.underline, unittest.isTrue); |
| 2390 } |
| 2391 buildCounterTextStyle--; |
| 2392 } |
| 2393 |
| 2394 core.int buildCounterThemeColorPair = 0; |
| 2395 buildThemeColorPair() { |
| 2396 var o = new api.ThemeColorPair(); |
| 2397 buildCounterThemeColorPair++; |
| 2398 if (buildCounterThemeColorPair < 3) { |
| 2399 o.color = buildRgbColor(); |
| 2400 o.type = "foo"; |
| 2401 } |
| 2402 buildCounterThemeColorPair--; |
| 2403 return o; |
| 2404 } |
| 2405 |
| 2406 checkThemeColorPair(api.ThemeColorPair o) { |
| 2407 buildCounterThemeColorPair++; |
| 2408 if (buildCounterThemeColorPair < 3) { |
| 2409 checkRgbColor(o.color); |
| 2410 unittest.expect(o.type, unittest.equals('foo')); |
| 2411 } |
| 2412 buildCounterThemeColorPair--; |
| 2413 } |
| 2414 |
| 2415 core.int buildCounterUpdateImagePropertiesRequest = 0; |
| 2416 buildUpdateImagePropertiesRequest() { |
| 2417 var o = new api.UpdateImagePropertiesRequest(); |
| 2418 buildCounterUpdateImagePropertiesRequest++; |
| 2419 if (buildCounterUpdateImagePropertiesRequest < 3) { |
| 2420 o.fields = "foo"; |
| 2421 o.imageProperties = buildImageProperties(); |
| 2422 o.objectId = "foo"; |
| 2423 } |
| 2424 buildCounterUpdateImagePropertiesRequest--; |
| 2425 return o; |
| 2426 } |
| 2427 |
| 2428 checkUpdateImagePropertiesRequest(api.UpdateImagePropertiesRequest o) { |
| 2429 buildCounterUpdateImagePropertiesRequest++; |
| 2430 if (buildCounterUpdateImagePropertiesRequest < 3) { |
| 2431 unittest.expect(o.fields, unittest.equals('foo')); |
| 2432 checkImageProperties(o.imageProperties); |
| 2433 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2434 } |
| 2435 buildCounterUpdateImagePropertiesRequest--; |
| 2436 } |
| 2437 |
| 2438 core.int buildCounterUpdateLinePropertiesRequest = 0; |
| 2439 buildUpdateLinePropertiesRequest() { |
| 2440 var o = new api.UpdateLinePropertiesRequest(); |
| 2441 buildCounterUpdateLinePropertiesRequest++; |
| 2442 if (buildCounterUpdateLinePropertiesRequest < 3) { |
| 2443 o.fields = "foo"; |
| 2444 o.lineProperties = buildLineProperties(); |
| 2445 o.objectId = "foo"; |
| 2446 } |
| 2447 buildCounterUpdateLinePropertiesRequest--; |
| 2448 return o; |
| 2449 } |
| 2450 |
| 2451 checkUpdateLinePropertiesRequest(api.UpdateLinePropertiesRequest o) { |
| 2452 buildCounterUpdateLinePropertiesRequest++; |
| 2453 if (buildCounterUpdateLinePropertiesRequest < 3) { |
| 2454 unittest.expect(o.fields, unittest.equals('foo')); |
| 2455 checkLineProperties(o.lineProperties); |
| 2456 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2457 } |
| 2458 buildCounterUpdateLinePropertiesRequest--; |
| 2459 } |
| 2460 |
| 2461 core.int buildCounterUpdatePageElementTransformRequest = 0; |
| 2462 buildUpdatePageElementTransformRequest() { |
| 2463 var o = new api.UpdatePageElementTransformRequest(); |
| 2464 buildCounterUpdatePageElementTransformRequest++; |
| 2465 if (buildCounterUpdatePageElementTransformRequest < 3) { |
| 2466 o.applyMode = "foo"; |
| 2467 o.objectId = "foo"; |
| 2468 o.transform = buildAffineTransform(); |
| 2469 } |
| 2470 buildCounterUpdatePageElementTransformRequest--; |
| 2471 return o; |
| 2472 } |
| 2473 |
| 2474 checkUpdatePageElementTransformRequest(api.UpdatePageElementTransformRequest o)
{ |
| 2475 buildCounterUpdatePageElementTransformRequest++; |
| 2476 if (buildCounterUpdatePageElementTransformRequest < 3) { |
| 2477 unittest.expect(o.applyMode, unittest.equals('foo')); |
| 2478 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2479 checkAffineTransform(o.transform); |
| 2480 } |
| 2481 buildCounterUpdatePageElementTransformRequest--; |
| 2482 } |
| 2483 |
| 2484 core.int buildCounterUpdatePagePropertiesRequest = 0; |
| 2485 buildUpdatePagePropertiesRequest() { |
| 2486 var o = new api.UpdatePagePropertiesRequest(); |
| 2487 buildCounterUpdatePagePropertiesRequest++; |
| 2488 if (buildCounterUpdatePagePropertiesRequest < 3) { |
| 2489 o.fields = "foo"; |
| 2490 o.objectId = "foo"; |
| 2491 o.pageProperties = buildPageProperties(); |
| 2492 } |
| 2493 buildCounterUpdatePagePropertiesRequest--; |
| 2494 return o; |
| 2495 } |
| 2496 |
| 2497 checkUpdatePagePropertiesRequest(api.UpdatePagePropertiesRequest o) { |
| 2498 buildCounterUpdatePagePropertiesRequest++; |
| 2499 if (buildCounterUpdatePagePropertiesRequest < 3) { |
| 2500 unittest.expect(o.fields, unittest.equals('foo')); |
| 2501 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2502 checkPageProperties(o.pageProperties); |
| 2503 } |
| 2504 buildCounterUpdatePagePropertiesRequest--; |
| 2505 } |
| 2506 |
| 2507 core.int buildCounterUpdateShapePropertiesRequest = 0; |
| 2508 buildUpdateShapePropertiesRequest() { |
| 2509 var o = new api.UpdateShapePropertiesRequest(); |
| 2510 buildCounterUpdateShapePropertiesRequest++; |
| 2511 if (buildCounterUpdateShapePropertiesRequest < 3) { |
| 2512 o.fields = "foo"; |
| 2513 o.objectId = "foo"; |
| 2514 o.shapeProperties = buildShapeProperties(); |
| 2515 } |
| 2516 buildCounterUpdateShapePropertiesRequest--; |
| 2517 return o; |
| 2518 } |
| 2519 |
| 2520 checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { |
| 2521 buildCounterUpdateShapePropertiesRequest++; |
| 2522 if (buildCounterUpdateShapePropertiesRequest < 3) { |
| 2523 unittest.expect(o.fields, unittest.equals('foo')); |
| 2524 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2525 checkShapeProperties(o.shapeProperties); |
| 2526 } |
| 2527 buildCounterUpdateShapePropertiesRequest--; |
| 2528 } |
| 2529 |
| 2530 buildUnnamed1673() { |
| 2531 var o = new core.List<core.String>(); |
| 2532 o.add("foo"); |
| 2533 o.add("foo"); |
| 2534 return o; |
| 2535 } |
| 2536 |
| 2537 checkUnnamed1673(core.List<core.String> o) { |
| 2538 unittest.expect(o, unittest.hasLength(2)); |
| 2539 unittest.expect(o[0], unittest.equals('foo')); |
| 2540 unittest.expect(o[1], unittest.equals('foo')); |
| 2541 } |
| 2542 |
| 2543 core.int buildCounterUpdateSlidesPositionRequest = 0; |
| 2544 buildUpdateSlidesPositionRequest() { |
| 2545 var o = new api.UpdateSlidesPositionRequest(); |
| 2546 buildCounterUpdateSlidesPositionRequest++; |
| 2547 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2548 o.insertionIndex = 42; |
| 2549 o.slideObjectIds = buildUnnamed1673(); |
| 2550 } |
| 2551 buildCounterUpdateSlidesPositionRequest--; |
| 2552 return o; |
| 2553 } |
| 2554 |
| 2555 checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { |
| 2556 buildCounterUpdateSlidesPositionRequest++; |
| 2557 if (buildCounterUpdateSlidesPositionRequest < 3) { |
| 2558 unittest.expect(o.insertionIndex, unittest.equals(42)); |
| 2559 checkUnnamed1673(o.slideObjectIds); |
| 2560 } |
| 2561 buildCounterUpdateSlidesPositionRequest--; |
| 2562 } |
| 2563 |
| 2564 core.int buildCounterUpdateTableCellPropertiesRequest = 0; |
| 2565 buildUpdateTableCellPropertiesRequest() { |
| 2566 var o = new api.UpdateTableCellPropertiesRequest(); |
| 2567 buildCounterUpdateTableCellPropertiesRequest++; |
| 2568 if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| 2569 o.fields = "foo"; |
| 2570 o.objectId = "foo"; |
| 2571 o.tableCellProperties = buildTableCellProperties(); |
| 2572 o.tableRange = buildTableRange(); |
| 2573 } |
| 2574 buildCounterUpdateTableCellPropertiesRequest--; |
| 2575 return o; |
| 2576 } |
| 2577 |
| 2578 checkUpdateTableCellPropertiesRequest(api.UpdateTableCellPropertiesRequest o) { |
| 2579 buildCounterUpdateTableCellPropertiesRequest++; |
| 2580 if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| 2581 unittest.expect(o.fields, unittest.equals('foo')); |
| 2582 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2583 checkTableCellProperties(o.tableCellProperties); |
| 2584 checkTableRange(o.tableRange); |
| 2585 } |
| 2586 buildCounterUpdateTableCellPropertiesRequest--; |
| 2587 } |
| 2588 |
| 2589 core.int buildCounterUpdateTextStyleRequest = 0; |
| 2590 buildUpdateTextStyleRequest() { |
| 2591 var o = new api.UpdateTextStyleRequest(); |
| 2592 buildCounterUpdateTextStyleRequest++; |
| 2593 if (buildCounterUpdateTextStyleRequest < 3) { |
| 2594 o.cellLocation = buildTableCellLocation(); |
| 2595 o.fields = "foo"; |
| 2596 o.objectId = "foo"; |
| 2597 o.style = buildTextStyle(); |
| 2598 o.textRange = buildRange(); |
| 2599 } |
| 2600 buildCounterUpdateTextStyleRequest--; |
| 2601 return o; |
| 2602 } |
| 2603 |
| 2604 checkUpdateTextStyleRequest(api.UpdateTextStyleRequest o) { |
| 2605 buildCounterUpdateTextStyleRequest++; |
| 2606 if (buildCounterUpdateTextStyleRequest < 3) { |
| 2607 checkTableCellLocation(o.cellLocation); |
| 2608 unittest.expect(o.fields, unittest.equals('foo')); |
| 2609 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2610 checkTextStyle(o.style); |
| 2611 checkRange(o.textRange); |
| 2612 } |
| 2613 buildCounterUpdateTextStyleRequest--; |
| 2614 } |
| 2615 |
| 2616 core.int buildCounterUpdateVideoPropertiesRequest = 0; |
| 2617 buildUpdateVideoPropertiesRequest() { |
| 2618 var o = new api.UpdateVideoPropertiesRequest(); |
| 2619 buildCounterUpdateVideoPropertiesRequest++; |
| 2620 if (buildCounterUpdateVideoPropertiesRequest < 3) { |
| 2621 o.fields = "foo"; |
| 2622 o.objectId = "foo"; |
| 2623 o.videoProperties = buildVideoProperties(); |
| 2624 } |
| 2625 buildCounterUpdateVideoPropertiesRequest--; |
| 2626 return o; |
| 2627 } |
| 2628 |
| 2629 checkUpdateVideoPropertiesRequest(api.UpdateVideoPropertiesRequest o) { |
| 2630 buildCounterUpdateVideoPropertiesRequest++; |
| 2631 if (buildCounterUpdateVideoPropertiesRequest < 3) { |
| 2632 unittest.expect(o.fields, unittest.equals('foo')); |
| 2633 unittest.expect(o.objectId, unittest.equals('foo')); |
| 2634 checkVideoProperties(o.videoProperties); |
| 2635 } |
| 2636 buildCounterUpdateVideoPropertiesRequest--; |
| 2637 } |
| 2638 |
| 2639 core.int buildCounterVideo = 0; |
| 2640 buildVideo() { |
| 2641 var o = new api.Video(); |
| 2642 buildCounterVideo++; |
| 2643 if (buildCounterVideo < 3) { |
| 2644 o.id = "foo"; |
| 2645 o.source = "foo"; |
| 2646 o.url = "foo"; |
| 2647 o.videoProperties = buildVideoProperties(); |
| 2648 } |
| 2649 buildCounterVideo--; |
| 2650 return o; |
| 2651 } |
| 2652 |
| 2653 checkVideo(api.Video o) { |
| 2654 buildCounterVideo++; |
| 2655 if (buildCounterVideo < 3) { |
| 2656 unittest.expect(o.id, unittest.equals('foo')); |
| 2657 unittest.expect(o.source, unittest.equals('foo')); |
| 2658 unittest.expect(o.url, unittest.equals('foo')); |
| 2659 checkVideoProperties(o.videoProperties); |
| 2660 } |
| 2661 buildCounterVideo--; |
| 2662 } |
| 2663 |
| 2664 core.int buildCounterVideoProperties = 0; |
| 2665 buildVideoProperties() { |
| 2666 var o = new api.VideoProperties(); |
| 2667 buildCounterVideoProperties++; |
| 2668 if (buildCounterVideoProperties < 3) { |
| 2669 o.outline = buildOutline(); |
| 2670 } |
| 2671 buildCounterVideoProperties--; |
| 2672 return o; |
| 2673 } |
| 2674 |
| 2675 checkVideoProperties(api.VideoProperties o) { |
| 2676 buildCounterVideoProperties++; |
| 2677 if (buildCounterVideoProperties < 3) { |
| 2678 checkOutline(o.outline); |
| 2679 } |
| 2680 buildCounterVideoProperties--; |
| 2681 } |
| 2682 |
| 2683 core.int buildCounterWordArt = 0; |
| 2684 buildWordArt() { |
| 2685 var o = new api.WordArt(); |
| 2686 buildCounterWordArt++; |
| 2687 if (buildCounterWordArt < 3) { |
| 2688 o.renderedText = "foo"; |
| 2689 } |
| 2690 buildCounterWordArt--; |
| 2691 return o; |
| 2692 } |
| 2693 |
| 2694 checkWordArt(api.WordArt o) { |
| 2695 buildCounterWordArt++; |
| 2696 if (buildCounterWordArt < 3) { |
| 2697 unittest.expect(o.renderedText, unittest.equals('foo')); |
| 2698 } |
| 2699 buildCounterWordArt--; |
| 2700 } |
| 2701 |
| 2702 |
| 2703 main() { |
| 2704 unittest.group("obj-schema-AffineTransform", () { |
| 2705 unittest.test("to-json--from-json", () { |
| 2706 var o = buildAffineTransform(); |
| 2707 var od = new api.AffineTransform.fromJson(o.toJson()); |
| 2708 checkAffineTransform(od); |
| 2709 }); |
| 2710 }); |
| 2711 |
| 2712 |
| 2713 unittest.group("obj-schema-AutoText", () { |
| 2714 unittest.test("to-json--from-json", () { |
| 2715 var o = buildAutoText(); |
| 2716 var od = new api.AutoText.fromJson(o.toJson()); |
| 2717 checkAutoText(od); |
| 2718 }); |
| 2719 }); |
| 2720 |
| 2721 |
| 2722 unittest.group("obj-schema-BatchUpdatePresentationRequest", () { |
| 2723 unittest.test("to-json--from-json", () { |
| 2724 var o = buildBatchUpdatePresentationRequest(); |
| 2725 var od = new api.BatchUpdatePresentationRequest.fromJson(o.toJson()); |
| 2726 checkBatchUpdatePresentationRequest(od); |
| 2727 }); |
| 2728 }); |
| 2729 |
| 2730 |
| 2731 unittest.group("obj-schema-BatchUpdatePresentationResponse", () { |
| 2732 unittest.test("to-json--from-json", () { |
| 2733 var o = buildBatchUpdatePresentationResponse(); |
| 2734 var od = new api.BatchUpdatePresentationResponse.fromJson(o.toJson()); |
| 2735 checkBatchUpdatePresentationResponse(od); |
| 2736 }); |
| 2737 }); |
| 2738 |
| 2739 |
| 2740 unittest.group("obj-schema-Bullet", () { |
| 2741 unittest.test("to-json--from-json", () { |
| 2742 var o = buildBullet(); |
| 2743 var od = new api.Bullet.fromJson(o.toJson()); |
| 2744 checkBullet(od); |
| 2745 }); |
| 2746 }); |
| 2747 |
| 2748 |
| 2749 unittest.group("obj-schema-ColorScheme", () { |
| 2750 unittest.test("to-json--from-json", () { |
| 2751 var o = buildColorScheme(); |
| 2752 var od = new api.ColorScheme.fromJson(o.toJson()); |
| 2753 checkColorScheme(od); |
| 2754 }); |
| 2755 }); |
| 2756 |
| 2757 |
| 2758 unittest.group("obj-schema-ColorStop", () { |
| 2759 unittest.test("to-json--from-json", () { |
| 2760 var o = buildColorStop(); |
| 2761 var od = new api.ColorStop.fromJson(o.toJson()); |
| 2762 checkColorStop(od); |
| 2763 }); |
| 2764 }); |
| 2765 |
| 2766 |
| 2767 unittest.group("obj-schema-CreateImageRequest", () { |
| 2768 unittest.test("to-json--from-json", () { |
| 2769 var o = buildCreateImageRequest(); |
| 2770 var od = new api.CreateImageRequest.fromJson(o.toJson()); |
| 2771 checkCreateImageRequest(od); |
| 2772 }); |
| 2773 }); |
| 2774 |
| 2775 |
| 2776 unittest.group("obj-schema-CreateImageResponse", () { |
| 2777 unittest.test("to-json--from-json", () { |
| 2778 var o = buildCreateImageResponse(); |
| 2779 var od = new api.CreateImageResponse.fromJson(o.toJson()); |
| 2780 checkCreateImageResponse(od); |
| 2781 }); |
| 2782 }); |
| 2783 |
| 2784 |
| 2785 unittest.group("obj-schema-CreateLineRequest", () { |
| 2786 unittest.test("to-json--from-json", () { |
| 2787 var o = buildCreateLineRequest(); |
| 2788 var od = new api.CreateLineRequest.fromJson(o.toJson()); |
| 2789 checkCreateLineRequest(od); |
| 2790 }); |
| 2791 }); |
| 2792 |
| 2793 |
| 2794 unittest.group("obj-schema-CreateLineResponse", () { |
| 2795 unittest.test("to-json--from-json", () { |
| 2796 var o = buildCreateLineResponse(); |
| 2797 var od = new api.CreateLineResponse.fromJson(o.toJson()); |
| 2798 checkCreateLineResponse(od); |
| 2799 }); |
| 2800 }); |
| 2801 |
| 2802 |
| 2803 unittest.group("obj-schema-CreateParagraphBulletsRequest", () { |
| 2804 unittest.test("to-json--from-json", () { |
| 2805 var o = buildCreateParagraphBulletsRequest(); |
| 2806 var od = new api.CreateParagraphBulletsRequest.fromJson(o.toJson()); |
| 2807 checkCreateParagraphBulletsRequest(od); |
| 2808 }); |
| 2809 }); |
| 2810 |
| 2811 |
| 2812 unittest.group("obj-schema-CreateShapeRequest", () { |
| 2813 unittest.test("to-json--from-json", () { |
| 2814 var o = buildCreateShapeRequest(); |
| 2815 var od = new api.CreateShapeRequest.fromJson(o.toJson()); |
| 2816 checkCreateShapeRequest(od); |
| 2817 }); |
| 2818 }); |
| 2819 |
| 2820 |
| 2821 unittest.group("obj-schema-CreateShapeResponse", () { |
| 2822 unittest.test("to-json--from-json", () { |
| 2823 var o = buildCreateShapeResponse(); |
| 2824 var od = new api.CreateShapeResponse.fromJson(o.toJson()); |
| 2825 checkCreateShapeResponse(od); |
| 2826 }); |
| 2827 }); |
| 2828 |
| 2829 |
| 2830 unittest.group("obj-schema-CreateSheetsChartRequest", () { |
| 2831 unittest.test("to-json--from-json", () { |
| 2832 var o = buildCreateSheetsChartRequest(); |
| 2833 var od = new api.CreateSheetsChartRequest.fromJson(o.toJson()); |
| 2834 checkCreateSheetsChartRequest(od); |
| 2835 }); |
| 2836 }); |
| 2837 |
| 2838 |
| 2839 unittest.group("obj-schema-CreateSheetsChartResponse", () { |
| 2840 unittest.test("to-json--from-json", () { |
| 2841 var o = buildCreateSheetsChartResponse(); |
| 2842 var od = new api.CreateSheetsChartResponse.fromJson(o.toJson()); |
| 2843 checkCreateSheetsChartResponse(od); |
| 2844 }); |
| 2845 }); |
| 2846 |
| 2847 |
| 2848 unittest.group("obj-schema-CreateSlideRequest", () { |
| 2849 unittest.test("to-json--from-json", () { |
| 2850 var o = buildCreateSlideRequest(); |
| 2851 var od = new api.CreateSlideRequest.fromJson(o.toJson()); |
| 2852 checkCreateSlideRequest(od); |
| 2853 }); |
| 2854 }); |
| 2855 |
| 2856 |
| 2857 unittest.group("obj-schema-CreateSlideResponse", () { |
| 2858 unittest.test("to-json--from-json", () { |
| 2859 var o = buildCreateSlideResponse(); |
| 2860 var od = new api.CreateSlideResponse.fromJson(o.toJson()); |
| 2861 checkCreateSlideResponse(od); |
| 2862 }); |
| 2863 }); |
| 2864 |
| 2865 |
| 2866 unittest.group("obj-schema-CreateTableRequest", () { |
| 2867 unittest.test("to-json--from-json", () { |
| 2868 var o = buildCreateTableRequest(); |
| 2869 var od = new api.CreateTableRequest.fromJson(o.toJson()); |
| 2870 checkCreateTableRequest(od); |
| 2871 }); |
| 2872 }); |
| 2873 |
| 2874 |
| 2875 unittest.group("obj-schema-CreateTableResponse", () { |
| 2876 unittest.test("to-json--from-json", () { |
| 2877 var o = buildCreateTableResponse(); |
| 2878 var od = new api.CreateTableResponse.fromJson(o.toJson()); |
| 2879 checkCreateTableResponse(od); |
| 2880 }); |
| 2881 }); |
| 2882 |
| 2883 |
| 2884 unittest.group("obj-schema-CreateVideoRequest", () { |
| 2885 unittest.test("to-json--from-json", () { |
| 2886 var o = buildCreateVideoRequest(); |
| 2887 var od = new api.CreateVideoRequest.fromJson(o.toJson()); |
| 2888 checkCreateVideoRequest(od); |
| 2889 }); |
| 2890 }); |
| 2891 |
| 2892 |
| 2893 unittest.group("obj-schema-CreateVideoResponse", () { |
| 2894 unittest.test("to-json--from-json", () { |
| 2895 var o = buildCreateVideoResponse(); |
| 2896 var od = new api.CreateVideoResponse.fromJson(o.toJson()); |
| 2897 checkCreateVideoResponse(od); |
| 2898 }); |
| 2899 }); |
| 2900 |
| 2901 |
| 2902 unittest.group("obj-schema-CropProperties", () { |
| 2903 unittest.test("to-json--from-json", () { |
| 2904 var o = buildCropProperties(); |
| 2905 var od = new api.CropProperties.fromJson(o.toJson()); |
| 2906 checkCropProperties(od); |
| 2907 }); |
| 2908 }); |
| 2909 |
| 2910 |
| 2911 unittest.group("obj-schema-DeleteObjectRequest", () { |
| 2912 unittest.test("to-json--from-json", () { |
| 2913 var o = buildDeleteObjectRequest(); |
| 2914 var od = new api.DeleteObjectRequest.fromJson(o.toJson()); |
| 2915 checkDeleteObjectRequest(od); |
| 2916 }); |
| 2917 }); |
| 2918 |
| 2919 |
| 2920 unittest.group("obj-schema-DeleteTableColumnRequest", () { |
| 2921 unittest.test("to-json--from-json", () { |
| 2922 var o = buildDeleteTableColumnRequest(); |
| 2923 var od = new api.DeleteTableColumnRequest.fromJson(o.toJson()); |
| 2924 checkDeleteTableColumnRequest(od); |
| 2925 }); |
| 2926 }); |
| 2927 |
| 2928 |
| 2929 unittest.group("obj-schema-DeleteTableRowRequest", () { |
| 2930 unittest.test("to-json--from-json", () { |
| 2931 var o = buildDeleteTableRowRequest(); |
| 2932 var od = new api.DeleteTableRowRequest.fromJson(o.toJson()); |
| 2933 checkDeleteTableRowRequest(od); |
| 2934 }); |
| 2935 }); |
| 2936 |
| 2937 |
| 2938 unittest.group("obj-schema-DeleteTextRequest", () { |
| 2939 unittest.test("to-json--from-json", () { |
| 2940 var o = buildDeleteTextRequest(); |
| 2941 var od = new api.DeleteTextRequest.fromJson(o.toJson()); |
| 2942 checkDeleteTextRequest(od); |
| 2943 }); |
| 2944 }); |
| 2945 |
| 2946 |
| 2947 unittest.group("obj-schema-Dimension", () { |
| 2948 unittest.test("to-json--from-json", () { |
| 2949 var o = buildDimension(); |
| 2950 var od = new api.Dimension.fromJson(o.toJson()); |
| 2951 checkDimension(od); |
| 2952 }); |
| 2953 }); |
| 2954 |
| 2955 |
| 2956 unittest.group("obj-schema-DuplicateObjectRequest", () { |
| 2957 unittest.test("to-json--from-json", () { |
| 2958 var o = buildDuplicateObjectRequest(); |
| 2959 var od = new api.DuplicateObjectRequest.fromJson(o.toJson()); |
| 2960 checkDuplicateObjectRequest(od); |
| 2961 }); |
| 2962 }); |
| 2963 |
| 2964 |
| 2965 unittest.group("obj-schema-DuplicateObjectResponse", () { |
| 2966 unittest.test("to-json--from-json", () { |
| 2967 var o = buildDuplicateObjectResponse(); |
| 2968 var od = new api.DuplicateObjectResponse.fromJson(o.toJson()); |
| 2969 checkDuplicateObjectResponse(od); |
| 2970 }); |
| 2971 }); |
| 2972 |
| 2973 |
| 2974 unittest.group("obj-schema-Group", () { |
| 2975 unittest.test("to-json--from-json", () { |
| 2976 var o = buildGroup(); |
| 2977 var od = new api.Group.fromJson(o.toJson()); |
| 2978 checkGroup(od); |
| 2979 }); |
| 2980 }); |
| 2981 |
| 2982 |
| 2983 unittest.group("obj-schema-Image", () { |
| 2984 unittest.test("to-json--from-json", () { |
| 2985 var o = buildImage(); |
| 2986 var od = new api.Image.fromJson(o.toJson()); |
| 2987 checkImage(od); |
| 2988 }); |
| 2989 }); |
| 2990 |
| 2991 |
| 2992 unittest.group("obj-schema-ImageProperties", () { |
| 2993 unittest.test("to-json--from-json", () { |
| 2994 var o = buildImageProperties(); |
| 2995 var od = new api.ImageProperties.fromJson(o.toJson()); |
| 2996 checkImageProperties(od); |
| 2997 }); |
| 2998 }); |
| 2999 |
| 3000 |
| 3001 unittest.group("obj-schema-InsertTableColumnsRequest", () { |
| 3002 unittest.test("to-json--from-json", () { |
| 3003 var o = buildInsertTableColumnsRequest(); |
| 3004 var od = new api.InsertTableColumnsRequest.fromJson(o.toJson()); |
| 3005 checkInsertTableColumnsRequest(od); |
| 3006 }); |
| 3007 }); |
| 3008 |
| 3009 |
| 3010 unittest.group("obj-schema-InsertTableRowsRequest", () { |
| 3011 unittest.test("to-json--from-json", () { |
| 3012 var o = buildInsertTableRowsRequest(); |
| 3013 var od = new api.InsertTableRowsRequest.fromJson(o.toJson()); |
| 3014 checkInsertTableRowsRequest(od); |
| 3015 }); |
| 3016 }); |
| 3017 |
| 3018 |
| 3019 unittest.group("obj-schema-InsertTextRequest", () { |
| 3020 unittest.test("to-json--from-json", () { |
| 3021 var o = buildInsertTextRequest(); |
| 3022 var od = new api.InsertTextRequest.fromJson(o.toJson()); |
| 3023 checkInsertTextRequest(od); |
| 3024 }); |
| 3025 }); |
| 3026 |
| 3027 |
| 3028 unittest.group("obj-schema-LayoutProperties", () { |
| 3029 unittest.test("to-json--from-json", () { |
| 3030 var o = buildLayoutProperties(); |
| 3031 var od = new api.LayoutProperties.fromJson(o.toJson()); |
| 3032 checkLayoutProperties(od); |
| 3033 }); |
| 3034 }); |
| 3035 |
| 3036 |
| 3037 unittest.group("obj-schema-LayoutReference", () { |
| 3038 unittest.test("to-json--from-json", () { |
| 3039 var o = buildLayoutReference(); |
| 3040 var od = new api.LayoutReference.fromJson(o.toJson()); |
| 3041 checkLayoutReference(od); |
| 3042 }); |
| 3043 }); |
| 3044 |
| 3045 |
| 3046 unittest.group("obj-schema-Line", () { |
| 3047 unittest.test("to-json--from-json", () { |
| 3048 var o = buildLine(); |
| 3049 var od = new api.Line.fromJson(o.toJson()); |
| 3050 checkLine(od); |
| 3051 }); |
| 3052 }); |
| 3053 |
| 3054 |
| 3055 unittest.group("obj-schema-LineFill", () { |
| 3056 unittest.test("to-json--from-json", () { |
| 3057 var o = buildLineFill(); |
| 3058 var od = new api.LineFill.fromJson(o.toJson()); |
| 3059 checkLineFill(od); |
| 3060 }); |
| 3061 }); |
| 3062 |
| 3063 |
| 3064 unittest.group("obj-schema-LineProperties", () { |
| 3065 unittest.test("to-json--from-json", () { |
| 3066 var o = buildLineProperties(); |
| 3067 var od = new api.LineProperties.fromJson(o.toJson()); |
| 3068 checkLineProperties(od); |
| 3069 }); |
| 3070 }); |
| 3071 |
| 3072 |
| 3073 unittest.group("obj-schema-Link", () { |
| 3074 unittest.test("to-json--from-json", () { |
| 3075 var o = buildLink(); |
| 3076 var od = new api.Link.fromJson(o.toJson()); |
| 3077 checkLink(od); |
| 3078 }); |
| 3079 }); |
| 3080 |
| 3081 |
| 3082 unittest.group("obj-schema-List", () { |
| 3083 unittest.test("to-json--from-json", () { |
| 3084 var o = buildList(); |
| 3085 var od = new api.List.fromJson(o.toJson()); |
| 3086 checkList(od); |
| 3087 }); |
| 3088 }); |
| 3089 |
| 3090 |
| 3091 unittest.group("obj-schema-NestingLevel", () { |
| 3092 unittest.test("to-json--from-json", () { |
| 3093 var o = buildNestingLevel(); |
| 3094 var od = new api.NestingLevel.fromJson(o.toJson()); |
| 3095 checkNestingLevel(od); |
| 3096 }); |
| 3097 }); |
| 3098 |
| 3099 |
| 3100 unittest.group("obj-schema-OpaqueColor", () { |
| 3101 unittest.test("to-json--from-json", () { |
| 3102 var o = buildOpaqueColor(); |
| 3103 var od = new api.OpaqueColor.fromJson(o.toJson()); |
| 3104 checkOpaqueColor(od); |
| 3105 }); |
| 3106 }); |
| 3107 |
| 3108 |
| 3109 unittest.group("obj-schema-OptionalColor", () { |
| 3110 unittest.test("to-json--from-json", () { |
| 3111 var o = buildOptionalColor(); |
| 3112 var od = new api.OptionalColor.fromJson(o.toJson()); |
| 3113 checkOptionalColor(od); |
| 3114 }); |
| 3115 }); |
| 3116 |
| 3117 |
| 3118 unittest.group("obj-schema-Outline", () { |
| 3119 unittest.test("to-json--from-json", () { |
| 3120 var o = buildOutline(); |
| 3121 var od = new api.Outline.fromJson(o.toJson()); |
| 3122 checkOutline(od); |
| 3123 }); |
| 3124 }); |
| 3125 |
| 3126 |
| 3127 unittest.group("obj-schema-OutlineFill", () { |
| 3128 unittest.test("to-json--from-json", () { |
| 3129 var o = buildOutlineFill(); |
| 3130 var od = new api.OutlineFill.fromJson(o.toJson()); |
| 3131 checkOutlineFill(od); |
| 3132 }); |
| 3133 }); |
| 3134 |
| 3135 |
| 3136 unittest.group("obj-schema-Page", () { |
| 3137 unittest.test("to-json--from-json", () { |
| 3138 var o = buildPage(); |
| 3139 var od = new api.Page.fromJson(o.toJson()); |
| 3140 checkPage(od); |
| 3141 }); |
| 3142 }); |
| 3143 |
| 3144 |
| 3145 unittest.group("obj-schema-PageBackgroundFill", () { |
| 3146 unittest.test("to-json--from-json", () { |
| 3147 var o = buildPageBackgroundFill(); |
| 3148 var od = new api.PageBackgroundFill.fromJson(o.toJson()); |
| 3149 checkPageBackgroundFill(od); |
| 3150 }); |
| 3151 }); |
| 3152 |
| 3153 |
| 3154 unittest.group("obj-schema-PageElement", () { |
| 3155 unittest.test("to-json--from-json", () { |
| 3156 var o = buildPageElement(); |
| 3157 var od = new api.PageElement.fromJson(o.toJson()); |
| 3158 checkPageElement(od); |
| 3159 }); |
| 3160 }); |
| 3161 |
| 3162 |
| 3163 unittest.group("obj-schema-PageElementProperties", () { |
| 3164 unittest.test("to-json--from-json", () { |
| 3165 var o = buildPageElementProperties(); |
| 3166 var od = new api.PageElementProperties.fromJson(o.toJson()); |
| 3167 checkPageElementProperties(od); |
| 3168 }); |
| 3169 }); |
| 3170 |
| 3171 |
| 3172 unittest.group("obj-schema-PageProperties", () { |
| 3173 unittest.test("to-json--from-json", () { |
| 3174 var o = buildPageProperties(); |
| 3175 var od = new api.PageProperties.fromJson(o.toJson()); |
| 3176 checkPageProperties(od); |
| 3177 }); |
| 3178 }); |
| 3179 |
| 3180 |
| 3181 unittest.group("obj-schema-ParagraphMarker", () { |
| 3182 unittest.test("to-json--from-json", () { |
| 3183 var o = buildParagraphMarker(); |
| 3184 var od = new api.ParagraphMarker.fromJson(o.toJson()); |
| 3185 checkParagraphMarker(od); |
| 3186 }); |
| 3187 }); |
| 3188 |
| 3189 |
| 3190 unittest.group("obj-schema-ParagraphStyle", () { |
| 3191 unittest.test("to-json--from-json", () { |
| 3192 var o = buildParagraphStyle(); |
| 3193 var od = new api.ParagraphStyle.fromJson(o.toJson()); |
| 3194 checkParagraphStyle(od); |
| 3195 }); |
| 3196 }); |
| 3197 |
| 3198 |
| 3199 unittest.group("obj-schema-Placeholder", () { |
| 3200 unittest.test("to-json--from-json", () { |
| 3201 var o = buildPlaceholder(); |
| 3202 var od = new api.Placeholder.fromJson(o.toJson()); |
| 3203 checkPlaceholder(od); |
| 3204 }); |
| 3205 }); |
| 3206 |
| 3207 |
| 3208 unittest.group("obj-schema-Presentation", () { |
| 3209 unittest.test("to-json--from-json", () { |
| 3210 var o = buildPresentation(); |
| 3211 var od = new api.Presentation.fromJson(o.toJson()); |
| 3212 checkPresentation(od); |
| 3213 }); |
| 3214 }); |
| 3215 |
| 3216 |
| 3217 unittest.group("obj-schema-Range", () { |
| 3218 unittest.test("to-json--from-json", () { |
| 3219 var o = buildRange(); |
| 3220 var od = new api.Range.fromJson(o.toJson()); |
| 3221 checkRange(od); |
| 3222 }); |
| 3223 }); |
| 3224 |
| 3225 |
| 3226 unittest.group("obj-schema-Recolor", () { |
| 3227 unittest.test("to-json--from-json", () { |
| 3228 var o = buildRecolor(); |
| 3229 var od = new api.Recolor.fromJson(o.toJson()); |
| 3230 checkRecolor(od); |
| 3231 }); |
| 3232 }); |
| 3233 |
| 3234 |
| 3235 unittest.group("obj-schema-RefreshSheetsChartRequest", () { |
| 3236 unittest.test("to-json--from-json", () { |
| 3237 var o = buildRefreshSheetsChartRequest(); |
| 3238 var od = new api.RefreshSheetsChartRequest.fromJson(o.toJson()); |
| 3239 checkRefreshSheetsChartRequest(od); |
| 3240 }); |
| 3241 }); |
| 3242 |
| 3243 |
| 3244 unittest.group("obj-schema-ReplaceAllShapesWithImageRequest", () { |
| 3245 unittest.test("to-json--from-json", () { |
| 3246 var o = buildReplaceAllShapesWithImageRequest(); |
| 3247 var od = new api.ReplaceAllShapesWithImageRequest.fromJson(o.toJson()); |
| 3248 checkReplaceAllShapesWithImageRequest(od); |
| 3249 }); |
| 3250 }); |
| 3251 |
| 3252 |
| 3253 unittest.group("obj-schema-ReplaceAllShapesWithImageResponse", () { |
| 3254 unittest.test("to-json--from-json", () { |
| 3255 var o = buildReplaceAllShapesWithImageResponse(); |
| 3256 var od = new api.ReplaceAllShapesWithImageResponse.fromJson(o.toJson()); |
| 3257 checkReplaceAllShapesWithImageResponse(od); |
| 3258 }); |
| 3259 }); |
| 3260 |
| 3261 |
| 3262 unittest.group("obj-schema-ReplaceAllTextRequest", () { |
| 3263 unittest.test("to-json--from-json", () { |
| 3264 var o = buildReplaceAllTextRequest(); |
| 3265 var od = new api.ReplaceAllTextRequest.fromJson(o.toJson()); |
| 3266 checkReplaceAllTextRequest(od); |
| 3267 }); |
| 3268 }); |
| 3269 |
| 3270 |
| 3271 unittest.group("obj-schema-ReplaceAllTextResponse", () { |
| 3272 unittest.test("to-json--from-json", () { |
| 3273 var o = buildReplaceAllTextResponse(); |
| 3274 var od = new api.ReplaceAllTextResponse.fromJson(o.toJson()); |
| 3275 checkReplaceAllTextResponse(od); |
| 3276 }); |
| 3277 }); |
| 3278 |
| 3279 |
| 3280 unittest.group("obj-schema-Request", () { |
| 3281 unittest.test("to-json--from-json", () { |
| 3282 var o = buildRequest(); |
| 3283 var od = new api.Request.fromJson(o.toJson()); |
| 3284 checkRequest(od); |
| 3285 }); |
| 3286 }); |
| 3287 |
| 3288 |
| 3289 unittest.group("obj-schema-Response", () { |
| 3290 unittest.test("to-json--from-json", () { |
| 3291 var o = buildResponse(); |
| 3292 var od = new api.Response.fromJson(o.toJson()); |
| 3293 checkResponse(od); |
| 3294 }); |
| 3295 }); |
| 3296 |
| 3297 |
| 3298 unittest.group("obj-schema-RgbColor", () { |
| 3299 unittest.test("to-json--from-json", () { |
| 3300 var o = buildRgbColor(); |
| 3301 var od = new api.RgbColor.fromJson(o.toJson()); |
| 3302 checkRgbColor(od); |
| 3303 }); |
| 3304 }); |
| 3305 |
| 3306 |
| 3307 unittest.group("obj-schema-Shadow", () { |
| 3308 unittest.test("to-json--from-json", () { |
| 3309 var o = buildShadow(); |
| 3310 var od = new api.Shadow.fromJson(o.toJson()); |
| 3311 checkShadow(od); |
| 3312 }); |
| 3313 }); |
| 3314 |
| 3315 |
| 3316 unittest.group("obj-schema-Shape", () { |
| 3317 unittest.test("to-json--from-json", () { |
| 3318 var o = buildShape(); |
| 3319 var od = new api.Shape.fromJson(o.toJson()); |
| 3320 checkShape(od); |
| 3321 }); |
| 3322 }); |
| 3323 |
| 3324 |
| 3325 unittest.group("obj-schema-ShapeBackgroundFill", () { |
| 3326 unittest.test("to-json--from-json", () { |
| 3327 var o = buildShapeBackgroundFill(); |
| 3328 var od = new api.ShapeBackgroundFill.fromJson(o.toJson()); |
| 3329 checkShapeBackgroundFill(od); |
| 3330 }); |
| 3331 }); |
| 3332 |
| 3333 |
| 3334 unittest.group("obj-schema-ShapeProperties", () { |
| 3335 unittest.test("to-json--from-json", () { |
| 3336 var o = buildShapeProperties(); |
| 3337 var od = new api.ShapeProperties.fromJson(o.toJson()); |
| 3338 checkShapeProperties(od); |
| 3339 }); |
| 3340 }); |
| 3341 |
| 3342 |
| 3343 unittest.group("obj-schema-SheetsChart", () { |
| 3344 unittest.test("to-json--from-json", () { |
| 3345 var o = buildSheetsChart(); |
| 3346 var od = new api.SheetsChart.fromJson(o.toJson()); |
| 3347 checkSheetsChart(od); |
| 3348 }); |
| 3349 }); |
| 3350 |
| 3351 |
| 3352 unittest.group("obj-schema-SheetsChartProperties", () { |
| 3353 unittest.test("to-json--from-json", () { |
| 3354 var o = buildSheetsChartProperties(); |
| 3355 var od = new api.SheetsChartProperties.fromJson(o.toJson()); |
| 3356 checkSheetsChartProperties(od); |
| 3357 }); |
| 3358 }); |
| 3359 |
| 3360 |
| 3361 unittest.group("obj-schema-Size", () { |
| 3362 unittest.test("to-json--from-json", () { |
| 3363 var o = buildSize(); |
| 3364 var od = new api.Size.fromJson(o.toJson()); |
| 3365 checkSize(od); |
| 3366 }); |
| 3367 }); |
| 3368 |
| 3369 |
| 3370 unittest.group("obj-schema-SlideProperties", () { |
| 3371 unittest.test("to-json--from-json", () { |
| 3372 var o = buildSlideProperties(); |
| 3373 var od = new api.SlideProperties.fromJson(o.toJson()); |
| 3374 checkSlideProperties(od); |
| 3375 }); |
| 3376 }); |
| 3377 |
| 3378 |
| 3379 unittest.group("obj-schema-SolidFill", () { |
| 3380 unittest.test("to-json--from-json", () { |
| 3381 var o = buildSolidFill(); |
| 3382 var od = new api.SolidFill.fromJson(o.toJson()); |
| 3383 checkSolidFill(od); |
| 3384 }); |
| 3385 }); |
| 3386 |
| 3387 |
| 3388 unittest.group("obj-schema-StretchedPictureFill", () { |
| 3389 unittest.test("to-json--from-json", () { |
| 3390 var o = buildStretchedPictureFill(); |
| 3391 var od = new api.StretchedPictureFill.fromJson(o.toJson()); |
| 3392 checkStretchedPictureFill(od); |
| 3393 }); |
| 3394 }); |
| 3395 |
| 3396 |
| 3397 unittest.group("obj-schema-SubstringMatchCriteria", () { |
| 3398 unittest.test("to-json--from-json", () { |
| 3399 var o = buildSubstringMatchCriteria(); |
| 3400 var od = new api.SubstringMatchCriteria.fromJson(o.toJson()); |
| 3401 checkSubstringMatchCriteria(od); |
| 3402 }); |
| 3403 }); |
| 3404 |
| 3405 |
| 3406 unittest.group("obj-schema-Table", () { |
| 3407 unittest.test("to-json--from-json", () { |
| 3408 var o = buildTable(); |
| 3409 var od = new api.Table.fromJson(o.toJson()); |
| 3410 checkTable(od); |
| 3411 }); |
| 3412 }); |
| 3413 |
| 3414 |
| 3415 unittest.group("obj-schema-TableCell", () { |
| 3416 unittest.test("to-json--from-json", () { |
| 3417 var o = buildTableCell(); |
| 3418 var od = new api.TableCell.fromJson(o.toJson()); |
| 3419 checkTableCell(od); |
| 3420 }); |
| 3421 }); |
| 3422 |
| 3423 |
| 3424 unittest.group("obj-schema-TableCellBackgroundFill", () { |
| 3425 unittest.test("to-json--from-json", () { |
| 3426 var o = buildTableCellBackgroundFill(); |
| 3427 var od = new api.TableCellBackgroundFill.fromJson(o.toJson()); |
| 3428 checkTableCellBackgroundFill(od); |
| 3429 }); |
| 3430 }); |
| 3431 |
| 3432 |
| 3433 unittest.group("obj-schema-TableCellLocation", () { |
| 3434 unittest.test("to-json--from-json", () { |
| 3435 var o = buildTableCellLocation(); |
| 3436 var od = new api.TableCellLocation.fromJson(o.toJson()); |
| 3437 checkTableCellLocation(od); |
| 3438 }); |
| 3439 }); |
| 3440 |
| 3441 |
| 3442 unittest.group("obj-schema-TableCellProperties", () { |
| 3443 unittest.test("to-json--from-json", () { |
| 3444 var o = buildTableCellProperties(); |
| 3445 var od = new api.TableCellProperties.fromJson(o.toJson()); |
| 3446 checkTableCellProperties(od); |
| 3447 }); |
| 3448 }); |
| 3449 |
| 3450 |
| 3451 unittest.group("obj-schema-TableColumnProperties", () { |
| 3452 unittest.test("to-json--from-json", () { |
| 3453 var o = buildTableColumnProperties(); |
| 3454 var od = new api.TableColumnProperties.fromJson(o.toJson()); |
| 3455 checkTableColumnProperties(od); |
| 3456 }); |
| 3457 }); |
| 3458 |
| 3459 |
| 3460 unittest.group("obj-schema-TableRange", () { |
| 3461 unittest.test("to-json--from-json", () { |
| 3462 var o = buildTableRange(); |
| 3463 var od = new api.TableRange.fromJson(o.toJson()); |
| 3464 checkTableRange(od); |
| 3465 }); |
| 3466 }); |
| 3467 |
| 3468 |
| 3469 unittest.group("obj-schema-TableRow", () { |
| 3470 unittest.test("to-json--from-json", () { |
| 3471 var o = buildTableRow(); |
| 3472 var od = new api.TableRow.fromJson(o.toJson()); |
| 3473 checkTableRow(od); |
| 3474 }); |
| 3475 }); |
| 3476 |
| 3477 |
| 3478 unittest.group("obj-schema-TextContent", () { |
| 3479 unittest.test("to-json--from-json", () { |
| 3480 var o = buildTextContent(); |
| 3481 var od = new api.TextContent.fromJson(o.toJson()); |
| 3482 checkTextContent(od); |
| 3483 }); |
| 3484 }); |
| 3485 |
| 3486 |
| 3487 unittest.group("obj-schema-TextElement", () { |
| 3488 unittest.test("to-json--from-json", () { |
| 3489 var o = buildTextElement(); |
| 3490 var od = new api.TextElement.fromJson(o.toJson()); |
| 3491 checkTextElement(od); |
| 3492 }); |
| 3493 }); |
| 3494 |
| 3495 |
| 3496 unittest.group("obj-schema-TextRun", () { |
| 3497 unittest.test("to-json--from-json", () { |
| 3498 var o = buildTextRun(); |
| 3499 var od = new api.TextRun.fromJson(o.toJson()); |
| 3500 checkTextRun(od); |
| 3501 }); |
| 3502 }); |
| 3503 |
| 3504 |
| 3505 unittest.group("obj-schema-TextStyle", () { |
| 3506 unittest.test("to-json--from-json", () { |
| 3507 var o = buildTextStyle(); |
| 3508 var od = new api.TextStyle.fromJson(o.toJson()); |
| 3509 checkTextStyle(od); |
| 3510 }); |
| 3511 }); |
| 3512 |
| 3513 |
| 3514 unittest.group("obj-schema-ThemeColorPair", () { |
| 3515 unittest.test("to-json--from-json", () { |
| 3516 var o = buildThemeColorPair(); |
| 3517 var od = new api.ThemeColorPair.fromJson(o.toJson()); |
| 3518 checkThemeColorPair(od); |
| 3519 }); |
| 3520 }); |
| 3521 |
| 3522 |
| 3523 unittest.group("obj-schema-UpdateImagePropertiesRequest", () { |
| 3524 unittest.test("to-json--from-json", () { |
| 3525 var o = buildUpdateImagePropertiesRequest(); |
| 3526 var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); |
| 3527 checkUpdateImagePropertiesRequest(od); |
| 3528 }); |
| 3529 }); |
| 3530 |
| 3531 |
| 3532 unittest.group("obj-schema-UpdateLinePropertiesRequest", () { |
| 3533 unittest.test("to-json--from-json", () { |
| 3534 var o = buildUpdateLinePropertiesRequest(); |
| 3535 var od = new api.UpdateLinePropertiesRequest.fromJson(o.toJson()); |
| 3536 checkUpdateLinePropertiesRequest(od); |
| 3537 }); |
| 3538 }); |
| 3539 |
| 3540 |
| 3541 unittest.group("obj-schema-UpdatePageElementTransformRequest", () { |
| 3542 unittest.test("to-json--from-json", () { |
| 3543 var o = buildUpdatePageElementTransformRequest(); |
| 3544 var od = new api.UpdatePageElementTransformRequest.fromJson(o.toJson()); |
| 3545 checkUpdatePageElementTransformRequest(od); |
| 3546 }); |
| 3547 }); |
| 3548 |
| 3549 |
| 3550 unittest.group("obj-schema-UpdatePagePropertiesRequest", () { |
| 3551 unittest.test("to-json--from-json", () { |
| 3552 var o = buildUpdatePagePropertiesRequest(); |
| 3553 var od = new api.UpdatePagePropertiesRequest.fromJson(o.toJson()); |
| 3554 checkUpdatePagePropertiesRequest(od); |
| 3555 }); |
| 3556 }); |
| 3557 |
| 3558 |
| 3559 unittest.group("obj-schema-UpdateShapePropertiesRequest", () { |
| 3560 unittest.test("to-json--from-json", () { |
| 3561 var o = buildUpdateShapePropertiesRequest(); |
| 3562 var od = new api.UpdateShapePropertiesRequest.fromJson(o.toJson()); |
| 3563 checkUpdateShapePropertiesRequest(od); |
| 3564 }); |
| 3565 }); |
| 3566 |
| 3567 |
| 3568 unittest.group("obj-schema-UpdateSlidesPositionRequest", () { |
| 3569 unittest.test("to-json--from-json", () { |
| 3570 var o = buildUpdateSlidesPositionRequest(); |
| 3571 var od = new api.UpdateSlidesPositionRequest.fromJson(o.toJson()); |
| 3572 checkUpdateSlidesPositionRequest(od); |
| 3573 }); |
| 3574 }); |
| 3575 |
| 3576 |
| 3577 unittest.group("obj-schema-UpdateTableCellPropertiesRequest", () { |
| 3578 unittest.test("to-json--from-json", () { |
| 3579 var o = buildUpdateTableCellPropertiesRequest(); |
| 3580 var od = new api.UpdateTableCellPropertiesRequest.fromJson(o.toJson()); |
| 3581 checkUpdateTableCellPropertiesRequest(od); |
| 3582 }); |
| 3583 }); |
| 3584 |
| 3585 |
| 3586 unittest.group("obj-schema-UpdateTextStyleRequest", () { |
| 3587 unittest.test("to-json--from-json", () { |
| 3588 var o = buildUpdateTextStyleRequest(); |
| 3589 var od = new api.UpdateTextStyleRequest.fromJson(o.toJson()); |
| 3590 checkUpdateTextStyleRequest(od); |
| 3591 }); |
| 3592 }); |
| 3593 |
| 3594 |
| 3595 unittest.group("obj-schema-UpdateVideoPropertiesRequest", () { |
| 3596 unittest.test("to-json--from-json", () { |
| 3597 var o = buildUpdateVideoPropertiesRequest(); |
| 3598 var od = new api.UpdateVideoPropertiesRequest.fromJson(o.toJson()); |
| 3599 checkUpdateVideoPropertiesRequest(od); |
| 3600 }); |
| 3601 }); |
| 3602 |
| 3603 |
| 3604 unittest.group("obj-schema-Video", () { |
| 3605 unittest.test("to-json--from-json", () { |
| 3606 var o = buildVideo(); |
| 3607 var od = new api.Video.fromJson(o.toJson()); |
| 3608 checkVideo(od); |
| 3609 }); |
| 3610 }); |
| 3611 |
| 3612 |
| 3613 unittest.group("obj-schema-VideoProperties", () { |
| 3614 unittest.test("to-json--from-json", () { |
| 3615 var o = buildVideoProperties(); |
| 3616 var od = new api.VideoProperties.fromJson(o.toJson()); |
| 3617 checkVideoProperties(od); |
| 3618 }); |
| 3619 }); |
| 3620 |
| 3621 |
| 3622 unittest.group("obj-schema-WordArt", () { |
| 3623 unittest.test("to-json--from-json", () { |
| 3624 var o = buildWordArt(); |
| 3625 var od = new api.WordArt.fromJson(o.toJson()); |
| 3626 checkWordArt(od); |
| 3627 }); |
| 3628 }); |
| 3629 |
| 3630 |
| 3631 unittest.group("resource-PresentationsResourceApi", () { |
| 3632 unittest.test("method--batchUpdate", () { |
| 3633 |
| 3634 var mock = new HttpServerMock(); |
| 3635 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 3636 var arg_request = buildBatchUpdatePresentationRequest(); |
| 3637 var arg_presentationId = "foo"; |
| 3638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3639 var obj = new api.BatchUpdatePresentationRequest.fromJson(json); |
| 3640 checkBatchUpdatePresentationRequest(obj); |
| 3641 |
| 3642 var path = (req.url).path; |
| 3643 var pathOffset = 0; |
| 3644 var index; |
| 3645 var subPart; |
| 3646 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3647 pathOffset += 1; |
| 3648 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); |
| 3649 pathOffset += 17; |
| 3650 index = path.indexOf(":batchUpdate", pathOffset); |
| 3651 unittest.expect(index >= 0, unittest.isTrue); |
| 3652 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3653 pathOffset = index; |
| 3654 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 3655 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals(":batchUpdate")); |
| 3656 pathOffset += 12; |
| 3657 |
| 3658 var query = (req.url).query; |
| 3659 var queryOffset = 0; |
| 3660 var queryMap = {}; |
| 3661 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3662 parseBool(n) { |
| 3663 if (n == "true") return true; |
| 3664 if (n == "false") return false; |
| 3665 if (n == null) return null; |
| 3666 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3667 } |
| 3668 if (query.length > 0) { |
| 3669 for (var part in query.split("&")) { |
| 3670 var keyvalue = part.split("="); |
| 3671 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3672 } |
| 3673 } |
| 3674 |
| 3675 |
| 3676 var h = { |
| 3677 "content-type" : "application/json; charset=utf-8", |
| 3678 }; |
| 3679 var resp = convert.JSON.encode(buildBatchUpdatePresentationResponse()); |
| 3680 return new async.Future.value(stringResponse(200, h, resp)); |
| 3681 }), true); |
| 3682 res.batchUpdate(arg_request, arg_presentationId).then(unittest.expectAsync
(((api.BatchUpdatePresentationResponse response) { |
| 3683 checkBatchUpdatePresentationResponse(response); |
| 3684 }))); |
| 3685 }); |
| 3686 |
| 3687 unittest.test("method--create", () { |
| 3688 |
| 3689 var mock = new HttpServerMock(); |
| 3690 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 3691 var arg_request = buildPresentation(); |
| 3692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3693 var obj = new api.Presentation.fromJson(json); |
| 3694 checkPresentation(obj); |
| 3695 |
| 3696 var path = (req.url).path; |
| 3697 var pathOffset = 0; |
| 3698 var index; |
| 3699 var subPart; |
| 3700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3701 pathOffset += 1; |
| 3702 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v1/presentations")); |
| 3703 pathOffset += 16; |
| 3704 |
| 3705 var query = (req.url).query; |
| 3706 var queryOffset = 0; |
| 3707 var queryMap = {}; |
| 3708 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3709 parseBool(n) { |
| 3710 if (n == "true") return true; |
| 3711 if (n == "false") return false; |
| 3712 if (n == null) return null; |
| 3713 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3714 } |
| 3715 if (query.length > 0) { |
| 3716 for (var part in query.split("&")) { |
| 3717 var keyvalue = part.split("="); |
| 3718 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3719 } |
| 3720 } |
| 3721 |
| 3722 |
| 3723 var h = { |
| 3724 "content-type" : "application/json; charset=utf-8", |
| 3725 }; |
| 3726 var resp = convert.JSON.encode(buildPresentation()); |
| 3727 return new async.Future.value(stringResponse(200, h, resp)); |
| 3728 }), true); |
| 3729 res.create(arg_request).then(unittest.expectAsync(((api.Presentation respo
nse) { |
| 3730 checkPresentation(response); |
| 3731 }))); |
| 3732 }); |
| 3733 |
| 3734 unittest.test("method--get", () { |
| 3735 |
| 3736 var mock = new HttpServerMock(); |
| 3737 api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; |
| 3738 var arg_presentationId = "foo"; |
| 3739 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3740 var path = (req.url).path; |
| 3741 var pathOffset = 0; |
| 3742 var index; |
| 3743 var subPart; |
| 3744 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3745 pathOffset += 1; |
| 3746 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); |
| 3747 pathOffset += 17; |
| 3748 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 3749 |
| 3750 var query = (req.url).query; |
| 3751 var queryOffset = 0; |
| 3752 var queryMap = {}; |
| 3753 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3754 parseBool(n) { |
| 3755 if (n == "true") return true; |
| 3756 if (n == "false") return false; |
| 3757 if (n == null) return null; |
| 3758 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3759 } |
| 3760 if (query.length > 0) { |
| 3761 for (var part in query.split("&")) { |
| 3762 var keyvalue = part.split("="); |
| 3763 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3764 } |
| 3765 } |
| 3766 |
| 3767 |
| 3768 var h = { |
| 3769 "content-type" : "application/json; charset=utf-8", |
| 3770 }; |
| 3771 var resp = convert.JSON.encode(buildPresentation()); |
| 3772 return new async.Future.value(stringResponse(200, h, resp)); |
| 3773 }), true); |
| 3774 res.get(arg_presentationId).then(unittest.expectAsync(((api.Presentation r
esponse) { |
| 3775 checkPresentation(response); |
| 3776 }))); |
| 3777 }); |
| 3778 |
| 3779 }); |
| 3780 |
| 3781 |
| 3782 unittest.group("resource-PresentationsPagesResourceApi", () { |
| 3783 unittest.test("method--get", () { |
| 3784 |
| 3785 var mock = new HttpServerMock(); |
| 3786 api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentati
ons.pages; |
| 3787 var arg_presentationId = "foo"; |
| 3788 var arg_pageObjectId = "foo"; |
| 3789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3790 var path = (req.url).path; |
| 3791 var pathOffset = 0; |
| 3792 var index; |
| 3793 var subPart; |
| 3794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3795 pathOffset += 1; |
| 3796 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/presentations/")); |
| 3797 pathOffset += 17; |
| 3798 index = path.indexOf("/pages/", pathOffset); |
| 3799 unittest.expect(index >= 0, unittest.isTrue); |
| 3800 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3801 pathOffset = index; |
| 3802 unittest.expect(subPart, unittest.equals("$arg_presentationId")); |
| 3803 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/pages/")); |
| 3804 pathOffset += 7; |
| 3805 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3806 pathOffset = path.length; |
| 3807 unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); |
| 3808 |
| 3809 var query = (req.url).query; |
| 3810 var queryOffset = 0; |
| 3811 var queryMap = {}; |
| 3812 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3813 parseBool(n) { |
| 3814 if (n == "true") return true; |
| 3815 if (n == "false") return false; |
| 3816 if (n == null) return null; |
| 3817 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3818 } |
| 3819 if (query.length > 0) { |
| 3820 for (var part in query.split("&")) { |
| 3821 var keyvalue = part.split("="); |
| 3822 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3823 } |
| 3824 } |
| 3825 |
| 3826 |
| 3827 var h = { |
| 3828 "content-type" : "application/json; charset=utf-8", |
| 3829 }; |
| 3830 var resp = convert.JSON.encode(buildPage()); |
| 3831 return new async.Future.value(stringResponse(200, h, resp)); |
| 3832 }), true); |
| 3833 res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync(((
api.Page response) { |
| 3834 checkPage(response); |
| 3835 }))); |
| 3836 }); |
| 3837 |
| 3838 }); |
| 3839 |
| 3840 |
| 3841 } |
| 3842 |
OLD | NEW |