| Index: generated/googleapis/test/qpxexpress/v1_test.dart
|
| diff --git a/generated/googleapis/test/qpxexpress/v1_test.dart b/generated/googleapis/test/qpxexpress/v1_test.dart
|
| index daea4bc17e4ef4e76100814a234fbfc09cb2e9ff..7307c0bd0d962603835b7d5bc13d13f110d51d01 100644
|
| --- a/generated/googleapis/test/qpxexpress/v1_test.dart
|
| +++ b/generated/googleapis/test/qpxexpress/v1_test.dart
|
| @@ -8,13 +8,48 @@ import "dart:convert" as convert;
|
| import 'package:http/http.dart' as http;
|
| import 'package:http/testing.dart' as http_testing;
|
| import 'package:unittest/unittest.dart' as unittest;
|
| -import 'package:googleapis/common/common.dart' as common;
|
| -import 'package:googleapis/src/common_internal.dart' as common_internal;
|
| -import '../common/common_internal_test.dart' as common_test;
|
|
|
| import 'package:googleapis/qpxexpress/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;
|
| + }
|
| +
|
| + async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| + if (_expectJson) {
|
| + return request.finalize()
|
| + .transform(convert.UTF8.decoder)
|
| + .join('')
|
| + .then((core.String jsonString) {
|
| + 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 {
|
| + return stream.toBytes().then((data) {
|
| + return _callback(request, data);
|
| + });
|
| + }
|
| + }
|
| + }
|
| +}
|
| +
|
| +http.StreamedResponse stringResponse(
|
| + core.int status, core.Map headers, core.String body) {
|
| + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| + return new http.StreamedResponse(stream, status, headers: headers);
|
| +}
|
|
|
| core.int buildCounterAircraftData = 0;
|
| buildAircraftData() {
|
| @@ -64,14 +99,14 @@ checkAirportData(api.AirportData o) {
|
| buildCounterAirportData--;
|
| }
|
|
|
| -buildUnnamed1() {
|
| +buildUnnamed1307() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1(core.List<core.String> o) {
|
| +checkUnnamed1307(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'));
|
| @@ -84,7 +119,7 @@ buildBagDescriptor() {
|
| if (buildCounterBagDescriptor < 3) {
|
| o.commercialName = "foo";
|
| o.count = 42;
|
| - o.description = buildUnnamed1();
|
| + o.description = buildUnnamed1307();
|
| o.kind = "foo";
|
| o.subcode = "foo";
|
| }
|
| @@ -97,7 +132,7 @@ checkBagDescriptor(api.BagDescriptor o) {
|
| if (buildCounterBagDescriptor < 3) {
|
| unittest.expect(o.commercialName, unittest.equals('foo'));
|
| unittest.expect(o.count, unittest.equals(42));
|
| - checkUnnamed1(o.description);
|
| + checkUnnamed1307(o.description);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.subcode, unittest.equals('foo'));
|
| }
|
| @@ -152,66 +187,66 @@ checkCityData(api.CityData o) {
|
| buildCounterCityData--;
|
| }
|
|
|
| -buildUnnamed2() {
|
| +buildUnnamed1308() {
|
| var o = new core.List<api.AircraftData>();
|
| o.add(buildAircraftData());
|
| o.add(buildAircraftData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2(core.List<api.AircraftData> o) {
|
| +checkUnnamed1308(core.List<api.AircraftData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAircraftData(o[0]);
|
| checkAircraftData(o[1]);
|
| }
|
|
|
| -buildUnnamed3() {
|
| +buildUnnamed1309() {
|
| var o = new core.List<api.AirportData>();
|
| o.add(buildAirportData());
|
| o.add(buildAirportData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3(core.List<api.AirportData> o) {
|
| +checkUnnamed1309(core.List<api.AirportData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAirportData(o[0]);
|
| checkAirportData(o[1]);
|
| }
|
|
|
| -buildUnnamed4() {
|
| +buildUnnamed1310() {
|
| var o = new core.List<api.CarrierData>();
|
| o.add(buildCarrierData());
|
| o.add(buildCarrierData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4(core.List<api.CarrierData> o) {
|
| +checkUnnamed1310(core.List<api.CarrierData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCarrierData(o[0]);
|
| checkCarrierData(o[1]);
|
| }
|
|
|
| -buildUnnamed5() {
|
| +buildUnnamed1311() {
|
| var o = new core.List<api.CityData>();
|
| o.add(buildCityData());
|
| o.add(buildCityData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed5(core.List<api.CityData> o) {
|
| +checkUnnamed1311(core.List<api.CityData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCityData(o[0]);
|
| checkCityData(o[1]);
|
| }
|
|
|
| -buildUnnamed6() {
|
| +buildUnnamed1312() {
|
| var o = new core.List<api.TaxData>();
|
| o.add(buildTaxData());
|
| o.add(buildTaxData());
|
| return o;
|
| }
|
|
|
| -checkUnnamed6(core.List<api.TaxData> o) {
|
| +checkUnnamed1312(core.List<api.TaxData> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTaxData(o[0]);
|
| checkTaxData(o[1]);
|
| @@ -222,12 +257,12 @@ buildData() {
|
| var o = new api.Data();
|
| buildCounterData++;
|
| if (buildCounterData < 3) {
|
| - o.aircraft = buildUnnamed2();
|
| - o.airport = buildUnnamed3();
|
| - o.carrier = buildUnnamed4();
|
| - o.city = buildUnnamed5();
|
| + o.aircraft = buildUnnamed1308();
|
| + o.airport = buildUnnamed1309();
|
| + o.carrier = buildUnnamed1310();
|
| + o.city = buildUnnamed1311();
|
| o.kind = "foo";
|
| - o.tax = buildUnnamed6();
|
| + o.tax = buildUnnamed1312();
|
| }
|
| buildCounterData--;
|
| return o;
|
| @@ -236,12 +271,12 @@ buildData() {
|
| checkData(api.Data o) {
|
| buildCounterData++;
|
| if (buildCounterData < 3) {
|
| - checkUnnamed2(o.aircraft);
|
| - checkUnnamed3(o.airport);
|
| - checkUnnamed4(o.carrier);
|
| - checkUnnamed5(o.city);
|
| + checkUnnamed1308(o.aircraft);
|
| + checkUnnamed1309(o.airport);
|
| + checkUnnamed1310(o.carrier);
|
| + checkUnnamed1311(o.city);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed6(o.tax);
|
| + checkUnnamed1312(o.tax);
|
| }
|
| buildCounterData--;
|
| }
|
| @@ -298,14 +333,14 @@ checkFlightInfo(api.FlightInfo o) {
|
| buildCounterFlightInfo--;
|
| }
|
|
|
| -buildUnnamed7() {
|
| +buildUnnamed1313() {
|
| var o = new core.List<api.BagDescriptor>();
|
| o.add(buildBagDescriptor());
|
| o.add(buildBagDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed7(core.List<api.BagDescriptor> o) {
|
| +checkUnnamed1313(core.List<api.BagDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBagDescriptor(o[0]);
|
| checkBagDescriptor(o[1]);
|
| @@ -316,7 +351,7 @@ buildFreeBaggageAllowance() {
|
| var o = new api.FreeBaggageAllowance();
|
| buildCounterFreeBaggageAllowance++;
|
| if (buildCounterFreeBaggageAllowance < 3) {
|
| - o.bagDescriptor = buildUnnamed7();
|
| + o.bagDescriptor = buildUnnamed1313();
|
| o.kilos = 42;
|
| o.kilosPerPiece = 42;
|
| o.kind = "foo";
|
| @@ -330,7 +365,7 @@ buildFreeBaggageAllowance() {
|
| checkFreeBaggageAllowance(api.FreeBaggageAllowance o) {
|
| buildCounterFreeBaggageAllowance++;
|
| if (buildCounterFreeBaggageAllowance < 3) {
|
| - checkUnnamed7(o.bagDescriptor);
|
| + checkUnnamed1313(o.bagDescriptor);
|
| unittest.expect(o.kilos, unittest.equals(42));
|
| unittest.expect(o.kilosPerPiece, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -420,40 +455,40 @@ checkPassengerCounts(api.PassengerCounts o) {
|
| buildCounterPassengerCounts--;
|
| }
|
|
|
| -buildUnnamed8() {
|
| +buildUnnamed1314() {
|
| var o = new core.List<api.FareInfo>();
|
| o.add(buildFareInfo());
|
| o.add(buildFareInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed8(core.List<api.FareInfo> o) {
|
| +checkUnnamed1314(core.List<api.FareInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFareInfo(o[0]);
|
| checkFareInfo(o[1]);
|
| }
|
|
|
| -buildUnnamed9() {
|
| +buildUnnamed1315() {
|
| var o = new core.List<api.SegmentPricing>();
|
| o.add(buildSegmentPricing());
|
| o.add(buildSegmentPricing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed9(core.List<api.SegmentPricing> o) {
|
| +checkUnnamed1315(core.List<api.SegmentPricing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSegmentPricing(o[0]);
|
| checkSegmentPricing(o[1]);
|
| }
|
|
|
| -buildUnnamed10() {
|
| +buildUnnamed1316() {
|
| var o = new core.List<api.TaxInfo>();
|
| o.add(buildTaxInfo());
|
| o.add(buildTaxInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed10(core.List<api.TaxInfo> o) {
|
| +checkUnnamed1316(core.List<api.TaxInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTaxInfo(o[0]);
|
| checkTaxInfo(o[1]);
|
| @@ -465,7 +500,7 @@ buildPricingInfo() {
|
| buildCounterPricingInfo++;
|
| if (buildCounterPricingInfo < 3) {
|
| o.baseFareTotal = "foo";
|
| - o.fare = buildUnnamed8();
|
| + o.fare = buildUnnamed1314();
|
| o.fareCalculation = "foo";
|
| o.kind = "foo";
|
| o.latestTicketingTime = "foo";
|
| @@ -475,8 +510,8 @@ buildPricingInfo() {
|
| o.saleFareTotal = "foo";
|
| o.saleTaxTotal = "foo";
|
| o.saleTotal = "foo";
|
| - o.segmentPricing = buildUnnamed9();
|
| - o.tax = buildUnnamed10();
|
| + o.segmentPricing = buildUnnamed1315();
|
| + o.tax = buildUnnamed1316();
|
| }
|
| buildCounterPricingInfo--;
|
| return o;
|
| @@ -486,7 +521,7 @@ checkPricingInfo(api.PricingInfo o) {
|
| buildCounterPricingInfo++;
|
| if (buildCounterPricingInfo < 3) {
|
| unittest.expect(o.baseFareTotal, unittest.equals('foo'));
|
| - checkUnnamed8(o.fare);
|
| + checkUnnamed1314(o.fare);
|
| unittest.expect(o.fareCalculation, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.latestTicketingTime, unittest.equals('foo'));
|
| @@ -496,20 +531,20 @@ checkPricingInfo(api.PricingInfo o) {
|
| unittest.expect(o.saleFareTotal, unittest.equals('foo'));
|
| unittest.expect(o.saleTaxTotal, unittest.equals('foo'));
|
| unittest.expect(o.saleTotal, unittest.equals('foo'));
|
| - checkUnnamed9(o.segmentPricing);
|
| - checkUnnamed10(o.tax);
|
| + checkUnnamed1315(o.segmentPricing);
|
| + checkUnnamed1316(o.tax);
|
| }
|
| buildCounterPricingInfo--;
|
| }
|
|
|
| -buildUnnamed11() {
|
| +buildUnnamed1317() {
|
| var o = new core.List<api.LegInfo>();
|
| o.add(buildLegInfo());
|
| o.add(buildLegInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed11(core.List<api.LegInfo> o) {
|
| +checkUnnamed1317(core.List<api.LegInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLegInfo(o[0]);
|
| checkLegInfo(o[1]);
|
| @@ -528,7 +563,7 @@ buildSegmentInfo() {
|
| o.flight = buildFlightInfo();
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.leg = buildUnnamed11();
|
| + o.leg = buildUnnamed1317();
|
| o.marriedSegmentGroup = "foo";
|
| o.subjectToGovernmentApproval = true;
|
| }
|
| @@ -547,21 +582,21 @@ checkSegmentInfo(api.SegmentInfo o) {
|
| checkFlightInfo(o.flight);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed11(o.leg);
|
| + checkUnnamed1317(o.leg);
|
| unittest.expect(o.marriedSegmentGroup, unittest.equals('foo'));
|
| unittest.expect(o.subjectToGovernmentApproval, unittest.isTrue);
|
| }
|
| buildCounterSegmentInfo--;
|
| }
|
|
|
| -buildUnnamed12() {
|
| +buildUnnamed1318() {
|
| var o = new core.List<api.FreeBaggageAllowance>();
|
| o.add(buildFreeBaggageAllowance());
|
| o.add(buildFreeBaggageAllowance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed12(core.List<api.FreeBaggageAllowance> o) {
|
| +checkUnnamed1318(core.List<api.FreeBaggageAllowance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFreeBaggageAllowance(o[0]);
|
| checkFreeBaggageAllowance(o[1]);
|
| @@ -573,7 +608,7 @@ buildSegmentPricing() {
|
| buildCounterSegmentPricing++;
|
| if (buildCounterSegmentPricing < 3) {
|
| o.fareId = "foo";
|
| - o.freeBaggageOption = buildUnnamed12();
|
| + o.freeBaggageOption = buildUnnamed1318();
|
| o.kind = "foo";
|
| o.segmentId = "foo";
|
| }
|
| @@ -585,21 +620,21 @@ checkSegmentPricing(api.SegmentPricing o) {
|
| buildCounterSegmentPricing++;
|
| if (buildCounterSegmentPricing < 3) {
|
| unittest.expect(o.fareId, unittest.equals('foo'));
|
| - checkUnnamed12(o.freeBaggageOption);
|
| + checkUnnamed1318(o.freeBaggageOption);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.segmentId, unittest.equals('foo'));
|
| }
|
| buildCounterSegmentPricing--;
|
| }
|
|
|
| -buildUnnamed13() {
|
| +buildUnnamed1319() {
|
| var o = new core.List<api.SegmentInfo>();
|
| o.add(buildSegmentInfo());
|
| o.add(buildSegmentInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed13(core.List<api.SegmentInfo> o) {
|
| +checkUnnamed1319(core.List<api.SegmentInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSegmentInfo(o[0]);
|
| checkSegmentInfo(o[1]);
|
| @@ -612,7 +647,7 @@ buildSliceInfo() {
|
| if (buildCounterSliceInfo < 3) {
|
| o.duration = 42;
|
| o.kind = "foo";
|
| - o.segment = buildUnnamed13();
|
| + o.segment = buildUnnamed1319();
|
| }
|
| buildCounterSliceInfo--;
|
| return o;
|
| @@ -623,32 +658,32 @@ checkSliceInfo(api.SliceInfo o) {
|
| if (buildCounterSliceInfo < 3) {
|
| unittest.expect(o.duration, unittest.equals(42));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed13(o.segment);
|
| + checkUnnamed1319(o.segment);
|
| }
|
| buildCounterSliceInfo--;
|
| }
|
|
|
| -buildUnnamed14() {
|
| +buildUnnamed1320() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed14(core.List<core.String> o) {
|
| +checkUnnamed1320(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'));
|
| }
|
|
|
| -buildUnnamed15() {
|
| +buildUnnamed1321() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed15(core.List<core.String> o) {
|
| +checkUnnamed1321(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'));
|
| @@ -666,10 +701,10 @@ buildSliceInput() {
|
| o.maxConnectionDuration = 42;
|
| o.maxStops = 42;
|
| o.origin = "foo";
|
| - o.permittedCarrier = buildUnnamed14();
|
| + o.permittedCarrier = buildUnnamed1320();
|
| o.permittedDepartureTime = buildTimeOfDayRange();
|
| o.preferredCabin = "foo";
|
| - o.prohibitedCarrier = buildUnnamed15();
|
| + o.prohibitedCarrier = buildUnnamed1321();
|
| }
|
| buildCounterSliceInput--;
|
| return o;
|
| @@ -685,10 +720,10 @@ checkSliceInput(api.SliceInput o) {
|
| unittest.expect(o.maxConnectionDuration, unittest.equals(42));
|
| unittest.expect(o.maxStops, unittest.equals(42));
|
| unittest.expect(o.origin, unittest.equals('foo'));
|
| - checkUnnamed14(o.permittedCarrier);
|
| + checkUnnamed1320(o.permittedCarrier);
|
| checkTimeOfDayRange(o.permittedDepartureTime);
|
| unittest.expect(o.preferredCabin, unittest.equals('foo'));
|
| - checkUnnamed15(o.prohibitedCarrier);
|
| + checkUnnamed1321(o.prohibitedCarrier);
|
| }
|
| buildCounterSliceInput--;
|
| }
|
| @@ -768,27 +803,27 @@ checkTimeOfDayRange(api.TimeOfDayRange o) {
|
| buildCounterTimeOfDayRange--;
|
| }
|
|
|
| -buildUnnamed16() {
|
| +buildUnnamed1322() {
|
| var o = new core.List<api.PricingInfo>();
|
| o.add(buildPricingInfo());
|
| o.add(buildPricingInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed16(core.List<api.PricingInfo> o) {
|
| +checkUnnamed1322(core.List<api.PricingInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPricingInfo(o[0]);
|
| checkPricingInfo(o[1]);
|
| }
|
|
|
| -buildUnnamed17() {
|
| +buildUnnamed1323() {
|
| var o = new core.List<api.SliceInfo>();
|
| o.add(buildSliceInfo());
|
| o.add(buildSliceInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed17(core.List<api.SliceInfo> o) {
|
| +checkUnnamed1323(core.List<api.SliceInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSliceInfo(o[0]);
|
| checkSliceInfo(o[1]);
|
| @@ -801,9 +836,9 @@ buildTripOption() {
|
| if (buildCounterTripOption < 3) {
|
| o.id = "foo";
|
| o.kind = "foo";
|
| - o.pricing = buildUnnamed16();
|
| + o.pricing = buildUnnamed1322();
|
| o.saleTotal = "foo";
|
| - o.slice = buildUnnamed17();
|
| + o.slice = buildUnnamed1323();
|
| }
|
| buildCounterTripOption--;
|
| return o;
|
| @@ -814,21 +849,21 @@ checkTripOption(api.TripOption o) {
|
| if (buildCounterTripOption < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed16(o.pricing);
|
| + checkUnnamed1322(o.pricing);
|
| unittest.expect(o.saleTotal, unittest.equals('foo'));
|
| - checkUnnamed17(o.slice);
|
| + checkUnnamed1323(o.slice);
|
| }
|
| buildCounterTripOption--;
|
| }
|
|
|
| -buildUnnamed18() {
|
| +buildUnnamed1324() {
|
| var o = new core.List<api.SliceInput>();
|
| o.add(buildSliceInput());
|
| o.add(buildSliceInput());
|
| return o;
|
| }
|
|
|
| -checkUnnamed18(core.List<api.SliceInput> o) {
|
| +checkUnnamed1324(core.List<api.SliceInput> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSliceInput(o[0]);
|
| checkSliceInput(o[1]);
|
| @@ -843,7 +878,7 @@ buildTripOptionsRequest() {
|
| o.passengers = buildPassengerCounts();
|
| o.refundable = true;
|
| o.saleCountry = "foo";
|
| - o.slice = buildUnnamed18();
|
| + o.slice = buildUnnamed1324();
|
| o.solutions = 42;
|
| }
|
| buildCounterTripOptionsRequest--;
|
| @@ -857,20 +892,20 @@ checkTripOptionsRequest(api.TripOptionsRequest o) {
|
| checkPassengerCounts(o.passengers);
|
| unittest.expect(o.refundable, unittest.isTrue);
|
| unittest.expect(o.saleCountry, unittest.equals('foo'));
|
| - checkUnnamed18(o.slice);
|
| + checkUnnamed1324(o.slice);
|
| unittest.expect(o.solutions, unittest.equals(42));
|
| }
|
| buildCounterTripOptionsRequest--;
|
| }
|
|
|
| -buildUnnamed19() {
|
| +buildUnnamed1325() {
|
| var o = new core.List<api.TripOption>();
|
| o.add(buildTripOption());
|
| o.add(buildTripOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed19(core.List<api.TripOption> o) {
|
| +checkUnnamed1325(core.List<api.TripOption> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTripOption(o[0]);
|
| checkTripOption(o[1]);
|
| @@ -884,7 +919,7 @@ buildTripOptionsResponse() {
|
| o.data = buildData();
|
| o.kind = "foo";
|
| o.requestId = "foo";
|
| - o.tripOption = buildUnnamed19();
|
| + o.tripOption = buildUnnamed1325();
|
| }
|
| buildCounterTripOptionsResponse--;
|
| return o;
|
| @@ -896,7 +931,7 @@ checkTripOptionsResponse(api.TripOptionsResponse o) {
|
| checkData(o.data);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.requestId, unittest.equals('foo'));
|
| - checkUnnamed19(o.tripOption);
|
| + checkUnnamed1325(o.tripOption);
|
| }
|
| buildCounterTripOptionsResponse--;
|
| }
|
| @@ -1162,7 +1197,7 @@ main() {
|
| unittest.group("resource-TripsResourceApi", () {
|
| unittest.test("method--search", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TripsResourceApi res = new api.QpxExpressApi(mock).trips;
|
| var arg_request = buildTripsSearchRequest();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -1202,7 +1237,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTripsSearchResponse());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.search(arg_request).then(unittest.expectAsync(((api.TripsSearchResponse response) {
|
| checkTripsSearchResponse(response);
|
|
|