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

Side by Side Diff: generated/googleapis/test/vault/v1_test.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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.vault.v1.test; 1 library googleapis.vault.v1.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:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 checkHeldOrgUnit(api.HeldOrgUnit o) { 251 checkHeldOrgUnit(api.HeldOrgUnit o) {
252 buildCounterHeldOrgUnit++; 252 buildCounterHeldOrgUnit++;
253 if (buildCounterHeldOrgUnit < 3) { 253 if (buildCounterHeldOrgUnit < 3) {
254 unittest.expect(o.holdTime, unittest.equals('foo')); 254 unittest.expect(o.holdTime, unittest.equals('foo'));
255 unittest.expect(o.orgUnitId, unittest.equals('foo')); 255 unittest.expect(o.orgUnitId, unittest.equals('foo'));
256 } 256 }
257 buildCounterHeldOrgUnit--; 257 buildCounterHeldOrgUnit--;
258 } 258 }
259 259
260 buildUnnamed1620() { 260 buildUnnamed1637() {
261 var o = new core.List<api.HeldAccount>(); 261 var o = new core.List<api.HeldAccount>();
262 o.add(buildHeldAccount()); 262 o.add(buildHeldAccount());
263 o.add(buildHeldAccount()); 263 o.add(buildHeldAccount());
264 return o; 264 return o;
265 } 265 }
266 266
267 checkUnnamed1620(core.List<api.HeldAccount> o) { 267 checkUnnamed1637(core.List<api.HeldAccount> o) {
268 unittest.expect(o, unittest.hasLength(2)); 268 unittest.expect(o, unittest.hasLength(2));
269 checkHeldAccount(o[0]); 269 checkHeldAccount(o[0]);
270 checkHeldAccount(o[1]); 270 checkHeldAccount(o[1]);
271 } 271 }
272 272
273 core.int buildCounterHold = 0; 273 core.int buildCounterHold = 0;
274 buildHold() { 274 buildHold() {
275 var o = new api.Hold(); 275 var o = new api.Hold();
276 buildCounterHold++; 276 buildCounterHold++;
277 if (buildCounterHold < 3) { 277 if (buildCounterHold < 3) {
278 o.accounts = buildUnnamed1620(); 278 o.accounts = buildUnnamed1637();
279 o.corpus = "foo"; 279 o.corpus = "foo";
280 o.holdId = "foo"; 280 o.holdId = "foo";
281 o.name = "foo"; 281 o.name = "foo";
282 o.orgUnit = buildHeldOrgUnit(); 282 o.orgUnit = buildHeldOrgUnit();
283 o.query = buildCorpusQuery(); 283 o.query = buildCorpusQuery();
284 o.updateTime = "foo"; 284 o.updateTime = "foo";
285 } 285 }
286 buildCounterHold--; 286 buildCounterHold--;
287 return o; 287 return o;
288 } 288 }
289 289
290 checkHold(api.Hold o) { 290 checkHold(api.Hold o) {
291 buildCounterHold++; 291 buildCounterHold++;
292 if (buildCounterHold < 3) { 292 if (buildCounterHold < 3) {
293 checkUnnamed1620(o.accounts); 293 checkUnnamed1637(o.accounts);
294 unittest.expect(o.corpus, unittest.equals('foo')); 294 unittest.expect(o.corpus, unittest.equals('foo'));
295 unittest.expect(o.holdId, unittest.equals('foo')); 295 unittest.expect(o.holdId, unittest.equals('foo'));
296 unittest.expect(o.name, unittest.equals('foo')); 296 unittest.expect(o.name, unittest.equals('foo'));
297 checkHeldOrgUnit(o.orgUnit); 297 checkHeldOrgUnit(o.orgUnit);
298 checkCorpusQuery(o.query); 298 checkCorpusQuery(o.query);
299 unittest.expect(o.updateTime, unittest.equals('foo')); 299 unittest.expect(o.updateTime, unittest.equals('foo'));
300 } 300 }
301 buildCounterHold--; 301 buildCounterHold--;
302 } 302 }
303 303
304 buildUnnamed1621() { 304 buildUnnamed1638() {
305 var o = new core.List<api.HeldAccount>(); 305 var o = new core.List<api.HeldAccount>();
306 o.add(buildHeldAccount()); 306 o.add(buildHeldAccount());
307 o.add(buildHeldAccount()); 307 o.add(buildHeldAccount());
308 return o; 308 return o;
309 } 309 }
310 310
311 checkUnnamed1621(core.List<api.HeldAccount> o) { 311 checkUnnamed1638(core.List<api.HeldAccount> o) {
312 unittest.expect(o, unittest.hasLength(2)); 312 unittest.expect(o, unittest.hasLength(2));
313 checkHeldAccount(o[0]); 313 checkHeldAccount(o[0]);
314 checkHeldAccount(o[1]); 314 checkHeldAccount(o[1]);
315 } 315 }
316 316
317 core.int buildCounterListHeldAccountsResponse = 0; 317 core.int buildCounterListHeldAccountsResponse = 0;
318 buildListHeldAccountsResponse() { 318 buildListHeldAccountsResponse() {
319 var o = new api.ListHeldAccountsResponse(); 319 var o = new api.ListHeldAccountsResponse();
320 buildCounterListHeldAccountsResponse++; 320 buildCounterListHeldAccountsResponse++;
321 if (buildCounterListHeldAccountsResponse < 3) { 321 if (buildCounterListHeldAccountsResponse < 3) {
322 o.accounts = buildUnnamed1621(); 322 o.accounts = buildUnnamed1638();
323 } 323 }
324 buildCounterListHeldAccountsResponse--; 324 buildCounterListHeldAccountsResponse--;
325 return o; 325 return o;
326 } 326 }
327 327
328 checkListHeldAccountsResponse(api.ListHeldAccountsResponse o) { 328 checkListHeldAccountsResponse(api.ListHeldAccountsResponse o) {
329 buildCounterListHeldAccountsResponse++; 329 buildCounterListHeldAccountsResponse++;
330 if (buildCounterListHeldAccountsResponse < 3) { 330 if (buildCounterListHeldAccountsResponse < 3) {
331 checkUnnamed1621(o.accounts); 331 checkUnnamed1638(o.accounts);
332 } 332 }
333 buildCounterListHeldAccountsResponse--; 333 buildCounterListHeldAccountsResponse--;
334 } 334 }
335 335
336 buildUnnamed1622() { 336 buildUnnamed1639() {
337 var o = new core.List<api.Hold>(); 337 var o = new core.List<api.Hold>();
338 o.add(buildHold()); 338 o.add(buildHold());
339 o.add(buildHold()); 339 o.add(buildHold());
340 return o; 340 return o;
341 } 341 }
342 342
343 checkUnnamed1622(core.List<api.Hold> o) { 343 checkUnnamed1639(core.List<api.Hold> o) {
344 unittest.expect(o, unittest.hasLength(2)); 344 unittest.expect(o, unittest.hasLength(2));
345 checkHold(o[0]); 345 checkHold(o[0]);
346 checkHold(o[1]); 346 checkHold(o[1]);
347 } 347 }
348 348
349 core.int buildCounterListHoldsResponse = 0; 349 core.int buildCounterListHoldsResponse = 0;
350 buildListHoldsResponse() { 350 buildListHoldsResponse() {
351 var o = new api.ListHoldsResponse(); 351 var o = new api.ListHoldsResponse();
352 buildCounterListHoldsResponse++; 352 buildCounterListHoldsResponse++;
353 if (buildCounterListHoldsResponse < 3) { 353 if (buildCounterListHoldsResponse < 3) {
354 o.holds = buildUnnamed1622(); 354 o.holds = buildUnnamed1639();
355 o.nextPageToken = "foo"; 355 o.nextPageToken = "foo";
356 } 356 }
357 buildCounterListHoldsResponse--; 357 buildCounterListHoldsResponse--;
358 return o; 358 return o;
359 } 359 }
360 360
361 checkListHoldsResponse(api.ListHoldsResponse o) { 361 checkListHoldsResponse(api.ListHoldsResponse o) {
362 buildCounterListHoldsResponse++; 362 buildCounterListHoldsResponse++;
363 if (buildCounterListHoldsResponse < 3) { 363 if (buildCounterListHoldsResponse < 3) {
364 checkUnnamed1622(o.holds); 364 checkUnnamed1639(o.holds);
365 unittest.expect(o.nextPageToken, unittest.equals('foo')); 365 unittest.expect(o.nextPageToken, unittest.equals('foo'));
366 } 366 }
367 buildCounterListHoldsResponse--; 367 buildCounterListHoldsResponse--;
368 } 368 }
369 369
370 buildUnnamed1623() { 370 buildUnnamed1640() {
371 var o = new core.List<api.Matter>(); 371 var o = new core.List<api.Matter>();
372 o.add(buildMatter()); 372 o.add(buildMatter());
373 o.add(buildMatter()); 373 o.add(buildMatter());
374 return o; 374 return o;
375 } 375 }
376 376
377 checkUnnamed1623(core.List<api.Matter> o) { 377 checkUnnamed1640(core.List<api.Matter> o) {
378 unittest.expect(o, unittest.hasLength(2)); 378 unittest.expect(o, unittest.hasLength(2));
379 checkMatter(o[0]); 379 checkMatter(o[0]);
380 checkMatter(o[1]); 380 checkMatter(o[1]);
381 } 381 }
382 382
383 core.int buildCounterListMattersResponse = 0; 383 core.int buildCounterListMattersResponse = 0;
384 buildListMattersResponse() { 384 buildListMattersResponse() {
385 var o = new api.ListMattersResponse(); 385 var o = new api.ListMattersResponse();
386 buildCounterListMattersResponse++; 386 buildCounterListMattersResponse++;
387 if (buildCounterListMattersResponse < 3) { 387 if (buildCounterListMattersResponse < 3) {
388 o.matters = buildUnnamed1623(); 388 o.matters = buildUnnamed1640();
389 o.nextPageToken = "foo"; 389 o.nextPageToken = "foo";
390 } 390 }
391 buildCounterListMattersResponse--; 391 buildCounterListMattersResponse--;
392 return o; 392 return o;
393 } 393 }
394 394
395 checkListMattersResponse(api.ListMattersResponse o) { 395 checkListMattersResponse(api.ListMattersResponse o) {
396 buildCounterListMattersResponse++; 396 buildCounterListMattersResponse++;
397 if (buildCounterListMattersResponse < 3) { 397 if (buildCounterListMattersResponse < 3) {
398 checkUnnamed1623(o.matters); 398 checkUnnamed1640(o.matters);
399 unittest.expect(o.nextPageToken, unittest.equals('foo')); 399 unittest.expect(o.nextPageToken, unittest.equals('foo'));
400 } 400 }
401 buildCounterListMattersResponse--; 401 buildCounterListMattersResponse--;
402 } 402 }
403 403
404 buildUnnamed1624() { 404 buildUnnamed1641() {
405 var o = new core.List<api.MatterPermission>(); 405 var o = new core.List<api.MatterPermission>();
406 o.add(buildMatterPermission()); 406 o.add(buildMatterPermission());
407 o.add(buildMatterPermission()); 407 o.add(buildMatterPermission());
408 return o; 408 return o;
409 } 409 }
410 410
411 checkUnnamed1624(core.List<api.MatterPermission> o) { 411 checkUnnamed1641(core.List<api.MatterPermission> o) {
412 unittest.expect(o, unittest.hasLength(2)); 412 unittest.expect(o, unittest.hasLength(2));
413 checkMatterPermission(o[0]); 413 checkMatterPermission(o[0]);
414 checkMatterPermission(o[1]); 414 checkMatterPermission(o[1]);
415 } 415 }
416 416
417 core.int buildCounterMatter = 0; 417 core.int buildCounterMatter = 0;
418 buildMatter() { 418 buildMatter() {
419 var o = new api.Matter(); 419 var o = new api.Matter();
420 buildCounterMatter++; 420 buildCounterMatter++;
421 if (buildCounterMatter < 3) { 421 if (buildCounterMatter < 3) {
422 o.description = "foo"; 422 o.description = "foo";
423 o.matterId = "foo"; 423 o.matterId = "foo";
424 o.matterPermissions = buildUnnamed1624(); 424 o.matterPermissions = buildUnnamed1641();
425 o.name = "foo"; 425 o.name = "foo";
426 o.state = "foo"; 426 o.state = "foo";
427 } 427 }
428 buildCounterMatter--; 428 buildCounterMatter--;
429 return o; 429 return o;
430 } 430 }
431 431
432 checkMatter(api.Matter o) { 432 checkMatter(api.Matter o) {
433 buildCounterMatter++; 433 buildCounterMatter++;
434 if (buildCounterMatter < 3) { 434 if (buildCounterMatter < 3) {
435 unittest.expect(o.description, unittest.equals('foo')); 435 unittest.expect(o.description, unittest.equals('foo'));
436 unittest.expect(o.matterId, unittest.equals('foo')); 436 unittest.expect(o.matterId, unittest.equals('foo'));
437 checkUnnamed1624(o.matterPermissions); 437 checkUnnamed1641(o.matterPermissions);
438 unittest.expect(o.name, unittest.equals('foo')); 438 unittest.expect(o.name, unittest.equals('foo'));
439 unittest.expect(o.state, unittest.equals('foo')); 439 unittest.expect(o.state, unittest.equals('foo'));
440 } 440 }
441 buildCounterMatter--; 441 buildCounterMatter--;
442 } 442 }
443 443
444 core.int buildCounterMatterPermission = 0; 444 core.int buildCounterMatterPermission = 0;
445 buildMatterPermission() { 445 buildMatterPermission() {
446 var o = new api.MatterPermission(); 446 var o = new api.MatterPermission();
447 buildCounterMatterPermission++; 447 buildCounterMatterPermission++;
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 res.list(arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.ListHe ldAccountsResponse response) { 1705 res.list(arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.ListHe ldAccountsResponse response) {
1706 checkListHeldAccountsResponse(response); 1706 checkListHeldAccountsResponse(response);
1707 }))); 1707 })));
1708 }); 1708 });
1709 1709
1710 }); 1710 });
1711 1711
1712 1712
1713 } 1713 }
1714 1714
OLDNEW
« no previous file with comments | « generated/googleapis/test/urlshortener/v1_test.dart ('k') | generated/googleapis/test/vision/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698