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

Side by Side Diff: generated/googleapis/test/sourcerepo/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.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:test/test.dart' as unittest; 10 import 'package:test/test.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<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
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 buildUnnamed490() { 54 buildUnnamed496() {
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 checkUnnamed490(core.List<api.AuditLogConfig> o) { 61 checkUnnamed496(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 buildUnnamed491() { 67 buildUnnamed497() {
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 checkUnnamed491(core.List<core.String> o) { 74 checkUnnamed497(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 = buildUnnamed490(); 85 o.auditLogConfigs = buildUnnamed496();
86 o.exemptedMembers = buildUnnamed491(); 86 o.exemptedMembers = buildUnnamed497();
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 checkUnnamed490(o.auditLogConfigs); 96 checkUnnamed496(o.auditLogConfigs);
97 checkUnnamed491(o.exemptedMembers); 97 checkUnnamed497(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 buildUnnamed492() { 103 buildUnnamed498() {
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 checkUnnamed492(core.List<core.String> o) { 110 checkUnnamed498(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 = buildUnnamed492(); 121 o.exemptedMembers = buildUnnamed498();
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 checkUnnamed492(o.exemptedMembers); 131 checkUnnamed498(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 buildUnnamed493() { 137 buildUnnamed499() {
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 checkUnnamed493(core.List<core.String> o) { 144 checkUnnamed499(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 = buildUnnamed493(); 155 o.members = buildUnnamed499();
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 checkUnnamed493(o.members); 165 checkUnnamed499(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 o.logName = "foo"; 176 o.logName = "foo";
177 } 177 }
178 buildCounterCloudAuditOptions--; 178 buildCounterCloudAuditOptions--;
179 return o; 179 return o;
180 } 180 }
181 181
182 checkCloudAuditOptions(api.CloudAuditOptions o) { 182 checkCloudAuditOptions(api.CloudAuditOptions o) {
183 buildCounterCloudAuditOptions++; 183 buildCounterCloudAuditOptions++;
184 if (buildCounterCloudAuditOptions < 3) { 184 if (buildCounterCloudAuditOptions < 3) {
185 unittest.expect(o.logName, unittest.equals('foo')); 185 unittest.expect(o.logName, unittest.equals('foo'));
186 } 186 }
187 buildCounterCloudAuditOptions--; 187 buildCounterCloudAuditOptions--;
188 } 188 }
189 189
190 buildUnnamed494() { 190 buildUnnamed500() {
191 var o = new core.List<core.String>(); 191 var o = new core.List<core.String>();
192 o.add("foo"); 192 o.add("foo");
193 o.add("foo"); 193 o.add("foo");
194 return o; 194 return o;
195 } 195 }
196 196
197 checkUnnamed494(core.List<core.String> o) { 197 checkUnnamed500(core.List<core.String> o) {
198 unittest.expect(o, unittest.hasLength(2)); 198 unittest.expect(o, unittest.hasLength(2));
199 unittest.expect(o[0], unittest.equals('foo')); 199 unittest.expect(o[0], unittest.equals('foo'));
200 unittest.expect(o[1], unittest.equals('foo')); 200 unittest.expect(o[1], unittest.equals('foo'));
201 } 201 }
202 202
203 core.int buildCounterCondition = 0; 203 core.int buildCounterCondition = 0;
204 buildCondition() { 204 buildCondition() {
205 var o = new api.Condition(); 205 var o = new api.Condition();
206 buildCounterCondition++; 206 buildCounterCondition++;
207 if (buildCounterCondition < 3) { 207 if (buildCounterCondition < 3) {
208 o.iam = "foo"; 208 o.iam = "foo";
209 o.op = "foo"; 209 o.op = "foo";
210 o.svc = "foo"; 210 o.svc = "foo";
211 o.sys = "foo"; 211 o.sys = "foo";
212 o.value = "foo"; 212 o.value = "foo";
213 o.values = buildUnnamed494(); 213 o.values = buildUnnamed500();
214 } 214 }
215 buildCounterCondition--; 215 buildCounterCondition--;
216 return o; 216 return o;
217 } 217 }
218 218
219 checkCondition(api.Condition o) { 219 checkCondition(api.Condition o) {
220 buildCounterCondition++; 220 buildCounterCondition++;
221 if (buildCounterCondition < 3) { 221 if (buildCounterCondition < 3) {
222 unittest.expect(o.iam, unittest.equals('foo')); 222 unittest.expect(o.iam, unittest.equals('foo'));
223 unittest.expect(o.op, unittest.equals('foo')); 223 unittest.expect(o.op, unittest.equals('foo'));
224 unittest.expect(o.svc, unittest.equals('foo')); 224 unittest.expect(o.svc, unittest.equals('foo'));
225 unittest.expect(o.sys, unittest.equals('foo')); 225 unittest.expect(o.sys, unittest.equals('foo'));
226 unittest.expect(o.value, unittest.equals('foo')); 226 unittest.expect(o.value, unittest.equals('foo'));
227 checkUnnamed494(o.values); 227 checkUnnamed500(o.values);
228 } 228 }
229 buildCounterCondition--; 229 buildCounterCondition--;
230 } 230 }
231 231
232 core.int buildCounterCounterOptions = 0; 232 core.int buildCounterCounterOptions = 0;
233 buildCounterOptions() { 233 buildCounterOptions() {
234 var o = new api.CounterOptions(); 234 var o = new api.CounterOptions();
235 buildCounterCounterOptions++; 235 buildCounterCounterOptions++;
236 if (buildCounterCounterOptions < 3) { 236 if (buildCounterCounterOptions < 3) {
237 o.field = "foo"; 237 o.field = "foo";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return o; 277 return o;
278 } 278 }
279 279
280 checkEmpty(api.Empty o) { 280 checkEmpty(api.Empty o) {
281 buildCounterEmpty++; 281 buildCounterEmpty++;
282 if (buildCounterEmpty < 3) { 282 if (buildCounterEmpty < 3) {
283 } 283 }
284 buildCounterEmpty--; 284 buildCounterEmpty--;
285 } 285 }
286 286
287 buildUnnamed495() { 287 buildUnnamed501() {
288 var o = new core.List<api.Repo>(); 288 var o = new core.List<api.Repo>();
289 o.add(buildRepo()); 289 o.add(buildRepo());
290 o.add(buildRepo()); 290 o.add(buildRepo());
291 return o; 291 return o;
292 } 292 }
293 293
294 checkUnnamed495(core.List<api.Repo> o) { 294 checkUnnamed501(core.List<api.Repo> o) {
295 unittest.expect(o, unittest.hasLength(2)); 295 unittest.expect(o, unittest.hasLength(2));
296 checkRepo(o[0]); 296 checkRepo(o[0]);
297 checkRepo(o[1]); 297 checkRepo(o[1]);
298 } 298 }
299 299
300 core.int buildCounterListReposResponse = 0; 300 core.int buildCounterListReposResponse = 0;
301 buildListReposResponse() { 301 buildListReposResponse() {
302 var o = new api.ListReposResponse(); 302 var o = new api.ListReposResponse();
303 buildCounterListReposResponse++; 303 buildCounterListReposResponse++;
304 if (buildCounterListReposResponse < 3) { 304 if (buildCounterListReposResponse < 3) {
305 o.nextPageToken = "foo"; 305 o.nextPageToken = "foo";
306 o.repos = buildUnnamed495(); 306 o.repos = buildUnnamed501();
307 } 307 }
308 buildCounterListReposResponse--; 308 buildCounterListReposResponse--;
309 return o; 309 return o;
310 } 310 }
311 311
312 checkListReposResponse(api.ListReposResponse o) { 312 checkListReposResponse(api.ListReposResponse o) {
313 buildCounterListReposResponse++; 313 buildCounterListReposResponse++;
314 if (buildCounterListReposResponse < 3) { 314 if (buildCounterListReposResponse < 3) {
315 unittest.expect(o.nextPageToken, unittest.equals('foo')); 315 unittest.expect(o.nextPageToken, unittest.equals('foo'));
316 checkUnnamed495(o.repos); 316 checkUnnamed501(o.repos);
317 } 317 }
318 buildCounterListReposResponse--; 318 buildCounterListReposResponse--;
319 } 319 }
320 320
321 core.int buildCounterLogConfig = 0; 321 core.int buildCounterLogConfig = 0;
322 buildLogConfig() { 322 buildLogConfig() {
323 var o = new api.LogConfig(); 323 var o = new api.LogConfig();
324 buildCounterLogConfig++; 324 buildCounterLogConfig++;
325 if (buildCounterLogConfig < 3) { 325 if (buildCounterLogConfig < 3) {
326 o.cloudAudit = buildCloudAuditOptions(); 326 o.cloudAudit = buildCloudAuditOptions();
(...skipping 30 matching lines...) Expand all
357 checkMirrorConfig(api.MirrorConfig o) { 357 checkMirrorConfig(api.MirrorConfig o) {
358 buildCounterMirrorConfig++; 358 buildCounterMirrorConfig++;
359 if (buildCounterMirrorConfig < 3) { 359 if (buildCounterMirrorConfig < 3) {
360 unittest.expect(o.deployKeyId, unittest.equals('foo')); 360 unittest.expect(o.deployKeyId, unittest.equals('foo'));
361 unittest.expect(o.url, unittest.equals('foo')); 361 unittest.expect(o.url, unittest.equals('foo'));
362 unittest.expect(o.webhookId, unittest.equals('foo')); 362 unittest.expect(o.webhookId, unittest.equals('foo'));
363 } 363 }
364 buildCounterMirrorConfig--; 364 buildCounterMirrorConfig--;
365 } 365 }
366 366
367 buildUnnamed496() { 367 buildUnnamed502() {
368 var o = new core.List<api.AuditConfig>(); 368 var o = new core.List<api.AuditConfig>();
369 o.add(buildAuditConfig()); 369 o.add(buildAuditConfig());
370 o.add(buildAuditConfig()); 370 o.add(buildAuditConfig());
371 return o; 371 return o;
372 } 372 }
373 373
374 checkUnnamed496(core.List<api.AuditConfig> o) { 374 checkUnnamed502(core.List<api.AuditConfig> o) {
375 unittest.expect(o, unittest.hasLength(2)); 375 unittest.expect(o, unittest.hasLength(2));
376 checkAuditConfig(o[0]); 376 checkAuditConfig(o[0]);
377 checkAuditConfig(o[1]); 377 checkAuditConfig(o[1]);
378 } 378 }
379 379
380 buildUnnamed497() { 380 buildUnnamed503() {
381 var o = new core.List<api.Binding>(); 381 var o = new core.List<api.Binding>();
382 o.add(buildBinding()); 382 o.add(buildBinding());
383 o.add(buildBinding()); 383 o.add(buildBinding());
384 return o; 384 return o;
385 } 385 }
386 386
387 checkUnnamed497(core.List<api.Binding> o) { 387 checkUnnamed503(core.List<api.Binding> o) {
388 unittest.expect(o, unittest.hasLength(2)); 388 unittest.expect(o, unittest.hasLength(2));
389 checkBinding(o[0]); 389 checkBinding(o[0]);
390 checkBinding(o[1]); 390 checkBinding(o[1]);
391 } 391 }
392 392
393 buildUnnamed498() { 393 buildUnnamed504() {
394 var o = new core.List<api.Rule>(); 394 var o = new core.List<api.Rule>();
395 o.add(buildRule()); 395 o.add(buildRule());
396 o.add(buildRule()); 396 o.add(buildRule());
397 return o; 397 return o;
398 } 398 }
399 399
400 checkUnnamed498(core.List<api.Rule> o) { 400 checkUnnamed504(core.List<api.Rule> o) {
401 unittest.expect(o, unittest.hasLength(2)); 401 unittest.expect(o, unittest.hasLength(2));
402 checkRule(o[0]); 402 checkRule(o[0]);
403 checkRule(o[1]); 403 checkRule(o[1]);
404 } 404 }
405 405
406 core.int buildCounterPolicy = 0; 406 core.int buildCounterPolicy = 0;
407 buildPolicy() { 407 buildPolicy() {
408 var o = new api.Policy(); 408 var o = new api.Policy();
409 buildCounterPolicy++; 409 buildCounterPolicy++;
410 if (buildCounterPolicy < 3) { 410 if (buildCounterPolicy < 3) {
411 o.auditConfigs = buildUnnamed496(); 411 o.auditConfigs = buildUnnamed502();
412 o.bindings = buildUnnamed497(); 412 o.bindings = buildUnnamed503();
413 o.etag = "foo"; 413 o.etag = "foo";
414 o.iamOwned = true; 414 o.iamOwned = true;
415 o.rules = buildUnnamed498(); 415 o.rules = buildUnnamed504();
416 o.version = 42; 416 o.version = 42;
417 } 417 }
418 buildCounterPolicy--; 418 buildCounterPolicy--;
419 return o; 419 return o;
420 } 420 }
421 421
422 checkPolicy(api.Policy o) { 422 checkPolicy(api.Policy o) {
423 buildCounterPolicy++; 423 buildCounterPolicy++;
424 if (buildCounterPolicy < 3) { 424 if (buildCounterPolicy < 3) {
425 checkUnnamed496(o.auditConfigs); 425 checkUnnamed502(o.auditConfigs);
426 checkUnnamed497(o.bindings); 426 checkUnnamed503(o.bindings);
427 unittest.expect(o.etag, unittest.equals('foo')); 427 unittest.expect(o.etag, unittest.equals('foo'));
428 unittest.expect(o.iamOwned, unittest.isTrue); 428 unittest.expect(o.iamOwned, unittest.isTrue);
429 checkUnnamed498(o.rules); 429 checkUnnamed504(o.rules);
430 unittest.expect(o.version, unittest.equals(42)); 430 unittest.expect(o.version, unittest.equals(42));
431 } 431 }
432 buildCounterPolicy--; 432 buildCounterPolicy--;
433 } 433 }
434 434
435 core.int buildCounterRepo = 0; 435 core.int buildCounterRepo = 0;
436 buildRepo() { 436 buildRepo() {
437 var o = new api.Repo(); 437 var o = new api.Repo();
438 buildCounterRepo++; 438 buildCounterRepo++;
439 if (buildCounterRepo < 3) { 439 if (buildCounterRepo < 3) {
(...skipping 10 matching lines...) Expand all
450 buildCounterRepo++; 450 buildCounterRepo++;
451 if (buildCounterRepo < 3) { 451 if (buildCounterRepo < 3) {
452 checkMirrorConfig(o.mirrorConfig); 452 checkMirrorConfig(o.mirrorConfig);
453 unittest.expect(o.name, unittest.equals('foo')); 453 unittest.expect(o.name, unittest.equals('foo'));
454 unittest.expect(o.size, unittest.equals('foo')); 454 unittest.expect(o.size, unittest.equals('foo'));
455 unittest.expect(o.url, unittest.equals('foo')); 455 unittest.expect(o.url, unittest.equals('foo'));
456 } 456 }
457 buildCounterRepo--; 457 buildCounterRepo--;
458 } 458 }
459 459
460 buildUnnamed499() { 460 buildUnnamed505() {
461 var o = new core.List<api.Condition>(); 461 var o = new core.List<api.Condition>();
462 o.add(buildCondition()); 462 o.add(buildCondition());
463 o.add(buildCondition()); 463 o.add(buildCondition());
464 return o; 464 return o;
465 } 465 }
466 466
467 checkUnnamed499(core.List<api.Condition> o) { 467 checkUnnamed505(core.List<api.Condition> o) {
468 unittest.expect(o, unittest.hasLength(2)); 468 unittest.expect(o, unittest.hasLength(2));
469 checkCondition(o[0]); 469 checkCondition(o[0]);
470 checkCondition(o[1]); 470 checkCondition(o[1]);
471 } 471 }
472 472
473 buildUnnamed500() { 473 buildUnnamed506() {
474 var o = new core.List<core.String>(); 474 var o = new core.List<core.String>();
475 o.add("foo"); 475 o.add("foo");
476 o.add("foo"); 476 o.add("foo");
477 return o; 477 return o;
478 } 478 }
479 479
480 checkUnnamed500(core.List<core.String> o) { 480 checkUnnamed506(core.List<core.String> o) {
481 unittest.expect(o, unittest.hasLength(2)); 481 unittest.expect(o, unittest.hasLength(2));
482 unittest.expect(o[0], unittest.equals('foo')); 482 unittest.expect(o[0], unittest.equals('foo'));
483 unittest.expect(o[1], unittest.equals('foo')); 483 unittest.expect(o[1], unittest.equals('foo'));
484 } 484 }
485 485
486 buildUnnamed501() { 486 buildUnnamed507() {
487 var o = new core.List<api.LogConfig>(); 487 var o = new core.List<api.LogConfig>();
488 o.add(buildLogConfig()); 488 o.add(buildLogConfig());
489 o.add(buildLogConfig()); 489 o.add(buildLogConfig());
490 return o; 490 return o;
491 } 491 }
492 492
493 checkUnnamed501(core.List<api.LogConfig> o) { 493 checkUnnamed507(core.List<api.LogConfig> o) {
494 unittest.expect(o, unittest.hasLength(2)); 494 unittest.expect(o, unittest.hasLength(2));
495 checkLogConfig(o[0]); 495 checkLogConfig(o[0]);
496 checkLogConfig(o[1]); 496 checkLogConfig(o[1]);
497 } 497 }
498 498
499 buildUnnamed502() { 499 buildUnnamed508() {
500 var o = new core.List<core.String>(); 500 var o = new core.List<core.String>();
501 o.add("foo"); 501 o.add("foo");
502 o.add("foo"); 502 o.add("foo");
503 return o; 503 return o;
504 } 504 }
505 505
506 checkUnnamed502(core.List<core.String> o) { 506 checkUnnamed508(core.List<core.String> o) {
507 unittest.expect(o, unittest.hasLength(2)); 507 unittest.expect(o, unittest.hasLength(2));
508 unittest.expect(o[0], unittest.equals('foo')); 508 unittest.expect(o[0], unittest.equals('foo'));
509 unittest.expect(o[1], unittest.equals('foo')); 509 unittest.expect(o[1], unittest.equals('foo'));
510 } 510 }
511 511
512 buildUnnamed503() { 512 buildUnnamed509() {
513 var o = new core.List<core.String>(); 513 var o = new core.List<core.String>();
514 o.add("foo"); 514 o.add("foo");
515 o.add("foo"); 515 o.add("foo");
516 return o; 516 return o;
517 } 517 }
518 518
519 checkUnnamed503(core.List<core.String> o) { 519 checkUnnamed509(core.List<core.String> o) {
520 unittest.expect(o, unittest.hasLength(2)); 520 unittest.expect(o, unittest.hasLength(2));
521 unittest.expect(o[0], unittest.equals('foo')); 521 unittest.expect(o[0], unittest.equals('foo'));
522 unittest.expect(o[1], unittest.equals('foo')); 522 unittest.expect(o[1], unittest.equals('foo'));
523 } 523 }
524 524
525 core.int buildCounterRule = 0; 525 core.int buildCounterRule = 0;
526 buildRule() { 526 buildRule() {
527 var o = new api.Rule(); 527 var o = new api.Rule();
528 buildCounterRule++; 528 buildCounterRule++;
529 if (buildCounterRule < 3) { 529 if (buildCounterRule < 3) {
530 o.action = "foo"; 530 o.action = "foo";
531 o.conditions = buildUnnamed499(); 531 o.conditions = buildUnnamed505();
532 o.description = "foo"; 532 o.description = "foo";
533 o.in_ = buildUnnamed500(); 533 o.in_ = buildUnnamed506();
534 o.logConfig = buildUnnamed501(); 534 o.logConfig = buildUnnamed507();
535 o.notIn = buildUnnamed502(); 535 o.notIn = buildUnnamed508();
536 o.permissions = buildUnnamed503(); 536 o.permissions = buildUnnamed509();
537 } 537 }
538 buildCounterRule--; 538 buildCounterRule--;
539 return o; 539 return o;
540 } 540 }
541 541
542 checkRule(api.Rule o) { 542 checkRule(api.Rule o) {
543 buildCounterRule++; 543 buildCounterRule++;
544 if (buildCounterRule < 3) { 544 if (buildCounterRule < 3) {
545 unittest.expect(o.action, unittest.equals('foo')); 545 unittest.expect(o.action, unittest.equals('foo'));
546 checkUnnamed499(o.conditions); 546 checkUnnamed505(o.conditions);
547 unittest.expect(o.description, unittest.equals('foo')); 547 unittest.expect(o.description, unittest.equals('foo'));
548 checkUnnamed500(o.in_); 548 checkUnnamed506(o.in_);
549 checkUnnamed501(o.logConfig); 549 checkUnnamed507(o.logConfig);
550 checkUnnamed502(o.notIn); 550 checkUnnamed508(o.notIn);
551 checkUnnamed503(o.permissions); 551 checkUnnamed509(o.permissions);
552 } 552 }
553 buildCounterRule--; 553 buildCounterRule--;
554 } 554 }
555 555
556 core.int buildCounterSetIamPolicyRequest = 0; 556 core.int buildCounterSetIamPolicyRequest = 0;
557 buildSetIamPolicyRequest() { 557 buildSetIamPolicyRequest() {
558 var o = new api.SetIamPolicyRequest(); 558 var o = new api.SetIamPolicyRequest();
559 buildCounterSetIamPolicyRequest++; 559 buildCounterSetIamPolicyRequest++;
560 if (buildCounterSetIamPolicyRequest < 3) { 560 if (buildCounterSetIamPolicyRequest < 3) {
561 o.policy = buildPolicy(); 561 o.policy = buildPolicy();
562 o.updateMask = "foo"; 562 o.updateMask = "foo";
563 } 563 }
564 buildCounterSetIamPolicyRequest--; 564 buildCounterSetIamPolicyRequest--;
565 return o; 565 return o;
566 } 566 }
567 567
568 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 568 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
569 buildCounterSetIamPolicyRequest++; 569 buildCounterSetIamPolicyRequest++;
570 if (buildCounterSetIamPolicyRequest < 3) { 570 if (buildCounterSetIamPolicyRequest < 3) {
571 checkPolicy(o.policy); 571 checkPolicy(o.policy);
572 unittest.expect(o.updateMask, unittest.equals('foo')); 572 unittest.expect(o.updateMask, unittest.equals('foo'));
573 } 573 }
574 buildCounterSetIamPolicyRequest--; 574 buildCounterSetIamPolicyRequest--;
575 } 575 }
576 576
577 buildUnnamed504() { 577 buildUnnamed510() {
578 var o = new core.List<core.String>(); 578 var o = new core.List<core.String>();
579 o.add("foo"); 579 o.add("foo");
580 o.add("foo"); 580 o.add("foo");
581 return o; 581 return o;
582 } 582 }
583 583
584 checkUnnamed504(core.List<core.String> o) { 584 checkUnnamed510(core.List<core.String> o) {
585 unittest.expect(o, unittest.hasLength(2)); 585 unittest.expect(o, unittest.hasLength(2));
586 unittest.expect(o[0], unittest.equals('foo')); 586 unittest.expect(o[0], unittest.equals('foo'));
587 unittest.expect(o[1], unittest.equals('foo')); 587 unittest.expect(o[1], unittest.equals('foo'));
588 } 588 }
589 589
590 core.int buildCounterTestIamPermissionsRequest = 0; 590 core.int buildCounterTestIamPermissionsRequest = 0;
591 buildTestIamPermissionsRequest() { 591 buildTestIamPermissionsRequest() {
592 var o = new api.TestIamPermissionsRequest(); 592 var o = new api.TestIamPermissionsRequest();
593 buildCounterTestIamPermissionsRequest++; 593 buildCounterTestIamPermissionsRequest++;
594 if (buildCounterTestIamPermissionsRequest < 3) { 594 if (buildCounterTestIamPermissionsRequest < 3) {
595 o.permissions = buildUnnamed504(); 595 o.permissions = buildUnnamed510();
596 } 596 }
597 buildCounterTestIamPermissionsRequest--; 597 buildCounterTestIamPermissionsRequest--;
598 return o; 598 return o;
599 } 599 }
600 600
601 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 601 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
602 buildCounterTestIamPermissionsRequest++; 602 buildCounterTestIamPermissionsRequest++;
603 if (buildCounterTestIamPermissionsRequest < 3) { 603 if (buildCounterTestIamPermissionsRequest < 3) {
604 checkUnnamed504(o.permissions); 604 checkUnnamed510(o.permissions);
605 } 605 }
606 buildCounterTestIamPermissionsRequest--; 606 buildCounterTestIamPermissionsRequest--;
607 } 607 }
608 608
609 buildUnnamed505() { 609 buildUnnamed511() {
610 var o = new core.List<core.String>(); 610 var o = new core.List<core.String>();
611 o.add("foo"); 611 o.add("foo");
612 o.add("foo"); 612 o.add("foo");
613 return o; 613 return o;
614 } 614 }
615 615
616 checkUnnamed505(core.List<core.String> o) { 616 checkUnnamed511(core.List<core.String> o) {
617 unittest.expect(o, unittest.hasLength(2)); 617 unittest.expect(o, unittest.hasLength(2));
618 unittest.expect(o[0], unittest.equals('foo')); 618 unittest.expect(o[0], unittest.equals('foo'));
619 unittest.expect(o[1], unittest.equals('foo')); 619 unittest.expect(o[1], unittest.equals('foo'));
620 } 620 }
621 621
622 core.int buildCounterTestIamPermissionsResponse = 0; 622 core.int buildCounterTestIamPermissionsResponse = 0;
623 buildTestIamPermissionsResponse() { 623 buildTestIamPermissionsResponse() {
624 var o = new api.TestIamPermissionsResponse(); 624 var o = new api.TestIamPermissionsResponse();
625 buildCounterTestIamPermissionsResponse++; 625 buildCounterTestIamPermissionsResponse++;
626 if (buildCounterTestIamPermissionsResponse < 3) { 626 if (buildCounterTestIamPermissionsResponse < 3) {
627 o.permissions = buildUnnamed505(); 627 o.permissions = buildUnnamed511();
628 } 628 }
629 buildCounterTestIamPermissionsResponse--; 629 buildCounterTestIamPermissionsResponse--;
630 return o; 630 return o;
631 } 631 }
632 632
633 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 633 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
634 buildCounterTestIamPermissionsResponse++; 634 buildCounterTestIamPermissionsResponse++;
635 if (buildCounterTestIamPermissionsResponse < 3) { 635 if (buildCounterTestIamPermissionsResponse < 3) {
636 checkUnnamed505(o.permissions); 636 checkUnnamed511(o.permissions);
637 } 637 }
638 buildCounterTestIamPermissionsResponse--; 638 buildCounterTestIamPermissionsResponse--;
639 } 639 }
640 640
641 641
642 main() { 642 main() {
643 unittest.group("obj-schema-AuditConfig", () { 643 unittest.group("obj-schema-AuditConfig", () {
644 unittest.test("to-json--from-json", () { 644 unittest.test("to-json--from-json", () {
645 var o = buildAuditConfig(); 645 var o = buildAuditConfig();
646 var od = new api.AuditConfig.fromJson(o.toJson()); 646 var od = new api.AuditConfig.fromJson(o.toJson());
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c1(((api.TestIamPermissionsResponse response) { 1123 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c1(((api.TestIamPermissionsResponse response) {
1124 checkTestIamPermissionsResponse(response); 1124 checkTestIamPermissionsResponse(response);
1125 }))); 1125 })));
1126 }); 1126 });
1127 1127
1128 }); 1128 });
1129 1129
1130 1130
1131 } 1131 }
1132 1132
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