Chromium Code Reviews

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

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 library googleapis.androidenterprise.v1.test; 1 library googleapis.androidenterprise.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...)
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 buildUnnamed292() { 54 buildUnnamed1616() {
55 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); 55 var o = new core.List<api.AppRestrictionsSchemaRestriction>();
56 o.add(buildAppRestrictionsSchemaRestriction()); 56 o.add(buildAppRestrictionsSchemaRestriction());
57 o.add(buildAppRestrictionsSchemaRestriction()); 57 o.add(buildAppRestrictionsSchemaRestriction());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed292(core.List<api.AppRestrictionsSchemaRestriction> o) { 61 checkUnnamed1616(core.List<api.AppRestrictionsSchemaRestriction> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAppRestrictionsSchemaRestriction(o[0]); 63 checkAppRestrictionsSchemaRestriction(o[0]);
64 checkAppRestrictionsSchemaRestriction(o[1]); 64 checkAppRestrictionsSchemaRestriction(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAppRestrictionsSchema = 0; 67 core.int buildCounterAppRestrictionsSchema = 0;
68 buildAppRestrictionsSchema() { 68 buildAppRestrictionsSchema() {
69 var o = new api.AppRestrictionsSchema(); 69 var o = new api.AppRestrictionsSchema();
70 buildCounterAppRestrictionsSchema++; 70 buildCounterAppRestrictionsSchema++;
71 if (buildCounterAppRestrictionsSchema < 3) { 71 if (buildCounterAppRestrictionsSchema < 3) {
72 o.kind = "foo"; 72 o.kind = "foo";
73 o.restrictions = buildUnnamed292(); 73 o.restrictions = buildUnnamed1616();
74 } 74 }
75 buildCounterAppRestrictionsSchema--; 75 buildCounterAppRestrictionsSchema--;
76 return o; 76 return o;
77 } 77 }
78 78
79 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { 79 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) {
80 buildCounterAppRestrictionsSchema++; 80 buildCounterAppRestrictionsSchema++;
81 if (buildCounterAppRestrictionsSchema < 3) { 81 if (buildCounterAppRestrictionsSchema < 3) {
82 unittest.expect(o.kind, unittest.equals('foo')); 82 unittest.expect(o.kind, unittest.equals('foo'));
83 checkUnnamed292(o.restrictions); 83 checkUnnamed1616(o.restrictions);
84 } 84 }
85 buildCounterAppRestrictionsSchema--; 85 buildCounterAppRestrictionsSchema--;
86 } 86 }
87 87
88 buildUnnamed293() { 88 buildUnnamed1617() {
89 var o = new core.List<core.String>(); 89 var o = new core.List<core.String>();
90 o.add("foo"); 90 o.add("foo");
91 o.add("foo"); 91 o.add("foo");
92 return o; 92 return o;
93 } 93 }
94 94
95 checkUnnamed293(core.List<core.String> o) { 95 checkUnnamed1617(core.List<core.String> o) {
96 unittest.expect(o, unittest.hasLength(2)); 96 unittest.expect(o, unittest.hasLength(2));
97 unittest.expect(o[0], unittest.equals('foo')); 97 unittest.expect(o[0], unittest.equals('foo'));
98 unittest.expect(o[1], unittest.equals('foo')); 98 unittest.expect(o[1], unittest.equals('foo'));
99 } 99 }
100 100
101 buildUnnamed294() { 101 buildUnnamed1618() {
102 var o = new core.List<core.String>(); 102 var o = new core.List<core.String>();
103 o.add("foo"); 103 o.add("foo");
104 o.add("foo"); 104 o.add("foo");
105 return o; 105 return o;
106 } 106 }
107 107
108 checkUnnamed294(core.List<core.String> o) { 108 checkUnnamed1618(core.List<core.String> o) {
109 unittest.expect(o, unittest.hasLength(2)); 109 unittest.expect(o, unittest.hasLength(2));
110 unittest.expect(o[0], unittest.equals('foo')); 110 unittest.expect(o[0], unittest.equals('foo'));
111 unittest.expect(o[1], unittest.equals('foo')); 111 unittest.expect(o[1], unittest.equals('foo'));
112 } 112 }
113 113
114 core.int buildCounterAppRestrictionsSchemaRestriction = 0; 114 core.int buildCounterAppRestrictionsSchemaRestriction = 0;
115 buildAppRestrictionsSchemaRestriction() { 115 buildAppRestrictionsSchemaRestriction() {
116 var o = new api.AppRestrictionsSchemaRestriction(); 116 var o = new api.AppRestrictionsSchemaRestriction();
117 buildCounterAppRestrictionsSchemaRestriction++; 117 buildCounterAppRestrictionsSchemaRestriction++;
118 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 118 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
119 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); 119 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue();
120 o.description = "foo"; 120 o.description = "foo";
121 o.entry = buildUnnamed293(); 121 o.entry = buildUnnamed1617();
122 o.entryValue = buildUnnamed294(); 122 o.entryValue = buildUnnamed1618();
123 o.key = "foo"; 123 o.key = "foo";
124 o.restrictionType = "foo"; 124 o.restrictionType = "foo";
125 o.title = "foo"; 125 o.title = "foo";
126 } 126 }
127 buildCounterAppRestrictionsSchemaRestriction--; 127 buildCounterAppRestrictionsSchemaRestriction--;
128 return o; 128 return o;
129 } 129 }
130 130
131 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { 131 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) {
132 buildCounterAppRestrictionsSchemaRestriction++; 132 buildCounterAppRestrictionsSchemaRestriction++;
133 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 133 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
134 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); 134 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue);
135 unittest.expect(o.description, unittest.equals('foo')); 135 unittest.expect(o.description, unittest.equals('foo'));
136 checkUnnamed293(o.entry); 136 checkUnnamed1617(o.entry);
137 checkUnnamed294(o.entryValue); 137 checkUnnamed1618(o.entryValue);
138 unittest.expect(o.key, unittest.equals('foo')); 138 unittest.expect(o.key, unittest.equals('foo'));
139 unittest.expect(o.restrictionType, unittest.equals('foo')); 139 unittest.expect(o.restrictionType, unittest.equals('foo'));
140 unittest.expect(o.title, unittest.equals('foo')); 140 unittest.expect(o.title, unittest.equals('foo'));
141 } 141 }
142 buildCounterAppRestrictionsSchemaRestriction--; 142 buildCounterAppRestrictionsSchemaRestriction--;
143 } 143 }
144 144
145 buildUnnamed295() { 145 buildUnnamed1619() {
146 var o = new core.List<core.String>(); 146 var o = new core.List<core.String>();
147 o.add("foo"); 147 o.add("foo");
148 o.add("foo"); 148 o.add("foo");
149 return o; 149 return o;
150 } 150 }
151 151
152 checkUnnamed295(core.List<core.String> o) { 152 checkUnnamed1619(core.List<core.String> o) {
153 unittest.expect(o, unittest.hasLength(2)); 153 unittest.expect(o, unittest.hasLength(2));
154 unittest.expect(o[0], unittest.equals('foo')); 154 unittest.expect(o[0], unittest.equals('foo'));
155 unittest.expect(o[1], unittest.equals('foo')); 155 unittest.expect(o[1], unittest.equals('foo'));
156 } 156 }
157 157
158 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; 158 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0;
159 buildAppRestrictionsSchemaRestrictionRestrictionValue() { 159 buildAppRestrictionsSchemaRestrictionRestrictionValue() {
160 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); 160 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue();
161 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 161 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
162 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 162 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
163 o.type = "foo"; 163 o.type = "foo";
164 o.valueBool = true; 164 o.valueBool = true;
165 o.valueInteger = 42; 165 o.valueInteger = 42;
166 o.valueMultiselect = buildUnnamed295(); 166 o.valueMultiselect = buildUnnamed1619();
167 o.valueString = "foo"; 167 o.valueString = "foo";
168 } 168 }
169 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 169 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
170 return o; 170 return o;
171 } 171 }
172 172
173 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) { 173 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) {
174 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 174 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
175 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 175 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
176 unittest.expect(o.type, unittest.equals('foo')); 176 unittest.expect(o.type, unittest.equals('foo'));
177 unittest.expect(o.valueBool, unittest.isTrue); 177 unittest.expect(o.valueBool, unittest.isTrue);
178 unittest.expect(o.valueInteger, unittest.equals(42)); 178 unittest.expect(o.valueInteger, unittest.equals(42));
179 checkUnnamed295(o.valueMultiselect); 179 checkUnnamed1619(o.valueMultiselect);
180 unittest.expect(o.valueString, unittest.equals('foo')); 180 unittest.expect(o.valueString, unittest.equals('foo'));
181 } 181 }
182 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 182 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
183 } 183 }
184 184
185 core.int buildCounterAppVersion = 0; 185 core.int buildCounterAppVersion = 0;
186 buildAppVersion() { 186 buildAppVersion() {
187 var o = new api.AppVersion(); 187 var o = new api.AppVersion();
188 buildCounterAppVersion++; 188 buildCounterAppVersion++;
189 if (buildCounterAppVersion < 3) { 189 if (buildCounterAppVersion < 3) {
(...skipping 27 matching lines...)
217 217
218 checkApprovalUrlInfo(api.ApprovalUrlInfo o) { 218 checkApprovalUrlInfo(api.ApprovalUrlInfo o) {
219 buildCounterApprovalUrlInfo++; 219 buildCounterApprovalUrlInfo++;
220 if (buildCounterApprovalUrlInfo < 3) { 220 if (buildCounterApprovalUrlInfo < 3) {
221 unittest.expect(o.approvalUrl, unittest.equals('foo')); 221 unittest.expect(o.approvalUrl, unittest.equals('foo'));
222 unittest.expect(o.kind, unittest.equals('foo')); 222 unittest.expect(o.kind, unittest.equals('foo'));
223 } 223 }
224 buildCounterApprovalUrlInfo--; 224 buildCounterApprovalUrlInfo--;
225 } 225 }
226 226
227 buildUnnamed296() { 227 buildUnnamed1620() {
228 var o = new core.List<core.String>(); 228 var o = new core.List<core.String>();
229 o.add("foo"); 229 o.add("foo");
230 o.add("foo"); 230 o.add("foo");
231 return o; 231 return o;
232 } 232 }
233 233
234 checkUnnamed296(core.List<core.String> o) { 234 checkUnnamed1620(core.List<core.String> o) {
235 unittest.expect(o, unittest.hasLength(2)); 235 unittest.expect(o, unittest.hasLength(2));
236 unittest.expect(o[0], unittest.equals('foo')); 236 unittest.expect(o[0], unittest.equals('foo'));
237 unittest.expect(o[1], unittest.equals('foo')); 237 unittest.expect(o[1], unittest.equals('foo'));
238 } 238 }
239 239
240 core.int buildCounterCollection = 0; 240 core.int buildCounterCollection = 0;
241 buildCollection() { 241 buildCollection() {
242 var o = new api.Collection(); 242 var o = new api.Collection();
243 buildCounterCollection++; 243 buildCounterCollection++;
244 if (buildCounterCollection < 3) { 244 if (buildCounterCollection < 3) {
245 o.collectionId = "foo"; 245 o.collectionId = "foo";
246 o.kind = "foo"; 246 o.kind = "foo";
247 o.name = "foo"; 247 o.name = "foo";
248 o.productId = buildUnnamed296(); 248 o.productId = buildUnnamed1620();
249 o.visibility = "foo"; 249 o.visibility = "foo";
250 } 250 }
251 buildCounterCollection--; 251 buildCounterCollection--;
252 return o; 252 return o;
253 } 253 }
254 254
255 checkCollection(api.Collection o) { 255 checkCollection(api.Collection o) {
256 buildCounterCollection++; 256 buildCounterCollection++;
257 if (buildCounterCollection < 3) { 257 if (buildCounterCollection < 3) {
258 unittest.expect(o.collectionId, unittest.equals('foo')); 258 unittest.expect(o.collectionId, unittest.equals('foo'));
259 unittest.expect(o.kind, unittest.equals('foo')); 259 unittest.expect(o.kind, unittest.equals('foo'));
260 unittest.expect(o.name, unittest.equals('foo')); 260 unittest.expect(o.name, unittest.equals('foo'));
261 checkUnnamed296(o.productId); 261 checkUnnamed1620(o.productId);
262 unittest.expect(o.visibility, unittest.equals('foo')); 262 unittest.expect(o.visibility, unittest.equals('foo'));
263 } 263 }
264 buildCounterCollection--; 264 buildCounterCollection--;
265 } 265 }
266 266
267 buildUnnamed297() { 267 buildUnnamed1621() {
268 var o = new core.List<api.User>(); 268 var o = new core.List<api.User>();
269 o.add(buildUser()); 269 o.add(buildUser());
270 o.add(buildUser()); 270 o.add(buildUser());
271 return o; 271 return o;
272 } 272 }
273 273
274 checkUnnamed297(core.List<api.User> o) { 274 checkUnnamed1621(core.List<api.User> o) {
275 unittest.expect(o, unittest.hasLength(2)); 275 unittest.expect(o, unittest.hasLength(2));
276 checkUser(o[0]); 276 checkUser(o[0]);
277 checkUser(o[1]); 277 checkUser(o[1]);
278 } 278 }
279 279
280 core.int buildCounterCollectionViewersListResponse = 0; 280 core.int buildCounterCollectionViewersListResponse = 0;
281 buildCollectionViewersListResponse() { 281 buildCollectionViewersListResponse() {
282 var o = new api.CollectionViewersListResponse(); 282 var o = new api.CollectionViewersListResponse();
283 buildCounterCollectionViewersListResponse++; 283 buildCounterCollectionViewersListResponse++;
284 if (buildCounterCollectionViewersListResponse < 3) { 284 if (buildCounterCollectionViewersListResponse < 3) {
285 o.kind = "foo"; 285 o.kind = "foo";
286 o.user = buildUnnamed297(); 286 o.user = buildUnnamed1621();
287 } 287 }
288 buildCounterCollectionViewersListResponse--; 288 buildCounterCollectionViewersListResponse--;
289 return o; 289 return o;
290 } 290 }
291 291
292 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { 292 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) {
293 buildCounterCollectionViewersListResponse++; 293 buildCounterCollectionViewersListResponse++;
294 if (buildCounterCollectionViewersListResponse < 3) { 294 if (buildCounterCollectionViewersListResponse < 3) {
295 unittest.expect(o.kind, unittest.equals('foo')); 295 unittest.expect(o.kind, unittest.equals('foo'));
296 checkUnnamed297(o.user); 296 checkUnnamed1621(o.user);
297 } 297 }
298 buildCounterCollectionViewersListResponse--; 298 buildCounterCollectionViewersListResponse--;
299 } 299 }
300 300
301 buildUnnamed298() { 301 buildUnnamed1622() {
302 var o = new core.List<api.Collection>(); 302 var o = new core.List<api.Collection>();
303 o.add(buildCollection()); 303 o.add(buildCollection());
304 o.add(buildCollection()); 304 o.add(buildCollection());
305 return o; 305 return o;
306 } 306 }
307 307
308 checkUnnamed298(core.List<api.Collection> o) { 308 checkUnnamed1622(core.List<api.Collection> o) {
309 unittest.expect(o, unittest.hasLength(2)); 309 unittest.expect(o, unittest.hasLength(2));
310 checkCollection(o[0]); 310 checkCollection(o[0]);
311 checkCollection(o[1]); 311 checkCollection(o[1]);
312 } 312 }
313 313
314 core.int buildCounterCollectionsListResponse = 0; 314 core.int buildCounterCollectionsListResponse = 0;
315 buildCollectionsListResponse() { 315 buildCollectionsListResponse() {
316 var o = new api.CollectionsListResponse(); 316 var o = new api.CollectionsListResponse();
317 buildCounterCollectionsListResponse++; 317 buildCounterCollectionsListResponse++;
318 if (buildCounterCollectionsListResponse < 3) { 318 if (buildCounterCollectionsListResponse < 3) {
319 o.collection = buildUnnamed298(); 319 o.collection = buildUnnamed1622();
320 o.kind = "foo"; 320 o.kind = "foo";
321 } 321 }
322 buildCounterCollectionsListResponse--; 322 buildCounterCollectionsListResponse--;
323 return o; 323 return o;
324 } 324 }
325 325
326 checkCollectionsListResponse(api.CollectionsListResponse o) { 326 checkCollectionsListResponse(api.CollectionsListResponse o) {
327 buildCounterCollectionsListResponse++; 327 buildCounterCollectionsListResponse++;
328 if (buildCounterCollectionsListResponse < 3) { 328 if (buildCounterCollectionsListResponse < 3) {
329 checkUnnamed298(o.collection); 329 checkUnnamed1622(o.collection);
330 unittest.expect(o.kind, unittest.equals('foo')); 330 unittest.expect(o.kind, unittest.equals('foo'));
331 } 331 }
332 buildCounterCollectionsListResponse--; 332 buildCounterCollectionsListResponse--;
333 } 333 }
334 334
335 core.int buildCounterDevice = 0; 335 core.int buildCounterDevice = 0;
336 buildDevice() { 336 buildDevice() {
337 var o = new api.Device(); 337 var o = new api.Device();
338 buildCounterDevice++; 338 buildCounterDevice++;
339 if (buildCounterDevice < 3) { 339 if (buildCounterDevice < 3) {
(...skipping 29 matching lines...)
369 369
370 checkDeviceState(api.DeviceState o) { 370 checkDeviceState(api.DeviceState o) {
371 buildCounterDeviceState++; 371 buildCounterDeviceState++;
372 if (buildCounterDeviceState < 3) { 372 if (buildCounterDeviceState < 3) {
373 unittest.expect(o.accountState, unittest.equals('foo')); 373 unittest.expect(o.accountState, unittest.equals('foo'));
374 unittest.expect(o.kind, unittest.equals('foo')); 374 unittest.expect(o.kind, unittest.equals('foo'));
375 } 375 }
376 buildCounterDeviceState--; 376 buildCounterDeviceState--;
377 } 377 }
378 378
379 buildUnnamed299() { 379 buildUnnamed1623() {
380 var o = new core.List<api.Device>(); 380 var o = new core.List<api.Device>();
381 o.add(buildDevice()); 381 o.add(buildDevice());
382 o.add(buildDevice()); 382 o.add(buildDevice());
383 return o; 383 return o;
384 } 384 }
385 385
386 checkUnnamed299(core.List<api.Device> o) { 386 checkUnnamed1623(core.List<api.Device> o) {
387 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
388 checkDevice(o[0]); 388 checkDevice(o[0]);
389 checkDevice(o[1]); 389 checkDevice(o[1]);
390 } 390 }
391 391
392 core.int buildCounterDevicesListResponse = 0; 392 core.int buildCounterDevicesListResponse = 0;
393 buildDevicesListResponse() { 393 buildDevicesListResponse() {
394 var o = new api.DevicesListResponse(); 394 var o = new api.DevicesListResponse();
395 buildCounterDevicesListResponse++; 395 buildCounterDevicesListResponse++;
396 if (buildCounterDevicesListResponse < 3) { 396 if (buildCounterDevicesListResponse < 3) {
397 o.device = buildUnnamed299(); 397 o.device = buildUnnamed1623();
398 o.kind = "foo"; 398 o.kind = "foo";
399 } 399 }
400 buildCounterDevicesListResponse--; 400 buildCounterDevicesListResponse--;
401 return o; 401 return o;
402 } 402 }
403 403
404 checkDevicesListResponse(api.DevicesListResponse o) { 404 checkDevicesListResponse(api.DevicesListResponse o) {
405 buildCounterDevicesListResponse++; 405 buildCounterDevicesListResponse++;
406 if (buildCounterDevicesListResponse < 3) { 406 if (buildCounterDevicesListResponse < 3) {
407 checkUnnamed299(o.device); 407 checkUnnamed1623(o.device);
408 unittest.expect(o.kind, unittest.equals('foo')); 408 unittest.expect(o.kind, unittest.equals('foo'));
409 } 409 }
410 buildCounterDevicesListResponse--; 410 buildCounterDevicesListResponse--;
411 } 411 }
412 412
413 core.int buildCounterEnterprise = 0; 413 core.int buildCounterEnterprise = 0;
414 buildEnterprise() { 414 buildEnterprise() {
415 var o = new api.Enterprise(); 415 var o = new api.Enterprise();
416 buildCounterEnterprise++; 416 buildCounterEnterprise++;
417 if (buildCounterEnterprise < 3) { 417 if (buildCounterEnterprise < 3) {
(...skipping 31 matching lines...)
449 449
450 checkEnterpriseAccount(api.EnterpriseAccount o) { 450 checkEnterpriseAccount(api.EnterpriseAccount o) {
451 buildCounterEnterpriseAccount++; 451 buildCounterEnterpriseAccount++;
452 if (buildCounterEnterpriseAccount < 3) { 452 if (buildCounterEnterpriseAccount < 3) {
453 unittest.expect(o.accountEmail, unittest.equals('foo')); 453 unittest.expect(o.accountEmail, unittest.equals('foo'));
454 unittest.expect(o.kind, unittest.equals('foo')); 454 unittest.expect(o.kind, unittest.equals('foo'));
455 } 455 }
456 buildCounterEnterpriseAccount--; 456 buildCounterEnterpriseAccount--;
457 } 457 }
458 458
459 buildUnnamed300() { 459 buildUnnamed1624() {
460 var o = new core.List<api.Enterprise>(); 460 var o = new core.List<api.Enterprise>();
461 o.add(buildEnterprise()); 461 o.add(buildEnterprise());
462 o.add(buildEnterprise()); 462 o.add(buildEnterprise());
463 return o; 463 return o;
464 } 464 }
465 465
466 checkUnnamed300(core.List<api.Enterprise> o) { 466 checkUnnamed1624(core.List<api.Enterprise> o) {
467 unittest.expect(o, unittest.hasLength(2)); 467 unittest.expect(o, unittest.hasLength(2));
468 checkEnterprise(o[0]); 468 checkEnterprise(o[0]);
469 checkEnterprise(o[1]); 469 checkEnterprise(o[1]);
470 } 470 }
471 471
472 core.int buildCounterEnterprisesListResponse = 0; 472 core.int buildCounterEnterprisesListResponse = 0;
473 buildEnterprisesListResponse() { 473 buildEnterprisesListResponse() {
474 var o = new api.EnterprisesListResponse(); 474 var o = new api.EnterprisesListResponse();
475 buildCounterEnterprisesListResponse++; 475 buildCounterEnterprisesListResponse++;
476 if (buildCounterEnterprisesListResponse < 3) { 476 if (buildCounterEnterprisesListResponse < 3) {
477 o.enterprise = buildUnnamed300(); 477 o.enterprise = buildUnnamed1624();
478 o.kind = "foo"; 478 o.kind = "foo";
479 } 479 }
480 buildCounterEnterprisesListResponse--; 480 buildCounterEnterprisesListResponse--;
481 return o; 481 return o;
482 } 482 }
483 483
484 checkEnterprisesListResponse(api.EnterprisesListResponse o) { 484 checkEnterprisesListResponse(api.EnterprisesListResponse o) {
485 buildCounterEnterprisesListResponse++; 485 buildCounterEnterprisesListResponse++;
486 if (buildCounterEnterprisesListResponse < 3) { 486 if (buildCounterEnterprisesListResponse < 3) {
487 checkUnnamed300(o.enterprise); 487 checkUnnamed1624(o.enterprise);
488 unittest.expect(o.kind, unittest.equals('foo')); 488 unittest.expect(o.kind, unittest.equals('foo'));
489 } 489 }
490 buildCounterEnterprisesListResponse--; 490 buildCounterEnterprisesListResponse--;
491 } 491 }
492 492
493 core.int buildCounterEntitlement = 0; 493 core.int buildCounterEntitlement = 0;
494 buildEntitlement() { 494 buildEntitlement() {
495 var o = new api.Entitlement(); 495 var o = new api.Entitlement();
496 buildCounterEntitlement++; 496 buildCounterEntitlement++;
497 if (buildCounterEntitlement < 3) { 497 if (buildCounterEntitlement < 3) {
498 o.kind = "foo"; 498 o.kind = "foo";
499 o.productId = "foo"; 499 o.productId = "foo";
500 o.reason = "foo"; 500 o.reason = "foo";
501 } 501 }
502 buildCounterEntitlement--; 502 buildCounterEntitlement--;
503 return o; 503 return o;
504 } 504 }
505 505
506 checkEntitlement(api.Entitlement o) { 506 checkEntitlement(api.Entitlement o) {
507 buildCounterEntitlement++; 507 buildCounterEntitlement++;
508 if (buildCounterEntitlement < 3) { 508 if (buildCounterEntitlement < 3) {
509 unittest.expect(o.kind, unittest.equals('foo')); 509 unittest.expect(o.kind, unittest.equals('foo'));
510 unittest.expect(o.productId, unittest.equals('foo')); 510 unittest.expect(o.productId, unittest.equals('foo'));
511 unittest.expect(o.reason, unittest.equals('foo')); 511 unittest.expect(o.reason, unittest.equals('foo'));
512 } 512 }
513 buildCounterEntitlement--; 513 buildCounterEntitlement--;
514 } 514 }
515 515
516 buildUnnamed301() { 516 buildUnnamed1625() {
517 var o = new core.List<api.Entitlement>(); 517 var o = new core.List<api.Entitlement>();
518 o.add(buildEntitlement()); 518 o.add(buildEntitlement());
519 o.add(buildEntitlement()); 519 o.add(buildEntitlement());
520 return o; 520 return o;
521 } 521 }
522 522
523 checkUnnamed301(core.List<api.Entitlement> o) { 523 checkUnnamed1625(core.List<api.Entitlement> o) {
524 unittest.expect(o, unittest.hasLength(2)); 524 unittest.expect(o, unittest.hasLength(2));
525 checkEntitlement(o[0]); 525 checkEntitlement(o[0]);
526 checkEntitlement(o[1]); 526 checkEntitlement(o[1]);
527 } 527 }
528 528
529 core.int buildCounterEntitlementsListResponse = 0; 529 core.int buildCounterEntitlementsListResponse = 0;
530 buildEntitlementsListResponse() { 530 buildEntitlementsListResponse() {
531 var o = new api.EntitlementsListResponse(); 531 var o = new api.EntitlementsListResponse();
532 buildCounterEntitlementsListResponse++; 532 buildCounterEntitlementsListResponse++;
533 if (buildCounterEntitlementsListResponse < 3) { 533 if (buildCounterEntitlementsListResponse < 3) {
534 o.entitlement = buildUnnamed301(); 534 o.entitlement = buildUnnamed1625();
535 o.kind = "foo"; 535 o.kind = "foo";
536 } 536 }
537 buildCounterEntitlementsListResponse--; 537 buildCounterEntitlementsListResponse--;
538 return o; 538 return o;
539 } 539 }
540 540
541 checkEntitlementsListResponse(api.EntitlementsListResponse o) { 541 checkEntitlementsListResponse(api.EntitlementsListResponse o) {
542 buildCounterEntitlementsListResponse++; 542 buildCounterEntitlementsListResponse++;
543 if (buildCounterEntitlementsListResponse < 3) { 543 if (buildCounterEntitlementsListResponse < 3) {
544 checkUnnamed301(o.entitlement); 544 checkUnnamed1625(o.entitlement);
545 unittest.expect(o.kind, unittest.equals('foo')); 545 unittest.expect(o.kind, unittest.equals('foo'));
546 } 546 }
547 buildCounterEntitlementsListResponse--; 547 buildCounterEntitlementsListResponse--;
548 } 548 }
549 549
550 core.int buildCounterGroupLicense = 0; 550 core.int buildCounterGroupLicense = 0;
551 buildGroupLicense() { 551 buildGroupLicense() {
552 var o = new api.GroupLicense(); 552 var o = new api.GroupLicense();
553 buildCounterGroupLicense++; 553 buildCounterGroupLicense++;
554 if (buildCounterGroupLicense < 3) { 554 if (buildCounterGroupLicense < 3) {
(...skipping 14 matching lines...)
569 unittest.expect(o.acquisitionKind, unittest.equals('foo')); 569 unittest.expect(o.acquisitionKind, unittest.equals('foo'));
570 unittest.expect(o.approval, unittest.equals('foo')); 570 unittest.expect(o.approval, unittest.equals('foo'));
571 unittest.expect(o.kind, unittest.equals('foo')); 571 unittest.expect(o.kind, unittest.equals('foo'));
572 unittest.expect(o.numProvisioned, unittest.equals(42)); 572 unittest.expect(o.numProvisioned, unittest.equals(42));
573 unittest.expect(o.numPurchased, unittest.equals(42)); 573 unittest.expect(o.numPurchased, unittest.equals(42));
574 unittest.expect(o.productId, unittest.equals('foo')); 574 unittest.expect(o.productId, unittest.equals('foo'));
575 } 575 }
576 buildCounterGroupLicense--; 576 buildCounterGroupLicense--;
577 } 577 }
578 578
579 buildUnnamed302() { 579 buildUnnamed1626() {
580 var o = new core.List<api.User>(); 580 var o = new core.List<api.User>();
581 o.add(buildUser()); 581 o.add(buildUser());
582 o.add(buildUser()); 582 o.add(buildUser());
583 return o; 583 return o;
584 } 584 }
585 585
586 checkUnnamed302(core.List<api.User> o) { 586 checkUnnamed1626(core.List<api.User> o) {
587 unittest.expect(o, unittest.hasLength(2)); 587 unittest.expect(o, unittest.hasLength(2));
588 checkUser(o[0]); 588 checkUser(o[0]);
589 checkUser(o[1]); 589 checkUser(o[1]);
590 } 590 }
591 591
592 core.int buildCounterGroupLicenseUsersListResponse = 0; 592 core.int buildCounterGroupLicenseUsersListResponse = 0;
593 buildGroupLicenseUsersListResponse() { 593 buildGroupLicenseUsersListResponse() {
594 var o = new api.GroupLicenseUsersListResponse(); 594 var o = new api.GroupLicenseUsersListResponse();
595 buildCounterGroupLicenseUsersListResponse++; 595 buildCounterGroupLicenseUsersListResponse++;
596 if (buildCounterGroupLicenseUsersListResponse < 3) { 596 if (buildCounterGroupLicenseUsersListResponse < 3) {
597 o.kind = "foo"; 597 o.kind = "foo";
598 o.user = buildUnnamed302(); 598 o.user = buildUnnamed1626();
599 } 599 }
600 buildCounterGroupLicenseUsersListResponse--; 600 buildCounterGroupLicenseUsersListResponse--;
601 return o; 601 return o;
602 } 602 }
603 603
604 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { 604 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) {
605 buildCounterGroupLicenseUsersListResponse++; 605 buildCounterGroupLicenseUsersListResponse++;
606 if (buildCounterGroupLicenseUsersListResponse < 3) { 606 if (buildCounterGroupLicenseUsersListResponse < 3) {
607 unittest.expect(o.kind, unittest.equals('foo')); 607 unittest.expect(o.kind, unittest.equals('foo'));
608 checkUnnamed302(o.user); 608 checkUnnamed1626(o.user);
609 } 609 }
610 buildCounterGroupLicenseUsersListResponse--; 610 buildCounterGroupLicenseUsersListResponse--;
611 } 611 }
612 612
613 buildUnnamed303() { 613 buildUnnamed1627() {
614 var o = new core.List<api.GroupLicense>(); 614 var o = new core.List<api.GroupLicense>();
615 o.add(buildGroupLicense()); 615 o.add(buildGroupLicense());
616 o.add(buildGroupLicense()); 616 o.add(buildGroupLicense());
617 return o; 617 return o;
618 } 618 }
619 619
620 checkUnnamed303(core.List<api.GroupLicense> o) { 620 checkUnnamed1627(core.List<api.GroupLicense> o) {
621 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
622 checkGroupLicense(o[0]); 622 checkGroupLicense(o[0]);
623 checkGroupLicense(o[1]); 623 checkGroupLicense(o[1]);
624 } 624 }
625 625
626 core.int buildCounterGroupLicensesListResponse = 0; 626 core.int buildCounterGroupLicensesListResponse = 0;
627 buildGroupLicensesListResponse() { 627 buildGroupLicensesListResponse() {
628 var o = new api.GroupLicensesListResponse(); 628 var o = new api.GroupLicensesListResponse();
629 buildCounterGroupLicensesListResponse++; 629 buildCounterGroupLicensesListResponse++;
630 if (buildCounterGroupLicensesListResponse < 3) { 630 if (buildCounterGroupLicensesListResponse < 3) {
631 o.groupLicense = buildUnnamed303(); 631 o.groupLicense = buildUnnamed1627();
632 o.kind = "foo"; 632 o.kind = "foo";
633 } 633 }
634 buildCounterGroupLicensesListResponse--; 634 buildCounterGroupLicensesListResponse--;
635 return o; 635 return o;
636 } 636 }
637 637
638 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { 638 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) {
639 buildCounterGroupLicensesListResponse++; 639 buildCounterGroupLicensesListResponse++;
640 if (buildCounterGroupLicensesListResponse < 3) { 640 if (buildCounterGroupLicensesListResponse < 3) {
641 checkUnnamed303(o.groupLicense); 641 checkUnnamed1627(o.groupLicense);
642 unittest.expect(o.kind, unittest.equals('foo')); 642 unittest.expect(o.kind, unittest.equals('foo'));
643 } 643 }
644 buildCounterGroupLicensesListResponse--; 644 buildCounterGroupLicensesListResponse--;
645 } 645 }
646 646
647 core.int buildCounterInstall = 0; 647 core.int buildCounterInstall = 0;
648 buildInstall() { 648 buildInstall() {
649 var o = new api.Install(); 649 var o = new api.Install();
650 buildCounterInstall++; 650 buildCounterInstall++;
651 if (buildCounterInstall < 3) { 651 if (buildCounterInstall < 3) {
(...skipping 10 matching lines...)
662 buildCounterInstall++; 662 buildCounterInstall++;
663 if (buildCounterInstall < 3) { 663 if (buildCounterInstall < 3) {
664 unittest.expect(o.installState, unittest.equals('foo')); 664 unittest.expect(o.installState, unittest.equals('foo'));
665 unittest.expect(o.kind, unittest.equals('foo')); 665 unittest.expect(o.kind, unittest.equals('foo'));
666 unittest.expect(o.productId, unittest.equals('foo')); 666 unittest.expect(o.productId, unittest.equals('foo'));
667 unittest.expect(o.versionCode, unittest.equals(42)); 667 unittest.expect(o.versionCode, unittest.equals(42));
668 } 668 }
669 buildCounterInstall--; 669 buildCounterInstall--;
670 } 670 }
671 671
672 buildUnnamed304() { 672 buildUnnamed1628() {
673 var o = new core.List<api.Install>(); 673 var o = new core.List<api.Install>();
674 o.add(buildInstall()); 674 o.add(buildInstall());
675 o.add(buildInstall()); 675 o.add(buildInstall());
676 return o; 676 return o;
677 } 677 }
678 678
679 checkUnnamed304(core.List<api.Install> o) { 679 checkUnnamed1628(core.List<api.Install> o) {
680 unittest.expect(o, unittest.hasLength(2)); 680 unittest.expect(o, unittest.hasLength(2));
681 checkInstall(o[0]); 681 checkInstall(o[0]);
682 checkInstall(o[1]); 682 checkInstall(o[1]);
683 } 683 }
684 684
685 core.int buildCounterInstallsListResponse = 0; 685 core.int buildCounterInstallsListResponse = 0;
686 buildInstallsListResponse() { 686 buildInstallsListResponse() {
687 var o = new api.InstallsListResponse(); 687 var o = new api.InstallsListResponse();
688 buildCounterInstallsListResponse++; 688 buildCounterInstallsListResponse++;
689 if (buildCounterInstallsListResponse < 3) { 689 if (buildCounterInstallsListResponse < 3) {
690 o.install = buildUnnamed304(); 690 o.install = buildUnnamed1628();
691 o.kind = "foo"; 691 o.kind = "foo";
692 } 692 }
693 buildCounterInstallsListResponse--; 693 buildCounterInstallsListResponse--;
694 return o; 694 return o;
695 } 695 }
696 696
697 checkInstallsListResponse(api.InstallsListResponse o) { 697 checkInstallsListResponse(api.InstallsListResponse o) {
698 buildCounterInstallsListResponse++; 698 buildCounterInstallsListResponse++;
699 if (buildCounterInstallsListResponse < 3) { 699 if (buildCounterInstallsListResponse < 3) {
700 checkUnnamed304(o.install); 700 checkUnnamed1628(o.install);
701 unittest.expect(o.kind, unittest.equals('foo')); 701 unittest.expect(o.kind, unittest.equals('foo'));
702 } 702 }
703 buildCounterInstallsListResponse--; 703 buildCounterInstallsListResponse--;
704 } 704 }
705 705
706 core.int buildCounterPermission = 0; 706 core.int buildCounterPermission = 0;
707 buildPermission() { 707 buildPermission() {
708 var o = new api.Permission(); 708 var o = new api.Permission();
709 buildCounterPermission++; 709 buildCounterPermission++;
710 if (buildCounterPermission < 3) { 710 if (buildCounterPermission < 3) {
(...skipping 10 matching lines...)
721 buildCounterPermission++; 721 buildCounterPermission++;
722 if (buildCounterPermission < 3) { 722 if (buildCounterPermission < 3) {
723 unittest.expect(o.description, unittest.equals('foo')); 723 unittest.expect(o.description, unittest.equals('foo'));
724 unittest.expect(o.kind, unittest.equals('foo')); 724 unittest.expect(o.kind, unittest.equals('foo'));
725 unittest.expect(o.name, unittest.equals('foo')); 725 unittest.expect(o.name, unittest.equals('foo'));
726 unittest.expect(o.permissionId, unittest.equals('foo')); 726 unittest.expect(o.permissionId, unittest.equals('foo'));
727 } 727 }
728 buildCounterPermission--; 728 buildCounterPermission--;
729 } 729 }
730 730
731 buildUnnamed305() { 731 buildUnnamed1629() {
732 var o = new core.List<api.AppVersion>(); 732 var o = new core.List<api.AppVersion>();
733 o.add(buildAppVersion()); 733 o.add(buildAppVersion());
734 o.add(buildAppVersion()); 734 o.add(buildAppVersion());
735 return o; 735 return o;
736 } 736 }
737 737
738 checkUnnamed305(core.List<api.AppVersion> o) { 738 checkUnnamed1629(core.List<api.AppVersion> o) {
739 unittest.expect(o, unittest.hasLength(2)); 739 unittest.expect(o, unittest.hasLength(2));
740 checkAppVersion(o[0]); 740 checkAppVersion(o[0]);
741 checkAppVersion(o[1]); 741 checkAppVersion(o[1]);
742 } 742 }
743 743
744 core.int buildCounterProduct = 0; 744 core.int buildCounterProduct = 0;
745 buildProduct() { 745 buildProduct() {
746 var o = new api.Product(); 746 var o = new api.Product();
747 buildCounterProduct++; 747 buildCounterProduct++;
748 if (buildCounterProduct < 3) { 748 if (buildCounterProduct < 3) {
749 o.appVersion = buildUnnamed305(); 749 o.appVersion = buildUnnamed1629();
750 o.authorName = "foo"; 750 o.authorName = "foo";
751 o.detailsUrl = "foo"; 751 o.detailsUrl = "foo";
752 o.distributionChannel = "foo"; 752 o.distributionChannel = "foo";
753 o.iconUrl = "foo"; 753 o.iconUrl = "foo";
754 o.kind = "foo"; 754 o.kind = "foo";
755 o.productId = "foo"; 755 o.productId = "foo";
756 o.requiresContainerApp = true; 756 o.requiresContainerApp = true;
757 o.title = "foo"; 757 o.title = "foo";
758 o.workDetailsUrl = "foo"; 758 o.workDetailsUrl = "foo";
759 } 759 }
760 buildCounterProduct--; 760 buildCounterProduct--;
761 return o; 761 return o;
762 } 762 }
763 763
764 checkProduct(api.Product o) { 764 checkProduct(api.Product o) {
765 buildCounterProduct++; 765 buildCounterProduct++;
766 if (buildCounterProduct < 3) { 766 if (buildCounterProduct < 3) {
767 checkUnnamed305(o.appVersion); 767 checkUnnamed1629(o.appVersion);
768 unittest.expect(o.authorName, unittest.equals('foo')); 768 unittest.expect(o.authorName, unittest.equals('foo'));
769 unittest.expect(o.detailsUrl, unittest.equals('foo')); 769 unittest.expect(o.detailsUrl, unittest.equals('foo'));
770 unittest.expect(o.distributionChannel, unittest.equals('foo')); 770 unittest.expect(o.distributionChannel, unittest.equals('foo'));
771 unittest.expect(o.iconUrl, unittest.equals('foo')); 771 unittest.expect(o.iconUrl, unittest.equals('foo'));
772 unittest.expect(o.kind, unittest.equals('foo')); 772 unittest.expect(o.kind, unittest.equals('foo'));
773 unittest.expect(o.productId, unittest.equals('foo')); 773 unittest.expect(o.productId, unittest.equals('foo'));
774 unittest.expect(o.requiresContainerApp, unittest.isTrue); 774 unittest.expect(o.requiresContainerApp, unittest.isTrue);
775 unittest.expect(o.title, unittest.equals('foo')); 775 unittest.expect(o.title, unittest.equals('foo'));
776 unittest.expect(o.workDetailsUrl, unittest.equals('foo')); 776 unittest.expect(o.workDetailsUrl, unittest.equals('foo'));
777 } 777 }
(...skipping 14 matching lines...)
792 792
793 checkProductPermission(api.ProductPermission o) { 793 checkProductPermission(api.ProductPermission o) {
794 buildCounterProductPermission++; 794 buildCounterProductPermission++;
795 if (buildCounterProductPermission < 3) { 795 if (buildCounterProductPermission < 3) {
796 unittest.expect(o.permissionId, unittest.equals('foo')); 796 unittest.expect(o.permissionId, unittest.equals('foo'));
797 unittest.expect(o.state, unittest.equals('foo')); 797 unittest.expect(o.state, unittest.equals('foo'));
798 } 798 }
799 buildCounterProductPermission--; 799 buildCounterProductPermission--;
800 } 800 }
801 801
802 buildUnnamed306() { 802 buildUnnamed1630() {
803 var o = new core.List<api.ProductPermission>(); 803 var o = new core.List<api.ProductPermission>();
804 o.add(buildProductPermission()); 804 o.add(buildProductPermission());
805 o.add(buildProductPermission()); 805 o.add(buildProductPermission());
806 return o; 806 return o;
807 } 807 }
808 808
809 checkUnnamed306(core.List<api.ProductPermission> o) { 809 checkUnnamed1630(core.List<api.ProductPermission> o) {
810 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
811 checkProductPermission(o[0]); 811 checkProductPermission(o[0]);
812 checkProductPermission(o[1]); 812 checkProductPermission(o[1]);
813 } 813 }
814 814
815 core.int buildCounterProductPermissions = 0; 815 core.int buildCounterProductPermissions = 0;
816 buildProductPermissions() { 816 buildProductPermissions() {
817 var o = new api.ProductPermissions(); 817 var o = new api.ProductPermissions();
818 buildCounterProductPermissions++; 818 buildCounterProductPermissions++;
819 if (buildCounterProductPermissions < 3) { 819 if (buildCounterProductPermissions < 3) {
820 o.kind = "foo"; 820 o.kind = "foo";
821 o.permission = buildUnnamed306(); 821 o.permission = buildUnnamed1630();
822 o.productId = "foo"; 822 o.productId = "foo";
823 } 823 }
824 buildCounterProductPermissions--; 824 buildCounterProductPermissions--;
825 return o; 825 return o;
826 } 826 }
827 827
828 checkProductPermissions(api.ProductPermissions o) { 828 checkProductPermissions(api.ProductPermissions o) {
829 buildCounterProductPermissions++; 829 buildCounterProductPermissions++;
830 if (buildCounterProductPermissions < 3) { 830 if (buildCounterProductPermissions < 3) {
831 unittest.expect(o.kind, unittest.equals('foo')); 831 unittest.expect(o.kind, unittest.equals('foo'));
832 checkUnnamed306(o.permission); 832 checkUnnamed1630(o.permission);
833 unittest.expect(o.productId, unittest.equals('foo')); 833 unittest.expect(o.productId, unittest.equals('foo'));
834 } 834 }
835 buildCounterProductPermissions--; 835 buildCounterProductPermissions--;
836 } 836 }
837 837
838 buildUnnamed307() { 838 buildUnnamed1631() {
839 var o = new core.List<core.String>(); 839 var o = new core.List<core.String>();
840 o.add("foo"); 840 o.add("foo");
841 o.add("foo"); 841 o.add("foo");
842 return o; 842 return o;
843 } 843 }
844 844
845 checkUnnamed307(core.List<core.String> o) { 845 checkUnnamed1631(core.List<core.String> o) {
846 unittest.expect(o, unittest.hasLength(2)); 846 unittest.expect(o, unittest.hasLength(2));
847 unittest.expect(o[0], unittest.equals('foo')); 847 unittest.expect(o[0], unittest.equals('foo'));
848 unittest.expect(o[1], unittest.equals('foo')); 848 unittest.expect(o[1], unittest.equals('foo'));
849 } 849 }
850 850
851 core.int buildCounterProductSet = 0; 851 core.int buildCounterProductSet = 0;
852 buildProductSet() { 852 buildProductSet() {
853 var o = new api.ProductSet(); 853 var o = new api.ProductSet();
854 buildCounterProductSet++; 854 buildCounterProductSet++;
855 if (buildCounterProductSet < 3) { 855 if (buildCounterProductSet < 3) {
856 o.kind = "foo"; 856 o.kind = "foo";
857 o.productId = buildUnnamed307(); 857 o.productId = buildUnnamed1631();
858 } 858 }
859 buildCounterProductSet--; 859 buildCounterProductSet--;
860 return o; 860 return o;
861 } 861 }
862 862
863 checkProductSet(api.ProductSet o) { 863 checkProductSet(api.ProductSet o) {
864 buildCounterProductSet++; 864 buildCounterProductSet++;
865 if (buildCounterProductSet < 3) { 865 if (buildCounterProductSet < 3) {
866 unittest.expect(o.kind, unittest.equals('foo')); 866 unittest.expect(o.kind, unittest.equals('foo'));
867 checkUnnamed307(o.productId); 867 checkUnnamed1631(o.productId);
868 } 868 }
869 buildCounterProductSet--; 869 buildCounterProductSet--;
870 } 870 }
871 871
872 core.int buildCounterProductsApproveRequest = 0; 872 core.int buildCounterProductsApproveRequest = 0;
873 buildProductsApproveRequest() { 873 buildProductsApproveRequest() {
874 var o = new api.ProductsApproveRequest(); 874 var o = new api.ProductsApproveRequest();
875 buildCounterProductsApproveRequest++; 875 buildCounterProductsApproveRequest++;
876 if (buildCounterProductsApproveRequest < 3) { 876 if (buildCounterProductsApproveRequest < 3) {
877 o.approvalUrlInfo = buildApprovalUrlInfo(); 877 o.approvalUrlInfo = buildApprovalUrlInfo();
(...skipping 68 matching lines...)
946 checkUserToken(api.UserToken o) { 946 checkUserToken(api.UserToken o) {
947 buildCounterUserToken++; 947 buildCounterUserToken++;
948 if (buildCounterUserToken < 3) { 948 if (buildCounterUserToken < 3) {
949 unittest.expect(o.kind, unittest.equals('foo')); 949 unittest.expect(o.kind, unittest.equals('foo'));
950 unittest.expect(o.token, unittest.equals('foo')); 950 unittest.expect(o.token, unittest.equals('foo'));
951 unittest.expect(o.userId, unittest.equals('foo')); 951 unittest.expect(o.userId, unittest.equals('foo'));
952 } 952 }
953 buildCounterUserToken--; 953 buildCounterUserToken--;
954 } 954 }
955 955
956 buildUnnamed308() { 956 buildUnnamed1632() {
957 var o = new core.List<api.User>(); 957 var o = new core.List<api.User>();
958 o.add(buildUser()); 958 o.add(buildUser());
959 o.add(buildUser()); 959 o.add(buildUser());
960 return o; 960 return o;
961 } 961 }
962 962
963 checkUnnamed308(core.List<api.User> o) { 963 checkUnnamed1632(core.List<api.User> o) {
964 unittest.expect(o, unittest.hasLength(2)); 964 unittest.expect(o, unittest.hasLength(2));
965 checkUser(o[0]); 965 checkUser(o[0]);
966 checkUser(o[1]); 966 checkUser(o[1]);
967 } 967 }
968 968
969 core.int buildCounterUsersListResponse = 0; 969 core.int buildCounterUsersListResponse = 0;
970 buildUsersListResponse() { 970 buildUsersListResponse() {
971 var o = new api.UsersListResponse(); 971 var o = new api.UsersListResponse();
972 buildCounterUsersListResponse++; 972 buildCounterUsersListResponse++;
973 if (buildCounterUsersListResponse < 3) { 973 if (buildCounterUsersListResponse < 3) {
974 o.kind = "foo"; 974 o.kind = "foo";
975 o.user = buildUnnamed308(); 975 o.user = buildUnnamed1632();
976 } 976 }
977 buildCounterUsersListResponse--; 977 buildCounterUsersListResponse--;
978 return o; 978 return o;
979 } 979 }
980 980
981 checkUsersListResponse(api.UsersListResponse o) { 981 checkUsersListResponse(api.UsersListResponse o) {
982 buildCounterUsersListResponse++; 982 buildCounterUsersListResponse++;
983 if (buildCounterUsersListResponse < 3) { 983 if (buildCounterUsersListResponse < 3) {
984 unittest.expect(o.kind, unittest.equals('foo')); 984 unittest.expect(o.kind, unittest.equals('foo'));
985 checkUnnamed308(o.user); 985 checkUnnamed1632(o.user);
986 } 986 }
987 buildCounterUsersListResponse--; 987 buildCounterUsersListResponse--;
988 } 988 }
989 989
990 990
991 main() { 991 main() {
992 unittest.group("obj-schema-AppRestrictionsSchema", () { 992 unittest.group("obj-schema-AppRestrictionsSchema", () {
993 unittest.test("to-json--from-json", () { 993 unittest.test("to-json--from-json", () {
994 var o = buildAppRestrictionsSchema(); 994 var o = buildAppRestrictionsSchema();
995 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); 995 var od = new api.AppRestrictionsSchema.fromJson(o.toJson());
(...skipping 3255 matching lines...)
4251 res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then (unittest.expectAsync(((api.ProductSet response) { 4251 res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then (unittest.expectAsync(((api.ProductSet response) {
4252 checkProductSet(response); 4252 checkProductSet(response);
4253 }))); 4253 })));
4254 }); 4254 });
4255 4255
4256 }); 4256 });
4257 4257
4258 4258
4259 } 4259 }
4260 4260
OLDNEW
« no previous file with comments | « generated/googleapis/test/analytics/v3_test.dart ('k') | generated/googleapis/test/androidpublisher/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine