Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: generated/googleapis/test/fusiontables/v2_test.dart

Issue 798373003: Api roll 8: 2014-12-15 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/test/fusiontables/v1_test.dart ('k') | generated/googleapis/test/games/v1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/test/fusiontables/v2_test.dart
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v2_test.dart
similarity index 92%
copy from generated/googleapis/test/fusiontables/v1_test.dart
copy to generated/googleapis/test/fusiontables/v2_test.dart
index af86f4be83b513010fdc2dcfe7198f23c52ea626..98c873e9f043a15c74f01c4ce56a7dbebd9db685 100644
--- a/generated/googleapis/test/fusiontables/v1_test.dart
+++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -1,4 +1,4 @@
-library googleapis.fusiontables.v1.test;
+library googleapis.fusiontables.v2.test;
import "dart:core" as core;
import "dart:collection" as collection;
@@ -12,7 +12,7 @@ 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;
+import 'package:googleapis/fusiontables/v2.dart' as api;
@@ -66,6 +66,19 @@ checkColumnBaseColumn(api.ColumnBaseColumn o) {
buildCounterColumnBaseColumn--;
}
+buildUnnamed338() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed338(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 buildCounterColumn = 0;
buildColumn() {
var o = new api.Column();
@@ -73,11 +86,16 @@ buildColumn() {
if (buildCounterColumn < 3) {
o.baseColumn = buildColumnBaseColumn();
o.columnId = 42;
+ o.columnJsonSchema = "foo";
+ o.columnPropertiesJson = "foo";
o.description = "foo";
+ o.formatPattern = "foo";
o.graphPredicate = "foo";
o.kind = "foo";
o.name = "foo";
o.type = "foo";
+ o.validValues = buildUnnamed338();
+ o.validateData = true;
}
buildCounterColumn--;
return o;
@@ -88,23 +106,28 @@ checkColumn(api.Column o) {
if (buildCounterColumn < 3) {
checkColumnBaseColumn(o.baseColumn);
unittest.expect(o.columnId, unittest.equals(42));
+ unittest.expect(o.columnJsonSchema, unittest.equals('foo'));
+ unittest.expect(o.columnPropertiesJson, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
+ unittest.expect(o.formatPattern, unittest.equals('foo'));
unittest.expect(o.graphPredicate, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.type, unittest.equals('foo'));
+ checkUnnamed338(o.validValues);
+ unittest.expect(o.validateData, unittest.isTrue);
}
buildCounterColumn--;
}
-buildUnnamed778() {
+buildUnnamed339() {
var o = new core.List<api.Column>();
o.add(buildColumn());
o.add(buildColumn());
return o;
}
-checkUnnamed778(core.List<api.Column> o) {
+checkUnnamed339(core.List<api.Column> o) {
unittest.expect(o, unittest.hasLength(2));
checkColumn(o[0]);
checkColumn(o[1]);
@@ -115,7 +138,7 @@ buildColumnList() {
var o = new api.ColumnList();
buildCounterColumnList++;
if (buildCounterColumnList < 3) {
- o.items = buildUnnamed778();
+ o.items = buildUnnamed339();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -127,7 +150,7 @@ buildColumnList() {
checkColumnList(api.ColumnList o) {
buildCounterColumnList++;
if (buildCounterColumnList < 3) {
- checkUnnamed778(o.items);
+ checkUnnamed339(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 +158,14 @@ checkColumnList(api.ColumnList o) {
buildCounterColumnList--;
}
-buildUnnamed779() {
+buildUnnamed340() {
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;
}
-checkUnnamed779(core.List<core.Object> o) {
+checkUnnamed340(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 +176,7 @@ buildGeometry() {
var o = new api.Geometry();
buildCounterGeometry++;
if (buildCounterGeometry < 3) {
- o.geometries = buildUnnamed779();
+ o.geometries = buildUnnamed340();
o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o.type = "foo";
}
@@ -164,7 +187,7 @@ buildGeometry() {
checkGeometry(api.Geometry o) {
buildCounterGeometry++;
if (buildCounterGeometry < 3) {
- checkUnnamed779(o.geometries);
+ checkUnnamed340(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 +215,30 @@ checkImport(api.Import o) {
buildCounterImport--;
}
-buildUnnamed780() {
+buildUnnamed341() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed780(core.List<core.double> o) {
+checkUnnamed341(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));
}
-buildUnnamed781() {
+buildUnnamed342() {
var o = new core.List<core.List<core.double>>();
- o.add(buildUnnamed780());
- o.add(buildUnnamed780());
+ o.add(buildUnnamed341());
+ o.add(buildUnnamed341());
return o;
}
-checkUnnamed781(core.List<core.List<core.double>> o) {
+checkUnnamed342(core.List<core.List<core.double>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed780(o[0]);
- checkUnnamed780(o[1]);
+ checkUnnamed341(o[0]);
+ checkUnnamed341(o[1]);
}
core.int buildCounterLine = 0;
@@ -223,7 +246,7 @@ buildLine() {
var o = new api.Line();
buildCounterLine++;
if (buildCounterLine < 3) {
- o.coordinates = buildUnnamed781();
+ o.coordinates = buildUnnamed342();
o.type = "foo";
}
buildCounterLine--;
@@ -233,7 +256,7 @@ buildLine() {
checkLine(api.Line o) {
buildCounterLine++;
if (buildCounterLine < 3) {
- checkUnnamed781(o.coordinates);
+ checkUnnamed342(o.coordinates);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterLine--;
@@ -266,14 +289,14 @@ checkLineStyle(api.LineStyle o) {
buildCounterLineStyle--;
}
-buildUnnamed782() {
+buildUnnamed343() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed782(core.List<core.double> o) {
+checkUnnamed343(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 +307,7 @@ buildPoint() {
var o = new api.Point();
buildCounterPoint++;
if (buildCounterPoint < 3) {
- o.coordinates = buildUnnamed782();
+ o.coordinates = buildUnnamed343();
o.type = "foo";
}
buildCounterPoint--;
@@ -294,7 +317,7 @@ buildPoint() {
checkPoint(api.Point o) {
buildCounterPoint++;
if (buildCounterPoint < 3) {
- checkUnnamed782(o.coordinates);
+ checkUnnamed343(o.coordinates);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterPoint--;
@@ -321,43 +344,43 @@ checkPointStyle(api.PointStyle o) {
buildCounterPointStyle--;
}
-buildUnnamed783() {
+buildUnnamed344() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed783(core.List<core.double> o) {
+checkUnnamed344(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));
}
-buildUnnamed784() {
+buildUnnamed345() {
var o = new core.List<core.List<core.double>>();
- o.add(buildUnnamed783());
- o.add(buildUnnamed783());
+ o.add(buildUnnamed344());
+ o.add(buildUnnamed344());
return o;
}
-checkUnnamed784(core.List<core.List<core.double>> o) {
+checkUnnamed345(core.List<core.List<core.double>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed783(o[0]);
- checkUnnamed783(o[1]);
+ checkUnnamed344(o[0]);
+ checkUnnamed344(o[1]);
}
-buildUnnamed785() {
+buildUnnamed346() {
var o = new core.List<core.List<core.List<core.double>>>();
- o.add(buildUnnamed784());
- o.add(buildUnnamed784());
+ o.add(buildUnnamed345());
+ o.add(buildUnnamed345());
return o;
}
-checkUnnamed785(core.List<core.List<core.List<core.double>>> o) {
+checkUnnamed346(core.List<core.List<core.List<core.double>>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed784(o[0]);
- checkUnnamed784(o[1]);
+ checkUnnamed345(o[0]);
+ checkUnnamed345(o[1]);
}
core.int buildCounterPolygon = 0;
@@ -365,7 +388,7 @@ buildPolygon() {
var o = new api.Polygon();
buildCounterPolygon++;
if (buildCounterPolygon < 3) {
- o.coordinates = buildUnnamed785();
+ o.coordinates = buildUnnamed346();
o.type = "foo";
}
buildCounterPolygon--;
@@ -375,7 +398,7 @@ buildPolygon() {
checkPolygon(api.Polygon o) {
buildCounterPolygon++;
if (buildCounterPolygon < 3) {
- checkUnnamed785(o.coordinates);
+ checkUnnamed346(o.coordinates);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterPolygon--;
@@ -414,43 +437,43 @@ checkPolygonStyle(api.PolygonStyle o) {
buildCounterPolygonStyle--;
}
-buildUnnamed786() {
+buildUnnamed347() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed786(core.List<core.String> o) {
+checkUnnamed347(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'));
}
-buildUnnamed787() {
+buildUnnamed348() {
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;
}
-checkUnnamed787(core.List<core.Object> o) {
+checkUnnamed348(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'));
}
-buildUnnamed788() {
+buildUnnamed349() {
var o = new core.List<core.List<core.Object>>();
- o.add(buildUnnamed787());
- o.add(buildUnnamed787());
+ o.add(buildUnnamed348());
+ o.add(buildUnnamed348());
return o;
}
-checkUnnamed788(core.List<core.List<core.Object>> o) {
+checkUnnamed349(core.List<core.List<core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed787(o[0]);
- checkUnnamed787(o[1]);
+ checkUnnamed348(o[0]);
+ checkUnnamed348(o[1]);
}
core.int buildCounterSqlresponse = 0;
@@ -458,9 +481,9 @@ buildSqlresponse() {
var o = new api.Sqlresponse();
buildCounterSqlresponse++;
if (buildCounterSqlresponse < 3) {
- o.columns = buildUnnamed786();
+ o.columns = buildUnnamed347();
o.kind = "foo";
- o.rows = buildUnnamed788();
+ o.rows = buildUnnamed349();
}
buildCounterSqlresponse--;
return o;
@@ -469,21 +492,21 @@ buildSqlresponse() {
checkSqlresponse(api.Sqlresponse o) {
buildCounterSqlresponse++;
if (buildCounterSqlresponse < 3) {
- checkUnnamed786(o.columns);
+ checkUnnamed347(o.columns);
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed788(o.rows);
+ checkUnnamed349(o.rows);
}
buildCounterSqlresponse--;
}
-buildUnnamed789() {
+buildUnnamed350() {
var o = new core.List<api.Bucket>();
o.add(buildBucket());
o.add(buildBucket());
return o;
}
-checkUnnamed789(core.List<api.Bucket> o) {
+checkUnnamed350(core.List<api.Bucket> o) {
unittest.expect(o, unittest.hasLength(2));
checkBucket(o[0]);
checkBucket(o[1]);
@@ -510,14 +533,14 @@ checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) {
buildCounterStyleFunctionGradientColors--;
}
-buildUnnamed790() {
+buildUnnamed351() {
var o = new core.List<api.StyleFunctionGradientColors>();
o.add(buildStyleFunctionGradientColors());
o.add(buildStyleFunctionGradientColors());
return o;
}
-checkUnnamed790(core.List<api.StyleFunctionGradientColors> o) {
+checkUnnamed351(core.List<api.StyleFunctionGradientColors> o) {
unittest.expect(o, unittest.hasLength(2));
checkStyleFunctionGradientColors(o[0]);
checkStyleFunctionGradientColors(o[1]);
@@ -528,7 +551,7 @@ buildStyleFunctionGradient() {
var o = new api.StyleFunctionGradient();
buildCounterStyleFunctionGradient++;
if (buildCounterStyleFunctionGradient < 3) {
- o.colors = buildUnnamed790();
+ o.colors = buildUnnamed351();
o.max = 42.0;
o.min = 42.0;
}
@@ -539,7 +562,7 @@ buildStyleFunctionGradient() {
checkStyleFunctionGradient(api.StyleFunctionGradient o) {
buildCounterStyleFunctionGradient++;
if (buildCounterStyleFunctionGradient < 3) {
- checkUnnamed790(o.colors);
+ checkUnnamed351(o.colors);
unittest.expect(o.max, unittest.equals(42.0));
unittest.expect(o.min, unittest.equals(42.0));
}
@@ -551,7 +574,7 @@ buildStyleFunction() {
var o = new api.StyleFunction();
buildCounterStyleFunction++;
if (buildCounterStyleFunction < 3) {
- o.buckets = buildUnnamed789();
+ o.buckets = buildUnnamed350();
o.columnName = "foo";
o.gradient = buildStyleFunctionGradient();
o.kind = "foo";
@@ -563,7 +586,7 @@ buildStyleFunction() {
checkStyleFunction(api.StyleFunction o) {
buildCounterStyleFunction++;
if (buildCounterStyleFunction < 3) {
- checkUnnamed789(o.buckets);
+ checkUnnamed350(o.buckets);
unittest.expect(o.columnName, unittest.equals('foo'));
checkStyleFunctionGradient(o.gradient);
unittest.expect(o.kind, unittest.equals('foo'));
@@ -602,14 +625,14 @@ checkStyleSetting(api.StyleSetting o) {
buildCounterStyleSetting--;
}
-buildUnnamed791() {
+buildUnnamed352() {
var o = new core.List<api.StyleSetting>();
o.add(buildStyleSetting());
o.add(buildStyleSetting());
return o;
}
-checkUnnamed791(core.List<api.StyleSetting> o) {
+checkUnnamed352(core.List<api.StyleSetting> o) {
unittest.expect(o, unittest.hasLength(2));
checkStyleSetting(o[0]);
checkStyleSetting(o[1]);
@@ -620,7 +643,7 @@ buildStyleSettingList() {
var o = new api.StyleSettingList();
buildCounterStyleSettingList++;
if (buildCounterStyleSettingList < 3) {
- o.items = buildUnnamed791();
+ o.items = buildUnnamed352();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -632,7 +655,7 @@ buildStyleSettingList() {
checkStyleSettingList(api.StyleSettingList o) {
buildCounterStyleSettingList++;
if (buildCounterStyleSettingList < 3) {
- checkUnnamed791(o.items);
+ checkUnnamed352(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 +663,27 @@ checkStyleSettingList(api.StyleSettingList o) {
buildCounterStyleSettingList--;
}
-buildUnnamed792() {
+buildUnnamed353() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed792(core.List<core.String> o) {
+checkUnnamed353(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'));
}
-buildUnnamed793() {
+buildUnnamed354() {
var o = new core.List<api.Column>();
o.add(buildColumn());
o.add(buildColumn());
return o;
}
-checkUnnamed793(core.List<api.Column> o) {
+checkUnnamed354(core.List<api.Column> o) {
unittest.expect(o, unittest.hasLength(2));
checkColumn(o[0]);
checkColumn(o[1]);
@@ -673,14 +696,17 @@ buildTable() {
if (buildCounterTable < 3) {
o.attribution = "foo";
o.attributionLink = "foo";
- o.baseTableIds = buildUnnamed792();
- o.columns = buildUnnamed793();
+ o.baseTableIds = buildUnnamed353();
+ o.columnPropertiesJsonSchema = "foo";
+ o.columns = buildUnnamed354();
o.description = "foo";
o.isExportable = true;
o.kind = "foo";
o.name = "foo";
o.sql = "foo";
o.tableId = "foo";
+ o.tablePropertiesJson = "foo";
+ o.tablePropertiesJsonSchema = "foo";
}
buildCounterTable--;
return o;
@@ -691,26 +717,29 @@ checkTable(api.Table o) {
if (buildCounterTable < 3) {
unittest.expect(o.attribution, unittest.equals('foo'));
unittest.expect(o.attributionLink, unittest.equals('foo'));
- checkUnnamed792(o.baseTableIds);
- checkUnnamed793(o.columns);
+ checkUnnamed353(o.baseTableIds);
+ unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo'));
+ checkUnnamed354(o.columns);
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.isExportable, unittest.isTrue);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.sql, unittest.equals('foo'));
unittest.expect(o.tableId, unittest.equals('foo'));
+ unittest.expect(o.tablePropertiesJson, unittest.equals('foo'));
+ unittest.expect(o.tablePropertiesJsonSchema, unittest.equals('foo'));
}
buildCounterTable--;
}
-buildUnnamed794() {
+buildUnnamed355() {
var o = new core.List<api.Table>();
o.add(buildTable());
o.add(buildTable());
return o;
}
-checkUnnamed794(core.List<api.Table> o) {
+checkUnnamed355(core.List<api.Table> o) {
unittest.expect(o, unittest.hasLength(2));
checkTable(o[0]);
checkTable(o[1]);
@@ -721,7 +750,7 @@ buildTableList() {
var o = new api.TableList();
buildCounterTableList++;
if (buildCounterTableList < 3) {
- o.items = buildUnnamed794();
+ o.items = buildUnnamed355();
o.kind = "foo";
o.nextPageToken = "foo";
}
@@ -732,7 +761,7 @@ buildTableList() {
checkTableList(api.TableList o) {
buildCounterTableList++;
if (buildCounterTableList < 3) {
- checkUnnamed794(o.items);
+ checkUnnamed355(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
@@ -766,14 +795,14 @@ checkTask(api.Task o) {
buildCounterTask--;
}
-buildUnnamed795() {
+buildUnnamed356() {
var o = new core.List<api.Task>();
o.add(buildTask());
o.add(buildTask());
return o;
}
-checkUnnamed795(core.List<api.Task> o) {
+checkUnnamed356(core.List<api.Task> o) {
unittest.expect(o, unittest.hasLength(2));
checkTask(o[0]);
checkTask(o[1]);
@@ -784,7 +813,7 @@ buildTaskList() {
var o = new api.TaskList();
buildCounterTaskList++;
if (buildCounterTaskList < 3) {
- o.items = buildUnnamed795();
+ o.items = buildUnnamed356();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -796,7 +825,7 @@ buildTaskList() {
checkTaskList(api.TaskList o) {
buildCounterTaskList++;
if (buildCounterTaskList < 3) {
- checkUnnamed795(o.items);
+ checkUnnamed356(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 +833,14 @@ checkTaskList(api.TaskList o) {
buildCounterTaskList--;
}
-buildUnnamed796() {
+buildUnnamed357() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed796(core.List<core.String> o) {
+checkUnnamed357(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 +851,7 @@ buildTemplate() {
var o = new api.Template();
buildCounterTemplate++;
if (buildCounterTemplate < 3) {
- o.automaticColumnNames = buildUnnamed796();
+ o.automaticColumnNames = buildUnnamed357();
o.body = "foo";
o.kind = "foo";
o.name = "foo";
@@ -836,7 +865,7 @@ buildTemplate() {
checkTemplate(api.Template o) {
buildCounterTemplate++;
if (buildCounterTemplate < 3) {
- checkUnnamed796(o.automaticColumnNames);
+ checkUnnamed357(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 +875,14 @@ checkTemplate(api.Template o) {
buildCounterTemplate--;
}
-buildUnnamed797() {
+buildUnnamed358() {
var o = new core.List<api.Template>();
o.add(buildTemplate());
o.add(buildTemplate());
return o;
}
-checkUnnamed797(core.List<api.Template> o) {
+checkUnnamed358(core.List<api.Template> o) {
unittest.expect(o, unittest.hasLength(2));
checkTemplate(o[0]);
checkTemplate(o[1]);
@@ -864,7 +893,7 @@ buildTemplateList() {
var o = new api.TemplateList();
buildCounterTemplateList++;
if (buildCounterTemplateList < 3) {
- o.items = buildUnnamed797();
+ o.items = buildUnnamed358();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -876,7 +905,7 @@ buildTemplateList() {
checkTemplateList(api.TemplateList o) {
buildCounterTemplateList++;
if (buildCounterTemplateList < 3) {
- checkUnnamed797(o.items);
+ checkUnnamed358(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
@@ -1116,7 +1145,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1171,7 +1200,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1231,7 +1260,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1286,7 +1315,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1346,7 +1375,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1407,7 +1436,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1471,7 +1500,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("query"));
pathOffset += 5;
@@ -1524,7 +1553,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("query"));
pathOffset += 5;
@@ -1578,7 +1607,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1633,7 +1662,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1693,7 +1722,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1748,7 +1777,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1808,7 +1837,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1869,7 +1898,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1930,7 +1959,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -1984,7 +2013,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2031,7 +2060,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2087,7 +2116,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2149,7 +2178,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("tables/import"));
pathOffset += 13;
@@ -2201,7 +2230,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("tables"));
pathOffset += 6;
@@ -2248,7 +2277,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("tables"));
pathOffset += 6;
@@ -2301,7 +2330,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2339,6 +2368,71 @@ main() {
})));
});
+ unittest.test("method--replaceRows", () {
+ // TODO: Implement tests for media upload;
+ // TODO: Implement tests for media download;
+
+ var mock = new common_test.HttpServerMock();
+ api.TableResourceApi res = new api.FusiontablesApi(mock).table;
+ var arg_tableId = "foo";
+ var arg_delimiter = "foo";
+ var arg_encoding = "foo";
+ var arg_endLine = 42;
+ var arg_isStrict = true;
+ var arg_startLine = 42;
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
+ pathOffset += 16;
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
+ pathOffset += 7;
+ index = path.indexOf("/replace", pathOffset);
+ unittest.expect(index >= 0, unittest.isTrue);
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
+ pathOffset = index;
+ unittest.expect(subPart, unittest.equals("$arg_tableId"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/replace"));
+ pathOffset += 8;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["delimiter"].first, unittest.equals(arg_delimiter));
+ unittest.expect(queryMap["encoding"].first, unittest.equals(arg_encoding));
+ unittest.expect(core.int.parse(queryMap["endLine"].first), unittest.equals(arg_endLine));
+ unittest.expect(queryMap["isStrict"].first, unittest.equals("$arg_isStrict"));
+ unittest.expect(core.int.parse(queryMap["startLine"].first), unittest.equals(arg_startLine));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildTask());
+ return new async.Future.value(common_test.stringResponse(200, h, resp));
+ }), true);
+ res.replaceRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encoding, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).then(unittest.expectAsync(((api.Task response) {
+ checkTask(response);
+ })));
+ });
+
unittest.test("method--update", () {
var mock = new common_test.HttpServerMock();
@@ -2356,7 +2450,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2411,7 +2505,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2466,7 +2560,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2525,7 +2619,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2586,7 +2680,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2641,7 +2735,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2701,7 +2795,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2756,7 +2850,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2816,7 +2910,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
@@ -2877,7 +2971,7 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v1/"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("fusiontables/v2/"));
pathOffset += 16;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("tables/"));
pathOffset += 7;
« no previous file with comments | « generated/googleapis/test/fusiontables/v1_test.dart ('k') | generated/googleapis/test/games/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698