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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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.sourcerepo.v1.test; 1 library googleapis.sourcerepo.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: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 buildUnnamed450() { 54 buildUnnamed436() {
55 var o = new core.List<api.AuditLogConfig>(); 55 var o = new core.List<api.AuditLogConfig>();
56 o.add(buildAuditLogConfig()); 56 o.add(buildAuditLogConfig());
57 o.add(buildAuditLogConfig()); 57 o.add(buildAuditLogConfig());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed450(core.List<api.AuditLogConfig> o) { 61 checkUnnamed436(core.List<api.AuditLogConfig> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAuditLogConfig(o[0]); 63 checkAuditLogConfig(o[0]);
64 checkAuditLogConfig(o[1]); 64 checkAuditLogConfig(o[1]);
65 } 65 }
66 66
67 buildUnnamed451() { 67 buildUnnamed437() {
68 var o = new core.List<core.String>(); 68 var o = new core.List<core.String>();
69 o.add("foo"); 69 o.add("foo");
70 o.add("foo"); 70 o.add("foo");
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed451(core.List<core.String> o) { 74 checkUnnamed437(core.List<core.String> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 unittest.expect(o[0], unittest.equals('foo')); 76 unittest.expect(o[0], unittest.equals('foo'));
77 unittest.expect(o[1], unittest.equals('foo')); 77 unittest.expect(o[1], unittest.equals('foo'));
78 } 78 }
79 79
80 core.int buildCounterAuditConfig = 0; 80 core.int buildCounterAuditConfig = 0;
81 buildAuditConfig() { 81 buildAuditConfig() {
82 var o = new api.AuditConfig(); 82 var o = new api.AuditConfig();
83 buildCounterAuditConfig++; 83 buildCounterAuditConfig++;
84 if (buildCounterAuditConfig < 3) { 84 if (buildCounterAuditConfig < 3) {
85 o.auditLogConfigs = buildUnnamed450(); 85 o.auditLogConfigs = buildUnnamed436();
86 o.exemptedMembers = buildUnnamed451(); 86 o.exemptedMembers = buildUnnamed437();
87 o.service = "foo"; 87 o.service = "foo";
88 } 88 }
89 buildCounterAuditConfig--; 89 buildCounterAuditConfig--;
90 return o; 90 return o;
91 } 91 }
92 92
93 checkAuditConfig(api.AuditConfig o) { 93 checkAuditConfig(api.AuditConfig o) {
94 buildCounterAuditConfig++; 94 buildCounterAuditConfig++;
95 if (buildCounterAuditConfig < 3) { 95 if (buildCounterAuditConfig < 3) {
96 checkUnnamed450(o.auditLogConfigs); 96 checkUnnamed436(o.auditLogConfigs);
97 checkUnnamed451(o.exemptedMembers); 97 checkUnnamed437(o.exemptedMembers);
98 unittest.expect(o.service, unittest.equals('foo')); 98 unittest.expect(o.service, unittest.equals('foo'));
99 } 99 }
100 buildCounterAuditConfig--; 100 buildCounterAuditConfig--;
101 } 101 }
102 102
103 buildUnnamed452() { 103 buildUnnamed438() {
104 var o = new core.List<core.String>(); 104 var o = new core.List<core.String>();
105 o.add("foo"); 105 o.add("foo");
106 o.add("foo"); 106 o.add("foo");
107 return o; 107 return o;
108 } 108 }
109 109
110 checkUnnamed452(core.List<core.String> o) { 110 checkUnnamed438(core.List<core.String> o) {
111 unittest.expect(o, unittest.hasLength(2)); 111 unittest.expect(o, unittest.hasLength(2));
112 unittest.expect(o[0], unittest.equals('foo')); 112 unittest.expect(o[0], unittest.equals('foo'));
113 unittest.expect(o[1], unittest.equals('foo')); 113 unittest.expect(o[1], unittest.equals('foo'));
114 } 114 }
115 115
116 core.int buildCounterAuditLogConfig = 0; 116 core.int buildCounterAuditLogConfig = 0;
117 buildAuditLogConfig() { 117 buildAuditLogConfig() {
118 var o = new api.AuditLogConfig(); 118 var o = new api.AuditLogConfig();
119 buildCounterAuditLogConfig++; 119 buildCounterAuditLogConfig++;
120 if (buildCounterAuditLogConfig < 3) { 120 if (buildCounterAuditLogConfig < 3) {
121 o.exemptedMembers = buildUnnamed452(); 121 o.exemptedMembers = buildUnnamed438();
122 o.logType = "foo"; 122 o.logType = "foo";
123 } 123 }
124 buildCounterAuditLogConfig--; 124 buildCounterAuditLogConfig--;
125 return o; 125 return o;
126 } 126 }
127 127
128 checkAuditLogConfig(api.AuditLogConfig o) { 128 checkAuditLogConfig(api.AuditLogConfig o) {
129 buildCounterAuditLogConfig++; 129 buildCounterAuditLogConfig++;
130 if (buildCounterAuditLogConfig < 3) { 130 if (buildCounterAuditLogConfig < 3) {
131 checkUnnamed452(o.exemptedMembers); 131 checkUnnamed438(o.exemptedMembers);
132 unittest.expect(o.logType, unittest.equals('foo')); 132 unittest.expect(o.logType, unittest.equals('foo'));
133 } 133 }
134 buildCounterAuditLogConfig--; 134 buildCounterAuditLogConfig--;
135 } 135 }
136 136
137 buildUnnamed453() { 137 buildUnnamed439() {
138 var o = new core.List<core.String>(); 138 var o = new core.List<core.String>();
139 o.add("foo"); 139 o.add("foo");
140 o.add("foo"); 140 o.add("foo");
141 return o; 141 return o;
142 } 142 }
143 143
144 checkUnnamed453(core.List<core.String> o) { 144 checkUnnamed439(core.List<core.String> o) {
145 unittest.expect(o, unittest.hasLength(2)); 145 unittest.expect(o, unittest.hasLength(2));
146 unittest.expect(o[0], unittest.equals('foo')); 146 unittest.expect(o[0], unittest.equals('foo'));
147 unittest.expect(o[1], unittest.equals('foo')); 147 unittest.expect(o[1], unittest.equals('foo'));
148 } 148 }
149 149
150 core.int buildCounterBinding = 0; 150 core.int buildCounterBinding = 0;
151 buildBinding() { 151 buildBinding() {
152 var o = new api.Binding(); 152 var o = new api.Binding();
153 buildCounterBinding++; 153 buildCounterBinding++;
154 if (buildCounterBinding < 3) { 154 if (buildCounterBinding < 3) {
155 o.members = buildUnnamed453(); 155 o.members = buildUnnamed439();
156 o.role = "foo"; 156 o.role = "foo";
157 } 157 }
158 buildCounterBinding--; 158 buildCounterBinding--;
159 return o; 159 return o;
160 } 160 }
161 161
162 checkBinding(api.Binding o) { 162 checkBinding(api.Binding o) {
163 buildCounterBinding++; 163 buildCounterBinding++;
164 if (buildCounterBinding < 3) { 164 if (buildCounterBinding < 3) {
165 checkUnnamed453(o.members); 165 checkUnnamed439(o.members);
166 unittest.expect(o.role, unittest.equals('foo')); 166 unittest.expect(o.role, unittest.equals('foo'));
167 } 167 }
168 buildCounterBinding--; 168 buildCounterBinding--;
169 } 169 }
170 170
171 core.int buildCounterCloudAuditOptions = 0; 171 core.int buildCounterCloudAuditOptions = 0;
172 buildCloudAuditOptions() { 172 buildCloudAuditOptions() {
173 var o = new api.CloudAuditOptions(); 173 var o = new api.CloudAuditOptions();
174 buildCounterCloudAuditOptions++; 174 buildCounterCloudAuditOptions++;
175 if (buildCounterCloudAuditOptions < 3) { 175 if (buildCounterCloudAuditOptions < 3) {
176 } 176 }
177 buildCounterCloudAuditOptions--; 177 buildCounterCloudAuditOptions--;
178 return o; 178 return o;
179 } 179 }
180 180
181 checkCloudAuditOptions(api.CloudAuditOptions o) { 181 checkCloudAuditOptions(api.CloudAuditOptions o) {
182 buildCounterCloudAuditOptions++; 182 buildCounterCloudAuditOptions++;
183 if (buildCounterCloudAuditOptions < 3) { 183 if (buildCounterCloudAuditOptions < 3) {
184 } 184 }
185 buildCounterCloudAuditOptions--; 185 buildCounterCloudAuditOptions--;
186 } 186 }
187 187
188 buildUnnamed454() { 188 buildUnnamed440() {
189 var o = new core.List<core.String>(); 189 var o = new core.List<core.String>();
190 o.add("foo"); 190 o.add("foo");
191 o.add("foo"); 191 o.add("foo");
192 return o; 192 return o;
193 } 193 }
194 194
195 checkUnnamed454(core.List<core.String> o) { 195 checkUnnamed440(core.List<core.String> o) {
196 unittest.expect(o, unittest.hasLength(2)); 196 unittest.expect(o, unittest.hasLength(2));
197 unittest.expect(o[0], unittest.equals('foo')); 197 unittest.expect(o[0], unittest.equals('foo'));
198 unittest.expect(o[1], unittest.equals('foo')); 198 unittest.expect(o[1], unittest.equals('foo'));
199 } 199 }
200 200
201 core.int buildCounterCondition = 0; 201 core.int buildCounterCondition = 0;
202 buildCondition() { 202 buildCondition() {
203 var o = new api.Condition(); 203 var o = new api.Condition();
204 buildCounterCondition++; 204 buildCounterCondition++;
205 if (buildCounterCondition < 3) { 205 if (buildCounterCondition < 3) {
206 o.iam = "foo"; 206 o.iam = "foo";
207 o.op = "foo"; 207 o.op = "foo";
208 o.svc = "foo"; 208 o.svc = "foo";
209 o.sys = "foo"; 209 o.sys = "foo";
210 o.value = "foo"; 210 o.value = "foo";
211 o.values = buildUnnamed454(); 211 o.values = buildUnnamed440();
212 } 212 }
213 buildCounterCondition--; 213 buildCounterCondition--;
214 return o; 214 return o;
215 } 215 }
216 216
217 checkCondition(api.Condition o) { 217 checkCondition(api.Condition o) {
218 buildCounterCondition++; 218 buildCounterCondition++;
219 if (buildCounterCondition < 3) { 219 if (buildCounterCondition < 3) {
220 unittest.expect(o.iam, unittest.equals('foo')); 220 unittest.expect(o.iam, unittest.equals('foo'));
221 unittest.expect(o.op, unittest.equals('foo')); 221 unittest.expect(o.op, unittest.equals('foo'));
222 unittest.expect(o.svc, unittest.equals('foo')); 222 unittest.expect(o.svc, unittest.equals('foo'));
223 unittest.expect(o.sys, unittest.equals('foo')); 223 unittest.expect(o.sys, unittest.equals('foo'));
224 unittest.expect(o.value, unittest.equals('foo')); 224 unittest.expect(o.value, unittest.equals('foo'));
225 checkUnnamed454(o.values); 225 checkUnnamed440(o.values);
226 } 226 }
227 buildCounterCondition--; 227 buildCounterCondition--;
228 } 228 }
229 229
230 core.int buildCounterCounterOptions = 0; 230 core.int buildCounterCounterOptions = 0;
231 buildCounterOptions() { 231 buildCounterOptions() {
232 var o = new api.CounterOptions(); 232 var o = new api.CounterOptions();
233 buildCounterCounterOptions++; 233 buildCounterCounterOptions++;
234 if (buildCounterCounterOptions < 3) { 234 if (buildCounterCounterOptions < 3) {
235 o.field = "foo"; 235 o.field = "foo";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return o; 275 return o;
276 } 276 }
277 277
278 checkEmpty(api.Empty o) { 278 checkEmpty(api.Empty o) {
279 buildCounterEmpty++; 279 buildCounterEmpty++;
280 if (buildCounterEmpty < 3) { 280 if (buildCounterEmpty < 3) {
281 } 281 }
282 buildCounterEmpty--; 282 buildCounterEmpty--;
283 } 283 }
284 284
285 buildUnnamed455() { 285 buildUnnamed441() {
286 var o = new core.List<api.Repo>(); 286 var o = new core.List<api.Repo>();
287 o.add(buildRepo()); 287 o.add(buildRepo());
288 o.add(buildRepo()); 288 o.add(buildRepo());
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed455(core.List<api.Repo> o) { 292 checkUnnamed441(core.List<api.Repo> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 checkRepo(o[0]); 294 checkRepo(o[0]);
295 checkRepo(o[1]); 295 checkRepo(o[1]);
296 } 296 }
297 297
298 core.int buildCounterListReposResponse = 0; 298 core.int buildCounterListReposResponse = 0;
299 buildListReposResponse() { 299 buildListReposResponse() {
300 var o = new api.ListReposResponse(); 300 var o = new api.ListReposResponse();
301 buildCounterListReposResponse++; 301 buildCounterListReposResponse++;
302 if (buildCounterListReposResponse < 3) { 302 if (buildCounterListReposResponse < 3) {
303 o.repos = buildUnnamed455(); 303 o.repos = buildUnnamed441();
304 } 304 }
305 buildCounterListReposResponse--; 305 buildCounterListReposResponse--;
306 return o; 306 return o;
307 } 307 }
308 308
309 checkListReposResponse(api.ListReposResponse o) { 309 checkListReposResponse(api.ListReposResponse o) {
310 buildCounterListReposResponse++; 310 buildCounterListReposResponse++;
311 if (buildCounterListReposResponse < 3) { 311 if (buildCounterListReposResponse < 3) {
312 checkUnnamed455(o.repos); 312 checkUnnamed441(o.repos);
313 } 313 }
314 buildCounterListReposResponse--; 314 buildCounterListReposResponse--;
315 } 315 }
316 316
317 core.int buildCounterLogConfig = 0; 317 core.int buildCounterLogConfig = 0;
318 buildLogConfig() { 318 buildLogConfig() {
319 var o = new api.LogConfig(); 319 var o = new api.LogConfig();
320 buildCounterLogConfig++; 320 buildCounterLogConfig++;
321 if (buildCounterLogConfig < 3) { 321 if (buildCounterLogConfig < 3) {
322 o.cloudAudit = buildCloudAuditOptions(); 322 o.cloudAudit = buildCloudAuditOptions();
(...skipping 30 matching lines...) Expand all
353 checkMirrorConfig(api.MirrorConfig o) { 353 checkMirrorConfig(api.MirrorConfig o) {
354 buildCounterMirrorConfig++; 354 buildCounterMirrorConfig++;
355 if (buildCounterMirrorConfig < 3) { 355 if (buildCounterMirrorConfig < 3) {
356 unittest.expect(o.deployKeyId, unittest.equals('foo')); 356 unittest.expect(o.deployKeyId, unittest.equals('foo'));
357 unittest.expect(o.url, unittest.equals('foo')); 357 unittest.expect(o.url, unittest.equals('foo'));
358 unittest.expect(o.webhookId, unittest.equals('foo')); 358 unittest.expect(o.webhookId, unittest.equals('foo'));
359 } 359 }
360 buildCounterMirrorConfig--; 360 buildCounterMirrorConfig--;
361 } 361 }
362 362
363 buildUnnamed456() { 363 buildUnnamed442() {
364 var o = new core.List<api.AuditConfig>(); 364 var o = new core.List<api.AuditConfig>();
365 o.add(buildAuditConfig()); 365 o.add(buildAuditConfig());
366 o.add(buildAuditConfig()); 366 o.add(buildAuditConfig());
367 return o; 367 return o;
368 } 368 }
369 369
370 checkUnnamed456(core.List<api.AuditConfig> o) { 370 checkUnnamed442(core.List<api.AuditConfig> o) {
371 unittest.expect(o, unittest.hasLength(2)); 371 unittest.expect(o, unittest.hasLength(2));
372 checkAuditConfig(o[0]); 372 checkAuditConfig(o[0]);
373 checkAuditConfig(o[1]); 373 checkAuditConfig(o[1]);
374 } 374 }
375 375
376 buildUnnamed457() { 376 buildUnnamed443() {
377 var o = new core.List<api.Binding>(); 377 var o = new core.List<api.Binding>();
378 o.add(buildBinding()); 378 o.add(buildBinding());
379 o.add(buildBinding()); 379 o.add(buildBinding());
380 return o; 380 return o;
381 } 381 }
382 382
383 checkUnnamed457(core.List<api.Binding> o) { 383 checkUnnamed443(core.List<api.Binding> o) {
384 unittest.expect(o, unittest.hasLength(2)); 384 unittest.expect(o, unittest.hasLength(2));
385 checkBinding(o[0]); 385 checkBinding(o[0]);
386 checkBinding(o[1]); 386 checkBinding(o[1]);
387 } 387 }
388 388
389 buildUnnamed458() { 389 buildUnnamed444() {
390 var o = new core.List<api.Rule>(); 390 var o = new core.List<api.Rule>();
391 o.add(buildRule()); 391 o.add(buildRule());
392 o.add(buildRule()); 392 o.add(buildRule());
393 return o; 393 return o;
394 } 394 }
395 395
396 checkUnnamed458(core.List<api.Rule> o) { 396 checkUnnamed444(core.List<api.Rule> o) {
397 unittest.expect(o, unittest.hasLength(2)); 397 unittest.expect(o, unittest.hasLength(2));
398 checkRule(o[0]); 398 checkRule(o[0]);
399 checkRule(o[1]); 399 checkRule(o[1]);
400 } 400 }
401 401
402 core.int buildCounterPolicy = 0; 402 core.int buildCounterPolicy = 0;
403 buildPolicy() { 403 buildPolicy() {
404 var o = new api.Policy(); 404 var o = new api.Policy();
405 buildCounterPolicy++; 405 buildCounterPolicy++;
406 if (buildCounterPolicy < 3) { 406 if (buildCounterPolicy < 3) {
407 o.auditConfigs = buildUnnamed456(); 407 o.auditConfigs = buildUnnamed442();
408 o.bindings = buildUnnamed457(); 408 o.bindings = buildUnnamed443();
409 o.etag = "foo"; 409 o.etag = "foo";
410 o.iamOwned = true; 410 o.iamOwned = true;
411 o.rules = buildUnnamed458(); 411 o.rules = buildUnnamed444();
412 o.version = 42; 412 o.version = 42;
413 } 413 }
414 buildCounterPolicy--; 414 buildCounterPolicy--;
415 return o; 415 return o;
416 } 416 }
417 417
418 checkPolicy(api.Policy o) { 418 checkPolicy(api.Policy o) {
419 buildCounterPolicy++; 419 buildCounterPolicy++;
420 if (buildCounterPolicy < 3) { 420 if (buildCounterPolicy < 3) {
421 checkUnnamed456(o.auditConfigs); 421 checkUnnamed442(o.auditConfigs);
422 checkUnnamed457(o.bindings); 422 checkUnnamed443(o.bindings);
423 unittest.expect(o.etag, unittest.equals('foo')); 423 unittest.expect(o.etag, unittest.equals('foo'));
424 unittest.expect(o.iamOwned, unittest.isTrue); 424 unittest.expect(o.iamOwned, unittest.isTrue);
425 checkUnnamed458(o.rules); 425 checkUnnamed444(o.rules);
426 unittest.expect(o.version, unittest.equals(42)); 426 unittest.expect(o.version, unittest.equals(42));
427 } 427 }
428 buildCounterPolicy--; 428 buildCounterPolicy--;
429 } 429 }
430 430
431 core.int buildCounterRepo = 0; 431 core.int buildCounterRepo = 0;
432 buildRepo() { 432 buildRepo() {
433 var o = new api.Repo(); 433 var o = new api.Repo();
434 buildCounterRepo++; 434 buildCounterRepo++;
435 if (buildCounterRepo < 3) { 435 if (buildCounterRepo < 3) {
(...skipping 10 matching lines...) Expand all
446 buildCounterRepo++; 446 buildCounterRepo++;
447 if (buildCounterRepo < 3) { 447 if (buildCounterRepo < 3) {
448 checkMirrorConfig(o.mirrorConfig); 448 checkMirrorConfig(o.mirrorConfig);
449 unittest.expect(o.name, unittest.equals('foo')); 449 unittest.expect(o.name, unittest.equals('foo'));
450 unittest.expect(o.size, unittest.equals('foo')); 450 unittest.expect(o.size, unittest.equals('foo'));
451 unittest.expect(o.url, unittest.equals('foo')); 451 unittest.expect(o.url, unittest.equals('foo'));
452 } 452 }
453 buildCounterRepo--; 453 buildCounterRepo--;
454 } 454 }
455 455
456 buildUnnamed459() { 456 buildUnnamed445() {
457 var o = new core.List<api.Condition>(); 457 var o = new core.List<api.Condition>();
458 o.add(buildCondition()); 458 o.add(buildCondition());
459 o.add(buildCondition()); 459 o.add(buildCondition());
460 return o; 460 return o;
461 } 461 }
462 462
463 checkUnnamed459(core.List<api.Condition> o) { 463 checkUnnamed445(core.List<api.Condition> o) {
464 unittest.expect(o, unittest.hasLength(2)); 464 unittest.expect(o, unittest.hasLength(2));
465 checkCondition(o[0]); 465 checkCondition(o[0]);
466 checkCondition(o[1]); 466 checkCondition(o[1]);
467 } 467 }
468 468
469 buildUnnamed460() { 469 buildUnnamed446() {
470 var o = new core.List<core.String>(); 470 var o = new core.List<core.String>();
471 o.add("foo"); 471 o.add("foo");
472 o.add("foo"); 472 o.add("foo");
473 return o; 473 return o;
474 } 474 }
475 475
476 checkUnnamed460(core.List<core.String> o) { 476 checkUnnamed446(core.List<core.String> o) {
477 unittest.expect(o, unittest.hasLength(2)); 477 unittest.expect(o, unittest.hasLength(2));
478 unittest.expect(o[0], unittest.equals('foo')); 478 unittest.expect(o[0], unittest.equals('foo'));
479 unittest.expect(o[1], unittest.equals('foo')); 479 unittest.expect(o[1], unittest.equals('foo'));
480 } 480 }
481 481
482 buildUnnamed461() { 482 buildUnnamed447() {
483 var o = new core.List<api.LogConfig>(); 483 var o = new core.List<api.LogConfig>();
484 o.add(buildLogConfig()); 484 o.add(buildLogConfig());
485 o.add(buildLogConfig()); 485 o.add(buildLogConfig());
486 return o; 486 return o;
487 } 487 }
488 488
489 checkUnnamed461(core.List<api.LogConfig> o) { 489 checkUnnamed447(core.List<api.LogConfig> o) {
490 unittest.expect(o, unittest.hasLength(2)); 490 unittest.expect(o, unittest.hasLength(2));
491 checkLogConfig(o[0]); 491 checkLogConfig(o[0]);
492 checkLogConfig(o[1]); 492 checkLogConfig(o[1]);
493 } 493 }
494 494
495 buildUnnamed462() { 495 buildUnnamed448() {
496 var o = new core.List<core.String>(); 496 var o = new core.List<core.String>();
497 o.add("foo"); 497 o.add("foo");
498 o.add("foo"); 498 o.add("foo");
499 return o; 499 return o;
500 } 500 }
501 501
502 checkUnnamed462(core.List<core.String> o) { 502 checkUnnamed448(core.List<core.String> o) {
503 unittest.expect(o, unittest.hasLength(2)); 503 unittest.expect(o, unittest.hasLength(2));
504 unittest.expect(o[0], unittest.equals('foo')); 504 unittest.expect(o[0], unittest.equals('foo'));
505 unittest.expect(o[1], unittest.equals('foo')); 505 unittest.expect(o[1], unittest.equals('foo'));
506 } 506 }
507 507
508 buildUnnamed463() { 508 buildUnnamed449() {
509 var o = new core.List<core.String>(); 509 var o = new core.List<core.String>();
510 o.add("foo"); 510 o.add("foo");
511 o.add("foo"); 511 o.add("foo");
512 return o; 512 return o;
513 } 513 }
514 514
515 checkUnnamed463(core.List<core.String> o) { 515 checkUnnamed449(core.List<core.String> o) {
516 unittest.expect(o, unittest.hasLength(2)); 516 unittest.expect(o, unittest.hasLength(2));
517 unittest.expect(o[0], unittest.equals('foo')); 517 unittest.expect(o[0], unittest.equals('foo'));
518 unittest.expect(o[1], unittest.equals('foo')); 518 unittest.expect(o[1], unittest.equals('foo'));
519 } 519 }
520 520
521 core.int buildCounterRule = 0; 521 core.int buildCounterRule = 0;
522 buildRule() { 522 buildRule() {
523 var o = new api.Rule(); 523 var o = new api.Rule();
524 buildCounterRule++; 524 buildCounterRule++;
525 if (buildCounterRule < 3) { 525 if (buildCounterRule < 3) {
526 o.action = "foo"; 526 o.action = "foo";
527 o.conditions = buildUnnamed459(); 527 o.conditions = buildUnnamed445();
528 o.description = "foo"; 528 o.description = "foo";
529 o.in_ = buildUnnamed460(); 529 o.in_ = buildUnnamed446();
530 o.logConfig = buildUnnamed461(); 530 o.logConfig = buildUnnamed447();
531 o.notIn = buildUnnamed462(); 531 o.notIn = buildUnnamed448();
532 o.permissions = buildUnnamed463(); 532 o.permissions = buildUnnamed449();
533 } 533 }
534 buildCounterRule--; 534 buildCounterRule--;
535 return o; 535 return o;
536 } 536 }
537 537
538 checkRule(api.Rule o) { 538 checkRule(api.Rule o) {
539 buildCounterRule++; 539 buildCounterRule++;
540 if (buildCounterRule < 3) { 540 if (buildCounterRule < 3) {
541 unittest.expect(o.action, unittest.equals('foo')); 541 unittest.expect(o.action, unittest.equals('foo'));
542 checkUnnamed459(o.conditions); 542 checkUnnamed445(o.conditions);
543 unittest.expect(o.description, unittest.equals('foo')); 543 unittest.expect(o.description, unittest.equals('foo'));
544 checkUnnamed460(o.in_); 544 checkUnnamed446(o.in_);
545 checkUnnamed461(o.logConfig); 545 checkUnnamed447(o.logConfig);
546 checkUnnamed462(o.notIn); 546 checkUnnamed448(o.notIn);
547 checkUnnamed463(o.permissions); 547 checkUnnamed449(o.permissions);
548 } 548 }
549 buildCounterRule--; 549 buildCounterRule--;
550 } 550 }
551 551
552 core.int buildCounterSetIamPolicyRequest = 0; 552 core.int buildCounterSetIamPolicyRequest = 0;
553 buildSetIamPolicyRequest() { 553 buildSetIamPolicyRequest() {
554 var o = new api.SetIamPolicyRequest(); 554 var o = new api.SetIamPolicyRequest();
555 buildCounterSetIamPolicyRequest++; 555 buildCounterSetIamPolicyRequest++;
556 if (buildCounterSetIamPolicyRequest < 3) { 556 if (buildCounterSetIamPolicyRequest < 3) {
557 o.policy = buildPolicy(); 557 o.policy = buildPolicy();
558 o.updateMask = "foo"; 558 o.updateMask = "foo";
559 } 559 }
560 buildCounterSetIamPolicyRequest--; 560 buildCounterSetIamPolicyRequest--;
561 return o; 561 return o;
562 } 562 }
563 563
564 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 564 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
565 buildCounterSetIamPolicyRequest++; 565 buildCounterSetIamPolicyRequest++;
566 if (buildCounterSetIamPolicyRequest < 3) { 566 if (buildCounterSetIamPolicyRequest < 3) {
567 checkPolicy(o.policy); 567 checkPolicy(o.policy);
568 unittest.expect(o.updateMask, unittest.equals('foo')); 568 unittest.expect(o.updateMask, unittest.equals('foo'));
569 } 569 }
570 buildCounterSetIamPolicyRequest--; 570 buildCounterSetIamPolicyRequest--;
571 } 571 }
572 572
573 buildUnnamed464() { 573 buildUnnamed450() {
574 var o = new core.List<core.String>(); 574 var o = new core.List<core.String>();
575 o.add("foo"); 575 o.add("foo");
576 o.add("foo"); 576 o.add("foo");
577 return o; 577 return o;
578 } 578 }
579 579
580 checkUnnamed464(core.List<core.String> o) { 580 checkUnnamed450(core.List<core.String> o) {
581 unittest.expect(o, unittest.hasLength(2)); 581 unittest.expect(o, unittest.hasLength(2));
582 unittest.expect(o[0], unittest.equals('foo')); 582 unittest.expect(o[0], unittest.equals('foo'));
583 unittest.expect(o[1], unittest.equals('foo')); 583 unittest.expect(o[1], unittest.equals('foo'));
584 } 584 }
585 585
586 core.int buildCounterTestIamPermissionsRequest = 0; 586 core.int buildCounterTestIamPermissionsRequest = 0;
587 buildTestIamPermissionsRequest() { 587 buildTestIamPermissionsRequest() {
588 var o = new api.TestIamPermissionsRequest(); 588 var o = new api.TestIamPermissionsRequest();
589 buildCounterTestIamPermissionsRequest++; 589 buildCounterTestIamPermissionsRequest++;
590 if (buildCounterTestIamPermissionsRequest < 3) { 590 if (buildCounterTestIamPermissionsRequest < 3) {
591 o.permissions = buildUnnamed464(); 591 o.permissions = buildUnnamed450();
592 } 592 }
593 buildCounterTestIamPermissionsRequest--; 593 buildCounterTestIamPermissionsRequest--;
594 return o; 594 return o;
595 } 595 }
596 596
597 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 597 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
598 buildCounterTestIamPermissionsRequest++; 598 buildCounterTestIamPermissionsRequest++;
599 if (buildCounterTestIamPermissionsRequest < 3) { 599 if (buildCounterTestIamPermissionsRequest < 3) {
600 checkUnnamed464(o.permissions); 600 checkUnnamed450(o.permissions);
601 } 601 }
602 buildCounterTestIamPermissionsRequest--; 602 buildCounterTestIamPermissionsRequest--;
603 } 603 }
604 604
605 buildUnnamed465() { 605 buildUnnamed451() {
606 var o = new core.List<core.String>(); 606 var o = new core.List<core.String>();
607 o.add("foo"); 607 o.add("foo");
608 o.add("foo"); 608 o.add("foo");
609 return o; 609 return o;
610 } 610 }
611 611
612 checkUnnamed465(core.List<core.String> o) { 612 checkUnnamed451(core.List<core.String> o) {
613 unittest.expect(o, unittest.hasLength(2)); 613 unittest.expect(o, unittest.hasLength(2));
614 unittest.expect(o[0], unittest.equals('foo')); 614 unittest.expect(o[0], unittest.equals('foo'));
615 unittest.expect(o[1], unittest.equals('foo')); 615 unittest.expect(o[1], unittest.equals('foo'));
616 } 616 }
617 617
618 core.int buildCounterTestIamPermissionsResponse = 0; 618 core.int buildCounterTestIamPermissionsResponse = 0;
619 buildTestIamPermissionsResponse() { 619 buildTestIamPermissionsResponse() {
620 var o = new api.TestIamPermissionsResponse(); 620 var o = new api.TestIamPermissionsResponse();
621 buildCounterTestIamPermissionsResponse++; 621 buildCounterTestIamPermissionsResponse++;
622 if (buildCounterTestIamPermissionsResponse < 3) { 622 if (buildCounterTestIamPermissionsResponse < 3) {
623 o.permissions = buildUnnamed465(); 623 o.permissions = buildUnnamed451();
624 } 624 }
625 buildCounterTestIamPermissionsResponse--; 625 buildCounterTestIamPermissionsResponse--;
626 return o; 626 return o;
627 } 627 }
628 628
629 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 629 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
630 buildCounterTestIamPermissionsResponse++; 630 buildCounterTestIamPermissionsResponse++;
631 if (buildCounterTestIamPermissionsResponse < 3) { 631 if (buildCounterTestIamPermissionsResponse < 3) {
632 checkUnnamed465(o.permissions); 632 checkUnnamed451(o.permissions);
633 } 633 }
634 buildCounterTestIamPermissionsResponse--; 634 buildCounterTestIamPermissionsResponse--;
635 } 635 }
636 636
637 637
638 main() { 638 main() {
639 unittest.group("obj-schema-AuditConfig", () { 639 unittest.group("obj-schema-AuditConfig", () {
640 unittest.test("to-json--from-json", () { 640 unittest.test("to-json--from-json", () {
641 var o = buildAuditConfig(); 641 var o = buildAuditConfig();
642 var od = new api.AuditConfig.fromJson(o.toJson()); 642 var od = new api.AuditConfig.fromJson(o.toJson());
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c(((api.TestIamPermissionsResponse response) { 1115 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c(((api.TestIamPermissionsResponse response) {
1116 checkTestIamPermissionsResponse(response); 1116 checkTestIamPermissionsResponse(response);
1117 }))); 1117 })));
1118 }); 1118 });
1119 1119
1120 }); 1120 });
1121 1121
1122 1122
1123 } 1123 }
1124 1124
OLDNEW
« no previous file with comments | « generated/googleapis/test/slides/v1_test.dart ('k') | generated/googleapis/test/spanner/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698