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

Side by Side 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 unified diff | Download patch
OLDNEW
1 library googleapis.fusiontables.v1.test; 1 library googleapis.fusiontables.v2.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/fusiontables/v1.dart' as api; 15 import 'package:googleapis/fusiontables/v2.dart' as api;
16 16
17 17
18 18
19 core.int buildCounterBucket = 0; 19 core.int buildCounterBucket = 0;
20 buildBucket() { 20 buildBucket() {
21 var o = new api.Bucket(); 21 var o = new api.Bucket();
22 buildCounterBucket++; 22 buildCounterBucket++;
23 if (buildCounterBucket < 3) { 23 if (buildCounterBucket < 3) {
24 o.color = "foo"; 24 o.color = "foo";
25 o.icon = "foo"; 25 o.icon = "foo";
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 checkColumnBaseColumn(api.ColumnBaseColumn o) { 60 checkColumnBaseColumn(api.ColumnBaseColumn o) {
61 buildCounterColumnBaseColumn++; 61 buildCounterColumnBaseColumn++;
62 if (buildCounterColumnBaseColumn < 3) { 62 if (buildCounterColumnBaseColumn < 3) {
63 unittest.expect(o.columnId, unittest.equals(42)); 63 unittest.expect(o.columnId, unittest.equals(42));
64 unittest.expect(o.tableIndex, unittest.equals(42)); 64 unittest.expect(o.tableIndex, unittest.equals(42));
65 } 65 }
66 buildCounterColumnBaseColumn--; 66 buildCounterColumnBaseColumn--;
67 } 67 }
68 68
69 buildUnnamed338() {
70 var o = new core.List<core.String>();
71 o.add("foo");
72 o.add("foo");
73 return o;
74 }
75
76 checkUnnamed338(core.List<core.String> o) {
77 unittest.expect(o, unittest.hasLength(2));
78 unittest.expect(o[0], unittest.equals('foo'));
79 unittest.expect(o[1], unittest.equals('foo'));
80 }
81
69 core.int buildCounterColumn = 0; 82 core.int buildCounterColumn = 0;
70 buildColumn() { 83 buildColumn() {
71 var o = new api.Column(); 84 var o = new api.Column();
72 buildCounterColumn++; 85 buildCounterColumn++;
73 if (buildCounterColumn < 3) { 86 if (buildCounterColumn < 3) {
74 o.baseColumn = buildColumnBaseColumn(); 87 o.baseColumn = buildColumnBaseColumn();
75 o.columnId = 42; 88 o.columnId = 42;
89 o.columnJsonSchema = "foo";
90 o.columnPropertiesJson = "foo";
76 o.description = "foo"; 91 o.description = "foo";
92 o.formatPattern = "foo";
77 o.graphPredicate = "foo"; 93 o.graphPredicate = "foo";
78 o.kind = "foo"; 94 o.kind = "foo";
79 o.name = "foo"; 95 o.name = "foo";
80 o.type = "foo"; 96 o.type = "foo";
97 o.validValues = buildUnnamed338();
98 o.validateData = true;
81 } 99 }
82 buildCounterColumn--; 100 buildCounterColumn--;
83 return o; 101 return o;
84 } 102 }
85 103
86 checkColumn(api.Column o) { 104 checkColumn(api.Column o) {
87 buildCounterColumn++; 105 buildCounterColumn++;
88 if (buildCounterColumn < 3) { 106 if (buildCounterColumn < 3) {
89 checkColumnBaseColumn(o.baseColumn); 107 checkColumnBaseColumn(o.baseColumn);
90 unittest.expect(o.columnId, unittest.equals(42)); 108 unittest.expect(o.columnId, unittest.equals(42));
109 unittest.expect(o.columnJsonSchema, unittest.equals('foo'));
110 unittest.expect(o.columnPropertiesJson, unittest.equals('foo'));
91 unittest.expect(o.description, unittest.equals('foo')); 111 unittest.expect(o.description, unittest.equals('foo'));
112 unittest.expect(o.formatPattern, unittest.equals('foo'));
92 unittest.expect(o.graphPredicate, unittest.equals('foo')); 113 unittest.expect(o.graphPredicate, unittest.equals('foo'));
93 unittest.expect(o.kind, unittest.equals('foo')); 114 unittest.expect(o.kind, unittest.equals('foo'));
94 unittest.expect(o.name, unittest.equals('foo')); 115 unittest.expect(o.name, unittest.equals('foo'));
95 unittest.expect(o.type, unittest.equals('foo')); 116 unittest.expect(o.type, unittest.equals('foo'));
117 checkUnnamed338(o.validValues);
118 unittest.expect(o.validateData, unittest.isTrue);
96 } 119 }
97 buildCounterColumn--; 120 buildCounterColumn--;
98 } 121 }
99 122
100 buildUnnamed778() { 123 buildUnnamed339() {
101 var o = new core.List<api.Column>(); 124 var o = new core.List<api.Column>();
102 o.add(buildColumn()); 125 o.add(buildColumn());
103 o.add(buildColumn()); 126 o.add(buildColumn());
104 return o; 127 return o;
105 } 128 }
106 129
107 checkUnnamed778(core.List<api.Column> o) { 130 checkUnnamed339(core.List<api.Column> o) {
108 unittest.expect(o, unittest.hasLength(2)); 131 unittest.expect(o, unittest.hasLength(2));
109 checkColumn(o[0]); 132 checkColumn(o[0]);
110 checkColumn(o[1]); 133 checkColumn(o[1]);
111 } 134 }
112 135
113 core.int buildCounterColumnList = 0; 136 core.int buildCounterColumnList = 0;
114 buildColumnList() { 137 buildColumnList() {
115 var o = new api.ColumnList(); 138 var o = new api.ColumnList();
116 buildCounterColumnList++; 139 buildCounterColumnList++;
117 if (buildCounterColumnList < 3) { 140 if (buildCounterColumnList < 3) {
118 o.items = buildUnnamed778(); 141 o.items = buildUnnamed339();
119 o.kind = "foo"; 142 o.kind = "foo";
120 o.nextPageToken = "foo"; 143 o.nextPageToken = "foo";
121 o.totalItems = 42; 144 o.totalItems = 42;
122 } 145 }
123 buildCounterColumnList--; 146 buildCounterColumnList--;
124 return o; 147 return o;
125 } 148 }
126 149
127 checkColumnList(api.ColumnList o) { 150 checkColumnList(api.ColumnList o) {
128 buildCounterColumnList++; 151 buildCounterColumnList++;
129 if (buildCounterColumnList < 3) { 152 if (buildCounterColumnList < 3) {
130 checkUnnamed778(o.items); 153 checkUnnamed339(o.items);
131 unittest.expect(o.kind, unittest.equals('foo')); 154 unittest.expect(o.kind, unittest.equals('foo'));
132 unittest.expect(o.nextPageToken, unittest.equals('foo')); 155 unittest.expect(o.nextPageToken, unittest.equals('foo'));
133 unittest.expect(o.totalItems, unittest.equals(42)); 156 unittest.expect(o.totalItems, unittest.equals(42));
134 } 157 }
135 buildCounterColumnList--; 158 buildCounterColumnList--;
136 } 159 }
137 160
138 buildUnnamed779() { 161 buildUnnamed340() {
139 var o = new core.List<core.Object>(); 162 var o = new core.List<core.Object>();
140 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 163 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
141 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 164 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
142 return o; 165 return o;
143 } 166 }
144 167
145 checkUnnamed779(core.List<core.Object> o) { 168 checkUnnamed340(core.List<core.Object> o) {
146 unittest.expect(o, unittest.hasLength(2)); 169 unittest.expect(o, unittest.hasLength(2));
147 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 170 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo'));
148 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 171 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo'));
149 } 172 }
150 173
151 core.int buildCounterGeometry = 0; 174 core.int buildCounterGeometry = 0;
152 buildGeometry() { 175 buildGeometry() {
153 var o = new api.Geometry(); 176 var o = new api.Geometry();
154 buildCounterGeometry++; 177 buildCounterGeometry++;
155 if (buildCounterGeometry < 3) { 178 if (buildCounterGeometry < 3) {
156 o.geometries = buildUnnamed779(); 179 o.geometries = buildUnnamed340();
157 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 180 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
158 o.type = "foo"; 181 o.type = "foo";
159 } 182 }
160 buildCounterGeometry--; 183 buildCounterGeometry--;
161 return o; 184 return o;
162 } 185 }
163 186
164 checkGeometry(api.Geometry o) { 187 checkGeometry(api.Geometry o) {
165 buildCounterGeometry++; 188 buildCounterGeometry++;
166 if (buildCounterGeometry < 3) { 189 if (buildCounterGeometry < 3) {
167 checkUnnamed779(o.geometries); 190 checkUnnamed340(o.geometries);
168 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str ing"], unittest.equals('foo')); 191 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str ing"], unittest.equals('foo'));
169 unittest.expect(o.type, unittest.equals('foo')); 192 unittest.expect(o.type, unittest.equals('foo'));
170 } 193 }
171 buildCounterGeometry--; 194 buildCounterGeometry--;
172 } 195 }
173 196
174 core.int buildCounterImport = 0; 197 core.int buildCounterImport = 0;
175 buildImport() { 198 buildImport() {
176 var o = new api.Import(); 199 var o = new api.Import();
177 buildCounterImport++; 200 buildCounterImport++;
178 if (buildCounterImport < 3) { 201 if (buildCounterImport < 3) {
179 o.kind = "foo"; 202 o.kind = "foo";
180 o.numRowsReceived = "foo"; 203 o.numRowsReceived = "foo";
181 } 204 }
182 buildCounterImport--; 205 buildCounterImport--;
183 return o; 206 return o;
184 } 207 }
185 208
186 checkImport(api.Import o) { 209 checkImport(api.Import o) {
187 buildCounterImport++; 210 buildCounterImport++;
188 if (buildCounterImport < 3) { 211 if (buildCounterImport < 3) {
189 unittest.expect(o.kind, unittest.equals('foo')); 212 unittest.expect(o.kind, unittest.equals('foo'));
190 unittest.expect(o.numRowsReceived, unittest.equals('foo')); 213 unittest.expect(o.numRowsReceived, unittest.equals('foo'));
191 } 214 }
192 buildCounterImport--; 215 buildCounterImport--;
193 } 216 }
194 217
195 buildUnnamed780() { 218 buildUnnamed341() {
196 var o = new core.List<core.double>(); 219 var o = new core.List<core.double>();
197 o.add(42.0); 220 o.add(42.0);
198 o.add(42.0); 221 o.add(42.0);
199 return o; 222 return o;
200 } 223 }
201 224
202 checkUnnamed780(core.List<core.double> o) { 225 checkUnnamed341(core.List<core.double> o) {
203 unittest.expect(o, unittest.hasLength(2)); 226 unittest.expect(o, unittest.hasLength(2));
204 unittest.expect(o[0], unittest.equals(42.0)); 227 unittest.expect(o[0], unittest.equals(42.0));
205 unittest.expect(o[1], unittest.equals(42.0)); 228 unittest.expect(o[1], unittest.equals(42.0));
206 } 229 }
207 230
208 buildUnnamed781() { 231 buildUnnamed342() {
209 var o = new core.List<core.List<core.double>>(); 232 var o = new core.List<core.List<core.double>>();
210 o.add(buildUnnamed780()); 233 o.add(buildUnnamed341());
211 o.add(buildUnnamed780()); 234 o.add(buildUnnamed341());
212 return o; 235 return o;
213 } 236 }
214 237
215 checkUnnamed781(core.List<core.List<core.double>> o) { 238 checkUnnamed342(core.List<core.List<core.double>> o) {
216 unittest.expect(o, unittest.hasLength(2)); 239 unittest.expect(o, unittest.hasLength(2));
217 checkUnnamed780(o[0]); 240 checkUnnamed341(o[0]);
218 checkUnnamed780(o[1]); 241 checkUnnamed341(o[1]);
219 } 242 }
220 243
221 core.int buildCounterLine = 0; 244 core.int buildCounterLine = 0;
222 buildLine() { 245 buildLine() {
223 var o = new api.Line(); 246 var o = new api.Line();
224 buildCounterLine++; 247 buildCounterLine++;
225 if (buildCounterLine < 3) { 248 if (buildCounterLine < 3) {
226 o.coordinates = buildUnnamed781(); 249 o.coordinates = buildUnnamed342();
227 o.type = "foo"; 250 o.type = "foo";
228 } 251 }
229 buildCounterLine--; 252 buildCounterLine--;
230 return o; 253 return o;
231 } 254 }
232 255
233 checkLine(api.Line o) { 256 checkLine(api.Line o) {
234 buildCounterLine++; 257 buildCounterLine++;
235 if (buildCounterLine < 3) { 258 if (buildCounterLine < 3) {
236 checkUnnamed781(o.coordinates); 259 checkUnnamed342(o.coordinates);
237 unittest.expect(o.type, unittest.equals('foo')); 260 unittest.expect(o.type, unittest.equals('foo'));
238 } 261 }
239 buildCounterLine--; 262 buildCounterLine--;
240 } 263 }
241 264
242 core.int buildCounterLineStyle = 0; 265 core.int buildCounterLineStyle = 0;
243 buildLineStyle() { 266 buildLineStyle() {
244 var o = new api.LineStyle(); 267 var o = new api.LineStyle();
245 buildCounterLineStyle++; 268 buildCounterLineStyle++;
246 if (buildCounterLineStyle < 3) { 269 if (buildCounterLineStyle < 3) {
(...skipping 12 matching lines...) Expand all
259 if (buildCounterLineStyle < 3) { 282 if (buildCounterLineStyle < 3) {
260 unittest.expect(o.strokeColor, unittest.equals('foo')); 283 unittest.expect(o.strokeColor, unittest.equals('foo'));
261 checkStyleFunction(o.strokeColorStyler); 284 checkStyleFunction(o.strokeColorStyler);
262 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); 285 unittest.expect(o.strokeOpacity, unittest.equals(42.0));
263 unittest.expect(o.strokeWeight, unittest.equals(42)); 286 unittest.expect(o.strokeWeight, unittest.equals(42));
264 checkStyleFunction(o.strokeWeightStyler); 287 checkStyleFunction(o.strokeWeightStyler);
265 } 288 }
266 buildCounterLineStyle--; 289 buildCounterLineStyle--;
267 } 290 }
268 291
269 buildUnnamed782() { 292 buildUnnamed343() {
270 var o = new core.List<core.double>(); 293 var o = new core.List<core.double>();
271 o.add(42.0); 294 o.add(42.0);
272 o.add(42.0); 295 o.add(42.0);
273 return o; 296 return o;
274 } 297 }
275 298
276 checkUnnamed782(core.List<core.double> o) { 299 checkUnnamed343(core.List<core.double> o) {
277 unittest.expect(o, unittest.hasLength(2)); 300 unittest.expect(o, unittest.hasLength(2));
278 unittest.expect(o[0], unittest.equals(42.0)); 301 unittest.expect(o[0], unittest.equals(42.0));
279 unittest.expect(o[1], unittest.equals(42.0)); 302 unittest.expect(o[1], unittest.equals(42.0));
280 } 303 }
281 304
282 core.int buildCounterPoint = 0; 305 core.int buildCounterPoint = 0;
283 buildPoint() { 306 buildPoint() {
284 var o = new api.Point(); 307 var o = new api.Point();
285 buildCounterPoint++; 308 buildCounterPoint++;
286 if (buildCounterPoint < 3) { 309 if (buildCounterPoint < 3) {
287 o.coordinates = buildUnnamed782(); 310 o.coordinates = buildUnnamed343();
288 o.type = "foo"; 311 o.type = "foo";
289 } 312 }
290 buildCounterPoint--; 313 buildCounterPoint--;
291 return o; 314 return o;
292 } 315 }
293 316
294 checkPoint(api.Point o) { 317 checkPoint(api.Point o) {
295 buildCounterPoint++; 318 buildCounterPoint++;
296 if (buildCounterPoint < 3) { 319 if (buildCounterPoint < 3) {
297 checkUnnamed782(o.coordinates); 320 checkUnnamed343(o.coordinates);
298 unittest.expect(o.type, unittest.equals('foo')); 321 unittest.expect(o.type, unittest.equals('foo'));
299 } 322 }
300 buildCounterPoint--; 323 buildCounterPoint--;
301 } 324 }
302 325
303 core.int buildCounterPointStyle = 0; 326 core.int buildCounterPointStyle = 0;
304 buildPointStyle() { 327 buildPointStyle() {
305 var o = new api.PointStyle(); 328 var o = new api.PointStyle();
306 buildCounterPointStyle++; 329 buildCounterPointStyle++;
307 if (buildCounterPointStyle < 3) { 330 if (buildCounterPointStyle < 3) {
308 o.iconName = "foo"; 331 o.iconName = "foo";
309 o.iconStyler = buildStyleFunction(); 332 o.iconStyler = buildStyleFunction();
310 } 333 }
311 buildCounterPointStyle--; 334 buildCounterPointStyle--;
312 return o; 335 return o;
313 } 336 }
314 337
315 checkPointStyle(api.PointStyle o) { 338 checkPointStyle(api.PointStyle o) {
316 buildCounterPointStyle++; 339 buildCounterPointStyle++;
317 if (buildCounterPointStyle < 3) { 340 if (buildCounterPointStyle < 3) {
318 unittest.expect(o.iconName, unittest.equals('foo')); 341 unittest.expect(o.iconName, unittest.equals('foo'));
319 checkStyleFunction(o.iconStyler); 342 checkStyleFunction(o.iconStyler);
320 } 343 }
321 buildCounterPointStyle--; 344 buildCounterPointStyle--;
322 } 345 }
323 346
324 buildUnnamed783() { 347 buildUnnamed344() {
325 var o = new core.List<core.double>(); 348 var o = new core.List<core.double>();
326 o.add(42.0); 349 o.add(42.0);
327 o.add(42.0); 350 o.add(42.0);
328 return o; 351 return o;
329 } 352 }
330 353
331 checkUnnamed783(core.List<core.double> o) { 354 checkUnnamed344(core.List<core.double> o) {
332 unittest.expect(o, unittest.hasLength(2)); 355 unittest.expect(o, unittest.hasLength(2));
333 unittest.expect(o[0], unittest.equals(42.0)); 356 unittest.expect(o[0], unittest.equals(42.0));
334 unittest.expect(o[1], unittest.equals(42.0)); 357 unittest.expect(o[1], unittest.equals(42.0));
335 } 358 }
336 359
337 buildUnnamed784() { 360 buildUnnamed345() {
338 var o = new core.List<core.List<core.double>>(); 361 var o = new core.List<core.List<core.double>>();
339 o.add(buildUnnamed783()); 362 o.add(buildUnnamed344());
340 o.add(buildUnnamed783()); 363 o.add(buildUnnamed344());
341 return o; 364 return o;
342 } 365 }
343 366
344 checkUnnamed784(core.List<core.List<core.double>> o) { 367 checkUnnamed345(core.List<core.List<core.double>> o) {
345 unittest.expect(o, unittest.hasLength(2)); 368 unittest.expect(o, unittest.hasLength(2));
346 checkUnnamed783(o[0]); 369 checkUnnamed344(o[0]);
347 checkUnnamed783(o[1]); 370 checkUnnamed344(o[1]);
348 } 371 }
349 372
350 buildUnnamed785() { 373 buildUnnamed346() {
351 var o = new core.List<core.List<core.List<core.double>>>(); 374 var o = new core.List<core.List<core.List<core.double>>>();
352 o.add(buildUnnamed784()); 375 o.add(buildUnnamed345());
353 o.add(buildUnnamed784()); 376 o.add(buildUnnamed345());
354 return o; 377 return o;
355 } 378 }
356 379
357 checkUnnamed785(core.List<core.List<core.List<core.double>>> o) { 380 checkUnnamed346(core.List<core.List<core.List<core.double>>> o) {
358 unittest.expect(o, unittest.hasLength(2)); 381 unittest.expect(o, unittest.hasLength(2));
359 checkUnnamed784(o[0]); 382 checkUnnamed345(o[0]);
360 checkUnnamed784(o[1]); 383 checkUnnamed345(o[1]);
361 } 384 }
362 385
363 core.int buildCounterPolygon = 0; 386 core.int buildCounterPolygon = 0;
364 buildPolygon() { 387 buildPolygon() {
365 var o = new api.Polygon(); 388 var o = new api.Polygon();
366 buildCounterPolygon++; 389 buildCounterPolygon++;
367 if (buildCounterPolygon < 3) { 390 if (buildCounterPolygon < 3) {
368 o.coordinates = buildUnnamed785(); 391 o.coordinates = buildUnnamed346();
369 o.type = "foo"; 392 o.type = "foo";
370 } 393 }
371 buildCounterPolygon--; 394 buildCounterPolygon--;
372 return o; 395 return o;
373 } 396 }
374 397
375 checkPolygon(api.Polygon o) { 398 checkPolygon(api.Polygon o) {
376 buildCounterPolygon++; 399 buildCounterPolygon++;
377 if (buildCounterPolygon < 3) { 400 if (buildCounterPolygon < 3) {
378 checkUnnamed785(o.coordinates); 401 checkUnnamed346(o.coordinates);
379 unittest.expect(o.type, unittest.equals('foo')); 402 unittest.expect(o.type, unittest.equals('foo'));
380 } 403 }
381 buildCounterPolygon--; 404 buildCounterPolygon--;
382 } 405 }
383 406
384 core.int buildCounterPolygonStyle = 0; 407 core.int buildCounterPolygonStyle = 0;
385 buildPolygonStyle() { 408 buildPolygonStyle() {
386 var o = new api.PolygonStyle(); 409 var o = new api.PolygonStyle();
387 buildCounterPolygonStyle++; 410 buildCounterPolygonStyle++;
388 if (buildCounterPolygonStyle < 3) { 411 if (buildCounterPolygonStyle < 3) {
(...skipping 18 matching lines...) Expand all
407 unittest.expect(o.fillOpacity, unittest.equals(42.0)); 430 unittest.expect(o.fillOpacity, unittest.equals(42.0));
408 unittest.expect(o.strokeColor, unittest.equals('foo')); 431 unittest.expect(o.strokeColor, unittest.equals('foo'));
409 checkStyleFunction(o.strokeColorStyler); 432 checkStyleFunction(o.strokeColorStyler);
410 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); 433 unittest.expect(o.strokeOpacity, unittest.equals(42.0));
411 unittest.expect(o.strokeWeight, unittest.equals(42)); 434 unittest.expect(o.strokeWeight, unittest.equals(42));
412 checkStyleFunction(o.strokeWeightStyler); 435 checkStyleFunction(o.strokeWeightStyler);
413 } 436 }
414 buildCounterPolygonStyle--; 437 buildCounterPolygonStyle--;
415 } 438 }
416 439
417 buildUnnamed786() { 440 buildUnnamed347() {
418 var o = new core.List<core.String>(); 441 var o = new core.List<core.String>();
419 o.add("foo"); 442 o.add("foo");
420 o.add("foo"); 443 o.add("foo");
421 return o; 444 return o;
422 } 445 }
423 446
424 checkUnnamed786(core.List<core.String> o) { 447 checkUnnamed347(core.List<core.String> o) {
425 unittest.expect(o, unittest.hasLength(2)); 448 unittest.expect(o, unittest.hasLength(2));
426 unittest.expect(o[0], unittest.equals('foo')); 449 unittest.expect(o[0], unittest.equals('foo'));
427 unittest.expect(o[1], unittest.equals('foo')); 450 unittest.expect(o[1], unittest.equals('foo'));
428 } 451 }
429 452
430 buildUnnamed787() { 453 buildUnnamed348() {
431 var o = new core.List<core.Object>(); 454 var o = new core.List<core.Object>();
432 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 455 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
433 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 456 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
434 return o; 457 return o;
435 } 458 }
436 459
437 checkUnnamed787(core.List<core.Object> o) { 460 checkUnnamed348(core.List<core.Object> o) {
438 unittest.expect(o, unittest.hasLength(2)); 461 unittest.expect(o, unittest.hasLength(2));
439 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength( 3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u nittest.equals('foo')); 462 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength( 3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u nittest.equals('foo'));
440 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength( 3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u nittest.equals('foo')); 463 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength( 3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u nittest.equals('foo'));
441 } 464 }
442 465
443 buildUnnamed788() { 466 buildUnnamed349() {
444 var o = new core.List<core.List<core.Object>>(); 467 var o = new core.List<core.List<core.Object>>();
445 o.add(buildUnnamed787()); 468 o.add(buildUnnamed348());
446 o.add(buildUnnamed787()); 469 o.add(buildUnnamed348());
447 return o; 470 return o;
448 } 471 }
449 472
450 checkUnnamed788(core.List<core.List<core.Object>> o) { 473 checkUnnamed349(core.List<core.List<core.Object>> o) {
451 unittest.expect(o, unittest.hasLength(2)); 474 unittest.expect(o, unittest.hasLength(2));
452 checkUnnamed787(o[0]); 475 checkUnnamed348(o[0]);
453 checkUnnamed787(o[1]); 476 checkUnnamed348(o[1]);
454 } 477 }
455 478
456 core.int buildCounterSqlresponse = 0; 479 core.int buildCounterSqlresponse = 0;
457 buildSqlresponse() { 480 buildSqlresponse() {
458 var o = new api.Sqlresponse(); 481 var o = new api.Sqlresponse();
459 buildCounterSqlresponse++; 482 buildCounterSqlresponse++;
460 if (buildCounterSqlresponse < 3) { 483 if (buildCounterSqlresponse < 3) {
461 o.columns = buildUnnamed786(); 484 o.columns = buildUnnamed347();
462 o.kind = "foo"; 485 o.kind = "foo";
463 o.rows = buildUnnamed788(); 486 o.rows = buildUnnamed349();
464 } 487 }
465 buildCounterSqlresponse--; 488 buildCounterSqlresponse--;
466 return o; 489 return o;
467 } 490 }
468 491
469 checkSqlresponse(api.Sqlresponse o) { 492 checkSqlresponse(api.Sqlresponse o) {
470 buildCounterSqlresponse++; 493 buildCounterSqlresponse++;
471 if (buildCounterSqlresponse < 3) { 494 if (buildCounterSqlresponse < 3) {
472 checkUnnamed786(o.columns); 495 checkUnnamed347(o.columns);
473 unittest.expect(o.kind, unittest.equals('foo')); 496 unittest.expect(o.kind, unittest.equals('foo'));
474 checkUnnamed788(o.rows); 497 checkUnnamed349(o.rows);
475 } 498 }
476 buildCounterSqlresponse--; 499 buildCounterSqlresponse--;
477 } 500 }
478 501
479 buildUnnamed789() { 502 buildUnnamed350() {
480 var o = new core.List<api.Bucket>(); 503 var o = new core.List<api.Bucket>();
481 o.add(buildBucket()); 504 o.add(buildBucket());
482 o.add(buildBucket()); 505 o.add(buildBucket());
483 return o; 506 return o;
484 } 507 }
485 508
486 checkUnnamed789(core.List<api.Bucket> o) { 509 checkUnnamed350(core.List<api.Bucket> o) {
487 unittest.expect(o, unittest.hasLength(2)); 510 unittest.expect(o, unittest.hasLength(2));
488 checkBucket(o[0]); 511 checkBucket(o[0]);
489 checkBucket(o[1]); 512 checkBucket(o[1]);
490 } 513 }
491 514
492 core.int buildCounterStyleFunctionGradientColors = 0; 515 core.int buildCounterStyleFunctionGradientColors = 0;
493 buildStyleFunctionGradientColors() { 516 buildStyleFunctionGradientColors() {
494 var o = new api.StyleFunctionGradientColors(); 517 var o = new api.StyleFunctionGradientColors();
495 buildCounterStyleFunctionGradientColors++; 518 buildCounterStyleFunctionGradientColors++;
496 if (buildCounterStyleFunctionGradientColors < 3) { 519 if (buildCounterStyleFunctionGradientColors < 3) {
497 o.color = "foo"; 520 o.color = "foo";
498 o.opacity = 42.0; 521 o.opacity = 42.0;
499 } 522 }
500 buildCounterStyleFunctionGradientColors--; 523 buildCounterStyleFunctionGradientColors--;
501 return o; 524 return o;
502 } 525 }
503 526
504 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { 527 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) {
505 buildCounterStyleFunctionGradientColors++; 528 buildCounterStyleFunctionGradientColors++;
506 if (buildCounterStyleFunctionGradientColors < 3) { 529 if (buildCounterStyleFunctionGradientColors < 3) {
507 unittest.expect(o.color, unittest.equals('foo')); 530 unittest.expect(o.color, unittest.equals('foo'));
508 unittest.expect(o.opacity, unittest.equals(42.0)); 531 unittest.expect(o.opacity, unittest.equals(42.0));
509 } 532 }
510 buildCounterStyleFunctionGradientColors--; 533 buildCounterStyleFunctionGradientColors--;
511 } 534 }
512 535
513 buildUnnamed790() { 536 buildUnnamed351() {
514 var o = new core.List<api.StyleFunctionGradientColors>(); 537 var o = new core.List<api.StyleFunctionGradientColors>();
515 o.add(buildStyleFunctionGradientColors()); 538 o.add(buildStyleFunctionGradientColors());
516 o.add(buildStyleFunctionGradientColors()); 539 o.add(buildStyleFunctionGradientColors());
517 return o; 540 return o;
518 } 541 }
519 542
520 checkUnnamed790(core.List<api.StyleFunctionGradientColors> o) { 543 checkUnnamed351(core.List<api.StyleFunctionGradientColors> o) {
521 unittest.expect(o, unittest.hasLength(2)); 544 unittest.expect(o, unittest.hasLength(2));
522 checkStyleFunctionGradientColors(o[0]); 545 checkStyleFunctionGradientColors(o[0]);
523 checkStyleFunctionGradientColors(o[1]); 546 checkStyleFunctionGradientColors(o[1]);
524 } 547 }
525 548
526 core.int buildCounterStyleFunctionGradient = 0; 549 core.int buildCounterStyleFunctionGradient = 0;
527 buildStyleFunctionGradient() { 550 buildStyleFunctionGradient() {
528 var o = new api.StyleFunctionGradient(); 551 var o = new api.StyleFunctionGradient();
529 buildCounterStyleFunctionGradient++; 552 buildCounterStyleFunctionGradient++;
530 if (buildCounterStyleFunctionGradient < 3) { 553 if (buildCounterStyleFunctionGradient < 3) {
531 o.colors = buildUnnamed790(); 554 o.colors = buildUnnamed351();
532 o.max = 42.0; 555 o.max = 42.0;
533 o.min = 42.0; 556 o.min = 42.0;
534 } 557 }
535 buildCounterStyleFunctionGradient--; 558 buildCounterStyleFunctionGradient--;
536 return o; 559 return o;
537 } 560 }
538 561
539 checkStyleFunctionGradient(api.StyleFunctionGradient o) { 562 checkStyleFunctionGradient(api.StyleFunctionGradient o) {
540 buildCounterStyleFunctionGradient++; 563 buildCounterStyleFunctionGradient++;
541 if (buildCounterStyleFunctionGradient < 3) { 564 if (buildCounterStyleFunctionGradient < 3) {
542 checkUnnamed790(o.colors); 565 checkUnnamed351(o.colors);
543 unittest.expect(o.max, unittest.equals(42.0)); 566 unittest.expect(o.max, unittest.equals(42.0));
544 unittest.expect(o.min, unittest.equals(42.0)); 567 unittest.expect(o.min, unittest.equals(42.0));
545 } 568 }
546 buildCounterStyleFunctionGradient--; 569 buildCounterStyleFunctionGradient--;
547 } 570 }
548 571
549 core.int buildCounterStyleFunction = 0; 572 core.int buildCounterStyleFunction = 0;
550 buildStyleFunction() { 573 buildStyleFunction() {
551 var o = new api.StyleFunction(); 574 var o = new api.StyleFunction();
552 buildCounterStyleFunction++; 575 buildCounterStyleFunction++;
553 if (buildCounterStyleFunction < 3) { 576 if (buildCounterStyleFunction < 3) {
554 o.buckets = buildUnnamed789(); 577 o.buckets = buildUnnamed350();
555 o.columnName = "foo"; 578 o.columnName = "foo";
556 o.gradient = buildStyleFunctionGradient(); 579 o.gradient = buildStyleFunctionGradient();
557 o.kind = "foo"; 580 o.kind = "foo";
558 } 581 }
559 buildCounterStyleFunction--; 582 buildCounterStyleFunction--;
560 return o; 583 return o;
561 } 584 }
562 585
563 checkStyleFunction(api.StyleFunction o) { 586 checkStyleFunction(api.StyleFunction o) {
564 buildCounterStyleFunction++; 587 buildCounterStyleFunction++;
565 if (buildCounterStyleFunction < 3) { 588 if (buildCounterStyleFunction < 3) {
566 checkUnnamed789(o.buckets); 589 checkUnnamed350(o.buckets);
567 unittest.expect(o.columnName, unittest.equals('foo')); 590 unittest.expect(o.columnName, unittest.equals('foo'));
568 checkStyleFunctionGradient(o.gradient); 591 checkStyleFunctionGradient(o.gradient);
569 unittest.expect(o.kind, unittest.equals('foo')); 592 unittest.expect(o.kind, unittest.equals('foo'));
570 } 593 }
571 buildCounterStyleFunction--; 594 buildCounterStyleFunction--;
572 } 595 }
573 596
574 core.int buildCounterStyleSetting = 0; 597 core.int buildCounterStyleSetting = 0;
575 buildStyleSetting() { 598 buildStyleSetting() {
576 var o = new api.StyleSetting(); 599 var o = new api.StyleSetting();
(...skipping 18 matching lines...) Expand all
595 checkPointStyle(o.markerOptions); 618 checkPointStyle(o.markerOptions);
596 unittest.expect(o.name, unittest.equals('foo')); 619 unittest.expect(o.name, unittest.equals('foo'));
597 checkPolygonStyle(o.polygonOptions); 620 checkPolygonStyle(o.polygonOptions);
598 checkLineStyle(o.polylineOptions); 621 checkLineStyle(o.polylineOptions);
599 unittest.expect(o.styleId, unittest.equals(42)); 622 unittest.expect(o.styleId, unittest.equals(42));
600 unittest.expect(o.tableId, unittest.equals('foo')); 623 unittest.expect(o.tableId, unittest.equals('foo'));
601 } 624 }
602 buildCounterStyleSetting--; 625 buildCounterStyleSetting--;
603 } 626 }
604 627
605 buildUnnamed791() { 628 buildUnnamed352() {
606 var o = new core.List<api.StyleSetting>(); 629 var o = new core.List<api.StyleSetting>();
607 o.add(buildStyleSetting()); 630 o.add(buildStyleSetting());
608 o.add(buildStyleSetting()); 631 o.add(buildStyleSetting());
609 return o; 632 return o;
610 } 633 }
611 634
612 checkUnnamed791(core.List<api.StyleSetting> o) { 635 checkUnnamed352(core.List<api.StyleSetting> o) {
613 unittest.expect(o, unittest.hasLength(2)); 636 unittest.expect(o, unittest.hasLength(2));
614 checkStyleSetting(o[0]); 637 checkStyleSetting(o[0]);
615 checkStyleSetting(o[1]); 638 checkStyleSetting(o[1]);
616 } 639 }
617 640
618 core.int buildCounterStyleSettingList = 0; 641 core.int buildCounterStyleSettingList = 0;
619 buildStyleSettingList() { 642 buildStyleSettingList() {
620 var o = new api.StyleSettingList(); 643 var o = new api.StyleSettingList();
621 buildCounterStyleSettingList++; 644 buildCounterStyleSettingList++;
622 if (buildCounterStyleSettingList < 3) { 645 if (buildCounterStyleSettingList < 3) {
623 o.items = buildUnnamed791(); 646 o.items = buildUnnamed352();
624 o.kind = "foo"; 647 o.kind = "foo";
625 o.nextPageToken = "foo"; 648 o.nextPageToken = "foo";
626 o.totalItems = 42; 649 o.totalItems = 42;
627 } 650 }
628 buildCounterStyleSettingList--; 651 buildCounterStyleSettingList--;
629 return o; 652 return o;
630 } 653 }
631 654
632 checkStyleSettingList(api.StyleSettingList o) { 655 checkStyleSettingList(api.StyleSettingList o) {
633 buildCounterStyleSettingList++; 656 buildCounterStyleSettingList++;
634 if (buildCounterStyleSettingList < 3) { 657 if (buildCounterStyleSettingList < 3) {
635 checkUnnamed791(o.items); 658 checkUnnamed352(o.items);
636 unittest.expect(o.kind, unittest.equals('foo')); 659 unittest.expect(o.kind, unittest.equals('foo'));
637 unittest.expect(o.nextPageToken, unittest.equals('foo')); 660 unittest.expect(o.nextPageToken, unittest.equals('foo'));
638 unittest.expect(o.totalItems, unittest.equals(42)); 661 unittest.expect(o.totalItems, unittest.equals(42));
639 } 662 }
640 buildCounterStyleSettingList--; 663 buildCounterStyleSettingList--;
641 } 664 }
642 665
643 buildUnnamed792() { 666 buildUnnamed353() {
644 var o = new core.List<core.String>(); 667 var o = new core.List<core.String>();
645 o.add("foo"); 668 o.add("foo");
646 o.add("foo"); 669 o.add("foo");
647 return o; 670 return o;
648 } 671 }
649 672
650 checkUnnamed792(core.List<core.String> o) { 673 checkUnnamed353(core.List<core.String> o) {
651 unittest.expect(o, unittest.hasLength(2)); 674 unittest.expect(o, unittest.hasLength(2));
652 unittest.expect(o[0], unittest.equals('foo')); 675 unittest.expect(o[0], unittest.equals('foo'));
653 unittest.expect(o[1], unittest.equals('foo')); 676 unittest.expect(o[1], unittest.equals('foo'));
654 } 677 }
655 678
656 buildUnnamed793() { 679 buildUnnamed354() {
657 var o = new core.List<api.Column>(); 680 var o = new core.List<api.Column>();
658 o.add(buildColumn()); 681 o.add(buildColumn());
659 o.add(buildColumn()); 682 o.add(buildColumn());
660 return o; 683 return o;
661 } 684 }
662 685
663 checkUnnamed793(core.List<api.Column> o) { 686 checkUnnamed354(core.List<api.Column> o) {
664 unittest.expect(o, unittest.hasLength(2)); 687 unittest.expect(o, unittest.hasLength(2));
665 checkColumn(o[0]); 688 checkColumn(o[0]);
666 checkColumn(o[1]); 689 checkColumn(o[1]);
667 } 690 }
668 691
669 core.int buildCounterTable = 0; 692 core.int buildCounterTable = 0;
670 buildTable() { 693 buildTable() {
671 var o = new api.Table(); 694 var o = new api.Table();
672 buildCounterTable++; 695 buildCounterTable++;
673 if (buildCounterTable < 3) { 696 if (buildCounterTable < 3) {
674 o.attribution = "foo"; 697 o.attribution = "foo";
675 o.attributionLink = "foo"; 698 o.attributionLink = "foo";
676 o.baseTableIds = buildUnnamed792(); 699 o.baseTableIds = buildUnnamed353();
677 o.columns = buildUnnamed793(); 700 o.columnPropertiesJsonSchema = "foo";
701 o.columns = buildUnnamed354();
678 o.description = "foo"; 702 o.description = "foo";
679 o.isExportable = true; 703 o.isExportable = true;
680 o.kind = "foo"; 704 o.kind = "foo";
681 o.name = "foo"; 705 o.name = "foo";
682 o.sql = "foo"; 706 o.sql = "foo";
683 o.tableId = "foo"; 707 o.tableId = "foo";
708 o.tablePropertiesJson = "foo";
709 o.tablePropertiesJsonSchema = "foo";
684 } 710 }
685 buildCounterTable--; 711 buildCounterTable--;
686 return o; 712 return o;
687 } 713 }
688 714
689 checkTable(api.Table o) { 715 checkTable(api.Table o) {
690 buildCounterTable++; 716 buildCounterTable++;
691 if (buildCounterTable < 3) { 717 if (buildCounterTable < 3) {
692 unittest.expect(o.attribution, unittest.equals('foo')); 718 unittest.expect(o.attribution, unittest.equals('foo'));
693 unittest.expect(o.attributionLink, unittest.equals('foo')); 719 unittest.expect(o.attributionLink, unittest.equals('foo'));
694 checkUnnamed792(o.baseTableIds); 720 checkUnnamed353(o.baseTableIds);
695 checkUnnamed793(o.columns); 721 unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo'));
722 checkUnnamed354(o.columns);
696 unittest.expect(o.description, unittest.equals('foo')); 723 unittest.expect(o.description, unittest.equals('foo'));
697 unittest.expect(o.isExportable, unittest.isTrue); 724 unittest.expect(o.isExportable, unittest.isTrue);
698 unittest.expect(o.kind, unittest.equals('foo')); 725 unittest.expect(o.kind, unittest.equals('foo'));
699 unittest.expect(o.name, unittest.equals('foo')); 726 unittest.expect(o.name, unittest.equals('foo'));
700 unittest.expect(o.sql, unittest.equals('foo')); 727 unittest.expect(o.sql, unittest.equals('foo'));
701 unittest.expect(o.tableId, unittest.equals('foo')); 728 unittest.expect(o.tableId, unittest.equals('foo'));
729 unittest.expect(o.tablePropertiesJson, unittest.equals('foo'));
730 unittest.expect(o.tablePropertiesJsonSchema, unittest.equals('foo'));
702 } 731 }
703 buildCounterTable--; 732 buildCounterTable--;
704 } 733 }
705 734
706 buildUnnamed794() { 735 buildUnnamed355() {
707 var o = new core.List<api.Table>(); 736 var o = new core.List<api.Table>();
708 o.add(buildTable()); 737 o.add(buildTable());
709 o.add(buildTable()); 738 o.add(buildTable());
710 return o; 739 return o;
711 } 740 }
712 741
713 checkUnnamed794(core.List<api.Table> o) { 742 checkUnnamed355(core.List<api.Table> o) {
714 unittest.expect(o, unittest.hasLength(2)); 743 unittest.expect(o, unittest.hasLength(2));
715 checkTable(o[0]); 744 checkTable(o[0]);
716 checkTable(o[1]); 745 checkTable(o[1]);
717 } 746 }
718 747
719 core.int buildCounterTableList = 0; 748 core.int buildCounterTableList = 0;
720 buildTableList() { 749 buildTableList() {
721 var o = new api.TableList(); 750 var o = new api.TableList();
722 buildCounterTableList++; 751 buildCounterTableList++;
723 if (buildCounterTableList < 3) { 752 if (buildCounterTableList < 3) {
724 o.items = buildUnnamed794(); 753 o.items = buildUnnamed355();
725 o.kind = "foo"; 754 o.kind = "foo";
726 o.nextPageToken = "foo"; 755 o.nextPageToken = "foo";
727 } 756 }
728 buildCounterTableList--; 757 buildCounterTableList--;
729 return o; 758 return o;
730 } 759 }
731 760
732 checkTableList(api.TableList o) { 761 checkTableList(api.TableList o) {
733 buildCounterTableList++; 762 buildCounterTableList++;
734 if (buildCounterTableList < 3) { 763 if (buildCounterTableList < 3) {
735 checkUnnamed794(o.items); 764 checkUnnamed355(o.items);
736 unittest.expect(o.kind, unittest.equals('foo')); 765 unittest.expect(o.kind, unittest.equals('foo'));
737 unittest.expect(o.nextPageToken, unittest.equals('foo')); 766 unittest.expect(o.nextPageToken, unittest.equals('foo'));
738 } 767 }
739 buildCounterTableList--; 768 buildCounterTableList--;
740 } 769 }
741 770
742 core.int buildCounterTask = 0; 771 core.int buildCounterTask = 0;
743 buildTask() { 772 buildTask() {
744 var o = new api.Task(); 773 var o = new api.Task();
745 buildCounterTask++; 774 buildCounterTask++;
(...skipping 13 matching lines...) Expand all
759 if (buildCounterTask < 3) { 788 if (buildCounterTask < 3) {
760 unittest.expect(o.kind, unittest.equals('foo')); 789 unittest.expect(o.kind, unittest.equals('foo'));
761 unittest.expect(o.progress, unittest.equals('foo')); 790 unittest.expect(o.progress, unittest.equals('foo'));
762 unittest.expect(o.started, unittest.isTrue); 791 unittest.expect(o.started, unittest.isTrue);
763 unittest.expect(o.taskId, unittest.equals('foo')); 792 unittest.expect(o.taskId, unittest.equals('foo'));
764 unittest.expect(o.type, unittest.equals('foo')); 793 unittest.expect(o.type, unittest.equals('foo'));
765 } 794 }
766 buildCounterTask--; 795 buildCounterTask--;
767 } 796 }
768 797
769 buildUnnamed795() { 798 buildUnnamed356() {
770 var o = new core.List<api.Task>(); 799 var o = new core.List<api.Task>();
771 o.add(buildTask()); 800 o.add(buildTask());
772 o.add(buildTask()); 801 o.add(buildTask());
773 return o; 802 return o;
774 } 803 }
775 804
776 checkUnnamed795(core.List<api.Task> o) { 805 checkUnnamed356(core.List<api.Task> o) {
777 unittest.expect(o, unittest.hasLength(2)); 806 unittest.expect(o, unittest.hasLength(2));
778 checkTask(o[0]); 807 checkTask(o[0]);
779 checkTask(o[1]); 808 checkTask(o[1]);
780 } 809 }
781 810
782 core.int buildCounterTaskList = 0; 811 core.int buildCounterTaskList = 0;
783 buildTaskList() { 812 buildTaskList() {
784 var o = new api.TaskList(); 813 var o = new api.TaskList();
785 buildCounterTaskList++; 814 buildCounterTaskList++;
786 if (buildCounterTaskList < 3) { 815 if (buildCounterTaskList < 3) {
787 o.items = buildUnnamed795(); 816 o.items = buildUnnamed356();
788 o.kind = "foo"; 817 o.kind = "foo";
789 o.nextPageToken = "foo"; 818 o.nextPageToken = "foo";
790 o.totalItems = 42; 819 o.totalItems = 42;
791 } 820 }
792 buildCounterTaskList--; 821 buildCounterTaskList--;
793 return o; 822 return o;
794 } 823 }
795 824
796 checkTaskList(api.TaskList o) { 825 checkTaskList(api.TaskList o) {
797 buildCounterTaskList++; 826 buildCounterTaskList++;
798 if (buildCounterTaskList < 3) { 827 if (buildCounterTaskList < 3) {
799 checkUnnamed795(o.items); 828 checkUnnamed356(o.items);
800 unittest.expect(o.kind, unittest.equals('foo')); 829 unittest.expect(o.kind, unittest.equals('foo'));
801 unittest.expect(o.nextPageToken, unittest.equals('foo')); 830 unittest.expect(o.nextPageToken, unittest.equals('foo'));
802 unittest.expect(o.totalItems, unittest.equals(42)); 831 unittest.expect(o.totalItems, unittest.equals(42));
803 } 832 }
804 buildCounterTaskList--; 833 buildCounterTaskList--;
805 } 834 }
806 835
807 buildUnnamed796() { 836 buildUnnamed357() {
808 var o = new core.List<core.String>(); 837 var o = new core.List<core.String>();
809 o.add("foo"); 838 o.add("foo");
810 o.add("foo"); 839 o.add("foo");
811 return o; 840 return o;
812 } 841 }
813 842
814 checkUnnamed796(core.List<core.String> o) { 843 checkUnnamed357(core.List<core.String> o) {
815 unittest.expect(o, unittest.hasLength(2)); 844 unittest.expect(o, unittest.hasLength(2));
816 unittest.expect(o[0], unittest.equals('foo')); 845 unittest.expect(o[0], unittest.equals('foo'));
817 unittest.expect(o[1], unittest.equals('foo')); 846 unittest.expect(o[1], unittest.equals('foo'));
818 } 847 }
819 848
820 core.int buildCounterTemplate = 0; 849 core.int buildCounterTemplate = 0;
821 buildTemplate() { 850 buildTemplate() {
822 var o = new api.Template(); 851 var o = new api.Template();
823 buildCounterTemplate++; 852 buildCounterTemplate++;
824 if (buildCounterTemplate < 3) { 853 if (buildCounterTemplate < 3) {
825 o.automaticColumnNames = buildUnnamed796(); 854 o.automaticColumnNames = buildUnnamed357();
826 o.body = "foo"; 855 o.body = "foo";
827 o.kind = "foo"; 856 o.kind = "foo";
828 o.name = "foo"; 857 o.name = "foo";
829 o.tableId = "foo"; 858 o.tableId = "foo";
830 o.templateId = 42; 859 o.templateId = 42;
831 } 860 }
832 buildCounterTemplate--; 861 buildCounterTemplate--;
833 return o; 862 return o;
834 } 863 }
835 864
836 checkTemplate(api.Template o) { 865 checkTemplate(api.Template o) {
837 buildCounterTemplate++; 866 buildCounterTemplate++;
838 if (buildCounterTemplate < 3) { 867 if (buildCounterTemplate < 3) {
839 checkUnnamed796(o.automaticColumnNames); 868 checkUnnamed357(o.automaticColumnNames);
840 unittest.expect(o.body, unittest.equals('foo')); 869 unittest.expect(o.body, unittest.equals('foo'));
841 unittest.expect(o.kind, unittest.equals('foo')); 870 unittest.expect(o.kind, unittest.equals('foo'));
842 unittest.expect(o.name, unittest.equals('foo')); 871 unittest.expect(o.name, unittest.equals('foo'));
843 unittest.expect(o.tableId, unittest.equals('foo')); 872 unittest.expect(o.tableId, unittest.equals('foo'));
844 unittest.expect(o.templateId, unittest.equals(42)); 873 unittest.expect(o.templateId, unittest.equals(42));
845 } 874 }
846 buildCounterTemplate--; 875 buildCounterTemplate--;
847 } 876 }
848 877
849 buildUnnamed797() { 878 buildUnnamed358() {
850 var o = new core.List<api.Template>(); 879 var o = new core.List<api.Template>();
851 o.add(buildTemplate()); 880 o.add(buildTemplate());
852 o.add(buildTemplate()); 881 o.add(buildTemplate());
853 return o; 882 return o;
854 } 883 }
855 884
856 checkUnnamed797(core.List<api.Template> o) { 885 checkUnnamed358(core.List<api.Template> o) {
857 unittest.expect(o, unittest.hasLength(2)); 886 unittest.expect(o, unittest.hasLength(2));
858 checkTemplate(o[0]); 887 checkTemplate(o[0]);
859 checkTemplate(o[1]); 888 checkTemplate(o[1]);
860 } 889 }
861 890
862 core.int buildCounterTemplateList = 0; 891 core.int buildCounterTemplateList = 0;
863 buildTemplateList() { 892 buildTemplateList() {
864 var o = new api.TemplateList(); 893 var o = new api.TemplateList();
865 buildCounterTemplateList++; 894 buildCounterTemplateList++;
866 if (buildCounterTemplateList < 3) { 895 if (buildCounterTemplateList < 3) {
867 o.items = buildUnnamed797(); 896 o.items = buildUnnamed358();
868 o.kind = "foo"; 897 o.kind = "foo";
869 o.nextPageToken = "foo"; 898 o.nextPageToken = "foo";
870 o.totalItems = 42; 899 o.totalItems = 42;
871 } 900 }
872 buildCounterTemplateList--; 901 buildCounterTemplateList--;
873 return o; 902 return o;
874 } 903 }
875 904
876 checkTemplateList(api.TemplateList o) { 905 checkTemplateList(api.TemplateList o) {
877 buildCounterTemplateList++; 906 buildCounterTemplateList++;
878 if (buildCounterTemplateList < 3) { 907 if (buildCounterTemplateList < 3) {
879 checkUnnamed797(o.items); 908 checkUnnamed358(o.items);
880 unittest.expect(o.kind, unittest.equals('foo')); 909 unittest.expect(o.kind, unittest.equals('foo'));
881 unittest.expect(o.nextPageToken, unittest.equals('foo')); 910 unittest.expect(o.nextPageToken, unittest.equals('foo'));
882 unittest.expect(o.totalItems, unittest.equals(42)); 911 unittest.expect(o.totalItems, unittest.equals(42));
883 } 912 }
884 buildCounterTemplateList--; 913 buildCounterTemplateList--;
885 } 914 }
886 915
887 916
888 main() { 917 main() {
889 unittest.group("obj-schema-Bucket", () { 918 unittest.group("obj-schema-Bucket", () {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; 1138 api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
1110 var arg_tableId = "foo"; 1139 var arg_tableId = "foo";
1111 var arg_columnId = "foo"; 1140 var arg_columnId = "foo";
1112 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1141 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1113 var path = (req.url).path; 1142 var path = (req.url).path;
1114 var pathOffset = 0; 1143 var pathOffset = 0;
1115 var index; 1144 var index;
1116 var subPart; 1145 var subPart;
1117 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1146 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1118 pathOffset += 1; 1147 pathOffset += 1;
1119 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1148 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1120 pathOffset += 16; 1149 pathOffset += 16;
1121 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1150 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1122 pathOffset += 7; 1151 pathOffset += 7;
1123 index = path.indexOf("/columns/", pathOffset); 1152 index = path.indexOf("/columns/", pathOffset);
1124 unittest.expect(index >= 0, unittest.isTrue); 1153 unittest.expect(index >= 0, unittest.isTrue);
1125 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1154 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1126 pathOffset = index; 1155 pathOffset = index;
1127 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1156 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1128 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/")); 1157 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/"));
1129 pathOffset += 9; 1158 pathOffset += 9;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 api.ColumnResourceApi res = new api.FusiontablesApi(mock).column; 1193 api.ColumnResourceApi res = new api.FusiontablesApi(mock).column;
1165 var arg_tableId = "foo"; 1194 var arg_tableId = "foo";
1166 var arg_columnId = "foo"; 1195 var arg_columnId = "foo";
1167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1196 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1168 var path = (req.url).path; 1197 var path = (req.url).path;
1169 var pathOffset = 0; 1198 var pathOffset = 0;
1170 var index; 1199 var index;
1171 var subPart; 1200 var subPart;
1172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1201 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1173 pathOffset += 1; 1202 pathOffset += 1;
1174 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1203 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1175 pathOffset += 16; 1204 pathOffset += 16;
1176 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1205 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1177 pathOffset += 7; 1206 pathOffset += 7;
1178 index = path.indexOf("/columns/", pathOffset); 1207 index = path.indexOf("/columns/", pathOffset);
1179 unittest.expect(index >= 0, unittest.isTrue); 1208 unittest.expect(index >= 0, unittest.isTrue);
1180 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1209 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1181 pathOffset = index; 1210 pathOffset = index;
1182 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1211 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1183 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/")); 1212 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/"));
1184 pathOffset += 9; 1213 pathOffset += 9;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1253 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1225 var obj = new api.Column.fromJson(json); 1254 var obj = new api.Column.fromJson(json);
1226 checkColumn(obj); 1255 checkColumn(obj);
1227 1256
1228 var path = (req.url).path; 1257 var path = (req.url).path;
1229 var pathOffset = 0; 1258 var pathOffset = 0;
1230 var index; 1259 var index;
1231 var subPart; 1260 var subPart;
1232 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1261 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1233 pathOffset += 1; 1262 pathOffset += 1;
1234 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1263 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1235 pathOffset += 16; 1264 pathOffset += 16;
1236 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1265 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1237 pathOffset += 7; 1266 pathOffset += 7;
1238 index = path.indexOf("/columns", pathOffset); 1267 index = path.indexOf("/columns", pathOffset);
1239 unittest.expect(index >= 0, unittest.isTrue); 1268 unittest.expect(index >= 0, unittest.isTrue);
1240 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1269 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1241 pathOffset = index; 1270 pathOffset = index;
1242 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1271 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1243 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/columns")); 1272 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/columns"));
1244 pathOffset += 8; 1273 pathOffset += 8;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 var arg_tableId = "foo"; 1308 var arg_tableId = "foo";
1280 var arg_maxResults = 42; 1309 var arg_maxResults = 42;
1281 var arg_pageToken = "foo"; 1310 var arg_pageToken = "foo";
1282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1311 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1283 var path = (req.url).path; 1312 var path = (req.url).path;
1284 var pathOffset = 0; 1313 var pathOffset = 0;
1285 var index; 1314 var index;
1286 var subPart; 1315 var subPart;
1287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1316 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1288 pathOffset += 1; 1317 pathOffset += 1;
1289 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1318 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1290 pathOffset += 16; 1319 pathOffset += 16;
1291 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1320 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1292 pathOffset += 7; 1321 pathOffset += 7;
1293 index = path.indexOf("/columns", pathOffset); 1322 index = path.indexOf("/columns", pathOffset);
1294 unittest.expect(index >= 0, unittest.isTrue); 1323 unittest.expect(index >= 0, unittest.isTrue);
1295 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1324 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1296 pathOffset = index; 1325 pathOffset = index;
1297 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1326 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1298 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/columns")); 1327 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/columns"));
1299 pathOffset += 8; 1328 pathOffset += 8;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1368 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1340 var obj = new api.Column.fromJson(json); 1369 var obj = new api.Column.fromJson(json);
1341 checkColumn(obj); 1370 checkColumn(obj);
1342 1371
1343 var path = (req.url).path; 1372 var path = (req.url).path;
1344 var pathOffset = 0; 1373 var pathOffset = 0;
1345 var index; 1374 var index;
1346 var subPart; 1375 var subPart;
1347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1376 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1348 pathOffset += 1; 1377 pathOffset += 1;
1349 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1378 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1350 pathOffset += 16; 1379 pathOffset += 16;
1351 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1380 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1352 pathOffset += 7; 1381 pathOffset += 7;
1353 index = path.indexOf("/columns/", pathOffset); 1382 index = path.indexOf("/columns/", pathOffset);
1354 unittest.expect(index >= 0, unittest.isTrue); 1383 unittest.expect(index >= 0, unittest.isTrue);
1355 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1384 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1356 pathOffset = index; 1385 pathOffset = index;
1357 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1386 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1358 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/")); 1387 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/"));
1359 pathOffset += 9; 1388 pathOffset += 9;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1429 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1401 var obj = new api.Column.fromJson(json); 1430 var obj = new api.Column.fromJson(json);
1402 checkColumn(obj); 1431 checkColumn(obj);
1403 1432
1404 var path = (req.url).path; 1433 var path = (req.url).path;
1405 var pathOffset = 0; 1434 var pathOffset = 0;
1406 var index; 1435 var index;
1407 var subPart; 1436 var subPart;
1408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1437 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1409 pathOffset += 1; 1438 pathOffset += 1;
1410 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1439 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1411 pathOffset += 16; 1440 pathOffset += 16;
1412 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1441 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1413 pathOffset += 7; 1442 pathOffset += 7;
1414 index = path.indexOf("/columns/", pathOffset); 1443 index = path.indexOf("/columns/", pathOffset);
1415 unittest.expect(index >= 0, unittest.isTrue); 1444 unittest.expect(index >= 0, unittest.isTrue);
1416 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1445 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1417 pathOffset = index; 1446 pathOffset = index;
1418 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1447 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1419 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/")); 1448 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/columns/"));
1420 pathOffset += 9; 1449 pathOffset += 9;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 var arg_sql_1 = "foo"; 1493 var arg_sql_1 = "foo";
1465 var arg_hdrs = true; 1494 var arg_hdrs = true;
1466 var arg_typed = true; 1495 var arg_typed = true;
1467 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1496 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1468 var path = (req.url).path; 1497 var path = (req.url).path;
1469 var pathOffset = 0; 1498 var pathOffset = 0;
1470 var index; 1499 var index;
1471 var subPart; 1500 var subPart;
1472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1473 pathOffset += 1; 1502 pathOffset += 1;
1474 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1503 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1475 pathOffset += 16; 1504 pathOffset += 16;
1476 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("query")); 1505 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("query"));
1477 pathOffset += 5; 1506 pathOffset += 5;
1478 1507
1479 var query = (req.url).query; 1508 var query = (req.url).query;
1480 var queryOffset = 0; 1509 var queryOffset = 0;
1481 var queryMap = {}; 1510 var queryMap = {};
1482 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1511 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1483 parseBool(n) { 1512 parseBool(n) {
1484 if (n == "true") return true; 1513 if (n == "true") return true;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 var arg_sql_1 = "foo"; 1546 var arg_sql_1 = "foo";
1518 var arg_hdrs = true; 1547 var arg_hdrs = true;
1519 var arg_typed = true; 1548 var arg_typed = true;
1520 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1549 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1521 var path = (req.url).path; 1550 var path = (req.url).path;
1522 var pathOffset = 0; 1551 var pathOffset = 0;
1523 var index; 1552 var index;
1524 var subPart; 1553 var subPart;
1525 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1554 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1526 pathOffset += 1; 1555 pathOffset += 1;
1527 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1556 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1528 pathOffset += 16; 1557 pathOffset += 16;
1529 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("query")); 1558 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("query"));
1530 pathOffset += 5; 1559 pathOffset += 5;
1531 1560
1532 var query = (req.url).query; 1561 var query = (req.url).query;
1533 var queryOffset = 0; 1562 var queryOffset = 0;
1534 var queryMap = {}; 1563 var queryMap = {};
1535 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1564 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1536 parseBool(n) { 1565 parseBool(n) {
1537 if (n == "true") return true; 1566 if (n == "true") return true;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 api.StyleResourceApi res = new api.FusiontablesApi(mock).style; 1600 api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
1572 var arg_tableId = "foo"; 1601 var arg_tableId = "foo";
1573 var arg_styleId = 42; 1602 var arg_styleId = 42;
1574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1603 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1575 var path = (req.url).path; 1604 var path = (req.url).path;
1576 var pathOffset = 0; 1605 var pathOffset = 0;
1577 var index; 1606 var index;
1578 var subPart; 1607 var subPart;
1579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1608 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1580 pathOffset += 1; 1609 pathOffset += 1;
1581 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1610 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1582 pathOffset += 16; 1611 pathOffset += 16;
1583 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1612 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1584 pathOffset += 7; 1613 pathOffset += 7;
1585 index = path.indexOf("/styles/", pathOffset); 1614 index = path.indexOf("/styles/", pathOffset);
1586 unittest.expect(index >= 0, unittest.isTrue); 1615 unittest.expect(index >= 0, unittest.isTrue);
1587 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1616 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1588 pathOffset = index; 1617 pathOffset = index;
1589 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1618 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1590 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/")); 1619 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/"));
1591 pathOffset += 8; 1620 pathOffset += 8;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 api.StyleResourceApi res = new api.FusiontablesApi(mock).style; 1655 api.StyleResourceApi res = new api.FusiontablesApi(mock).style;
1627 var arg_tableId = "foo"; 1656 var arg_tableId = "foo";
1628 var arg_styleId = 42; 1657 var arg_styleId = 42;
1629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1658 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1630 var path = (req.url).path; 1659 var path = (req.url).path;
1631 var pathOffset = 0; 1660 var pathOffset = 0;
1632 var index; 1661 var index;
1633 var subPart; 1662 var subPart;
1634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1663 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1635 pathOffset += 1; 1664 pathOffset += 1;
1636 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1665 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1637 pathOffset += 16; 1666 pathOffset += 16;
1638 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1667 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1639 pathOffset += 7; 1668 pathOffset += 7;
1640 index = path.indexOf("/styles/", pathOffset); 1669 index = path.indexOf("/styles/", pathOffset);
1641 unittest.expect(index >= 0, unittest.isTrue); 1670 unittest.expect(index >= 0, unittest.isTrue);
1642 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1671 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1643 pathOffset = index; 1672 pathOffset = index;
1644 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1673 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1645 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/")); 1674 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/"));
1646 pathOffset += 8; 1675 pathOffset += 8;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1715 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1687 var obj = new api.StyleSetting.fromJson(json); 1716 var obj = new api.StyleSetting.fromJson(json);
1688 checkStyleSetting(obj); 1717 checkStyleSetting(obj);
1689 1718
1690 var path = (req.url).path; 1719 var path = (req.url).path;
1691 var pathOffset = 0; 1720 var pathOffset = 0;
1692 var index; 1721 var index;
1693 var subPart; 1722 var subPart;
1694 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1723 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1695 pathOffset += 1; 1724 pathOffset += 1;
1696 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1725 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1697 pathOffset += 16; 1726 pathOffset += 16;
1698 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1727 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1699 pathOffset += 7; 1728 pathOffset += 7;
1700 index = path.indexOf("/styles", pathOffset); 1729 index = path.indexOf("/styles", pathOffset);
1701 unittest.expect(index >= 0, unittest.isTrue); 1730 unittest.expect(index >= 0, unittest.isTrue);
1702 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1731 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1703 pathOffset = index; 1732 pathOffset = index;
1704 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1733 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1705 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/styles")); 1734 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/styles"));
1706 pathOffset += 7; 1735 pathOffset += 7;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1741 var arg_tableId = "foo"; 1770 var arg_tableId = "foo";
1742 var arg_maxResults = 42; 1771 var arg_maxResults = 42;
1743 var arg_pageToken = "foo"; 1772 var arg_pageToken = "foo";
1744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1773 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1745 var path = (req.url).path; 1774 var path = (req.url).path;
1746 var pathOffset = 0; 1775 var pathOffset = 0;
1747 var index; 1776 var index;
1748 var subPart; 1777 var subPart;
1749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1778 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1750 pathOffset += 1; 1779 pathOffset += 1;
1751 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1780 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1752 pathOffset += 16; 1781 pathOffset += 16;
1753 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1782 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1754 pathOffset += 7; 1783 pathOffset += 7;
1755 index = path.indexOf("/styles", pathOffset); 1784 index = path.indexOf("/styles", pathOffset);
1756 unittest.expect(index >= 0, unittest.isTrue); 1785 unittest.expect(index >= 0, unittest.isTrue);
1757 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1786 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1758 pathOffset = index; 1787 pathOffset = index;
1759 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1788 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1760 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/styles")); 1789 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/styles"));
1761 pathOffset += 7; 1790 pathOffset += 7;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1830 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1802 var obj = new api.StyleSetting.fromJson(json); 1831 var obj = new api.StyleSetting.fromJson(json);
1803 checkStyleSetting(obj); 1832 checkStyleSetting(obj);
1804 1833
1805 var path = (req.url).path; 1834 var path = (req.url).path;
1806 var pathOffset = 0; 1835 var pathOffset = 0;
1807 var index; 1836 var index;
1808 var subPart; 1837 var subPart;
1809 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1838 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1810 pathOffset += 1; 1839 pathOffset += 1;
1811 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1840 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1812 pathOffset += 16; 1841 pathOffset += 16;
1813 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1842 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1814 pathOffset += 7; 1843 pathOffset += 7;
1815 index = path.indexOf("/styles/", pathOffset); 1844 index = path.indexOf("/styles/", pathOffset);
1816 unittest.expect(index >= 0, unittest.isTrue); 1845 unittest.expect(index >= 0, unittest.isTrue);
1817 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1846 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1818 pathOffset = index; 1847 pathOffset = index;
1819 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1848 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1820 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/")); 1849 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/"));
1821 pathOffset += 8; 1850 pathOffset += 8;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1891 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1863 var obj = new api.StyleSetting.fromJson(json); 1892 var obj = new api.StyleSetting.fromJson(json);
1864 checkStyleSetting(obj); 1893 checkStyleSetting(obj);
1865 1894
1866 var path = (req.url).path; 1895 var path = (req.url).path;
1867 var pathOffset = 0; 1896 var pathOffset = 0;
1868 var index; 1897 var index;
1869 var subPart; 1898 var subPart;
1870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1871 pathOffset += 1; 1900 pathOffset += 1;
1872 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1901 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1873 pathOffset += 16; 1902 pathOffset += 16;
1874 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1903 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1875 pathOffset += 7; 1904 pathOffset += 7;
1876 index = path.indexOf("/styles/", pathOffset); 1905 index = path.indexOf("/styles/", pathOffset);
1877 unittest.expect(index >= 0, unittest.isTrue); 1906 unittest.expect(index >= 0, unittest.isTrue);
1878 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1907 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1879 pathOffset = index; 1908 pathOffset = index;
1880 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1909 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1881 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/")); 1910 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/styles/"));
1882 pathOffset += 8; 1911 pathOffset += 8;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 api.TableResourceApi res = new api.FusiontablesApi(mock).table; 1952 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
1924 var arg_tableId = "foo"; 1953 var arg_tableId = "foo";
1925 var arg_copyPresentation = true; 1954 var arg_copyPresentation = true;
1926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1955 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1927 var path = (req.url).path; 1956 var path = (req.url).path;
1928 var pathOffset = 0; 1957 var pathOffset = 0;
1929 var index; 1958 var index;
1930 var subPart; 1959 var subPart;
1931 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1960 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1932 pathOffset += 1; 1961 pathOffset += 1;
1933 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 1962 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1934 pathOffset += 16; 1963 pathOffset += 16;
1935 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 1964 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1936 pathOffset += 7; 1965 pathOffset += 7;
1937 index = path.indexOf("/copy", pathOffset); 1966 index = path.indexOf("/copy", pathOffset);
1938 unittest.expect(index >= 0, unittest.isTrue); 1967 unittest.expect(index >= 0, unittest.isTrue);
1939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1968 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1940 pathOffset = index; 1969 pathOffset = index;
1941 unittest.expect(subPart, unittest.equals("$arg_tableId")); 1970 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1942 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/copy")); 1971 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/copy"));
1943 pathOffset += 5; 1972 pathOffset += 5;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 var mock = new common_test.HttpServerMock(); 2006 var mock = new common_test.HttpServerMock();
1978 api.TableResourceApi res = new api.FusiontablesApi(mock).table; 2007 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
1979 var arg_tableId = "foo"; 2008 var arg_tableId = "foo";
1980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2009 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1981 var path = (req.url).path; 2010 var path = (req.url).path;
1982 var pathOffset = 0; 2011 var pathOffset = 0;
1983 var index; 2012 var index;
1984 var subPart; 2013 var subPart;
1985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2014 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1986 pathOffset += 1; 2015 pathOffset += 1;
1987 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2016 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
1988 pathOffset += 16; 2017 pathOffset += 16;
1989 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2018 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
1990 pathOffset += 7; 2019 pathOffset += 7;
1991 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
1992 pathOffset = path.length; 2021 pathOffset = path.length;
1993 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2022 unittest.expect(subPart, unittest.equals("$arg_tableId"));
1994 2023
1995 var query = (req.url).query; 2024 var query = (req.url).query;
1996 var queryOffset = 0; 2025 var queryOffset = 0;
1997 var queryMap = {}; 2026 var queryMap = {};
(...skipping 26 matching lines...) Expand all
2024 var mock = new common_test.HttpServerMock(); 2053 var mock = new common_test.HttpServerMock();
2025 api.TableResourceApi res = new api.FusiontablesApi(mock).table; 2054 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
2026 var arg_tableId = "foo"; 2055 var arg_tableId = "foo";
2027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2056 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2028 var path = (req.url).path; 2057 var path = (req.url).path;
2029 var pathOffset = 0; 2058 var pathOffset = 0;
2030 var index; 2059 var index;
2031 var subPart; 2060 var subPart;
2032 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2033 pathOffset += 1; 2062 pathOffset += 1;
2034 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2063 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2035 pathOffset += 16; 2064 pathOffset += 16;
2036 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2065 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2037 pathOffset += 7; 2066 pathOffset += 7;
2038 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2039 pathOffset = path.length; 2068 pathOffset = path.length;
2040 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2069 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2041 2070
2042 var query = (req.url).query; 2071 var query = (req.url).query;
2043 var queryOffset = 0; 2072 var queryOffset = 0;
2044 var queryMap = {}; 2073 var queryMap = {};
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 var arg_endLine = 42; 2109 var arg_endLine = 42;
2081 var arg_isStrict = true; 2110 var arg_isStrict = true;
2082 var arg_startLine = 42; 2111 var arg_startLine = 42;
2083 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2112 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2084 var path = (req.url).path; 2113 var path = (req.url).path;
2085 var pathOffset = 0; 2114 var pathOffset = 0;
2086 var index; 2115 var index;
2087 var subPart; 2116 var subPart;
2088 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2117 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2089 pathOffset += 1; 2118 pathOffset += 1;
2090 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2119 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2091 pathOffset += 16; 2120 pathOffset += 16;
2092 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2121 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2093 pathOffset += 7; 2122 pathOffset += 7;
2094 index = path.indexOf("/import", pathOffset); 2123 index = path.indexOf("/import", pathOffset);
2095 unittest.expect(index >= 0, unittest.isTrue); 2124 unittest.expect(index >= 0, unittest.isTrue);
2096 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2125 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2097 pathOffset = index; 2126 pathOffset = index;
2098 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2127 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2099 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/import")); 2128 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/import"));
2100 pathOffset += 7; 2129 pathOffset += 7;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 var arg_name = "foo"; 2171 var arg_name = "foo";
2143 var arg_delimiter = "foo"; 2172 var arg_delimiter = "foo";
2144 var arg_encoding = "foo"; 2173 var arg_encoding = "foo";
2145 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2174 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2146 var path = (req.url).path; 2175 var path = (req.url).path;
2147 var pathOffset = 0; 2176 var pathOffset = 0;
2148 var index; 2177 var index;
2149 var subPart; 2178 var subPart;
2150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2179 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2151 pathOffset += 1; 2180 pathOffset += 1;
2152 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2181 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2153 pathOffset += 16; 2182 pathOffset += 16;
2154 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("tables/import")); 2183 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("tables/import"));
2155 pathOffset += 13; 2184 pathOffset += 13;
2156 2185
2157 var query = (req.url).query; 2186 var query = (req.url).query;
2158 var queryOffset = 0; 2187 var queryOffset = 0;
2159 var queryMap = {}; 2188 var queryMap = {};
2160 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2189 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2161 parseBool(n) { 2190 parseBool(n) {
2162 if (n == "true") return true; 2191 if (n == "true") return true;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2223 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2195 var obj = new api.Table.fromJson(json); 2224 var obj = new api.Table.fromJson(json);
2196 checkTable(obj); 2225 checkTable(obj);
2197 2226
2198 var path = (req.url).path; 2227 var path = (req.url).path;
2199 var pathOffset = 0; 2228 var pathOffset = 0;
2200 var index; 2229 var index;
2201 var subPart; 2230 var subPart;
2202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2231 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2203 pathOffset += 1; 2232 pathOffset += 1;
2204 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2233 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2205 pathOffset += 16; 2234 pathOffset += 16;
2206 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("tables")); 2235 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("tables"));
2207 pathOffset += 6; 2236 pathOffset += 6;
2208 2237
2209 var query = (req.url).query; 2238 var query = (req.url).query;
2210 var queryOffset = 0; 2239 var queryOffset = 0;
2211 var queryMap = {}; 2240 var queryMap = {};
2212 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2241 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2213 parseBool(n) { 2242 parseBool(n) {
2214 if (n == "true") return true; 2243 if (n == "true") return true;
(...skipping 26 matching lines...) Expand all
2241 api.TableResourceApi res = new api.FusiontablesApi(mock).table; 2270 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
2242 var arg_maxResults = 42; 2271 var arg_maxResults = 42;
2243 var arg_pageToken = "foo"; 2272 var arg_pageToken = "foo";
2244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2273 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2245 var path = (req.url).path; 2274 var path = (req.url).path;
2246 var pathOffset = 0; 2275 var pathOffset = 0;
2247 var index; 2276 var index;
2248 var subPart; 2277 var subPart;
2249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2250 pathOffset += 1; 2279 pathOffset += 1;
2251 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2280 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2252 pathOffset += 16; 2281 pathOffset += 16;
2253 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("tables")); 2282 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("tables"));
2254 pathOffset += 6; 2283 pathOffset += 6;
2255 2284
2256 var query = (req.url).query; 2285 var query = (req.url).query;
2257 var queryOffset = 0; 2286 var queryOffset = 0;
2258 var queryMap = {}; 2287 var queryMap = {};
2259 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2288 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2260 parseBool(n) { 2289 parseBool(n) {
2261 if (n == "true") return true; 2290 if (n == "true") return true;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2294 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2323 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2295 var obj = new api.Table.fromJson(json); 2324 var obj = new api.Table.fromJson(json);
2296 checkTable(obj); 2325 checkTable(obj);
2297 2326
2298 var path = (req.url).path; 2327 var path = (req.url).path;
2299 var pathOffset = 0; 2328 var pathOffset = 0;
2300 var index; 2329 var index;
2301 var subPart; 2330 var subPart;
2302 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2331 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2303 pathOffset += 1; 2332 pathOffset += 1;
2304 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2333 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2305 pathOffset += 16; 2334 pathOffset += 16;
2306 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2335 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2307 pathOffset += 7; 2336 pathOffset += 7;
2308 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2337 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2309 pathOffset = path.length; 2338 pathOffset = path.length;
2310 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2339 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2311 2340
2312 var query = (req.url).query; 2341 var query = (req.url).query;
2313 var queryOffset = 0; 2342 var queryOffset = 0;
2314 var queryMap = {}; 2343 var queryMap = {};
(...skipping 17 matching lines...) Expand all
2332 "content-type" : "application/json; charset=utf-8", 2361 "content-type" : "application/json; charset=utf-8",
2333 }; 2362 };
2334 var resp = convert.JSON.encode(buildTable()); 2363 var resp = convert.JSON.encode(buildTable());
2335 return new async.Future.value(common_test.stringResponse(200, h, resp)); 2364 return new async.Future.value(common_test.stringResponse(200, h, resp));
2336 }), true); 2365 }), true);
2337 res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceView Definition).then(unittest.expectAsync(((api.Table response) { 2366 res.patch(arg_request, arg_tableId, replaceViewDefinition: arg_replaceView Definition).then(unittest.expectAsync(((api.Table response) {
2338 checkTable(response); 2367 checkTable(response);
2339 }))); 2368 })));
2340 }); 2369 });
2341 2370
2371 unittest.test("method--replaceRows", () {
2372 // TODO: Implement tests for media upload;
2373 // TODO: Implement tests for media download;
2374
2375 var mock = new common_test.HttpServerMock();
2376 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
2377 var arg_tableId = "foo";
2378 var arg_delimiter = "foo";
2379 var arg_encoding = "foo";
2380 var arg_endLine = 42;
2381 var arg_isStrict = true;
2382 var arg_startLine = 42;
2383 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2384 var path = (req.url).path;
2385 var pathOffset = 0;
2386 var index;
2387 var subPart;
2388 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2389 pathOffset += 1;
2390 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2391 pathOffset += 16;
2392 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2393 pathOffset += 7;
2394 index = path.indexOf("/replace", pathOffset);
2395 unittest.expect(index >= 0, unittest.isTrue);
2396 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2397 pathOffset = index;
2398 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2399 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/replace"));
2400 pathOffset += 8;
2401
2402 var query = (req.url).query;
2403 var queryOffset = 0;
2404 var queryMap = {};
2405 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2406 parseBool(n) {
2407 if (n == "true") return true;
2408 if (n == "false") return false;
2409 if (n == null) return null;
2410 throw new core.ArgumentError("Invalid boolean: $n");
2411 }
2412 if (query.length > 0) {
2413 for (var part in query.split("&")) {
2414 var keyvalue = part.split("=");
2415 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2416 }
2417 }
2418 unittest.expect(queryMap["delimiter"].first, unittest.equals(arg_delimit er));
2419 unittest.expect(queryMap["encoding"].first, unittest.equals(arg_encoding ));
2420 unittest.expect(core.int.parse(queryMap["endLine"].first), unittest.equa ls(arg_endLine));
2421 unittest.expect(queryMap["isStrict"].first, unittest.equals("$arg_isStri ct"));
2422 unittest.expect(core.int.parse(queryMap["startLine"].first), unittest.eq uals(arg_startLine));
2423
2424
2425 var h = {
2426 "content-type" : "application/json; charset=utf-8",
2427 };
2428 var resp = convert.JSON.encode(buildTask());
2429 return new async.Future.value(common_test.stringResponse(200, h, resp));
2430 }), true);
2431 res.replaceRows(arg_tableId, delimiter: arg_delimiter, encoding: arg_encod ing, endLine: arg_endLine, isStrict: arg_isStrict, startLine: arg_startLine).the n(unittest.expectAsync(((api.Task response) {
2432 checkTask(response);
2433 })));
2434 });
2435
2342 unittest.test("method--update", () { 2436 unittest.test("method--update", () {
2343 2437
2344 var mock = new common_test.HttpServerMock(); 2438 var mock = new common_test.HttpServerMock();
2345 api.TableResourceApi res = new api.FusiontablesApi(mock).table; 2439 api.TableResourceApi res = new api.FusiontablesApi(mock).table;
2346 var arg_request = buildTable(); 2440 var arg_request = buildTable();
2347 var arg_tableId = "foo"; 2441 var arg_tableId = "foo";
2348 var arg_replaceViewDefinition = true; 2442 var arg_replaceViewDefinition = true;
2349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2443 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2350 var obj = new api.Table.fromJson(json); 2444 var obj = new api.Table.fromJson(json);
2351 checkTable(obj); 2445 checkTable(obj);
2352 2446
2353 var path = (req.url).path; 2447 var path = (req.url).path;
2354 var pathOffset = 0; 2448 var pathOffset = 0;
2355 var index; 2449 var index;
2356 var subPart; 2450 var subPart;
2357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2451 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2358 pathOffset += 1; 2452 pathOffset += 1;
2359 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2453 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2360 pathOffset += 16; 2454 pathOffset += 16;
2361 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2455 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2362 pathOffset += 7; 2456 pathOffset += 7;
2363 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2457 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2364 pathOffset = path.length; 2458 pathOffset = path.length;
2365 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2459 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2366 2460
2367 var query = (req.url).query; 2461 var query = (req.url).query;
2368 var queryOffset = 0; 2462 var queryOffset = 0;
2369 var queryMap = {}; 2463 var queryMap = {};
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 api.TaskResourceApi res = new api.FusiontablesApi(mock).task; 2498 api.TaskResourceApi res = new api.FusiontablesApi(mock).task;
2405 var arg_tableId = "foo"; 2499 var arg_tableId = "foo";
2406 var arg_taskId = "foo"; 2500 var arg_taskId = "foo";
2407 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2501 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2408 var path = (req.url).path; 2502 var path = (req.url).path;
2409 var pathOffset = 0; 2503 var pathOffset = 0;
2410 var index; 2504 var index;
2411 var subPart; 2505 var subPart;
2412 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2413 pathOffset += 1; 2507 pathOffset += 1;
2414 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2508 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2415 pathOffset += 16; 2509 pathOffset += 16;
2416 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2510 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2417 pathOffset += 7; 2511 pathOffset += 7;
2418 index = path.indexOf("/tasks/", pathOffset); 2512 index = path.indexOf("/tasks/", pathOffset);
2419 unittest.expect(index >= 0, unittest.isTrue); 2513 unittest.expect(index >= 0, unittest.isTrue);
2420 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2514 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2421 pathOffset = index; 2515 pathOffset = index;
2422 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2516 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2423 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/tasks/")); 2517 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/tasks/"));
2424 pathOffset += 7; 2518 pathOffset += 7;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 api.TaskResourceApi res = new api.FusiontablesApi(mock).task; 2553 api.TaskResourceApi res = new api.FusiontablesApi(mock).task;
2460 var arg_tableId = "foo"; 2554 var arg_tableId = "foo";
2461 var arg_taskId = "foo"; 2555 var arg_taskId = "foo";
2462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2556 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2463 var path = (req.url).path; 2557 var path = (req.url).path;
2464 var pathOffset = 0; 2558 var pathOffset = 0;
2465 var index; 2559 var index;
2466 var subPart; 2560 var subPart;
2467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2468 pathOffset += 1; 2562 pathOffset += 1;
2469 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2563 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2470 pathOffset += 16; 2564 pathOffset += 16;
2471 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2565 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2472 pathOffset += 7; 2566 pathOffset += 7;
2473 index = path.indexOf("/tasks/", pathOffset); 2567 index = path.indexOf("/tasks/", pathOffset);
2474 unittest.expect(index >= 0, unittest.isTrue); 2568 unittest.expect(index >= 0, unittest.isTrue);
2475 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2569 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2476 pathOffset = index; 2570 pathOffset = index;
2477 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2571 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2478 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/tasks/")); 2572 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/tasks/"));
2479 pathOffset += 7; 2573 pathOffset += 7;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 var arg_maxResults = 42; 2612 var arg_maxResults = 42;
2519 var arg_pageToken = "foo"; 2613 var arg_pageToken = "foo";
2520 var arg_startIndex = 42; 2614 var arg_startIndex = 42;
2521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2615 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2522 var path = (req.url).path; 2616 var path = (req.url).path;
2523 var pathOffset = 0; 2617 var pathOffset = 0;
2524 var index; 2618 var index;
2525 var subPart; 2619 var subPart;
2526 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2527 pathOffset += 1; 2621 pathOffset += 1;
2528 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2622 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2529 pathOffset += 16; 2623 pathOffset += 16;
2530 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2624 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2531 pathOffset += 7; 2625 pathOffset += 7;
2532 index = path.indexOf("/tasks", pathOffset); 2626 index = path.indexOf("/tasks", pathOffset);
2533 unittest.expect(index >= 0, unittest.isTrue); 2627 unittest.expect(index >= 0, unittest.isTrue);
2534 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2628 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2535 pathOffset = index; 2629 pathOffset = index;
2536 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2630 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2537 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/tasks")); 2631 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/tasks"));
2538 pathOffset += 6; 2632 pathOffset += 6;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2579 api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; 2673 api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
2580 var arg_tableId = "foo"; 2674 var arg_tableId = "foo";
2581 var arg_templateId = 42; 2675 var arg_templateId = 42;
2582 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2676 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2583 var path = (req.url).path; 2677 var path = (req.url).path;
2584 var pathOffset = 0; 2678 var pathOffset = 0;
2585 var index; 2679 var index;
2586 var subPart; 2680 var subPart;
2587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2588 pathOffset += 1; 2682 pathOffset += 1;
2589 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2683 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2590 pathOffset += 16; 2684 pathOffset += 16;
2591 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2685 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2592 pathOffset += 7; 2686 pathOffset += 7;
2593 index = path.indexOf("/templates/", pathOffset); 2687 index = path.indexOf("/templates/", pathOffset);
2594 unittest.expect(index >= 0, unittest.isTrue); 2688 unittest.expect(index >= 0, unittest.isTrue);
2595 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2689 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2596 pathOffset = index; 2690 pathOffset = index;
2597 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2691 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2598 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/")); 2692 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
2599 pathOffset += 11; 2693 pathOffset += 11;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 api.TemplateResourceApi res = new api.FusiontablesApi(mock).template; 2728 api.TemplateResourceApi res = new api.FusiontablesApi(mock).template;
2635 var arg_tableId = "foo"; 2729 var arg_tableId = "foo";
2636 var arg_templateId = 42; 2730 var arg_templateId = 42;
2637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2731 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2638 var path = (req.url).path; 2732 var path = (req.url).path;
2639 var pathOffset = 0; 2733 var pathOffset = 0;
2640 var index; 2734 var index;
2641 var subPart; 2735 var subPart;
2642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2643 pathOffset += 1; 2737 pathOffset += 1;
2644 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2738 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2645 pathOffset += 16; 2739 pathOffset += 16;
2646 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2740 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2647 pathOffset += 7; 2741 pathOffset += 7;
2648 index = path.indexOf("/templates/", pathOffset); 2742 index = path.indexOf("/templates/", pathOffset);
2649 unittest.expect(index >= 0, unittest.isTrue); 2743 unittest.expect(index >= 0, unittest.isTrue);
2650 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2744 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2651 pathOffset = index; 2745 pathOffset = index;
2652 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2746 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2653 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/")); 2747 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
2654 pathOffset += 11; 2748 pathOffset += 11;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2694 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2788 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2695 var obj = new api.Template.fromJson(json); 2789 var obj = new api.Template.fromJson(json);
2696 checkTemplate(obj); 2790 checkTemplate(obj);
2697 2791
2698 var path = (req.url).path; 2792 var path = (req.url).path;
2699 var pathOffset = 0; 2793 var pathOffset = 0;
2700 var index; 2794 var index;
2701 var subPart; 2795 var subPart;
2702 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2796 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2703 pathOffset += 1; 2797 pathOffset += 1;
2704 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2798 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2705 pathOffset += 16; 2799 pathOffset += 16;
2706 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2800 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2707 pathOffset += 7; 2801 pathOffset += 7;
2708 index = path.indexOf("/templates", pathOffset); 2802 index = path.indexOf("/templates", pathOffset);
2709 unittest.expect(index >= 0, unittest.isTrue); 2803 unittest.expect(index >= 0, unittest.isTrue);
2710 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2804 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2711 pathOffset = index; 2805 pathOffset = index;
2712 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2806 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2713 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates")); 2807 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates"));
2714 pathOffset += 10; 2808 pathOffset += 10;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 var arg_tableId = "foo"; 2843 var arg_tableId = "foo";
2750 var arg_maxResults = 42; 2844 var arg_maxResults = 42;
2751 var arg_pageToken = "foo"; 2845 var arg_pageToken = "foo";
2752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2846 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2753 var path = (req.url).path; 2847 var path = (req.url).path;
2754 var pathOffset = 0; 2848 var pathOffset = 0;
2755 var index; 2849 var index;
2756 var subPart; 2850 var subPart;
2757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2851 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2758 pathOffset += 1; 2852 pathOffset += 1;
2759 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2853 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2760 pathOffset += 16; 2854 pathOffset += 16;
2761 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2855 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2762 pathOffset += 7; 2856 pathOffset += 7;
2763 index = path.indexOf("/templates", pathOffset); 2857 index = path.indexOf("/templates", pathOffset);
2764 unittest.expect(index >= 0, unittest.isTrue); 2858 unittest.expect(index >= 0, unittest.isTrue);
2765 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2859 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2766 pathOffset = index; 2860 pathOffset = index;
2767 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2861 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2768 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates")); 2862 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/templates"));
2769 pathOffset += 10; 2863 pathOffset += 10;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2903 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2810 var obj = new api.Template.fromJson(json); 2904 var obj = new api.Template.fromJson(json);
2811 checkTemplate(obj); 2905 checkTemplate(obj);
2812 2906
2813 var path = (req.url).path; 2907 var path = (req.url).path;
2814 var pathOffset = 0; 2908 var pathOffset = 0;
2815 var index; 2909 var index;
2816 var subPart; 2910 var subPart;
2817 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2911 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2818 pathOffset += 1; 2912 pathOffset += 1;
2819 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2913 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2820 pathOffset += 16; 2914 pathOffset += 16;
2821 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2915 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2822 pathOffset += 7; 2916 pathOffset += 7;
2823 index = path.indexOf("/templates/", pathOffset); 2917 index = path.indexOf("/templates/", pathOffset);
2824 unittest.expect(index >= 0, unittest.isTrue); 2918 unittest.expect(index >= 0, unittest.isTrue);
2825 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2919 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2826 pathOffset = index; 2920 pathOffset = index;
2827 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2921 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2828 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/")); 2922 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
2829 pathOffset += 11; 2923 pathOffset += 11;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2964 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2871 var obj = new api.Template.fromJson(json); 2965 var obj = new api.Template.fromJson(json);
2872 checkTemplate(obj); 2966 checkTemplate(obj);
2873 2967
2874 var path = (req.url).path; 2968 var path = (req.url).path;
2875 var pathOffset = 0; 2969 var pathOffset = 0;
2876 var index; 2970 var index;
2877 var subPart; 2971 var subPart;
2878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2972 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2879 pathOffset += 1; 2973 pathOffset += 1;
2880 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v1/")); 2974 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("fusiontables/v2/"));
2881 pathOffset += 16; 2975 pathOffset += 16;
2882 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/")); 2976 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("tables/"));
2883 pathOffset += 7; 2977 pathOffset += 7;
2884 index = path.indexOf("/templates/", pathOffset); 2978 index = path.indexOf("/templates/", pathOffset);
2885 unittest.expect(index >= 0, unittest.isTrue); 2979 unittest.expect(index >= 0, unittest.isTrue);
2886 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2980 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2887 pathOffset = index; 2981 pathOffset = index;
2888 unittest.expect(subPart, unittest.equals("$arg_tableId")); 2982 unittest.expect(subPart, unittest.equals("$arg_tableId"));
2889 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/")); 2983 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/templates/"));
2890 pathOffset += 11; 2984 pathOffset += 11;
(...skipping 28 matching lines...) Expand all
2919 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA sync(((api.Template response) { 3013 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA sync(((api.Template response) {
2920 checkTemplate(response); 3014 checkTemplate(response);
2921 }))); 3015 })));
2922 }); 3016 });
2923 3017
2924 }); 3018 });
2925 3019
2926 3020
2927 } 3021 }
2928 3022
OLDNEW
« 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