| Index: generated/googleapis/test/fusiontables/v1_test.dart
|
| diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart
|
| index b6f1a4af46cefc846a8038e902e88ebfe4d72191..3b5f814366635f0289c73996a4978b8b3642b49e 100644
|
| --- a/generated/googleapis/test/fusiontables/v1_test.dart
|
| +++ b/generated/googleapis/test/fusiontables/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/fusiontables/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 buildCounterBucket = 0;
|
| buildBucket() {
|
| @@ -97,14 +132,14 @@ checkColumn(api.Column o) {
|
| buildCounterColumn--;
|
| }
|
|
|
| -buildUnnamed1434() {
|
| +buildUnnamed1031() {
|
| var o = new core.List<api.Column>();
|
| o.add(buildColumn());
|
| o.add(buildColumn());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1434(core.List<api.Column> o) {
|
| +checkUnnamed1031(core.List<api.Column> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkColumn(o[0]);
|
| checkColumn(o[1]);
|
| @@ -115,7 +150,7 @@ buildColumnList() {
|
| var o = new api.ColumnList();
|
| buildCounterColumnList++;
|
| if (buildCounterColumnList < 3) {
|
| - o.items = buildUnnamed1434();
|
| + o.items = buildUnnamed1031();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.totalItems = 42;
|
| @@ -127,7 +162,7 @@ buildColumnList() {
|
| checkColumnList(api.ColumnList o) {
|
| buildCounterColumnList++;
|
| if (buildCounterColumnList < 3) {
|
| - checkUnnamed1434(o.items);
|
| + checkUnnamed1031(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalItems, unittest.equals(42));
|
| @@ -135,14 +170,14 @@ checkColumnList(api.ColumnList o) {
|
| buildCounterColumnList--;
|
| }
|
|
|
| -buildUnnamed1435() {
|
| +buildUnnamed1032() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed1435(core.List<core.Object> o) {
|
| +checkUnnamed1032(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| @@ -153,7 +188,7 @@ buildGeometry() {
|
| var o = new api.Geometry();
|
| buildCounterGeometry++;
|
| if (buildCounterGeometry < 3) {
|
| - o.geometries = buildUnnamed1435();
|
| + o.geometries = buildUnnamed1032();
|
| o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o.type = "foo";
|
| }
|
| @@ -164,7 +199,7 @@ buildGeometry() {
|
| checkGeometry(api.Geometry o) {
|
| buildCounterGeometry++;
|
| if (buildCounterGeometry < 3) {
|
| - checkUnnamed1435(o.geometries);
|
| + checkUnnamed1032(o.geometries);
|
| var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| @@ -192,30 +227,30 @@ checkImport(api.Import o) {
|
| buildCounterImport--;
|
| }
|
|
|
| -buildUnnamed1436() {
|
| +buildUnnamed1033() {
|
| var o = new core.List<core.double>();
|
| o.add(42.0);
|
| o.add(42.0);
|
| return o;
|
| }
|
|
|
| -checkUnnamed1436(core.List<core.double> o) {
|
| +checkUnnamed1033(core.List<core.double> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42.0));
|
| unittest.expect(o[1], unittest.equals(42.0));
|
| }
|
|
|
| -buildUnnamed1437() {
|
| +buildUnnamed1034() {
|
| var o = new core.List<core.List<core.double>>();
|
| - o.add(buildUnnamed1436());
|
| - o.add(buildUnnamed1436());
|
| + o.add(buildUnnamed1033());
|
| + o.add(buildUnnamed1033());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1437(core.List<core.List<core.double>> o) {
|
| +checkUnnamed1034(core.List<core.List<core.double>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1436(o[0]);
|
| - checkUnnamed1436(o[1]);
|
| + checkUnnamed1033(o[0]);
|
| + checkUnnamed1033(o[1]);
|
| }
|
|
|
| core.int buildCounterLine = 0;
|
| @@ -223,7 +258,7 @@ buildLine() {
|
| var o = new api.Line();
|
| buildCounterLine++;
|
| if (buildCounterLine < 3) {
|
| - o.coordinates = buildUnnamed1437();
|
| + o.coordinates = buildUnnamed1034();
|
| o.type = "foo";
|
| }
|
| buildCounterLine--;
|
| @@ -233,7 +268,7 @@ buildLine() {
|
| checkLine(api.Line o) {
|
| buildCounterLine++;
|
| if (buildCounterLine < 3) {
|
| - checkUnnamed1437(o.coordinates);
|
| + checkUnnamed1034(o.coordinates);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterLine--;
|
| @@ -266,14 +301,14 @@ checkLineStyle(api.LineStyle o) {
|
| buildCounterLineStyle--;
|
| }
|
|
|
| -buildUnnamed1438() {
|
| +buildUnnamed1035() {
|
| var o = new core.List<core.double>();
|
| o.add(42.0);
|
| o.add(42.0);
|
| return o;
|
| }
|
|
|
| -checkUnnamed1438(core.List<core.double> o) {
|
| +checkUnnamed1035(core.List<core.double> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42.0));
|
| unittest.expect(o[1], unittest.equals(42.0));
|
| @@ -284,7 +319,7 @@ buildPoint() {
|
| var o = new api.Point();
|
| buildCounterPoint++;
|
| if (buildCounterPoint < 3) {
|
| - o.coordinates = buildUnnamed1438();
|
| + o.coordinates = buildUnnamed1035();
|
| o.type = "foo";
|
| }
|
| buildCounterPoint--;
|
| @@ -294,7 +329,7 @@ buildPoint() {
|
| checkPoint(api.Point o) {
|
| buildCounterPoint++;
|
| if (buildCounterPoint < 3) {
|
| - checkUnnamed1438(o.coordinates);
|
| + checkUnnamed1035(o.coordinates);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterPoint--;
|
| @@ -321,43 +356,43 @@ checkPointStyle(api.PointStyle o) {
|
| buildCounterPointStyle--;
|
| }
|
|
|
| -buildUnnamed1439() {
|
| +buildUnnamed1036() {
|
| var o = new core.List<core.double>();
|
| o.add(42.0);
|
| o.add(42.0);
|
| return o;
|
| }
|
|
|
| -checkUnnamed1439(core.List<core.double> o) {
|
| +checkUnnamed1036(core.List<core.double> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42.0));
|
| unittest.expect(o[1], unittest.equals(42.0));
|
| }
|
|
|
| -buildUnnamed1440() {
|
| +buildUnnamed1037() {
|
| var o = new core.List<core.List<core.double>>();
|
| - o.add(buildUnnamed1439());
|
| - o.add(buildUnnamed1439());
|
| + o.add(buildUnnamed1036());
|
| + o.add(buildUnnamed1036());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1440(core.List<core.List<core.double>> o) {
|
| +checkUnnamed1037(core.List<core.List<core.double>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1439(o[0]);
|
| - checkUnnamed1439(o[1]);
|
| + checkUnnamed1036(o[0]);
|
| + checkUnnamed1036(o[1]);
|
| }
|
|
|
| -buildUnnamed1441() {
|
| +buildUnnamed1038() {
|
| var o = new core.List<core.List<core.List<core.double>>>();
|
| - o.add(buildUnnamed1440());
|
| - o.add(buildUnnamed1440());
|
| + o.add(buildUnnamed1037());
|
| + o.add(buildUnnamed1037());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1441(core.List<core.List<core.List<core.double>>> o) {
|
| +checkUnnamed1038(core.List<core.List<core.List<core.double>>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1440(o[0]);
|
| - checkUnnamed1440(o[1]);
|
| + checkUnnamed1037(o[0]);
|
| + checkUnnamed1037(o[1]);
|
| }
|
|
|
| core.int buildCounterPolygon = 0;
|
| @@ -365,7 +400,7 @@ buildPolygon() {
|
| var o = new api.Polygon();
|
| buildCounterPolygon++;
|
| if (buildCounterPolygon < 3) {
|
| - o.coordinates = buildUnnamed1441();
|
| + o.coordinates = buildUnnamed1038();
|
| o.type = "foo";
|
| }
|
| buildCounterPolygon--;
|
| @@ -375,7 +410,7 @@ buildPolygon() {
|
| checkPolygon(api.Polygon o) {
|
| buildCounterPolygon++;
|
| if (buildCounterPolygon < 3) {
|
| - checkUnnamed1441(o.coordinates);
|
| + checkUnnamed1038(o.coordinates);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterPolygon--;
|
| @@ -414,43 +449,43 @@ checkPolygonStyle(api.PolygonStyle o) {
|
| buildCounterPolygonStyle--;
|
| }
|
|
|
| -buildUnnamed1442() {
|
| +buildUnnamed1039() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1442(core.List<core.String> o) {
|
| +checkUnnamed1039(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'));
|
| }
|
|
|
| -buildUnnamed1443() {
|
| +buildUnnamed1040() {
|
| var o = new core.List<core.Object>();
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
|
| return o;
|
| }
|
|
|
| -checkUnnamed1443(core.List<core.Object> o) {
|
| +checkUnnamed1040(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1444() {
|
| +buildUnnamed1041() {
|
| var o = new core.List<core.List<core.Object>>();
|
| - o.add(buildUnnamed1443());
|
| - o.add(buildUnnamed1443());
|
| + o.add(buildUnnamed1040());
|
| + o.add(buildUnnamed1040());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1444(core.List<core.List<core.Object>> o) {
|
| +checkUnnamed1041(core.List<core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1443(o[0]);
|
| - checkUnnamed1443(o[1]);
|
| + checkUnnamed1040(o[0]);
|
| + checkUnnamed1040(o[1]);
|
| }
|
|
|
| core.int buildCounterSqlresponse = 0;
|
| @@ -458,9 +493,9 @@ buildSqlresponse() {
|
| var o = new api.Sqlresponse();
|
| buildCounterSqlresponse++;
|
| if (buildCounterSqlresponse < 3) {
|
| - o.columns = buildUnnamed1442();
|
| + o.columns = buildUnnamed1039();
|
| o.kind = "foo";
|
| - o.rows = buildUnnamed1444();
|
| + o.rows = buildUnnamed1041();
|
| }
|
| buildCounterSqlresponse--;
|
| return o;
|
| @@ -469,21 +504,21 @@ buildSqlresponse() {
|
| checkSqlresponse(api.Sqlresponse o) {
|
| buildCounterSqlresponse++;
|
| if (buildCounterSqlresponse < 3) {
|
| - checkUnnamed1442(o.columns);
|
| + checkUnnamed1039(o.columns);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1444(o.rows);
|
| + checkUnnamed1041(o.rows);
|
| }
|
| buildCounterSqlresponse--;
|
| }
|
|
|
| -buildUnnamed1445() {
|
| +buildUnnamed1042() {
|
| var o = new core.List<api.Bucket>();
|
| o.add(buildBucket());
|
| o.add(buildBucket());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1445(core.List<api.Bucket> o) {
|
| +checkUnnamed1042(core.List<api.Bucket> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBucket(o[0]);
|
| checkBucket(o[1]);
|
| @@ -510,14 +545,14 @@ checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) {
|
| buildCounterStyleFunctionGradientColors--;
|
| }
|
|
|
| -buildUnnamed1446() {
|
| +buildUnnamed1043() {
|
| var o = new core.List<api.StyleFunctionGradientColors>();
|
| o.add(buildStyleFunctionGradientColors());
|
| o.add(buildStyleFunctionGradientColors());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1446(core.List<api.StyleFunctionGradientColors> o) {
|
| +checkUnnamed1043(core.List<api.StyleFunctionGradientColors> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkStyleFunctionGradientColors(o[0]);
|
| checkStyleFunctionGradientColors(o[1]);
|
| @@ -528,7 +563,7 @@ buildStyleFunctionGradient() {
|
| var o = new api.StyleFunctionGradient();
|
| buildCounterStyleFunctionGradient++;
|
| if (buildCounterStyleFunctionGradient < 3) {
|
| - o.colors = buildUnnamed1446();
|
| + o.colors = buildUnnamed1043();
|
| o.max = 42.0;
|
| o.min = 42.0;
|
| }
|
| @@ -539,7 +574,7 @@ buildStyleFunctionGradient() {
|
| checkStyleFunctionGradient(api.StyleFunctionGradient o) {
|
| buildCounterStyleFunctionGradient++;
|
| if (buildCounterStyleFunctionGradient < 3) {
|
| - checkUnnamed1446(o.colors);
|
| + checkUnnamed1043(o.colors);
|
| unittest.expect(o.max, unittest.equals(42.0));
|
| unittest.expect(o.min, unittest.equals(42.0));
|
| }
|
| @@ -551,7 +586,7 @@ buildStyleFunction() {
|
| var o = new api.StyleFunction();
|
| buildCounterStyleFunction++;
|
| if (buildCounterStyleFunction < 3) {
|
| - o.buckets = buildUnnamed1445();
|
| + o.buckets = buildUnnamed1042();
|
| o.columnName = "foo";
|
| o.gradient = buildStyleFunctionGradient();
|
| o.kind = "foo";
|
| @@ -563,7 +598,7 @@ buildStyleFunction() {
|
| checkStyleFunction(api.StyleFunction o) {
|
| buildCounterStyleFunction++;
|
| if (buildCounterStyleFunction < 3) {
|
| - checkUnnamed1445(o.buckets);
|
| + checkUnnamed1042(o.buckets);
|
| unittest.expect(o.columnName, unittest.equals('foo'));
|
| checkStyleFunctionGradient(o.gradient);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -602,14 +637,14 @@ checkStyleSetting(api.StyleSetting o) {
|
| buildCounterStyleSetting--;
|
| }
|
|
|
| -buildUnnamed1447() {
|
| +buildUnnamed1044() {
|
| var o = new core.List<api.StyleSetting>();
|
| o.add(buildStyleSetting());
|
| o.add(buildStyleSetting());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1447(core.List<api.StyleSetting> o) {
|
| +checkUnnamed1044(core.List<api.StyleSetting> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkStyleSetting(o[0]);
|
| checkStyleSetting(o[1]);
|
| @@ -620,7 +655,7 @@ buildStyleSettingList() {
|
| var o = new api.StyleSettingList();
|
| buildCounterStyleSettingList++;
|
| if (buildCounterStyleSettingList < 3) {
|
| - o.items = buildUnnamed1447();
|
| + o.items = buildUnnamed1044();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.totalItems = 42;
|
| @@ -632,7 +667,7 @@ buildStyleSettingList() {
|
| checkStyleSettingList(api.StyleSettingList o) {
|
| buildCounterStyleSettingList++;
|
| if (buildCounterStyleSettingList < 3) {
|
| - checkUnnamed1447(o.items);
|
| + checkUnnamed1044(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalItems, unittest.equals(42));
|
| @@ -640,27 +675,27 @@ checkStyleSettingList(api.StyleSettingList o) {
|
| buildCounterStyleSettingList--;
|
| }
|
|
|
| -buildUnnamed1448() {
|
| +buildUnnamed1045() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1448(core.List<core.String> o) {
|
| +checkUnnamed1045(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'));
|
| }
|
|
|
| -buildUnnamed1449() {
|
| +buildUnnamed1046() {
|
| var o = new core.List<api.Column>();
|
| o.add(buildColumn());
|
| o.add(buildColumn());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1449(core.List<api.Column> o) {
|
| +checkUnnamed1046(core.List<api.Column> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkColumn(o[0]);
|
| checkColumn(o[1]);
|
| @@ -673,8 +708,8 @@ buildTable() {
|
| if (buildCounterTable < 3) {
|
| o.attribution = "foo";
|
| o.attributionLink = "foo";
|
| - o.baseTableIds = buildUnnamed1448();
|
| - o.columns = buildUnnamed1449();
|
| + o.baseTableIds = buildUnnamed1045();
|
| + o.columns = buildUnnamed1046();
|
| o.description = "foo";
|
| o.isExportable = true;
|
| o.kind = "foo";
|
| @@ -691,8 +726,8 @@ checkTable(api.Table o) {
|
| if (buildCounterTable < 3) {
|
| unittest.expect(o.attribution, unittest.equals('foo'));
|
| unittest.expect(o.attributionLink, unittest.equals('foo'));
|
| - checkUnnamed1448(o.baseTableIds);
|
| - checkUnnamed1449(o.columns);
|
| + checkUnnamed1045(o.baseTableIds);
|
| + checkUnnamed1046(o.columns);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.isExportable, unittest.isTrue);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| @@ -703,14 +738,14 @@ checkTable(api.Table o) {
|
| buildCounterTable--;
|
| }
|
|
|
| -buildUnnamed1450() {
|
| +buildUnnamed1047() {
|
| var o = new core.List<api.Table>();
|
| o.add(buildTable());
|
| o.add(buildTable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1450(core.List<api.Table> o) {
|
| +checkUnnamed1047(core.List<api.Table> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTable(o[0]);
|
| checkTable(o[1]);
|
| @@ -721,7 +756,7 @@ buildTableList() {
|
| var o = new api.TableList();
|
| buildCounterTableList++;
|
| if (buildCounterTableList < 3) {
|
| - o.items = buildUnnamed1450();
|
| + o.items = buildUnnamed1047();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -732,7 +767,7 @@ buildTableList() {
|
| checkTableList(api.TableList o) {
|
| buildCounterTableList++;
|
| if (buildCounterTableList < 3) {
|
| - checkUnnamed1450(o.items);
|
| + checkUnnamed1047(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| @@ -766,14 +801,14 @@ checkTask(api.Task o) {
|
| buildCounterTask--;
|
| }
|
|
|
| -buildUnnamed1451() {
|
| +buildUnnamed1048() {
|
| var o = new core.List<api.Task>();
|
| o.add(buildTask());
|
| o.add(buildTask());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1451(core.List<api.Task> o) {
|
| +checkUnnamed1048(core.List<api.Task> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTask(o[0]);
|
| checkTask(o[1]);
|
| @@ -784,7 +819,7 @@ buildTaskList() {
|
| var o = new api.TaskList();
|
| buildCounterTaskList++;
|
| if (buildCounterTaskList < 3) {
|
| - o.items = buildUnnamed1451();
|
| + o.items = buildUnnamed1048();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.totalItems = 42;
|
| @@ -796,7 +831,7 @@ buildTaskList() {
|
| checkTaskList(api.TaskList o) {
|
| buildCounterTaskList++;
|
| if (buildCounterTaskList < 3) {
|
| - checkUnnamed1451(o.items);
|
| + checkUnnamed1048(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalItems, unittest.equals(42));
|
| @@ -804,14 +839,14 @@ checkTaskList(api.TaskList o) {
|
| buildCounterTaskList--;
|
| }
|
|
|
| -buildUnnamed1452() {
|
| +buildUnnamed1049() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1452(core.List<core.String> o) {
|
| +checkUnnamed1049(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'));
|
| @@ -822,7 +857,7 @@ buildTemplate() {
|
| var o = new api.Template();
|
| buildCounterTemplate++;
|
| if (buildCounterTemplate < 3) {
|
| - o.automaticColumnNames = buildUnnamed1452();
|
| + o.automaticColumnNames = buildUnnamed1049();
|
| o.body = "foo";
|
| o.kind = "foo";
|
| o.name = "foo";
|
| @@ -836,7 +871,7 @@ buildTemplate() {
|
| checkTemplate(api.Template o) {
|
| buildCounterTemplate++;
|
| if (buildCounterTemplate < 3) {
|
| - checkUnnamed1452(o.automaticColumnNames);
|
| + checkUnnamed1049(o.automaticColumnNames);
|
| unittest.expect(o.body, unittest.equals('foo'));
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -846,14 +881,14 @@ checkTemplate(api.Template o) {
|
| buildCounterTemplate--;
|
| }
|
|
|
| -buildUnnamed1453() {
|
| +buildUnnamed1050() {
|
| var o = new core.List<api.Template>();
|
| o.add(buildTemplate());
|
| o.add(buildTemplate());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1453(core.List<api.Template> o) {
|
| +checkUnnamed1050(core.List<api.Template> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTemplate(o[0]);
|
| checkTemplate(o[1]);
|
| @@ -864,7 +899,7 @@ buildTemplateList() {
|
| var o = new api.TemplateList();
|
| buildCounterTemplateList++;
|
| if (buildCounterTemplateList < 3) {
|
| - o.items = buildUnnamed1453();
|
| + o.items = buildUnnamed1050();
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.totalItems = 42;
|
| @@ -876,7 +911,7 @@ buildTemplateList() {
|
| checkTemplateList(api.TemplateList o) {
|
| buildCounterTemplateList++;
|
| if (buildCounterTemplateList < 3) {
|
| - checkUnnamed1453(o.items);
|
| + checkUnnamed1050(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalItems, unittest.equals(42));
|
| @@ -1105,7 +1140,7 @@ main() {
|
| unittest.group("resource-ColumnResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_tableId = "foo";
|
| var arg_columnId = "foo";
|
| @@ -1153,14 +1188,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_tableId, arg_columnId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_tableId = "foo";
|
| var arg_columnId = "foo";
|
| @@ -1208,7 +1243,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumn());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) {
|
| checkColumn(response);
|
| @@ -1217,7 +1252,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_request = buildColumn();
|
| var arg_tableId = "foo";
|
| @@ -1265,7 +1300,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumn());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Column response) {
|
| checkColumn(response);
|
| @@ -1274,7 +1309,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_tableId = "foo";
|
| var arg_maxResults = 42;
|
| @@ -1322,7 +1357,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumnList());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ColumnList response) {
|
| checkColumnList(response);
|
| @@ -1331,7 +1366,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_request = buildColumn();
|
| var arg_tableId = "foo";
|
| @@ -1383,7 +1418,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumn());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) {
|
| checkColumn(response);
|
| @@ -1392,7 +1427,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
|
| var arg_request = buildColumn();
|
| var arg_tableId = "foo";
|
| @@ -1444,7 +1479,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildColumn());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_tableId, arg_columnId).then(unittest.expectAsync(((api.Column response) {
|
| checkColumn(response);
|
| @@ -1459,7 +1494,7 @@ main() {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.QueryResourceApi res = new api.FusiontablesApi(mock).query;
|
| var arg_sql_1 = "foo";
|
| var arg_hdrs = true;
|
| @@ -1501,7 +1536,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSqlresponse());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.sql(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) {
|
| checkSqlresponse(response);
|
| @@ -1512,7 +1547,7 @@ main() {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.QueryResourceApi res = new api.FusiontablesApi(mock).query;
|
| var arg_sql_1 = "foo";
|
| var arg_hdrs = true;
|
| @@ -1554,7 +1589,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSqlresponse());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.sqlGet(arg_sql_1, hdrs: arg_hdrs, typed: arg_typed).then(unittest.expectAsync(((api.Sqlresponse response) {
|
| checkSqlresponse(response);
|
| @@ -1567,7 +1602,7 @@ main() {
|
| unittest.group("resource-StyleResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_tableId = "foo";
|
| var arg_styleId = 42;
|
| @@ -1615,14 +1650,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_tableId, arg_styleId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_tableId = "foo";
|
| var arg_styleId = 42;
|
| @@ -1670,7 +1705,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildStyleSetting());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) {
|
| checkStyleSetting(response);
|
| @@ -1679,7 +1714,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_request = buildStyleSetting();
|
| var arg_tableId = "foo";
|
| @@ -1727,7 +1762,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildStyleSetting());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.StyleSetting response) {
|
| checkStyleSetting(response);
|
| @@ -1736,7 +1771,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_tableId = "foo";
|
| var arg_maxResults = 42;
|
| @@ -1784,7 +1819,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildStyleSettingList());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.StyleSettingList response) {
|
| checkStyleSettingList(response);
|
| @@ -1793,7 +1828,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_request = buildStyleSetting();
|
| var arg_tableId = "foo";
|
| @@ -1845,7 +1880,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildStyleSetting());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) {
|
| checkStyleSetting(response);
|
| @@ -1854,7 +1889,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
|
| var arg_request = buildStyleSetting();
|
| var arg_tableId = "foo";
|
| @@ -1906,7 +1941,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildStyleSetting());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_tableId, arg_styleId).then(unittest.expectAsync(((api.StyleSetting response) {
|
| checkStyleSetting(response);
|
| @@ -1919,7 +1954,7 @@ main() {
|
| unittest.group("resource-TableResourceApi", () {
|
| unittest.test("method--copy", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_tableId = "foo";
|
| var arg_copyPresentation = true;
|
| @@ -1965,7 +2000,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.copy(arg_tableId, copyPresentation: arg_copyPresentation).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -1974,7 +2009,7 @@ main() {
|
|
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_tableId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -2014,14 +2049,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_tableId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_tableId = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -2061,7 +2096,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_tableId).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -2072,7 +2107,7 @@ main() {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_tableId = "foo";
|
| var arg_delimiter = "foo";
|
| @@ -2126,7 +2161,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildImport());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.importRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync(((api.Import response) {
|
| checkImport(response);
|
| @@ -2137,7 +2172,7 @@ main() {
|
| // TODO: Implement tests for media upload;
|
| // TODO: Implement tests for media download;
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_name = "foo";
|
| var arg_delimiter = "foo";
|
| @@ -2179,7 +2214,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.importTable(arg_name, delimiter: arg_delimiter, encoding: arg_encoding).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -2188,7 +2223,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_request = buildTable();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| @@ -2228,7 +2263,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -2237,7 +2272,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| @@ -2277,7 +2312,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTableList());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TableList response) {
|
| checkTableList(response);
|
| @@ -2286,7 +2321,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_request = buildTable();
|
| var arg_tableId = "foo";
|
| @@ -2332,7 +2367,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -2341,7 +2376,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TableResourceApi res = new api.FusiontablesApi(mock).table;
|
| var arg_request = buildTable();
|
| var arg_tableId = "foo";
|
| @@ -2387,7 +2422,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTable());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_tableId, replaceViewDefinition: arg_replaceViewDefinition).then(unittest.expectAsync(((api.Table response) {
|
| checkTable(response);
|
| @@ -2400,7 +2435,7 @@ main() {
|
| unittest.group("resource-TaskResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TaskResourceApi res = new api.FusiontablesApi(mock).task;
|
| var arg_tableId = "foo";
|
| var arg_taskId = "foo";
|
| @@ -2448,14 +2483,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_tableId, arg_taskId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TaskResourceApi res = new api.FusiontablesApi(mock).task;
|
| var arg_tableId = "foo";
|
| var arg_taskId = "foo";
|
| @@ -2503,7 +2538,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTask());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_tableId, arg_taskId).then(unittest.expectAsync(((api.Task response) {
|
| checkTask(response);
|
| @@ -2512,7 +2547,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TaskResourceApi res = new api.FusiontablesApi(mock).task;
|
| var arg_tableId = "foo";
|
| var arg_maxResults = 42;
|
| @@ -2562,7 +2597,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTaskList());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expectAsync(((api.TaskList response) {
|
| checkTaskList(response);
|
| @@ -2575,7 +2610,7 @@ main() {
|
| unittest.group("resource-TemplateResourceApi", () {
|
| unittest.test("method--delete", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_tableId = "foo";
|
| var arg_templateId = 42;
|
| @@ -2623,14 +2658,14 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = "";
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.delete(arg_tableId, arg_templateId).then(unittest.expectAsync((_) {}));
|
| });
|
|
|
| unittest.test("method--get", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_tableId = "foo";
|
| var arg_templateId = 42;
|
| @@ -2678,7 +2713,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTemplate());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.get(arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) {
|
| checkTemplate(response);
|
| @@ -2687,7 +2722,7 @@ main() {
|
|
|
| unittest.test("method--insert", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_request = buildTemplate();
|
| var arg_tableId = "foo";
|
| @@ -2735,7 +2770,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTemplate());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.insert(arg_request, arg_tableId).then(unittest.expectAsync(((api.Template response) {
|
| checkTemplate(response);
|
| @@ -2744,7 +2779,7 @@ main() {
|
|
|
| unittest.test("method--list", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_tableId = "foo";
|
| var arg_maxResults = 42;
|
| @@ -2792,7 +2827,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTemplateList());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.list(arg_tableId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TemplateList response) {
|
| checkTemplateList(response);
|
| @@ -2801,7 +2836,7 @@ main() {
|
|
|
| unittest.test("method--patch", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_request = buildTemplate();
|
| var arg_tableId = "foo";
|
| @@ -2853,7 +2888,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTemplate());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.patch(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) {
|
| checkTemplate(response);
|
| @@ -2862,7 +2897,7 @@ main() {
|
|
|
| unittest.test("method--update", () {
|
|
|
| - var mock = new common_test.HttpServerMock();
|
| + var mock = new HttpServerMock();
|
| api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
|
| var arg_request = buildTemplate();
|
| var arg_tableId = "foo";
|
| @@ -2914,7 +2949,7 @@ main() {
|
| "content-type" : "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTemplate());
|
| - return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectAsync(((api.Template response) {
|
| checkTemplate(response);
|
|
|