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

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

Issue 1268013003: Api-roll 21: 2015-08-04 (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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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...) 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 buildUnnamed1202() { 54 buildUnnamed292() {
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 checkUnnamed1202(core.List<api.AppRestrictionsSchemaRestriction> o) { 61 checkUnnamed292(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.restrictions = buildUnnamed1202(); 72 o.kind = "foo";
73 o.restrictions = buildUnnamed292();
73 } 74 }
74 buildCounterAppRestrictionsSchema--; 75 buildCounterAppRestrictionsSchema--;
75 return o; 76 return o;
76 } 77 }
77 78
78 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { 79 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) {
79 buildCounterAppRestrictionsSchema++; 80 buildCounterAppRestrictionsSchema++;
80 if (buildCounterAppRestrictionsSchema < 3) { 81 if (buildCounterAppRestrictionsSchema < 3) {
81 checkUnnamed1202(o.restrictions); 82 unittest.expect(o.kind, unittest.equals('foo'));
83 checkUnnamed292(o.restrictions);
82 } 84 }
83 buildCounterAppRestrictionsSchema--; 85 buildCounterAppRestrictionsSchema--;
84 } 86 }
85 87
86 buildUnnamed1203() { 88 buildUnnamed293() {
87 var o = new core.List<core.String>(); 89 var o = new core.List<core.String>();
88 o.add("foo"); 90 o.add("foo");
89 o.add("foo"); 91 o.add("foo");
90 return o; 92 return o;
91 } 93 }
92 94
93 checkUnnamed1203(core.List<core.String> o) { 95 checkUnnamed293(core.List<core.String> o) {
94 unittest.expect(o, unittest.hasLength(2)); 96 unittest.expect(o, unittest.hasLength(2));
95 unittest.expect(o[0], unittest.equals('foo')); 97 unittest.expect(o[0], unittest.equals('foo'));
96 unittest.expect(o[1], unittest.equals('foo')); 98 unittest.expect(o[1], unittest.equals('foo'));
97 } 99 }
98 100
99 buildUnnamed1204() { 101 buildUnnamed294() {
100 var o = new core.List<core.String>(); 102 var o = new core.List<core.String>();
101 o.add("foo"); 103 o.add("foo");
102 o.add("foo"); 104 o.add("foo");
103 return o; 105 return o;
104 } 106 }
105 107
106 checkUnnamed1204(core.List<core.String> o) { 108 checkUnnamed294(core.List<core.String> o) {
107 unittest.expect(o, unittest.hasLength(2)); 109 unittest.expect(o, unittest.hasLength(2));
108 unittest.expect(o[0], unittest.equals('foo')); 110 unittest.expect(o[0], unittest.equals('foo'));
109 unittest.expect(o[1], unittest.equals('foo')); 111 unittest.expect(o[1], unittest.equals('foo'));
110 } 112 }
111 113
112 core.int buildCounterAppRestrictionsSchemaRestriction = 0; 114 core.int buildCounterAppRestrictionsSchemaRestriction = 0;
113 buildAppRestrictionsSchemaRestriction() { 115 buildAppRestrictionsSchemaRestriction() {
114 var o = new api.AppRestrictionsSchemaRestriction(); 116 var o = new api.AppRestrictionsSchemaRestriction();
115 buildCounterAppRestrictionsSchemaRestriction++; 117 buildCounterAppRestrictionsSchemaRestriction++;
116 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 118 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
117 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); 119 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue();
118 o.description = "foo"; 120 o.description = "foo";
119 o.entry = buildUnnamed1203(); 121 o.entry = buildUnnamed293();
120 o.entryValue = buildUnnamed1204(); 122 o.entryValue = buildUnnamed294();
121 o.key = "foo"; 123 o.key = "foo";
122 o.restrictionType = "foo"; 124 o.restrictionType = "foo";
123 o.title = "foo"; 125 o.title = "foo";
124 } 126 }
125 buildCounterAppRestrictionsSchemaRestriction--; 127 buildCounterAppRestrictionsSchemaRestriction--;
126 return o; 128 return o;
127 } 129 }
128 130
129 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { 131 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) {
130 buildCounterAppRestrictionsSchemaRestriction++; 132 buildCounterAppRestrictionsSchemaRestriction++;
131 if (buildCounterAppRestrictionsSchemaRestriction < 3) { 133 if (buildCounterAppRestrictionsSchemaRestriction < 3) {
132 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); 134 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue);
133 unittest.expect(o.description, unittest.equals('foo')); 135 unittest.expect(o.description, unittest.equals('foo'));
134 checkUnnamed1203(o.entry); 136 checkUnnamed293(o.entry);
135 checkUnnamed1204(o.entryValue); 137 checkUnnamed294(o.entryValue);
136 unittest.expect(o.key, unittest.equals('foo')); 138 unittest.expect(o.key, unittest.equals('foo'));
137 unittest.expect(o.restrictionType, unittest.equals('foo')); 139 unittest.expect(o.restrictionType, unittest.equals('foo'));
138 unittest.expect(o.title, unittest.equals('foo')); 140 unittest.expect(o.title, unittest.equals('foo'));
139 } 141 }
140 buildCounterAppRestrictionsSchemaRestriction--; 142 buildCounterAppRestrictionsSchemaRestriction--;
141 } 143 }
142 144
143 buildUnnamed1205() { 145 buildUnnamed295() {
144 var o = new core.List<core.String>(); 146 var o = new core.List<core.String>();
145 o.add("foo"); 147 o.add("foo");
146 o.add("foo"); 148 o.add("foo");
147 return o; 149 return o;
148 } 150 }
149 151
150 checkUnnamed1205(core.List<core.String> o) { 152 checkUnnamed295(core.List<core.String> o) {
151 unittest.expect(o, unittest.hasLength(2)); 153 unittest.expect(o, unittest.hasLength(2));
152 unittest.expect(o[0], unittest.equals('foo')); 154 unittest.expect(o[0], unittest.equals('foo'));
153 unittest.expect(o[1], unittest.equals('foo')); 155 unittest.expect(o[1], unittest.equals('foo'));
154 } 156 }
155 157
156 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; 158 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0;
157 buildAppRestrictionsSchemaRestrictionRestrictionValue() { 159 buildAppRestrictionsSchemaRestrictionRestrictionValue() {
158 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); 160 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue();
159 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 161 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
160 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 162 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
161 o.type = "foo"; 163 o.type = "foo";
162 o.valueBool = true; 164 o.valueBool = true;
163 o.valueInteger = 42; 165 o.valueInteger = 42;
164 o.valueMultiselect = buildUnnamed1205(); 166 o.valueMultiselect = buildUnnamed295();
165 o.valueString = "foo"; 167 o.valueString = "foo";
166 } 168 }
167 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 169 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
168 return o; 170 return o;
169 } 171 }
170 172
171 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) { 173 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR estrictionRestrictionValue o) {
172 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; 174 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++;
173 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { 175 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) {
174 unittest.expect(o.type, unittest.equals('foo')); 176 unittest.expect(o.type, unittest.equals('foo'));
175 unittest.expect(o.valueBool, unittest.isTrue); 177 unittest.expect(o.valueBool, unittest.isTrue);
176 unittest.expect(o.valueInteger, unittest.equals(42)); 178 unittest.expect(o.valueInteger, unittest.equals(42));
177 checkUnnamed1205(o.valueMultiselect); 179 checkUnnamed295(o.valueMultiselect);
178 unittest.expect(o.valueString, unittest.equals('foo')); 180 unittest.expect(o.valueString, unittest.equals('foo'));
179 } 181 }
180 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; 182 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--;
181 } 183 }
182 184
183 core.int buildCounterAppVersion = 0; 185 core.int buildCounterAppVersion = 0;
184 buildAppVersion() { 186 buildAppVersion() {
185 var o = new api.AppVersion(); 187 var o = new api.AppVersion();
186 buildCounterAppVersion++; 188 buildCounterAppVersion++;
187 if (buildCounterAppVersion < 3) { 189 if (buildCounterAppVersion < 3) {
(...skipping 27 matching lines...) Expand all
215 217
216 checkApprovalUrlInfo(api.ApprovalUrlInfo o) { 218 checkApprovalUrlInfo(api.ApprovalUrlInfo o) {
217 buildCounterApprovalUrlInfo++; 219 buildCounterApprovalUrlInfo++;
218 if (buildCounterApprovalUrlInfo < 3) { 220 if (buildCounterApprovalUrlInfo < 3) {
219 unittest.expect(o.approvalUrl, unittest.equals('foo')); 221 unittest.expect(o.approvalUrl, unittest.equals('foo'));
220 unittest.expect(o.kind, unittest.equals('foo')); 222 unittest.expect(o.kind, unittest.equals('foo'));
221 } 223 }
222 buildCounterApprovalUrlInfo--; 224 buildCounterApprovalUrlInfo--;
223 } 225 }
224 226
225 buildUnnamed1206() { 227 buildUnnamed296() {
226 var o = new core.List<core.String>(); 228 var o = new core.List<core.String>();
227 o.add("foo"); 229 o.add("foo");
228 o.add("foo"); 230 o.add("foo");
229 return o; 231 return o;
230 } 232 }
231 233
232 checkUnnamed1206(core.List<core.String> o) { 234 checkUnnamed296(core.List<core.String> o) {
233 unittest.expect(o, unittest.hasLength(2)); 235 unittest.expect(o, unittest.hasLength(2));
234 unittest.expect(o[0], unittest.equals('foo')); 236 unittest.expect(o[0], unittest.equals('foo'));
235 unittest.expect(o[1], unittest.equals('foo')); 237 unittest.expect(o[1], unittest.equals('foo'));
236 } 238 }
237 239
238 core.int buildCounterCollection = 0; 240 core.int buildCounterCollection = 0;
239 buildCollection() { 241 buildCollection() {
240 var o = new api.Collection(); 242 var o = new api.Collection();
241 buildCounterCollection++; 243 buildCounterCollection++;
242 if (buildCounterCollection < 3) { 244 if (buildCounterCollection < 3) {
243 o.collectionId = "foo"; 245 o.collectionId = "foo";
244 o.kind = "foo"; 246 o.kind = "foo";
245 o.name = "foo"; 247 o.name = "foo";
246 o.productId = buildUnnamed1206(); 248 o.productId = buildUnnamed296();
247 o.visibility = "foo"; 249 o.visibility = "foo";
248 } 250 }
249 buildCounterCollection--; 251 buildCounterCollection--;
250 return o; 252 return o;
251 } 253 }
252 254
253 checkCollection(api.Collection o) { 255 checkCollection(api.Collection o) {
254 buildCounterCollection++; 256 buildCounterCollection++;
255 if (buildCounterCollection < 3) { 257 if (buildCounterCollection < 3) {
256 unittest.expect(o.collectionId, unittest.equals('foo')); 258 unittest.expect(o.collectionId, unittest.equals('foo'));
257 unittest.expect(o.kind, unittest.equals('foo')); 259 unittest.expect(o.kind, unittest.equals('foo'));
258 unittest.expect(o.name, unittest.equals('foo')); 260 unittest.expect(o.name, unittest.equals('foo'));
259 checkUnnamed1206(o.productId); 261 checkUnnamed296(o.productId);
260 unittest.expect(o.visibility, unittest.equals('foo')); 262 unittest.expect(o.visibility, unittest.equals('foo'));
261 } 263 }
262 buildCounterCollection--; 264 buildCounterCollection--;
263 } 265 }
264 266
265 buildUnnamed1207() { 267 buildUnnamed297() {
266 var o = new core.List<api.User>(); 268 var o = new core.List<api.User>();
267 o.add(buildUser()); 269 o.add(buildUser());
268 o.add(buildUser()); 270 o.add(buildUser());
269 return o; 271 return o;
270 } 272 }
271 273
272 checkUnnamed1207(core.List<api.User> o) { 274 checkUnnamed297(core.List<api.User> o) {
273 unittest.expect(o, unittest.hasLength(2)); 275 unittest.expect(o, unittest.hasLength(2));
274 checkUser(o[0]); 276 checkUser(o[0]);
275 checkUser(o[1]); 277 checkUser(o[1]);
276 } 278 }
277 279
278 core.int buildCounterCollectionViewersListResponse = 0; 280 core.int buildCounterCollectionViewersListResponse = 0;
279 buildCollectionViewersListResponse() { 281 buildCollectionViewersListResponse() {
280 var o = new api.CollectionViewersListResponse(); 282 var o = new api.CollectionViewersListResponse();
281 buildCounterCollectionViewersListResponse++; 283 buildCounterCollectionViewersListResponse++;
282 if (buildCounterCollectionViewersListResponse < 3) { 284 if (buildCounterCollectionViewersListResponse < 3) {
283 o.kind = "foo"; 285 o.kind = "foo";
284 o.user = buildUnnamed1207(); 286 o.user = buildUnnamed297();
285 } 287 }
286 buildCounterCollectionViewersListResponse--; 288 buildCounterCollectionViewersListResponse--;
287 return o; 289 return o;
288 } 290 }
289 291
290 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { 292 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) {
291 buildCounterCollectionViewersListResponse++; 293 buildCounterCollectionViewersListResponse++;
292 if (buildCounterCollectionViewersListResponse < 3) { 294 if (buildCounterCollectionViewersListResponse < 3) {
293 unittest.expect(o.kind, unittest.equals('foo')); 295 unittest.expect(o.kind, unittest.equals('foo'));
294 checkUnnamed1207(o.user); 296 checkUnnamed297(o.user);
295 } 297 }
296 buildCounterCollectionViewersListResponse--; 298 buildCounterCollectionViewersListResponse--;
297 } 299 }
298 300
299 buildUnnamed1208() { 301 buildUnnamed298() {
300 var o = new core.List<api.Collection>(); 302 var o = new core.List<api.Collection>();
301 o.add(buildCollection()); 303 o.add(buildCollection());
302 o.add(buildCollection()); 304 o.add(buildCollection());
303 return o; 305 return o;
304 } 306 }
305 307
306 checkUnnamed1208(core.List<api.Collection> o) { 308 checkUnnamed298(core.List<api.Collection> o) {
307 unittest.expect(o, unittest.hasLength(2)); 309 unittest.expect(o, unittest.hasLength(2));
308 checkCollection(o[0]); 310 checkCollection(o[0]);
309 checkCollection(o[1]); 311 checkCollection(o[1]);
310 } 312 }
311 313
312 core.int buildCounterCollectionsListResponse = 0; 314 core.int buildCounterCollectionsListResponse = 0;
313 buildCollectionsListResponse() { 315 buildCollectionsListResponse() {
314 var o = new api.CollectionsListResponse(); 316 var o = new api.CollectionsListResponse();
315 buildCounterCollectionsListResponse++; 317 buildCounterCollectionsListResponse++;
316 if (buildCounterCollectionsListResponse < 3) { 318 if (buildCounterCollectionsListResponse < 3) {
317 o.collection = buildUnnamed1208(); 319 o.collection = buildUnnamed298();
318 o.kind = "foo"; 320 o.kind = "foo";
319 } 321 }
320 buildCounterCollectionsListResponse--; 322 buildCounterCollectionsListResponse--;
321 return o; 323 return o;
322 } 324 }
323 325
324 checkCollectionsListResponse(api.CollectionsListResponse o) { 326 checkCollectionsListResponse(api.CollectionsListResponse o) {
325 buildCounterCollectionsListResponse++; 327 buildCounterCollectionsListResponse++;
326 if (buildCounterCollectionsListResponse < 3) { 328 if (buildCounterCollectionsListResponse < 3) {
327 checkUnnamed1208(o.collection); 329 checkUnnamed298(o.collection);
328 unittest.expect(o.kind, unittest.equals('foo')); 330 unittest.expect(o.kind, unittest.equals('foo'));
329 } 331 }
330 buildCounterCollectionsListResponse--; 332 buildCounterCollectionsListResponse--;
331 } 333 }
332 334
333 core.int buildCounterDevice = 0; 335 core.int buildCounterDevice = 0;
334 buildDevice() { 336 buildDevice() {
335 var o = new api.Device(); 337 var o = new api.Device();
336 buildCounterDevice++; 338 buildCounterDevice++;
337 if (buildCounterDevice < 3) { 339 if (buildCounterDevice < 3) {
(...skipping 29 matching lines...) Expand all
367 369
368 checkDeviceState(api.DeviceState o) { 370 checkDeviceState(api.DeviceState o) {
369 buildCounterDeviceState++; 371 buildCounterDeviceState++;
370 if (buildCounterDeviceState < 3) { 372 if (buildCounterDeviceState < 3) {
371 unittest.expect(o.accountState, unittest.equals('foo')); 373 unittest.expect(o.accountState, unittest.equals('foo'));
372 unittest.expect(o.kind, unittest.equals('foo')); 374 unittest.expect(o.kind, unittest.equals('foo'));
373 } 375 }
374 buildCounterDeviceState--; 376 buildCounterDeviceState--;
375 } 377 }
376 378
377 buildUnnamed1209() { 379 buildUnnamed299() {
378 var o = new core.List<api.Device>(); 380 var o = new core.List<api.Device>();
379 o.add(buildDevice()); 381 o.add(buildDevice());
380 o.add(buildDevice()); 382 o.add(buildDevice());
381 return o; 383 return o;
382 } 384 }
383 385
384 checkUnnamed1209(core.List<api.Device> o) { 386 checkUnnamed299(core.List<api.Device> o) {
385 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
386 checkDevice(o[0]); 388 checkDevice(o[0]);
387 checkDevice(o[1]); 389 checkDevice(o[1]);
388 } 390 }
389 391
390 core.int buildCounterDevicesListResponse = 0; 392 core.int buildCounterDevicesListResponse = 0;
391 buildDevicesListResponse() { 393 buildDevicesListResponse() {
392 var o = new api.DevicesListResponse(); 394 var o = new api.DevicesListResponse();
393 buildCounterDevicesListResponse++; 395 buildCounterDevicesListResponse++;
394 if (buildCounterDevicesListResponse < 3) { 396 if (buildCounterDevicesListResponse < 3) {
395 o.device = buildUnnamed1209(); 397 o.device = buildUnnamed299();
396 o.kind = "foo"; 398 o.kind = "foo";
397 } 399 }
398 buildCounterDevicesListResponse--; 400 buildCounterDevicesListResponse--;
399 return o; 401 return o;
400 } 402 }
401 403
402 checkDevicesListResponse(api.DevicesListResponse o) { 404 checkDevicesListResponse(api.DevicesListResponse o) {
403 buildCounterDevicesListResponse++; 405 buildCounterDevicesListResponse++;
404 if (buildCounterDevicesListResponse < 3) { 406 if (buildCounterDevicesListResponse < 3) {
405 checkUnnamed1209(o.device); 407 checkUnnamed299(o.device);
406 unittest.expect(o.kind, unittest.equals('foo')); 408 unittest.expect(o.kind, unittest.equals('foo'));
407 } 409 }
408 buildCounterDevicesListResponse--; 410 buildCounterDevicesListResponse--;
409 } 411 }
410 412
411 core.int buildCounterEnterprise = 0; 413 core.int buildCounterEnterprise = 0;
412 buildEnterprise() { 414 buildEnterprise() {
413 var o = new api.Enterprise(); 415 var o = new api.Enterprise();
414 buildCounterEnterprise++; 416 buildCounterEnterprise++;
415 if (buildCounterEnterprise < 3) { 417 if (buildCounterEnterprise < 3) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 449
448 checkEnterpriseAccount(api.EnterpriseAccount o) { 450 checkEnterpriseAccount(api.EnterpriseAccount o) {
449 buildCounterEnterpriseAccount++; 451 buildCounterEnterpriseAccount++;
450 if (buildCounterEnterpriseAccount < 3) { 452 if (buildCounterEnterpriseAccount < 3) {
451 unittest.expect(o.accountEmail, unittest.equals('foo')); 453 unittest.expect(o.accountEmail, unittest.equals('foo'));
452 unittest.expect(o.kind, unittest.equals('foo')); 454 unittest.expect(o.kind, unittest.equals('foo'));
453 } 455 }
454 buildCounterEnterpriseAccount--; 456 buildCounterEnterpriseAccount--;
455 } 457 }
456 458
457 buildUnnamed1210() { 459 buildUnnamed300() {
458 var o = new core.List<api.Enterprise>(); 460 var o = new core.List<api.Enterprise>();
459 o.add(buildEnterprise()); 461 o.add(buildEnterprise());
460 o.add(buildEnterprise()); 462 o.add(buildEnterprise());
461 return o; 463 return o;
462 } 464 }
463 465
464 checkUnnamed1210(core.List<api.Enterprise> o) { 466 checkUnnamed300(core.List<api.Enterprise> o) {
465 unittest.expect(o, unittest.hasLength(2)); 467 unittest.expect(o, unittest.hasLength(2));
466 checkEnterprise(o[0]); 468 checkEnterprise(o[0]);
467 checkEnterprise(o[1]); 469 checkEnterprise(o[1]);
468 } 470 }
469 471
470 core.int buildCounterEnterprisesListResponse = 0; 472 core.int buildCounterEnterprisesListResponse = 0;
471 buildEnterprisesListResponse() { 473 buildEnterprisesListResponse() {
472 var o = new api.EnterprisesListResponse(); 474 var o = new api.EnterprisesListResponse();
473 buildCounterEnterprisesListResponse++; 475 buildCounterEnterprisesListResponse++;
474 if (buildCounterEnterprisesListResponse < 3) { 476 if (buildCounterEnterprisesListResponse < 3) {
475 o.enterprise = buildUnnamed1210(); 477 o.enterprise = buildUnnamed300();
476 o.kind = "foo"; 478 o.kind = "foo";
477 } 479 }
478 buildCounterEnterprisesListResponse--; 480 buildCounterEnterprisesListResponse--;
479 return o; 481 return o;
480 } 482 }
481 483
482 checkEnterprisesListResponse(api.EnterprisesListResponse o) { 484 checkEnterprisesListResponse(api.EnterprisesListResponse o) {
483 buildCounterEnterprisesListResponse++; 485 buildCounterEnterprisesListResponse++;
484 if (buildCounterEnterprisesListResponse < 3) { 486 if (buildCounterEnterprisesListResponse < 3) {
485 checkUnnamed1210(o.enterprise); 487 checkUnnamed300(o.enterprise);
486 unittest.expect(o.kind, unittest.equals('foo')); 488 unittest.expect(o.kind, unittest.equals('foo'));
487 } 489 }
488 buildCounterEnterprisesListResponse--; 490 buildCounterEnterprisesListResponse--;
489 } 491 }
490 492
491 core.int buildCounterEntitlement = 0; 493 core.int buildCounterEntitlement = 0;
492 buildEntitlement() { 494 buildEntitlement() {
493 var o = new api.Entitlement(); 495 var o = new api.Entitlement();
494 buildCounterEntitlement++; 496 buildCounterEntitlement++;
495 if (buildCounterEntitlement < 3) { 497 if (buildCounterEntitlement < 3) {
496 o.kind = "foo"; 498 o.kind = "foo";
497 o.productId = "foo"; 499 o.productId = "foo";
498 o.reason = "foo"; 500 o.reason = "foo";
499 } 501 }
500 buildCounterEntitlement--; 502 buildCounterEntitlement--;
501 return o; 503 return o;
502 } 504 }
503 505
504 checkEntitlement(api.Entitlement o) { 506 checkEntitlement(api.Entitlement o) {
505 buildCounterEntitlement++; 507 buildCounterEntitlement++;
506 if (buildCounterEntitlement < 3) { 508 if (buildCounterEntitlement < 3) {
507 unittest.expect(o.kind, unittest.equals('foo')); 509 unittest.expect(o.kind, unittest.equals('foo'));
508 unittest.expect(o.productId, unittest.equals('foo')); 510 unittest.expect(o.productId, unittest.equals('foo'));
509 unittest.expect(o.reason, unittest.equals('foo')); 511 unittest.expect(o.reason, unittest.equals('foo'));
510 } 512 }
511 buildCounterEntitlement--; 513 buildCounterEntitlement--;
512 } 514 }
513 515
514 buildUnnamed1211() { 516 buildUnnamed301() {
515 var o = new core.List<api.Entitlement>(); 517 var o = new core.List<api.Entitlement>();
516 o.add(buildEntitlement()); 518 o.add(buildEntitlement());
517 o.add(buildEntitlement()); 519 o.add(buildEntitlement());
518 return o; 520 return o;
519 } 521 }
520 522
521 checkUnnamed1211(core.List<api.Entitlement> o) { 523 checkUnnamed301(core.List<api.Entitlement> o) {
522 unittest.expect(o, unittest.hasLength(2)); 524 unittest.expect(o, unittest.hasLength(2));
523 checkEntitlement(o[0]); 525 checkEntitlement(o[0]);
524 checkEntitlement(o[1]); 526 checkEntitlement(o[1]);
525 } 527 }
526 528
527 core.int buildCounterEntitlementsListResponse = 0; 529 core.int buildCounterEntitlementsListResponse = 0;
528 buildEntitlementsListResponse() { 530 buildEntitlementsListResponse() {
529 var o = new api.EntitlementsListResponse(); 531 var o = new api.EntitlementsListResponse();
530 buildCounterEntitlementsListResponse++; 532 buildCounterEntitlementsListResponse++;
531 if (buildCounterEntitlementsListResponse < 3) { 533 if (buildCounterEntitlementsListResponse < 3) {
532 o.entitlement = buildUnnamed1211(); 534 o.entitlement = buildUnnamed301();
533 o.kind = "foo"; 535 o.kind = "foo";
534 } 536 }
535 buildCounterEntitlementsListResponse--; 537 buildCounterEntitlementsListResponse--;
536 return o; 538 return o;
537 } 539 }
538 540
539 checkEntitlementsListResponse(api.EntitlementsListResponse o) { 541 checkEntitlementsListResponse(api.EntitlementsListResponse o) {
540 buildCounterEntitlementsListResponse++; 542 buildCounterEntitlementsListResponse++;
541 if (buildCounterEntitlementsListResponse < 3) { 543 if (buildCounterEntitlementsListResponse < 3) {
542 checkUnnamed1211(o.entitlement); 544 checkUnnamed301(o.entitlement);
543 unittest.expect(o.kind, unittest.equals('foo')); 545 unittest.expect(o.kind, unittest.equals('foo'));
544 } 546 }
545 buildCounterEntitlementsListResponse--; 547 buildCounterEntitlementsListResponse--;
546 } 548 }
547 549
548 core.int buildCounterGroupLicense = 0; 550 core.int buildCounterGroupLicense = 0;
549 buildGroupLicense() { 551 buildGroupLicense() {
550 var o = new api.GroupLicense(); 552 var o = new api.GroupLicense();
551 buildCounterGroupLicense++; 553 buildCounterGroupLicense++;
552 if (buildCounterGroupLicense < 3) { 554 if (buildCounterGroupLicense < 3) {
(...skipping 14 matching lines...) Expand all
567 unittest.expect(o.acquisitionKind, unittest.equals('foo')); 569 unittest.expect(o.acquisitionKind, unittest.equals('foo'));
568 unittest.expect(o.approval, unittest.equals('foo')); 570 unittest.expect(o.approval, unittest.equals('foo'));
569 unittest.expect(o.kind, unittest.equals('foo')); 571 unittest.expect(o.kind, unittest.equals('foo'));
570 unittest.expect(o.numProvisioned, unittest.equals(42)); 572 unittest.expect(o.numProvisioned, unittest.equals(42));
571 unittest.expect(o.numPurchased, unittest.equals(42)); 573 unittest.expect(o.numPurchased, unittest.equals(42));
572 unittest.expect(o.productId, unittest.equals('foo')); 574 unittest.expect(o.productId, unittest.equals('foo'));
573 } 575 }
574 buildCounterGroupLicense--; 576 buildCounterGroupLicense--;
575 } 577 }
576 578
577 buildUnnamed1212() { 579 buildUnnamed302() {
578 var o = new core.List<api.User>(); 580 var o = new core.List<api.User>();
579 o.add(buildUser()); 581 o.add(buildUser());
580 o.add(buildUser()); 582 o.add(buildUser());
581 return o; 583 return o;
582 } 584 }
583 585
584 checkUnnamed1212(core.List<api.User> o) { 586 checkUnnamed302(core.List<api.User> o) {
585 unittest.expect(o, unittest.hasLength(2)); 587 unittest.expect(o, unittest.hasLength(2));
586 checkUser(o[0]); 588 checkUser(o[0]);
587 checkUser(o[1]); 589 checkUser(o[1]);
588 } 590 }
589 591
590 core.int buildCounterGroupLicenseUsersListResponse = 0; 592 core.int buildCounterGroupLicenseUsersListResponse = 0;
591 buildGroupLicenseUsersListResponse() { 593 buildGroupLicenseUsersListResponse() {
592 var o = new api.GroupLicenseUsersListResponse(); 594 var o = new api.GroupLicenseUsersListResponse();
593 buildCounterGroupLicenseUsersListResponse++; 595 buildCounterGroupLicenseUsersListResponse++;
594 if (buildCounterGroupLicenseUsersListResponse < 3) { 596 if (buildCounterGroupLicenseUsersListResponse < 3) {
595 o.kind = "foo"; 597 o.kind = "foo";
596 o.user = buildUnnamed1212(); 598 o.user = buildUnnamed302();
597 } 599 }
598 buildCounterGroupLicenseUsersListResponse--; 600 buildCounterGroupLicenseUsersListResponse--;
599 return o; 601 return o;
600 } 602 }
601 603
602 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { 604 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) {
603 buildCounterGroupLicenseUsersListResponse++; 605 buildCounterGroupLicenseUsersListResponse++;
604 if (buildCounterGroupLicenseUsersListResponse < 3) { 606 if (buildCounterGroupLicenseUsersListResponse < 3) {
605 unittest.expect(o.kind, unittest.equals('foo')); 607 unittest.expect(o.kind, unittest.equals('foo'));
606 checkUnnamed1212(o.user); 608 checkUnnamed302(o.user);
607 } 609 }
608 buildCounterGroupLicenseUsersListResponse--; 610 buildCounterGroupLicenseUsersListResponse--;
609 } 611 }
610 612
611 buildUnnamed1213() { 613 buildUnnamed303() {
612 var o = new core.List<api.GroupLicense>(); 614 var o = new core.List<api.GroupLicense>();
613 o.add(buildGroupLicense()); 615 o.add(buildGroupLicense());
614 o.add(buildGroupLicense()); 616 o.add(buildGroupLicense());
615 return o; 617 return o;
616 } 618 }
617 619
618 checkUnnamed1213(core.List<api.GroupLicense> o) { 620 checkUnnamed303(core.List<api.GroupLicense> o) {
619 unittest.expect(o, unittest.hasLength(2)); 621 unittest.expect(o, unittest.hasLength(2));
620 checkGroupLicense(o[0]); 622 checkGroupLicense(o[0]);
621 checkGroupLicense(o[1]); 623 checkGroupLicense(o[1]);
622 } 624 }
623 625
624 core.int buildCounterGroupLicensesListResponse = 0; 626 core.int buildCounterGroupLicensesListResponse = 0;
625 buildGroupLicensesListResponse() { 627 buildGroupLicensesListResponse() {
626 var o = new api.GroupLicensesListResponse(); 628 var o = new api.GroupLicensesListResponse();
627 buildCounterGroupLicensesListResponse++; 629 buildCounterGroupLicensesListResponse++;
628 if (buildCounterGroupLicensesListResponse < 3) { 630 if (buildCounterGroupLicensesListResponse < 3) {
629 o.groupLicense = buildUnnamed1213(); 631 o.groupLicense = buildUnnamed303();
630 o.kind = "foo"; 632 o.kind = "foo";
631 } 633 }
632 buildCounterGroupLicensesListResponse--; 634 buildCounterGroupLicensesListResponse--;
633 return o; 635 return o;
634 } 636 }
635 637
636 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { 638 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) {
637 buildCounterGroupLicensesListResponse++; 639 buildCounterGroupLicensesListResponse++;
638 if (buildCounterGroupLicensesListResponse < 3) { 640 if (buildCounterGroupLicensesListResponse < 3) {
639 checkUnnamed1213(o.groupLicense); 641 checkUnnamed303(o.groupLicense);
640 unittest.expect(o.kind, unittest.equals('foo')); 642 unittest.expect(o.kind, unittest.equals('foo'));
641 } 643 }
642 buildCounterGroupLicensesListResponse--; 644 buildCounterGroupLicensesListResponse--;
643 } 645 }
644 646
645 core.int buildCounterInstall = 0; 647 core.int buildCounterInstall = 0;
646 buildInstall() { 648 buildInstall() {
647 var o = new api.Install(); 649 var o = new api.Install();
648 buildCounterInstall++; 650 buildCounterInstall++;
649 if (buildCounterInstall < 3) { 651 if (buildCounterInstall < 3) {
(...skipping 10 matching lines...) Expand all
660 buildCounterInstall++; 662 buildCounterInstall++;
661 if (buildCounterInstall < 3) { 663 if (buildCounterInstall < 3) {
662 unittest.expect(o.installState, unittest.equals('foo')); 664 unittest.expect(o.installState, unittest.equals('foo'));
663 unittest.expect(o.kind, unittest.equals('foo')); 665 unittest.expect(o.kind, unittest.equals('foo'));
664 unittest.expect(o.productId, unittest.equals('foo')); 666 unittest.expect(o.productId, unittest.equals('foo'));
665 unittest.expect(o.versionCode, unittest.equals(42)); 667 unittest.expect(o.versionCode, unittest.equals(42));
666 } 668 }
667 buildCounterInstall--; 669 buildCounterInstall--;
668 } 670 }
669 671
670 buildUnnamed1214() { 672 buildUnnamed304() {
671 var o = new core.List<api.Install>(); 673 var o = new core.List<api.Install>();
672 o.add(buildInstall()); 674 o.add(buildInstall());
673 o.add(buildInstall()); 675 o.add(buildInstall());
674 return o; 676 return o;
675 } 677 }
676 678
677 checkUnnamed1214(core.List<api.Install> o) { 679 checkUnnamed304(core.List<api.Install> o) {
678 unittest.expect(o, unittest.hasLength(2)); 680 unittest.expect(o, unittest.hasLength(2));
679 checkInstall(o[0]); 681 checkInstall(o[0]);
680 checkInstall(o[1]); 682 checkInstall(o[1]);
681 } 683 }
682 684
683 core.int buildCounterInstallsListResponse = 0; 685 core.int buildCounterInstallsListResponse = 0;
684 buildInstallsListResponse() { 686 buildInstallsListResponse() {
685 var o = new api.InstallsListResponse(); 687 var o = new api.InstallsListResponse();
686 buildCounterInstallsListResponse++; 688 buildCounterInstallsListResponse++;
687 if (buildCounterInstallsListResponse < 3) { 689 if (buildCounterInstallsListResponse < 3) {
688 o.install = buildUnnamed1214(); 690 o.install = buildUnnamed304();
689 o.kind = "foo"; 691 o.kind = "foo";
690 } 692 }
691 buildCounterInstallsListResponse--; 693 buildCounterInstallsListResponse--;
692 return o; 694 return o;
693 } 695 }
694 696
695 checkInstallsListResponse(api.InstallsListResponse o) { 697 checkInstallsListResponse(api.InstallsListResponse o) {
696 buildCounterInstallsListResponse++; 698 buildCounterInstallsListResponse++;
697 if (buildCounterInstallsListResponse < 3) { 699 if (buildCounterInstallsListResponse < 3) {
698 checkUnnamed1214(o.install); 700 checkUnnamed304(o.install);
699 unittest.expect(o.kind, unittest.equals('foo')); 701 unittest.expect(o.kind, unittest.equals('foo'));
700 } 702 }
701 buildCounterInstallsListResponse--; 703 buildCounterInstallsListResponse--;
702 } 704 }
703 705
704 core.int buildCounterPermission = 0; 706 core.int buildCounterPermission = 0;
705 buildPermission() { 707 buildPermission() {
706 var o = new api.Permission(); 708 var o = new api.Permission();
707 buildCounterPermission++; 709 buildCounterPermission++;
708 if (buildCounterPermission < 3) { 710 if (buildCounterPermission < 3) {
(...skipping 10 matching lines...) Expand all
719 buildCounterPermission++; 721 buildCounterPermission++;
720 if (buildCounterPermission < 3) { 722 if (buildCounterPermission < 3) {
721 unittest.expect(o.description, unittest.equals('foo')); 723 unittest.expect(o.description, unittest.equals('foo'));
722 unittest.expect(o.kind, unittest.equals('foo')); 724 unittest.expect(o.kind, unittest.equals('foo'));
723 unittest.expect(o.name, unittest.equals('foo')); 725 unittest.expect(o.name, unittest.equals('foo'));
724 unittest.expect(o.permissionId, unittest.equals('foo')); 726 unittest.expect(o.permissionId, unittest.equals('foo'));
725 } 727 }
726 buildCounterPermission--; 728 buildCounterPermission--;
727 } 729 }
728 730
729 buildUnnamed1215() { 731 buildUnnamed305() {
730 var o = new core.List<api.AppVersion>(); 732 var o = new core.List<api.AppVersion>();
731 o.add(buildAppVersion()); 733 o.add(buildAppVersion());
732 o.add(buildAppVersion()); 734 o.add(buildAppVersion());
733 return o; 735 return o;
734 } 736 }
735 737
736 checkUnnamed1215(core.List<api.AppVersion> o) { 738 checkUnnamed305(core.List<api.AppVersion> o) {
737 unittest.expect(o, unittest.hasLength(2)); 739 unittest.expect(o, unittest.hasLength(2));
738 checkAppVersion(o[0]); 740 checkAppVersion(o[0]);
739 checkAppVersion(o[1]); 741 checkAppVersion(o[1]);
740 } 742 }
741 743
742 core.int buildCounterProduct = 0; 744 core.int buildCounterProduct = 0;
743 buildProduct() { 745 buildProduct() {
744 var o = new api.Product(); 746 var o = new api.Product();
745 buildCounterProduct++; 747 buildCounterProduct++;
746 if (buildCounterProduct < 3) { 748 if (buildCounterProduct < 3) {
747 o.appVersion = buildUnnamed1215(); 749 o.appVersion = buildUnnamed305();
748 o.authorName = "foo"; 750 o.authorName = "foo";
749 o.detailsUrl = "foo"; 751 o.detailsUrl = "foo";
750 o.distributionChannel = "foo"; 752 o.distributionChannel = "foo";
751 o.iconUrl = "foo"; 753 o.iconUrl = "foo";
752 o.kind = "foo"; 754 o.kind = "foo";
753 o.productId = "foo"; 755 o.productId = "foo";
754 o.requiresContainerApp = true; 756 o.requiresContainerApp = true;
755 o.title = "foo"; 757 o.title = "foo";
756 o.workDetailsUrl = "foo"; 758 o.workDetailsUrl = "foo";
757 } 759 }
758 buildCounterProduct--; 760 buildCounterProduct--;
759 return o; 761 return o;
760 } 762 }
761 763
762 checkProduct(api.Product o) { 764 checkProduct(api.Product o) {
763 buildCounterProduct++; 765 buildCounterProduct++;
764 if (buildCounterProduct < 3) { 766 if (buildCounterProduct < 3) {
765 checkUnnamed1215(o.appVersion); 767 checkUnnamed305(o.appVersion);
766 unittest.expect(o.authorName, unittest.equals('foo')); 768 unittest.expect(o.authorName, unittest.equals('foo'));
767 unittest.expect(o.detailsUrl, unittest.equals('foo')); 769 unittest.expect(o.detailsUrl, unittest.equals('foo'));
768 unittest.expect(o.distributionChannel, unittest.equals('foo')); 770 unittest.expect(o.distributionChannel, unittest.equals('foo'));
769 unittest.expect(o.iconUrl, unittest.equals('foo')); 771 unittest.expect(o.iconUrl, unittest.equals('foo'));
770 unittest.expect(o.kind, unittest.equals('foo')); 772 unittest.expect(o.kind, unittest.equals('foo'));
771 unittest.expect(o.productId, unittest.equals('foo')); 773 unittest.expect(o.productId, unittest.equals('foo'));
772 unittest.expect(o.requiresContainerApp, unittest.isTrue); 774 unittest.expect(o.requiresContainerApp, unittest.isTrue);
773 unittest.expect(o.title, unittest.equals('foo')); 775 unittest.expect(o.title, unittest.equals('foo'));
774 unittest.expect(o.workDetailsUrl, unittest.equals('foo')); 776 unittest.expect(o.workDetailsUrl, unittest.equals('foo'));
775 } 777 }
(...skipping 14 matching lines...) Expand all
790 792
791 checkProductPermission(api.ProductPermission o) { 793 checkProductPermission(api.ProductPermission o) {
792 buildCounterProductPermission++; 794 buildCounterProductPermission++;
793 if (buildCounterProductPermission < 3) { 795 if (buildCounterProductPermission < 3) {
794 unittest.expect(o.permissionId, unittest.equals('foo')); 796 unittest.expect(o.permissionId, unittest.equals('foo'));
795 unittest.expect(o.state, unittest.equals('foo')); 797 unittest.expect(o.state, unittest.equals('foo'));
796 } 798 }
797 buildCounterProductPermission--; 799 buildCounterProductPermission--;
798 } 800 }
799 801
800 buildUnnamed1216() { 802 buildUnnamed306() {
801 var o = new core.List<api.ProductPermission>(); 803 var o = new core.List<api.ProductPermission>();
802 o.add(buildProductPermission()); 804 o.add(buildProductPermission());
803 o.add(buildProductPermission()); 805 o.add(buildProductPermission());
804 return o; 806 return o;
805 } 807 }
806 808
807 checkUnnamed1216(core.List<api.ProductPermission> o) { 809 checkUnnamed306(core.List<api.ProductPermission> o) {
808 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
809 checkProductPermission(o[0]); 811 checkProductPermission(o[0]);
810 checkProductPermission(o[1]); 812 checkProductPermission(o[1]);
811 } 813 }
812 814
813 core.int buildCounterProductPermissions = 0; 815 core.int buildCounterProductPermissions = 0;
814 buildProductPermissions() { 816 buildProductPermissions() {
815 var o = new api.ProductPermissions(); 817 var o = new api.ProductPermissions();
816 buildCounterProductPermissions++; 818 buildCounterProductPermissions++;
817 if (buildCounterProductPermissions < 3) { 819 if (buildCounterProductPermissions < 3) {
818 o.kind = "foo"; 820 o.kind = "foo";
819 o.permission = buildUnnamed1216(); 821 o.permission = buildUnnamed306();
820 o.productId = "foo"; 822 o.productId = "foo";
821 } 823 }
822 buildCounterProductPermissions--; 824 buildCounterProductPermissions--;
823 return o; 825 return o;
824 } 826 }
825 827
826 checkProductPermissions(api.ProductPermissions o) { 828 checkProductPermissions(api.ProductPermissions o) {
827 buildCounterProductPermissions++; 829 buildCounterProductPermissions++;
828 if (buildCounterProductPermissions < 3) { 830 if (buildCounterProductPermissions < 3) {
829 unittest.expect(o.kind, unittest.equals('foo')); 831 unittest.expect(o.kind, unittest.equals('foo'));
830 checkUnnamed1216(o.permission); 832 checkUnnamed306(o.permission);
831 unittest.expect(o.productId, unittest.equals('foo')); 833 unittest.expect(o.productId, unittest.equals('foo'));
832 } 834 }
833 buildCounterProductPermissions--; 835 buildCounterProductPermissions--;
834 } 836 }
835 837
838 buildUnnamed307() {
839 var o = new core.List<core.String>();
840 o.add("foo");
841 o.add("foo");
842 return o;
843 }
844
845 checkUnnamed307(core.List<core.String> o) {
846 unittest.expect(o, unittest.hasLength(2));
847 unittest.expect(o[0], unittest.equals('foo'));
848 unittest.expect(o[1], unittest.equals('foo'));
849 }
850
851 core.int buildCounterProductSet = 0;
852 buildProductSet() {
853 var o = new api.ProductSet();
854 buildCounterProductSet++;
855 if (buildCounterProductSet < 3) {
856 o.kind = "foo";
857 o.productId = buildUnnamed307();
858 }
859 buildCounterProductSet--;
860 return o;
861 }
862
863 checkProductSet(api.ProductSet o) {
864 buildCounterProductSet++;
865 if (buildCounterProductSet < 3) {
866 unittest.expect(o.kind, unittest.equals('foo'));
867 checkUnnamed307(o.productId);
868 }
869 buildCounterProductSet--;
870 }
871
836 core.int buildCounterProductsApproveRequest = 0; 872 core.int buildCounterProductsApproveRequest = 0;
837 buildProductsApproveRequest() { 873 buildProductsApproveRequest() {
838 var o = new api.ProductsApproveRequest(); 874 var o = new api.ProductsApproveRequest();
839 buildCounterProductsApproveRequest++; 875 buildCounterProductsApproveRequest++;
840 if (buildCounterProductsApproveRequest < 3) { 876 if (buildCounterProductsApproveRequest < 3) {
841 o.approvalUrlInfo = buildApprovalUrlInfo(); 877 o.approvalUrlInfo = buildApprovalUrlInfo();
842 } 878 }
843 buildCounterProductsApproveRequest--; 879 buildCounterProductsApproveRequest--;
844 return o; 880 return o;
845 } 881 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 checkUserToken(api.UserToken o) { 946 checkUserToken(api.UserToken o) {
911 buildCounterUserToken++; 947 buildCounterUserToken++;
912 if (buildCounterUserToken < 3) { 948 if (buildCounterUserToken < 3) {
913 unittest.expect(o.kind, unittest.equals('foo')); 949 unittest.expect(o.kind, unittest.equals('foo'));
914 unittest.expect(o.token, unittest.equals('foo')); 950 unittest.expect(o.token, unittest.equals('foo'));
915 unittest.expect(o.userId, unittest.equals('foo')); 951 unittest.expect(o.userId, unittest.equals('foo'));
916 } 952 }
917 buildCounterUserToken--; 953 buildCounterUserToken--;
918 } 954 }
919 955
920 buildUnnamed1217() { 956 buildUnnamed308() {
921 var o = new core.List<api.User>(); 957 var o = new core.List<api.User>();
922 o.add(buildUser()); 958 o.add(buildUser());
923 o.add(buildUser()); 959 o.add(buildUser());
924 return o; 960 return o;
925 } 961 }
926 962
927 checkUnnamed1217(core.List<api.User> o) { 963 checkUnnamed308(core.List<api.User> o) {
928 unittest.expect(o, unittest.hasLength(2)); 964 unittest.expect(o, unittest.hasLength(2));
929 checkUser(o[0]); 965 checkUser(o[0]);
930 checkUser(o[1]); 966 checkUser(o[1]);
931 } 967 }
932 968
933 core.int buildCounterUsersListResponse = 0; 969 core.int buildCounterUsersListResponse = 0;
934 buildUsersListResponse() { 970 buildUsersListResponse() {
935 var o = new api.UsersListResponse(); 971 var o = new api.UsersListResponse();
936 buildCounterUsersListResponse++; 972 buildCounterUsersListResponse++;
937 if (buildCounterUsersListResponse < 3) { 973 if (buildCounterUsersListResponse < 3) {
938 o.kind = "foo"; 974 o.kind = "foo";
939 o.user = buildUnnamed1217(); 975 o.user = buildUnnamed308();
940 } 976 }
941 buildCounterUsersListResponse--; 977 buildCounterUsersListResponse--;
942 return o; 978 return o;
943 } 979 }
944 980
945 checkUsersListResponse(api.UsersListResponse o) { 981 checkUsersListResponse(api.UsersListResponse o) {
946 buildCounterUsersListResponse++; 982 buildCounterUsersListResponse++;
947 if (buildCounterUsersListResponse < 3) { 983 if (buildCounterUsersListResponse < 3) {
948 unittest.expect(o.kind, unittest.equals('foo')); 984 unittest.expect(o.kind, unittest.equals('foo'));
949 checkUnnamed1217(o.user); 985 checkUnnamed308(o.user);
950 } 986 }
951 buildCounterUsersListResponse--; 987 buildCounterUsersListResponse--;
952 } 988 }
953 989
954 990
955 main() { 991 main() {
956 unittest.group("obj-schema-AppRestrictionsSchema", () { 992 unittest.group("obj-schema-AppRestrictionsSchema", () {
957 unittest.test("to-json--from-json", () { 993 unittest.test("to-json--from-json", () {
958 var o = buildAppRestrictionsSchema(); 994 var o = buildAppRestrictionsSchema();
959 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); 995 var od = new api.AppRestrictionsSchema.fromJson(o.toJson());
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 1207
1172 unittest.group("obj-schema-ProductPermissions", () { 1208 unittest.group("obj-schema-ProductPermissions", () {
1173 unittest.test("to-json--from-json", () { 1209 unittest.test("to-json--from-json", () {
1174 var o = buildProductPermissions(); 1210 var o = buildProductPermissions();
1175 var od = new api.ProductPermissions.fromJson(o.toJson()); 1211 var od = new api.ProductPermissions.fromJson(o.toJson());
1176 checkProductPermissions(od); 1212 checkProductPermissions(od);
1177 }); 1213 });
1178 }); 1214 });
1179 1215
1180 1216
1217 unittest.group("obj-schema-ProductSet", () {
1218 unittest.test("to-json--from-json", () {
1219 var o = buildProductSet();
1220 var od = new api.ProductSet.fromJson(o.toJson());
1221 checkProductSet(od);
1222 });
1223 });
1224
1225
1181 unittest.group("obj-schema-ProductsApproveRequest", () { 1226 unittest.group("obj-schema-ProductsApproveRequest", () {
1182 unittest.test("to-json--from-json", () { 1227 unittest.test("to-json--from-json", () {
1183 var o = buildProductsApproveRequest(); 1228 var o = buildProductsApproveRequest();
1184 var od = new api.ProductsApproveRequest.fromJson(o.toJson()); 1229 var od = new api.ProductsApproveRequest.fromJson(o.toJson());
1185 checkProductsApproveRequest(od); 1230 checkProductsApproveRequest(od);
1186 }); 1231 });
1187 }); 1232 });
1188 1233
1189 1234
1190 unittest.group("obj-schema-ProductsGenerateApprovalUrlResponse", () { 1235 unittest.group("obj-schema-ProductsGenerateApprovalUrlResponse", () {
(...skipping 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after
3961 "content-type" : "application/json; charset=utf-8", 4006 "content-type" : "application/json; charset=utf-8",
3962 }; 4007 };
3963 var resp = convert.JSON.encode(buildUser()); 4008 var resp = convert.JSON.encode(buildUser());
3964 return new async.Future.value(stringResponse(200, h, resp)); 4009 return new async.Future.value(stringResponse(200, h, resp));
3965 }), true); 4010 }), true);
3966 res.get(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.User response) { 4011 res.get(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.User response) {
3967 checkUser(response); 4012 checkUser(response);
3968 }))); 4013 })));
3969 }); 4014 });
3970 4015
4016 unittest.test("method--getAvailableProductSet", () {
4017
4018 var mock = new HttpServerMock();
4019 api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users;
4020 var arg_enterpriseId = "foo";
4021 var arg_userId = "foo";
4022 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4023 var path = (req.url).path;
4024 var pathOffset = 0;
4025 var index;
4026 var subPart;
4027 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4028 pathOffset += 1;
4029 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("androidenterprise/v1/"));
4030 pathOffset += 21;
4031 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("enterprises/"));
4032 pathOffset += 12;
4033 index = path.indexOf("/users/", pathOffset);
4034 unittest.expect(index >= 0, unittest.isTrue);
4035 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4036 pathOffset = index;
4037 unittest.expect(subPart, unittest.equals("$arg_enterpriseId"));
4038 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/users/"));
4039 pathOffset += 7;
4040 index = path.indexOf("/availableProductSet", pathOffset);
4041 unittest.expect(index >= 0, unittest.isTrue);
4042 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4043 pathOffset = index;
4044 unittest.expect(subPart, unittest.equals("$arg_userId"));
4045 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("/availableProductSet"));
4046 pathOffset += 20;
4047
4048 var query = (req.url).query;
4049 var queryOffset = 0;
4050 var queryMap = {};
4051 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4052 parseBool(n) {
4053 if (n == "true") return true;
4054 if (n == "false") return false;
4055 if (n == null) return null;
4056 throw new core.ArgumentError("Invalid boolean: $n");
4057 }
4058 if (query.length > 0) {
4059 for (var part in query.split("&")) {
4060 var keyvalue = part.split("=");
4061 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4062 }
4063 }
4064
4065
4066 var h = {
4067 "content-type" : "application/json; charset=utf-8",
4068 };
4069 var resp = convert.JSON.encode(buildProductSet());
4070 return new async.Future.value(stringResponse(200, h, resp));
4071 }), true);
4072 res.getAvailableProductSet(arg_enterpriseId, arg_userId).then(unittest.exp ectAsync(((api.ProductSet response) {
4073 checkProductSet(response);
4074 })));
4075 });
4076
3971 unittest.test("method--list", () { 4077 unittest.test("method--list", () {
3972 4078
3973 var mock = new HttpServerMock(); 4079 var mock = new HttpServerMock();
3974 api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; 4080 api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users;
3975 var arg_enterpriseId = "foo"; 4081 var arg_enterpriseId = "foo";
3976 var arg_email = "foo"; 4082 var arg_email = "foo";
3977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4083 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3978 var path = (req.url).path; 4084 var path = (req.url).path;
3979 var pathOffset = 0; 4085 var pathOffset = 0;
3980 var index; 4086 var index;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
4075 4181
4076 var h = { 4182 var h = {
4077 "content-type" : "application/json; charset=utf-8", 4183 "content-type" : "application/json; charset=utf-8",
4078 }; 4184 };
4079 var resp = ""; 4185 var resp = "";
4080 return new async.Future.value(stringResponse(200, h, resp)); 4186 return new async.Future.value(stringResponse(200, h, resp));
4081 }), true); 4187 }), true);
4082 res.revokeToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync((_ ) {})); 4188 res.revokeToken(arg_enterpriseId, arg_userId).then(unittest.expectAsync((_ ) {}));
4083 }); 4189 });
4084 4190
4191 unittest.test("method--setAvailableProductSet", () {
4192
4193 var mock = new HttpServerMock();
4194 api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users;
4195 var arg_request = buildProductSet();
4196 var arg_enterpriseId = "foo";
4197 var arg_userId = "foo";
4198 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4199 var obj = new api.ProductSet.fromJson(json);
4200 checkProductSet(obj);
4201
4202 var path = (req.url).path;
4203 var pathOffset = 0;
4204 var index;
4205 var subPart;
4206 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4207 pathOffset += 1;
4208 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("androidenterprise/v1/"));
4209 pathOffset += 21;
4210 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("enterprises/"));
4211 pathOffset += 12;
4212 index = path.indexOf("/users/", pathOffset);
4213 unittest.expect(index >= 0, unittest.isTrue);
4214 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4215 pathOffset = index;
4216 unittest.expect(subPart, unittest.equals("$arg_enterpriseId"));
4217 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/users/"));
4218 pathOffset += 7;
4219 index = path.indexOf("/availableProductSet", pathOffset);
4220 unittest.expect(index >= 0, unittest.isTrue);
4221 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4222 pathOffset = index;
4223 unittest.expect(subPart, unittest.equals("$arg_userId"));
4224 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("/availableProductSet"));
4225 pathOffset += 20;
4226
4227 var query = (req.url).query;
4228 var queryOffset = 0;
4229 var queryMap = {};
4230 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4231 parseBool(n) {
4232 if (n == "true") return true;
4233 if (n == "false") return false;
4234 if (n == null) return null;
4235 throw new core.ArgumentError("Invalid boolean: $n");
4236 }
4237 if (query.length > 0) {
4238 for (var part in query.split("&")) {
4239 var keyvalue = part.split("=");
4240 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4241 }
4242 }
4243
4244
4245 var h = {
4246 "content-type" : "application/json; charset=utf-8",
4247 };
4248 var resp = convert.JSON.encode(buildProductSet());
4249 return new async.Future.value(stringResponse(200, h, resp));
4250 }), true);
4251 res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then (unittest.expectAsync(((api.ProductSet response) {
4252 checkProductSet(response);
4253 })));
4254 });
4255
4085 }); 4256 });
4086 4257
4087 4258
4088 } 4259 }
4089 4260
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698