| // ignore_for_file: camel_case_types |
| // ignore_for_file: comment_references |
| // ignore_for_file: constant_identifier_names |
| // ignore_for_file: directives_ordering |
| // ignore_for_file: file_names |
| // ignore_for_file: library_names |
| // ignore_for_file: lines_longer_than_80_chars |
| // ignore_for_file: non_constant_identifier_names |
| // ignore_for_file: omit_local_variable_types |
| // ignore_for_file: prefer_expression_function_bodies |
| // ignore_for_file: prefer_final_locals |
| // ignore_for_file: prefer_interpolation_to_compose_strings |
| // ignore_for_file: unnecessary_brace_in_string_interps |
| // ignore_for_file: unnecessary_cast |
| // ignore_for_file: unnecessary_lambdas |
| // ignore_for_file: unnecessary_parenthesis |
| // ignore_for_file: unnecessary_string_interpolations |
| // ignore_for_file: avoid_returning_null |
| // ignore_for_file: cascade_invocations |
| // ignore_for_file: prefer_single_quotes |
| // ignore_for_file: unused_local_variable |
| |
| library googleapis.slides.v1.test; |
| |
| import "dart:core" as core; |
| import "dart:async" as async; |
| import "dart:convert" as convert; |
| |
| import 'package:http/http.dart' as http; |
| import 'package:test/test.dart' as unittest; |
| |
| import 'package:googleapis/slides/v1.dart' as api; |
| |
| class HttpServerMock extends http.BaseClient { |
| core.Function _callback; |
| core.bool _expectJson; |
| |
| void register(core.Function callback, core.bool expectJson) { |
| _callback = callback; |
| _expectJson = expectJson; |
| } |
| |
| @core.override |
| async.Future<http.StreamedResponse> send(http.BaseRequest request) async { |
| if (_expectJson) { |
| final jsonString = |
| await request.finalize().transform(convert.utf8.decoder).join(''); |
| if (jsonString.isEmpty) { |
| return _callback(request, null); |
| } else { |
| return _callback(request, convert.json.decode(jsonString)); |
| } |
| } else { |
| var stream = request.finalize(); |
| if (stream == null) { |
| return _callback(request, []); |
| } else { |
| final data = await stream.toBytes(); |
| return _callback(request, data); |
| } |
| } |
| } |
| } |
| |
| http.StreamedResponse stringResponse(core.int status, |
| core.Map<core.String, core.String> headers, core.String body) { |
| var stream = async.Stream.fromIterable([convert.utf8.encode(body)]); |
| return http.StreamedResponse(stream, status, headers: headers); |
| } |
| |
| core.int buildCounterAffineTransform = 0; |
| api.AffineTransform buildAffineTransform() { |
| var o = api.AffineTransform(); |
| buildCounterAffineTransform++; |
| if (buildCounterAffineTransform < 3) { |
| o.scaleX = 42.0; |
| o.scaleY = 42.0; |
| o.shearX = 42.0; |
| o.shearY = 42.0; |
| o.translateX = 42.0; |
| o.translateY = 42.0; |
| o.unit = 'foo'; |
| } |
| buildCounterAffineTransform--; |
| return o; |
| } |
| |
| void checkAffineTransform(api.AffineTransform o) { |
| buildCounterAffineTransform++; |
| if (buildCounterAffineTransform < 3) { |
| unittest.expect(o.scaleX, unittest.equals(42.0)); |
| unittest.expect(o.scaleY, unittest.equals(42.0)); |
| unittest.expect(o.shearX, unittest.equals(42.0)); |
| unittest.expect(o.shearY, unittest.equals(42.0)); |
| unittest.expect(o.translateX, unittest.equals(42.0)); |
| unittest.expect(o.translateY, unittest.equals(42.0)); |
| unittest.expect(o.unit, unittest.equals('foo')); |
| } |
| buildCounterAffineTransform--; |
| } |
| |
| core.int buildCounterAutoText = 0; |
| api.AutoText buildAutoText() { |
| var o = api.AutoText(); |
| buildCounterAutoText++; |
| if (buildCounterAutoText < 3) { |
| o.content = 'foo'; |
| o.style = buildTextStyle(); |
| o.type = 'foo'; |
| } |
| buildCounterAutoText--; |
| return o; |
| } |
| |
| void checkAutoText(api.AutoText o) { |
| buildCounterAutoText++; |
| if (buildCounterAutoText < 3) { |
| unittest.expect(o.content, unittest.equals('foo')); |
| checkTextStyle(o.style); |
| unittest.expect(o.type, unittest.equals('foo')); |
| } |
| buildCounterAutoText--; |
| } |
| |
| core.List<api.Request> buildUnnamed1922() { |
| var o = <api.Request>[]; |
| o.add(buildRequest()); |
| o.add(buildRequest()); |
| return o; |
| } |
| |
| void checkUnnamed1922(core.List<api.Request> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkRequest(o[0]); |
| checkRequest(o[1]); |
| } |
| |
| core.int buildCounterBatchUpdatePresentationRequest = 0; |
| api.BatchUpdatePresentationRequest buildBatchUpdatePresentationRequest() { |
| var o = api.BatchUpdatePresentationRequest(); |
| buildCounterBatchUpdatePresentationRequest++; |
| if (buildCounterBatchUpdatePresentationRequest < 3) { |
| o.requests = buildUnnamed1922(); |
| o.writeControl = buildWriteControl(); |
| } |
| buildCounterBatchUpdatePresentationRequest--; |
| return o; |
| } |
| |
| void checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { |
| buildCounterBatchUpdatePresentationRequest++; |
| if (buildCounterBatchUpdatePresentationRequest < 3) { |
| checkUnnamed1922(o.requests); |
| checkWriteControl(o.writeControl); |
| } |
| buildCounterBatchUpdatePresentationRequest--; |
| } |
| |
| core.List<api.Response> buildUnnamed1923() { |
| var o = <api.Response>[]; |
| o.add(buildResponse()); |
| o.add(buildResponse()); |
| return o; |
| } |
| |
| void checkUnnamed1923(core.List<api.Response> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkResponse(o[0]); |
| checkResponse(o[1]); |
| } |
| |
| core.int buildCounterBatchUpdatePresentationResponse = 0; |
| api.BatchUpdatePresentationResponse buildBatchUpdatePresentationResponse() { |
| var o = api.BatchUpdatePresentationResponse(); |
| buildCounterBatchUpdatePresentationResponse++; |
| if (buildCounterBatchUpdatePresentationResponse < 3) { |
| o.presentationId = 'foo'; |
| o.replies = buildUnnamed1923(); |
| o.writeControl = buildWriteControl(); |
| } |
| buildCounterBatchUpdatePresentationResponse--; |
| return o; |
| } |
| |
| void checkBatchUpdatePresentationResponse( |
| api.BatchUpdatePresentationResponse o) { |
| buildCounterBatchUpdatePresentationResponse++; |
| if (buildCounterBatchUpdatePresentationResponse < 3) { |
| unittest.expect(o.presentationId, unittest.equals('foo')); |
| checkUnnamed1923(o.replies); |
| checkWriteControl(o.writeControl); |
| } |
| buildCounterBatchUpdatePresentationResponse--; |
| } |
| |
| core.int buildCounterBullet = 0; |
| api.Bullet buildBullet() { |
| var o = api.Bullet(); |
| buildCounterBullet++; |
| if (buildCounterBullet < 3) { |
| o.bulletStyle = buildTextStyle(); |
| o.glyph = 'foo'; |
| o.listId = 'foo'; |
| o.nestingLevel = 42; |
| } |
| buildCounterBullet--; |
| return o; |
| } |
| |
| void checkBullet(api.Bullet o) { |
| buildCounterBullet++; |
| if (buildCounterBullet < 3) { |
| checkTextStyle(o.bulletStyle); |
| unittest.expect(o.glyph, unittest.equals('foo')); |
| unittest.expect(o.listId, unittest.equals('foo')); |
| unittest.expect(o.nestingLevel, unittest.equals(42)); |
| } |
| buildCounterBullet--; |
| } |
| |
| core.List<api.ThemeColorPair> buildUnnamed1924() { |
| var o = <api.ThemeColorPair>[]; |
| o.add(buildThemeColorPair()); |
| o.add(buildThemeColorPair()); |
| return o; |
| } |
| |
| void checkUnnamed1924(core.List<api.ThemeColorPair> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkThemeColorPair(o[0]); |
| checkThemeColorPair(o[1]); |
| } |
| |
| core.int buildCounterColorScheme = 0; |
| api.ColorScheme buildColorScheme() { |
| var o = api.ColorScheme(); |
| buildCounterColorScheme++; |
| if (buildCounterColorScheme < 3) { |
| o.colors = buildUnnamed1924(); |
| } |
| buildCounterColorScheme--; |
| return o; |
| } |
| |
| void checkColorScheme(api.ColorScheme o) { |
| buildCounterColorScheme++; |
| if (buildCounterColorScheme < 3) { |
| checkUnnamed1924(o.colors); |
| } |
| buildCounterColorScheme--; |
| } |
| |
| core.int buildCounterColorStop = 0; |
| api.ColorStop buildColorStop() { |
| var o = api.ColorStop(); |
| buildCounterColorStop++; |
| if (buildCounterColorStop < 3) { |
| o.alpha = 42.0; |
| o.color = buildOpaqueColor(); |
| o.position = 42.0; |
| } |
| buildCounterColorStop--; |
| return o; |
| } |
| |
| void checkColorStop(api.ColorStop o) { |
| buildCounterColorStop++; |
| if (buildCounterColorStop < 3) { |
| unittest.expect(o.alpha, unittest.equals(42.0)); |
| checkOpaqueColor(o.color); |
| unittest.expect(o.position, unittest.equals(42.0)); |
| } |
| buildCounterColorStop--; |
| } |
| |
| core.int buildCounterCreateImageRequest = 0; |
| api.CreateImageRequest buildCreateImageRequest() { |
| var o = api.CreateImageRequest(); |
| buildCounterCreateImageRequest++; |
| if (buildCounterCreateImageRequest < 3) { |
| o.elementProperties = buildPageElementProperties(); |
| o.objectId = 'foo'; |
| o.url = 'foo'; |
| } |
| buildCounterCreateImageRequest--; |
| return o; |
| } |
| |
| void checkCreateImageRequest(api.CreateImageRequest o) { |
| buildCounterCreateImageRequest++; |
| if (buildCounterCreateImageRequest < 3) { |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterCreateImageRequest--; |
| } |
| |
| core.int buildCounterCreateImageResponse = 0; |
| api.CreateImageResponse buildCreateImageResponse() { |
| var o = api.CreateImageResponse(); |
| buildCounterCreateImageResponse++; |
| if (buildCounterCreateImageResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateImageResponse--; |
| return o; |
| } |
| |
| void checkCreateImageResponse(api.CreateImageResponse o) { |
| buildCounterCreateImageResponse++; |
| if (buildCounterCreateImageResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateImageResponse--; |
| } |
| |
| core.int buildCounterCreateLineRequest = 0; |
| api.CreateLineRequest buildCreateLineRequest() { |
| var o = api.CreateLineRequest(); |
| buildCounterCreateLineRequest++; |
| if (buildCounterCreateLineRequest < 3) { |
| o.category = 'foo'; |
| o.elementProperties = buildPageElementProperties(); |
| o.lineCategory = 'foo'; |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateLineRequest--; |
| return o; |
| } |
| |
| void checkCreateLineRequest(api.CreateLineRequest o) { |
| buildCounterCreateLineRequest++; |
| if (buildCounterCreateLineRequest < 3) { |
| unittest.expect(o.category, unittest.equals('foo')); |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.lineCategory, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateLineRequest--; |
| } |
| |
| core.int buildCounterCreateLineResponse = 0; |
| api.CreateLineResponse buildCreateLineResponse() { |
| var o = api.CreateLineResponse(); |
| buildCounterCreateLineResponse++; |
| if (buildCounterCreateLineResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateLineResponse--; |
| return o; |
| } |
| |
| void checkCreateLineResponse(api.CreateLineResponse o) { |
| buildCounterCreateLineResponse++; |
| if (buildCounterCreateLineResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateLineResponse--; |
| } |
| |
| core.int buildCounterCreateParagraphBulletsRequest = 0; |
| api.CreateParagraphBulletsRequest buildCreateParagraphBulletsRequest() { |
| var o = api.CreateParagraphBulletsRequest(); |
| buildCounterCreateParagraphBulletsRequest++; |
| if (buildCounterCreateParagraphBulletsRequest < 3) { |
| o.bulletPreset = 'foo'; |
| o.cellLocation = buildTableCellLocation(); |
| o.objectId = 'foo'; |
| o.textRange = buildRange(); |
| } |
| buildCounterCreateParagraphBulletsRequest--; |
| return o; |
| } |
| |
| void checkCreateParagraphBulletsRequest(api.CreateParagraphBulletsRequest o) { |
| buildCounterCreateParagraphBulletsRequest++; |
| if (buildCounterCreateParagraphBulletsRequest < 3) { |
| unittest.expect(o.bulletPreset, unittest.equals('foo')); |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkRange(o.textRange); |
| } |
| buildCounterCreateParagraphBulletsRequest--; |
| } |
| |
| core.int buildCounterCreateShapeRequest = 0; |
| api.CreateShapeRequest buildCreateShapeRequest() { |
| var o = api.CreateShapeRequest(); |
| buildCounterCreateShapeRequest++; |
| if (buildCounterCreateShapeRequest < 3) { |
| o.elementProperties = buildPageElementProperties(); |
| o.objectId = 'foo'; |
| o.shapeType = 'foo'; |
| } |
| buildCounterCreateShapeRequest--; |
| return o; |
| } |
| |
| void checkCreateShapeRequest(api.CreateShapeRequest o) { |
| buildCounterCreateShapeRequest++; |
| if (buildCounterCreateShapeRequest < 3) { |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.shapeType, unittest.equals('foo')); |
| } |
| buildCounterCreateShapeRequest--; |
| } |
| |
| core.int buildCounterCreateShapeResponse = 0; |
| api.CreateShapeResponse buildCreateShapeResponse() { |
| var o = api.CreateShapeResponse(); |
| buildCounterCreateShapeResponse++; |
| if (buildCounterCreateShapeResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateShapeResponse--; |
| return o; |
| } |
| |
| void checkCreateShapeResponse(api.CreateShapeResponse o) { |
| buildCounterCreateShapeResponse++; |
| if (buildCounterCreateShapeResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateShapeResponse--; |
| } |
| |
| core.int buildCounterCreateSheetsChartRequest = 0; |
| api.CreateSheetsChartRequest buildCreateSheetsChartRequest() { |
| var o = api.CreateSheetsChartRequest(); |
| buildCounterCreateSheetsChartRequest++; |
| if (buildCounterCreateSheetsChartRequest < 3) { |
| o.chartId = 42; |
| o.elementProperties = buildPageElementProperties(); |
| o.linkingMode = 'foo'; |
| o.objectId = 'foo'; |
| o.spreadsheetId = 'foo'; |
| } |
| buildCounterCreateSheetsChartRequest--; |
| return o; |
| } |
| |
| void checkCreateSheetsChartRequest(api.CreateSheetsChartRequest o) { |
| buildCounterCreateSheetsChartRequest++; |
| if (buildCounterCreateSheetsChartRequest < 3) { |
| unittest.expect(o.chartId, unittest.equals(42)); |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.linkingMode, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| } |
| buildCounterCreateSheetsChartRequest--; |
| } |
| |
| core.int buildCounterCreateSheetsChartResponse = 0; |
| api.CreateSheetsChartResponse buildCreateSheetsChartResponse() { |
| var o = api.CreateSheetsChartResponse(); |
| buildCounterCreateSheetsChartResponse++; |
| if (buildCounterCreateSheetsChartResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateSheetsChartResponse--; |
| return o; |
| } |
| |
| void checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { |
| buildCounterCreateSheetsChartResponse++; |
| if (buildCounterCreateSheetsChartResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateSheetsChartResponse--; |
| } |
| |
| core.List<api.LayoutPlaceholderIdMapping> buildUnnamed1925() { |
| var o = <api.LayoutPlaceholderIdMapping>[]; |
| o.add(buildLayoutPlaceholderIdMapping()); |
| o.add(buildLayoutPlaceholderIdMapping()); |
| return o; |
| } |
| |
| void checkUnnamed1925(core.List<api.LayoutPlaceholderIdMapping> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkLayoutPlaceholderIdMapping(o[0]); |
| checkLayoutPlaceholderIdMapping(o[1]); |
| } |
| |
| core.int buildCounterCreateSlideRequest = 0; |
| api.CreateSlideRequest buildCreateSlideRequest() { |
| var o = api.CreateSlideRequest(); |
| buildCounterCreateSlideRequest++; |
| if (buildCounterCreateSlideRequest < 3) { |
| o.insertionIndex = 42; |
| o.objectId = 'foo'; |
| o.placeholderIdMappings = buildUnnamed1925(); |
| o.slideLayoutReference = buildLayoutReference(); |
| } |
| buildCounterCreateSlideRequest--; |
| return o; |
| } |
| |
| void checkCreateSlideRequest(api.CreateSlideRequest o) { |
| buildCounterCreateSlideRequest++; |
| if (buildCounterCreateSlideRequest < 3) { |
| unittest.expect(o.insertionIndex, unittest.equals(42)); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkUnnamed1925(o.placeholderIdMappings); |
| checkLayoutReference(o.slideLayoutReference); |
| } |
| buildCounterCreateSlideRequest--; |
| } |
| |
| core.int buildCounterCreateSlideResponse = 0; |
| api.CreateSlideResponse buildCreateSlideResponse() { |
| var o = api.CreateSlideResponse(); |
| buildCounterCreateSlideResponse++; |
| if (buildCounterCreateSlideResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateSlideResponse--; |
| return o; |
| } |
| |
| void checkCreateSlideResponse(api.CreateSlideResponse o) { |
| buildCounterCreateSlideResponse++; |
| if (buildCounterCreateSlideResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateSlideResponse--; |
| } |
| |
| core.int buildCounterCreateTableRequest = 0; |
| api.CreateTableRequest buildCreateTableRequest() { |
| var o = api.CreateTableRequest(); |
| buildCounterCreateTableRequest++; |
| if (buildCounterCreateTableRequest < 3) { |
| o.columns = 42; |
| o.elementProperties = buildPageElementProperties(); |
| o.objectId = 'foo'; |
| o.rows = 42; |
| } |
| buildCounterCreateTableRequest--; |
| return o; |
| } |
| |
| void checkCreateTableRequest(api.CreateTableRequest o) { |
| buildCounterCreateTableRequest++; |
| if (buildCounterCreateTableRequest < 3) { |
| unittest.expect(o.columns, unittest.equals(42)); |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.rows, unittest.equals(42)); |
| } |
| buildCounterCreateTableRequest--; |
| } |
| |
| core.int buildCounterCreateTableResponse = 0; |
| api.CreateTableResponse buildCreateTableResponse() { |
| var o = api.CreateTableResponse(); |
| buildCounterCreateTableResponse++; |
| if (buildCounterCreateTableResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateTableResponse--; |
| return o; |
| } |
| |
| void checkCreateTableResponse(api.CreateTableResponse o) { |
| buildCounterCreateTableResponse++; |
| if (buildCounterCreateTableResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateTableResponse--; |
| } |
| |
| core.int buildCounterCreateVideoRequest = 0; |
| api.CreateVideoRequest buildCreateVideoRequest() { |
| var o = api.CreateVideoRequest(); |
| buildCounterCreateVideoRequest++; |
| if (buildCounterCreateVideoRequest < 3) { |
| o.elementProperties = buildPageElementProperties(); |
| o.id = 'foo'; |
| o.objectId = 'foo'; |
| o.source = 'foo'; |
| } |
| buildCounterCreateVideoRequest--; |
| return o; |
| } |
| |
| void checkCreateVideoRequest(api.CreateVideoRequest o) { |
| buildCounterCreateVideoRequest++; |
| if (buildCounterCreateVideoRequest < 3) { |
| checkPageElementProperties(o.elementProperties); |
| unittest.expect(o.id, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.source, unittest.equals('foo')); |
| } |
| buildCounterCreateVideoRequest--; |
| } |
| |
| core.int buildCounterCreateVideoResponse = 0; |
| api.CreateVideoResponse buildCreateVideoResponse() { |
| var o = api.CreateVideoResponse(); |
| buildCounterCreateVideoResponse++; |
| if (buildCounterCreateVideoResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterCreateVideoResponse--; |
| return o; |
| } |
| |
| void checkCreateVideoResponse(api.CreateVideoResponse o) { |
| buildCounterCreateVideoResponse++; |
| if (buildCounterCreateVideoResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterCreateVideoResponse--; |
| } |
| |
| core.int buildCounterCropProperties = 0; |
| api.CropProperties buildCropProperties() { |
| var o = api.CropProperties(); |
| buildCounterCropProperties++; |
| if (buildCounterCropProperties < 3) { |
| o.angle = 42.0; |
| o.bottomOffset = 42.0; |
| o.leftOffset = 42.0; |
| o.rightOffset = 42.0; |
| o.topOffset = 42.0; |
| } |
| buildCounterCropProperties--; |
| return o; |
| } |
| |
| void checkCropProperties(api.CropProperties o) { |
| buildCounterCropProperties++; |
| if (buildCounterCropProperties < 3) { |
| unittest.expect(o.angle, unittest.equals(42.0)); |
| unittest.expect(o.bottomOffset, unittest.equals(42.0)); |
| unittest.expect(o.leftOffset, unittest.equals(42.0)); |
| unittest.expect(o.rightOffset, unittest.equals(42.0)); |
| unittest.expect(o.topOffset, unittest.equals(42.0)); |
| } |
| buildCounterCropProperties--; |
| } |
| |
| core.int buildCounterDeleteObjectRequest = 0; |
| api.DeleteObjectRequest buildDeleteObjectRequest() { |
| var o = api.DeleteObjectRequest(); |
| buildCounterDeleteObjectRequest++; |
| if (buildCounterDeleteObjectRequest < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterDeleteObjectRequest--; |
| return o; |
| } |
| |
| void checkDeleteObjectRequest(api.DeleteObjectRequest o) { |
| buildCounterDeleteObjectRequest++; |
| if (buildCounterDeleteObjectRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterDeleteObjectRequest--; |
| } |
| |
| core.int buildCounterDeleteParagraphBulletsRequest = 0; |
| api.DeleteParagraphBulletsRequest buildDeleteParagraphBulletsRequest() { |
| var o = api.DeleteParagraphBulletsRequest(); |
| buildCounterDeleteParagraphBulletsRequest++; |
| if (buildCounterDeleteParagraphBulletsRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.objectId = 'foo'; |
| o.textRange = buildRange(); |
| } |
| buildCounterDeleteParagraphBulletsRequest--; |
| return o; |
| } |
| |
| void checkDeleteParagraphBulletsRequest(api.DeleteParagraphBulletsRequest o) { |
| buildCounterDeleteParagraphBulletsRequest++; |
| if (buildCounterDeleteParagraphBulletsRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkRange(o.textRange); |
| } |
| buildCounterDeleteParagraphBulletsRequest--; |
| } |
| |
| core.int buildCounterDeleteTableColumnRequest = 0; |
| api.DeleteTableColumnRequest buildDeleteTableColumnRequest() { |
| var o = api.DeleteTableColumnRequest(); |
| buildCounterDeleteTableColumnRequest++; |
| if (buildCounterDeleteTableColumnRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.tableObjectId = 'foo'; |
| } |
| buildCounterDeleteTableColumnRequest--; |
| return o; |
| } |
| |
| void checkDeleteTableColumnRequest(api.DeleteTableColumnRequest o) { |
| buildCounterDeleteTableColumnRequest++; |
| if (buildCounterDeleteTableColumnRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| } |
| buildCounterDeleteTableColumnRequest--; |
| } |
| |
| core.int buildCounterDeleteTableRowRequest = 0; |
| api.DeleteTableRowRequest buildDeleteTableRowRequest() { |
| var o = api.DeleteTableRowRequest(); |
| buildCounterDeleteTableRowRequest++; |
| if (buildCounterDeleteTableRowRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.tableObjectId = 'foo'; |
| } |
| buildCounterDeleteTableRowRequest--; |
| return o; |
| } |
| |
| void checkDeleteTableRowRequest(api.DeleteTableRowRequest o) { |
| buildCounterDeleteTableRowRequest++; |
| if (buildCounterDeleteTableRowRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| } |
| buildCounterDeleteTableRowRequest--; |
| } |
| |
| core.int buildCounterDeleteTextRequest = 0; |
| api.DeleteTextRequest buildDeleteTextRequest() { |
| var o = api.DeleteTextRequest(); |
| buildCounterDeleteTextRequest++; |
| if (buildCounterDeleteTextRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.objectId = 'foo'; |
| o.textRange = buildRange(); |
| } |
| buildCounterDeleteTextRequest--; |
| return o; |
| } |
| |
| void checkDeleteTextRequest(api.DeleteTextRequest o) { |
| buildCounterDeleteTextRequest++; |
| if (buildCounterDeleteTextRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkRange(o.textRange); |
| } |
| buildCounterDeleteTextRequest--; |
| } |
| |
| core.int buildCounterDimension = 0; |
| api.Dimension buildDimension() { |
| var o = api.Dimension(); |
| buildCounterDimension++; |
| if (buildCounterDimension < 3) { |
| o.magnitude = 42.0; |
| o.unit = 'foo'; |
| } |
| buildCounterDimension--; |
| return o; |
| } |
| |
| void checkDimension(api.Dimension o) { |
| buildCounterDimension++; |
| if (buildCounterDimension < 3) { |
| unittest.expect(o.magnitude, unittest.equals(42.0)); |
| unittest.expect(o.unit, unittest.equals('foo')); |
| } |
| buildCounterDimension--; |
| } |
| |
| core.Map<core.String, core.String> buildUnnamed1926() { |
| var o = <core.String, core.String>{}; |
| o['x'] = 'foo'; |
| o['y'] = 'foo'; |
| return o; |
| } |
| |
| void checkUnnamed1926(core.Map<core.String, core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o['x'], unittest.equals('foo')); |
| unittest.expect(o['y'], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterDuplicateObjectRequest = 0; |
| api.DuplicateObjectRequest buildDuplicateObjectRequest() { |
| var o = api.DuplicateObjectRequest(); |
| buildCounterDuplicateObjectRequest++; |
| if (buildCounterDuplicateObjectRequest < 3) { |
| o.objectId = 'foo'; |
| o.objectIds = buildUnnamed1926(); |
| } |
| buildCounterDuplicateObjectRequest--; |
| return o; |
| } |
| |
| void checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { |
| buildCounterDuplicateObjectRequest++; |
| if (buildCounterDuplicateObjectRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkUnnamed1926(o.objectIds); |
| } |
| buildCounterDuplicateObjectRequest--; |
| } |
| |
| core.int buildCounterDuplicateObjectResponse = 0; |
| api.DuplicateObjectResponse buildDuplicateObjectResponse() { |
| var o = api.DuplicateObjectResponse(); |
| buildCounterDuplicateObjectResponse++; |
| if (buildCounterDuplicateObjectResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterDuplicateObjectResponse--; |
| return o; |
| } |
| |
| void checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { |
| buildCounterDuplicateObjectResponse++; |
| if (buildCounterDuplicateObjectResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterDuplicateObjectResponse--; |
| } |
| |
| core.List<api.PageElement> buildUnnamed1927() { |
| var o = <api.PageElement>[]; |
| o.add(buildPageElement()); |
| o.add(buildPageElement()); |
| return o; |
| } |
| |
| void checkUnnamed1927(core.List<api.PageElement> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPageElement(o[0]); |
| checkPageElement(o[1]); |
| } |
| |
| core.int buildCounterGroup = 0; |
| api.Group buildGroup() { |
| var o = api.Group(); |
| buildCounterGroup++; |
| if (buildCounterGroup < 3) { |
| o.children = buildUnnamed1927(); |
| } |
| buildCounterGroup--; |
| return o; |
| } |
| |
| void checkGroup(api.Group o) { |
| buildCounterGroup++; |
| if (buildCounterGroup < 3) { |
| checkUnnamed1927(o.children); |
| } |
| buildCounterGroup--; |
| } |
| |
| core.List<core.String> buildUnnamed1928() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1928(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterGroupObjectsRequest = 0; |
| api.GroupObjectsRequest buildGroupObjectsRequest() { |
| var o = api.GroupObjectsRequest(); |
| buildCounterGroupObjectsRequest++; |
| if (buildCounterGroupObjectsRequest < 3) { |
| o.childrenObjectIds = buildUnnamed1928(); |
| o.groupObjectId = 'foo'; |
| } |
| buildCounterGroupObjectsRequest--; |
| return o; |
| } |
| |
| void checkGroupObjectsRequest(api.GroupObjectsRequest o) { |
| buildCounterGroupObjectsRequest++; |
| if (buildCounterGroupObjectsRequest < 3) { |
| checkUnnamed1928(o.childrenObjectIds); |
| unittest.expect(o.groupObjectId, unittest.equals('foo')); |
| } |
| buildCounterGroupObjectsRequest--; |
| } |
| |
| core.int buildCounterGroupObjectsResponse = 0; |
| api.GroupObjectsResponse buildGroupObjectsResponse() { |
| var o = api.GroupObjectsResponse(); |
| buildCounterGroupObjectsResponse++; |
| if (buildCounterGroupObjectsResponse < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterGroupObjectsResponse--; |
| return o; |
| } |
| |
| void checkGroupObjectsResponse(api.GroupObjectsResponse o) { |
| buildCounterGroupObjectsResponse++; |
| if (buildCounterGroupObjectsResponse < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterGroupObjectsResponse--; |
| } |
| |
| core.int buildCounterImage = 0; |
| api.Image buildImage() { |
| var o = api.Image(); |
| buildCounterImage++; |
| if (buildCounterImage < 3) { |
| o.contentUrl = 'foo'; |
| o.imageProperties = buildImageProperties(); |
| o.sourceUrl = 'foo'; |
| } |
| buildCounterImage--; |
| return o; |
| } |
| |
| void checkImage(api.Image o) { |
| buildCounterImage++; |
| if (buildCounterImage < 3) { |
| unittest.expect(o.contentUrl, unittest.equals('foo')); |
| checkImageProperties(o.imageProperties); |
| unittest.expect(o.sourceUrl, unittest.equals('foo')); |
| } |
| buildCounterImage--; |
| } |
| |
| core.int buildCounterImageProperties = 0; |
| api.ImageProperties buildImageProperties() { |
| var o = api.ImageProperties(); |
| buildCounterImageProperties++; |
| if (buildCounterImageProperties < 3) { |
| o.brightness = 42.0; |
| o.contrast = 42.0; |
| o.cropProperties = buildCropProperties(); |
| o.link = buildLink(); |
| o.outline = buildOutline(); |
| o.recolor = buildRecolor(); |
| o.shadow = buildShadow(); |
| o.transparency = 42.0; |
| } |
| buildCounterImageProperties--; |
| return o; |
| } |
| |
| void checkImageProperties(api.ImageProperties o) { |
| buildCounterImageProperties++; |
| if (buildCounterImageProperties < 3) { |
| unittest.expect(o.brightness, unittest.equals(42.0)); |
| unittest.expect(o.contrast, unittest.equals(42.0)); |
| checkCropProperties(o.cropProperties); |
| checkLink(o.link); |
| checkOutline(o.outline); |
| checkRecolor(o.recolor); |
| checkShadow(o.shadow); |
| unittest.expect(o.transparency, unittest.equals(42.0)); |
| } |
| buildCounterImageProperties--; |
| } |
| |
| core.int buildCounterInsertTableColumnsRequest = 0; |
| api.InsertTableColumnsRequest buildInsertTableColumnsRequest() { |
| var o = api.InsertTableColumnsRequest(); |
| buildCounterInsertTableColumnsRequest++; |
| if (buildCounterInsertTableColumnsRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.insertRight = true; |
| o.number = 42; |
| o.tableObjectId = 'foo'; |
| } |
| buildCounterInsertTableColumnsRequest--; |
| return o; |
| } |
| |
| void checkInsertTableColumnsRequest(api.InsertTableColumnsRequest o) { |
| buildCounterInsertTableColumnsRequest++; |
| if (buildCounterInsertTableColumnsRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.insertRight, unittest.isTrue); |
| unittest.expect(o.number, unittest.equals(42)); |
| unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| } |
| buildCounterInsertTableColumnsRequest--; |
| } |
| |
| core.int buildCounterInsertTableRowsRequest = 0; |
| api.InsertTableRowsRequest buildInsertTableRowsRequest() { |
| var o = api.InsertTableRowsRequest(); |
| buildCounterInsertTableRowsRequest++; |
| if (buildCounterInsertTableRowsRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.insertBelow = true; |
| o.number = 42; |
| o.tableObjectId = 'foo'; |
| } |
| buildCounterInsertTableRowsRequest--; |
| return o; |
| } |
| |
| void checkInsertTableRowsRequest(api.InsertTableRowsRequest o) { |
| buildCounterInsertTableRowsRequest++; |
| if (buildCounterInsertTableRowsRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.insertBelow, unittest.isTrue); |
| unittest.expect(o.number, unittest.equals(42)); |
| unittest.expect(o.tableObjectId, unittest.equals('foo')); |
| } |
| buildCounterInsertTableRowsRequest--; |
| } |
| |
| core.int buildCounterInsertTextRequest = 0; |
| api.InsertTextRequest buildInsertTextRequest() { |
| var o = api.InsertTextRequest(); |
| buildCounterInsertTextRequest++; |
| if (buildCounterInsertTextRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.insertionIndex = 42; |
| o.objectId = 'foo'; |
| o.text = 'foo'; |
| } |
| buildCounterInsertTextRequest--; |
| return o; |
| } |
| |
| void checkInsertTextRequest(api.InsertTextRequest o) { |
| buildCounterInsertTextRequest++; |
| if (buildCounterInsertTextRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.insertionIndex, unittest.equals(42)); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterInsertTextRequest--; |
| } |
| |
| core.int buildCounterLayoutPlaceholderIdMapping = 0; |
| api.LayoutPlaceholderIdMapping buildLayoutPlaceholderIdMapping() { |
| var o = api.LayoutPlaceholderIdMapping(); |
| buildCounterLayoutPlaceholderIdMapping++; |
| if (buildCounterLayoutPlaceholderIdMapping < 3) { |
| o.layoutPlaceholder = buildPlaceholder(); |
| o.layoutPlaceholderObjectId = 'foo'; |
| o.objectId = 'foo'; |
| } |
| buildCounterLayoutPlaceholderIdMapping--; |
| return o; |
| } |
| |
| void checkLayoutPlaceholderIdMapping(api.LayoutPlaceholderIdMapping o) { |
| buildCounterLayoutPlaceholderIdMapping++; |
| if (buildCounterLayoutPlaceholderIdMapping < 3) { |
| checkPlaceholder(o.layoutPlaceholder); |
| unittest.expect(o.layoutPlaceholderObjectId, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterLayoutPlaceholderIdMapping--; |
| } |
| |
| core.int buildCounterLayoutProperties = 0; |
| api.LayoutProperties buildLayoutProperties() { |
| var o = api.LayoutProperties(); |
| buildCounterLayoutProperties++; |
| if (buildCounterLayoutProperties < 3) { |
| o.displayName = 'foo'; |
| o.masterObjectId = 'foo'; |
| o.name = 'foo'; |
| } |
| buildCounterLayoutProperties--; |
| return o; |
| } |
| |
| void checkLayoutProperties(api.LayoutProperties o) { |
| buildCounterLayoutProperties++; |
| if (buildCounterLayoutProperties < 3) { |
| unittest.expect(o.displayName, unittest.equals('foo')); |
| unittest.expect(o.masterObjectId, unittest.equals('foo')); |
| unittest.expect(o.name, unittest.equals('foo')); |
| } |
| buildCounterLayoutProperties--; |
| } |
| |
| core.int buildCounterLayoutReference = 0; |
| api.LayoutReference buildLayoutReference() { |
| var o = api.LayoutReference(); |
| buildCounterLayoutReference++; |
| if (buildCounterLayoutReference < 3) { |
| o.layoutId = 'foo'; |
| o.predefinedLayout = 'foo'; |
| } |
| buildCounterLayoutReference--; |
| return o; |
| } |
| |
| void checkLayoutReference(api.LayoutReference o) { |
| buildCounterLayoutReference++; |
| if (buildCounterLayoutReference < 3) { |
| unittest.expect(o.layoutId, unittest.equals('foo')); |
| unittest.expect(o.predefinedLayout, unittest.equals('foo')); |
| } |
| buildCounterLayoutReference--; |
| } |
| |
| core.int buildCounterLine = 0; |
| api.Line buildLine() { |
| var o = api.Line(); |
| buildCounterLine++; |
| if (buildCounterLine < 3) { |
| o.lineCategory = 'foo'; |
| o.lineProperties = buildLineProperties(); |
| o.lineType = 'foo'; |
| } |
| buildCounterLine--; |
| return o; |
| } |
| |
| void checkLine(api.Line o) { |
| buildCounterLine++; |
| if (buildCounterLine < 3) { |
| unittest.expect(o.lineCategory, unittest.equals('foo')); |
| checkLineProperties(o.lineProperties); |
| unittest.expect(o.lineType, unittest.equals('foo')); |
| } |
| buildCounterLine--; |
| } |
| |
| core.int buildCounterLineConnection = 0; |
| api.LineConnection buildLineConnection() { |
| var o = api.LineConnection(); |
| buildCounterLineConnection++; |
| if (buildCounterLineConnection < 3) { |
| o.connectedObjectId = 'foo'; |
| o.connectionSiteIndex = 42; |
| } |
| buildCounterLineConnection--; |
| return o; |
| } |
| |
| void checkLineConnection(api.LineConnection o) { |
| buildCounterLineConnection++; |
| if (buildCounterLineConnection < 3) { |
| unittest.expect(o.connectedObjectId, unittest.equals('foo')); |
| unittest.expect(o.connectionSiteIndex, unittest.equals(42)); |
| } |
| buildCounterLineConnection--; |
| } |
| |
| core.int buildCounterLineFill = 0; |
| api.LineFill buildLineFill() { |
| var o = api.LineFill(); |
| buildCounterLineFill++; |
| if (buildCounterLineFill < 3) { |
| o.solidFill = buildSolidFill(); |
| } |
| buildCounterLineFill--; |
| return o; |
| } |
| |
| void checkLineFill(api.LineFill o) { |
| buildCounterLineFill++; |
| if (buildCounterLineFill < 3) { |
| checkSolidFill(o.solidFill); |
| } |
| buildCounterLineFill--; |
| } |
| |
| core.int buildCounterLineProperties = 0; |
| api.LineProperties buildLineProperties() { |
| var o = api.LineProperties(); |
| buildCounterLineProperties++; |
| if (buildCounterLineProperties < 3) { |
| o.dashStyle = 'foo'; |
| o.endArrow = 'foo'; |
| o.endConnection = buildLineConnection(); |
| o.lineFill = buildLineFill(); |
| o.link = buildLink(); |
| o.startArrow = 'foo'; |
| o.startConnection = buildLineConnection(); |
| o.weight = buildDimension(); |
| } |
| buildCounterLineProperties--; |
| return o; |
| } |
| |
| void checkLineProperties(api.LineProperties o) { |
| buildCounterLineProperties++; |
| if (buildCounterLineProperties < 3) { |
| unittest.expect(o.dashStyle, unittest.equals('foo')); |
| unittest.expect(o.endArrow, unittest.equals('foo')); |
| checkLineConnection(o.endConnection); |
| checkLineFill(o.lineFill); |
| checkLink(o.link); |
| unittest.expect(o.startArrow, unittest.equals('foo')); |
| checkLineConnection(o.startConnection); |
| checkDimension(o.weight); |
| } |
| buildCounterLineProperties--; |
| } |
| |
| core.int buildCounterLink = 0; |
| api.Link buildLink() { |
| var o = api.Link(); |
| buildCounterLink++; |
| if (buildCounterLink < 3) { |
| o.pageObjectId = 'foo'; |
| o.relativeLink = 'foo'; |
| o.slideIndex = 42; |
| o.url = 'foo'; |
| } |
| buildCounterLink--; |
| return o; |
| } |
| |
| void checkLink(api.Link o) { |
| buildCounterLink++; |
| if (buildCounterLink < 3) { |
| unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| unittest.expect(o.relativeLink, unittest.equals('foo')); |
| unittest.expect(o.slideIndex, unittest.equals(42)); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterLink--; |
| } |
| |
| core.Map<core.String, api.NestingLevel> buildUnnamed1929() { |
| var o = <core.String, api.NestingLevel>{}; |
| o['x'] = buildNestingLevel(); |
| o['y'] = buildNestingLevel(); |
| return o; |
| } |
| |
| void checkUnnamed1929(core.Map<core.String, api.NestingLevel> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkNestingLevel(o['x']); |
| checkNestingLevel(o['y']); |
| } |
| |
| core.int buildCounterList = 0; |
| api.List buildList() { |
| var o = api.List(); |
| buildCounterList++; |
| if (buildCounterList < 3) { |
| o.listId = 'foo'; |
| o.nestingLevel = buildUnnamed1929(); |
| } |
| buildCounterList--; |
| return o; |
| } |
| |
| void checkList(api.List o) { |
| buildCounterList++; |
| if (buildCounterList < 3) { |
| unittest.expect(o.listId, unittest.equals('foo')); |
| checkUnnamed1929(o.nestingLevel); |
| } |
| buildCounterList--; |
| } |
| |
| core.int buildCounterMasterProperties = 0; |
| api.MasterProperties buildMasterProperties() { |
| var o = api.MasterProperties(); |
| buildCounterMasterProperties++; |
| if (buildCounterMasterProperties < 3) { |
| o.displayName = 'foo'; |
| } |
| buildCounterMasterProperties--; |
| return o; |
| } |
| |
| void checkMasterProperties(api.MasterProperties o) { |
| buildCounterMasterProperties++; |
| if (buildCounterMasterProperties < 3) { |
| unittest.expect(o.displayName, unittest.equals('foo')); |
| } |
| buildCounterMasterProperties--; |
| } |
| |
| core.int buildCounterMergeTableCellsRequest = 0; |
| api.MergeTableCellsRequest buildMergeTableCellsRequest() { |
| var o = api.MergeTableCellsRequest(); |
| buildCounterMergeTableCellsRequest++; |
| if (buildCounterMergeTableCellsRequest < 3) { |
| o.objectId = 'foo'; |
| o.tableRange = buildTableRange(); |
| } |
| buildCounterMergeTableCellsRequest--; |
| return o; |
| } |
| |
| void checkMergeTableCellsRequest(api.MergeTableCellsRequest o) { |
| buildCounterMergeTableCellsRequest++; |
| if (buildCounterMergeTableCellsRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTableRange(o.tableRange); |
| } |
| buildCounterMergeTableCellsRequest--; |
| } |
| |
| core.int buildCounterNestingLevel = 0; |
| api.NestingLevel buildNestingLevel() { |
| var o = api.NestingLevel(); |
| buildCounterNestingLevel++; |
| if (buildCounterNestingLevel < 3) { |
| o.bulletStyle = buildTextStyle(); |
| } |
| buildCounterNestingLevel--; |
| return o; |
| } |
| |
| void checkNestingLevel(api.NestingLevel o) { |
| buildCounterNestingLevel++; |
| if (buildCounterNestingLevel < 3) { |
| checkTextStyle(o.bulletStyle); |
| } |
| buildCounterNestingLevel--; |
| } |
| |
| core.int buildCounterNotesProperties = 0; |
| api.NotesProperties buildNotesProperties() { |
| var o = api.NotesProperties(); |
| buildCounterNotesProperties++; |
| if (buildCounterNotesProperties < 3) { |
| o.speakerNotesObjectId = 'foo'; |
| } |
| buildCounterNotesProperties--; |
| return o; |
| } |
| |
| void checkNotesProperties(api.NotesProperties o) { |
| buildCounterNotesProperties++; |
| if (buildCounterNotesProperties < 3) { |
| unittest.expect(o.speakerNotesObjectId, unittest.equals('foo')); |
| } |
| buildCounterNotesProperties--; |
| } |
| |
| core.int buildCounterOpaqueColor = 0; |
| api.OpaqueColor buildOpaqueColor() { |
| var o = api.OpaqueColor(); |
| buildCounterOpaqueColor++; |
| if (buildCounterOpaqueColor < 3) { |
| o.rgbColor = buildRgbColor(); |
| o.themeColor = 'foo'; |
| } |
| buildCounterOpaqueColor--; |
| return o; |
| } |
| |
| void checkOpaqueColor(api.OpaqueColor o) { |
| buildCounterOpaqueColor++; |
| if (buildCounterOpaqueColor < 3) { |
| checkRgbColor(o.rgbColor); |
| unittest.expect(o.themeColor, unittest.equals('foo')); |
| } |
| buildCounterOpaqueColor--; |
| } |
| |
| core.int buildCounterOptionalColor = 0; |
| api.OptionalColor buildOptionalColor() { |
| var o = api.OptionalColor(); |
| buildCounterOptionalColor++; |
| if (buildCounterOptionalColor < 3) { |
| o.opaqueColor = buildOpaqueColor(); |
| } |
| buildCounterOptionalColor--; |
| return o; |
| } |
| |
| void checkOptionalColor(api.OptionalColor o) { |
| buildCounterOptionalColor++; |
| if (buildCounterOptionalColor < 3) { |
| checkOpaqueColor(o.opaqueColor); |
| } |
| buildCounterOptionalColor--; |
| } |
| |
| core.int buildCounterOutline = 0; |
| api.Outline buildOutline() { |
| var o = api.Outline(); |
| buildCounterOutline++; |
| if (buildCounterOutline < 3) { |
| o.dashStyle = 'foo'; |
| o.outlineFill = buildOutlineFill(); |
| o.propertyState = 'foo'; |
| o.weight = buildDimension(); |
| } |
| buildCounterOutline--; |
| return o; |
| } |
| |
| void checkOutline(api.Outline o) { |
| buildCounterOutline++; |
| if (buildCounterOutline < 3) { |
| unittest.expect(o.dashStyle, unittest.equals('foo')); |
| checkOutlineFill(o.outlineFill); |
| unittest.expect(o.propertyState, unittest.equals('foo')); |
| checkDimension(o.weight); |
| } |
| buildCounterOutline--; |
| } |
| |
| core.int buildCounterOutlineFill = 0; |
| api.OutlineFill buildOutlineFill() { |
| var o = api.OutlineFill(); |
| buildCounterOutlineFill++; |
| if (buildCounterOutlineFill < 3) { |
| o.solidFill = buildSolidFill(); |
| } |
| buildCounterOutlineFill--; |
| return o; |
| } |
| |
| void checkOutlineFill(api.OutlineFill o) { |
| buildCounterOutlineFill++; |
| if (buildCounterOutlineFill < 3) { |
| checkSolidFill(o.solidFill); |
| } |
| buildCounterOutlineFill--; |
| } |
| |
| core.List<api.PageElement> buildUnnamed1930() { |
| var o = <api.PageElement>[]; |
| o.add(buildPageElement()); |
| o.add(buildPageElement()); |
| return o; |
| } |
| |
| void checkUnnamed1930(core.List<api.PageElement> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPageElement(o[0]); |
| checkPageElement(o[1]); |
| } |
| |
| core.int buildCounterPage = 0; |
| api.Page buildPage() { |
| var o = api.Page(); |
| buildCounterPage++; |
| if (buildCounterPage < 3) { |
| o.layoutProperties = buildLayoutProperties(); |
| o.masterProperties = buildMasterProperties(); |
| o.notesProperties = buildNotesProperties(); |
| o.objectId = 'foo'; |
| o.pageElements = buildUnnamed1930(); |
| o.pageProperties = buildPageProperties(); |
| o.pageType = 'foo'; |
| o.revisionId = 'foo'; |
| o.slideProperties = buildSlideProperties(); |
| } |
| buildCounterPage--; |
| return o; |
| } |
| |
| void checkPage(api.Page o) { |
| buildCounterPage++; |
| if (buildCounterPage < 3) { |
| checkLayoutProperties(o.layoutProperties); |
| checkMasterProperties(o.masterProperties); |
| checkNotesProperties(o.notesProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkUnnamed1930(o.pageElements); |
| checkPageProperties(o.pageProperties); |
| unittest.expect(o.pageType, unittest.equals('foo')); |
| unittest.expect(o.revisionId, unittest.equals('foo')); |
| checkSlideProperties(o.slideProperties); |
| } |
| buildCounterPage--; |
| } |
| |
| core.int buildCounterPageBackgroundFill = 0; |
| api.PageBackgroundFill buildPageBackgroundFill() { |
| var o = api.PageBackgroundFill(); |
| buildCounterPageBackgroundFill++; |
| if (buildCounterPageBackgroundFill < 3) { |
| o.propertyState = 'foo'; |
| o.solidFill = buildSolidFill(); |
| o.stretchedPictureFill = buildStretchedPictureFill(); |
| } |
| buildCounterPageBackgroundFill--; |
| return o; |
| } |
| |
| void checkPageBackgroundFill(api.PageBackgroundFill o) { |
| buildCounterPageBackgroundFill++; |
| if (buildCounterPageBackgroundFill < 3) { |
| unittest.expect(o.propertyState, unittest.equals('foo')); |
| checkSolidFill(o.solidFill); |
| checkStretchedPictureFill(o.stretchedPictureFill); |
| } |
| buildCounterPageBackgroundFill--; |
| } |
| |
| core.int buildCounterPageElement = 0; |
| api.PageElement buildPageElement() { |
| var o = api.PageElement(); |
| buildCounterPageElement++; |
| if (buildCounterPageElement < 3) { |
| o.description = 'foo'; |
| o.elementGroup = buildGroup(); |
| o.image = buildImage(); |
| o.line = buildLine(); |
| o.objectId = 'foo'; |
| o.shape = buildShape(); |
| o.sheetsChart = buildSheetsChart(); |
| o.size = buildSize(); |
| o.table = buildTable(); |
| o.title = 'foo'; |
| o.transform = buildAffineTransform(); |
| o.video = buildVideo(); |
| o.wordArt = buildWordArt(); |
| } |
| buildCounterPageElement--; |
| return o; |
| } |
| |
| void checkPageElement(api.PageElement o) { |
| buildCounterPageElement++; |
| if (buildCounterPageElement < 3) { |
| unittest.expect(o.description, unittest.equals('foo')); |
| checkGroup(o.elementGroup); |
| checkImage(o.image); |
| checkLine(o.line); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkShape(o.shape); |
| checkSheetsChart(o.sheetsChart); |
| checkSize(o.size); |
| checkTable(o.table); |
| unittest.expect(o.title, unittest.equals('foo')); |
| checkAffineTransform(o.transform); |
| checkVideo(o.video); |
| checkWordArt(o.wordArt); |
| } |
| buildCounterPageElement--; |
| } |
| |
| core.int buildCounterPageElementProperties = 0; |
| api.PageElementProperties buildPageElementProperties() { |
| var o = api.PageElementProperties(); |
| buildCounterPageElementProperties++; |
| if (buildCounterPageElementProperties < 3) { |
| o.pageObjectId = 'foo'; |
| o.size = buildSize(); |
| o.transform = buildAffineTransform(); |
| } |
| buildCounterPageElementProperties--; |
| return o; |
| } |
| |
| void checkPageElementProperties(api.PageElementProperties o) { |
| buildCounterPageElementProperties++; |
| if (buildCounterPageElementProperties < 3) { |
| unittest.expect(o.pageObjectId, unittest.equals('foo')); |
| checkSize(o.size); |
| checkAffineTransform(o.transform); |
| } |
| buildCounterPageElementProperties--; |
| } |
| |
| core.int buildCounterPageProperties = 0; |
| api.PageProperties buildPageProperties() { |
| var o = api.PageProperties(); |
| buildCounterPageProperties++; |
| if (buildCounterPageProperties < 3) { |
| o.colorScheme = buildColorScheme(); |
| o.pageBackgroundFill = buildPageBackgroundFill(); |
| } |
| buildCounterPageProperties--; |
| return o; |
| } |
| |
| void checkPageProperties(api.PageProperties o) { |
| buildCounterPageProperties++; |
| if (buildCounterPageProperties < 3) { |
| checkColorScheme(o.colorScheme); |
| checkPageBackgroundFill(o.pageBackgroundFill); |
| } |
| buildCounterPageProperties--; |
| } |
| |
| core.int buildCounterParagraphMarker = 0; |
| api.ParagraphMarker buildParagraphMarker() { |
| var o = api.ParagraphMarker(); |
| buildCounterParagraphMarker++; |
| if (buildCounterParagraphMarker < 3) { |
| o.bullet = buildBullet(); |
| o.style = buildParagraphStyle(); |
| } |
| buildCounterParagraphMarker--; |
| return o; |
| } |
| |
| void checkParagraphMarker(api.ParagraphMarker o) { |
| buildCounterParagraphMarker++; |
| if (buildCounterParagraphMarker < 3) { |
| checkBullet(o.bullet); |
| checkParagraphStyle(o.style); |
| } |
| buildCounterParagraphMarker--; |
| } |
| |
| core.int buildCounterParagraphStyle = 0; |
| api.ParagraphStyle buildParagraphStyle() { |
| var o = api.ParagraphStyle(); |
| buildCounterParagraphStyle++; |
| if (buildCounterParagraphStyle < 3) { |
| o.alignment = 'foo'; |
| o.direction = 'foo'; |
| o.indentEnd = buildDimension(); |
| o.indentFirstLine = buildDimension(); |
| o.indentStart = buildDimension(); |
| o.lineSpacing = 42.0; |
| o.spaceAbove = buildDimension(); |
| o.spaceBelow = buildDimension(); |
| o.spacingMode = 'foo'; |
| } |
| buildCounterParagraphStyle--; |
| return o; |
| } |
| |
| void checkParagraphStyle(api.ParagraphStyle o) { |
| buildCounterParagraphStyle++; |
| if (buildCounterParagraphStyle < 3) { |
| unittest.expect(o.alignment, unittest.equals('foo')); |
| unittest.expect(o.direction, unittest.equals('foo')); |
| checkDimension(o.indentEnd); |
| checkDimension(o.indentFirstLine); |
| checkDimension(o.indentStart); |
| unittest.expect(o.lineSpacing, unittest.equals(42.0)); |
| checkDimension(o.spaceAbove); |
| checkDimension(o.spaceBelow); |
| unittest.expect(o.spacingMode, unittest.equals('foo')); |
| } |
| buildCounterParagraphStyle--; |
| } |
| |
| core.int buildCounterPlaceholder = 0; |
| api.Placeholder buildPlaceholder() { |
| var o = api.Placeholder(); |
| buildCounterPlaceholder++; |
| if (buildCounterPlaceholder < 3) { |
| o.index = 42; |
| o.parentObjectId = 'foo'; |
| o.type = 'foo'; |
| } |
| buildCounterPlaceholder--; |
| return o; |
| } |
| |
| void checkPlaceholder(api.Placeholder o) { |
| buildCounterPlaceholder++; |
| if (buildCounterPlaceholder < 3) { |
| unittest.expect(o.index, unittest.equals(42)); |
| unittest.expect(o.parentObjectId, unittest.equals('foo')); |
| unittest.expect(o.type, unittest.equals('foo')); |
| } |
| buildCounterPlaceholder--; |
| } |
| |
| core.List<api.Page> buildUnnamed1931() { |
| var o = <api.Page>[]; |
| o.add(buildPage()); |
| o.add(buildPage()); |
| return o; |
| } |
| |
| void checkUnnamed1931(core.List<api.Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPage(o[0]); |
| checkPage(o[1]); |
| } |
| |
| core.List<api.Page> buildUnnamed1932() { |
| var o = <api.Page>[]; |
| o.add(buildPage()); |
| o.add(buildPage()); |
| return o; |
| } |
| |
| void checkUnnamed1932(core.List<api.Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPage(o[0]); |
| checkPage(o[1]); |
| } |
| |
| core.List<api.Page> buildUnnamed1933() { |
| var o = <api.Page>[]; |
| o.add(buildPage()); |
| o.add(buildPage()); |
| return o; |
| } |
| |
| void checkUnnamed1933(core.List<api.Page> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkPage(o[0]); |
| checkPage(o[1]); |
| } |
| |
| core.int buildCounterPresentation = 0; |
| api.Presentation buildPresentation() { |
| var o = api.Presentation(); |
| buildCounterPresentation++; |
| if (buildCounterPresentation < 3) { |
| o.layouts = buildUnnamed1931(); |
| o.locale = 'foo'; |
| o.masters = buildUnnamed1932(); |
| o.notesMaster = buildPage(); |
| o.pageSize = buildSize(); |
| o.presentationId = 'foo'; |
| o.revisionId = 'foo'; |
| o.slides = buildUnnamed1933(); |
| o.title = 'foo'; |
| } |
| buildCounterPresentation--; |
| return o; |
| } |
| |
| void checkPresentation(api.Presentation o) { |
| buildCounterPresentation++; |
| if (buildCounterPresentation < 3) { |
| checkUnnamed1931(o.layouts); |
| unittest.expect(o.locale, unittest.equals('foo')); |
| checkUnnamed1932(o.masters); |
| checkPage(o.notesMaster); |
| checkSize(o.pageSize); |
| unittest.expect(o.presentationId, unittest.equals('foo')); |
| unittest.expect(o.revisionId, unittest.equals('foo')); |
| checkUnnamed1933(o.slides); |
| unittest.expect(o.title, unittest.equals('foo')); |
| } |
| buildCounterPresentation--; |
| } |
| |
| core.int buildCounterRange = 0; |
| api.Range buildRange() { |
| var o = api.Range(); |
| buildCounterRange++; |
| if (buildCounterRange < 3) { |
| o.endIndex = 42; |
| o.startIndex = 42; |
| o.type = 'foo'; |
| } |
| buildCounterRange--; |
| return o; |
| } |
| |
| void checkRange(api.Range o) { |
| buildCounterRange++; |
| if (buildCounterRange < 3) { |
| unittest.expect(o.endIndex, unittest.equals(42)); |
| unittest.expect(o.startIndex, unittest.equals(42)); |
| unittest.expect(o.type, unittest.equals('foo')); |
| } |
| buildCounterRange--; |
| } |
| |
| core.List<api.ColorStop> buildUnnamed1934() { |
| var o = <api.ColorStop>[]; |
| o.add(buildColorStop()); |
| o.add(buildColorStop()); |
| return o; |
| } |
| |
| void checkUnnamed1934(core.List<api.ColorStop> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkColorStop(o[0]); |
| checkColorStop(o[1]); |
| } |
| |
| core.int buildCounterRecolor = 0; |
| api.Recolor buildRecolor() { |
| var o = api.Recolor(); |
| buildCounterRecolor++; |
| if (buildCounterRecolor < 3) { |
| o.name = 'foo'; |
| o.recolorStops = buildUnnamed1934(); |
| } |
| buildCounterRecolor--; |
| return o; |
| } |
| |
| void checkRecolor(api.Recolor o) { |
| buildCounterRecolor++; |
| if (buildCounterRecolor < 3) { |
| unittest.expect(o.name, unittest.equals('foo')); |
| checkUnnamed1934(o.recolorStops); |
| } |
| buildCounterRecolor--; |
| } |
| |
| core.int buildCounterRefreshSheetsChartRequest = 0; |
| api.RefreshSheetsChartRequest buildRefreshSheetsChartRequest() { |
| var o = api.RefreshSheetsChartRequest(); |
| buildCounterRefreshSheetsChartRequest++; |
| if (buildCounterRefreshSheetsChartRequest < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterRefreshSheetsChartRequest--; |
| return o; |
| } |
| |
| void checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { |
| buildCounterRefreshSheetsChartRequest++; |
| if (buildCounterRefreshSheetsChartRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterRefreshSheetsChartRequest--; |
| } |
| |
| core.List<core.String> buildUnnamed1935() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1935(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterReplaceAllShapesWithImageRequest = 0; |
| api.ReplaceAllShapesWithImageRequest buildReplaceAllShapesWithImageRequest() { |
| var o = api.ReplaceAllShapesWithImageRequest(); |
| buildCounterReplaceAllShapesWithImageRequest++; |
| if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| o.containsText = buildSubstringMatchCriteria(); |
| o.imageReplaceMethod = 'foo'; |
| o.imageUrl = 'foo'; |
| o.pageObjectIds = buildUnnamed1935(); |
| o.replaceMethod = 'foo'; |
| } |
| buildCounterReplaceAllShapesWithImageRequest--; |
| return o; |
| } |
| |
| void checkReplaceAllShapesWithImageRequest( |
| api.ReplaceAllShapesWithImageRequest o) { |
| buildCounterReplaceAllShapesWithImageRequest++; |
| if (buildCounterReplaceAllShapesWithImageRequest < 3) { |
| checkSubstringMatchCriteria(o.containsText); |
| unittest.expect(o.imageReplaceMethod, unittest.equals('foo')); |
| unittest.expect(o.imageUrl, unittest.equals('foo')); |
| checkUnnamed1935(o.pageObjectIds); |
| unittest.expect(o.replaceMethod, unittest.equals('foo')); |
| } |
| buildCounterReplaceAllShapesWithImageRequest--; |
| } |
| |
| core.int buildCounterReplaceAllShapesWithImageResponse = 0; |
| api.ReplaceAllShapesWithImageResponse buildReplaceAllShapesWithImageResponse() { |
| var o = api.ReplaceAllShapesWithImageResponse(); |
| buildCounterReplaceAllShapesWithImageResponse++; |
| if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| o.occurrencesChanged = 42; |
| } |
| buildCounterReplaceAllShapesWithImageResponse--; |
| return o; |
| } |
| |
| void checkReplaceAllShapesWithImageResponse( |
| api.ReplaceAllShapesWithImageResponse o) { |
| buildCounterReplaceAllShapesWithImageResponse++; |
| if (buildCounterReplaceAllShapesWithImageResponse < 3) { |
| unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| } |
| buildCounterReplaceAllShapesWithImageResponse--; |
| } |
| |
| core.List<core.String> buildUnnamed1936() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1936(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterReplaceAllShapesWithSheetsChartRequest = 0; |
| api.ReplaceAllShapesWithSheetsChartRequest |
| buildReplaceAllShapesWithSheetsChartRequest() { |
| var o = api.ReplaceAllShapesWithSheetsChartRequest(); |
| buildCounterReplaceAllShapesWithSheetsChartRequest++; |
| if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
| o.chartId = 42; |
| o.containsText = buildSubstringMatchCriteria(); |
| o.linkingMode = 'foo'; |
| o.pageObjectIds = buildUnnamed1936(); |
| o.spreadsheetId = 'foo'; |
| } |
| buildCounterReplaceAllShapesWithSheetsChartRequest--; |
| return o; |
| } |
| |
| void checkReplaceAllShapesWithSheetsChartRequest( |
| api.ReplaceAllShapesWithSheetsChartRequest o) { |
| buildCounterReplaceAllShapesWithSheetsChartRequest++; |
| if (buildCounterReplaceAllShapesWithSheetsChartRequest < 3) { |
| unittest.expect(o.chartId, unittest.equals(42)); |
| checkSubstringMatchCriteria(o.containsText); |
| unittest.expect(o.linkingMode, unittest.equals('foo')); |
| checkUnnamed1936(o.pageObjectIds); |
| unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| } |
| buildCounterReplaceAllShapesWithSheetsChartRequest--; |
| } |
| |
| core.int buildCounterReplaceAllShapesWithSheetsChartResponse = 0; |
| api.ReplaceAllShapesWithSheetsChartResponse |
| buildReplaceAllShapesWithSheetsChartResponse() { |
| var o = api.ReplaceAllShapesWithSheetsChartResponse(); |
| buildCounterReplaceAllShapesWithSheetsChartResponse++; |
| if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
| o.occurrencesChanged = 42; |
| } |
| buildCounterReplaceAllShapesWithSheetsChartResponse--; |
| return o; |
| } |
| |
| void checkReplaceAllShapesWithSheetsChartResponse( |
| api.ReplaceAllShapesWithSheetsChartResponse o) { |
| buildCounterReplaceAllShapesWithSheetsChartResponse++; |
| if (buildCounterReplaceAllShapesWithSheetsChartResponse < 3) { |
| unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| } |
| buildCounterReplaceAllShapesWithSheetsChartResponse--; |
| } |
| |
| core.List<core.String> buildUnnamed1937() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1937(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterReplaceAllTextRequest = 0; |
| api.ReplaceAllTextRequest buildReplaceAllTextRequest() { |
| var o = api.ReplaceAllTextRequest(); |
| buildCounterReplaceAllTextRequest++; |
| if (buildCounterReplaceAllTextRequest < 3) { |
| o.containsText = buildSubstringMatchCriteria(); |
| o.pageObjectIds = buildUnnamed1937(); |
| o.replaceText = 'foo'; |
| } |
| buildCounterReplaceAllTextRequest--; |
| return o; |
| } |
| |
| void checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { |
| buildCounterReplaceAllTextRequest++; |
| if (buildCounterReplaceAllTextRequest < 3) { |
| checkSubstringMatchCriteria(o.containsText); |
| checkUnnamed1937(o.pageObjectIds); |
| unittest.expect(o.replaceText, unittest.equals('foo')); |
| } |
| buildCounterReplaceAllTextRequest--; |
| } |
| |
| core.int buildCounterReplaceAllTextResponse = 0; |
| api.ReplaceAllTextResponse buildReplaceAllTextResponse() { |
| var o = api.ReplaceAllTextResponse(); |
| buildCounterReplaceAllTextResponse++; |
| if (buildCounterReplaceAllTextResponse < 3) { |
| o.occurrencesChanged = 42; |
| } |
| buildCounterReplaceAllTextResponse--; |
| return o; |
| } |
| |
| void checkReplaceAllTextResponse(api.ReplaceAllTextResponse o) { |
| buildCounterReplaceAllTextResponse++; |
| if (buildCounterReplaceAllTextResponse < 3) { |
| unittest.expect(o.occurrencesChanged, unittest.equals(42)); |
| } |
| buildCounterReplaceAllTextResponse--; |
| } |
| |
| core.int buildCounterReplaceImageRequest = 0; |
| api.ReplaceImageRequest buildReplaceImageRequest() { |
| var o = api.ReplaceImageRequest(); |
| buildCounterReplaceImageRequest++; |
| if (buildCounterReplaceImageRequest < 3) { |
| o.imageObjectId = 'foo'; |
| o.imageReplaceMethod = 'foo'; |
| o.url = 'foo'; |
| } |
| buildCounterReplaceImageRequest--; |
| return o; |
| } |
| |
| void checkReplaceImageRequest(api.ReplaceImageRequest o) { |
| buildCounterReplaceImageRequest++; |
| if (buildCounterReplaceImageRequest < 3) { |
| unittest.expect(o.imageObjectId, unittest.equals('foo')); |
| unittest.expect(o.imageReplaceMethod, unittest.equals('foo')); |
| unittest.expect(o.url, unittest.equals('foo')); |
| } |
| buildCounterReplaceImageRequest--; |
| } |
| |
| core.int buildCounterRequest = 0; |
| api.Request buildRequest() { |
| var o = api.Request(); |
| buildCounterRequest++; |
| if (buildCounterRequest < 3) { |
| o.createImage = buildCreateImageRequest(); |
| o.createLine = buildCreateLineRequest(); |
| o.createParagraphBullets = buildCreateParagraphBulletsRequest(); |
| o.createShape = buildCreateShapeRequest(); |
| o.createSheetsChart = buildCreateSheetsChartRequest(); |
| o.createSlide = buildCreateSlideRequest(); |
| o.createTable = buildCreateTableRequest(); |
| o.createVideo = buildCreateVideoRequest(); |
| o.deleteObject = buildDeleteObjectRequest(); |
| o.deleteParagraphBullets = buildDeleteParagraphBulletsRequest(); |
| o.deleteTableColumn = buildDeleteTableColumnRequest(); |
| o.deleteTableRow = buildDeleteTableRowRequest(); |
| o.deleteText = buildDeleteTextRequest(); |
| o.duplicateObject = buildDuplicateObjectRequest(); |
| o.groupObjects = buildGroupObjectsRequest(); |
| o.insertTableColumns = buildInsertTableColumnsRequest(); |
| o.insertTableRows = buildInsertTableRowsRequest(); |
| o.insertText = buildInsertTextRequest(); |
| o.mergeTableCells = buildMergeTableCellsRequest(); |
| o.refreshSheetsChart = buildRefreshSheetsChartRequest(); |
| o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageRequest(); |
| o.replaceAllShapesWithSheetsChart = |
| buildReplaceAllShapesWithSheetsChartRequest(); |
| o.replaceAllText = buildReplaceAllTextRequest(); |
| o.replaceImage = buildReplaceImageRequest(); |
| o.rerouteLine = buildRerouteLineRequest(); |
| o.ungroupObjects = buildUngroupObjectsRequest(); |
| o.unmergeTableCells = buildUnmergeTableCellsRequest(); |
| o.updateImageProperties = buildUpdateImagePropertiesRequest(); |
| o.updateLineCategory = buildUpdateLineCategoryRequest(); |
| o.updateLineProperties = buildUpdateLinePropertiesRequest(); |
| o.updatePageElementAltText = buildUpdatePageElementAltTextRequest(); |
| o.updatePageElementTransform = buildUpdatePageElementTransformRequest(); |
| o.updatePageElementsZOrder = buildUpdatePageElementsZOrderRequest(); |
| o.updatePageProperties = buildUpdatePagePropertiesRequest(); |
| o.updateParagraphStyle = buildUpdateParagraphStyleRequest(); |
| o.updateShapeProperties = buildUpdateShapePropertiesRequest(); |
| o.updateSlidesPosition = buildUpdateSlidesPositionRequest(); |
| o.updateTableBorderProperties = buildUpdateTableBorderPropertiesRequest(); |
| o.updateTableCellProperties = buildUpdateTableCellPropertiesRequest(); |
| o.updateTableColumnProperties = buildUpdateTableColumnPropertiesRequest(); |
| o.updateTableRowProperties = buildUpdateTableRowPropertiesRequest(); |
| o.updateTextStyle = buildUpdateTextStyleRequest(); |
| o.updateVideoProperties = buildUpdateVideoPropertiesRequest(); |
| } |
| buildCounterRequest--; |
| return o; |
| } |
| |
| void checkRequest(api.Request o) { |
| buildCounterRequest++; |
| if (buildCounterRequest < 3) { |
| checkCreateImageRequest(o.createImage); |
| checkCreateLineRequest(o.createLine); |
| checkCreateParagraphBulletsRequest(o.createParagraphBullets); |
| checkCreateShapeRequest(o.createShape); |
| checkCreateSheetsChartRequest(o.createSheetsChart); |
| checkCreateSlideRequest(o.createSlide); |
| checkCreateTableRequest(o.createTable); |
| checkCreateVideoRequest(o.createVideo); |
| checkDeleteObjectRequest(o.deleteObject); |
| checkDeleteParagraphBulletsRequest(o.deleteParagraphBullets); |
| checkDeleteTableColumnRequest(o.deleteTableColumn); |
| checkDeleteTableRowRequest(o.deleteTableRow); |
| checkDeleteTextRequest(o.deleteText); |
| checkDuplicateObjectRequest(o.duplicateObject); |
| checkGroupObjectsRequest(o.groupObjects); |
| checkInsertTableColumnsRequest(o.insertTableColumns); |
| checkInsertTableRowsRequest(o.insertTableRows); |
| checkInsertTextRequest(o.insertText); |
| checkMergeTableCellsRequest(o.mergeTableCells); |
| checkRefreshSheetsChartRequest(o.refreshSheetsChart); |
| checkReplaceAllShapesWithImageRequest(o.replaceAllShapesWithImage); |
| checkReplaceAllShapesWithSheetsChartRequest( |
| o.replaceAllShapesWithSheetsChart); |
| checkReplaceAllTextRequest(o.replaceAllText); |
| checkReplaceImageRequest(o.replaceImage); |
| checkRerouteLineRequest(o.rerouteLine); |
| checkUngroupObjectsRequest(o.ungroupObjects); |
| checkUnmergeTableCellsRequest(o.unmergeTableCells); |
| checkUpdateImagePropertiesRequest(o.updateImageProperties); |
| checkUpdateLineCategoryRequest(o.updateLineCategory); |
| checkUpdateLinePropertiesRequest(o.updateLineProperties); |
| checkUpdatePageElementAltTextRequest(o.updatePageElementAltText); |
| checkUpdatePageElementTransformRequest(o.updatePageElementTransform); |
| checkUpdatePageElementsZOrderRequest(o.updatePageElementsZOrder); |
| checkUpdatePagePropertiesRequest(o.updatePageProperties); |
| checkUpdateParagraphStyleRequest(o.updateParagraphStyle); |
| checkUpdateShapePropertiesRequest(o.updateShapeProperties); |
| checkUpdateSlidesPositionRequest(o.updateSlidesPosition); |
| checkUpdateTableBorderPropertiesRequest(o.updateTableBorderProperties); |
| checkUpdateTableCellPropertiesRequest(o.updateTableCellProperties); |
| checkUpdateTableColumnPropertiesRequest(o.updateTableColumnProperties); |
| checkUpdateTableRowPropertiesRequest(o.updateTableRowProperties); |
| checkUpdateTextStyleRequest(o.updateTextStyle); |
| checkUpdateVideoPropertiesRequest(o.updateVideoProperties); |
| } |
| buildCounterRequest--; |
| } |
| |
| core.int buildCounterRerouteLineRequest = 0; |
| api.RerouteLineRequest buildRerouteLineRequest() { |
| var o = api.RerouteLineRequest(); |
| buildCounterRerouteLineRequest++; |
| if (buildCounterRerouteLineRequest < 3) { |
| o.objectId = 'foo'; |
| } |
| buildCounterRerouteLineRequest--; |
| return o; |
| } |
| |
| void checkRerouteLineRequest(api.RerouteLineRequest o) { |
| buildCounterRerouteLineRequest++; |
| if (buildCounterRerouteLineRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterRerouteLineRequest--; |
| } |
| |
| core.int buildCounterResponse = 0; |
| api.Response buildResponse() { |
| var o = api.Response(); |
| buildCounterResponse++; |
| if (buildCounterResponse < 3) { |
| o.createImage = buildCreateImageResponse(); |
| o.createLine = buildCreateLineResponse(); |
| o.createShape = buildCreateShapeResponse(); |
| o.createSheetsChart = buildCreateSheetsChartResponse(); |
| o.createSlide = buildCreateSlideResponse(); |
| o.createTable = buildCreateTableResponse(); |
| o.createVideo = buildCreateVideoResponse(); |
| o.duplicateObject = buildDuplicateObjectResponse(); |
| o.groupObjects = buildGroupObjectsResponse(); |
| o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageResponse(); |
| o.replaceAllShapesWithSheetsChart = |
| buildReplaceAllShapesWithSheetsChartResponse(); |
| o.replaceAllText = buildReplaceAllTextResponse(); |
| } |
| buildCounterResponse--; |
| return o; |
| } |
| |
| void checkResponse(api.Response o) { |
| buildCounterResponse++; |
| if (buildCounterResponse < 3) { |
| checkCreateImageResponse(o.createImage); |
| checkCreateLineResponse(o.createLine); |
| checkCreateShapeResponse(o.createShape); |
| checkCreateSheetsChartResponse(o.createSheetsChart); |
| checkCreateSlideResponse(o.createSlide); |
| checkCreateTableResponse(o.createTable); |
| checkCreateVideoResponse(o.createVideo); |
| checkDuplicateObjectResponse(o.duplicateObject); |
| checkGroupObjectsResponse(o.groupObjects); |
| checkReplaceAllShapesWithImageResponse(o.replaceAllShapesWithImage); |
| checkReplaceAllShapesWithSheetsChartResponse( |
| o.replaceAllShapesWithSheetsChart); |
| checkReplaceAllTextResponse(o.replaceAllText); |
| } |
| buildCounterResponse--; |
| } |
| |
| core.int buildCounterRgbColor = 0; |
| api.RgbColor buildRgbColor() { |
| var o = api.RgbColor(); |
| buildCounterRgbColor++; |
| if (buildCounterRgbColor < 3) { |
| o.blue = 42.0; |
| o.green = 42.0; |
| o.red = 42.0; |
| } |
| buildCounterRgbColor--; |
| return o; |
| } |
| |
| void checkRgbColor(api.RgbColor o) { |
| buildCounterRgbColor++; |
| if (buildCounterRgbColor < 3) { |
| unittest.expect(o.blue, unittest.equals(42.0)); |
| unittest.expect(o.green, unittest.equals(42.0)); |
| unittest.expect(o.red, unittest.equals(42.0)); |
| } |
| buildCounterRgbColor--; |
| } |
| |
| core.int buildCounterShadow = 0; |
| api.Shadow buildShadow() { |
| var o = api.Shadow(); |
| buildCounterShadow++; |
| if (buildCounterShadow < 3) { |
| o.alignment = 'foo'; |
| o.alpha = 42.0; |
| o.blurRadius = buildDimension(); |
| o.color = buildOpaqueColor(); |
| o.propertyState = 'foo'; |
| o.rotateWithShape = true; |
| o.transform = buildAffineTransform(); |
| o.type = 'foo'; |
| } |
| buildCounterShadow--; |
| return o; |
| } |
| |
| void checkShadow(api.Shadow o) { |
| buildCounterShadow++; |
| if (buildCounterShadow < 3) { |
| unittest.expect(o.alignment, unittest.equals('foo')); |
| unittest.expect(o.alpha, unittest.equals(42.0)); |
| checkDimension(o.blurRadius); |
| checkOpaqueColor(o.color); |
| unittest.expect(o.propertyState, unittest.equals('foo')); |
| unittest.expect(o.rotateWithShape, unittest.isTrue); |
| checkAffineTransform(o.transform); |
| unittest.expect(o.type, unittest.equals('foo')); |
| } |
| buildCounterShadow--; |
| } |
| |
| core.int buildCounterShape = 0; |
| api.Shape buildShape() { |
| var o = api.Shape(); |
| buildCounterShape++; |
| if (buildCounterShape < 3) { |
| o.placeholder = buildPlaceholder(); |
| o.shapeProperties = buildShapeProperties(); |
| o.shapeType = 'foo'; |
| o.text = buildTextContent(); |
| } |
| buildCounterShape--; |
| return o; |
| } |
| |
| void checkShape(api.Shape o) { |
| buildCounterShape++; |
| if (buildCounterShape < 3) { |
| checkPlaceholder(o.placeholder); |
| checkShapeProperties(o.shapeProperties); |
| unittest.expect(o.shapeType, unittest.equals('foo')); |
| checkTextContent(o.text); |
| } |
| buildCounterShape--; |
| } |
| |
| core.int buildCounterShapeBackgroundFill = 0; |
| api.ShapeBackgroundFill buildShapeBackgroundFill() { |
| var o = api.ShapeBackgroundFill(); |
| buildCounterShapeBackgroundFill++; |
| if (buildCounterShapeBackgroundFill < 3) { |
| o.propertyState = 'foo'; |
| o.solidFill = buildSolidFill(); |
| } |
| buildCounterShapeBackgroundFill--; |
| return o; |
| } |
| |
| void checkShapeBackgroundFill(api.ShapeBackgroundFill o) { |
| buildCounterShapeBackgroundFill++; |
| if (buildCounterShapeBackgroundFill < 3) { |
| unittest.expect(o.propertyState, unittest.equals('foo')); |
| checkSolidFill(o.solidFill); |
| } |
| buildCounterShapeBackgroundFill--; |
| } |
| |
| core.int buildCounterShapeProperties = 0; |
| api.ShapeProperties buildShapeProperties() { |
| var o = api.ShapeProperties(); |
| buildCounterShapeProperties++; |
| if (buildCounterShapeProperties < 3) { |
| o.contentAlignment = 'foo'; |
| o.link = buildLink(); |
| o.outline = buildOutline(); |
| o.shadow = buildShadow(); |
| o.shapeBackgroundFill = buildShapeBackgroundFill(); |
| } |
| buildCounterShapeProperties--; |
| return o; |
| } |
| |
| void checkShapeProperties(api.ShapeProperties o) { |
| buildCounterShapeProperties++; |
| if (buildCounterShapeProperties < 3) { |
| unittest.expect(o.contentAlignment, unittest.equals('foo')); |
| checkLink(o.link); |
| checkOutline(o.outline); |
| checkShadow(o.shadow); |
| checkShapeBackgroundFill(o.shapeBackgroundFill); |
| } |
| buildCounterShapeProperties--; |
| } |
| |
| core.int buildCounterSheetsChart = 0; |
| api.SheetsChart buildSheetsChart() { |
| var o = api.SheetsChart(); |
| buildCounterSheetsChart++; |
| if (buildCounterSheetsChart < 3) { |
| o.chartId = 42; |
| o.contentUrl = 'foo'; |
| o.sheetsChartProperties = buildSheetsChartProperties(); |
| o.spreadsheetId = 'foo'; |
| } |
| buildCounterSheetsChart--; |
| return o; |
| } |
| |
| void checkSheetsChart(api.SheetsChart o) { |
| buildCounterSheetsChart++; |
| if (buildCounterSheetsChart < 3) { |
| unittest.expect(o.chartId, unittest.equals(42)); |
| unittest.expect(o.contentUrl, unittest.equals('foo')); |
| checkSheetsChartProperties(o.sheetsChartProperties); |
| unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
| } |
| buildCounterSheetsChart--; |
| } |
| |
| core.int buildCounterSheetsChartProperties = 0; |
| api.SheetsChartProperties buildSheetsChartProperties() { |
| var o = api.SheetsChartProperties(); |
| buildCounterSheetsChartProperties++; |
| if (buildCounterSheetsChartProperties < 3) { |
| o.chartImageProperties = buildImageProperties(); |
| } |
| buildCounterSheetsChartProperties--; |
| return o; |
| } |
| |
| void checkSheetsChartProperties(api.SheetsChartProperties o) { |
| buildCounterSheetsChartProperties++; |
| if (buildCounterSheetsChartProperties < 3) { |
| checkImageProperties(o.chartImageProperties); |
| } |
| buildCounterSheetsChartProperties--; |
| } |
| |
| core.int buildCounterSize = 0; |
| api.Size buildSize() { |
| var o = api.Size(); |
| buildCounterSize++; |
| if (buildCounterSize < 3) { |
| o.height = buildDimension(); |
| o.width = buildDimension(); |
| } |
| buildCounterSize--; |
| return o; |
| } |
| |
| void checkSize(api.Size o) { |
| buildCounterSize++; |
| if (buildCounterSize < 3) { |
| checkDimension(o.height); |
| checkDimension(o.width); |
| } |
| buildCounterSize--; |
| } |
| |
| core.int buildCounterSlideProperties = 0; |
| api.SlideProperties buildSlideProperties() { |
| var o = api.SlideProperties(); |
| buildCounterSlideProperties++; |
| if (buildCounterSlideProperties < 3) { |
| o.layoutObjectId = 'foo'; |
| o.masterObjectId = 'foo'; |
| o.notesPage = buildPage(); |
| } |
| buildCounterSlideProperties--; |
| return o; |
| } |
| |
| void checkSlideProperties(api.SlideProperties o) { |
| buildCounterSlideProperties++; |
| if (buildCounterSlideProperties < 3) { |
| unittest.expect(o.layoutObjectId, unittest.equals('foo')); |
| unittest.expect(o.masterObjectId, unittest.equals('foo')); |
| checkPage(o.notesPage); |
| } |
| buildCounterSlideProperties--; |
| } |
| |
| core.int buildCounterSolidFill = 0; |
| api.SolidFill buildSolidFill() { |
| var o = api.SolidFill(); |
| buildCounterSolidFill++; |
| if (buildCounterSolidFill < 3) { |
| o.alpha = 42.0; |
| o.color = buildOpaqueColor(); |
| } |
| buildCounterSolidFill--; |
| return o; |
| } |
| |
| void checkSolidFill(api.SolidFill o) { |
| buildCounterSolidFill++; |
| if (buildCounterSolidFill < 3) { |
| unittest.expect(o.alpha, unittest.equals(42.0)); |
| checkOpaqueColor(o.color); |
| } |
| buildCounterSolidFill--; |
| } |
| |
| core.int buildCounterStretchedPictureFill = 0; |
| api.StretchedPictureFill buildStretchedPictureFill() { |
| var o = api.StretchedPictureFill(); |
| buildCounterStretchedPictureFill++; |
| if (buildCounterStretchedPictureFill < 3) { |
| o.contentUrl = 'foo'; |
| o.size = buildSize(); |
| } |
| buildCounterStretchedPictureFill--; |
| return o; |
| } |
| |
| void checkStretchedPictureFill(api.StretchedPictureFill o) { |
| buildCounterStretchedPictureFill++; |
| if (buildCounterStretchedPictureFill < 3) { |
| unittest.expect(o.contentUrl, unittest.equals('foo')); |
| checkSize(o.size); |
| } |
| buildCounterStretchedPictureFill--; |
| } |
| |
| core.int buildCounterSubstringMatchCriteria = 0; |
| api.SubstringMatchCriteria buildSubstringMatchCriteria() { |
| var o = api.SubstringMatchCriteria(); |
| buildCounterSubstringMatchCriteria++; |
| if (buildCounterSubstringMatchCriteria < 3) { |
| o.matchCase = true; |
| o.text = 'foo'; |
| } |
| buildCounterSubstringMatchCriteria--; |
| return o; |
| } |
| |
| void checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { |
| buildCounterSubstringMatchCriteria++; |
| if (buildCounterSubstringMatchCriteria < 3) { |
| unittest.expect(o.matchCase, unittest.isTrue); |
| unittest.expect(o.text, unittest.equals('foo')); |
| } |
| buildCounterSubstringMatchCriteria--; |
| } |
| |
| core.List<api.TableBorderRow> buildUnnamed1938() { |
| var o = <api.TableBorderRow>[]; |
| o.add(buildTableBorderRow()); |
| o.add(buildTableBorderRow()); |
| return o; |
| } |
| |
| void checkUnnamed1938(core.List<api.TableBorderRow> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableBorderRow(o[0]); |
| checkTableBorderRow(o[1]); |
| } |
| |
| core.List<api.TableColumnProperties> buildUnnamed1939() { |
| var o = <api.TableColumnProperties>[]; |
| o.add(buildTableColumnProperties()); |
| o.add(buildTableColumnProperties()); |
| return o; |
| } |
| |
| void checkUnnamed1939(core.List<api.TableColumnProperties> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableColumnProperties(o[0]); |
| checkTableColumnProperties(o[1]); |
| } |
| |
| core.List<api.TableRow> buildUnnamed1940() { |
| var o = <api.TableRow>[]; |
| o.add(buildTableRow()); |
| o.add(buildTableRow()); |
| return o; |
| } |
| |
| void checkUnnamed1940(core.List<api.TableRow> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableRow(o[0]); |
| checkTableRow(o[1]); |
| } |
| |
| core.List<api.TableBorderRow> buildUnnamed1941() { |
| var o = <api.TableBorderRow>[]; |
| o.add(buildTableBorderRow()); |
| o.add(buildTableBorderRow()); |
| return o; |
| } |
| |
| void checkUnnamed1941(core.List<api.TableBorderRow> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableBorderRow(o[0]); |
| checkTableBorderRow(o[1]); |
| } |
| |
| core.int buildCounterTable = 0; |
| api.Table buildTable() { |
| var o = api.Table(); |
| buildCounterTable++; |
| if (buildCounterTable < 3) { |
| o.columns = 42; |
| o.horizontalBorderRows = buildUnnamed1938(); |
| o.rows = 42; |
| o.tableColumns = buildUnnamed1939(); |
| o.tableRows = buildUnnamed1940(); |
| o.verticalBorderRows = buildUnnamed1941(); |
| } |
| buildCounterTable--; |
| return o; |
| } |
| |
| void checkTable(api.Table o) { |
| buildCounterTable++; |
| if (buildCounterTable < 3) { |
| unittest.expect(o.columns, unittest.equals(42)); |
| checkUnnamed1938(o.horizontalBorderRows); |
| unittest.expect(o.rows, unittest.equals(42)); |
| checkUnnamed1939(o.tableColumns); |
| checkUnnamed1940(o.tableRows); |
| checkUnnamed1941(o.verticalBorderRows); |
| } |
| buildCounterTable--; |
| } |
| |
| core.int buildCounterTableBorderCell = 0; |
| api.TableBorderCell buildTableBorderCell() { |
| var o = api.TableBorderCell(); |
| buildCounterTableBorderCell++; |
| if (buildCounterTableBorderCell < 3) { |
| o.location = buildTableCellLocation(); |
| o.tableBorderProperties = buildTableBorderProperties(); |
| } |
| buildCounterTableBorderCell--; |
| return o; |
| } |
| |
| void checkTableBorderCell(api.TableBorderCell o) { |
| buildCounterTableBorderCell++; |
| if (buildCounterTableBorderCell < 3) { |
| checkTableCellLocation(o.location); |
| checkTableBorderProperties(o.tableBorderProperties); |
| } |
| buildCounterTableBorderCell--; |
| } |
| |
| core.int buildCounterTableBorderFill = 0; |
| api.TableBorderFill buildTableBorderFill() { |
| var o = api.TableBorderFill(); |
| buildCounterTableBorderFill++; |
| if (buildCounterTableBorderFill < 3) { |
| o.solidFill = buildSolidFill(); |
| } |
| buildCounterTableBorderFill--; |
| return o; |
| } |
| |
| void checkTableBorderFill(api.TableBorderFill o) { |
| buildCounterTableBorderFill++; |
| if (buildCounterTableBorderFill < 3) { |
| checkSolidFill(o.solidFill); |
| } |
| buildCounterTableBorderFill--; |
| } |
| |
| core.int buildCounterTableBorderProperties = 0; |
| api.TableBorderProperties buildTableBorderProperties() { |
| var o = api.TableBorderProperties(); |
| buildCounterTableBorderProperties++; |
| if (buildCounterTableBorderProperties < 3) { |
| o.dashStyle = 'foo'; |
| o.tableBorderFill = buildTableBorderFill(); |
| o.weight = buildDimension(); |
| } |
| buildCounterTableBorderProperties--; |
| return o; |
| } |
| |
| void checkTableBorderProperties(api.TableBorderProperties o) { |
| buildCounterTableBorderProperties++; |
| if (buildCounterTableBorderProperties < 3) { |
| unittest.expect(o.dashStyle, unittest.equals('foo')); |
| checkTableBorderFill(o.tableBorderFill); |
| checkDimension(o.weight); |
| } |
| buildCounterTableBorderProperties--; |
| } |
| |
| core.List<api.TableBorderCell> buildUnnamed1942() { |
| var o = <api.TableBorderCell>[]; |
| o.add(buildTableBorderCell()); |
| o.add(buildTableBorderCell()); |
| return o; |
| } |
| |
| void checkUnnamed1942(core.List<api.TableBorderCell> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableBorderCell(o[0]); |
| checkTableBorderCell(o[1]); |
| } |
| |
| core.int buildCounterTableBorderRow = 0; |
| api.TableBorderRow buildTableBorderRow() { |
| var o = api.TableBorderRow(); |
| buildCounterTableBorderRow++; |
| if (buildCounterTableBorderRow < 3) { |
| o.tableBorderCells = buildUnnamed1942(); |
| } |
| buildCounterTableBorderRow--; |
| return o; |
| } |
| |
| void checkTableBorderRow(api.TableBorderRow o) { |
| buildCounterTableBorderRow++; |
| if (buildCounterTableBorderRow < 3) { |
| checkUnnamed1942(o.tableBorderCells); |
| } |
| buildCounterTableBorderRow--; |
| } |
| |
| core.int buildCounterTableCell = 0; |
| api.TableCell buildTableCell() { |
| var o = api.TableCell(); |
| buildCounterTableCell++; |
| if (buildCounterTableCell < 3) { |
| o.columnSpan = 42; |
| o.location = buildTableCellLocation(); |
| o.rowSpan = 42; |
| o.tableCellProperties = buildTableCellProperties(); |
| o.text = buildTextContent(); |
| } |
| buildCounterTableCell--; |
| return o; |
| } |
| |
| void checkTableCell(api.TableCell o) { |
| buildCounterTableCell++; |
| if (buildCounterTableCell < 3) { |
| unittest.expect(o.columnSpan, unittest.equals(42)); |
| checkTableCellLocation(o.location); |
| unittest.expect(o.rowSpan, unittest.equals(42)); |
| checkTableCellProperties(o.tableCellProperties); |
| checkTextContent(o.text); |
| } |
| buildCounterTableCell--; |
| } |
| |
| core.int buildCounterTableCellBackgroundFill = 0; |
| api.TableCellBackgroundFill buildTableCellBackgroundFill() { |
| var o = api.TableCellBackgroundFill(); |
| buildCounterTableCellBackgroundFill++; |
| if (buildCounterTableCellBackgroundFill < 3) { |
| o.propertyState = 'foo'; |
| o.solidFill = buildSolidFill(); |
| } |
| buildCounterTableCellBackgroundFill--; |
| return o; |
| } |
| |
| void checkTableCellBackgroundFill(api.TableCellBackgroundFill o) { |
| buildCounterTableCellBackgroundFill++; |
| if (buildCounterTableCellBackgroundFill < 3) { |
| unittest.expect(o.propertyState, unittest.equals('foo')); |
| checkSolidFill(o.solidFill); |
| } |
| buildCounterTableCellBackgroundFill--; |
| } |
| |
| core.int buildCounterTableCellLocation = 0; |
| api.TableCellLocation buildTableCellLocation() { |
| var o = api.TableCellLocation(); |
| buildCounterTableCellLocation++; |
| if (buildCounterTableCellLocation < 3) { |
| o.columnIndex = 42; |
| o.rowIndex = 42; |
| } |
| buildCounterTableCellLocation--; |
| return o; |
| } |
| |
| void checkTableCellLocation(api.TableCellLocation o) { |
| buildCounterTableCellLocation++; |
| if (buildCounterTableCellLocation < 3) { |
| unittest.expect(o.columnIndex, unittest.equals(42)); |
| unittest.expect(o.rowIndex, unittest.equals(42)); |
| } |
| buildCounterTableCellLocation--; |
| } |
| |
| core.int buildCounterTableCellProperties = 0; |
| api.TableCellProperties buildTableCellProperties() { |
| var o = api.TableCellProperties(); |
| buildCounterTableCellProperties++; |
| if (buildCounterTableCellProperties < 3) { |
| o.contentAlignment = 'foo'; |
| o.tableCellBackgroundFill = buildTableCellBackgroundFill(); |
| } |
| buildCounterTableCellProperties--; |
| return o; |
| } |
| |
| void checkTableCellProperties(api.TableCellProperties o) { |
| buildCounterTableCellProperties++; |
| if (buildCounterTableCellProperties < 3) { |
| unittest.expect(o.contentAlignment, unittest.equals('foo')); |
| checkTableCellBackgroundFill(o.tableCellBackgroundFill); |
| } |
| buildCounterTableCellProperties--; |
| } |
| |
| core.int buildCounterTableColumnProperties = 0; |
| api.TableColumnProperties buildTableColumnProperties() { |
| var o = api.TableColumnProperties(); |
| buildCounterTableColumnProperties++; |
| if (buildCounterTableColumnProperties < 3) { |
| o.columnWidth = buildDimension(); |
| } |
| buildCounterTableColumnProperties--; |
| return o; |
| } |
| |
| void checkTableColumnProperties(api.TableColumnProperties o) { |
| buildCounterTableColumnProperties++; |
| if (buildCounterTableColumnProperties < 3) { |
| checkDimension(o.columnWidth); |
| } |
| buildCounterTableColumnProperties--; |
| } |
| |
| core.int buildCounterTableRange = 0; |
| api.TableRange buildTableRange() { |
| var o = api.TableRange(); |
| buildCounterTableRange++; |
| if (buildCounterTableRange < 3) { |
| o.columnSpan = 42; |
| o.location = buildTableCellLocation(); |
| o.rowSpan = 42; |
| } |
| buildCounterTableRange--; |
| return o; |
| } |
| |
| void checkTableRange(api.TableRange o) { |
| buildCounterTableRange++; |
| if (buildCounterTableRange < 3) { |
| unittest.expect(o.columnSpan, unittest.equals(42)); |
| checkTableCellLocation(o.location); |
| unittest.expect(o.rowSpan, unittest.equals(42)); |
| } |
| buildCounterTableRange--; |
| } |
| |
| core.List<api.TableCell> buildUnnamed1943() { |
| var o = <api.TableCell>[]; |
| o.add(buildTableCell()); |
| o.add(buildTableCell()); |
| return o; |
| } |
| |
| void checkUnnamed1943(core.List<api.TableCell> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTableCell(o[0]); |
| checkTableCell(o[1]); |
| } |
| |
| core.int buildCounterTableRow = 0; |
| api.TableRow buildTableRow() { |
| var o = api.TableRow(); |
| buildCounterTableRow++; |
| if (buildCounterTableRow < 3) { |
| o.rowHeight = buildDimension(); |
| o.tableCells = buildUnnamed1943(); |
| o.tableRowProperties = buildTableRowProperties(); |
| } |
| buildCounterTableRow--; |
| return o; |
| } |
| |
| void checkTableRow(api.TableRow o) { |
| buildCounterTableRow++; |
| if (buildCounterTableRow < 3) { |
| checkDimension(o.rowHeight); |
| checkUnnamed1943(o.tableCells); |
| checkTableRowProperties(o.tableRowProperties); |
| } |
| buildCounterTableRow--; |
| } |
| |
| core.int buildCounterTableRowProperties = 0; |
| api.TableRowProperties buildTableRowProperties() { |
| var o = api.TableRowProperties(); |
| buildCounterTableRowProperties++; |
| if (buildCounterTableRowProperties < 3) { |
| o.minRowHeight = buildDimension(); |
| } |
| buildCounterTableRowProperties--; |
| return o; |
| } |
| |
| void checkTableRowProperties(api.TableRowProperties o) { |
| buildCounterTableRowProperties++; |
| if (buildCounterTableRowProperties < 3) { |
| checkDimension(o.minRowHeight); |
| } |
| buildCounterTableRowProperties--; |
| } |
| |
| core.Map<core.String, api.List> buildUnnamed1944() { |
| var o = <core.String, api.List>{}; |
| o['x'] = buildList(); |
| o['y'] = buildList(); |
| return o; |
| } |
| |
| void checkUnnamed1944(core.Map<core.String, api.List> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkList(o['x']); |
| checkList(o['y']); |
| } |
| |
| core.List<api.TextElement> buildUnnamed1945() { |
| var o = <api.TextElement>[]; |
| o.add(buildTextElement()); |
| o.add(buildTextElement()); |
| return o; |
| } |
| |
| void checkUnnamed1945(core.List<api.TextElement> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| checkTextElement(o[0]); |
| checkTextElement(o[1]); |
| } |
| |
| core.int buildCounterTextContent = 0; |
| api.TextContent buildTextContent() { |
| var o = api.TextContent(); |
| buildCounterTextContent++; |
| if (buildCounterTextContent < 3) { |
| o.lists = buildUnnamed1944(); |
| o.textElements = buildUnnamed1945(); |
| } |
| buildCounterTextContent--; |
| return o; |
| } |
| |
| void checkTextContent(api.TextContent o) { |
| buildCounterTextContent++; |
| if (buildCounterTextContent < 3) { |
| checkUnnamed1944(o.lists); |
| checkUnnamed1945(o.textElements); |
| } |
| buildCounterTextContent--; |
| } |
| |
| core.int buildCounterTextElement = 0; |
| api.TextElement buildTextElement() { |
| var o = api.TextElement(); |
| buildCounterTextElement++; |
| if (buildCounterTextElement < 3) { |
| o.autoText = buildAutoText(); |
| o.endIndex = 42; |
| o.paragraphMarker = buildParagraphMarker(); |
| o.startIndex = 42; |
| o.textRun = buildTextRun(); |
| } |
| buildCounterTextElement--; |
| return o; |
| } |
| |
| void checkTextElement(api.TextElement o) { |
| buildCounterTextElement++; |
| if (buildCounterTextElement < 3) { |
| checkAutoText(o.autoText); |
| unittest.expect(o.endIndex, unittest.equals(42)); |
| checkParagraphMarker(o.paragraphMarker); |
| unittest.expect(o.startIndex, unittest.equals(42)); |
| checkTextRun(o.textRun); |
| } |
| buildCounterTextElement--; |
| } |
| |
| core.int buildCounterTextRun = 0; |
| api.TextRun buildTextRun() { |
| var o = api.TextRun(); |
| buildCounterTextRun++; |
| if (buildCounterTextRun < 3) { |
| o.content = 'foo'; |
| o.style = buildTextStyle(); |
| } |
| buildCounterTextRun--; |
| return o; |
| } |
| |
| void checkTextRun(api.TextRun o) { |
| buildCounterTextRun++; |
| if (buildCounterTextRun < 3) { |
| unittest.expect(o.content, unittest.equals('foo')); |
| checkTextStyle(o.style); |
| } |
| buildCounterTextRun--; |
| } |
| |
| core.int buildCounterTextStyle = 0; |
| api.TextStyle buildTextStyle() { |
| var o = api.TextStyle(); |
| buildCounterTextStyle++; |
| if (buildCounterTextStyle < 3) { |
| o.backgroundColor = buildOptionalColor(); |
| o.baselineOffset = 'foo'; |
| o.bold = true; |
| o.fontFamily = 'foo'; |
| o.fontSize = buildDimension(); |
| o.foregroundColor = buildOptionalColor(); |
| o.italic = true; |
| o.link = buildLink(); |
| o.smallCaps = true; |
| o.strikethrough = true; |
| o.underline = true; |
| o.weightedFontFamily = buildWeightedFontFamily(); |
| } |
| buildCounterTextStyle--; |
| return o; |
| } |
| |
| void checkTextStyle(api.TextStyle o) { |
| buildCounterTextStyle++; |
| if (buildCounterTextStyle < 3) { |
| checkOptionalColor(o.backgroundColor); |
| unittest.expect(o.baselineOffset, unittest.equals('foo')); |
| unittest.expect(o.bold, unittest.isTrue); |
| unittest.expect(o.fontFamily, unittest.equals('foo')); |
| checkDimension(o.fontSize); |
| checkOptionalColor(o.foregroundColor); |
| unittest.expect(o.italic, unittest.isTrue); |
| checkLink(o.link); |
| unittest.expect(o.smallCaps, unittest.isTrue); |
| unittest.expect(o.strikethrough, unittest.isTrue); |
| unittest.expect(o.underline, unittest.isTrue); |
| checkWeightedFontFamily(o.weightedFontFamily); |
| } |
| buildCounterTextStyle--; |
| } |
| |
| core.int buildCounterThemeColorPair = 0; |
| api.ThemeColorPair buildThemeColorPair() { |
| var o = api.ThemeColorPair(); |
| buildCounterThemeColorPair++; |
| if (buildCounterThemeColorPair < 3) { |
| o.color = buildRgbColor(); |
| o.type = 'foo'; |
| } |
| buildCounterThemeColorPair--; |
| return o; |
| } |
| |
| void checkThemeColorPair(api.ThemeColorPair o) { |
| buildCounterThemeColorPair++; |
| if (buildCounterThemeColorPair < 3) { |
| checkRgbColor(o.color); |
| unittest.expect(o.type, unittest.equals('foo')); |
| } |
| buildCounterThemeColorPair--; |
| } |
| |
| core.int buildCounterThumbnail = 0; |
| api.Thumbnail buildThumbnail() { |
| var o = api.Thumbnail(); |
| buildCounterThumbnail++; |
| if (buildCounterThumbnail < 3) { |
| o.contentUrl = 'foo'; |
| o.height = 42; |
| o.width = 42; |
| } |
| buildCounterThumbnail--; |
| return o; |
| } |
| |
| void checkThumbnail(api.Thumbnail o) { |
| buildCounterThumbnail++; |
| if (buildCounterThumbnail < 3) { |
| unittest.expect(o.contentUrl, unittest.equals('foo')); |
| unittest.expect(o.height, unittest.equals(42)); |
| unittest.expect(o.width, unittest.equals(42)); |
| } |
| buildCounterThumbnail--; |
| } |
| |
| core.List<core.String> buildUnnamed1946() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1946(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterUngroupObjectsRequest = 0; |
| api.UngroupObjectsRequest buildUngroupObjectsRequest() { |
| var o = api.UngroupObjectsRequest(); |
| buildCounterUngroupObjectsRequest++; |
| if (buildCounterUngroupObjectsRequest < 3) { |
| o.objectIds = buildUnnamed1946(); |
| } |
| buildCounterUngroupObjectsRequest--; |
| return o; |
| } |
| |
| void checkUngroupObjectsRequest(api.UngroupObjectsRequest o) { |
| buildCounterUngroupObjectsRequest++; |
| if (buildCounterUngroupObjectsRequest < 3) { |
| checkUnnamed1946(o.objectIds); |
| } |
| buildCounterUngroupObjectsRequest--; |
| } |
| |
| core.int buildCounterUnmergeTableCellsRequest = 0; |
| api.UnmergeTableCellsRequest buildUnmergeTableCellsRequest() { |
| var o = api.UnmergeTableCellsRequest(); |
| buildCounterUnmergeTableCellsRequest++; |
| if (buildCounterUnmergeTableCellsRequest < 3) { |
| o.objectId = 'foo'; |
| o.tableRange = buildTableRange(); |
| } |
| buildCounterUnmergeTableCellsRequest--; |
| return o; |
| } |
| |
| void checkUnmergeTableCellsRequest(api.UnmergeTableCellsRequest o) { |
| buildCounterUnmergeTableCellsRequest++; |
| if (buildCounterUnmergeTableCellsRequest < 3) { |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTableRange(o.tableRange); |
| } |
| buildCounterUnmergeTableCellsRequest--; |
| } |
| |
| core.int buildCounterUpdateImagePropertiesRequest = 0; |
| api.UpdateImagePropertiesRequest buildUpdateImagePropertiesRequest() { |
| var o = api.UpdateImagePropertiesRequest(); |
| buildCounterUpdateImagePropertiesRequest++; |
| if (buildCounterUpdateImagePropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.imageProperties = buildImageProperties(); |
| o.objectId = 'foo'; |
| } |
| buildCounterUpdateImagePropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateImagePropertiesRequest(api.UpdateImagePropertiesRequest o) { |
| buildCounterUpdateImagePropertiesRequest++; |
| if (buildCounterUpdateImagePropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| checkImageProperties(o.imageProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterUpdateImagePropertiesRequest--; |
| } |
| |
| core.int buildCounterUpdateLineCategoryRequest = 0; |
| api.UpdateLineCategoryRequest buildUpdateLineCategoryRequest() { |
| var o = api.UpdateLineCategoryRequest(); |
| buildCounterUpdateLineCategoryRequest++; |
| if (buildCounterUpdateLineCategoryRequest < 3) { |
| o.lineCategory = 'foo'; |
| o.objectId = 'foo'; |
| } |
| buildCounterUpdateLineCategoryRequest--; |
| return o; |
| } |
| |
| void checkUpdateLineCategoryRequest(api.UpdateLineCategoryRequest o) { |
| buildCounterUpdateLineCategoryRequest++; |
| if (buildCounterUpdateLineCategoryRequest < 3) { |
| unittest.expect(o.lineCategory, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterUpdateLineCategoryRequest--; |
| } |
| |
| core.int buildCounterUpdateLinePropertiesRequest = 0; |
| api.UpdateLinePropertiesRequest buildUpdateLinePropertiesRequest() { |
| var o = api.UpdateLinePropertiesRequest(); |
| buildCounterUpdateLinePropertiesRequest++; |
| if (buildCounterUpdateLinePropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.lineProperties = buildLineProperties(); |
| o.objectId = 'foo'; |
| } |
| buildCounterUpdateLinePropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateLinePropertiesRequest(api.UpdateLinePropertiesRequest o) { |
| buildCounterUpdateLinePropertiesRequest++; |
| if (buildCounterUpdateLinePropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| checkLineProperties(o.lineProperties); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| } |
| buildCounterUpdateLinePropertiesRequest--; |
| } |
| |
| core.int buildCounterUpdatePageElementAltTextRequest = 0; |
| api.UpdatePageElementAltTextRequest buildUpdatePageElementAltTextRequest() { |
| var o = api.UpdatePageElementAltTextRequest(); |
| buildCounterUpdatePageElementAltTextRequest++; |
| if (buildCounterUpdatePageElementAltTextRequest < 3) { |
| o.description = 'foo'; |
| o.objectId = 'foo'; |
| o.title = 'foo'; |
| } |
| buildCounterUpdatePageElementAltTextRequest--; |
| return o; |
| } |
| |
| void checkUpdatePageElementAltTextRequest( |
| api.UpdatePageElementAltTextRequest o) { |
| buildCounterUpdatePageElementAltTextRequest++; |
| if (buildCounterUpdatePageElementAltTextRequest < 3) { |
| unittest.expect(o.description, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| unittest.expect(o.title, unittest.equals('foo')); |
| } |
| buildCounterUpdatePageElementAltTextRequest--; |
| } |
| |
| core.int buildCounterUpdatePageElementTransformRequest = 0; |
| api.UpdatePageElementTransformRequest buildUpdatePageElementTransformRequest() { |
| var o = api.UpdatePageElementTransformRequest(); |
| buildCounterUpdatePageElementTransformRequest++; |
| if (buildCounterUpdatePageElementTransformRequest < 3) { |
| o.applyMode = 'foo'; |
| o.objectId = 'foo'; |
| o.transform = buildAffineTransform(); |
| } |
| buildCounterUpdatePageElementTransformRequest--; |
| return o; |
| } |
| |
| void checkUpdatePageElementTransformRequest( |
| api.UpdatePageElementTransformRequest o) { |
| buildCounterUpdatePageElementTransformRequest++; |
| if (buildCounterUpdatePageElementTransformRequest < 3) { |
| unittest.expect(o.applyMode, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkAffineTransform(o.transform); |
| } |
| buildCounterUpdatePageElementTransformRequest--; |
| } |
| |
| core.List<core.String> buildUnnamed1947() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1947(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterUpdatePageElementsZOrderRequest = 0; |
| api.UpdatePageElementsZOrderRequest buildUpdatePageElementsZOrderRequest() { |
| var o = api.UpdatePageElementsZOrderRequest(); |
| buildCounterUpdatePageElementsZOrderRequest++; |
| if (buildCounterUpdatePageElementsZOrderRequest < 3) { |
| o.operation = 'foo'; |
| o.pageElementObjectIds = buildUnnamed1947(); |
| } |
| buildCounterUpdatePageElementsZOrderRequest--; |
| return o; |
| } |
| |
| void checkUpdatePageElementsZOrderRequest( |
| api.UpdatePageElementsZOrderRequest o) { |
| buildCounterUpdatePageElementsZOrderRequest++; |
| if (buildCounterUpdatePageElementsZOrderRequest < 3) { |
| unittest.expect(o.operation, unittest.equals('foo')); |
| checkUnnamed1947(o.pageElementObjectIds); |
| } |
| buildCounterUpdatePageElementsZOrderRequest--; |
| } |
| |
| core.int buildCounterUpdatePagePropertiesRequest = 0; |
| api.UpdatePagePropertiesRequest buildUpdatePagePropertiesRequest() { |
| var o = api.UpdatePagePropertiesRequest(); |
| buildCounterUpdatePagePropertiesRequest++; |
| if (buildCounterUpdatePagePropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.pageProperties = buildPageProperties(); |
| } |
| buildCounterUpdatePagePropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdatePagePropertiesRequest(api.UpdatePagePropertiesRequest o) { |
| buildCounterUpdatePagePropertiesRequest++; |
| if (buildCounterUpdatePagePropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkPageProperties(o.pageProperties); |
| } |
| buildCounterUpdatePagePropertiesRequest--; |
| } |
| |
| core.int buildCounterUpdateParagraphStyleRequest = 0; |
| api.UpdateParagraphStyleRequest buildUpdateParagraphStyleRequest() { |
| var o = api.UpdateParagraphStyleRequest(); |
| buildCounterUpdateParagraphStyleRequest++; |
| if (buildCounterUpdateParagraphStyleRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.style = buildParagraphStyle(); |
| o.textRange = buildRange(); |
| } |
| buildCounterUpdateParagraphStyleRequest--; |
| return o; |
| } |
| |
| void checkUpdateParagraphStyleRequest(api.UpdateParagraphStyleRequest o) { |
| buildCounterUpdateParagraphStyleRequest++; |
| if (buildCounterUpdateParagraphStyleRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkParagraphStyle(o.style); |
| checkRange(o.textRange); |
| } |
| buildCounterUpdateParagraphStyleRequest--; |
| } |
| |
| core.int buildCounterUpdateShapePropertiesRequest = 0; |
| api.UpdateShapePropertiesRequest buildUpdateShapePropertiesRequest() { |
| var o = api.UpdateShapePropertiesRequest(); |
| buildCounterUpdateShapePropertiesRequest++; |
| if (buildCounterUpdateShapePropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.shapeProperties = buildShapeProperties(); |
| } |
| buildCounterUpdateShapePropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { |
| buildCounterUpdateShapePropertiesRequest++; |
| if (buildCounterUpdateShapePropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkShapeProperties(o.shapeProperties); |
| } |
| buildCounterUpdateShapePropertiesRequest--; |
| } |
| |
| core.List<core.String> buildUnnamed1948() { |
| var o = <core.String>[]; |
| o.add('foo'); |
| o.add('foo'); |
| return o; |
| } |
| |
| void checkUnnamed1948(core.List<core.String> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals('foo')); |
| unittest.expect(o[1], unittest.equals('foo')); |
| } |
| |
| core.int buildCounterUpdateSlidesPositionRequest = 0; |
| api.UpdateSlidesPositionRequest buildUpdateSlidesPositionRequest() { |
| var o = api.UpdateSlidesPositionRequest(); |
| buildCounterUpdateSlidesPositionRequest++; |
| if (buildCounterUpdateSlidesPositionRequest < 3) { |
| o.insertionIndex = 42; |
| o.slideObjectIds = buildUnnamed1948(); |
| } |
| buildCounterUpdateSlidesPositionRequest--; |
| return o; |
| } |
| |
| void checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { |
| buildCounterUpdateSlidesPositionRequest++; |
| if (buildCounterUpdateSlidesPositionRequest < 3) { |
| unittest.expect(o.insertionIndex, unittest.equals(42)); |
| checkUnnamed1948(o.slideObjectIds); |
| } |
| buildCounterUpdateSlidesPositionRequest--; |
| } |
| |
| core.int buildCounterUpdateTableBorderPropertiesRequest = 0; |
| api.UpdateTableBorderPropertiesRequest |
| buildUpdateTableBorderPropertiesRequest() { |
| var o = api.UpdateTableBorderPropertiesRequest(); |
| buildCounterUpdateTableBorderPropertiesRequest++; |
| if (buildCounterUpdateTableBorderPropertiesRequest < 3) { |
| o.borderPosition = 'foo'; |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.tableBorderProperties = buildTableBorderProperties(); |
| o.tableRange = buildTableRange(); |
| } |
| buildCounterUpdateTableBorderPropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateTableBorderPropertiesRequest( |
| api.UpdateTableBorderPropertiesRequest o) { |
| buildCounterUpdateTableBorderPropertiesRequest++; |
| if (buildCounterUpdateTableBorderPropertiesRequest < 3) { |
| unittest.expect(o.borderPosition, unittest.equals('foo')); |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTableBorderProperties(o.tableBorderProperties); |
| checkTableRange(o.tableRange); |
| } |
| buildCounterUpdateTableBorderPropertiesRequest--; |
| } |
| |
| core.int buildCounterUpdateTableCellPropertiesRequest = 0; |
| api.UpdateTableCellPropertiesRequest buildUpdateTableCellPropertiesRequest() { |
| var o = api.UpdateTableCellPropertiesRequest(); |
| buildCounterUpdateTableCellPropertiesRequest++; |
| if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.tableCellProperties = buildTableCellProperties(); |
| o.tableRange = buildTableRange(); |
| } |
| buildCounterUpdateTableCellPropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateTableCellPropertiesRequest( |
| api.UpdateTableCellPropertiesRequest o) { |
| buildCounterUpdateTableCellPropertiesRequest++; |
| if (buildCounterUpdateTableCellPropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTableCellProperties(o.tableCellProperties); |
| checkTableRange(o.tableRange); |
| } |
| buildCounterUpdateTableCellPropertiesRequest--; |
| } |
| |
| core.List<core.int> buildUnnamed1949() { |
| var o = <core.int>[]; |
| o.add(42); |
| o.add(42); |
| return o; |
| } |
| |
| void checkUnnamed1949(core.List<core.int> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals(42)); |
| unittest.expect(o[1], unittest.equals(42)); |
| } |
| |
| core.int buildCounterUpdateTableColumnPropertiesRequest = 0; |
| api.UpdateTableColumnPropertiesRequest |
| buildUpdateTableColumnPropertiesRequest() { |
| var o = api.UpdateTableColumnPropertiesRequest(); |
| buildCounterUpdateTableColumnPropertiesRequest++; |
| if (buildCounterUpdateTableColumnPropertiesRequest < 3) { |
| o.columnIndices = buildUnnamed1949(); |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.tableColumnProperties = buildTableColumnProperties(); |
| } |
| buildCounterUpdateTableColumnPropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateTableColumnPropertiesRequest( |
| api.UpdateTableColumnPropertiesRequest o) { |
| buildCounterUpdateTableColumnPropertiesRequest++; |
| if (buildCounterUpdateTableColumnPropertiesRequest < 3) { |
| checkUnnamed1949(o.columnIndices); |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTableColumnProperties(o.tableColumnProperties); |
| } |
| buildCounterUpdateTableColumnPropertiesRequest--; |
| } |
| |
| core.List<core.int> buildUnnamed1950() { |
| var o = <core.int>[]; |
| o.add(42); |
| o.add(42); |
| return o; |
| } |
| |
| void checkUnnamed1950(core.List<core.int> o) { |
| unittest.expect(o, unittest.hasLength(2)); |
| unittest.expect(o[0], unittest.equals(42)); |
| unittest.expect(o[1], unittest.equals(42)); |
| } |
| |
| core.int buildCounterUpdateTableRowPropertiesRequest = 0; |
| api.UpdateTableRowPropertiesRequest buildUpdateTableRowPropertiesRequest() { |
| var o = api.UpdateTableRowPropertiesRequest(); |
| buildCounterUpdateTableRowPropertiesRequest++; |
| if (buildCounterUpdateTableRowPropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.rowIndices = buildUnnamed1950(); |
| o.tableRowProperties = buildTableRowProperties(); |
| } |
| buildCounterUpdateTableRowPropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateTableRowPropertiesRequest( |
| api.UpdateTableRowPropertiesRequest o) { |
| buildCounterUpdateTableRowPropertiesRequest++; |
| if (buildCounterUpdateTableRowPropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkUnnamed1950(o.rowIndices); |
| checkTableRowProperties(o.tableRowProperties); |
| } |
| buildCounterUpdateTableRowPropertiesRequest--; |
| } |
| |
| core.int buildCounterUpdateTextStyleRequest = 0; |
| api.UpdateTextStyleRequest buildUpdateTextStyleRequest() { |
| var o = api.UpdateTextStyleRequest(); |
| buildCounterUpdateTextStyleRequest++; |
| if (buildCounterUpdateTextStyleRequest < 3) { |
| o.cellLocation = buildTableCellLocation(); |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.style = buildTextStyle(); |
| o.textRange = buildRange(); |
| } |
| buildCounterUpdateTextStyleRequest--; |
| return o; |
| } |
| |
| void checkUpdateTextStyleRequest(api.UpdateTextStyleRequest o) { |
| buildCounterUpdateTextStyleRequest++; |
| if (buildCounterUpdateTextStyleRequest < 3) { |
| checkTableCellLocation(o.cellLocation); |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkTextStyle(o.style); |
| checkRange(o.textRange); |
| } |
| buildCounterUpdateTextStyleRequest--; |
| } |
| |
| core.int buildCounterUpdateVideoPropertiesRequest = 0; |
| api.UpdateVideoPropertiesRequest buildUpdateVideoPropertiesRequest() { |
| var o = api.UpdateVideoPropertiesRequest(); |
| buildCounterUpdateVideoPropertiesRequest++; |
| if (buildCounterUpdateVideoPropertiesRequest < 3) { |
| o.fields = 'foo'; |
| o.objectId = 'foo'; |
| o.videoProperties = buildVideoProperties(); |
| } |
| buildCounterUpdateVideoPropertiesRequest--; |
| return o; |
| } |
| |
| void checkUpdateVideoPropertiesRequest(api.UpdateVideoPropertiesRequest o) { |
| buildCounterUpdateVideoPropertiesRequest++; |
| if (buildCounterUpdateVideoPropertiesRequest < 3) { |
| unittest.expect(o.fields, unittest.equals('foo')); |
| unittest.expect(o.objectId, unittest.equals('foo')); |
| checkVideoProperties(o.videoProperties); |
| } |
| buildCounterUpdateVideoPropertiesRequest--; |
| } |
| |
| core.int buildCounterVideo = 0; |
| api.Video buildVideo() { |
| var o = api.Video(); |
| buildCounterVideo++; |
| if (buildCounterVideo < 3) { |
| o.id = 'foo'; |
| o.source = 'foo'; |
| o.url = 'foo'; |
| o.videoProperties = buildVideoProperties(); |
| } |
| buildCounterVideo--; |
| return o; |
| } |
| |
| void checkVideo(api.Video o) { |
| buildCounterVideo++; |
| if (buildCounterVideo < 3) { |
| unittest.expect(o.id, unittest.equals('foo')); |
| unittest.expect(o.source, unittest.equals('foo')); |
| unittest.expect(o.url, unittest.equals('foo')); |
| checkVideoProperties(o.videoProperties); |
| } |
| buildCounterVideo--; |
| } |
| |
| core.int buildCounterVideoProperties = 0; |
| api.VideoProperties buildVideoProperties() { |
| var o = api.VideoProperties(); |
| buildCounterVideoProperties++; |
| if (buildCounterVideoProperties < 3) { |
| o.autoPlay = true; |
| o.end = 42; |
| o.mute = true; |
| o.outline = buildOutline(); |
| o.start = 42; |
| } |
| buildCounterVideoProperties--; |
| return o; |
| } |
| |
| void checkVideoProperties(api.VideoProperties o) { |
| buildCounterVideoProperties++; |
| if (buildCounterVideoProperties < 3) { |
| unittest.expect(o.autoPlay, unittest.isTrue); |
| unittest.expect(o.end, unittest.equals(42)); |
| unittest.expect(o.mute, unittest.isTrue); |
| checkOutline(o.outline); |
| unittest.expect(o.start, unittest.equals(42)); |
| } |
| buildCounterVideoProperties--; |
| } |
| |
| core.int buildCounterWeightedFontFamily = 0; |
| api.WeightedFontFamily buildWeightedFontFamily() { |
| var o = api.WeightedFontFamily(); |
| buildCounterWeightedFontFamily++; |
| if (buildCounterWeightedFontFamily < 3) { |
| o.fontFamily = 'foo'; |
| o.weight = 42; |
| } |
| buildCounterWeightedFontFamily--; |
| return o; |
| } |
| |
| void checkWeightedFontFamily(api.WeightedFontFamily o) { |
| buildCounterWeightedFontFamily++; |
| if (buildCounterWeightedFontFamily < 3) { |
| unittest.expect(o.fontFamily, unittest.equals('foo')); |
| unittest.expect(o.weight, unittest.equals(42)); |
| } |
| buildCounterWeightedFontFamily--; |
| } |
| |
| core.int buildCounterWordArt = 0; |
| api.WordArt buildWordArt() { |
| var o = api.WordArt(); |
| buildCounterWordArt++; |
| if (buildCounterWordArt < 3) { |
| o.renderedText = 'foo'; |
| } |
| buildCounterWordArt--; |
| return o; |
| } |
| |
| void checkWordArt(api.WordArt o) { |
| buildCounterWordArt++; |
| if (buildCounterWordArt < 3) { |
| unittest.expect(o.renderedText, unittest.equals('foo')); |
| } |
| buildCounterWordArt--; |
| } |
| |
| core.int buildCounterWriteControl = 0; |
| api.WriteControl buildWriteControl() { |
| var o = api.WriteControl(); |
| buildCounterWriteControl++; |
| if (buildCounterWriteControl < 3) { |
| o.requiredRevisionId = 'foo'; |
| } |
| buildCounterWriteControl--; |
| return o; |
| } |
| |
| void checkWriteControl(api.WriteControl o) { |
| buildCounterWriteControl++; |
| if (buildCounterWriteControl < 3) { |
| unittest.expect(o.requiredRevisionId, unittest.equals('foo')); |
| } |
| buildCounterWriteControl--; |
| } |
| |
| void main() { |
| unittest.group('obj-schema-AffineTransform', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAffineTransform(); |
| var od = api.AffineTransform.fromJson(o.toJson()); |
| checkAffineTransform(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-AutoText', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildAutoText(); |
| var od = api.AutoText.fromJson(o.toJson()); |
| checkAutoText(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchUpdatePresentationRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchUpdatePresentationRequest(); |
| var od = api.BatchUpdatePresentationRequest.fromJson(o.toJson()); |
| checkBatchUpdatePresentationRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-BatchUpdatePresentationResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBatchUpdatePresentationResponse(); |
| var od = api.BatchUpdatePresentationResponse.fromJson(o.toJson()); |
| checkBatchUpdatePresentationResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Bullet', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildBullet(); |
| var od = api.Bullet.fromJson(o.toJson()); |
| checkBullet(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ColorScheme', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildColorScheme(); |
| var od = api.ColorScheme.fromJson(o.toJson()); |
| checkColorScheme(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ColorStop', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildColorStop(); |
| var od = api.ColorStop.fromJson(o.toJson()); |
| checkColorStop(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateImageRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateImageRequest(); |
| var od = api.CreateImageRequest.fromJson(o.toJson()); |
| checkCreateImageRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateImageResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateImageResponse(); |
| var od = api.CreateImageResponse.fromJson(o.toJson()); |
| checkCreateImageResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateLineRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateLineRequest(); |
| var od = api.CreateLineRequest.fromJson(o.toJson()); |
| checkCreateLineRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateLineResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateLineResponse(); |
| var od = api.CreateLineResponse.fromJson(o.toJson()); |
| checkCreateLineResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateParagraphBulletsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateParagraphBulletsRequest(); |
| var od = api.CreateParagraphBulletsRequest.fromJson(o.toJson()); |
| checkCreateParagraphBulletsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateShapeRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateShapeRequest(); |
| var od = api.CreateShapeRequest.fromJson(o.toJson()); |
| checkCreateShapeRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateShapeResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateShapeResponse(); |
| var od = api.CreateShapeResponse.fromJson(o.toJson()); |
| checkCreateShapeResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateSheetsChartRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateSheetsChartRequest(); |
| var od = api.CreateSheetsChartRequest.fromJson(o.toJson()); |
| checkCreateSheetsChartRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateSheetsChartResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateSheetsChartResponse(); |
| var od = api.CreateSheetsChartResponse.fromJson(o.toJson()); |
| checkCreateSheetsChartResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateSlideRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateSlideRequest(); |
| var od = api.CreateSlideRequest.fromJson(o.toJson()); |
| checkCreateSlideRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateSlideResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateSlideResponse(); |
| var od = api.CreateSlideResponse.fromJson(o.toJson()); |
| checkCreateSlideResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateTableRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateTableRequest(); |
| var od = api.CreateTableRequest.fromJson(o.toJson()); |
| checkCreateTableRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateTableResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateTableResponse(); |
| var od = api.CreateTableResponse.fromJson(o.toJson()); |
| checkCreateTableResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateVideoRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateVideoRequest(); |
| var od = api.CreateVideoRequest.fromJson(o.toJson()); |
| checkCreateVideoRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CreateVideoResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCreateVideoResponse(); |
| var od = api.CreateVideoResponse.fromJson(o.toJson()); |
| checkCreateVideoResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-CropProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildCropProperties(); |
| var od = api.CropProperties.fromJson(o.toJson()); |
| checkCropProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DeleteObjectRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDeleteObjectRequest(); |
| var od = api.DeleteObjectRequest.fromJson(o.toJson()); |
| checkDeleteObjectRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DeleteParagraphBulletsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDeleteParagraphBulletsRequest(); |
| var od = api.DeleteParagraphBulletsRequest.fromJson(o.toJson()); |
| checkDeleteParagraphBulletsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DeleteTableColumnRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDeleteTableColumnRequest(); |
| var od = api.DeleteTableColumnRequest.fromJson(o.toJson()); |
| checkDeleteTableColumnRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DeleteTableRowRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDeleteTableRowRequest(); |
| var od = api.DeleteTableRowRequest.fromJson(o.toJson()); |
| checkDeleteTableRowRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DeleteTextRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDeleteTextRequest(); |
| var od = api.DeleteTextRequest.fromJson(o.toJson()); |
| checkDeleteTextRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Dimension', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDimension(); |
| var od = api.Dimension.fromJson(o.toJson()); |
| checkDimension(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DuplicateObjectRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDuplicateObjectRequest(); |
| var od = api.DuplicateObjectRequest.fromJson(o.toJson()); |
| checkDuplicateObjectRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-DuplicateObjectResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildDuplicateObjectResponse(); |
| var od = api.DuplicateObjectResponse.fromJson(o.toJson()); |
| checkDuplicateObjectResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Group', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGroup(); |
| var od = api.Group.fromJson(o.toJson()); |
| checkGroup(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GroupObjectsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGroupObjectsRequest(); |
| var od = api.GroupObjectsRequest.fromJson(o.toJson()); |
| checkGroupObjectsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-GroupObjectsResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildGroupObjectsResponse(); |
| var od = api.GroupObjectsResponse.fromJson(o.toJson()); |
| checkGroupObjectsResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Image', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImage(); |
| var od = api.Image.fromJson(o.toJson()); |
| checkImage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ImageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildImageProperties(); |
| var od = api.ImageProperties.fromJson(o.toJson()); |
| checkImageProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-InsertTableColumnsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildInsertTableColumnsRequest(); |
| var od = api.InsertTableColumnsRequest.fromJson(o.toJson()); |
| checkInsertTableColumnsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-InsertTableRowsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildInsertTableRowsRequest(); |
| var od = api.InsertTableRowsRequest.fromJson(o.toJson()); |
| checkInsertTableRowsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-InsertTextRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildInsertTextRequest(); |
| var od = api.InsertTextRequest.fromJson(o.toJson()); |
| checkInsertTextRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LayoutPlaceholderIdMapping', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLayoutPlaceholderIdMapping(); |
| var od = api.LayoutPlaceholderIdMapping.fromJson(o.toJson()); |
| checkLayoutPlaceholderIdMapping(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LayoutProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLayoutProperties(); |
| var od = api.LayoutProperties.fromJson(o.toJson()); |
| checkLayoutProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LayoutReference', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLayoutReference(); |
| var od = api.LayoutReference.fromJson(o.toJson()); |
| checkLayoutReference(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Line', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLine(); |
| var od = api.Line.fromJson(o.toJson()); |
| checkLine(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LineConnection', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLineConnection(); |
| var od = api.LineConnection.fromJson(o.toJson()); |
| checkLineConnection(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LineFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLineFill(); |
| var od = api.LineFill.fromJson(o.toJson()); |
| checkLineFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-LineProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLineProperties(); |
| var od = api.LineProperties.fromJson(o.toJson()); |
| checkLineProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Link', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildLink(); |
| var od = api.Link.fromJson(o.toJson()); |
| checkLink(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-List', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildList(); |
| var od = api.List.fromJson(o.toJson()); |
| checkList(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-MasterProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildMasterProperties(); |
| var od = api.MasterProperties.fromJson(o.toJson()); |
| checkMasterProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-MergeTableCellsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildMergeTableCellsRequest(); |
| var od = api.MergeTableCellsRequest.fromJson(o.toJson()); |
| checkMergeTableCellsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-NestingLevel', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildNestingLevel(); |
| var od = api.NestingLevel.fromJson(o.toJson()); |
| checkNestingLevel(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-NotesProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildNotesProperties(); |
| var od = api.NotesProperties.fromJson(o.toJson()); |
| checkNotesProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OpaqueColor', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOpaqueColor(); |
| var od = api.OpaqueColor.fromJson(o.toJson()); |
| checkOpaqueColor(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OptionalColor', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOptionalColor(); |
| var od = api.OptionalColor.fromJson(o.toJson()); |
| checkOptionalColor(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Outline', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOutline(); |
| var od = api.Outline.fromJson(o.toJson()); |
| checkOutline(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-OutlineFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildOutlineFill(); |
| var od = api.OutlineFill.fromJson(o.toJson()); |
| checkOutlineFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Page', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPage(); |
| var od = api.Page.fromJson(o.toJson()); |
| checkPage(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PageBackgroundFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPageBackgroundFill(); |
| var od = api.PageBackgroundFill.fromJson(o.toJson()); |
| checkPageBackgroundFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PageElement', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPageElement(); |
| var od = api.PageElement.fromJson(o.toJson()); |
| checkPageElement(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PageElementProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPageElementProperties(); |
| var od = api.PageElementProperties.fromJson(o.toJson()); |
| checkPageElementProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-PageProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPageProperties(); |
| var od = api.PageProperties.fromJson(o.toJson()); |
| checkPageProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ParagraphMarker', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildParagraphMarker(); |
| var od = api.ParagraphMarker.fromJson(o.toJson()); |
| checkParagraphMarker(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ParagraphStyle', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildParagraphStyle(); |
| var od = api.ParagraphStyle.fromJson(o.toJson()); |
| checkParagraphStyle(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Placeholder', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPlaceholder(); |
| var od = api.Placeholder.fromJson(o.toJson()); |
| checkPlaceholder(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Presentation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildPresentation(); |
| var od = api.Presentation.fromJson(o.toJson()); |
| checkPresentation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Range', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRange(); |
| var od = api.Range.fromJson(o.toJson()); |
| checkRange(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Recolor', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRecolor(); |
| var od = api.Recolor.fromJson(o.toJson()); |
| checkRecolor(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-RefreshSheetsChartRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRefreshSheetsChartRequest(); |
| var od = api.RefreshSheetsChartRequest.fromJson(o.toJson()); |
| checkRefreshSheetsChartRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllShapesWithImageRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllShapesWithImageRequest(); |
| var od = api.ReplaceAllShapesWithImageRequest.fromJson(o.toJson()); |
| checkReplaceAllShapesWithImageRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllShapesWithImageResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllShapesWithImageResponse(); |
| var od = api.ReplaceAllShapesWithImageResponse.fromJson(o.toJson()); |
| checkReplaceAllShapesWithImageResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllShapesWithSheetsChartRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllShapesWithSheetsChartRequest(); |
| var od = api.ReplaceAllShapesWithSheetsChartRequest.fromJson(o.toJson()); |
| checkReplaceAllShapesWithSheetsChartRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllShapesWithSheetsChartResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllShapesWithSheetsChartResponse(); |
| var od = api.ReplaceAllShapesWithSheetsChartResponse.fromJson(o.toJson()); |
| checkReplaceAllShapesWithSheetsChartResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllTextRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllTextRequest(); |
| var od = api.ReplaceAllTextRequest.fromJson(o.toJson()); |
| checkReplaceAllTextRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceAllTextResponse', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceAllTextResponse(); |
| var od = api.ReplaceAllTextResponse.fromJson(o.toJson()); |
| checkReplaceAllTextResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ReplaceImageRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildReplaceImageRequest(); |
| var od = api.ReplaceImageRequest.fromJson(o.toJson()); |
| checkReplaceImageRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Request', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRequest(); |
| var od = api.Request.fromJson(o.toJson()); |
| checkRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-RerouteLineRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRerouteLineRequest(); |
| var od = api.RerouteLineRequest.fromJson(o.toJson()); |
| checkRerouteLineRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Response', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildResponse(); |
| var od = api.Response.fromJson(o.toJson()); |
| checkResponse(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-RgbColor', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildRgbColor(); |
| var od = api.RgbColor.fromJson(o.toJson()); |
| checkRgbColor(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Shadow', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildShadow(); |
| var od = api.Shadow.fromJson(o.toJson()); |
| checkShadow(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Shape', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildShape(); |
| var od = api.Shape.fromJson(o.toJson()); |
| checkShape(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ShapeBackgroundFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildShapeBackgroundFill(); |
| var od = api.ShapeBackgroundFill.fromJson(o.toJson()); |
| checkShapeBackgroundFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ShapeProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildShapeProperties(); |
| var od = api.ShapeProperties.fromJson(o.toJson()); |
| checkShapeProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SheetsChart', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSheetsChart(); |
| var od = api.SheetsChart.fromJson(o.toJson()); |
| checkSheetsChart(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SheetsChartProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSheetsChartProperties(); |
| var od = api.SheetsChartProperties.fromJson(o.toJson()); |
| checkSheetsChartProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Size', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSize(); |
| var od = api.Size.fromJson(o.toJson()); |
| checkSize(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SlideProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSlideProperties(); |
| var od = api.SlideProperties.fromJson(o.toJson()); |
| checkSlideProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SolidFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSolidFill(); |
| var od = api.SolidFill.fromJson(o.toJson()); |
| checkSolidFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-StretchedPictureFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildStretchedPictureFill(); |
| var od = api.StretchedPictureFill.fromJson(o.toJson()); |
| checkStretchedPictureFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-SubstringMatchCriteria', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildSubstringMatchCriteria(); |
| var od = api.SubstringMatchCriteria.fromJson(o.toJson()); |
| checkSubstringMatchCriteria(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Table', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTable(); |
| var od = api.Table.fromJson(o.toJson()); |
| checkTable(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableBorderCell', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableBorderCell(); |
| var od = api.TableBorderCell.fromJson(o.toJson()); |
| checkTableBorderCell(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableBorderFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableBorderFill(); |
| var od = api.TableBorderFill.fromJson(o.toJson()); |
| checkTableBorderFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableBorderProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableBorderProperties(); |
| var od = api.TableBorderProperties.fromJson(o.toJson()); |
| checkTableBorderProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableBorderRow', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableBorderRow(); |
| var od = api.TableBorderRow.fromJson(o.toJson()); |
| checkTableBorderRow(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableCell', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableCell(); |
| var od = api.TableCell.fromJson(o.toJson()); |
| checkTableCell(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableCellBackgroundFill', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableCellBackgroundFill(); |
| var od = api.TableCellBackgroundFill.fromJson(o.toJson()); |
| checkTableCellBackgroundFill(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableCellLocation', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableCellLocation(); |
| var od = api.TableCellLocation.fromJson(o.toJson()); |
| checkTableCellLocation(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableCellProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableCellProperties(); |
| var od = api.TableCellProperties.fromJson(o.toJson()); |
| checkTableCellProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableColumnProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableColumnProperties(); |
| var od = api.TableColumnProperties.fromJson(o.toJson()); |
| checkTableColumnProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableRange', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableRange(); |
| var od = api.TableRange.fromJson(o.toJson()); |
| checkTableRange(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableRow', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableRow(); |
| var od = api.TableRow.fromJson(o.toJson()); |
| checkTableRow(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TableRowProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTableRowProperties(); |
| var od = api.TableRowProperties.fromJson(o.toJson()); |
| checkTableRowProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextContent', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextContent(); |
| var od = api.TextContent.fromJson(o.toJson()); |
| checkTextContent(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextElement', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextElement(); |
| var od = api.TextElement.fromJson(o.toJson()); |
| checkTextElement(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextRun', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextRun(); |
| var od = api.TextRun.fromJson(o.toJson()); |
| checkTextRun(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-TextStyle', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildTextStyle(); |
| var od = api.TextStyle.fromJson(o.toJson()); |
| checkTextStyle(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-ThemeColorPair', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildThemeColorPair(); |
| var od = api.ThemeColorPair.fromJson(o.toJson()); |
| checkThemeColorPair(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Thumbnail', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildThumbnail(); |
| var od = api.Thumbnail.fromJson(o.toJson()); |
| checkThumbnail(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UngroupObjectsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUngroupObjectsRequest(); |
| var od = api.UngroupObjectsRequest.fromJson(o.toJson()); |
| checkUngroupObjectsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UnmergeTableCellsRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUnmergeTableCellsRequest(); |
| var od = api.UnmergeTableCellsRequest.fromJson(o.toJson()); |
| checkUnmergeTableCellsRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateImagePropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateImagePropertiesRequest(); |
| var od = api.UpdateImagePropertiesRequest.fromJson(o.toJson()); |
| checkUpdateImagePropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateLineCategoryRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateLineCategoryRequest(); |
| var od = api.UpdateLineCategoryRequest.fromJson(o.toJson()); |
| checkUpdateLineCategoryRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateLinePropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateLinePropertiesRequest(); |
| var od = api.UpdateLinePropertiesRequest.fromJson(o.toJson()); |
| checkUpdateLinePropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdatePageElementAltTextRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdatePageElementAltTextRequest(); |
| var od = api.UpdatePageElementAltTextRequest.fromJson(o.toJson()); |
| checkUpdatePageElementAltTextRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdatePageElementTransformRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdatePageElementTransformRequest(); |
| var od = api.UpdatePageElementTransformRequest.fromJson(o.toJson()); |
| checkUpdatePageElementTransformRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdatePageElementsZOrderRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdatePageElementsZOrderRequest(); |
| var od = api.UpdatePageElementsZOrderRequest.fromJson(o.toJson()); |
| checkUpdatePageElementsZOrderRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdatePagePropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdatePagePropertiesRequest(); |
| var od = api.UpdatePagePropertiesRequest.fromJson(o.toJson()); |
| checkUpdatePagePropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateParagraphStyleRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateParagraphStyleRequest(); |
| var od = api.UpdateParagraphStyleRequest.fromJson(o.toJson()); |
| checkUpdateParagraphStyleRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateShapePropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateShapePropertiesRequest(); |
| var od = api.UpdateShapePropertiesRequest.fromJson(o.toJson()); |
| checkUpdateShapePropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateSlidesPositionRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateSlidesPositionRequest(); |
| var od = api.UpdateSlidesPositionRequest.fromJson(o.toJson()); |
| checkUpdateSlidesPositionRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateTableBorderPropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateTableBorderPropertiesRequest(); |
| var od = api.UpdateTableBorderPropertiesRequest.fromJson(o.toJson()); |
| checkUpdateTableBorderPropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateTableCellPropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateTableCellPropertiesRequest(); |
| var od = api.UpdateTableCellPropertiesRequest.fromJson(o.toJson()); |
| checkUpdateTableCellPropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateTableColumnPropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateTableColumnPropertiesRequest(); |
| var od = api.UpdateTableColumnPropertiesRequest.fromJson(o.toJson()); |
| checkUpdateTableColumnPropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateTableRowPropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateTableRowPropertiesRequest(); |
| var od = api.UpdateTableRowPropertiesRequest.fromJson(o.toJson()); |
| checkUpdateTableRowPropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateTextStyleRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateTextStyleRequest(); |
| var od = api.UpdateTextStyleRequest.fromJson(o.toJson()); |
| checkUpdateTextStyleRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-UpdateVideoPropertiesRequest', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildUpdateVideoPropertiesRequest(); |
| var od = api.UpdateVideoPropertiesRequest.fromJson(o.toJson()); |
| checkUpdateVideoPropertiesRequest(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-Video', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildVideo(); |
| var od = api.Video.fromJson(o.toJson()); |
| checkVideo(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-VideoProperties', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildVideoProperties(); |
| var od = api.VideoProperties.fromJson(o.toJson()); |
| checkVideoProperties(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WeightedFontFamily', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWeightedFontFamily(); |
| var od = api.WeightedFontFamily.fromJson(o.toJson()); |
| checkWeightedFontFamily(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WordArt', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWordArt(); |
| var od = api.WordArt.fromJson(o.toJson()); |
| checkWordArt(od); |
| }); |
| }); |
| |
| unittest.group('obj-schema-WriteControl', () { |
| unittest.test('to-json--from-json', () { |
| var o = buildWriteControl(); |
| var od = api.WriteControl.fromJson(o.toJson()); |
| checkWriteControl(od); |
| }); |
| }); |
| |
| unittest.group('resource-PresentationsResourceApi', () { |
| unittest.test('method--batchUpdate', () { |
| var mock = HttpServerMock(); |
| api.PresentationsResourceApi res = api.SlidesApi(mock).presentations; |
| var arg_request = buildBatchUpdatePresentationRequest(); |
| var arg_presentationId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.BatchUpdatePresentationRequest.fromJson(json); |
| checkBatchUpdatePresentationRequest(obj); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| pathOffset += 1; |
| unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| unittest.equals("v1/presentations/")); |
| pathOffset += 17; |
| index = path.indexOf(':batchUpdate', pathOffset); |
| unittest.expect(index >= 0, unittest.isTrue); |
| subPart = |
| core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| pathOffset = index; |
| unittest.expect(subPart, unittest.equals('$arg_presentationId')); |
| unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| unittest.equals(":batchUpdate")); |
| pathOffset += 12; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildBatchUpdatePresentationResponse()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| res |
| .batchUpdate(arg_request, arg_presentationId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkBatchUpdatePresentationResponse(response); |
| }))); |
| }); |
| |
| unittest.test('method--create', () { |
| var mock = HttpServerMock(); |
| api.PresentationsResourceApi res = api.SlidesApi(mock).presentations; |
| var arg_request = buildPresentation(); |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var obj = api.Presentation.fromJson(json); |
| checkPresentation(obj); |
| |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| pathOffset += 1; |
| unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| unittest.equals("v1/presentations")); |
| pathOffset += 16; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildPresentation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| res |
| .create(arg_request, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkPresentation(response); |
| }))); |
| }); |
| |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.PresentationsResourceApi res = api.SlidesApi(mock).presentations; |
| var arg_presentationId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| pathOffset += 1; |
| unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| unittest.equals("v1/presentations/")); |
| pathOffset += 17; |
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildPresentation()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| res |
| .get(arg_presentationId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkPresentation(response); |
| }))); |
| }); |
| }); |
| |
| unittest.group('resource-PresentationsPagesResourceApi', () { |
| unittest.test('method--get', () { |
| var mock = HttpServerMock(); |
| api.PresentationsPagesResourceApi res = |
| api.SlidesApi(mock).presentations.pages; |
| var arg_presentationId = 'foo'; |
| var arg_pageObjectId = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| pathOffset += 1; |
| unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| unittest.equals("v1/presentations/")); |
| pathOffset += 17; |
| index = path.indexOf('/pages/', pathOffset); |
| unittest.expect(index >= 0, unittest.isTrue); |
| subPart = |
| core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| pathOffset = index; |
| unittest.expect(subPart, unittest.equals('$arg_presentationId')); |
| unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| unittest.equals("/pages/")); |
| pathOffset += 7; |
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| pathOffset = path.length; |
| unittest.expect(subPart, unittest.equals('$arg_pageObjectId')); |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildPage()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| res |
| .get(arg_presentationId, arg_pageObjectId, $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkPage(response); |
| }))); |
| }); |
| |
| unittest.test('method--getThumbnail', () { |
| var mock = HttpServerMock(); |
| api.PresentationsPagesResourceApi res = |
| api.SlidesApi(mock).presentations.pages; |
| var arg_presentationId = 'foo'; |
| var arg_pageObjectId = 'foo'; |
| var arg_thumbnailProperties_mimeType = 'foo'; |
| var arg_thumbnailProperties_thumbnailSize = 'foo'; |
| var arg_$fields = 'foo'; |
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| var path = (req.url).path; |
| var pathOffset = 0; |
| core.int index; |
| core.String subPart; |
| unittest.expect( |
| path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| pathOffset += 1; |
| unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| unittest.equals("v1/presentations/")); |
| pathOffset += 17; |
| index = path.indexOf('/pages/', pathOffset); |
| unittest.expect(index >= 0, unittest.isTrue); |
| subPart = |
| core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| pathOffset = index; |
| unittest.expect(subPart, unittest.equals('$arg_presentationId')); |
| unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| unittest.equals("/pages/")); |
| pathOffset += 7; |
| index = path.indexOf('/thumbnail', pathOffset); |
| unittest.expect(index >= 0, unittest.isTrue); |
| subPart = |
| core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
| pathOffset = index; |
| unittest.expect(subPart, unittest.equals('$arg_pageObjectId')); |
| unittest.expect(path.substring(pathOffset, pathOffset + 10), |
| unittest.equals("/thumbnail")); |
| pathOffset += 10; |
| |
| var query = (req.url).query; |
| var queryOffset = 0; |
| var queryMap = <core.String, core.List<core.String>>{}; |
| void addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| |
| if (query.isNotEmpty) { |
| for (var part in query.split('&')) { |
| var keyValue = part.split('='); |
| addQueryParam( |
| core.Uri.decodeQueryComponent(keyValue[0]), |
| core.Uri.decodeQueryComponent(keyValue[1]), |
| ); |
| } |
| } |
| unittest.expect(queryMap["thumbnailProperties.mimeType"].first, |
| unittest.equals(arg_thumbnailProperties_mimeType)); |
| unittest.expect(queryMap["thumbnailProperties.thumbnailSize"].first, |
| unittest.equals(arg_thumbnailProperties_thumbnailSize)); |
| unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); |
| |
| var h = { |
| 'content-type': 'application/json; charset=utf-8', |
| }; |
| var resp = convert.json.encode(buildThumbnail()); |
| return async.Future.value(stringResponse(200, h, resp)); |
| }), true); |
| res |
| .getThumbnail(arg_presentationId, arg_pageObjectId, |
| thumbnailProperties_mimeType: arg_thumbnailProperties_mimeType, |
| thumbnailProperties_thumbnailSize: |
| arg_thumbnailProperties_thumbnailSize, |
| $fields: arg_$fields) |
| .then(unittest.expectAsync1(((response) { |
| checkThumbnail(response); |
| }))); |
| }); |
| }); |
| } |