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

Side by Side Diff: generated/googleapis_beta/test/datastore/v1beta3_test.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 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_beta.datastore.v1beta3.test; 1 library googleapis_beta.datastore.v1beta3.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed3200() { 54 buildUnnamed3566() {
55 var o = new core.List<api.Key>(); 55 var o = new core.List<api.Key>();
56 o.add(buildKey()); 56 o.add(buildKey());
57 o.add(buildKey()); 57 o.add(buildKey());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed3200(core.List<api.Key> o) { 61 checkUnnamed3566(core.List<api.Key> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkKey(o[0]); 63 checkKey(o[0]);
64 checkKey(o[1]); 64 checkKey(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAllocateIdsRequest = 0; 67 core.int buildCounterAllocateIdsRequest = 0;
68 buildAllocateIdsRequest() { 68 buildAllocateIdsRequest() {
69 var o = new api.AllocateIdsRequest(); 69 var o = new api.AllocateIdsRequest();
70 buildCounterAllocateIdsRequest++; 70 buildCounterAllocateIdsRequest++;
71 if (buildCounterAllocateIdsRequest < 3) { 71 if (buildCounterAllocateIdsRequest < 3) {
72 o.keys = buildUnnamed3200(); 72 o.keys = buildUnnamed3566();
73 } 73 }
74 buildCounterAllocateIdsRequest--; 74 buildCounterAllocateIdsRequest--;
75 return o; 75 return o;
76 } 76 }
77 77
78 checkAllocateIdsRequest(api.AllocateIdsRequest o) { 78 checkAllocateIdsRequest(api.AllocateIdsRequest o) {
79 buildCounterAllocateIdsRequest++; 79 buildCounterAllocateIdsRequest++;
80 if (buildCounterAllocateIdsRequest < 3) { 80 if (buildCounterAllocateIdsRequest < 3) {
81 checkUnnamed3200(o.keys); 81 checkUnnamed3566(o.keys);
82 } 82 }
83 buildCounterAllocateIdsRequest--; 83 buildCounterAllocateIdsRequest--;
84 } 84 }
85 85
86 buildUnnamed3201() { 86 buildUnnamed3567() {
87 var o = new core.List<api.Key>(); 87 var o = new core.List<api.Key>();
88 o.add(buildKey()); 88 o.add(buildKey());
89 o.add(buildKey()); 89 o.add(buildKey());
90 return o; 90 return o;
91 } 91 }
92 92
93 checkUnnamed3201(core.List<api.Key> o) { 93 checkUnnamed3567(core.List<api.Key> o) {
94 unittest.expect(o, unittest.hasLength(2)); 94 unittest.expect(o, unittest.hasLength(2));
95 checkKey(o[0]); 95 checkKey(o[0]);
96 checkKey(o[1]); 96 checkKey(o[1]);
97 } 97 }
98 98
99 core.int buildCounterAllocateIdsResponse = 0; 99 core.int buildCounterAllocateIdsResponse = 0;
100 buildAllocateIdsResponse() { 100 buildAllocateIdsResponse() {
101 var o = new api.AllocateIdsResponse(); 101 var o = new api.AllocateIdsResponse();
102 buildCounterAllocateIdsResponse++; 102 buildCounterAllocateIdsResponse++;
103 if (buildCounterAllocateIdsResponse < 3) { 103 if (buildCounterAllocateIdsResponse < 3) {
104 o.keys = buildUnnamed3201(); 104 o.keys = buildUnnamed3567();
105 } 105 }
106 buildCounterAllocateIdsResponse--; 106 buildCounterAllocateIdsResponse--;
107 return o; 107 return o;
108 } 108 }
109 109
110 checkAllocateIdsResponse(api.AllocateIdsResponse o) { 110 checkAllocateIdsResponse(api.AllocateIdsResponse o) {
111 buildCounterAllocateIdsResponse++; 111 buildCounterAllocateIdsResponse++;
112 if (buildCounterAllocateIdsResponse < 3) { 112 if (buildCounterAllocateIdsResponse < 3) {
113 checkUnnamed3201(o.keys); 113 checkUnnamed3567(o.keys);
114 } 114 }
115 buildCounterAllocateIdsResponse--; 115 buildCounterAllocateIdsResponse--;
116 } 116 }
117 117
118 buildUnnamed3202() { 118 buildUnnamed3568() {
119 var o = new core.List<api.Value>(); 119 var o = new core.List<api.Value>();
120 o.add(buildValue()); 120 o.add(buildValue());
121 o.add(buildValue()); 121 o.add(buildValue());
122 return o; 122 return o;
123 } 123 }
124 124
125 checkUnnamed3202(core.List<api.Value> o) { 125 checkUnnamed3568(core.List<api.Value> o) {
126 unittest.expect(o, unittest.hasLength(2)); 126 unittest.expect(o, unittest.hasLength(2));
127 checkValue(o[0]); 127 checkValue(o[0]);
128 checkValue(o[1]); 128 checkValue(o[1]);
129 } 129 }
130 130
131 core.int buildCounterArrayValue = 0; 131 core.int buildCounterArrayValue = 0;
132 buildArrayValue() { 132 buildArrayValue() {
133 var o = new api.ArrayValue(); 133 var o = new api.ArrayValue();
134 buildCounterArrayValue++; 134 buildCounterArrayValue++;
135 if (buildCounterArrayValue < 3) { 135 if (buildCounterArrayValue < 3) {
136 o.values = buildUnnamed3202(); 136 o.values = buildUnnamed3568();
137 } 137 }
138 buildCounterArrayValue--; 138 buildCounterArrayValue--;
139 return o; 139 return o;
140 } 140 }
141 141
142 checkArrayValue(api.ArrayValue o) { 142 checkArrayValue(api.ArrayValue o) {
143 buildCounterArrayValue++; 143 buildCounterArrayValue++;
144 if (buildCounterArrayValue < 3) { 144 if (buildCounterArrayValue < 3) {
145 checkUnnamed3202(o.values); 145 checkUnnamed3568(o.values);
146 } 146 }
147 buildCounterArrayValue--; 147 buildCounterArrayValue--;
148 } 148 }
149 149
150 core.int buildCounterBeginTransactionRequest = 0; 150 core.int buildCounterBeginTransactionRequest = 0;
151 buildBeginTransactionRequest() { 151 buildBeginTransactionRequest() {
152 var o = new api.BeginTransactionRequest(); 152 var o = new api.BeginTransactionRequest();
153 buildCounterBeginTransactionRequest++; 153 buildCounterBeginTransactionRequest++;
154 if (buildCounterBeginTransactionRequest < 3) { 154 if (buildCounterBeginTransactionRequest < 3) {
155 } 155 }
(...skipping 20 matching lines...) Expand all
176 } 176 }
177 177
178 checkBeginTransactionResponse(api.BeginTransactionResponse o) { 178 checkBeginTransactionResponse(api.BeginTransactionResponse o) {
179 buildCounterBeginTransactionResponse++; 179 buildCounterBeginTransactionResponse++;
180 if (buildCounterBeginTransactionResponse < 3) { 180 if (buildCounterBeginTransactionResponse < 3) {
181 unittest.expect(o.transaction, unittest.equals('foo')); 181 unittest.expect(o.transaction, unittest.equals('foo'));
182 } 182 }
183 buildCounterBeginTransactionResponse--; 183 buildCounterBeginTransactionResponse--;
184 } 184 }
185 185
186 buildUnnamed3203() { 186 buildUnnamed3569() {
187 var o = new core.List<api.Mutation>(); 187 var o = new core.List<api.Mutation>();
188 o.add(buildMutation()); 188 o.add(buildMutation());
189 o.add(buildMutation()); 189 o.add(buildMutation());
190 return o; 190 return o;
191 } 191 }
192 192
193 checkUnnamed3203(core.List<api.Mutation> o) { 193 checkUnnamed3569(core.List<api.Mutation> o) {
194 unittest.expect(o, unittest.hasLength(2)); 194 unittest.expect(o, unittest.hasLength(2));
195 checkMutation(o[0]); 195 checkMutation(o[0]);
196 checkMutation(o[1]); 196 checkMutation(o[1]);
197 } 197 }
198 198
199 core.int buildCounterCommitRequest = 0; 199 core.int buildCounterCommitRequest = 0;
200 buildCommitRequest() { 200 buildCommitRequest() {
201 var o = new api.CommitRequest(); 201 var o = new api.CommitRequest();
202 buildCounterCommitRequest++; 202 buildCounterCommitRequest++;
203 if (buildCounterCommitRequest < 3) { 203 if (buildCounterCommitRequest < 3) {
204 o.mode = "foo"; 204 o.mode = "foo";
205 o.mutations = buildUnnamed3203(); 205 o.mutations = buildUnnamed3569();
206 o.transaction = "foo"; 206 o.transaction = "foo";
207 } 207 }
208 buildCounterCommitRequest--; 208 buildCounterCommitRequest--;
209 return o; 209 return o;
210 } 210 }
211 211
212 checkCommitRequest(api.CommitRequest o) { 212 checkCommitRequest(api.CommitRequest o) {
213 buildCounterCommitRequest++; 213 buildCounterCommitRequest++;
214 if (buildCounterCommitRequest < 3) { 214 if (buildCounterCommitRequest < 3) {
215 unittest.expect(o.mode, unittest.equals('foo')); 215 unittest.expect(o.mode, unittest.equals('foo'));
216 checkUnnamed3203(o.mutations); 216 checkUnnamed3569(o.mutations);
217 unittest.expect(o.transaction, unittest.equals('foo')); 217 unittest.expect(o.transaction, unittest.equals('foo'));
218 } 218 }
219 buildCounterCommitRequest--; 219 buildCounterCommitRequest--;
220 } 220 }
221 221
222 buildUnnamed3204() { 222 buildUnnamed3570() {
223 var o = new core.List<api.MutationResult>(); 223 var o = new core.List<api.MutationResult>();
224 o.add(buildMutationResult()); 224 o.add(buildMutationResult());
225 o.add(buildMutationResult()); 225 o.add(buildMutationResult());
226 return o; 226 return o;
227 } 227 }
228 228
229 checkUnnamed3204(core.List<api.MutationResult> o) { 229 checkUnnamed3570(core.List<api.MutationResult> o) {
230 unittest.expect(o, unittest.hasLength(2)); 230 unittest.expect(o, unittest.hasLength(2));
231 checkMutationResult(o[0]); 231 checkMutationResult(o[0]);
232 checkMutationResult(o[1]); 232 checkMutationResult(o[1]);
233 } 233 }
234 234
235 core.int buildCounterCommitResponse = 0; 235 core.int buildCounterCommitResponse = 0;
236 buildCommitResponse() { 236 buildCommitResponse() {
237 var o = new api.CommitResponse(); 237 var o = new api.CommitResponse();
238 buildCounterCommitResponse++; 238 buildCounterCommitResponse++;
239 if (buildCounterCommitResponse < 3) { 239 if (buildCounterCommitResponse < 3) {
240 o.indexUpdates = 42; 240 o.indexUpdates = 42;
241 o.mutationResults = buildUnnamed3204(); 241 o.mutationResults = buildUnnamed3570();
242 } 242 }
243 buildCounterCommitResponse--; 243 buildCounterCommitResponse--;
244 return o; 244 return o;
245 } 245 }
246 246
247 checkCommitResponse(api.CommitResponse o) { 247 checkCommitResponse(api.CommitResponse o) {
248 buildCounterCommitResponse++; 248 buildCounterCommitResponse++;
249 if (buildCounterCommitResponse < 3) { 249 if (buildCounterCommitResponse < 3) {
250 unittest.expect(o.indexUpdates, unittest.equals(42)); 250 unittest.expect(o.indexUpdates, unittest.equals(42));
251 checkUnnamed3204(o.mutationResults); 251 checkUnnamed3570(o.mutationResults);
252 } 252 }
253 buildCounterCommitResponse--; 253 buildCounterCommitResponse--;
254 } 254 }
255 255
256 buildUnnamed3205() { 256 buildUnnamed3571() {
257 var o = new core.List<api.Filter>(); 257 var o = new core.List<api.Filter>();
258 o.add(buildFilter()); 258 o.add(buildFilter());
259 o.add(buildFilter()); 259 o.add(buildFilter());
260 return o; 260 return o;
261 } 261 }
262 262
263 checkUnnamed3205(core.List<api.Filter> o) { 263 checkUnnamed3571(core.List<api.Filter> o) {
264 unittest.expect(o, unittest.hasLength(2)); 264 unittest.expect(o, unittest.hasLength(2));
265 checkFilter(o[0]); 265 checkFilter(o[0]);
266 checkFilter(o[1]); 266 checkFilter(o[1]);
267 } 267 }
268 268
269 core.int buildCounterCompositeFilter = 0; 269 core.int buildCounterCompositeFilter = 0;
270 buildCompositeFilter() { 270 buildCompositeFilter() {
271 var o = new api.CompositeFilter(); 271 var o = new api.CompositeFilter();
272 buildCounterCompositeFilter++; 272 buildCounterCompositeFilter++;
273 if (buildCounterCompositeFilter < 3) { 273 if (buildCounterCompositeFilter < 3) {
274 o.filters = buildUnnamed3205(); 274 o.filters = buildUnnamed3571();
275 o.op = "foo"; 275 o.op = "foo";
276 } 276 }
277 buildCounterCompositeFilter--; 277 buildCounterCompositeFilter--;
278 return o; 278 return o;
279 } 279 }
280 280
281 checkCompositeFilter(api.CompositeFilter o) { 281 checkCompositeFilter(api.CompositeFilter o) {
282 buildCounterCompositeFilter++; 282 buildCounterCompositeFilter++;
283 if (buildCounterCompositeFilter < 3) { 283 if (buildCounterCompositeFilter < 3) {
284 checkUnnamed3205(o.filters); 284 checkUnnamed3571(o.filters);
285 unittest.expect(o.op, unittest.equals('foo')); 285 unittest.expect(o.op, unittest.equals('foo'));
286 } 286 }
287 buildCounterCompositeFilter--; 287 buildCounterCompositeFilter--;
288 } 288 }
289 289
290 buildUnnamed3206() { 290 buildUnnamed3572() {
291 var o = new core.Map<core.String, api.Value>(); 291 var o = new core.Map<core.String, api.Value>();
292 o["x"] = buildValue(); 292 o["x"] = buildValue();
293 o["y"] = buildValue(); 293 o["y"] = buildValue();
294 return o; 294 return o;
295 } 295 }
296 296
297 checkUnnamed3206(core.Map<core.String, api.Value> o) { 297 checkUnnamed3572(core.Map<core.String, api.Value> o) {
298 unittest.expect(o, unittest.hasLength(2)); 298 unittest.expect(o, unittest.hasLength(2));
299 checkValue(o["x"]); 299 checkValue(o["x"]);
300 checkValue(o["y"]); 300 checkValue(o["y"]);
301 } 301 }
302 302
303 core.int buildCounterEntity = 0; 303 core.int buildCounterEntity = 0;
304 buildEntity() { 304 buildEntity() {
305 var o = new api.Entity(); 305 var o = new api.Entity();
306 buildCounterEntity++; 306 buildCounterEntity++;
307 if (buildCounterEntity < 3) { 307 if (buildCounterEntity < 3) {
308 o.key = buildKey(); 308 o.key = buildKey();
309 o.properties = buildUnnamed3206(); 309 o.properties = buildUnnamed3572();
310 } 310 }
311 buildCounterEntity--; 311 buildCounterEntity--;
312 return o; 312 return o;
313 } 313 }
314 314
315 checkEntity(api.Entity o) { 315 checkEntity(api.Entity o) {
316 buildCounterEntity++; 316 buildCounterEntity++;
317 if (buildCounterEntity < 3) { 317 if (buildCounterEntity < 3) {
318 checkKey(o.key); 318 checkKey(o.key);
319 checkUnnamed3206(o.properties); 319 checkUnnamed3572(o.properties);
320 } 320 }
321 buildCounterEntity--; 321 buildCounterEntity--;
322 } 322 }
323 323
324 core.int buildCounterEntityResult = 0; 324 core.int buildCounterEntityResult = 0;
325 buildEntityResult() { 325 buildEntityResult() {
326 var o = new api.EntityResult(); 326 var o = new api.EntityResult();
327 buildCounterEntityResult++; 327 buildCounterEntityResult++;
328 if (buildCounterEntityResult < 3) { 328 if (buildCounterEntityResult < 3) {
329 o.cursor = "foo"; 329 o.cursor = "foo";
(...skipping 26 matching lines...) Expand all
356 356
357 checkFilter(api.Filter o) { 357 checkFilter(api.Filter o) {
358 buildCounterFilter++; 358 buildCounterFilter++;
359 if (buildCounterFilter < 3) { 359 if (buildCounterFilter < 3) {
360 checkCompositeFilter(o.compositeFilter); 360 checkCompositeFilter(o.compositeFilter);
361 checkPropertyFilter(o.propertyFilter); 361 checkPropertyFilter(o.propertyFilter);
362 } 362 }
363 buildCounterFilter--; 363 buildCounterFilter--;
364 } 364 }
365 365
366 buildUnnamed3207() { 366 buildUnnamed3573() {
367 var o = new core.Map<core.String, api.GqlQueryParameter>(); 367 var o = new core.Map<core.String, api.GqlQueryParameter>();
368 o["x"] = buildGqlQueryParameter(); 368 o["x"] = buildGqlQueryParameter();
369 o["y"] = buildGqlQueryParameter(); 369 o["y"] = buildGqlQueryParameter();
370 return o; 370 return o;
371 } 371 }
372 372
373 checkUnnamed3207(core.Map<core.String, api.GqlQueryParameter> o) { 373 checkUnnamed3573(core.Map<core.String, api.GqlQueryParameter> o) {
374 unittest.expect(o, unittest.hasLength(2)); 374 unittest.expect(o, unittest.hasLength(2));
375 checkGqlQueryParameter(o["x"]); 375 checkGqlQueryParameter(o["x"]);
376 checkGqlQueryParameter(o["y"]); 376 checkGqlQueryParameter(o["y"]);
377 } 377 }
378 378
379 buildUnnamed3208() { 379 buildUnnamed3574() {
380 var o = new core.List<api.GqlQueryParameter>(); 380 var o = new core.List<api.GqlQueryParameter>();
381 o.add(buildGqlQueryParameter()); 381 o.add(buildGqlQueryParameter());
382 o.add(buildGqlQueryParameter()); 382 o.add(buildGqlQueryParameter());
383 return o; 383 return o;
384 } 384 }
385 385
386 checkUnnamed3208(core.List<api.GqlQueryParameter> o) { 386 checkUnnamed3574(core.List<api.GqlQueryParameter> o) {
387 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
388 checkGqlQueryParameter(o[0]); 388 checkGqlQueryParameter(o[0]);
389 checkGqlQueryParameter(o[1]); 389 checkGqlQueryParameter(o[1]);
390 } 390 }
391 391
392 core.int buildCounterGqlQuery = 0; 392 core.int buildCounterGqlQuery = 0;
393 buildGqlQuery() { 393 buildGqlQuery() {
394 var o = new api.GqlQuery(); 394 var o = new api.GqlQuery();
395 buildCounterGqlQuery++; 395 buildCounterGqlQuery++;
396 if (buildCounterGqlQuery < 3) { 396 if (buildCounterGqlQuery < 3) {
397 o.allowLiterals = true; 397 o.allowLiterals = true;
398 o.namedBindings = buildUnnamed3207(); 398 o.namedBindings = buildUnnamed3573();
399 o.positionalBindings = buildUnnamed3208(); 399 o.positionalBindings = buildUnnamed3574();
400 o.queryString = "foo"; 400 o.queryString = "foo";
401 } 401 }
402 buildCounterGqlQuery--; 402 buildCounterGqlQuery--;
403 return o; 403 return o;
404 } 404 }
405 405
406 checkGqlQuery(api.GqlQuery o) { 406 checkGqlQuery(api.GqlQuery o) {
407 buildCounterGqlQuery++; 407 buildCounterGqlQuery++;
408 if (buildCounterGqlQuery < 3) { 408 if (buildCounterGqlQuery < 3) {
409 unittest.expect(o.allowLiterals, unittest.isTrue); 409 unittest.expect(o.allowLiterals, unittest.isTrue);
410 checkUnnamed3207(o.namedBindings); 410 checkUnnamed3573(o.namedBindings);
411 checkUnnamed3208(o.positionalBindings); 411 checkUnnamed3574(o.positionalBindings);
412 unittest.expect(o.queryString, unittest.equals('foo')); 412 unittest.expect(o.queryString, unittest.equals('foo'));
413 } 413 }
414 buildCounterGqlQuery--; 414 buildCounterGqlQuery--;
415 } 415 }
416 416
417 core.int buildCounterGqlQueryParameter = 0; 417 core.int buildCounterGqlQueryParameter = 0;
418 buildGqlQueryParameter() { 418 buildGqlQueryParameter() {
419 var o = new api.GqlQueryParameter(); 419 var o = new api.GqlQueryParameter();
420 buildCounterGqlQueryParameter++; 420 buildCounterGqlQueryParameter++;
421 if (buildCounterGqlQueryParameter < 3) { 421 if (buildCounterGqlQueryParameter < 3) {
422 o.cursor = "foo"; 422 o.cursor = "foo";
423 o.value = buildValue(); 423 o.value = buildValue();
424 } 424 }
425 buildCounterGqlQueryParameter--; 425 buildCounterGqlQueryParameter--;
426 return o; 426 return o;
427 } 427 }
428 428
429 checkGqlQueryParameter(api.GqlQueryParameter o) { 429 checkGqlQueryParameter(api.GqlQueryParameter o) {
430 buildCounterGqlQueryParameter++; 430 buildCounterGqlQueryParameter++;
431 if (buildCounterGqlQueryParameter < 3) { 431 if (buildCounterGqlQueryParameter < 3) {
432 unittest.expect(o.cursor, unittest.equals('foo')); 432 unittest.expect(o.cursor, unittest.equals('foo'));
433 checkValue(o.value); 433 checkValue(o.value);
434 } 434 }
435 buildCounterGqlQueryParameter--; 435 buildCounterGqlQueryParameter--;
436 } 436 }
437 437
438 buildUnnamed3209() { 438 buildUnnamed3575() {
439 var o = new core.List<api.PathElement>(); 439 var o = new core.List<api.PathElement>();
440 o.add(buildPathElement()); 440 o.add(buildPathElement());
441 o.add(buildPathElement()); 441 o.add(buildPathElement());
442 return o; 442 return o;
443 } 443 }
444 444
445 checkUnnamed3209(core.List<api.PathElement> o) { 445 checkUnnamed3575(core.List<api.PathElement> o) {
446 unittest.expect(o, unittest.hasLength(2)); 446 unittest.expect(o, unittest.hasLength(2));
447 checkPathElement(o[0]); 447 checkPathElement(o[0]);
448 checkPathElement(o[1]); 448 checkPathElement(o[1]);
449 } 449 }
450 450
451 core.int buildCounterKey = 0; 451 core.int buildCounterKey = 0;
452 buildKey() { 452 buildKey() {
453 var o = new api.Key(); 453 var o = new api.Key();
454 buildCounterKey++; 454 buildCounterKey++;
455 if (buildCounterKey < 3) { 455 if (buildCounterKey < 3) {
456 o.partitionId = buildPartitionId(); 456 o.partitionId = buildPartitionId();
457 o.path = buildUnnamed3209(); 457 o.path = buildUnnamed3575();
458 } 458 }
459 buildCounterKey--; 459 buildCounterKey--;
460 return o; 460 return o;
461 } 461 }
462 462
463 checkKey(api.Key o) { 463 checkKey(api.Key o) {
464 buildCounterKey++; 464 buildCounterKey++;
465 if (buildCounterKey < 3) { 465 if (buildCounterKey < 3) {
466 checkPartitionId(o.partitionId); 466 checkPartitionId(o.partitionId);
467 checkUnnamed3209(o.path); 467 checkUnnamed3575(o.path);
468 } 468 }
469 buildCounterKey--; 469 buildCounterKey--;
470 } 470 }
471 471
472 core.int buildCounterKindExpression = 0; 472 core.int buildCounterKindExpression = 0;
473 buildKindExpression() { 473 buildKindExpression() {
474 var o = new api.KindExpression(); 474 var o = new api.KindExpression();
475 buildCounterKindExpression++; 475 buildCounterKindExpression++;
476 if (buildCounterKindExpression < 3) { 476 if (buildCounterKindExpression < 3) {
477 o.name = "foo"; 477 o.name = "foo";
(...skipping 24 matching lines...) Expand all
502 502
503 checkLatLng(api.LatLng o) { 503 checkLatLng(api.LatLng o) {
504 buildCounterLatLng++; 504 buildCounterLatLng++;
505 if (buildCounterLatLng < 3) { 505 if (buildCounterLatLng < 3) {
506 unittest.expect(o.latitude, unittest.equals(42.0)); 506 unittest.expect(o.latitude, unittest.equals(42.0));
507 unittest.expect(o.longitude, unittest.equals(42.0)); 507 unittest.expect(o.longitude, unittest.equals(42.0));
508 } 508 }
509 buildCounterLatLng--; 509 buildCounterLatLng--;
510 } 510 }
511 511
512 buildUnnamed3210() { 512 buildUnnamed3576() {
513 var o = new core.List<api.Key>(); 513 var o = new core.List<api.Key>();
514 o.add(buildKey()); 514 o.add(buildKey());
515 o.add(buildKey()); 515 o.add(buildKey());
516 return o; 516 return o;
517 } 517 }
518 518
519 checkUnnamed3210(core.List<api.Key> o) { 519 checkUnnamed3576(core.List<api.Key> o) {
520 unittest.expect(o, unittest.hasLength(2)); 520 unittest.expect(o, unittest.hasLength(2));
521 checkKey(o[0]); 521 checkKey(o[0]);
522 checkKey(o[1]); 522 checkKey(o[1]);
523 } 523 }
524 524
525 core.int buildCounterLookupRequest = 0; 525 core.int buildCounterLookupRequest = 0;
526 buildLookupRequest() { 526 buildLookupRequest() {
527 var o = new api.LookupRequest(); 527 var o = new api.LookupRequest();
528 buildCounterLookupRequest++; 528 buildCounterLookupRequest++;
529 if (buildCounterLookupRequest < 3) { 529 if (buildCounterLookupRequest < 3) {
530 o.keys = buildUnnamed3210(); 530 o.keys = buildUnnamed3576();
531 o.readOptions = buildReadOptions(); 531 o.readOptions = buildReadOptions();
532 } 532 }
533 buildCounterLookupRequest--; 533 buildCounterLookupRequest--;
534 return o; 534 return o;
535 } 535 }
536 536
537 checkLookupRequest(api.LookupRequest o) { 537 checkLookupRequest(api.LookupRequest o) {
538 buildCounterLookupRequest++; 538 buildCounterLookupRequest++;
539 if (buildCounterLookupRequest < 3) { 539 if (buildCounterLookupRequest < 3) {
540 checkUnnamed3210(o.keys); 540 checkUnnamed3576(o.keys);
541 checkReadOptions(o.readOptions); 541 checkReadOptions(o.readOptions);
542 } 542 }
543 buildCounterLookupRequest--; 543 buildCounterLookupRequest--;
544 } 544 }
545 545
546 buildUnnamed3211() { 546 buildUnnamed3577() {
547 var o = new core.List<api.Key>(); 547 var o = new core.List<api.Key>();
548 o.add(buildKey()); 548 o.add(buildKey());
549 o.add(buildKey()); 549 o.add(buildKey());
550 return o; 550 return o;
551 } 551 }
552 552
553 checkUnnamed3211(core.List<api.Key> o) { 553 checkUnnamed3577(core.List<api.Key> o) {
554 unittest.expect(o, unittest.hasLength(2)); 554 unittest.expect(o, unittest.hasLength(2));
555 checkKey(o[0]); 555 checkKey(o[0]);
556 checkKey(o[1]); 556 checkKey(o[1]);
557 } 557 }
558 558
559 buildUnnamed3212() { 559 buildUnnamed3578() {
560 var o = new core.List<api.EntityResult>(); 560 var o = new core.List<api.EntityResult>();
561 o.add(buildEntityResult()); 561 o.add(buildEntityResult());
562 o.add(buildEntityResult()); 562 o.add(buildEntityResult());
563 return o; 563 return o;
564 } 564 }
565 565
566 checkUnnamed3212(core.List<api.EntityResult> o) { 566 checkUnnamed3578(core.List<api.EntityResult> o) {
567 unittest.expect(o, unittest.hasLength(2)); 567 unittest.expect(o, unittest.hasLength(2));
568 checkEntityResult(o[0]); 568 checkEntityResult(o[0]);
569 checkEntityResult(o[1]); 569 checkEntityResult(o[1]);
570 } 570 }
571 571
572 buildUnnamed3213() { 572 buildUnnamed3579() {
573 var o = new core.List<api.EntityResult>(); 573 var o = new core.List<api.EntityResult>();
574 o.add(buildEntityResult()); 574 o.add(buildEntityResult());
575 o.add(buildEntityResult()); 575 o.add(buildEntityResult());
576 return o; 576 return o;
577 } 577 }
578 578
579 checkUnnamed3213(core.List<api.EntityResult> o) { 579 checkUnnamed3579(core.List<api.EntityResult> o) {
580 unittest.expect(o, unittest.hasLength(2)); 580 unittest.expect(o, unittest.hasLength(2));
581 checkEntityResult(o[0]); 581 checkEntityResult(o[0]);
582 checkEntityResult(o[1]); 582 checkEntityResult(o[1]);
583 } 583 }
584 584
585 core.int buildCounterLookupResponse = 0; 585 core.int buildCounterLookupResponse = 0;
586 buildLookupResponse() { 586 buildLookupResponse() {
587 var o = new api.LookupResponse(); 587 var o = new api.LookupResponse();
588 buildCounterLookupResponse++; 588 buildCounterLookupResponse++;
589 if (buildCounterLookupResponse < 3) { 589 if (buildCounterLookupResponse < 3) {
590 o.deferred = buildUnnamed3211(); 590 o.deferred = buildUnnamed3577();
591 o.found = buildUnnamed3212(); 591 o.found = buildUnnamed3578();
592 o.missing = buildUnnamed3213(); 592 o.missing = buildUnnamed3579();
593 } 593 }
594 buildCounterLookupResponse--; 594 buildCounterLookupResponse--;
595 return o; 595 return o;
596 } 596 }
597 597
598 checkLookupResponse(api.LookupResponse o) { 598 checkLookupResponse(api.LookupResponse o) {
599 buildCounterLookupResponse++; 599 buildCounterLookupResponse++;
600 if (buildCounterLookupResponse < 3) { 600 if (buildCounterLookupResponse < 3) {
601 checkUnnamed3211(o.deferred); 601 checkUnnamed3577(o.deferred);
602 checkUnnamed3212(o.found); 602 checkUnnamed3578(o.found);
603 checkUnnamed3213(o.missing); 603 checkUnnamed3579(o.missing);
604 } 604 }
605 buildCounterLookupResponse--; 605 buildCounterLookupResponse--;
606 } 606 }
607 607
608 core.int buildCounterMutation = 0; 608 core.int buildCounterMutation = 0;
609 buildMutation() { 609 buildMutation() {
610 var o = new api.Mutation(); 610 var o = new api.Mutation();
611 buildCounterMutation++; 611 buildCounterMutation++;
612 if (buildCounterMutation < 3) { 612 if (buildCounterMutation < 3) {
613 o.delete = buildKey(); 613 o.delete = buildKey();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 } 768 }
769 769
770 checkPropertyReference(api.PropertyReference o) { 770 checkPropertyReference(api.PropertyReference o) {
771 buildCounterPropertyReference++; 771 buildCounterPropertyReference++;
772 if (buildCounterPropertyReference < 3) { 772 if (buildCounterPropertyReference < 3) {
773 unittest.expect(o.name, unittest.equals('foo')); 773 unittest.expect(o.name, unittest.equals('foo'));
774 } 774 }
775 buildCounterPropertyReference--; 775 buildCounterPropertyReference--;
776 } 776 }
777 777
778 buildUnnamed3214() { 778 buildUnnamed3580() {
779 var o = new core.List<api.PropertyReference>(); 779 var o = new core.List<api.PropertyReference>();
780 o.add(buildPropertyReference()); 780 o.add(buildPropertyReference());
781 o.add(buildPropertyReference()); 781 o.add(buildPropertyReference());
782 return o; 782 return o;
783 } 783 }
784 784
785 checkUnnamed3214(core.List<api.PropertyReference> o) { 785 checkUnnamed3580(core.List<api.PropertyReference> o) {
786 unittest.expect(o, unittest.hasLength(2)); 786 unittest.expect(o, unittest.hasLength(2));
787 checkPropertyReference(o[0]); 787 checkPropertyReference(o[0]);
788 checkPropertyReference(o[1]); 788 checkPropertyReference(o[1]);
789 } 789 }
790 790
791 buildUnnamed3215() { 791 buildUnnamed3581() {
792 var o = new core.List<api.KindExpression>(); 792 var o = new core.List<api.KindExpression>();
793 o.add(buildKindExpression()); 793 o.add(buildKindExpression());
794 o.add(buildKindExpression()); 794 o.add(buildKindExpression());
795 return o; 795 return o;
796 } 796 }
797 797
798 checkUnnamed3215(core.List<api.KindExpression> o) { 798 checkUnnamed3581(core.List<api.KindExpression> o) {
799 unittest.expect(o, unittest.hasLength(2)); 799 unittest.expect(o, unittest.hasLength(2));
800 checkKindExpression(o[0]); 800 checkKindExpression(o[0]);
801 checkKindExpression(o[1]); 801 checkKindExpression(o[1]);
802 } 802 }
803 803
804 buildUnnamed3216() { 804 buildUnnamed3582() {
805 var o = new core.List<api.PropertyOrder>(); 805 var o = new core.List<api.PropertyOrder>();
806 o.add(buildPropertyOrder()); 806 o.add(buildPropertyOrder());
807 o.add(buildPropertyOrder()); 807 o.add(buildPropertyOrder());
808 return o; 808 return o;
809 } 809 }
810 810
811 checkUnnamed3216(core.List<api.PropertyOrder> o) { 811 checkUnnamed3582(core.List<api.PropertyOrder> o) {
812 unittest.expect(o, unittest.hasLength(2)); 812 unittest.expect(o, unittest.hasLength(2));
813 checkPropertyOrder(o[0]); 813 checkPropertyOrder(o[0]);
814 checkPropertyOrder(o[1]); 814 checkPropertyOrder(o[1]);
815 } 815 }
816 816
817 buildUnnamed3217() { 817 buildUnnamed3583() {
818 var o = new core.List<api.Projection>(); 818 var o = new core.List<api.Projection>();
819 o.add(buildProjection()); 819 o.add(buildProjection());
820 o.add(buildProjection()); 820 o.add(buildProjection());
821 return o; 821 return o;
822 } 822 }
823 823
824 checkUnnamed3217(core.List<api.Projection> o) { 824 checkUnnamed3583(core.List<api.Projection> o) {
825 unittest.expect(o, unittest.hasLength(2)); 825 unittest.expect(o, unittest.hasLength(2));
826 checkProjection(o[0]); 826 checkProjection(o[0]);
827 checkProjection(o[1]); 827 checkProjection(o[1]);
828 } 828 }
829 829
830 core.int buildCounterQuery = 0; 830 core.int buildCounterQuery = 0;
831 buildQuery() { 831 buildQuery() {
832 var o = new api.Query(); 832 var o = new api.Query();
833 buildCounterQuery++; 833 buildCounterQuery++;
834 if (buildCounterQuery < 3) { 834 if (buildCounterQuery < 3) {
835 o.distinctOn = buildUnnamed3214(); 835 o.distinctOn = buildUnnamed3580();
836 o.endCursor = "foo"; 836 o.endCursor = "foo";
837 o.filter = buildFilter(); 837 o.filter = buildFilter();
838 o.kind = buildUnnamed3215(); 838 o.kind = buildUnnamed3581();
839 o.limit = 42; 839 o.limit = 42;
840 o.offset = 42; 840 o.offset = 42;
841 o.order = buildUnnamed3216(); 841 o.order = buildUnnamed3582();
842 o.projection = buildUnnamed3217(); 842 o.projection = buildUnnamed3583();
843 o.startCursor = "foo"; 843 o.startCursor = "foo";
844 } 844 }
845 buildCounterQuery--; 845 buildCounterQuery--;
846 return o; 846 return o;
847 } 847 }
848 848
849 checkQuery(api.Query o) { 849 checkQuery(api.Query o) {
850 buildCounterQuery++; 850 buildCounterQuery++;
851 if (buildCounterQuery < 3) { 851 if (buildCounterQuery < 3) {
852 checkUnnamed3214(o.distinctOn); 852 checkUnnamed3580(o.distinctOn);
853 unittest.expect(o.endCursor, unittest.equals('foo')); 853 unittest.expect(o.endCursor, unittest.equals('foo'));
854 checkFilter(o.filter); 854 checkFilter(o.filter);
855 checkUnnamed3215(o.kind); 855 checkUnnamed3581(o.kind);
856 unittest.expect(o.limit, unittest.equals(42)); 856 unittest.expect(o.limit, unittest.equals(42));
857 unittest.expect(o.offset, unittest.equals(42)); 857 unittest.expect(o.offset, unittest.equals(42));
858 checkUnnamed3216(o.order); 858 checkUnnamed3582(o.order);
859 checkUnnamed3217(o.projection); 859 checkUnnamed3583(o.projection);
860 unittest.expect(o.startCursor, unittest.equals('foo')); 860 unittest.expect(o.startCursor, unittest.equals('foo'));
861 } 861 }
862 buildCounterQuery--; 862 buildCounterQuery--;
863 } 863 }
864 864
865 buildUnnamed3218() { 865 buildUnnamed3584() {
866 var o = new core.List<api.EntityResult>(); 866 var o = new core.List<api.EntityResult>();
867 o.add(buildEntityResult()); 867 o.add(buildEntityResult());
868 o.add(buildEntityResult()); 868 o.add(buildEntityResult());
869 return o; 869 return o;
870 } 870 }
871 871
872 checkUnnamed3218(core.List<api.EntityResult> o) { 872 checkUnnamed3584(core.List<api.EntityResult> o) {
873 unittest.expect(o, unittest.hasLength(2)); 873 unittest.expect(o, unittest.hasLength(2));
874 checkEntityResult(o[0]); 874 checkEntityResult(o[0]);
875 checkEntityResult(o[1]); 875 checkEntityResult(o[1]);
876 } 876 }
877 877
878 core.int buildCounterQueryResultBatch = 0; 878 core.int buildCounterQueryResultBatch = 0;
879 buildQueryResultBatch() { 879 buildQueryResultBatch() {
880 var o = new api.QueryResultBatch(); 880 var o = new api.QueryResultBatch();
881 buildCounterQueryResultBatch++; 881 buildCounterQueryResultBatch++;
882 if (buildCounterQueryResultBatch < 3) { 882 if (buildCounterQueryResultBatch < 3) {
883 o.endCursor = "foo"; 883 o.endCursor = "foo";
884 o.entityResultType = "foo"; 884 o.entityResultType = "foo";
885 o.entityResults = buildUnnamed3218(); 885 o.entityResults = buildUnnamed3584();
886 o.moreResults = "foo"; 886 o.moreResults = "foo";
887 o.skippedCursor = "foo"; 887 o.skippedCursor = "foo";
888 o.skippedResults = 42; 888 o.skippedResults = 42;
889 } 889 }
890 buildCounterQueryResultBatch--; 890 buildCounterQueryResultBatch--;
891 return o; 891 return o;
892 } 892 }
893 893
894 checkQueryResultBatch(api.QueryResultBatch o) { 894 checkQueryResultBatch(api.QueryResultBatch o) {
895 buildCounterQueryResultBatch++; 895 buildCounterQueryResultBatch++;
896 if (buildCounterQueryResultBatch < 3) { 896 if (buildCounterQueryResultBatch < 3) {
897 unittest.expect(o.endCursor, unittest.equals('foo')); 897 unittest.expect(o.endCursor, unittest.equals('foo'));
898 unittest.expect(o.entityResultType, unittest.equals('foo')); 898 unittest.expect(o.entityResultType, unittest.equals('foo'));
899 checkUnnamed3218(o.entityResults); 899 checkUnnamed3584(o.entityResults);
900 unittest.expect(o.moreResults, unittest.equals('foo')); 900 unittest.expect(o.moreResults, unittest.equals('foo'));
901 unittest.expect(o.skippedCursor, unittest.equals('foo')); 901 unittest.expect(o.skippedCursor, unittest.equals('foo'));
902 unittest.expect(o.skippedResults, unittest.equals(42)); 902 unittest.expect(o.skippedResults, unittest.equals(42));
903 } 903 }
904 buildCounterQueryResultBatch--; 904 buildCounterQueryResultBatch--;
905 } 905 }
906 906
907 core.int buildCounterReadOptions = 0; 907 core.int buildCounterReadOptions = 0;
908 buildReadOptions() { 908 buildReadOptions() {
909 var o = new api.ReadOptions(); 909 var o = new api.ReadOptions();
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R unQueryResponse response) { 1687 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R unQueryResponse response) {
1688 checkRunQueryResponse(response); 1688 checkRunQueryResponse(response);
1689 }))); 1689 })));
1690 }); 1690 });
1691 1691
1692 }); 1692 });
1693 1693
1694 1694
1695 } 1695 }
1696 1696
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698