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

Side by Side Diff: generated/googleapis/test/bigquery/v2_test.dart

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 months 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.bigquery.v2.test; 1 library googleapis.bigquery.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;
(...skipping 27 matching lines...) Expand all
38 unittest.expect(o.domain, unittest.equals('foo')); 38 unittest.expect(o.domain, unittest.equals('foo'));
39 unittest.expect(o.groupByEmail, unittest.equals('foo')); 39 unittest.expect(o.groupByEmail, unittest.equals('foo'));
40 unittest.expect(o.role, unittest.equals('foo')); 40 unittest.expect(o.role, unittest.equals('foo'));
41 unittest.expect(o.specialGroup, unittest.equals('foo')); 41 unittest.expect(o.specialGroup, unittest.equals('foo'));
42 unittest.expect(o.userByEmail, unittest.equals('foo')); 42 unittest.expect(o.userByEmail, unittest.equals('foo'));
43 checkTableReference(o.view); 43 checkTableReference(o.view);
44 } 44 }
45 buildCounterDatasetAccess--; 45 buildCounterDatasetAccess--;
46 } 46 }
47 47
48 buildUnnamed1013() { 48 buildUnnamed1041() {
49 var o = new core.List<api.DatasetAccess>(); 49 var o = new core.List<api.DatasetAccess>();
50 o.add(buildDatasetAccess()); 50 o.add(buildDatasetAccess());
51 o.add(buildDatasetAccess()); 51 o.add(buildDatasetAccess());
52 return o; 52 return o;
53 } 53 }
54 54
55 checkUnnamed1013(core.List<api.DatasetAccess> o) { 55 checkUnnamed1041(core.List<api.DatasetAccess> o) {
56 unittest.expect(o, unittest.hasLength(2)); 56 unittest.expect(o, unittest.hasLength(2));
57 checkDatasetAccess(o[0]); 57 checkDatasetAccess(o[0]);
58 checkDatasetAccess(o[1]); 58 checkDatasetAccess(o[1]);
59 } 59 }
60 60
61 core.int buildCounterDataset = 0; 61 core.int buildCounterDataset = 0;
62 buildDataset() { 62 buildDataset() {
63 var o = new api.Dataset(); 63 var o = new api.Dataset();
64 buildCounterDataset++; 64 buildCounterDataset++;
65 if (buildCounterDataset < 3) { 65 if (buildCounterDataset < 3) {
66 o.access = buildUnnamed1013(); 66 o.access = buildUnnamed1041();
67 o.creationTime = "foo"; 67 o.creationTime = "foo";
68 o.datasetReference = buildDatasetReference(); 68 o.datasetReference = buildDatasetReference();
69 o.description = "foo"; 69 o.description = "foo";
70 o.etag = "foo"; 70 o.etag = "foo";
71 o.friendlyName = "foo"; 71 o.friendlyName = "foo";
72 o.id = "foo"; 72 o.id = "foo";
73 o.kind = "foo"; 73 o.kind = "foo";
74 o.lastModifiedTime = "foo"; 74 o.lastModifiedTime = "foo";
75 o.selfLink = "foo"; 75 o.selfLink = "foo";
76 } 76 }
77 buildCounterDataset--; 77 buildCounterDataset--;
78 return o; 78 return o;
79 } 79 }
80 80
81 checkDataset(api.Dataset o) { 81 checkDataset(api.Dataset o) {
82 buildCounterDataset++; 82 buildCounterDataset++;
83 if (buildCounterDataset < 3) { 83 if (buildCounterDataset < 3) {
84 checkUnnamed1013(o.access); 84 checkUnnamed1041(o.access);
85 unittest.expect(o.creationTime, unittest.equals('foo')); 85 unittest.expect(o.creationTime, unittest.equals('foo'));
86 checkDatasetReference(o.datasetReference); 86 checkDatasetReference(o.datasetReference);
87 unittest.expect(o.description, unittest.equals('foo')); 87 unittest.expect(o.description, unittest.equals('foo'));
88 unittest.expect(o.etag, unittest.equals('foo')); 88 unittest.expect(o.etag, unittest.equals('foo'));
89 unittest.expect(o.friendlyName, unittest.equals('foo')); 89 unittest.expect(o.friendlyName, unittest.equals('foo'));
90 unittest.expect(o.id, unittest.equals('foo')); 90 unittest.expect(o.id, unittest.equals('foo'));
91 unittest.expect(o.kind, unittest.equals('foo')); 91 unittest.expect(o.kind, unittest.equals('foo'));
92 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); 92 unittest.expect(o.lastModifiedTime, unittest.equals('foo'));
93 unittest.expect(o.selfLink, unittest.equals('foo')); 93 unittest.expect(o.selfLink, unittest.equals('foo'));
94 } 94 }
(...skipping 18 matching lines...) Expand all
113 buildCounterDatasetListDatasets++; 113 buildCounterDatasetListDatasets++;
114 if (buildCounterDatasetListDatasets < 3) { 114 if (buildCounterDatasetListDatasets < 3) {
115 checkDatasetReference(o.datasetReference); 115 checkDatasetReference(o.datasetReference);
116 unittest.expect(o.friendlyName, unittest.equals('foo')); 116 unittest.expect(o.friendlyName, unittest.equals('foo'));
117 unittest.expect(o.id, unittest.equals('foo')); 117 unittest.expect(o.id, unittest.equals('foo'));
118 unittest.expect(o.kind, unittest.equals('foo')); 118 unittest.expect(o.kind, unittest.equals('foo'));
119 } 119 }
120 buildCounterDatasetListDatasets--; 120 buildCounterDatasetListDatasets--;
121 } 121 }
122 122
123 buildUnnamed1014() { 123 buildUnnamed1042() {
124 var o = new core.List<api.DatasetListDatasets>(); 124 var o = new core.List<api.DatasetListDatasets>();
125 o.add(buildDatasetListDatasets()); 125 o.add(buildDatasetListDatasets());
126 o.add(buildDatasetListDatasets()); 126 o.add(buildDatasetListDatasets());
127 return o; 127 return o;
128 } 128 }
129 129
130 checkUnnamed1014(core.List<api.DatasetListDatasets> o) { 130 checkUnnamed1042(core.List<api.DatasetListDatasets> o) {
131 unittest.expect(o, unittest.hasLength(2)); 131 unittest.expect(o, unittest.hasLength(2));
132 checkDatasetListDatasets(o[0]); 132 checkDatasetListDatasets(o[0]);
133 checkDatasetListDatasets(o[1]); 133 checkDatasetListDatasets(o[1]);
134 } 134 }
135 135
136 core.int buildCounterDatasetList = 0; 136 core.int buildCounterDatasetList = 0;
137 buildDatasetList() { 137 buildDatasetList() {
138 var o = new api.DatasetList(); 138 var o = new api.DatasetList();
139 buildCounterDatasetList++; 139 buildCounterDatasetList++;
140 if (buildCounterDatasetList < 3) { 140 if (buildCounterDatasetList < 3) {
141 o.datasets = buildUnnamed1014(); 141 o.datasets = buildUnnamed1042();
142 o.etag = "foo"; 142 o.etag = "foo";
143 o.kind = "foo"; 143 o.kind = "foo";
144 o.nextPageToken = "foo"; 144 o.nextPageToken = "foo";
145 } 145 }
146 buildCounterDatasetList--; 146 buildCounterDatasetList--;
147 return o; 147 return o;
148 } 148 }
149 149
150 checkDatasetList(api.DatasetList o) { 150 checkDatasetList(api.DatasetList o) {
151 buildCounterDatasetList++; 151 buildCounterDatasetList++;
152 if (buildCounterDatasetList < 3) { 152 if (buildCounterDatasetList < 3) {
153 checkUnnamed1014(o.datasets); 153 checkUnnamed1042(o.datasets);
154 unittest.expect(o.etag, unittest.equals('foo')); 154 unittest.expect(o.etag, unittest.equals('foo'));
155 unittest.expect(o.kind, unittest.equals('foo')); 155 unittest.expect(o.kind, unittest.equals('foo'));
156 unittest.expect(o.nextPageToken, unittest.equals('foo')); 156 unittest.expect(o.nextPageToken, unittest.equals('foo'));
157 } 157 }
158 buildCounterDatasetList--; 158 buildCounterDatasetList--;
159 } 159 }
160 160
161 core.int buildCounterDatasetReference = 0; 161 core.int buildCounterDatasetReference = 0;
162 buildDatasetReference() { 162 buildDatasetReference() {
163 var o = new api.DatasetReference(); 163 var o = new api.DatasetReference();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 buildCounterErrorProto++; 197 buildCounterErrorProto++;
198 if (buildCounterErrorProto < 3) { 198 if (buildCounterErrorProto < 3) {
199 unittest.expect(o.debugInfo, unittest.equals('foo')); 199 unittest.expect(o.debugInfo, unittest.equals('foo'));
200 unittest.expect(o.location, unittest.equals('foo')); 200 unittest.expect(o.location, unittest.equals('foo'));
201 unittest.expect(o.message, unittest.equals('foo')); 201 unittest.expect(o.message, unittest.equals('foo'));
202 unittest.expect(o.reason, unittest.equals('foo')); 202 unittest.expect(o.reason, unittest.equals('foo'));
203 } 203 }
204 buildCounterErrorProto--; 204 buildCounterErrorProto--;
205 } 205 }
206 206
207 buildUnnamed1015() { 207 buildUnnamed1043() {
208 var o = new core.List<api.TableRow>(); 208 var o = new core.List<api.TableRow>();
209 o.add(buildTableRow()); 209 o.add(buildTableRow());
210 o.add(buildTableRow()); 210 o.add(buildTableRow());
211 return o; 211 return o;
212 } 212 }
213 213
214 checkUnnamed1015(core.List<api.TableRow> o) { 214 checkUnnamed1043(core.List<api.TableRow> o) {
215 unittest.expect(o, unittest.hasLength(2)); 215 unittest.expect(o, unittest.hasLength(2));
216 checkTableRow(o[0]); 216 checkTableRow(o[0]);
217 checkTableRow(o[1]); 217 checkTableRow(o[1]);
218 } 218 }
219 219
220 core.int buildCounterGetQueryResultsResponse = 0; 220 core.int buildCounterGetQueryResultsResponse = 0;
221 buildGetQueryResultsResponse() { 221 buildGetQueryResultsResponse() {
222 var o = new api.GetQueryResultsResponse(); 222 var o = new api.GetQueryResultsResponse();
223 buildCounterGetQueryResultsResponse++; 223 buildCounterGetQueryResultsResponse++;
224 if (buildCounterGetQueryResultsResponse < 3) { 224 if (buildCounterGetQueryResultsResponse < 3) {
225 o.cacheHit = true; 225 o.cacheHit = true;
226 o.etag = "foo"; 226 o.etag = "foo";
227 o.jobComplete = true; 227 o.jobComplete = true;
228 o.jobReference = buildJobReference(); 228 o.jobReference = buildJobReference();
229 o.kind = "foo"; 229 o.kind = "foo";
230 o.pageToken = "foo"; 230 o.pageToken = "foo";
231 o.rows = buildUnnamed1015(); 231 o.rows = buildUnnamed1043();
232 o.schema = buildTableSchema(); 232 o.schema = buildTableSchema();
233 o.totalRows = "foo"; 233 o.totalRows = "foo";
234 } 234 }
235 buildCounterGetQueryResultsResponse--; 235 buildCounterGetQueryResultsResponse--;
236 return o; 236 return o;
237 } 237 }
238 238
239 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { 239 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) {
240 buildCounterGetQueryResultsResponse++; 240 buildCounterGetQueryResultsResponse++;
241 if (buildCounterGetQueryResultsResponse < 3) { 241 if (buildCounterGetQueryResultsResponse < 3) {
242 unittest.expect(o.cacheHit, unittest.isTrue); 242 unittest.expect(o.cacheHit, unittest.isTrue);
243 unittest.expect(o.etag, unittest.equals('foo')); 243 unittest.expect(o.etag, unittest.equals('foo'));
244 unittest.expect(o.jobComplete, unittest.isTrue); 244 unittest.expect(o.jobComplete, unittest.isTrue);
245 checkJobReference(o.jobReference); 245 checkJobReference(o.jobReference);
246 unittest.expect(o.kind, unittest.equals('foo')); 246 unittest.expect(o.kind, unittest.equals('foo'));
247 unittest.expect(o.pageToken, unittest.equals('foo')); 247 unittest.expect(o.pageToken, unittest.equals('foo'));
248 checkUnnamed1015(o.rows); 248 checkUnnamed1043(o.rows);
249 checkTableSchema(o.schema); 249 checkTableSchema(o.schema);
250 unittest.expect(o.totalRows, unittest.equals('foo')); 250 unittest.expect(o.totalRows, unittest.equals('foo'));
251 } 251 }
252 buildCounterGetQueryResultsResponse--; 252 buildCounterGetQueryResultsResponse--;
253 } 253 }
254 254
255 core.int buildCounterJob = 0; 255 core.int buildCounterJob = 0;
256 buildJob() { 256 buildJob() {
257 var o = new api.Job(); 257 var o = new api.Job();
258 buildCounterJob++; 258 buildCounterJob++;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 checkJobConfigurationTableCopy(o.copy); 307 checkJobConfigurationTableCopy(o.copy);
308 unittest.expect(o.dryRun, unittest.isTrue); 308 unittest.expect(o.dryRun, unittest.isTrue);
309 checkJobConfigurationExtract(o.extract); 309 checkJobConfigurationExtract(o.extract);
310 checkJobConfigurationLink(o.link); 310 checkJobConfigurationLink(o.link);
311 checkJobConfigurationLoad(o.load); 311 checkJobConfigurationLoad(o.load);
312 checkJobConfigurationQuery(o.query); 312 checkJobConfigurationQuery(o.query);
313 } 313 }
314 buildCounterJobConfiguration--; 314 buildCounterJobConfiguration--;
315 } 315 }
316 316
317 buildUnnamed1016() { 317 buildUnnamed1044() {
318 var o = new core.List<core.String>(); 318 var o = new core.List<core.String>();
319 o.add("foo"); 319 o.add("foo");
320 o.add("foo"); 320 o.add("foo");
321 return o; 321 return o;
322 } 322 }
323 323
324 checkUnnamed1016(core.List<core.String> o) { 324 checkUnnamed1044(core.List<core.String> o) {
325 unittest.expect(o, unittest.hasLength(2)); 325 unittest.expect(o, unittest.hasLength(2));
326 unittest.expect(o[0], unittest.equals('foo')); 326 unittest.expect(o[0], unittest.equals('foo'));
327 unittest.expect(o[1], unittest.equals('foo')); 327 unittest.expect(o[1], unittest.equals('foo'));
328 } 328 }
329 329
330 core.int buildCounterJobConfigurationExtract = 0; 330 core.int buildCounterJobConfigurationExtract = 0;
331 buildJobConfigurationExtract() { 331 buildJobConfigurationExtract() {
332 var o = new api.JobConfigurationExtract(); 332 var o = new api.JobConfigurationExtract();
333 buildCounterJobConfigurationExtract++; 333 buildCounterJobConfigurationExtract++;
334 if (buildCounterJobConfigurationExtract < 3) { 334 if (buildCounterJobConfigurationExtract < 3) {
335 o.compression = "foo"; 335 o.compression = "foo";
336 o.destinationFormat = "foo"; 336 o.destinationFormat = "foo";
337 o.destinationUri = "foo"; 337 o.destinationUri = "foo";
338 o.destinationUris = buildUnnamed1016(); 338 o.destinationUris = buildUnnamed1044();
339 o.fieldDelimiter = "foo"; 339 o.fieldDelimiter = "foo";
340 o.printHeader = true; 340 o.printHeader = true;
341 o.sourceTable = buildTableReference(); 341 o.sourceTable = buildTableReference();
342 } 342 }
343 buildCounterJobConfigurationExtract--; 343 buildCounterJobConfigurationExtract--;
344 return o; 344 return o;
345 } 345 }
346 346
347 checkJobConfigurationExtract(api.JobConfigurationExtract o) { 347 checkJobConfigurationExtract(api.JobConfigurationExtract o) {
348 buildCounterJobConfigurationExtract++; 348 buildCounterJobConfigurationExtract++;
349 if (buildCounterJobConfigurationExtract < 3) { 349 if (buildCounterJobConfigurationExtract < 3) {
350 unittest.expect(o.compression, unittest.equals('foo')); 350 unittest.expect(o.compression, unittest.equals('foo'));
351 unittest.expect(o.destinationFormat, unittest.equals('foo')); 351 unittest.expect(o.destinationFormat, unittest.equals('foo'));
352 unittest.expect(o.destinationUri, unittest.equals('foo')); 352 unittest.expect(o.destinationUri, unittest.equals('foo'));
353 checkUnnamed1016(o.destinationUris); 353 checkUnnamed1044(o.destinationUris);
354 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); 354 unittest.expect(o.fieldDelimiter, unittest.equals('foo'));
355 unittest.expect(o.printHeader, unittest.isTrue); 355 unittest.expect(o.printHeader, unittest.isTrue);
356 checkTableReference(o.sourceTable); 356 checkTableReference(o.sourceTable);
357 } 357 }
358 buildCounterJobConfigurationExtract--; 358 buildCounterJobConfigurationExtract--;
359 } 359 }
360 360
361 buildUnnamed1017() { 361 buildUnnamed1045() {
362 var o = new core.List<core.String>(); 362 var o = new core.List<core.String>();
363 o.add("foo"); 363 o.add("foo");
364 o.add("foo"); 364 o.add("foo");
365 return o; 365 return o;
366 } 366 }
367 367
368 checkUnnamed1017(core.List<core.String> o) { 368 checkUnnamed1045(core.List<core.String> o) {
369 unittest.expect(o, unittest.hasLength(2)); 369 unittest.expect(o, unittest.hasLength(2));
370 unittest.expect(o[0], unittest.equals('foo')); 370 unittest.expect(o[0], unittest.equals('foo'));
371 unittest.expect(o[1], unittest.equals('foo')); 371 unittest.expect(o[1], unittest.equals('foo'));
372 } 372 }
373 373
374 core.int buildCounterJobConfigurationLink = 0; 374 core.int buildCounterJobConfigurationLink = 0;
375 buildJobConfigurationLink() { 375 buildJobConfigurationLink() {
376 var o = new api.JobConfigurationLink(); 376 var o = new api.JobConfigurationLink();
377 buildCounterJobConfigurationLink++; 377 buildCounterJobConfigurationLink++;
378 if (buildCounterJobConfigurationLink < 3) { 378 if (buildCounterJobConfigurationLink < 3) {
379 o.createDisposition = "foo"; 379 o.createDisposition = "foo";
380 o.destinationTable = buildTableReference(); 380 o.destinationTable = buildTableReference();
381 o.sourceUri = buildUnnamed1017(); 381 o.sourceUri = buildUnnamed1045();
382 o.writeDisposition = "foo"; 382 o.writeDisposition = "foo";
383 } 383 }
384 buildCounterJobConfigurationLink--; 384 buildCounterJobConfigurationLink--;
385 return o; 385 return o;
386 } 386 }
387 387
388 checkJobConfigurationLink(api.JobConfigurationLink o) { 388 checkJobConfigurationLink(api.JobConfigurationLink o) {
389 buildCounterJobConfigurationLink++; 389 buildCounterJobConfigurationLink++;
390 if (buildCounterJobConfigurationLink < 3) { 390 if (buildCounterJobConfigurationLink < 3) {
391 unittest.expect(o.createDisposition, unittest.equals('foo')); 391 unittest.expect(o.createDisposition, unittest.equals('foo'));
392 checkTableReference(o.destinationTable); 392 checkTableReference(o.destinationTable);
393 checkUnnamed1017(o.sourceUri); 393 checkUnnamed1045(o.sourceUri);
394 unittest.expect(o.writeDisposition, unittest.equals('foo')); 394 unittest.expect(o.writeDisposition, unittest.equals('foo'));
395 } 395 }
396 buildCounterJobConfigurationLink--; 396 buildCounterJobConfigurationLink--;
397 } 397 }
398 398
399 buildUnnamed1018() { 399 buildUnnamed1046() {
400 var o = new core.List<core.String>(); 400 var o = new core.List<core.String>();
401 o.add("foo"); 401 o.add("foo");
402 o.add("foo"); 402 o.add("foo");
403 return o; 403 return o;
404 } 404 }
405 405
406 checkUnnamed1018(core.List<core.String> o) { 406 checkUnnamed1046(core.List<core.String> o) {
407 unittest.expect(o, unittest.hasLength(2)); 407 unittest.expect(o, unittest.hasLength(2));
408 unittest.expect(o[0], unittest.equals('foo')); 408 unittest.expect(o[0], unittest.equals('foo'));
409 unittest.expect(o[1], unittest.equals('foo')); 409 unittest.expect(o[1], unittest.equals('foo'));
410 } 410 }
411 411
412 core.int buildCounterJobConfigurationLoad = 0; 412 core.int buildCounterJobConfigurationLoad = 0;
413 buildJobConfigurationLoad() { 413 buildJobConfigurationLoad() {
414 var o = new api.JobConfigurationLoad(); 414 var o = new api.JobConfigurationLoad();
415 buildCounterJobConfigurationLoad++; 415 buildCounterJobConfigurationLoad++;
416 if (buildCounterJobConfigurationLoad < 3) { 416 if (buildCounterJobConfigurationLoad < 3) {
417 o.allowJaggedRows = true; 417 o.allowJaggedRows = true;
418 o.allowQuotedNewlines = true; 418 o.allowQuotedNewlines = true;
419 o.createDisposition = "foo"; 419 o.createDisposition = "foo";
420 o.destinationTable = buildTableReference(); 420 o.destinationTable = buildTableReference();
421 o.encoding = "foo"; 421 o.encoding = "foo";
422 o.fieldDelimiter = "foo"; 422 o.fieldDelimiter = "foo";
423 o.ignoreUnknownValues = true; 423 o.ignoreUnknownValues = true;
424 o.maxBadRecords = 42; 424 o.maxBadRecords = 42;
425 o.quote = "foo"; 425 o.quote = "foo";
426 o.schema = buildTableSchema(); 426 o.schema = buildTableSchema();
427 o.schemaInline = "foo"; 427 o.schemaInline = "foo";
428 o.schemaInlineFormat = "foo"; 428 o.schemaInlineFormat = "foo";
429 o.skipLeadingRows = 42; 429 o.skipLeadingRows = 42;
430 o.sourceFormat = "foo"; 430 o.sourceFormat = "foo";
431 o.sourceUris = buildUnnamed1018(); 431 o.sourceUris = buildUnnamed1046();
432 o.writeDisposition = "foo"; 432 o.writeDisposition = "foo";
433 } 433 }
434 buildCounterJobConfigurationLoad--; 434 buildCounterJobConfigurationLoad--;
435 return o; 435 return o;
436 } 436 }
437 437
438 checkJobConfigurationLoad(api.JobConfigurationLoad o) { 438 checkJobConfigurationLoad(api.JobConfigurationLoad o) {
439 buildCounterJobConfigurationLoad++; 439 buildCounterJobConfigurationLoad++;
440 if (buildCounterJobConfigurationLoad < 3) { 440 if (buildCounterJobConfigurationLoad < 3) {
441 unittest.expect(o.allowJaggedRows, unittest.isTrue); 441 unittest.expect(o.allowJaggedRows, unittest.isTrue);
442 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); 442 unittest.expect(o.allowQuotedNewlines, unittest.isTrue);
443 unittest.expect(o.createDisposition, unittest.equals('foo')); 443 unittest.expect(o.createDisposition, unittest.equals('foo'));
444 checkTableReference(o.destinationTable); 444 checkTableReference(o.destinationTable);
445 unittest.expect(o.encoding, unittest.equals('foo')); 445 unittest.expect(o.encoding, unittest.equals('foo'));
446 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); 446 unittest.expect(o.fieldDelimiter, unittest.equals('foo'));
447 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); 447 unittest.expect(o.ignoreUnknownValues, unittest.isTrue);
448 unittest.expect(o.maxBadRecords, unittest.equals(42)); 448 unittest.expect(o.maxBadRecords, unittest.equals(42));
449 unittest.expect(o.quote, unittest.equals('foo')); 449 unittest.expect(o.quote, unittest.equals('foo'));
450 checkTableSchema(o.schema); 450 checkTableSchema(o.schema);
451 unittest.expect(o.schemaInline, unittest.equals('foo')); 451 unittest.expect(o.schemaInline, unittest.equals('foo'));
452 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); 452 unittest.expect(o.schemaInlineFormat, unittest.equals('foo'));
453 unittest.expect(o.skipLeadingRows, unittest.equals(42)); 453 unittest.expect(o.skipLeadingRows, unittest.equals(42));
454 unittest.expect(o.sourceFormat, unittest.equals('foo')); 454 unittest.expect(o.sourceFormat, unittest.equals('foo'));
455 checkUnnamed1018(o.sourceUris); 455 checkUnnamed1046(o.sourceUris);
456 unittest.expect(o.writeDisposition, unittest.equals('foo')); 456 unittest.expect(o.writeDisposition, unittest.equals('foo'));
457 } 457 }
458 buildCounterJobConfigurationLoad--; 458 buildCounterJobConfigurationLoad--;
459 } 459 }
460 460
461 core.int buildCounterJobConfigurationQuery = 0; 461 core.int buildCounterJobConfigurationQuery = 0;
462 buildJobConfigurationQuery() { 462 buildJobConfigurationQuery() {
463 var o = new api.JobConfigurationQuery(); 463 var o = new api.JobConfigurationQuery();
464 buildCounterJobConfigurationQuery++; 464 buildCounterJobConfigurationQuery++;
465 if (buildCounterJobConfigurationQuery < 3) { 465 if (buildCounterJobConfigurationQuery < 3) {
(...skipping 22 matching lines...) Expand all
488 unittest.expect(o.flattenResults, unittest.isTrue); 488 unittest.expect(o.flattenResults, unittest.isTrue);
489 unittest.expect(o.preserveNulls, unittest.isTrue); 489 unittest.expect(o.preserveNulls, unittest.isTrue);
490 unittest.expect(o.priority, unittest.equals('foo')); 490 unittest.expect(o.priority, unittest.equals('foo'));
491 unittest.expect(o.query, unittest.equals('foo')); 491 unittest.expect(o.query, unittest.equals('foo'));
492 unittest.expect(o.useQueryCache, unittest.isTrue); 492 unittest.expect(o.useQueryCache, unittest.isTrue);
493 unittest.expect(o.writeDisposition, unittest.equals('foo')); 493 unittest.expect(o.writeDisposition, unittest.equals('foo'));
494 } 494 }
495 buildCounterJobConfigurationQuery--; 495 buildCounterJobConfigurationQuery--;
496 } 496 }
497 497
498 buildUnnamed1019() { 498 buildUnnamed1047() {
499 var o = new core.List<api.TableReference>(); 499 var o = new core.List<api.TableReference>();
500 o.add(buildTableReference()); 500 o.add(buildTableReference());
501 o.add(buildTableReference()); 501 o.add(buildTableReference());
502 return o; 502 return o;
503 } 503 }
504 504
505 checkUnnamed1019(core.List<api.TableReference> o) { 505 checkUnnamed1047(core.List<api.TableReference> o) {
506 unittest.expect(o, unittest.hasLength(2)); 506 unittest.expect(o, unittest.hasLength(2));
507 checkTableReference(o[0]); 507 checkTableReference(o[0]);
508 checkTableReference(o[1]); 508 checkTableReference(o[1]);
509 } 509 }
510 510
511 core.int buildCounterJobConfigurationTableCopy = 0; 511 core.int buildCounterJobConfigurationTableCopy = 0;
512 buildJobConfigurationTableCopy() { 512 buildJobConfigurationTableCopy() {
513 var o = new api.JobConfigurationTableCopy(); 513 var o = new api.JobConfigurationTableCopy();
514 buildCounterJobConfigurationTableCopy++; 514 buildCounterJobConfigurationTableCopy++;
515 if (buildCounterJobConfigurationTableCopy < 3) { 515 if (buildCounterJobConfigurationTableCopy < 3) {
516 o.createDisposition = "foo"; 516 o.createDisposition = "foo";
517 o.destinationTable = buildTableReference(); 517 o.destinationTable = buildTableReference();
518 o.sourceTable = buildTableReference(); 518 o.sourceTable = buildTableReference();
519 o.sourceTables = buildUnnamed1019(); 519 o.sourceTables = buildUnnamed1047();
520 o.writeDisposition = "foo"; 520 o.writeDisposition = "foo";
521 } 521 }
522 buildCounterJobConfigurationTableCopy--; 522 buildCounterJobConfigurationTableCopy--;
523 return o; 523 return o;
524 } 524 }
525 525
526 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { 526 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) {
527 buildCounterJobConfigurationTableCopy++; 527 buildCounterJobConfigurationTableCopy++;
528 if (buildCounterJobConfigurationTableCopy < 3) { 528 if (buildCounterJobConfigurationTableCopy < 3) {
529 unittest.expect(o.createDisposition, unittest.equals('foo')); 529 unittest.expect(o.createDisposition, unittest.equals('foo'));
530 checkTableReference(o.destinationTable); 530 checkTableReference(o.destinationTable);
531 checkTableReference(o.sourceTable); 531 checkTableReference(o.sourceTable);
532 checkUnnamed1019(o.sourceTables); 532 checkUnnamed1047(o.sourceTables);
533 unittest.expect(o.writeDisposition, unittest.equals('foo')); 533 unittest.expect(o.writeDisposition, unittest.equals('foo'));
534 } 534 }
535 buildCounterJobConfigurationTableCopy--; 535 buildCounterJobConfigurationTableCopy--;
536 } 536 }
537 537
538 core.int buildCounterJobListJobs = 0; 538 core.int buildCounterJobListJobs = 0;
539 buildJobListJobs() { 539 buildJobListJobs() {
540 var o = new api.JobListJobs(); 540 var o = new api.JobListJobs();
541 buildCounterJobListJobs++; 541 buildCounterJobListJobs++;
542 if (buildCounterJobListJobs < 3) { 542 if (buildCounterJobListJobs < 3) {
(...skipping 20 matching lines...) Expand all
563 checkJobReference(o.jobReference); 563 checkJobReference(o.jobReference);
564 unittest.expect(o.kind, unittest.equals('foo')); 564 unittest.expect(o.kind, unittest.equals('foo'));
565 unittest.expect(o.state, unittest.equals('foo')); 565 unittest.expect(o.state, unittest.equals('foo'));
566 checkJobStatistics(o.statistics); 566 checkJobStatistics(o.statistics);
567 checkJobStatus(o.status); 567 checkJobStatus(o.status);
568 unittest.expect(o.userEmail, unittest.equals('foo')); 568 unittest.expect(o.userEmail, unittest.equals('foo'));
569 } 569 }
570 buildCounterJobListJobs--; 570 buildCounterJobListJobs--;
571 } 571 }
572 572
573 buildUnnamed1020() { 573 buildUnnamed1048() {
574 var o = new core.List<api.JobListJobs>(); 574 var o = new core.List<api.JobListJobs>();
575 o.add(buildJobListJobs()); 575 o.add(buildJobListJobs());
576 o.add(buildJobListJobs()); 576 o.add(buildJobListJobs());
577 return o; 577 return o;
578 } 578 }
579 579
580 checkUnnamed1020(core.List<api.JobListJobs> o) { 580 checkUnnamed1048(core.List<api.JobListJobs> o) {
581 unittest.expect(o, unittest.hasLength(2)); 581 unittest.expect(o, unittest.hasLength(2));
582 checkJobListJobs(o[0]); 582 checkJobListJobs(o[0]);
583 checkJobListJobs(o[1]); 583 checkJobListJobs(o[1]);
584 } 584 }
585 585
586 core.int buildCounterJobList = 0; 586 core.int buildCounterJobList = 0;
587 buildJobList() { 587 buildJobList() {
588 var o = new api.JobList(); 588 var o = new api.JobList();
589 buildCounterJobList++; 589 buildCounterJobList++;
590 if (buildCounterJobList < 3) { 590 if (buildCounterJobList < 3) {
591 o.etag = "foo"; 591 o.etag = "foo";
592 o.jobs = buildUnnamed1020(); 592 o.jobs = buildUnnamed1048();
593 o.kind = "foo"; 593 o.kind = "foo";
594 o.nextPageToken = "foo"; 594 o.nextPageToken = "foo";
595 o.totalItems = 42; 595 o.totalItems = 42;
596 } 596 }
597 buildCounterJobList--; 597 buildCounterJobList--;
598 return o; 598 return o;
599 } 599 }
600 600
601 checkJobList(api.JobList o) { 601 checkJobList(api.JobList o) {
602 buildCounterJobList++; 602 buildCounterJobList++;
603 if (buildCounterJobList < 3) { 603 if (buildCounterJobList < 3) {
604 unittest.expect(o.etag, unittest.equals('foo')); 604 unittest.expect(o.etag, unittest.equals('foo'));
605 checkUnnamed1020(o.jobs); 605 checkUnnamed1048(o.jobs);
606 unittest.expect(o.kind, unittest.equals('foo')); 606 unittest.expect(o.kind, unittest.equals('foo'));
607 unittest.expect(o.nextPageToken, unittest.equals('foo')); 607 unittest.expect(o.nextPageToken, unittest.equals('foo'));
608 unittest.expect(o.totalItems, unittest.equals(42)); 608 unittest.expect(o.totalItems, unittest.equals(42));
609 } 609 }
610 buildCounterJobList--; 610 buildCounterJobList--;
611 } 611 }
612 612
613 core.int buildCounterJobReference = 0; 613 core.int buildCounterJobReference = 0;
614 buildJobReference() { 614 buildJobReference() {
615 var o = new api.JobReference(); 615 var o = new api.JobReference();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 buildCounterJobStatistics3++; 699 buildCounterJobStatistics3++;
700 if (buildCounterJobStatistics3 < 3) { 700 if (buildCounterJobStatistics3 < 3) {
701 unittest.expect(o.inputFileBytes, unittest.equals('foo')); 701 unittest.expect(o.inputFileBytes, unittest.equals('foo'));
702 unittest.expect(o.inputFiles, unittest.equals('foo')); 702 unittest.expect(o.inputFiles, unittest.equals('foo'));
703 unittest.expect(o.outputBytes, unittest.equals('foo')); 703 unittest.expect(o.outputBytes, unittest.equals('foo'));
704 unittest.expect(o.outputRows, unittest.equals('foo')); 704 unittest.expect(o.outputRows, unittest.equals('foo'));
705 } 705 }
706 buildCounterJobStatistics3--; 706 buildCounterJobStatistics3--;
707 } 707 }
708 708
709 buildUnnamed1021() { 709 buildUnnamed1049() {
710 var o = new core.List<api.ErrorProto>(); 710 var o = new core.List<api.ErrorProto>();
711 o.add(buildErrorProto()); 711 o.add(buildErrorProto());
712 o.add(buildErrorProto()); 712 o.add(buildErrorProto());
713 return o; 713 return o;
714 } 714 }
715 715
716 checkUnnamed1021(core.List<api.ErrorProto> o) { 716 checkUnnamed1049(core.List<api.ErrorProto> o) {
717 unittest.expect(o, unittest.hasLength(2)); 717 unittest.expect(o, unittest.hasLength(2));
718 checkErrorProto(o[0]); 718 checkErrorProto(o[0]);
719 checkErrorProto(o[1]); 719 checkErrorProto(o[1]);
720 } 720 }
721 721
722 core.int buildCounterJobStatus = 0; 722 core.int buildCounterJobStatus = 0;
723 buildJobStatus() { 723 buildJobStatus() {
724 var o = new api.JobStatus(); 724 var o = new api.JobStatus();
725 buildCounterJobStatus++; 725 buildCounterJobStatus++;
726 if (buildCounterJobStatus < 3) { 726 if (buildCounterJobStatus < 3) {
727 o.errorResult = buildErrorProto(); 727 o.errorResult = buildErrorProto();
728 o.errors = buildUnnamed1021(); 728 o.errors = buildUnnamed1049();
729 o.state = "foo"; 729 o.state = "foo";
730 } 730 }
731 buildCounterJobStatus--; 731 buildCounterJobStatus--;
732 return o; 732 return o;
733 } 733 }
734 734
735 checkJobStatus(api.JobStatus o) { 735 checkJobStatus(api.JobStatus o) {
736 buildCounterJobStatus++; 736 buildCounterJobStatus++;
737 if (buildCounterJobStatus < 3) { 737 if (buildCounterJobStatus < 3) {
738 checkErrorProto(o.errorResult); 738 checkErrorProto(o.errorResult);
739 checkUnnamed1021(o.errors); 739 checkUnnamed1049(o.errors);
740 unittest.expect(o.state, unittest.equals('foo')); 740 unittest.expect(o.state, unittest.equals('foo'));
741 } 741 }
742 buildCounterJobStatus--; 742 buildCounterJobStatus--;
743 } 743 }
744 744
745 buildJsonObject() { 745 buildJsonObject() {
746 var o = new api.JsonObject(); 746 var o = new api.JsonObject();
747 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 747 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
748 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 748 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
749 return o; 749 return o;
(...skipping 25 matching lines...) Expand all
775 if (buildCounterProjectListProjects < 3) { 775 if (buildCounterProjectListProjects < 3) {
776 unittest.expect(o.friendlyName, unittest.equals('foo')); 776 unittest.expect(o.friendlyName, unittest.equals('foo'));
777 unittest.expect(o.id, unittest.equals('foo')); 777 unittest.expect(o.id, unittest.equals('foo'));
778 unittest.expect(o.kind, unittest.equals('foo')); 778 unittest.expect(o.kind, unittest.equals('foo'));
779 unittest.expect(o.numericId, unittest.equals('foo')); 779 unittest.expect(o.numericId, unittest.equals('foo'));
780 checkProjectReference(o.projectReference); 780 checkProjectReference(o.projectReference);
781 } 781 }
782 buildCounterProjectListProjects--; 782 buildCounterProjectListProjects--;
783 } 783 }
784 784
785 buildUnnamed1022() { 785 buildUnnamed1050() {
786 var o = new core.List<api.ProjectListProjects>(); 786 var o = new core.List<api.ProjectListProjects>();
787 o.add(buildProjectListProjects()); 787 o.add(buildProjectListProjects());
788 o.add(buildProjectListProjects()); 788 o.add(buildProjectListProjects());
789 return o; 789 return o;
790 } 790 }
791 791
792 checkUnnamed1022(core.List<api.ProjectListProjects> o) { 792 checkUnnamed1050(core.List<api.ProjectListProjects> o) {
793 unittest.expect(o, unittest.hasLength(2)); 793 unittest.expect(o, unittest.hasLength(2));
794 checkProjectListProjects(o[0]); 794 checkProjectListProjects(o[0]);
795 checkProjectListProjects(o[1]); 795 checkProjectListProjects(o[1]);
796 } 796 }
797 797
798 core.int buildCounterProjectList = 0; 798 core.int buildCounterProjectList = 0;
799 buildProjectList() { 799 buildProjectList() {
800 var o = new api.ProjectList(); 800 var o = new api.ProjectList();
801 buildCounterProjectList++; 801 buildCounterProjectList++;
802 if (buildCounterProjectList < 3) { 802 if (buildCounterProjectList < 3) {
803 o.etag = "foo"; 803 o.etag = "foo";
804 o.kind = "foo"; 804 o.kind = "foo";
805 o.nextPageToken = "foo"; 805 o.nextPageToken = "foo";
806 o.projects = buildUnnamed1022(); 806 o.projects = buildUnnamed1050();
807 o.totalItems = 42; 807 o.totalItems = 42;
808 } 808 }
809 buildCounterProjectList--; 809 buildCounterProjectList--;
810 return o; 810 return o;
811 } 811 }
812 812
813 checkProjectList(api.ProjectList o) { 813 checkProjectList(api.ProjectList o) {
814 buildCounterProjectList++; 814 buildCounterProjectList++;
815 if (buildCounterProjectList < 3) { 815 if (buildCounterProjectList < 3) {
816 unittest.expect(o.etag, unittest.equals('foo')); 816 unittest.expect(o.etag, unittest.equals('foo'));
817 unittest.expect(o.kind, unittest.equals('foo')); 817 unittest.expect(o.kind, unittest.equals('foo'));
818 unittest.expect(o.nextPageToken, unittest.equals('foo')); 818 unittest.expect(o.nextPageToken, unittest.equals('foo'));
819 checkUnnamed1022(o.projects); 819 checkUnnamed1050(o.projects);
820 unittest.expect(o.totalItems, unittest.equals(42)); 820 unittest.expect(o.totalItems, unittest.equals(42));
821 } 821 }
822 buildCounterProjectList--; 822 buildCounterProjectList--;
823 } 823 }
824 824
825 core.int buildCounterProjectReference = 0; 825 core.int buildCounterProjectReference = 0;
826 buildProjectReference() { 826 buildProjectReference() {
827 var o = new api.ProjectReference(); 827 var o = new api.ProjectReference();
828 buildCounterProjectReference++; 828 buildCounterProjectReference++;
829 if (buildCounterProjectReference < 3) { 829 if (buildCounterProjectReference < 3) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 unittest.expect(o.kind, unittest.equals('foo')); 867 unittest.expect(o.kind, unittest.equals('foo'));
868 unittest.expect(o.maxResults, unittest.equals(42)); 868 unittest.expect(o.maxResults, unittest.equals(42));
869 unittest.expect(o.preserveNulls, unittest.isTrue); 869 unittest.expect(o.preserveNulls, unittest.isTrue);
870 unittest.expect(o.query, unittest.equals('foo')); 870 unittest.expect(o.query, unittest.equals('foo'));
871 unittest.expect(o.timeoutMs, unittest.equals(42)); 871 unittest.expect(o.timeoutMs, unittest.equals(42));
872 unittest.expect(o.useQueryCache, unittest.isTrue); 872 unittest.expect(o.useQueryCache, unittest.isTrue);
873 } 873 }
874 buildCounterQueryRequest--; 874 buildCounterQueryRequest--;
875 } 875 }
876 876
877 buildUnnamed1023() { 877 buildUnnamed1051() {
878 var o = new core.List<api.TableRow>(); 878 var o = new core.List<api.TableRow>();
879 o.add(buildTableRow()); 879 o.add(buildTableRow());
880 o.add(buildTableRow()); 880 o.add(buildTableRow());
881 return o; 881 return o;
882 } 882 }
883 883
884 checkUnnamed1023(core.List<api.TableRow> o) { 884 checkUnnamed1051(core.List<api.TableRow> o) {
885 unittest.expect(o, unittest.hasLength(2)); 885 unittest.expect(o, unittest.hasLength(2));
886 checkTableRow(o[0]); 886 checkTableRow(o[0]);
887 checkTableRow(o[1]); 887 checkTableRow(o[1]);
888 } 888 }
889 889
890 core.int buildCounterQueryResponse = 0; 890 core.int buildCounterQueryResponse = 0;
891 buildQueryResponse() { 891 buildQueryResponse() {
892 var o = new api.QueryResponse(); 892 var o = new api.QueryResponse();
893 buildCounterQueryResponse++; 893 buildCounterQueryResponse++;
894 if (buildCounterQueryResponse < 3) { 894 if (buildCounterQueryResponse < 3) {
895 o.cacheHit = true; 895 o.cacheHit = true;
896 o.jobComplete = true; 896 o.jobComplete = true;
897 o.jobReference = buildJobReference(); 897 o.jobReference = buildJobReference();
898 o.kind = "foo"; 898 o.kind = "foo";
899 o.pageToken = "foo"; 899 o.pageToken = "foo";
900 o.rows = buildUnnamed1023(); 900 o.rows = buildUnnamed1051();
901 o.schema = buildTableSchema(); 901 o.schema = buildTableSchema();
902 o.totalBytesProcessed = "foo"; 902 o.totalBytesProcessed = "foo";
903 o.totalRows = "foo"; 903 o.totalRows = "foo";
904 } 904 }
905 buildCounterQueryResponse--; 905 buildCounterQueryResponse--;
906 return o; 906 return o;
907 } 907 }
908 908
909 checkQueryResponse(api.QueryResponse o) { 909 checkQueryResponse(api.QueryResponse o) {
910 buildCounterQueryResponse++; 910 buildCounterQueryResponse++;
911 if (buildCounterQueryResponse < 3) { 911 if (buildCounterQueryResponse < 3) {
912 unittest.expect(o.cacheHit, unittest.isTrue); 912 unittest.expect(o.cacheHit, unittest.isTrue);
913 unittest.expect(o.jobComplete, unittest.isTrue); 913 unittest.expect(o.jobComplete, unittest.isTrue);
914 checkJobReference(o.jobReference); 914 checkJobReference(o.jobReference);
915 unittest.expect(o.kind, unittest.equals('foo')); 915 unittest.expect(o.kind, unittest.equals('foo'));
916 unittest.expect(o.pageToken, unittest.equals('foo')); 916 unittest.expect(o.pageToken, unittest.equals('foo'));
917 checkUnnamed1023(o.rows); 917 checkUnnamed1051(o.rows);
918 checkTableSchema(o.schema); 918 checkTableSchema(o.schema);
919 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); 919 unittest.expect(o.totalBytesProcessed, unittest.equals('foo'));
920 unittest.expect(o.totalRows, unittest.equals('foo')); 920 unittest.expect(o.totalRows, unittest.equals('foo'));
921 } 921 }
922 buildCounterQueryResponse--; 922 buildCounterQueryResponse--;
923 } 923 }
924 924
925 core.int buildCounterTable = 0; 925 core.int buildCounterTable = 0;
926 buildTable() { 926 buildTable() {
927 var o = new api.Table(); 927 var o = new api.Table();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1002
1003 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { 1003 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) {
1004 buildCounterTableDataInsertAllRequestRows++; 1004 buildCounterTableDataInsertAllRequestRows++;
1005 if (buildCounterTableDataInsertAllRequestRows < 3) { 1005 if (buildCounterTableDataInsertAllRequestRows < 3) {
1006 unittest.expect(o.insertId, unittest.equals('foo')); 1006 unittest.expect(o.insertId, unittest.equals('foo'));
1007 checkJsonObject(o.json); 1007 checkJsonObject(o.json);
1008 } 1008 }
1009 buildCounterTableDataInsertAllRequestRows--; 1009 buildCounterTableDataInsertAllRequestRows--;
1010 } 1010 }
1011 1011
1012 buildUnnamed1024() { 1012 buildUnnamed1052() {
1013 var o = new core.List<api.TableDataInsertAllRequestRows>(); 1013 var o = new core.List<api.TableDataInsertAllRequestRows>();
1014 o.add(buildTableDataInsertAllRequestRows()); 1014 o.add(buildTableDataInsertAllRequestRows());
1015 o.add(buildTableDataInsertAllRequestRows()); 1015 o.add(buildTableDataInsertAllRequestRows());
1016 return o; 1016 return o;
1017 } 1017 }
1018 1018
1019 checkUnnamed1024(core.List<api.TableDataInsertAllRequestRows> o) { 1019 checkUnnamed1052(core.List<api.TableDataInsertAllRequestRows> o) {
1020 unittest.expect(o, unittest.hasLength(2)); 1020 unittest.expect(o, unittest.hasLength(2));
1021 checkTableDataInsertAllRequestRows(o[0]); 1021 checkTableDataInsertAllRequestRows(o[0]);
1022 checkTableDataInsertAllRequestRows(o[1]); 1022 checkTableDataInsertAllRequestRows(o[1]);
1023 } 1023 }
1024 1024
1025 core.int buildCounterTableDataInsertAllRequest = 0; 1025 core.int buildCounterTableDataInsertAllRequest = 0;
1026 buildTableDataInsertAllRequest() { 1026 buildTableDataInsertAllRequest() {
1027 var o = new api.TableDataInsertAllRequest(); 1027 var o = new api.TableDataInsertAllRequest();
1028 buildCounterTableDataInsertAllRequest++; 1028 buildCounterTableDataInsertAllRequest++;
1029 if (buildCounterTableDataInsertAllRequest < 3) { 1029 if (buildCounterTableDataInsertAllRequest < 3) {
1030 o.kind = "foo"; 1030 o.kind = "foo";
1031 o.rows = buildUnnamed1024(); 1031 o.rows = buildUnnamed1052();
1032 } 1032 }
1033 buildCounterTableDataInsertAllRequest--; 1033 buildCounterTableDataInsertAllRequest--;
1034 return o; 1034 return o;
1035 } 1035 }
1036 1036
1037 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { 1037 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) {
1038 buildCounterTableDataInsertAllRequest++; 1038 buildCounterTableDataInsertAllRequest++;
1039 if (buildCounterTableDataInsertAllRequest < 3) { 1039 if (buildCounterTableDataInsertAllRequest < 3) {
1040 unittest.expect(o.kind, unittest.equals('foo')); 1040 unittest.expect(o.kind, unittest.equals('foo'));
1041 checkUnnamed1024(o.rows); 1041 checkUnnamed1052(o.rows);
1042 } 1042 }
1043 buildCounterTableDataInsertAllRequest--; 1043 buildCounterTableDataInsertAllRequest--;
1044 } 1044 }
1045 1045
1046 buildUnnamed1025() { 1046 buildUnnamed1053() {
1047 var o = new core.List<api.ErrorProto>(); 1047 var o = new core.List<api.ErrorProto>();
1048 o.add(buildErrorProto()); 1048 o.add(buildErrorProto());
1049 o.add(buildErrorProto()); 1049 o.add(buildErrorProto());
1050 return o; 1050 return o;
1051 } 1051 }
1052 1052
1053 checkUnnamed1025(core.List<api.ErrorProto> o) { 1053 checkUnnamed1053(core.List<api.ErrorProto> o) {
1054 unittest.expect(o, unittest.hasLength(2)); 1054 unittest.expect(o, unittest.hasLength(2));
1055 checkErrorProto(o[0]); 1055 checkErrorProto(o[0]);
1056 checkErrorProto(o[1]); 1056 checkErrorProto(o[1]);
1057 } 1057 }
1058 1058
1059 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; 1059 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0;
1060 buildTableDataInsertAllResponseInsertErrors() { 1060 buildTableDataInsertAllResponseInsertErrors() {
1061 var o = new api.TableDataInsertAllResponseInsertErrors(); 1061 var o = new api.TableDataInsertAllResponseInsertErrors();
1062 buildCounterTableDataInsertAllResponseInsertErrors++; 1062 buildCounterTableDataInsertAllResponseInsertErrors++;
1063 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { 1063 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) {
1064 o.errors = buildUnnamed1025(); 1064 o.errors = buildUnnamed1053();
1065 o.index = 42; 1065 o.index = 42;
1066 } 1066 }
1067 buildCounterTableDataInsertAllResponseInsertErrors--; 1067 buildCounterTableDataInsertAllResponseInsertErrors--;
1068 return o; 1068 return o;
1069 } 1069 }
1070 1070
1071 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert Errors o) { 1071 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert Errors o) {
1072 buildCounterTableDataInsertAllResponseInsertErrors++; 1072 buildCounterTableDataInsertAllResponseInsertErrors++;
1073 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { 1073 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) {
1074 checkUnnamed1025(o.errors); 1074 checkUnnamed1053(o.errors);
1075 unittest.expect(o.index, unittest.equals(42)); 1075 unittest.expect(o.index, unittest.equals(42));
1076 } 1076 }
1077 buildCounterTableDataInsertAllResponseInsertErrors--; 1077 buildCounterTableDataInsertAllResponseInsertErrors--;
1078 } 1078 }
1079 1079
1080 buildUnnamed1026() { 1080 buildUnnamed1054() {
1081 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); 1081 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>();
1082 o.add(buildTableDataInsertAllResponseInsertErrors()); 1082 o.add(buildTableDataInsertAllResponseInsertErrors());
1083 o.add(buildTableDataInsertAllResponseInsertErrors()); 1083 o.add(buildTableDataInsertAllResponseInsertErrors());
1084 return o; 1084 return o;
1085 } 1085 }
1086 1086
1087 checkUnnamed1026(core.List<api.TableDataInsertAllResponseInsertErrors> o) { 1087 checkUnnamed1054(core.List<api.TableDataInsertAllResponseInsertErrors> o) {
1088 unittest.expect(o, unittest.hasLength(2)); 1088 unittest.expect(o, unittest.hasLength(2));
1089 checkTableDataInsertAllResponseInsertErrors(o[0]); 1089 checkTableDataInsertAllResponseInsertErrors(o[0]);
1090 checkTableDataInsertAllResponseInsertErrors(o[1]); 1090 checkTableDataInsertAllResponseInsertErrors(o[1]);
1091 } 1091 }
1092 1092
1093 core.int buildCounterTableDataInsertAllResponse = 0; 1093 core.int buildCounterTableDataInsertAllResponse = 0;
1094 buildTableDataInsertAllResponse() { 1094 buildTableDataInsertAllResponse() {
1095 var o = new api.TableDataInsertAllResponse(); 1095 var o = new api.TableDataInsertAllResponse();
1096 buildCounterTableDataInsertAllResponse++; 1096 buildCounterTableDataInsertAllResponse++;
1097 if (buildCounterTableDataInsertAllResponse < 3) { 1097 if (buildCounterTableDataInsertAllResponse < 3) {
1098 o.insertErrors = buildUnnamed1026(); 1098 o.insertErrors = buildUnnamed1054();
1099 o.kind = "foo"; 1099 o.kind = "foo";
1100 } 1100 }
1101 buildCounterTableDataInsertAllResponse--; 1101 buildCounterTableDataInsertAllResponse--;
1102 return o; 1102 return o;
1103 } 1103 }
1104 1104
1105 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { 1105 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) {
1106 buildCounterTableDataInsertAllResponse++; 1106 buildCounterTableDataInsertAllResponse++;
1107 if (buildCounterTableDataInsertAllResponse < 3) { 1107 if (buildCounterTableDataInsertAllResponse < 3) {
1108 checkUnnamed1026(o.insertErrors); 1108 checkUnnamed1054(o.insertErrors);
1109 unittest.expect(o.kind, unittest.equals('foo')); 1109 unittest.expect(o.kind, unittest.equals('foo'));
1110 } 1110 }
1111 buildCounterTableDataInsertAllResponse--; 1111 buildCounterTableDataInsertAllResponse--;
1112 } 1112 }
1113 1113
1114 buildUnnamed1027() { 1114 buildUnnamed1055() {
1115 var o = new core.List<api.TableRow>(); 1115 var o = new core.List<api.TableRow>();
1116 o.add(buildTableRow()); 1116 o.add(buildTableRow());
1117 o.add(buildTableRow()); 1117 o.add(buildTableRow());
1118 return o; 1118 return o;
1119 } 1119 }
1120 1120
1121 checkUnnamed1027(core.List<api.TableRow> o) { 1121 checkUnnamed1055(core.List<api.TableRow> o) {
1122 unittest.expect(o, unittest.hasLength(2)); 1122 unittest.expect(o, unittest.hasLength(2));
1123 checkTableRow(o[0]); 1123 checkTableRow(o[0]);
1124 checkTableRow(o[1]); 1124 checkTableRow(o[1]);
1125 } 1125 }
1126 1126
1127 core.int buildCounterTableDataList = 0; 1127 core.int buildCounterTableDataList = 0;
1128 buildTableDataList() { 1128 buildTableDataList() {
1129 var o = new api.TableDataList(); 1129 var o = new api.TableDataList();
1130 buildCounterTableDataList++; 1130 buildCounterTableDataList++;
1131 if (buildCounterTableDataList < 3) { 1131 if (buildCounterTableDataList < 3) {
1132 o.etag = "foo"; 1132 o.etag = "foo";
1133 o.kind = "foo"; 1133 o.kind = "foo";
1134 o.pageToken = "foo"; 1134 o.pageToken = "foo";
1135 o.rows = buildUnnamed1027(); 1135 o.rows = buildUnnamed1055();
1136 o.totalRows = "foo"; 1136 o.totalRows = "foo";
1137 } 1137 }
1138 buildCounterTableDataList--; 1138 buildCounterTableDataList--;
1139 return o; 1139 return o;
1140 } 1140 }
1141 1141
1142 checkTableDataList(api.TableDataList o) { 1142 checkTableDataList(api.TableDataList o) {
1143 buildCounterTableDataList++; 1143 buildCounterTableDataList++;
1144 if (buildCounterTableDataList < 3) { 1144 if (buildCounterTableDataList < 3) {
1145 unittest.expect(o.etag, unittest.equals('foo')); 1145 unittest.expect(o.etag, unittest.equals('foo'));
1146 unittest.expect(o.kind, unittest.equals('foo')); 1146 unittest.expect(o.kind, unittest.equals('foo'));
1147 unittest.expect(o.pageToken, unittest.equals('foo')); 1147 unittest.expect(o.pageToken, unittest.equals('foo'));
1148 checkUnnamed1027(o.rows); 1148 checkUnnamed1055(o.rows);
1149 unittest.expect(o.totalRows, unittest.equals('foo')); 1149 unittest.expect(o.totalRows, unittest.equals('foo'));
1150 } 1150 }
1151 buildCounterTableDataList--; 1151 buildCounterTableDataList--;
1152 } 1152 }
1153 1153
1154 buildUnnamed1028() { 1154 buildUnnamed1056() {
1155 var o = new core.List<api.TableFieldSchema>(); 1155 var o = new core.List<api.TableFieldSchema>();
1156 o.add(buildTableFieldSchema()); 1156 o.add(buildTableFieldSchema());
1157 o.add(buildTableFieldSchema()); 1157 o.add(buildTableFieldSchema());
1158 return o; 1158 return o;
1159 } 1159 }
1160 1160
1161 checkUnnamed1028(core.List<api.TableFieldSchema> o) { 1161 checkUnnamed1056(core.List<api.TableFieldSchema> o) {
1162 unittest.expect(o, unittest.hasLength(2)); 1162 unittest.expect(o, unittest.hasLength(2));
1163 checkTableFieldSchema(o[0]); 1163 checkTableFieldSchema(o[0]);
1164 checkTableFieldSchema(o[1]); 1164 checkTableFieldSchema(o[1]);
1165 } 1165 }
1166 1166
1167 core.int buildCounterTableFieldSchema = 0; 1167 core.int buildCounterTableFieldSchema = 0;
1168 buildTableFieldSchema() { 1168 buildTableFieldSchema() {
1169 var o = new api.TableFieldSchema(); 1169 var o = new api.TableFieldSchema();
1170 buildCounterTableFieldSchema++; 1170 buildCounterTableFieldSchema++;
1171 if (buildCounterTableFieldSchema < 3) { 1171 if (buildCounterTableFieldSchema < 3) {
1172 o.description = "foo"; 1172 o.description = "foo";
1173 o.fields = buildUnnamed1028(); 1173 o.fields = buildUnnamed1056();
1174 o.mode = "foo"; 1174 o.mode = "foo";
1175 o.name = "foo"; 1175 o.name = "foo";
1176 o.type = "foo"; 1176 o.type = "foo";
1177 } 1177 }
1178 buildCounterTableFieldSchema--; 1178 buildCounterTableFieldSchema--;
1179 return o; 1179 return o;
1180 } 1180 }
1181 1181
1182 checkTableFieldSchema(api.TableFieldSchema o) { 1182 checkTableFieldSchema(api.TableFieldSchema o) {
1183 buildCounterTableFieldSchema++; 1183 buildCounterTableFieldSchema++;
1184 if (buildCounterTableFieldSchema < 3) { 1184 if (buildCounterTableFieldSchema < 3) {
1185 unittest.expect(o.description, unittest.equals('foo')); 1185 unittest.expect(o.description, unittest.equals('foo'));
1186 checkUnnamed1028(o.fields); 1186 checkUnnamed1056(o.fields);
1187 unittest.expect(o.mode, unittest.equals('foo')); 1187 unittest.expect(o.mode, unittest.equals('foo'));
1188 unittest.expect(o.name, unittest.equals('foo')); 1188 unittest.expect(o.name, unittest.equals('foo'));
1189 unittest.expect(o.type, unittest.equals('foo')); 1189 unittest.expect(o.type, unittest.equals('foo'));
1190 } 1190 }
1191 buildCounterTableFieldSchema--; 1191 buildCounterTableFieldSchema--;
1192 } 1192 }
1193 1193
1194 core.int buildCounterTableListTables = 0; 1194 core.int buildCounterTableListTables = 0;
1195 buildTableListTables() { 1195 buildTableListTables() {
1196 var o = new api.TableListTables(); 1196 var o = new api.TableListTables();
(...skipping 14 matching lines...) Expand all
1211 if (buildCounterTableListTables < 3) { 1211 if (buildCounterTableListTables < 3) {
1212 unittest.expect(o.friendlyName, unittest.equals('foo')); 1212 unittest.expect(o.friendlyName, unittest.equals('foo'));
1213 unittest.expect(o.id, unittest.equals('foo')); 1213 unittest.expect(o.id, unittest.equals('foo'));
1214 unittest.expect(o.kind, unittest.equals('foo')); 1214 unittest.expect(o.kind, unittest.equals('foo'));
1215 checkTableReference(o.tableReference); 1215 checkTableReference(o.tableReference);
1216 unittest.expect(o.type, unittest.equals('foo')); 1216 unittest.expect(o.type, unittest.equals('foo'));
1217 } 1217 }
1218 buildCounterTableListTables--; 1218 buildCounterTableListTables--;
1219 } 1219 }
1220 1220
1221 buildUnnamed1029() { 1221 buildUnnamed1057() {
1222 var o = new core.List<api.TableListTables>(); 1222 var o = new core.List<api.TableListTables>();
1223 o.add(buildTableListTables()); 1223 o.add(buildTableListTables());
1224 o.add(buildTableListTables()); 1224 o.add(buildTableListTables());
1225 return o; 1225 return o;
1226 } 1226 }
1227 1227
1228 checkUnnamed1029(core.List<api.TableListTables> o) { 1228 checkUnnamed1057(core.List<api.TableListTables> o) {
1229 unittest.expect(o, unittest.hasLength(2)); 1229 unittest.expect(o, unittest.hasLength(2));
1230 checkTableListTables(o[0]); 1230 checkTableListTables(o[0]);
1231 checkTableListTables(o[1]); 1231 checkTableListTables(o[1]);
1232 } 1232 }
1233 1233
1234 core.int buildCounterTableList = 0; 1234 core.int buildCounterTableList = 0;
1235 buildTableList() { 1235 buildTableList() {
1236 var o = new api.TableList(); 1236 var o = new api.TableList();
1237 buildCounterTableList++; 1237 buildCounterTableList++;
1238 if (buildCounterTableList < 3) { 1238 if (buildCounterTableList < 3) {
1239 o.etag = "foo"; 1239 o.etag = "foo";
1240 o.kind = "foo"; 1240 o.kind = "foo";
1241 o.nextPageToken = "foo"; 1241 o.nextPageToken = "foo";
1242 o.tables = buildUnnamed1029(); 1242 o.tables = buildUnnamed1057();
1243 o.totalItems = 42; 1243 o.totalItems = 42;
1244 } 1244 }
1245 buildCounterTableList--; 1245 buildCounterTableList--;
1246 return o; 1246 return o;
1247 } 1247 }
1248 1248
1249 checkTableList(api.TableList o) { 1249 checkTableList(api.TableList o) {
1250 buildCounterTableList++; 1250 buildCounterTableList++;
1251 if (buildCounterTableList < 3) { 1251 if (buildCounterTableList < 3) {
1252 unittest.expect(o.etag, unittest.equals('foo')); 1252 unittest.expect(o.etag, unittest.equals('foo'));
1253 unittest.expect(o.kind, unittest.equals('foo')); 1253 unittest.expect(o.kind, unittest.equals('foo'));
1254 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1254 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1255 checkUnnamed1029(o.tables); 1255 checkUnnamed1057(o.tables);
1256 unittest.expect(o.totalItems, unittest.equals(42)); 1256 unittest.expect(o.totalItems, unittest.equals(42));
1257 } 1257 }
1258 buildCounterTableList--; 1258 buildCounterTableList--;
1259 } 1259 }
1260 1260
1261 core.int buildCounterTableReference = 0; 1261 core.int buildCounterTableReference = 0;
1262 buildTableReference() { 1262 buildTableReference() {
1263 var o = new api.TableReference(); 1263 var o = new api.TableReference();
1264 buildCounterTableReference++; 1264 buildCounterTableReference++;
1265 if (buildCounterTableReference < 3) { 1265 if (buildCounterTableReference < 3) {
1266 o.datasetId = "foo"; 1266 o.datasetId = "foo";
1267 o.projectId = "foo"; 1267 o.projectId = "foo";
1268 o.tableId = "foo"; 1268 o.tableId = "foo";
1269 } 1269 }
1270 buildCounterTableReference--; 1270 buildCounterTableReference--;
1271 return o; 1271 return o;
1272 } 1272 }
1273 1273
1274 checkTableReference(api.TableReference o) { 1274 checkTableReference(api.TableReference o) {
1275 buildCounterTableReference++; 1275 buildCounterTableReference++;
1276 if (buildCounterTableReference < 3) { 1276 if (buildCounterTableReference < 3) {
1277 unittest.expect(o.datasetId, unittest.equals('foo')); 1277 unittest.expect(o.datasetId, unittest.equals('foo'));
1278 unittest.expect(o.projectId, unittest.equals('foo')); 1278 unittest.expect(o.projectId, unittest.equals('foo'));
1279 unittest.expect(o.tableId, unittest.equals('foo')); 1279 unittest.expect(o.tableId, unittest.equals('foo'));
1280 } 1280 }
1281 buildCounterTableReference--; 1281 buildCounterTableReference--;
1282 } 1282 }
1283 1283
1284 buildUnnamed1030() { 1284 buildUnnamed1058() {
1285 var o = new core.List<api.TableCell>(); 1285 var o = new core.List<api.TableCell>();
1286 o.add(buildTableCell()); 1286 o.add(buildTableCell());
1287 o.add(buildTableCell()); 1287 o.add(buildTableCell());
1288 return o; 1288 return o;
1289 } 1289 }
1290 1290
1291 checkUnnamed1030(core.List<api.TableCell> o) { 1291 checkUnnamed1058(core.List<api.TableCell> o) {
1292 unittest.expect(o, unittest.hasLength(2)); 1292 unittest.expect(o, unittest.hasLength(2));
1293 checkTableCell(o[0]); 1293 checkTableCell(o[0]);
1294 checkTableCell(o[1]); 1294 checkTableCell(o[1]);
1295 } 1295 }
1296 1296
1297 core.int buildCounterTableRow = 0; 1297 core.int buildCounterTableRow = 0;
1298 buildTableRow() { 1298 buildTableRow() {
1299 var o = new api.TableRow(); 1299 var o = new api.TableRow();
1300 buildCounterTableRow++; 1300 buildCounterTableRow++;
1301 if (buildCounterTableRow < 3) { 1301 if (buildCounterTableRow < 3) {
1302 o.f = buildUnnamed1030(); 1302 o.f = buildUnnamed1058();
1303 } 1303 }
1304 buildCounterTableRow--; 1304 buildCounterTableRow--;
1305 return o; 1305 return o;
1306 } 1306 }
1307 1307
1308 checkTableRow(api.TableRow o) { 1308 checkTableRow(api.TableRow o) {
1309 buildCounterTableRow++; 1309 buildCounterTableRow++;
1310 if (buildCounterTableRow < 3) { 1310 if (buildCounterTableRow < 3) {
1311 checkUnnamed1030(o.f); 1311 checkUnnamed1058(o.f);
1312 } 1312 }
1313 buildCounterTableRow--; 1313 buildCounterTableRow--;
1314 } 1314 }
1315 1315
1316 buildUnnamed1031() { 1316 buildUnnamed1059() {
1317 var o = new core.List<api.TableFieldSchema>(); 1317 var o = new core.List<api.TableFieldSchema>();
1318 o.add(buildTableFieldSchema()); 1318 o.add(buildTableFieldSchema());
1319 o.add(buildTableFieldSchema()); 1319 o.add(buildTableFieldSchema());
1320 return o; 1320 return o;
1321 } 1321 }
1322 1322
1323 checkUnnamed1031(core.List<api.TableFieldSchema> o) { 1323 checkUnnamed1059(core.List<api.TableFieldSchema> o) {
1324 unittest.expect(o, unittest.hasLength(2)); 1324 unittest.expect(o, unittest.hasLength(2));
1325 checkTableFieldSchema(o[0]); 1325 checkTableFieldSchema(o[0]);
1326 checkTableFieldSchema(o[1]); 1326 checkTableFieldSchema(o[1]);
1327 } 1327 }
1328 1328
1329 core.int buildCounterTableSchema = 0; 1329 core.int buildCounterTableSchema = 0;
1330 buildTableSchema() { 1330 buildTableSchema() {
1331 var o = new api.TableSchema(); 1331 var o = new api.TableSchema();
1332 buildCounterTableSchema++; 1332 buildCounterTableSchema++;
1333 if (buildCounterTableSchema < 3) { 1333 if (buildCounterTableSchema < 3) {
1334 o.fields = buildUnnamed1031(); 1334 o.fields = buildUnnamed1059();
1335 } 1335 }
1336 buildCounterTableSchema--; 1336 buildCounterTableSchema--;
1337 return o; 1337 return o;
1338 } 1338 }
1339 1339
1340 checkTableSchema(api.TableSchema o) { 1340 checkTableSchema(api.TableSchema o) {
1341 buildCounterTableSchema++; 1341 buildCounterTableSchema++;
1342 if (buildCounterTableSchema < 3) { 1342 if (buildCounterTableSchema < 3) {
1343 checkUnnamed1031(o.fields); 1343 checkUnnamed1059(o.fields);
1344 } 1344 }
1345 buildCounterTableSchema--; 1345 buildCounterTableSchema--;
1346 } 1346 }
1347 1347
1348 core.int buildCounterViewDefinition = 0; 1348 core.int buildCounterViewDefinition = 0;
1349 buildViewDefinition() { 1349 buildViewDefinition() {
1350 var o = new api.ViewDefinition(); 1350 var o = new api.ViewDefinition();
1351 buildCounterViewDefinition++; 1351 buildCounterViewDefinition++;
1352 if (buildCounterViewDefinition < 3) { 1352 if (buildCounterViewDefinition < 3) {
1353 o.query = "foo"; 1353 o.query = "foo";
1354 } 1354 }
1355 buildCounterViewDefinition--; 1355 buildCounterViewDefinition--;
1356 return o; 1356 return o;
1357 } 1357 }
1358 1358
1359 checkViewDefinition(api.ViewDefinition o) { 1359 checkViewDefinition(api.ViewDefinition o) {
1360 buildCounterViewDefinition++; 1360 buildCounterViewDefinition++;
1361 if (buildCounterViewDefinition < 3) { 1361 if (buildCounterViewDefinition < 3) {
1362 unittest.expect(o.query, unittest.equals('foo')); 1362 unittest.expect(o.query, unittest.equals('foo'));
1363 } 1363 }
1364 buildCounterViewDefinition--; 1364 buildCounterViewDefinition--;
1365 } 1365 }
1366 1366
1367 buildUnnamed1032() { 1367 buildUnnamed1060() {
1368 var o = new core.List<core.String>(); 1368 var o = new core.List<core.String>();
1369 o.add("foo"); 1369 o.add("foo");
1370 o.add("foo"); 1370 o.add("foo");
1371 return o; 1371 return o;
1372 } 1372 }
1373 1373
1374 checkUnnamed1032(core.List<core.String> o) { 1374 checkUnnamed1060(core.List<core.String> o) {
1375 unittest.expect(o, unittest.hasLength(2)); 1375 unittest.expect(o, unittest.hasLength(2));
1376 unittest.expect(o[0], unittest.equals('foo')); 1376 unittest.expect(o[0], unittest.equals('foo'));
1377 unittest.expect(o[1], unittest.equals('foo')); 1377 unittest.expect(o[1], unittest.equals('foo'));
1378 } 1378 }
1379 1379
1380 1380
1381 main() { 1381 main() {
1382 unittest.group("obj-schema-DatasetAccess", () { 1382 unittest.group("obj-schema-DatasetAccess", () {
1383 unittest.test("to-json--from-json", () { 1383 unittest.test("to-json--from-json", () {
1384 var o = buildDatasetAccess(); 1384 var o = buildDatasetAccess();
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 var mock = new common_test.HttpServerMock(); 1754 var mock = new common_test.HttpServerMock();
1755 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets; 1755 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets;
1756 var arg_projectId = "foo"; 1756 var arg_projectId = "foo";
1757 var arg_datasetId = "foo"; 1757 var arg_datasetId = "foo";
1758 var arg_deleteContents = true; 1758 var arg_deleteContents = true;
1759 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1759 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1760 var path = (req.url).path; 1760 var path = (req.url).path;
1761 var pathOffset = 0; 1761 var pathOffset = 0;
1762 var index; 1762 var index;
1763 var subPart; 1763 var subPart;
1764 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 1764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1765 pathOffset += 13; 1765 pathOffset += 1;
1766 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
1767 pathOffset += 12;
1766 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 1768 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
1767 pathOffset += 9; 1769 pathOffset += 9;
1768 index = path.indexOf("/datasets/", pathOffset); 1770 index = path.indexOf("/datasets/", pathOffset);
1769 unittest.expect(index >= 0, unittest.isTrue); 1771 unittest.expect(index >= 0, unittest.isTrue);
1770 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1772 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1771 pathOffset = index; 1773 pathOffset = index;
1772 unittest.expect(subPart, unittest.equals("$arg_projectId")); 1774 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1773 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 1775 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
1774 pathOffset += 10; 1776 pathOffset += 10;
1775 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 1777 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 1810
1809 var mock = new common_test.HttpServerMock(); 1811 var mock = new common_test.HttpServerMock();
1810 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets; 1812 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets;
1811 var arg_projectId = "foo"; 1813 var arg_projectId = "foo";
1812 var arg_datasetId = "foo"; 1814 var arg_datasetId = "foo";
1813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1815 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1814 var path = (req.url).path; 1816 var path = (req.url).path;
1815 var pathOffset = 0; 1817 var pathOffset = 0;
1816 var index; 1818 var index;
1817 var subPart; 1819 var subPart;
1818 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 1820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1819 pathOffset += 13; 1821 pathOffset += 1;
1822 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
1823 pathOffset += 12;
1820 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 1824 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
1821 pathOffset += 9; 1825 pathOffset += 9;
1822 index = path.indexOf("/datasets/", pathOffset); 1826 index = path.indexOf("/datasets/", pathOffset);
1823 unittest.expect(index >= 0, unittest.isTrue); 1827 unittest.expect(index >= 0, unittest.isTrue);
1824 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1828 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1825 pathOffset = index; 1829 pathOffset = index;
1826 unittest.expect(subPart, unittest.equals("$arg_projectId")); 1830 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1827 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 1831 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
1828 pathOffset += 10; 1832 pathOffset += 10;
1829 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 1833 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 var arg_request = buildDataset(); 1870 var arg_request = buildDataset();
1867 var arg_projectId = "foo"; 1871 var arg_projectId = "foo";
1868 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1872 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1869 var obj = new api.Dataset.fromJson(json); 1873 var obj = new api.Dataset.fromJson(json);
1870 checkDataset(obj); 1874 checkDataset(obj);
1871 1875
1872 var path = (req.url).path; 1876 var path = (req.url).path;
1873 var pathOffset = 0; 1877 var pathOffset = 0;
1874 var index; 1878 var index;
1875 var subPart; 1879 var subPart;
1876 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 1880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1877 pathOffset += 13; 1881 pathOffset += 1;
1882 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
1883 pathOffset += 12;
1878 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 1884 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
1879 pathOffset += 9; 1885 pathOffset += 9;
1880 index = path.indexOf("/datasets", pathOffset); 1886 index = path.indexOf("/datasets", pathOffset);
1881 unittest.expect(index >= 0, unittest.isTrue); 1887 unittest.expect(index >= 0, unittest.isTrue);
1882 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1888 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1883 pathOffset = index; 1889 pathOffset = index;
1884 unittest.expect(subPart, unittest.equals("$arg_projectId")); 1890 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1885 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/datasets")); 1891 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/datasets"));
1886 pathOffset += 9; 1892 pathOffset += 9;
1887 1893
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets; 1926 api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets;
1921 var arg_projectId = "foo"; 1927 var arg_projectId = "foo";
1922 var arg_all = true; 1928 var arg_all = true;
1923 var arg_maxResults = 42; 1929 var arg_maxResults = 42;
1924 var arg_pageToken = "foo"; 1930 var arg_pageToken = "foo";
1925 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1931 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1926 var path = (req.url).path; 1932 var path = (req.url).path;
1927 var pathOffset = 0; 1933 var pathOffset = 0;
1928 var index; 1934 var index;
1929 var subPart; 1935 var subPart;
1930 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 1936 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1931 pathOffset += 13; 1937 pathOffset += 1;
1938 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
1939 pathOffset += 12;
1932 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 1940 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
1933 pathOffset += 9; 1941 pathOffset += 9;
1934 index = path.indexOf("/datasets", pathOffset); 1942 index = path.indexOf("/datasets", pathOffset);
1935 unittest.expect(index >= 0, unittest.isTrue); 1943 unittest.expect(index >= 0, unittest.isTrue);
1936 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 1944 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1937 pathOffset = index; 1945 pathOffset = index;
1938 unittest.expect(subPart, unittest.equals("$arg_projectId")); 1946 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1939 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/datasets")); 1947 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/datasets"));
1940 pathOffset += 9; 1948 pathOffset += 9;
1941 1949
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 var arg_projectId = "foo"; 1987 var arg_projectId = "foo";
1980 var arg_datasetId = "foo"; 1988 var arg_datasetId = "foo";
1981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1989 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1982 var obj = new api.Dataset.fromJson(json); 1990 var obj = new api.Dataset.fromJson(json);
1983 checkDataset(obj); 1991 checkDataset(obj);
1984 1992
1985 var path = (req.url).path; 1993 var path = (req.url).path;
1986 var pathOffset = 0; 1994 var pathOffset = 0;
1987 var index; 1995 var index;
1988 var subPart; 1996 var subPart;
1989 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 1997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1990 pathOffset += 13; 1998 pathOffset += 1;
1999 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2000 pathOffset += 12;
1991 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2001 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
1992 pathOffset += 9; 2002 pathOffset += 9;
1993 index = path.indexOf("/datasets/", pathOffset); 2003 index = path.indexOf("/datasets/", pathOffset);
1994 unittest.expect(index >= 0, unittest.isTrue); 2004 unittest.expect(index >= 0, unittest.isTrue);
1995 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2005 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
1996 pathOffset = index; 2006 pathOffset = index;
1997 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2007 unittest.expect(subPart, unittest.equals("$arg_projectId"));
1998 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2008 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
1999 pathOffset += 10; 2009 pathOffset += 10;
2000 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2010 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 var arg_projectId = "foo"; 2048 var arg_projectId = "foo";
2039 var arg_datasetId = "foo"; 2049 var arg_datasetId = "foo";
2040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2050 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2041 var obj = new api.Dataset.fromJson(json); 2051 var obj = new api.Dataset.fromJson(json);
2042 checkDataset(obj); 2052 checkDataset(obj);
2043 2053
2044 var path = (req.url).path; 2054 var path = (req.url).path;
2045 var pathOffset = 0; 2055 var pathOffset = 0;
2046 var index; 2056 var index;
2047 var subPart; 2057 var subPart;
2048 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2058 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2049 pathOffset += 13; 2059 pathOffset += 1;
2060 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2061 pathOffset += 12;
2050 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2062 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2051 pathOffset += 9; 2063 pathOffset += 9;
2052 index = path.indexOf("/datasets/", pathOffset); 2064 index = path.indexOf("/datasets/", pathOffset);
2053 unittest.expect(index >= 0, unittest.isTrue); 2065 unittest.expect(index >= 0, unittest.isTrue);
2054 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2066 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2055 pathOffset = index; 2067 pathOffset = index;
2056 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2068 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2057 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2069 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2058 pathOffset += 10; 2070 pathOffset += 10;
2059 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2071 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 2109
2098 var mock = new common_test.HttpServerMock(); 2110 var mock = new common_test.HttpServerMock();
2099 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; 2111 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs;
2100 var arg_projectId = "foo"; 2112 var arg_projectId = "foo";
2101 var arg_jobId = "foo"; 2113 var arg_jobId = "foo";
2102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2114 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2103 var path = (req.url).path; 2115 var path = (req.url).path;
2104 var pathOffset = 0; 2116 var pathOffset = 0;
2105 var index; 2117 var index;
2106 var subPart; 2118 var subPart;
2107 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2119 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2108 pathOffset += 13; 2120 pathOffset += 1;
2121 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2122 pathOffset += 12;
2109 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2123 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2110 pathOffset += 9; 2124 pathOffset += 9;
2111 index = path.indexOf("/jobs/", pathOffset); 2125 index = path.indexOf("/jobs/", pathOffset);
2112 unittest.expect(index >= 0, unittest.isTrue); 2126 unittest.expect(index >= 0, unittest.isTrue);
2113 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2127 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2114 pathOffset = index; 2128 pathOffset = index;
2115 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2129 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2116 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/")); 2130 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
2117 pathOffset += 6; 2131 pathOffset += 6;
2118 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2132 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 var arg_jobId = "foo"; 2170 var arg_jobId = "foo";
2157 var arg_maxResults = 42; 2171 var arg_maxResults = 42;
2158 var arg_pageToken = "foo"; 2172 var arg_pageToken = "foo";
2159 var arg_startIndex = "foo"; 2173 var arg_startIndex = "foo";
2160 var arg_timeoutMs = 42; 2174 var arg_timeoutMs = 42;
2161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2175 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2162 var path = (req.url).path; 2176 var path = (req.url).path;
2163 var pathOffset = 0; 2177 var pathOffset = 0;
2164 var index; 2178 var index;
2165 var subPart; 2179 var subPart;
2166 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2180 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2167 pathOffset += 13; 2181 pathOffset += 1;
2182 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2183 pathOffset += 12;
2168 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2184 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2169 pathOffset += 9; 2185 pathOffset += 9;
2170 index = path.indexOf("/queries/", pathOffset); 2186 index = path.indexOf("/queries/", pathOffset);
2171 unittest.expect(index >= 0, unittest.isTrue); 2187 unittest.expect(index >= 0, unittest.isTrue);
2172 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2188 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2173 pathOffset = index; 2189 pathOffset = index;
2174 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2190 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2175 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/queries/")); 2191 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/queries/"));
2176 pathOffset += 9; 2192 pathOffset += 9;
2177 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2193 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 var arg_request = buildJob(); 2236 var arg_request = buildJob();
2221 var arg_projectId = "foo"; 2237 var arg_projectId = "foo";
2222 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2238 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2223 var obj = new api.Job.fromJson(json); 2239 var obj = new api.Job.fromJson(json);
2224 checkJob(obj); 2240 checkJob(obj);
2225 2241
2226 var path = (req.url).path; 2242 var path = (req.url).path;
2227 var pathOffset = 0; 2243 var pathOffset = 0;
2228 var index; 2244 var index;
2229 var subPart; 2245 var subPart;
2230 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2246 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2231 pathOffset += 13; 2247 pathOffset += 1;
2248 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2249 pathOffset += 12;
2232 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2250 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2233 pathOffset += 9; 2251 pathOffset += 9;
2234 index = path.indexOf("/jobs", pathOffset); 2252 index = path.indexOf("/jobs", pathOffset);
2235 unittest.expect(index >= 0, unittest.isTrue); 2253 unittest.expect(index >= 0, unittest.isTrue);
2236 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2254 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2237 pathOffset = index; 2255 pathOffset = index;
2238 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2256 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2239 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs")); 2257 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs"));
2240 pathOffset += 5; 2258 pathOffset += 5;
2241 2259
(...skipping 28 matching lines...) Expand all
2270 2288
2271 unittest.test("method--list", () { 2289 unittest.test("method--list", () {
2272 2290
2273 var mock = new common_test.HttpServerMock(); 2291 var mock = new common_test.HttpServerMock();
2274 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; 2292 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs;
2275 var arg_projectId = "foo"; 2293 var arg_projectId = "foo";
2276 var arg_allUsers = true; 2294 var arg_allUsers = true;
2277 var arg_maxResults = 42; 2295 var arg_maxResults = 42;
2278 var arg_pageToken = "foo"; 2296 var arg_pageToken = "foo";
2279 var arg_projection = "foo"; 2297 var arg_projection = "foo";
2280 var arg_stateFilter = buildUnnamed1032(); 2298 var arg_stateFilter = buildUnnamed1060();
2281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2299 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2282 var path = (req.url).path; 2300 var path = (req.url).path;
2283 var pathOffset = 0; 2301 var pathOffset = 0;
2284 var index; 2302 var index;
2285 var subPart; 2303 var subPart;
2286 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2287 pathOffset += 13; 2305 pathOffset += 1;
2306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2307 pathOffset += 12;
2288 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2308 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2289 pathOffset += 9; 2309 pathOffset += 9;
2290 index = path.indexOf("/jobs", pathOffset); 2310 index = path.indexOf("/jobs", pathOffset);
2291 unittest.expect(index >= 0, unittest.isTrue); 2311 unittest.expect(index >= 0, unittest.isTrue);
2292 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2312 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2293 pathOffset = index; 2313 pathOffset = index;
2294 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2314 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2295 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs")); 2315 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs"));
2296 pathOffset += 5; 2316 pathOffset += 5;
2297 2317
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 var arg_request = buildQueryRequest(); 2356 var arg_request = buildQueryRequest();
2337 var arg_projectId = "foo"; 2357 var arg_projectId = "foo";
2338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2358 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2339 var obj = new api.QueryRequest.fromJson(json); 2359 var obj = new api.QueryRequest.fromJson(json);
2340 checkQueryRequest(obj); 2360 checkQueryRequest(obj);
2341 2361
2342 var path = (req.url).path; 2362 var path = (req.url).path;
2343 var pathOffset = 0; 2363 var pathOffset = 0;
2344 var index; 2364 var index;
2345 var subPart; 2365 var subPart;
2346 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2366 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2347 pathOffset += 13; 2367 pathOffset += 1;
2368 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2369 pathOffset += 12;
2348 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2370 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2349 pathOffset += 9; 2371 pathOffset += 9;
2350 index = path.indexOf("/queries", pathOffset); 2372 index = path.indexOf("/queries", pathOffset);
2351 unittest.expect(index >= 0, unittest.isTrue); 2373 unittest.expect(index >= 0, unittest.isTrue);
2352 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2374 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2353 pathOffset = index; 2375 pathOffset = index;
2354 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2376 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2355 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/queries")); 2377 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/queries"));
2356 pathOffset += 8; 2378 pathOffset += 8;
2357 2379
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 2414
2393 var mock = new common_test.HttpServerMock(); 2415 var mock = new common_test.HttpServerMock();
2394 api.ProjectsResourceApi res = new api.BigqueryApi(mock).projects; 2416 api.ProjectsResourceApi res = new api.BigqueryApi(mock).projects;
2395 var arg_maxResults = 42; 2417 var arg_maxResults = 42;
2396 var arg_pageToken = "foo"; 2418 var arg_pageToken = "foo";
2397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2419 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2398 var path = (req.url).path; 2420 var path = (req.url).path;
2399 var pathOffset = 0; 2421 var pathOffset = 0;
2400 var index; 2422 var index;
2401 var subPart; 2423 var subPart;
2402 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2403 pathOffset += 13; 2425 pathOffset += 1;
2426 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2427 pathOffset += 12;
2404 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("projects")); 2428 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("projects"));
2405 pathOffset += 8; 2429 pathOffset += 8;
2406 2430
2407 var query = (req.url).query; 2431 var query = (req.url).query;
2408 var queryOffset = 0; 2432 var queryOffset = 0;
2409 var queryMap = {}; 2433 var queryMap = {};
2410 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2434 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2411 parseBool(n) { 2435 parseBool(n) {
2412 if (n == "true") return true; 2436 if (n == "true") return true;
2413 if (n == "false") return false; 2437 if (n == "false") return false;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 var arg_datasetId = "foo"; 2472 var arg_datasetId = "foo";
2449 var arg_tableId = "foo"; 2473 var arg_tableId = "foo";
2450 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2474 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2451 var obj = new api.TableDataInsertAllRequest.fromJson(json); 2475 var obj = new api.TableDataInsertAllRequest.fromJson(json);
2452 checkTableDataInsertAllRequest(obj); 2476 checkTableDataInsertAllRequest(obj);
2453 2477
2454 var path = (req.url).path; 2478 var path = (req.url).path;
2455 var pathOffset = 0; 2479 var pathOffset = 0;
2456 var index; 2480 var index;
2457 var subPart; 2481 var subPart;
2458 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2459 pathOffset += 13; 2483 pathOffset += 1;
2484 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2485 pathOffset += 12;
2460 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2486 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2461 pathOffset += 9; 2487 pathOffset += 9;
2462 index = path.indexOf("/datasets/", pathOffset); 2488 index = path.indexOf("/datasets/", pathOffset);
2463 unittest.expect(index >= 0, unittest.isTrue); 2489 unittest.expect(index >= 0, unittest.isTrue);
2464 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2490 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2465 pathOffset = index; 2491 pathOffset = index;
2466 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2492 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2467 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2493 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2468 pathOffset += 10; 2494 pathOffset += 10;
2469 index = path.indexOf("/tables/", pathOffset); 2495 index = path.indexOf("/tables/", pathOffset);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 var arg_datasetId = "foo"; 2544 var arg_datasetId = "foo";
2519 var arg_tableId = "foo"; 2545 var arg_tableId = "foo";
2520 var arg_maxResults = 42; 2546 var arg_maxResults = 42;
2521 var arg_pageToken = "foo"; 2547 var arg_pageToken = "foo";
2522 var arg_startIndex = "foo"; 2548 var arg_startIndex = "foo";
2523 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2549 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2524 var path = (req.url).path; 2550 var path = (req.url).path;
2525 var pathOffset = 0; 2551 var pathOffset = 0;
2526 var index; 2552 var index;
2527 var subPart; 2553 var subPart;
2528 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2554 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2529 pathOffset += 13; 2555 pathOffset += 1;
2556 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2557 pathOffset += 12;
2530 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2558 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2531 pathOffset += 9; 2559 pathOffset += 9;
2532 index = path.indexOf("/datasets/", pathOffset); 2560 index = path.indexOf("/datasets/", pathOffset);
2533 unittest.expect(index >= 0, unittest.isTrue); 2561 unittest.expect(index >= 0, unittest.isTrue);
2534 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2562 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2535 pathOffset = index; 2563 pathOffset = index;
2536 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2564 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2537 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2565 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2538 pathOffset += 10; 2566 pathOffset += 10;
2539 index = path.indexOf("/tables/", pathOffset); 2567 index = path.indexOf("/tables/", pathOffset);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 var mock = new common_test.HttpServerMock(); 2620 var mock = new common_test.HttpServerMock();
2593 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; 2621 api.TablesResourceApi res = new api.BigqueryApi(mock).tables;
2594 var arg_projectId = "foo"; 2622 var arg_projectId = "foo";
2595 var arg_datasetId = "foo"; 2623 var arg_datasetId = "foo";
2596 var arg_tableId = "foo"; 2624 var arg_tableId = "foo";
2597 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2625 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2598 var path = (req.url).path; 2626 var path = (req.url).path;
2599 var pathOffset = 0; 2627 var pathOffset = 0;
2600 var index; 2628 var index;
2601 var subPart; 2629 var subPart;
2602 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2630 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2603 pathOffset += 13; 2631 pathOffset += 1;
2632 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2633 pathOffset += 12;
2604 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2634 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2605 pathOffset += 9; 2635 pathOffset += 9;
2606 index = path.indexOf("/datasets/", pathOffset); 2636 index = path.indexOf("/datasets/", pathOffset);
2607 unittest.expect(index >= 0, unittest.isTrue); 2637 unittest.expect(index >= 0, unittest.isTrue);
2608 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2638 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2609 pathOffset = index; 2639 pathOffset = index;
2610 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2640 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2611 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2641 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2612 pathOffset += 10; 2642 pathOffset += 10;
2613 index = path.indexOf("/tables/", pathOffset); 2643 index = path.indexOf("/tables/", pathOffset);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2653 var mock = new common_test.HttpServerMock(); 2683 var mock = new common_test.HttpServerMock();
2654 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; 2684 api.TablesResourceApi res = new api.BigqueryApi(mock).tables;
2655 var arg_projectId = "foo"; 2685 var arg_projectId = "foo";
2656 var arg_datasetId = "foo"; 2686 var arg_datasetId = "foo";
2657 var arg_tableId = "foo"; 2687 var arg_tableId = "foo";
2658 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2688 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2659 var path = (req.url).path; 2689 var path = (req.url).path;
2660 var pathOffset = 0; 2690 var pathOffset = 0;
2661 var index; 2691 var index;
2662 var subPart; 2692 var subPart;
2663 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2664 pathOffset += 13; 2694 pathOffset += 1;
2695 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2696 pathOffset += 12;
2665 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2697 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2666 pathOffset += 9; 2698 pathOffset += 9;
2667 index = path.indexOf("/datasets/", pathOffset); 2699 index = path.indexOf("/datasets/", pathOffset);
2668 unittest.expect(index >= 0, unittest.isTrue); 2700 unittest.expect(index >= 0, unittest.isTrue);
2669 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2670 pathOffset = index; 2702 pathOffset = index;
2671 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2703 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2672 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2704 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2673 pathOffset += 10; 2705 pathOffset += 10;
2674 index = path.indexOf("/tables/", pathOffset); 2706 index = path.indexOf("/tables/", pathOffset);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2719 var arg_projectId = "foo"; 2751 var arg_projectId = "foo";
2720 var arg_datasetId = "foo"; 2752 var arg_datasetId = "foo";
2721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2753 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2722 var obj = new api.Table.fromJson(json); 2754 var obj = new api.Table.fromJson(json);
2723 checkTable(obj); 2755 checkTable(obj);
2724 2756
2725 var path = (req.url).path; 2757 var path = (req.url).path;
2726 var pathOffset = 0; 2758 var pathOffset = 0;
2727 var index; 2759 var index;
2728 var subPart; 2760 var subPart;
2729 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2761 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2730 pathOffset += 13; 2762 pathOffset += 1;
2763 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2764 pathOffset += 12;
2731 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2765 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2732 pathOffset += 9; 2766 pathOffset += 9;
2733 index = path.indexOf("/datasets/", pathOffset); 2767 index = path.indexOf("/datasets/", pathOffset);
2734 unittest.expect(index >= 0, unittest.isTrue); 2768 unittest.expect(index >= 0, unittest.isTrue);
2735 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2769 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2736 pathOffset = index; 2770 pathOffset = index;
2737 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2771 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2738 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2772 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2739 pathOffset += 10; 2773 pathOffset += 10;
2740 index = path.indexOf("/tables", pathOffset); 2774 index = path.indexOf("/tables", pathOffset);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; 2814 api.TablesResourceApi res = new api.BigqueryApi(mock).tables;
2781 var arg_projectId = "foo"; 2815 var arg_projectId = "foo";
2782 var arg_datasetId = "foo"; 2816 var arg_datasetId = "foo";
2783 var arg_maxResults = 42; 2817 var arg_maxResults = 42;
2784 var arg_pageToken = "foo"; 2818 var arg_pageToken = "foo";
2785 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2819 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2786 var path = (req.url).path; 2820 var path = (req.url).path;
2787 var pathOffset = 0; 2821 var pathOffset = 0;
2788 var index; 2822 var index;
2789 var subPart; 2823 var subPart;
2790 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2824 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2791 pathOffset += 13; 2825 pathOffset += 1;
2826 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2827 pathOffset += 12;
2792 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2828 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2793 pathOffset += 9; 2829 pathOffset += 9;
2794 index = path.indexOf("/datasets/", pathOffset); 2830 index = path.indexOf("/datasets/", pathOffset);
2795 unittest.expect(index >= 0, unittest.isTrue); 2831 unittest.expect(index >= 0, unittest.isTrue);
2796 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2832 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2797 pathOffset = index; 2833 pathOffset = index;
2798 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2834 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2799 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2835 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2800 pathOffset += 10; 2836 pathOffset += 10;
2801 index = path.indexOf("/tables", pathOffset); 2837 index = path.indexOf("/tables", pathOffset);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 var arg_datasetId = "foo"; 2882 var arg_datasetId = "foo";
2847 var arg_tableId = "foo"; 2883 var arg_tableId = "foo";
2848 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2884 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2849 var obj = new api.Table.fromJson(json); 2885 var obj = new api.Table.fromJson(json);
2850 checkTable(obj); 2886 checkTable(obj);
2851 2887
2852 var path = (req.url).path; 2888 var path = (req.url).path;
2853 var pathOffset = 0; 2889 var pathOffset = 0;
2854 var index; 2890 var index;
2855 var subPart; 2891 var subPart;
2856 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2857 pathOffset += 13; 2893 pathOffset += 1;
2894 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2895 pathOffset += 12;
2858 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2896 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2859 pathOffset += 9; 2897 pathOffset += 9;
2860 index = path.indexOf("/datasets/", pathOffset); 2898 index = path.indexOf("/datasets/", pathOffset);
2861 unittest.expect(index >= 0, unittest.isTrue); 2899 unittest.expect(index >= 0, unittest.isTrue);
2862 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2900 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2863 pathOffset = index; 2901 pathOffset = index;
2864 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2902 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2865 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2903 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2866 pathOffset += 10; 2904 pathOffset += 10;
2867 index = path.indexOf("/tables/", pathOffset); 2905 index = path.indexOf("/tables/", pathOffset);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2913 var arg_datasetId = "foo"; 2951 var arg_datasetId = "foo";
2914 var arg_tableId = "foo"; 2952 var arg_tableId = "foo";
2915 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2953 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2916 var obj = new api.Table.fromJson(json); 2954 var obj = new api.Table.fromJson(json);
2917 checkTable(obj); 2955 checkTable(obj);
2918 2956
2919 var path = (req.url).path; 2957 var path = (req.url).path;
2920 var pathOffset = 0; 2958 var pathOffset = 0;
2921 var index; 2959 var index;
2922 var subPart; 2960 var subPart;
2923 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/bigquery/v2/")); 2961 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2924 pathOffset += 13; 2962 pathOffset += 1;
2963 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
2964 pathOffset += 12;
2925 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 2965 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
2926 pathOffset += 9; 2966 pathOffset += 9;
2927 index = path.indexOf("/datasets/", pathOffset); 2967 index = path.indexOf("/datasets/", pathOffset);
2928 unittest.expect(index >= 0, unittest.isTrue); 2968 unittest.expect(index >= 0, unittest.isTrue);
2929 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 2969 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2930 pathOffset = index; 2970 pathOffset = index;
2931 unittest.expect(subPart, unittest.equals("$arg_projectId")); 2971 unittest.expect(subPart, unittest.equals("$arg_projectId"));
2932 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/")); 2972 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datasets/"));
2933 pathOffset += 10; 2973 pathOffset += 10;
2934 index = path.indexOf("/tables/", pathOffset); 2974 index = path.indexOf("/tables/", pathOffset);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un ittest.expectAsync(((api.Table response) { 3009 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un ittest.expectAsync(((api.Table response) {
2970 checkTable(response); 3010 checkTable(response);
2971 }))); 3011 })));
2972 }); 3012 });
2973 3013
2974 }); 3014 });
2975 3015
2976 3016
2977 } 3017 }
2978 3018
OLDNEW
« no previous file with comments | « generated/googleapis/test/appstate/v1_test.dart ('k') | generated/googleapis/test/blogger/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698