| OLD | NEW |
| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkAdministrator(api.Administrator o) { | 65 checkAdministrator(api.Administrator o) { |
| 66 buildCounterAdministrator++; | 66 buildCounterAdministrator++; |
| 67 if (buildCounterAdministrator < 3) { | 67 if (buildCounterAdministrator < 3) { |
| 68 unittest.expect(o.email, unittest.equals('foo')); | 68 unittest.expect(o.email, unittest.equals('foo')); |
| 69 } | 69 } |
| 70 buildCounterAdministrator--; | 70 buildCounterAdministrator--; |
| 71 } | 71 } |
| 72 | 72 |
| 73 buildUnnamed2226() { | 73 buildUnnamed396() { |
| 74 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); | 74 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); |
| 75 o.add(buildAppRestrictionsSchemaRestriction()); | 75 o.add(buildAppRestrictionsSchemaRestriction()); |
| 76 o.add(buildAppRestrictionsSchemaRestriction()); | 76 o.add(buildAppRestrictionsSchemaRestriction()); |
| 77 return o; | 77 return o; |
| 78 } | 78 } |
| 79 | 79 |
| 80 checkUnnamed2226(core.List<api.AppRestrictionsSchemaRestriction> o) { | 80 checkUnnamed396(core.List<api.AppRestrictionsSchemaRestriction> o) { |
| 81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
| 82 checkAppRestrictionsSchemaRestriction(o[0]); | 82 checkAppRestrictionsSchemaRestriction(o[0]); |
| 83 checkAppRestrictionsSchemaRestriction(o[1]); | 83 checkAppRestrictionsSchemaRestriction(o[1]); |
| 84 } | 84 } |
| 85 | 85 |
| 86 core.int buildCounterAppRestrictionsSchema = 0; | 86 core.int buildCounterAppRestrictionsSchema = 0; |
| 87 buildAppRestrictionsSchema() { | 87 buildAppRestrictionsSchema() { |
| 88 var o = new api.AppRestrictionsSchema(); | 88 var o = new api.AppRestrictionsSchema(); |
| 89 buildCounterAppRestrictionsSchema++; | 89 buildCounterAppRestrictionsSchema++; |
| 90 if (buildCounterAppRestrictionsSchema < 3) { | 90 if (buildCounterAppRestrictionsSchema < 3) { |
| 91 o.kind = "foo"; | 91 o.kind = "foo"; |
| 92 o.restrictions = buildUnnamed2226(); | 92 o.restrictions = buildUnnamed396(); |
| 93 } | 93 } |
| 94 buildCounterAppRestrictionsSchema--; | 94 buildCounterAppRestrictionsSchema--; |
| 95 return o; | 95 return o; |
| 96 } | 96 } |
| 97 | 97 |
| 98 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { | 98 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { |
| 99 buildCounterAppRestrictionsSchema++; | 99 buildCounterAppRestrictionsSchema++; |
| 100 if (buildCounterAppRestrictionsSchema < 3) { | 100 if (buildCounterAppRestrictionsSchema < 3) { |
| 101 unittest.expect(o.kind, unittest.equals('foo')); | 101 unittest.expect(o.kind, unittest.equals('foo')); |
| 102 checkUnnamed2226(o.restrictions); | 102 checkUnnamed396(o.restrictions); |
| 103 } | 103 } |
| 104 buildCounterAppRestrictionsSchema--; | 104 buildCounterAppRestrictionsSchema--; |
| 105 } | 105 } |
| 106 | 106 |
| 107 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0; | 107 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0; |
| 108 buildAppRestrictionsSchemaChangeEvent() { | 108 buildAppRestrictionsSchemaChangeEvent() { |
| 109 var o = new api.AppRestrictionsSchemaChangeEvent(); | 109 var o = new api.AppRestrictionsSchemaChangeEvent(); |
| 110 buildCounterAppRestrictionsSchemaChangeEvent++; | 110 buildCounterAppRestrictionsSchemaChangeEvent++; |
| 111 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { | 111 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { |
| 112 o.productId = "foo"; | 112 o.productId = "foo"; |
| 113 } | 113 } |
| 114 buildCounterAppRestrictionsSchemaChangeEvent--; | 114 buildCounterAppRestrictionsSchemaChangeEvent--; |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) { | 118 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) { |
| 119 buildCounterAppRestrictionsSchemaChangeEvent++; | 119 buildCounterAppRestrictionsSchemaChangeEvent++; |
| 120 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { | 120 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { |
| 121 unittest.expect(o.productId, unittest.equals('foo')); | 121 unittest.expect(o.productId, unittest.equals('foo')); |
| 122 } | 122 } |
| 123 buildCounterAppRestrictionsSchemaChangeEvent--; | 123 buildCounterAppRestrictionsSchemaChangeEvent--; |
| 124 } | 124 } |
| 125 | 125 |
| 126 buildUnnamed2227() { | 126 buildUnnamed397() { |
| 127 var o = new core.List<core.String>(); | 127 var o = new core.List<core.String>(); |
| 128 o.add("foo"); | 128 o.add("foo"); |
| 129 o.add("foo"); | 129 o.add("foo"); |
| 130 return o; | 130 return o; |
| 131 } | 131 } |
| 132 | 132 |
| 133 checkUnnamed2227(core.List<core.String> o) { | 133 checkUnnamed397(core.List<core.String> o) { |
| 134 unittest.expect(o, unittest.hasLength(2)); | 134 unittest.expect(o, unittest.hasLength(2)); |
| 135 unittest.expect(o[0], unittest.equals('foo')); | 135 unittest.expect(o[0], unittest.equals('foo')); |
| 136 unittest.expect(o[1], unittest.equals('foo')); | 136 unittest.expect(o[1], unittest.equals('foo')); |
| 137 } | 137 } |
| 138 | 138 |
| 139 buildUnnamed2228() { | 139 buildUnnamed398() { |
| 140 var o = new core.List<core.String>(); | 140 var o = new core.List<core.String>(); |
| 141 o.add("foo"); | 141 o.add("foo"); |
| 142 o.add("foo"); | 142 o.add("foo"); |
| 143 return o; | 143 return o; |
| 144 } | 144 } |
| 145 | 145 |
| 146 checkUnnamed2228(core.List<core.String> o) { | 146 checkUnnamed398(core.List<core.String> o) { |
| 147 unittest.expect(o, unittest.hasLength(2)); | 147 unittest.expect(o, unittest.hasLength(2)); |
| 148 unittest.expect(o[0], unittest.equals('foo')); | 148 unittest.expect(o[0], unittest.equals('foo')); |
| 149 unittest.expect(o[1], unittest.equals('foo')); | 149 unittest.expect(o[1], unittest.equals('foo')); |
| 150 } | 150 } |
| 151 | 151 |
| 152 buildUnnamed399() { |
| 153 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); |
| 154 o.add(buildAppRestrictionsSchemaRestriction()); |
| 155 o.add(buildAppRestrictionsSchemaRestriction()); |
| 156 return o; |
| 157 } |
| 158 |
| 159 checkUnnamed399(core.List<api.AppRestrictionsSchemaRestriction> o) { |
| 160 unittest.expect(o, unittest.hasLength(2)); |
| 161 checkAppRestrictionsSchemaRestriction(o[0]); |
| 162 checkAppRestrictionsSchemaRestriction(o[1]); |
| 163 } |
| 164 |
| 152 core.int buildCounterAppRestrictionsSchemaRestriction = 0; | 165 core.int buildCounterAppRestrictionsSchemaRestriction = 0; |
| 153 buildAppRestrictionsSchemaRestriction() { | 166 buildAppRestrictionsSchemaRestriction() { |
| 154 var o = new api.AppRestrictionsSchemaRestriction(); | 167 var o = new api.AppRestrictionsSchemaRestriction(); |
| 155 buildCounterAppRestrictionsSchemaRestriction++; | 168 buildCounterAppRestrictionsSchemaRestriction++; |
| 156 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 169 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 157 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); | 170 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); |
| 158 o.description = "foo"; | 171 o.description = "foo"; |
| 159 o.entry = buildUnnamed2227(); | 172 o.entry = buildUnnamed397(); |
| 160 o.entryValue = buildUnnamed2228(); | 173 o.entryValue = buildUnnamed398(); |
| 161 o.key = "foo"; | 174 o.key = "foo"; |
| 175 o.nestedRestriction = buildUnnamed399(); |
| 162 o.restrictionType = "foo"; | 176 o.restrictionType = "foo"; |
| 163 o.title = "foo"; | 177 o.title = "foo"; |
| 164 } | 178 } |
| 165 buildCounterAppRestrictionsSchemaRestriction--; | 179 buildCounterAppRestrictionsSchemaRestriction--; |
| 166 return o; | 180 return o; |
| 167 } | 181 } |
| 168 | 182 |
| 169 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { | 183 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { |
| 170 buildCounterAppRestrictionsSchemaRestriction++; | 184 buildCounterAppRestrictionsSchemaRestriction++; |
| 171 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 185 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 172 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); | 186 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); |
| 173 unittest.expect(o.description, unittest.equals('foo')); | 187 unittest.expect(o.description, unittest.equals('foo')); |
| 174 checkUnnamed2227(o.entry); | 188 checkUnnamed397(o.entry); |
| 175 checkUnnamed2228(o.entryValue); | 189 checkUnnamed398(o.entryValue); |
| 176 unittest.expect(o.key, unittest.equals('foo')); | 190 unittest.expect(o.key, unittest.equals('foo')); |
| 191 checkUnnamed399(o.nestedRestriction); |
| 177 unittest.expect(o.restrictionType, unittest.equals('foo')); | 192 unittest.expect(o.restrictionType, unittest.equals('foo')); |
| 178 unittest.expect(o.title, unittest.equals('foo')); | 193 unittest.expect(o.title, unittest.equals('foo')); |
| 179 } | 194 } |
| 180 buildCounterAppRestrictionsSchemaRestriction--; | 195 buildCounterAppRestrictionsSchemaRestriction--; |
| 181 } | 196 } |
| 182 | 197 |
| 183 buildUnnamed2229() { | 198 buildUnnamed400() { |
| 184 var o = new core.List<core.String>(); | 199 var o = new core.List<core.String>(); |
| 185 o.add("foo"); | 200 o.add("foo"); |
| 186 o.add("foo"); | 201 o.add("foo"); |
| 187 return o; | 202 return o; |
| 188 } | 203 } |
| 189 | 204 |
| 190 checkUnnamed2229(core.List<core.String> o) { | 205 checkUnnamed400(core.List<core.String> o) { |
| 191 unittest.expect(o, unittest.hasLength(2)); | 206 unittest.expect(o, unittest.hasLength(2)); |
| 192 unittest.expect(o[0], unittest.equals('foo')); | 207 unittest.expect(o[0], unittest.equals('foo')); |
| 193 unittest.expect(o[1], unittest.equals('foo')); | 208 unittest.expect(o[1], unittest.equals('foo')); |
| 194 } | 209 } |
| 195 | 210 |
| 196 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; | 211 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; |
| 197 buildAppRestrictionsSchemaRestrictionRestrictionValue() { | 212 buildAppRestrictionsSchemaRestrictionRestrictionValue() { |
| 198 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); | 213 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); |
| 199 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 214 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 200 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 215 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 201 o.type = "foo"; | 216 o.type = "foo"; |
| 202 o.valueBool = true; | 217 o.valueBool = true; |
| 203 o.valueInteger = 42; | 218 o.valueInteger = 42; |
| 204 o.valueMultiselect = buildUnnamed2229(); | 219 o.valueMultiselect = buildUnnamed400(); |
| 205 o.valueString = "foo"; | 220 o.valueString = "foo"; |
| 206 } | 221 } |
| 207 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 222 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 208 return o; | 223 return o; |
| 209 } | 224 } |
| 210 | 225 |
| 211 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { | 226 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { |
| 212 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 227 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 213 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 228 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 214 unittest.expect(o.type, unittest.equals('foo')); | 229 unittest.expect(o.type, unittest.equals('foo')); |
| 215 unittest.expect(o.valueBool, unittest.isTrue); | 230 unittest.expect(o.valueBool, unittest.isTrue); |
| 216 unittest.expect(o.valueInteger, unittest.equals(42)); | 231 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 217 checkUnnamed2229(o.valueMultiselect); | 232 checkUnnamed400(o.valueMultiselect); |
| 218 unittest.expect(o.valueString, unittest.equals('foo')); | 233 unittest.expect(o.valueString, unittest.equals('foo')); |
| 219 } | 234 } |
| 220 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 235 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 221 } | 236 } |
| 222 | 237 |
| 223 core.int buildCounterAppUpdateEvent = 0; | 238 core.int buildCounterAppUpdateEvent = 0; |
| 224 buildAppUpdateEvent() { | 239 buildAppUpdateEvent() { |
| 225 var o = new api.AppUpdateEvent(); | 240 var o = new api.AppUpdateEvent(); |
| 226 buildCounterAppUpdateEvent++; | 241 buildCounterAppUpdateEvent++; |
| 227 if (buildCounterAppUpdateEvent < 3) { | 242 if (buildCounterAppUpdateEvent < 3) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 310 |
| 296 checkAuthenticationToken(api.AuthenticationToken o) { | 311 checkAuthenticationToken(api.AuthenticationToken o) { |
| 297 buildCounterAuthenticationToken++; | 312 buildCounterAuthenticationToken++; |
| 298 if (buildCounterAuthenticationToken < 3) { | 313 if (buildCounterAuthenticationToken < 3) { |
| 299 unittest.expect(o.kind, unittest.equals('foo')); | 314 unittest.expect(o.kind, unittest.equals('foo')); |
| 300 unittest.expect(o.token, unittest.equals('foo')); | 315 unittest.expect(o.token, unittest.equals('foo')); |
| 301 } | 316 } |
| 302 buildCounterAuthenticationToken--; | 317 buildCounterAuthenticationToken--; |
| 303 } | 318 } |
| 304 | 319 |
| 305 buildUnnamed2230() { | 320 buildUnnamed401() { |
| 306 var o = new core.List<core.String>(); | 321 var o = new core.List<core.String>(); |
| 307 o.add("foo"); | 322 o.add("foo"); |
| 308 o.add("foo"); | 323 o.add("foo"); |
| 309 return o; | 324 return o; |
| 310 } | 325 } |
| 311 | 326 |
| 312 checkUnnamed2230(core.List<core.String> o) { | 327 checkUnnamed401(core.List<core.String> o) { |
| 313 unittest.expect(o, unittest.hasLength(2)); | 328 unittest.expect(o, unittest.hasLength(2)); |
| 314 unittest.expect(o[0], unittest.equals('foo')); | 329 unittest.expect(o[0], unittest.equals('foo')); |
| 315 unittest.expect(o[1], unittest.equals('foo')); | 330 unittest.expect(o[1], unittest.equals('foo')); |
| 316 } | 331 } |
| 317 | 332 |
| 318 core.int buildCounterCollection = 0; | 333 core.int buildCounterCollection = 0; |
| 319 buildCollection() { | 334 buildCollection() { |
| 320 var o = new api.Collection(); | 335 var o = new api.Collection(); |
| 321 buildCounterCollection++; | 336 buildCounterCollection++; |
| 322 if (buildCounterCollection < 3) { | 337 if (buildCounterCollection < 3) { |
| 323 o.collectionId = "foo"; | 338 o.collectionId = "foo"; |
| 324 o.kind = "foo"; | 339 o.kind = "foo"; |
| 325 o.name = "foo"; | 340 o.name = "foo"; |
| 326 o.productId = buildUnnamed2230(); | 341 o.productId = buildUnnamed401(); |
| 327 o.visibility = "foo"; | 342 o.visibility = "foo"; |
| 328 } | 343 } |
| 329 buildCounterCollection--; | 344 buildCounterCollection--; |
| 330 return o; | 345 return o; |
| 331 } | 346 } |
| 332 | 347 |
| 333 checkCollection(api.Collection o) { | 348 checkCollection(api.Collection o) { |
| 334 buildCounterCollection++; | 349 buildCounterCollection++; |
| 335 if (buildCounterCollection < 3) { | 350 if (buildCounterCollection < 3) { |
| 336 unittest.expect(o.collectionId, unittest.equals('foo')); | 351 unittest.expect(o.collectionId, unittest.equals('foo')); |
| 337 unittest.expect(o.kind, unittest.equals('foo')); | 352 unittest.expect(o.kind, unittest.equals('foo')); |
| 338 unittest.expect(o.name, unittest.equals('foo')); | 353 unittest.expect(o.name, unittest.equals('foo')); |
| 339 checkUnnamed2230(o.productId); | 354 checkUnnamed401(o.productId); |
| 340 unittest.expect(o.visibility, unittest.equals('foo')); | 355 unittest.expect(o.visibility, unittest.equals('foo')); |
| 341 } | 356 } |
| 342 buildCounterCollection--; | 357 buildCounterCollection--; |
| 343 } | 358 } |
| 344 | 359 |
| 345 buildUnnamed2231() { | 360 buildUnnamed402() { |
| 346 var o = new core.List<api.User>(); | 361 var o = new core.List<api.User>(); |
| 347 o.add(buildUser()); | 362 o.add(buildUser()); |
| 348 o.add(buildUser()); | 363 o.add(buildUser()); |
| 349 return o; | 364 return o; |
| 350 } | 365 } |
| 351 | 366 |
| 352 checkUnnamed2231(core.List<api.User> o) { | 367 checkUnnamed402(core.List<api.User> o) { |
| 353 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
| 354 checkUser(o[0]); | 369 checkUser(o[0]); |
| 355 checkUser(o[1]); | 370 checkUser(o[1]); |
| 356 } | 371 } |
| 357 | 372 |
| 358 core.int buildCounterCollectionViewersListResponse = 0; | 373 core.int buildCounterCollectionViewersListResponse = 0; |
| 359 buildCollectionViewersListResponse() { | 374 buildCollectionViewersListResponse() { |
| 360 var o = new api.CollectionViewersListResponse(); | 375 var o = new api.CollectionViewersListResponse(); |
| 361 buildCounterCollectionViewersListResponse++; | 376 buildCounterCollectionViewersListResponse++; |
| 362 if (buildCounterCollectionViewersListResponse < 3) { | 377 if (buildCounterCollectionViewersListResponse < 3) { |
| 363 o.kind = "foo"; | 378 o.kind = "foo"; |
| 364 o.user = buildUnnamed2231(); | 379 o.user = buildUnnamed402(); |
| 365 } | 380 } |
| 366 buildCounterCollectionViewersListResponse--; | 381 buildCounterCollectionViewersListResponse--; |
| 367 return o; | 382 return o; |
| 368 } | 383 } |
| 369 | 384 |
| 370 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { | 385 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { |
| 371 buildCounterCollectionViewersListResponse++; | 386 buildCounterCollectionViewersListResponse++; |
| 372 if (buildCounterCollectionViewersListResponse < 3) { | 387 if (buildCounterCollectionViewersListResponse < 3) { |
| 373 unittest.expect(o.kind, unittest.equals('foo')); | 388 unittest.expect(o.kind, unittest.equals('foo')); |
| 374 checkUnnamed2231(o.user); | 389 checkUnnamed402(o.user); |
| 375 } | 390 } |
| 376 buildCounterCollectionViewersListResponse--; | 391 buildCounterCollectionViewersListResponse--; |
| 377 } | 392 } |
| 378 | 393 |
| 379 buildUnnamed2232() { | 394 buildUnnamed403() { |
| 380 var o = new core.List<api.Collection>(); | 395 var o = new core.List<api.Collection>(); |
| 381 o.add(buildCollection()); | 396 o.add(buildCollection()); |
| 382 o.add(buildCollection()); | 397 o.add(buildCollection()); |
| 383 return o; | 398 return o; |
| 384 } | 399 } |
| 385 | 400 |
| 386 checkUnnamed2232(core.List<api.Collection> o) { | 401 checkUnnamed403(core.List<api.Collection> o) { |
| 387 unittest.expect(o, unittest.hasLength(2)); | 402 unittest.expect(o, unittest.hasLength(2)); |
| 388 checkCollection(o[0]); | 403 checkCollection(o[0]); |
| 389 checkCollection(o[1]); | 404 checkCollection(o[1]); |
| 390 } | 405 } |
| 391 | 406 |
| 392 core.int buildCounterCollectionsListResponse = 0; | 407 core.int buildCounterCollectionsListResponse = 0; |
| 393 buildCollectionsListResponse() { | 408 buildCollectionsListResponse() { |
| 394 var o = new api.CollectionsListResponse(); | 409 var o = new api.CollectionsListResponse(); |
| 395 buildCounterCollectionsListResponse++; | 410 buildCounterCollectionsListResponse++; |
| 396 if (buildCounterCollectionsListResponse < 3) { | 411 if (buildCounterCollectionsListResponse < 3) { |
| 397 o.collection = buildUnnamed2232(); | 412 o.collection = buildUnnamed403(); |
| 398 o.kind = "foo"; | 413 o.kind = "foo"; |
| 399 } | 414 } |
| 400 buildCounterCollectionsListResponse--; | 415 buildCounterCollectionsListResponse--; |
| 401 return o; | 416 return o; |
| 402 } | 417 } |
| 403 | 418 |
| 404 checkCollectionsListResponse(api.CollectionsListResponse o) { | 419 checkCollectionsListResponse(api.CollectionsListResponse o) { |
| 405 buildCounterCollectionsListResponse++; | 420 buildCounterCollectionsListResponse++; |
| 406 if (buildCounterCollectionsListResponse < 3) { | 421 if (buildCounterCollectionsListResponse < 3) { |
| 407 checkUnnamed2232(o.collection); | 422 checkUnnamed403(o.collection); |
| 408 unittest.expect(o.kind, unittest.equals('foo')); | 423 unittest.expect(o.kind, unittest.equals('foo')); |
| 409 } | 424 } |
| 410 buildCounterCollectionsListResponse--; | 425 buildCounterCollectionsListResponse--; |
| 411 } | 426 } |
| 412 | 427 |
| 413 core.int buildCounterDevice = 0; | 428 core.int buildCounterDevice = 0; |
| 414 buildDevice() { | 429 buildDevice() { |
| 415 var o = new api.Device(); | 430 var o = new api.Device(); |
| 416 buildCounterDevice++; | 431 buildCounterDevice++; |
| 417 if (buildCounterDevice < 3) { | 432 if (buildCounterDevice < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 447 | 462 |
| 448 checkDeviceState(api.DeviceState o) { | 463 checkDeviceState(api.DeviceState o) { |
| 449 buildCounterDeviceState++; | 464 buildCounterDeviceState++; |
| 450 if (buildCounterDeviceState < 3) { | 465 if (buildCounterDeviceState < 3) { |
| 451 unittest.expect(o.accountState, unittest.equals('foo')); | 466 unittest.expect(o.accountState, unittest.equals('foo')); |
| 452 unittest.expect(o.kind, unittest.equals('foo')); | 467 unittest.expect(o.kind, unittest.equals('foo')); |
| 453 } | 468 } |
| 454 buildCounterDeviceState--; | 469 buildCounterDeviceState--; |
| 455 } | 470 } |
| 456 | 471 |
| 457 buildUnnamed2233() { | 472 buildUnnamed404() { |
| 458 var o = new core.List<api.Device>(); | 473 var o = new core.List<api.Device>(); |
| 459 o.add(buildDevice()); | 474 o.add(buildDevice()); |
| 460 o.add(buildDevice()); | 475 o.add(buildDevice()); |
| 461 return o; | 476 return o; |
| 462 } | 477 } |
| 463 | 478 |
| 464 checkUnnamed2233(core.List<api.Device> o) { | 479 checkUnnamed404(core.List<api.Device> o) { |
| 465 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 466 checkDevice(o[0]); | 481 checkDevice(o[0]); |
| 467 checkDevice(o[1]); | 482 checkDevice(o[1]); |
| 468 } | 483 } |
| 469 | 484 |
| 470 core.int buildCounterDevicesListResponse = 0; | 485 core.int buildCounterDevicesListResponse = 0; |
| 471 buildDevicesListResponse() { | 486 buildDevicesListResponse() { |
| 472 var o = new api.DevicesListResponse(); | 487 var o = new api.DevicesListResponse(); |
| 473 buildCounterDevicesListResponse++; | 488 buildCounterDevicesListResponse++; |
| 474 if (buildCounterDevicesListResponse < 3) { | 489 if (buildCounterDevicesListResponse < 3) { |
| 475 o.device = buildUnnamed2233(); | 490 o.device = buildUnnamed404(); |
| 476 o.kind = "foo"; | 491 o.kind = "foo"; |
| 477 } | 492 } |
| 478 buildCounterDevicesListResponse--; | 493 buildCounterDevicesListResponse--; |
| 479 return o; | 494 return o; |
| 480 } | 495 } |
| 481 | 496 |
| 482 checkDevicesListResponse(api.DevicesListResponse o) { | 497 checkDevicesListResponse(api.DevicesListResponse o) { |
| 483 buildCounterDevicesListResponse++; | 498 buildCounterDevicesListResponse++; |
| 484 if (buildCounterDevicesListResponse < 3) { | 499 if (buildCounterDevicesListResponse < 3) { |
| 485 checkUnnamed2233(o.device); | 500 checkUnnamed404(o.device); |
| 486 unittest.expect(o.kind, unittest.equals('foo')); | 501 unittest.expect(o.kind, unittest.equals('foo')); |
| 487 } | 502 } |
| 488 buildCounterDevicesListResponse--; | 503 buildCounterDevicesListResponse--; |
| 489 } | 504 } |
| 490 | 505 |
| 491 buildUnnamed2234() { | 506 buildUnnamed405() { |
| 492 var o = new core.List<api.Administrator>(); | 507 var o = new core.List<api.Administrator>(); |
| 493 o.add(buildAdministrator()); | 508 o.add(buildAdministrator()); |
| 494 o.add(buildAdministrator()); | 509 o.add(buildAdministrator()); |
| 495 return o; | 510 return o; |
| 496 } | 511 } |
| 497 | 512 |
| 498 checkUnnamed2234(core.List<api.Administrator> o) { | 513 checkUnnamed405(core.List<api.Administrator> o) { |
| 499 unittest.expect(o, unittest.hasLength(2)); | 514 unittest.expect(o, unittest.hasLength(2)); |
| 500 checkAdministrator(o[0]); | 515 checkAdministrator(o[0]); |
| 501 checkAdministrator(o[1]); | 516 checkAdministrator(o[1]); |
| 502 } | 517 } |
| 503 | 518 |
| 504 core.int buildCounterEnterprise = 0; | 519 core.int buildCounterEnterprise = 0; |
| 505 buildEnterprise() { | 520 buildEnterprise() { |
| 506 var o = new api.Enterprise(); | 521 var o = new api.Enterprise(); |
| 507 buildCounterEnterprise++; | 522 buildCounterEnterprise++; |
| 508 if (buildCounterEnterprise < 3) { | 523 if (buildCounterEnterprise < 3) { |
| 509 o.administrator = buildUnnamed2234(); | 524 o.administrator = buildUnnamed405(); |
| 510 o.id = "foo"; | 525 o.id = "foo"; |
| 511 o.kind = "foo"; | 526 o.kind = "foo"; |
| 512 o.name = "foo"; | 527 o.name = "foo"; |
| 513 o.primaryDomain = "foo"; | 528 o.primaryDomain = "foo"; |
| 514 } | 529 } |
| 515 buildCounterEnterprise--; | 530 buildCounterEnterprise--; |
| 516 return o; | 531 return o; |
| 517 } | 532 } |
| 518 | 533 |
| 519 checkEnterprise(api.Enterprise o) { | 534 checkEnterprise(api.Enterprise o) { |
| 520 buildCounterEnterprise++; | 535 buildCounterEnterprise++; |
| 521 if (buildCounterEnterprise < 3) { | 536 if (buildCounterEnterprise < 3) { |
| 522 checkUnnamed2234(o.administrator); | 537 checkUnnamed405(o.administrator); |
| 523 unittest.expect(o.id, unittest.equals('foo')); | 538 unittest.expect(o.id, unittest.equals('foo')); |
| 524 unittest.expect(o.kind, unittest.equals('foo')); | 539 unittest.expect(o.kind, unittest.equals('foo')); |
| 525 unittest.expect(o.name, unittest.equals('foo')); | 540 unittest.expect(o.name, unittest.equals('foo')); |
| 526 unittest.expect(o.primaryDomain, unittest.equals('foo')); | 541 unittest.expect(o.primaryDomain, unittest.equals('foo')); |
| 527 } | 542 } |
| 528 buildCounterEnterprise--; | 543 buildCounterEnterprise--; |
| 529 } | 544 } |
| 530 | 545 |
| 531 core.int buildCounterEnterpriseAccount = 0; | 546 core.int buildCounterEnterpriseAccount = 0; |
| 532 buildEnterpriseAccount() { | 547 buildEnterpriseAccount() { |
| 533 var o = new api.EnterpriseAccount(); | 548 var o = new api.EnterpriseAccount(); |
| 534 buildCounterEnterpriseAccount++; | 549 buildCounterEnterpriseAccount++; |
| 535 if (buildCounterEnterpriseAccount < 3) { | 550 if (buildCounterEnterpriseAccount < 3) { |
| 536 o.accountEmail = "foo"; | 551 o.accountEmail = "foo"; |
| 537 o.kind = "foo"; | 552 o.kind = "foo"; |
| 538 } | 553 } |
| 539 buildCounterEnterpriseAccount--; | 554 buildCounterEnterpriseAccount--; |
| 540 return o; | 555 return o; |
| 541 } | 556 } |
| 542 | 557 |
| 543 checkEnterpriseAccount(api.EnterpriseAccount o) { | 558 checkEnterpriseAccount(api.EnterpriseAccount o) { |
| 544 buildCounterEnterpriseAccount++; | 559 buildCounterEnterpriseAccount++; |
| 545 if (buildCounterEnterpriseAccount < 3) { | 560 if (buildCounterEnterpriseAccount < 3) { |
| 546 unittest.expect(o.accountEmail, unittest.equals('foo')); | 561 unittest.expect(o.accountEmail, unittest.equals('foo')); |
| 547 unittest.expect(o.kind, unittest.equals('foo')); | 562 unittest.expect(o.kind, unittest.equals('foo')); |
| 548 } | 563 } |
| 549 buildCounterEnterpriseAccount--; | 564 buildCounterEnterpriseAccount--; |
| 550 } | 565 } |
| 551 | 566 |
| 552 buildUnnamed2235() { | 567 buildUnnamed406() { |
| 553 var o = new core.List<api.Enterprise>(); | 568 var o = new core.List<api.Enterprise>(); |
| 554 o.add(buildEnterprise()); | 569 o.add(buildEnterprise()); |
| 555 o.add(buildEnterprise()); | 570 o.add(buildEnterprise()); |
| 556 return o; | 571 return o; |
| 557 } | 572 } |
| 558 | 573 |
| 559 checkUnnamed2235(core.List<api.Enterprise> o) { | 574 checkUnnamed406(core.List<api.Enterprise> o) { |
| 560 unittest.expect(o, unittest.hasLength(2)); | 575 unittest.expect(o, unittest.hasLength(2)); |
| 561 checkEnterprise(o[0]); | 576 checkEnterprise(o[0]); |
| 562 checkEnterprise(o[1]); | 577 checkEnterprise(o[1]); |
| 563 } | 578 } |
| 564 | 579 |
| 565 core.int buildCounterEnterprisesListResponse = 0; | 580 core.int buildCounterEnterprisesListResponse = 0; |
| 566 buildEnterprisesListResponse() { | 581 buildEnterprisesListResponse() { |
| 567 var o = new api.EnterprisesListResponse(); | 582 var o = new api.EnterprisesListResponse(); |
| 568 buildCounterEnterprisesListResponse++; | 583 buildCounterEnterprisesListResponse++; |
| 569 if (buildCounterEnterprisesListResponse < 3) { | 584 if (buildCounterEnterprisesListResponse < 3) { |
| 570 o.enterprise = buildUnnamed2235(); | 585 o.enterprise = buildUnnamed406(); |
| 571 o.kind = "foo"; | 586 o.kind = "foo"; |
| 572 } | 587 } |
| 573 buildCounterEnterprisesListResponse--; | 588 buildCounterEnterprisesListResponse--; |
| 574 return o; | 589 return o; |
| 575 } | 590 } |
| 576 | 591 |
| 577 checkEnterprisesListResponse(api.EnterprisesListResponse o) { | 592 checkEnterprisesListResponse(api.EnterprisesListResponse o) { |
| 578 buildCounterEnterprisesListResponse++; | 593 buildCounterEnterprisesListResponse++; |
| 579 if (buildCounterEnterprisesListResponse < 3) { | 594 if (buildCounterEnterprisesListResponse < 3) { |
| 580 checkUnnamed2235(o.enterprise); | 595 checkUnnamed406(o.enterprise); |
| 581 unittest.expect(o.kind, unittest.equals('foo')); | 596 unittest.expect(o.kind, unittest.equals('foo')); |
| 582 } | 597 } |
| 583 buildCounterEnterprisesListResponse--; | 598 buildCounterEnterprisesListResponse--; |
| 584 } | 599 } |
| 585 | 600 |
| 586 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; | 601 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; |
| 587 buildEnterprisesSendTestPushNotificationResponse() { | 602 buildEnterprisesSendTestPushNotificationResponse() { |
| 588 var o = new api.EnterprisesSendTestPushNotificationResponse(); | 603 var o = new api.EnterprisesSendTestPushNotificationResponse(); |
| 589 buildCounterEnterprisesSendTestPushNotificationResponse++; | 604 buildCounterEnterprisesSendTestPushNotificationResponse++; |
| 590 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { | 605 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 620 checkEntitlement(api.Entitlement o) { | 635 checkEntitlement(api.Entitlement o) { |
| 621 buildCounterEntitlement++; | 636 buildCounterEntitlement++; |
| 622 if (buildCounterEntitlement < 3) { | 637 if (buildCounterEntitlement < 3) { |
| 623 unittest.expect(o.kind, unittest.equals('foo')); | 638 unittest.expect(o.kind, unittest.equals('foo')); |
| 624 unittest.expect(o.productId, unittest.equals('foo')); | 639 unittest.expect(o.productId, unittest.equals('foo')); |
| 625 unittest.expect(o.reason, unittest.equals('foo')); | 640 unittest.expect(o.reason, unittest.equals('foo')); |
| 626 } | 641 } |
| 627 buildCounterEntitlement--; | 642 buildCounterEntitlement--; |
| 628 } | 643 } |
| 629 | 644 |
| 630 buildUnnamed2236() { | 645 buildUnnamed407() { |
| 631 var o = new core.List<api.Entitlement>(); | 646 var o = new core.List<api.Entitlement>(); |
| 632 o.add(buildEntitlement()); | 647 o.add(buildEntitlement()); |
| 633 o.add(buildEntitlement()); | 648 o.add(buildEntitlement()); |
| 634 return o; | 649 return o; |
| 635 } | 650 } |
| 636 | 651 |
| 637 checkUnnamed2236(core.List<api.Entitlement> o) { | 652 checkUnnamed407(core.List<api.Entitlement> o) { |
| 638 unittest.expect(o, unittest.hasLength(2)); | 653 unittest.expect(o, unittest.hasLength(2)); |
| 639 checkEntitlement(o[0]); | 654 checkEntitlement(o[0]); |
| 640 checkEntitlement(o[1]); | 655 checkEntitlement(o[1]); |
| 641 } | 656 } |
| 642 | 657 |
| 643 core.int buildCounterEntitlementsListResponse = 0; | 658 core.int buildCounterEntitlementsListResponse = 0; |
| 644 buildEntitlementsListResponse() { | 659 buildEntitlementsListResponse() { |
| 645 var o = new api.EntitlementsListResponse(); | 660 var o = new api.EntitlementsListResponse(); |
| 646 buildCounterEntitlementsListResponse++; | 661 buildCounterEntitlementsListResponse++; |
| 647 if (buildCounterEntitlementsListResponse < 3) { | 662 if (buildCounterEntitlementsListResponse < 3) { |
| 648 o.entitlement = buildUnnamed2236(); | 663 o.entitlement = buildUnnamed407(); |
| 649 o.kind = "foo"; | 664 o.kind = "foo"; |
| 650 } | 665 } |
| 651 buildCounterEntitlementsListResponse--; | 666 buildCounterEntitlementsListResponse--; |
| 652 return o; | 667 return o; |
| 653 } | 668 } |
| 654 | 669 |
| 655 checkEntitlementsListResponse(api.EntitlementsListResponse o) { | 670 checkEntitlementsListResponse(api.EntitlementsListResponse o) { |
| 656 buildCounterEntitlementsListResponse++; | 671 buildCounterEntitlementsListResponse++; |
| 657 if (buildCounterEntitlementsListResponse < 3) { | 672 if (buildCounterEntitlementsListResponse < 3) { |
| 658 checkUnnamed2236(o.entitlement); | 673 checkUnnamed407(o.entitlement); |
| 659 unittest.expect(o.kind, unittest.equals('foo')); | 674 unittest.expect(o.kind, unittest.equals('foo')); |
| 660 } | 675 } |
| 661 buildCounterEntitlementsListResponse--; | 676 buildCounterEntitlementsListResponse--; |
| 662 } | 677 } |
| 663 | 678 |
| 664 core.int buildCounterGroupLicense = 0; | 679 core.int buildCounterGroupLicense = 0; |
| 665 buildGroupLicense() { | 680 buildGroupLicense() { |
| 666 var o = new api.GroupLicense(); | 681 var o = new api.GroupLicense(); |
| 667 buildCounterGroupLicense++; | 682 buildCounterGroupLicense++; |
| 668 if (buildCounterGroupLicense < 3) { | 683 if (buildCounterGroupLicense < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 683 unittest.expect(o.acquisitionKind, unittest.equals('foo')); | 698 unittest.expect(o.acquisitionKind, unittest.equals('foo')); |
| 684 unittest.expect(o.approval, unittest.equals('foo')); | 699 unittest.expect(o.approval, unittest.equals('foo')); |
| 685 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
| 686 unittest.expect(o.numProvisioned, unittest.equals(42)); | 701 unittest.expect(o.numProvisioned, unittest.equals(42)); |
| 687 unittest.expect(o.numPurchased, unittest.equals(42)); | 702 unittest.expect(o.numPurchased, unittest.equals(42)); |
| 688 unittest.expect(o.productId, unittest.equals('foo')); | 703 unittest.expect(o.productId, unittest.equals('foo')); |
| 689 } | 704 } |
| 690 buildCounterGroupLicense--; | 705 buildCounterGroupLicense--; |
| 691 } | 706 } |
| 692 | 707 |
| 693 buildUnnamed2237() { | 708 buildUnnamed408() { |
| 694 var o = new core.List<api.User>(); | 709 var o = new core.List<api.User>(); |
| 695 o.add(buildUser()); | 710 o.add(buildUser()); |
| 696 o.add(buildUser()); | 711 o.add(buildUser()); |
| 697 return o; | 712 return o; |
| 698 } | 713 } |
| 699 | 714 |
| 700 checkUnnamed2237(core.List<api.User> o) { | 715 checkUnnamed408(core.List<api.User> o) { |
| 701 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 702 checkUser(o[0]); | 717 checkUser(o[0]); |
| 703 checkUser(o[1]); | 718 checkUser(o[1]); |
| 704 } | 719 } |
| 705 | 720 |
| 706 core.int buildCounterGroupLicenseUsersListResponse = 0; | 721 core.int buildCounterGroupLicenseUsersListResponse = 0; |
| 707 buildGroupLicenseUsersListResponse() { | 722 buildGroupLicenseUsersListResponse() { |
| 708 var o = new api.GroupLicenseUsersListResponse(); | 723 var o = new api.GroupLicenseUsersListResponse(); |
| 709 buildCounterGroupLicenseUsersListResponse++; | 724 buildCounterGroupLicenseUsersListResponse++; |
| 710 if (buildCounterGroupLicenseUsersListResponse < 3) { | 725 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 711 o.kind = "foo"; | 726 o.kind = "foo"; |
| 712 o.user = buildUnnamed2237(); | 727 o.user = buildUnnamed408(); |
| 713 } | 728 } |
| 714 buildCounterGroupLicenseUsersListResponse--; | 729 buildCounterGroupLicenseUsersListResponse--; |
| 715 return o; | 730 return o; |
| 716 } | 731 } |
| 717 | 732 |
| 718 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { | 733 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { |
| 719 buildCounterGroupLicenseUsersListResponse++; | 734 buildCounterGroupLicenseUsersListResponse++; |
| 720 if (buildCounterGroupLicenseUsersListResponse < 3) { | 735 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 721 unittest.expect(o.kind, unittest.equals('foo')); | 736 unittest.expect(o.kind, unittest.equals('foo')); |
| 722 checkUnnamed2237(o.user); | 737 checkUnnamed408(o.user); |
| 723 } | 738 } |
| 724 buildCounterGroupLicenseUsersListResponse--; | 739 buildCounterGroupLicenseUsersListResponse--; |
| 725 } | 740 } |
| 726 | 741 |
| 727 buildUnnamed2238() { | 742 buildUnnamed409() { |
| 728 var o = new core.List<api.GroupLicense>(); | 743 var o = new core.List<api.GroupLicense>(); |
| 729 o.add(buildGroupLicense()); | 744 o.add(buildGroupLicense()); |
| 730 o.add(buildGroupLicense()); | 745 o.add(buildGroupLicense()); |
| 731 return o; | 746 return o; |
| 732 } | 747 } |
| 733 | 748 |
| 734 checkUnnamed2238(core.List<api.GroupLicense> o) { | 749 checkUnnamed409(core.List<api.GroupLicense> o) { |
| 735 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 736 checkGroupLicense(o[0]); | 751 checkGroupLicense(o[0]); |
| 737 checkGroupLicense(o[1]); | 752 checkGroupLicense(o[1]); |
| 738 } | 753 } |
| 739 | 754 |
| 740 core.int buildCounterGroupLicensesListResponse = 0; | 755 core.int buildCounterGroupLicensesListResponse = 0; |
| 741 buildGroupLicensesListResponse() { | 756 buildGroupLicensesListResponse() { |
| 742 var o = new api.GroupLicensesListResponse(); | 757 var o = new api.GroupLicensesListResponse(); |
| 743 buildCounterGroupLicensesListResponse++; | 758 buildCounterGroupLicensesListResponse++; |
| 744 if (buildCounterGroupLicensesListResponse < 3) { | 759 if (buildCounterGroupLicensesListResponse < 3) { |
| 745 o.groupLicense = buildUnnamed2238(); | 760 o.groupLicense = buildUnnamed409(); |
| 746 o.kind = "foo"; | 761 o.kind = "foo"; |
| 747 } | 762 } |
| 748 buildCounterGroupLicensesListResponse--; | 763 buildCounterGroupLicensesListResponse--; |
| 749 return o; | 764 return o; |
| 750 } | 765 } |
| 751 | 766 |
| 752 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { | 767 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { |
| 753 buildCounterGroupLicensesListResponse++; | 768 buildCounterGroupLicensesListResponse++; |
| 754 if (buildCounterGroupLicensesListResponse < 3) { | 769 if (buildCounterGroupLicensesListResponse < 3) { |
| 755 checkUnnamed2238(o.groupLicense); | 770 checkUnnamed409(o.groupLicense); |
| 756 unittest.expect(o.kind, unittest.equals('foo')); | 771 unittest.expect(o.kind, unittest.equals('foo')); |
| 757 } | 772 } |
| 758 buildCounterGroupLicensesListResponse--; | 773 buildCounterGroupLicensesListResponse--; |
| 759 } | 774 } |
| 760 | 775 |
| 761 core.int buildCounterInstall = 0; | 776 core.int buildCounterInstall = 0; |
| 762 buildInstall() { | 777 buildInstall() { |
| 763 var o = new api.Install(); | 778 var o = new api.Install(); |
| 764 buildCounterInstall++; | 779 buildCounterInstall++; |
| 765 if (buildCounterInstall < 3) { | 780 if (buildCounterInstall < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 if (buildCounterInstallFailureEvent < 3) { | 818 if (buildCounterInstallFailureEvent < 3) { |
| 804 unittest.expect(o.deviceId, unittest.equals('foo')); | 819 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 805 unittest.expect(o.failureDetails, unittest.equals('foo')); | 820 unittest.expect(o.failureDetails, unittest.equals('foo')); |
| 806 unittest.expect(o.failureReason, unittest.equals('foo')); | 821 unittest.expect(o.failureReason, unittest.equals('foo')); |
| 807 unittest.expect(o.productId, unittest.equals('foo')); | 822 unittest.expect(o.productId, unittest.equals('foo')); |
| 808 unittest.expect(o.userId, unittest.equals('foo')); | 823 unittest.expect(o.userId, unittest.equals('foo')); |
| 809 } | 824 } |
| 810 buildCounterInstallFailureEvent--; | 825 buildCounterInstallFailureEvent--; |
| 811 } | 826 } |
| 812 | 827 |
| 813 buildUnnamed2239() { | 828 buildUnnamed410() { |
| 814 var o = new core.List<api.Install>(); | 829 var o = new core.List<api.Install>(); |
| 815 o.add(buildInstall()); | 830 o.add(buildInstall()); |
| 816 o.add(buildInstall()); | 831 o.add(buildInstall()); |
| 817 return o; | 832 return o; |
| 818 } | 833 } |
| 819 | 834 |
| 820 checkUnnamed2239(core.List<api.Install> o) { | 835 checkUnnamed410(core.List<api.Install> o) { |
| 821 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
| 822 checkInstall(o[0]); | 837 checkInstall(o[0]); |
| 823 checkInstall(o[1]); | 838 checkInstall(o[1]); |
| 824 } | 839 } |
| 825 | 840 |
| 826 core.int buildCounterInstallsListResponse = 0; | 841 core.int buildCounterInstallsListResponse = 0; |
| 827 buildInstallsListResponse() { | 842 buildInstallsListResponse() { |
| 828 var o = new api.InstallsListResponse(); | 843 var o = new api.InstallsListResponse(); |
| 829 buildCounterInstallsListResponse++; | 844 buildCounterInstallsListResponse++; |
| 830 if (buildCounterInstallsListResponse < 3) { | 845 if (buildCounterInstallsListResponse < 3) { |
| 831 o.install = buildUnnamed2239(); | 846 o.install = buildUnnamed410(); |
| 832 o.kind = "foo"; | 847 o.kind = "foo"; |
| 833 } | 848 } |
| 834 buildCounterInstallsListResponse--; | 849 buildCounterInstallsListResponse--; |
| 835 return o; | 850 return o; |
| 836 } | 851 } |
| 837 | 852 |
| 838 checkInstallsListResponse(api.InstallsListResponse o) { | 853 checkInstallsListResponse(api.InstallsListResponse o) { |
| 839 buildCounterInstallsListResponse++; | 854 buildCounterInstallsListResponse++; |
| 840 if (buildCounterInstallsListResponse < 3) { | 855 if (buildCounterInstallsListResponse < 3) { |
| 841 checkUnnamed2239(o.install); | 856 checkUnnamed410(o.install); |
| 842 unittest.expect(o.kind, unittest.equals('foo')); | 857 unittest.expect(o.kind, unittest.equals('foo')); |
| 843 } | 858 } |
| 844 buildCounterInstallsListResponse--; | 859 buildCounterInstallsListResponse--; |
| 845 } | 860 } |
| 846 | 861 |
| 847 core.int buildCounterLocalizedText = 0; | 862 core.int buildCounterLocalizedText = 0; |
| 848 buildLocalizedText() { | 863 buildLocalizedText() { |
| 849 var o = new api.LocalizedText(); | 864 var o = new api.LocalizedText(); |
| 850 buildCounterLocalizedText++; | 865 buildCounterLocalizedText++; |
| 851 if (buildCounterLocalizedText < 3) { | 866 if (buildCounterLocalizedText < 3) { |
| 852 o.locale = "foo"; | 867 o.locale = "foo"; |
| 853 o.text = "foo"; | 868 o.text = "foo"; |
| 854 } | 869 } |
| 855 buildCounterLocalizedText--; | 870 buildCounterLocalizedText--; |
| 856 return o; | 871 return o; |
| 857 } | 872 } |
| 858 | 873 |
| 859 checkLocalizedText(api.LocalizedText o) { | 874 checkLocalizedText(api.LocalizedText o) { |
| 860 buildCounterLocalizedText++; | 875 buildCounterLocalizedText++; |
| 861 if (buildCounterLocalizedText < 3) { | 876 if (buildCounterLocalizedText < 3) { |
| 862 unittest.expect(o.locale, unittest.equals('foo')); | 877 unittest.expect(o.locale, unittest.equals('foo')); |
| 863 unittest.expect(o.text, unittest.equals('foo')); | 878 unittest.expect(o.text, unittest.equals('foo')); |
| 864 } | 879 } |
| 865 buildCounterLocalizedText--; | 880 buildCounterLocalizedText--; |
| 866 } | 881 } |
| 867 | 882 |
| 868 buildUnnamed2240() { | 883 buildUnnamed411() { |
| 884 var o = new core.List<api.ManagedProperty>(); |
| 885 o.add(buildManagedProperty()); |
| 886 o.add(buildManagedProperty()); |
| 887 return o; |
| 888 } |
| 889 |
| 890 checkUnnamed411(core.List<api.ManagedProperty> o) { |
| 891 unittest.expect(o, unittest.hasLength(2)); |
| 892 checkManagedProperty(o[0]); |
| 893 checkManagedProperty(o[1]); |
| 894 } |
| 895 |
| 896 core.int buildCounterManagedConfiguration = 0; |
| 897 buildManagedConfiguration() { |
| 898 var o = new api.ManagedConfiguration(); |
| 899 buildCounterManagedConfiguration++; |
| 900 if (buildCounterManagedConfiguration < 3) { |
| 901 o.kind = "foo"; |
| 902 o.managedProperty = buildUnnamed411(); |
| 903 o.productId = "foo"; |
| 904 } |
| 905 buildCounterManagedConfiguration--; |
| 906 return o; |
| 907 } |
| 908 |
| 909 checkManagedConfiguration(api.ManagedConfiguration o) { |
| 910 buildCounterManagedConfiguration++; |
| 911 if (buildCounterManagedConfiguration < 3) { |
| 912 unittest.expect(o.kind, unittest.equals('foo')); |
| 913 checkUnnamed411(o.managedProperty); |
| 914 unittest.expect(o.productId, unittest.equals('foo')); |
| 915 } |
| 916 buildCounterManagedConfiguration--; |
| 917 } |
| 918 |
| 919 buildUnnamed412() { |
| 920 var o = new core.List<api.ManagedConfiguration>(); |
| 921 o.add(buildManagedConfiguration()); |
| 922 o.add(buildManagedConfiguration()); |
| 923 return o; |
| 924 } |
| 925 |
| 926 checkUnnamed412(core.List<api.ManagedConfiguration> o) { |
| 927 unittest.expect(o, unittest.hasLength(2)); |
| 928 checkManagedConfiguration(o[0]); |
| 929 checkManagedConfiguration(o[1]); |
| 930 } |
| 931 |
| 932 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; |
| 933 buildManagedConfigurationsForDeviceListResponse() { |
| 934 var o = new api.ManagedConfigurationsForDeviceListResponse(); |
| 935 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 936 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 937 o.kind = "foo"; |
| 938 o.managedConfigurationForDevice = buildUnnamed412(); |
| 939 } |
| 940 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 941 return o; |
| 942 } |
| 943 |
| 944 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi
ceListResponse o) { |
| 945 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 946 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 947 unittest.expect(o.kind, unittest.equals('foo')); |
| 948 checkUnnamed412(o.managedConfigurationForDevice); |
| 949 } |
| 950 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 951 } |
| 952 |
| 953 buildUnnamed413() { |
| 954 var o = new core.List<api.ManagedConfiguration>(); |
| 955 o.add(buildManagedConfiguration()); |
| 956 o.add(buildManagedConfiguration()); |
| 957 return o; |
| 958 } |
| 959 |
| 960 checkUnnamed413(core.List<api.ManagedConfiguration> o) { |
| 961 unittest.expect(o, unittest.hasLength(2)); |
| 962 checkManagedConfiguration(o[0]); |
| 963 checkManagedConfiguration(o[1]); |
| 964 } |
| 965 |
| 966 core.int buildCounterManagedConfigurationsForUserListResponse = 0; |
| 967 buildManagedConfigurationsForUserListResponse() { |
| 968 var o = new api.ManagedConfigurationsForUserListResponse(); |
| 969 buildCounterManagedConfigurationsForUserListResponse++; |
| 970 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 971 o.kind = "foo"; |
| 972 o.managedConfigurationForUser = buildUnnamed413(); |
| 973 } |
| 974 buildCounterManagedConfigurationsForUserListResponse--; |
| 975 return o; |
| 976 } |
| 977 |
| 978 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi
stResponse o) { |
| 979 buildCounterManagedConfigurationsForUserListResponse++; |
| 980 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 981 unittest.expect(o.kind, unittest.equals('foo')); |
| 982 checkUnnamed413(o.managedConfigurationForUser); |
| 983 } |
| 984 buildCounterManagedConfigurationsForUserListResponse--; |
| 985 } |
| 986 |
| 987 buildUnnamed414() { |
| 988 var o = new core.List<api.ManagedPropertyBundle>(); |
| 989 o.add(buildManagedPropertyBundle()); |
| 990 o.add(buildManagedPropertyBundle()); |
| 991 return o; |
| 992 } |
| 993 |
| 994 checkUnnamed414(core.List<api.ManagedPropertyBundle> o) { |
| 995 unittest.expect(o, unittest.hasLength(2)); |
| 996 checkManagedPropertyBundle(o[0]); |
| 997 checkManagedPropertyBundle(o[1]); |
| 998 } |
| 999 |
| 1000 buildUnnamed415() { |
| 869 var o = new core.List<core.String>(); | 1001 var o = new core.List<core.String>(); |
| 870 o.add("foo"); | 1002 o.add("foo"); |
| 871 o.add("foo"); | 1003 o.add("foo"); |
| 872 return o; | 1004 return o; |
| 873 } | 1005 } |
| 874 | 1006 |
| 875 checkUnnamed2240(core.List<core.String> o) { | 1007 checkUnnamed415(core.List<core.String> o) { |
| 876 unittest.expect(o, unittest.hasLength(2)); | 1008 unittest.expect(o, unittest.hasLength(2)); |
| 877 unittest.expect(o[0], unittest.equals('foo')); | 1009 unittest.expect(o[0], unittest.equals('foo')); |
| 878 unittest.expect(o[1], unittest.equals('foo')); | 1010 unittest.expect(o[1], unittest.equals('foo')); |
| 879 } | 1011 } |
| 880 | 1012 |
| 881 buildUnnamed2241() { | 1013 core.int buildCounterManagedProperty = 0; |
| 1014 buildManagedProperty() { |
| 1015 var o = new api.ManagedProperty(); |
| 1016 buildCounterManagedProperty++; |
| 1017 if (buildCounterManagedProperty < 3) { |
| 1018 o.key = "foo"; |
| 1019 o.valueBool = true; |
| 1020 o.valueBundle = buildManagedPropertyBundle(); |
| 1021 o.valueBundleArray = buildUnnamed414(); |
| 1022 o.valueInteger = 42; |
| 1023 o.valueString = "foo"; |
| 1024 o.valueStringArray = buildUnnamed415(); |
| 1025 } |
| 1026 buildCounterManagedProperty--; |
| 1027 return o; |
| 1028 } |
| 1029 |
| 1030 checkManagedProperty(api.ManagedProperty o) { |
| 1031 buildCounterManagedProperty++; |
| 1032 if (buildCounterManagedProperty < 3) { |
| 1033 unittest.expect(o.key, unittest.equals('foo')); |
| 1034 unittest.expect(o.valueBool, unittest.isTrue); |
| 1035 checkManagedPropertyBundle(o.valueBundle); |
| 1036 checkUnnamed414(o.valueBundleArray); |
| 1037 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 1038 unittest.expect(o.valueString, unittest.equals('foo')); |
| 1039 checkUnnamed415(o.valueStringArray); |
| 1040 } |
| 1041 buildCounterManagedProperty--; |
| 1042 } |
| 1043 |
| 1044 buildUnnamed416() { |
| 1045 var o = new core.List<api.ManagedProperty>(); |
| 1046 o.add(buildManagedProperty()); |
| 1047 o.add(buildManagedProperty()); |
| 1048 return o; |
| 1049 } |
| 1050 |
| 1051 checkUnnamed416(core.List<api.ManagedProperty> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); |
| 1053 checkManagedProperty(o[0]); |
| 1054 checkManagedProperty(o[1]); |
| 1055 } |
| 1056 |
| 1057 core.int buildCounterManagedPropertyBundle = 0; |
| 1058 buildManagedPropertyBundle() { |
| 1059 var o = new api.ManagedPropertyBundle(); |
| 1060 buildCounterManagedPropertyBundle++; |
| 1061 if (buildCounterManagedPropertyBundle < 3) { |
| 1062 o.managedProperty = buildUnnamed416(); |
| 1063 } |
| 1064 buildCounterManagedPropertyBundle--; |
| 1065 return o; |
| 1066 } |
| 1067 |
| 1068 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { |
| 1069 buildCounterManagedPropertyBundle++; |
| 1070 if (buildCounterManagedPropertyBundle < 3) { |
| 1071 checkUnnamed416(o.managedProperty); |
| 1072 } |
| 1073 buildCounterManagedPropertyBundle--; |
| 1074 } |
| 1075 |
| 1076 buildUnnamed417() { |
| 882 var o = new core.List<core.String>(); | 1077 var o = new core.List<core.String>(); |
| 883 o.add("foo"); | 1078 o.add("foo"); |
| 884 o.add("foo"); | 1079 o.add("foo"); |
| 885 return o; | 1080 return o; |
| 886 } | 1081 } |
| 887 | 1082 |
| 888 checkUnnamed2241(core.List<core.String> o) { | 1083 checkUnnamed417(core.List<core.String> o) { |
| 889 unittest.expect(o, unittest.hasLength(2)); | 1084 unittest.expect(o, unittest.hasLength(2)); |
| 890 unittest.expect(o[0], unittest.equals('foo')); | 1085 unittest.expect(o[0], unittest.equals('foo')); |
| 891 unittest.expect(o[1], unittest.equals('foo')); | 1086 unittest.expect(o[1], unittest.equals('foo')); |
| 1087 } |
| 1088 |
| 1089 buildUnnamed418() { |
| 1090 var o = new core.List<core.String>(); |
| 1091 o.add("foo"); |
| 1092 o.add("foo"); |
| 1093 return o; |
| 1094 } |
| 1095 |
| 1096 checkUnnamed418(core.List<core.String> o) { |
| 1097 unittest.expect(o, unittest.hasLength(2)); |
| 1098 unittest.expect(o[0], unittest.equals('foo')); |
| 1099 unittest.expect(o[1], unittest.equals('foo')); |
| 892 } | 1100 } |
| 893 | 1101 |
| 894 core.int buildCounterNewPermissionsEvent = 0; | 1102 core.int buildCounterNewPermissionsEvent = 0; |
| 895 buildNewPermissionsEvent() { | 1103 buildNewPermissionsEvent() { |
| 896 var o = new api.NewPermissionsEvent(); | 1104 var o = new api.NewPermissionsEvent(); |
| 897 buildCounterNewPermissionsEvent++; | 1105 buildCounterNewPermissionsEvent++; |
| 898 if (buildCounterNewPermissionsEvent < 3) { | 1106 if (buildCounterNewPermissionsEvent < 3) { |
| 899 o.approvedPermissions = buildUnnamed2240(); | 1107 o.approvedPermissions = buildUnnamed417(); |
| 900 o.productId = "foo"; | 1108 o.productId = "foo"; |
| 901 o.requestedPermissions = buildUnnamed2241(); | 1109 o.requestedPermissions = buildUnnamed418(); |
| 902 } | 1110 } |
| 903 buildCounterNewPermissionsEvent--; | 1111 buildCounterNewPermissionsEvent--; |
| 904 return o; | 1112 return o; |
| 905 } | 1113 } |
| 906 | 1114 |
| 907 checkNewPermissionsEvent(api.NewPermissionsEvent o) { | 1115 checkNewPermissionsEvent(api.NewPermissionsEvent o) { |
| 908 buildCounterNewPermissionsEvent++; | 1116 buildCounterNewPermissionsEvent++; |
| 909 if (buildCounterNewPermissionsEvent < 3) { | 1117 if (buildCounterNewPermissionsEvent < 3) { |
| 910 checkUnnamed2240(o.approvedPermissions); | 1118 checkUnnamed417(o.approvedPermissions); |
| 911 unittest.expect(o.productId, unittest.equals('foo')); | 1119 unittest.expect(o.productId, unittest.equals('foo')); |
| 912 checkUnnamed2241(o.requestedPermissions); | 1120 checkUnnamed418(o.requestedPermissions); |
| 913 } | 1121 } |
| 914 buildCounterNewPermissionsEvent--; | 1122 buildCounterNewPermissionsEvent--; |
| 915 } | 1123 } |
| 916 | 1124 |
| 917 core.int buildCounterNotification = 0; | 1125 core.int buildCounterNotification = 0; |
| 918 buildNotification() { | 1126 buildNotification() { |
| 919 var o = new api.Notification(); | 1127 var o = new api.Notification(); |
| 920 buildCounterNotification++; | 1128 buildCounterNotification++; |
| 921 if (buildCounterNotification < 3) { | 1129 if (buildCounterNotification < 3) { |
| 922 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; | 1130 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 940 unittest.expect(o.enterpriseId, unittest.equals('foo')); | 1148 unittest.expect(o.enterpriseId, unittest.equals('foo')); |
| 941 checkInstallFailureEvent(o.installFailureEvent); | 1149 checkInstallFailureEvent(o.installFailureEvent); |
| 942 checkNewPermissionsEvent(o.newPermissionsEvent); | 1150 checkNewPermissionsEvent(o.newPermissionsEvent); |
| 943 checkProductApprovalEvent(o.productApprovalEvent); | 1151 checkProductApprovalEvent(o.productApprovalEvent); |
| 944 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); | 1152 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); |
| 945 unittest.expect(o.timestampMillis, unittest.equals('foo')); | 1153 unittest.expect(o.timestampMillis, unittest.equals('foo')); |
| 946 } | 1154 } |
| 947 buildCounterNotification--; | 1155 buildCounterNotification--; |
| 948 } | 1156 } |
| 949 | 1157 |
| 950 buildUnnamed2242() { | 1158 buildUnnamed419() { |
| 951 var o = new core.List<api.Notification>(); | 1159 var o = new core.List<api.Notification>(); |
| 952 o.add(buildNotification()); | 1160 o.add(buildNotification()); |
| 953 o.add(buildNotification()); | 1161 o.add(buildNotification()); |
| 954 return o; | 1162 return o; |
| 955 } | 1163 } |
| 956 | 1164 |
| 957 checkUnnamed2242(core.List<api.Notification> o) { | 1165 checkUnnamed419(core.List<api.Notification> o) { |
| 958 unittest.expect(o, unittest.hasLength(2)); | 1166 unittest.expect(o, unittest.hasLength(2)); |
| 959 checkNotification(o[0]); | 1167 checkNotification(o[0]); |
| 960 checkNotification(o[1]); | 1168 checkNotification(o[1]); |
| 961 } | 1169 } |
| 962 | 1170 |
| 963 core.int buildCounterNotificationSet = 0; | 1171 core.int buildCounterNotificationSet = 0; |
| 964 buildNotificationSet() { | 1172 buildNotificationSet() { |
| 965 var o = new api.NotificationSet(); | 1173 var o = new api.NotificationSet(); |
| 966 buildCounterNotificationSet++; | 1174 buildCounterNotificationSet++; |
| 967 if (buildCounterNotificationSet < 3) { | 1175 if (buildCounterNotificationSet < 3) { |
| 968 o.kind = "foo"; | 1176 o.kind = "foo"; |
| 969 o.notification = buildUnnamed2242(); | 1177 o.notification = buildUnnamed419(); |
| 970 o.notificationSetId = "foo"; | 1178 o.notificationSetId = "foo"; |
| 971 } | 1179 } |
| 972 buildCounterNotificationSet--; | 1180 buildCounterNotificationSet--; |
| 973 return o; | 1181 return o; |
| 974 } | 1182 } |
| 975 | 1183 |
| 976 checkNotificationSet(api.NotificationSet o) { | 1184 checkNotificationSet(api.NotificationSet o) { |
| 977 buildCounterNotificationSet++; | 1185 buildCounterNotificationSet++; |
| 978 if (buildCounterNotificationSet < 3) { | 1186 if (buildCounterNotificationSet < 3) { |
| 979 unittest.expect(o.kind, unittest.equals('foo')); | 1187 unittest.expect(o.kind, unittest.equals('foo')); |
| 980 checkUnnamed2242(o.notification); | 1188 checkUnnamed419(o.notification); |
| 981 unittest.expect(o.notificationSetId, unittest.equals('foo')); | 1189 unittest.expect(o.notificationSetId, unittest.equals('foo')); |
| 982 } | 1190 } |
| 983 buildCounterNotificationSet--; | 1191 buildCounterNotificationSet--; |
| 984 } | 1192 } |
| 985 | 1193 |
| 986 core.int buildCounterPageInfo = 0; | 1194 core.int buildCounterPageInfo = 0; |
| 987 buildPageInfo() { | 1195 buildPageInfo() { |
| 988 var o = new api.PageInfo(); | 1196 var o = new api.PageInfo(); |
| 989 buildCounterPageInfo++; | 1197 buildCounterPageInfo++; |
| 990 if (buildCounterPageInfo < 3) { | 1198 if (buildCounterPageInfo < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 buildCounterPermission++; | 1232 buildCounterPermission++; |
| 1025 if (buildCounterPermission < 3) { | 1233 if (buildCounterPermission < 3) { |
| 1026 unittest.expect(o.description, unittest.equals('foo')); | 1234 unittest.expect(o.description, unittest.equals('foo')); |
| 1027 unittest.expect(o.kind, unittest.equals('foo')); | 1235 unittest.expect(o.kind, unittest.equals('foo')); |
| 1028 unittest.expect(o.name, unittest.equals('foo')); | 1236 unittest.expect(o.name, unittest.equals('foo')); |
| 1029 unittest.expect(o.permissionId, unittest.equals('foo')); | 1237 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1030 } | 1238 } |
| 1031 buildCounterPermission--; | 1239 buildCounterPermission--; |
| 1032 } | 1240 } |
| 1033 | 1241 |
| 1034 buildUnnamed2243() { | 1242 buildUnnamed420() { |
| 1035 var o = new core.List<api.AppVersion>(); | 1243 var o = new core.List<api.AppVersion>(); |
| 1036 o.add(buildAppVersion()); | 1244 o.add(buildAppVersion()); |
| 1037 o.add(buildAppVersion()); | 1245 o.add(buildAppVersion()); |
| 1038 return o; | 1246 return o; |
| 1039 } | 1247 } |
| 1040 | 1248 |
| 1041 checkUnnamed2243(core.List<api.AppVersion> o) { | 1249 checkUnnamed420(core.List<api.AppVersion> o) { |
| 1042 unittest.expect(o, unittest.hasLength(2)); | 1250 unittest.expect(o, unittest.hasLength(2)); |
| 1043 checkAppVersion(o[0]); | 1251 checkAppVersion(o[0]); |
| 1044 checkAppVersion(o[1]); | 1252 checkAppVersion(o[1]); |
| 1045 } | 1253 } |
| 1046 | 1254 |
| 1047 core.int buildCounterProduct = 0; | 1255 core.int buildCounterProduct = 0; |
| 1048 buildProduct() { | 1256 buildProduct() { |
| 1049 var o = new api.Product(); | 1257 var o = new api.Product(); |
| 1050 buildCounterProduct++; | 1258 buildCounterProduct++; |
| 1051 if (buildCounterProduct < 3) { | 1259 if (buildCounterProduct < 3) { |
| 1052 o.appVersion = buildUnnamed2243(); | 1260 o.appVersion = buildUnnamed420(); |
| 1053 o.authorName = "foo"; | 1261 o.authorName = "foo"; |
| 1054 o.detailsUrl = "foo"; | 1262 o.detailsUrl = "foo"; |
| 1055 o.distributionChannel = "foo"; | 1263 o.distributionChannel = "foo"; |
| 1056 o.iconUrl = "foo"; | 1264 o.iconUrl = "foo"; |
| 1057 o.kind = "foo"; | 1265 o.kind = "foo"; |
| 1058 o.productId = "foo"; | 1266 o.productId = "foo"; |
| 1059 o.productPricing = "foo"; | 1267 o.productPricing = "foo"; |
| 1060 o.requiresContainerApp = true; | 1268 o.requiresContainerApp = true; |
| 1061 o.smallIconUrl = "foo"; | 1269 o.smallIconUrl = "foo"; |
| 1062 o.title = "foo"; | 1270 o.title = "foo"; |
| 1063 o.workDetailsUrl = "foo"; | 1271 o.workDetailsUrl = "foo"; |
| 1064 } | 1272 } |
| 1065 buildCounterProduct--; | 1273 buildCounterProduct--; |
| 1066 return o; | 1274 return o; |
| 1067 } | 1275 } |
| 1068 | 1276 |
| 1069 checkProduct(api.Product o) { | 1277 checkProduct(api.Product o) { |
| 1070 buildCounterProduct++; | 1278 buildCounterProduct++; |
| 1071 if (buildCounterProduct < 3) { | 1279 if (buildCounterProduct < 3) { |
| 1072 checkUnnamed2243(o.appVersion); | 1280 checkUnnamed420(o.appVersion); |
| 1073 unittest.expect(o.authorName, unittest.equals('foo')); | 1281 unittest.expect(o.authorName, unittest.equals('foo')); |
| 1074 unittest.expect(o.detailsUrl, unittest.equals('foo')); | 1282 unittest.expect(o.detailsUrl, unittest.equals('foo')); |
| 1075 unittest.expect(o.distributionChannel, unittest.equals('foo')); | 1283 unittest.expect(o.distributionChannel, unittest.equals('foo')); |
| 1076 unittest.expect(o.iconUrl, unittest.equals('foo')); | 1284 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 1077 unittest.expect(o.kind, unittest.equals('foo')); | 1285 unittest.expect(o.kind, unittest.equals('foo')); |
| 1078 unittest.expect(o.productId, unittest.equals('foo')); | 1286 unittest.expect(o.productId, unittest.equals('foo')); |
| 1079 unittest.expect(o.productPricing, unittest.equals('foo')); | 1287 unittest.expect(o.productPricing, unittest.equals('foo')); |
| 1080 unittest.expect(o.requiresContainerApp, unittest.isTrue); | 1288 unittest.expect(o.requiresContainerApp, unittest.isTrue); |
| 1081 unittest.expect(o.smallIconUrl, unittest.equals('foo')); | 1289 unittest.expect(o.smallIconUrl, unittest.equals('foo')); |
| 1082 unittest.expect(o.title, unittest.equals('foo')); | 1290 unittest.expect(o.title, unittest.equals('foo')); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 | 1349 |
| 1142 checkProductPermission(api.ProductPermission o) { | 1350 checkProductPermission(api.ProductPermission o) { |
| 1143 buildCounterProductPermission++; | 1351 buildCounterProductPermission++; |
| 1144 if (buildCounterProductPermission < 3) { | 1352 if (buildCounterProductPermission < 3) { |
| 1145 unittest.expect(o.permissionId, unittest.equals('foo')); | 1353 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1146 unittest.expect(o.state, unittest.equals('foo')); | 1354 unittest.expect(o.state, unittest.equals('foo')); |
| 1147 } | 1355 } |
| 1148 buildCounterProductPermission--; | 1356 buildCounterProductPermission--; |
| 1149 } | 1357 } |
| 1150 | 1358 |
| 1151 buildUnnamed2244() { | 1359 buildUnnamed421() { |
| 1152 var o = new core.List<api.ProductPermission>(); | 1360 var o = new core.List<api.ProductPermission>(); |
| 1153 o.add(buildProductPermission()); | 1361 o.add(buildProductPermission()); |
| 1154 o.add(buildProductPermission()); | 1362 o.add(buildProductPermission()); |
| 1155 return o; | 1363 return o; |
| 1156 } | 1364 } |
| 1157 | 1365 |
| 1158 checkUnnamed2244(core.List<api.ProductPermission> o) { | 1366 checkUnnamed421(core.List<api.ProductPermission> o) { |
| 1159 unittest.expect(o, unittest.hasLength(2)); | 1367 unittest.expect(o, unittest.hasLength(2)); |
| 1160 checkProductPermission(o[0]); | 1368 checkProductPermission(o[0]); |
| 1161 checkProductPermission(o[1]); | 1369 checkProductPermission(o[1]); |
| 1162 } | 1370 } |
| 1163 | 1371 |
| 1164 core.int buildCounterProductPermissions = 0; | 1372 core.int buildCounterProductPermissions = 0; |
| 1165 buildProductPermissions() { | 1373 buildProductPermissions() { |
| 1166 var o = new api.ProductPermissions(); | 1374 var o = new api.ProductPermissions(); |
| 1167 buildCounterProductPermissions++; | 1375 buildCounterProductPermissions++; |
| 1168 if (buildCounterProductPermissions < 3) { | 1376 if (buildCounterProductPermissions < 3) { |
| 1169 o.kind = "foo"; | 1377 o.kind = "foo"; |
| 1170 o.permission = buildUnnamed2244(); | 1378 o.permission = buildUnnamed421(); |
| 1171 o.productId = "foo"; | 1379 o.productId = "foo"; |
| 1172 } | 1380 } |
| 1173 buildCounterProductPermissions--; | 1381 buildCounterProductPermissions--; |
| 1174 return o; | 1382 return o; |
| 1175 } | 1383 } |
| 1176 | 1384 |
| 1177 checkProductPermissions(api.ProductPermissions o) { | 1385 checkProductPermissions(api.ProductPermissions o) { |
| 1178 buildCounterProductPermissions++; | 1386 buildCounterProductPermissions++; |
| 1179 if (buildCounterProductPermissions < 3) { | 1387 if (buildCounterProductPermissions < 3) { |
| 1180 unittest.expect(o.kind, unittest.equals('foo')); | 1388 unittest.expect(o.kind, unittest.equals('foo')); |
| 1181 checkUnnamed2244(o.permission); | 1389 checkUnnamed421(o.permission); |
| 1182 unittest.expect(o.productId, unittest.equals('foo')); | 1390 unittest.expect(o.productId, unittest.equals('foo')); |
| 1183 } | 1391 } |
| 1184 buildCounterProductPermissions--; | 1392 buildCounterProductPermissions--; |
| 1185 } | 1393 } |
| 1186 | 1394 |
| 1187 buildUnnamed2245() { | 1395 buildUnnamed422() { |
| 1188 var o = new core.List<core.String>(); | 1396 var o = new core.List<core.String>(); |
| 1189 o.add("foo"); | 1397 o.add("foo"); |
| 1190 o.add("foo"); | 1398 o.add("foo"); |
| 1191 return o; | 1399 return o; |
| 1192 } | 1400 } |
| 1193 | 1401 |
| 1194 checkUnnamed2245(core.List<core.String> o) { | 1402 checkUnnamed422(core.List<core.String> o) { |
| 1195 unittest.expect(o, unittest.hasLength(2)); | 1403 unittest.expect(o, unittest.hasLength(2)); |
| 1196 unittest.expect(o[0], unittest.equals('foo')); | 1404 unittest.expect(o[0], unittest.equals('foo')); |
| 1197 unittest.expect(o[1], unittest.equals('foo')); | 1405 unittest.expect(o[1], unittest.equals('foo')); |
| 1198 } | 1406 } |
| 1199 | 1407 |
| 1200 core.int buildCounterProductSet = 0; | 1408 core.int buildCounterProductSet = 0; |
| 1201 buildProductSet() { | 1409 buildProductSet() { |
| 1202 var o = new api.ProductSet(); | 1410 var o = new api.ProductSet(); |
| 1203 buildCounterProductSet++; | 1411 buildCounterProductSet++; |
| 1204 if (buildCounterProductSet < 3) { | 1412 if (buildCounterProductSet < 3) { |
| 1205 o.kind = "foo"; | 1413 o.kind = "foo"; |
| 1206 o.productId = buildUnnamed2245(); | 1414 o.productId = buildUnnamed422(); |
| 1207 } | 1415 } |
| 1208 buildCounterProductSet--; | 1416 buildCounterProductSet--; |
| 1209 return o; | 1417 return o; |
| 1210 } | 1418 } |
| 1211 | 1419 |
| 1212 checkProductSet(api.ProductSet o) { | 1420 checkProductSet(api.ProductSet o) { |
| 1213 buildCounterProductSet++; | 1421 buildCounterProductSet++; |
| 1214 if (buildCounterProductSet < 3) { | 1422 if (buildCounterProductSet < 3) { |
| 1215 unittest.expect(o.kind, unittest.equals('foo')); | 1423 unittest.expect(o.kind, unittest.equals('foo')); |
| 1216 checkUnnamed2245(o.productId); | 1424 checkUnnamed422(o.productId); |
| 1217 } | 1425 } |
| 1218 buildCounterProductSet--; | 1426 buildCounterProductSet--; |
| 1219 } | 1427 } |
| 1220 | 1428 |
| 1221 core.int buildCounterProductsApproveRequest = 0; | 1429 core.int buildCounterProductsApproveRequest = 0; |
| 1222 buildProductsApproveRequest() { | 1430 buildProductsApproveRequest() { |
| 1223 var o = new api.ProductsApproveRequest(); | 1431 var o = new api.ProductsApproveRequest(); |
| 1224 buildCounterProductsApproveRequest++; | 1432 buildCounterProductsApproveRequest++; |
| 1225 if (buildCounterProductsApproveRequest < 3) { | 1433 if (buildCounterProductsApproveRequest < 3) { |
| 1226 o.approvalUrlInfo = buildApprovalUrlInfo(); | 1434 o.approvalUrlInfo = buildApprovalUrlInfo(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1249 } | 1457 } |
| 1250 | 1458 |
| 1251 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { | 1459 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { |
| 1252 buildCounterProductsGenerateApprovalUrlResponse++; | 1460 buildCounterProductsGenerateApprovalUrlResponse++; |
| 1253 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { | 1461 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { |
| 1254 unittest.expect(o.url, unittest.equals('foo')); | 1462 unittest.expect(o.url, unittest.equals('foo')); |
| 1255 } | 1463 } |
| 1256 buildCounterProductsGenerateApprovalUrlResponse--; | 1464 buildCounterProductsGenerateApprovalUrlResponse--; |
| 1257 } | 1465 } |
| 1258 | 1466 |
| 1259 buildUnnamed2246() { | 1467 buildUnnamed423() { |
| 1260 var o = new core.List<api.Product>(); | 1468 var o = new core.List<api.Product>(); |
| 1261 o.add(buildProduct()); | 1469 o.add(buildProduct()); |
| 1262 o.add(buildProduct()); | 1470 o.add(buildProduct()); |
| 1263 return o; | 1471 return o; |
| 1264 } | 1472 } |
| 1265 | 1473 |
| 1266 checkUnnamed2246(core.List<api.Product> o) { | 1474 checkUnnamed423(core.List<api.Product> o) { |
| 1267 unittest.expect(o, unittest.hasLength(2)); | 1475 unittest.expect(o, unittest.hasLength(2)); |
| 1268 checkProduct(o[0]); | 1476 checkProduct(o[0]); |
| 1269 checkProduct(o[1]); | 1477 checkProduct(o[1]); |
| 1270 } | 1478 } |
| 1271 | 1479 |
| 1272 core.int buildCounterProductsListResponse = 0; | 1480 core.int buildCounterProductsListResponse = 0; |
| 1273 buildProductsListResponse() { | 1481 buildProductsListResponse() { |
| 1274 var o = new api.ProductsListResponse(); | 1482 var o = new api.ProductsListResponse(); |
| 1275 buildCounterProductsListResponse++; | 1483 buildCounterProductsListResponse++; |
| 1276 if (buildCounterProductsListResponse < 3) { | 1484 if (buildCounterProductsListResponse < 3) { |
| 1277 o.kind = "foo"; | 1485 o.kind = "foo"; |
| 1278 o.pageInfo = buildPageInfo(); | 1486 o.pageInfo = buildPageInfo(); |
| 1279 o.product = buildUnnamed2246(); | 1487 o.product = buildUnnamed423(); |
| 1280 o.tokenPagination = buildTokenPagination(); | 1488 o.tokenPagination = buildTokenPagination(); |
| 1281 } | 1489 } |
| 1282 buildCounterProductsListResponse--; | 1490 buildCounterProductsListResponse--; |
| 1283 return o; | 1491 return o; |
| 1284 } | 1492 } |
| 1285 | 1493 |
| 1286 checkProductsListResponse(api.ProductsListResponse o) { | 1494 checkProductsListResponse(api.ProductsListResponse o) { |
| 1287 buildCounterProductsListResponse++; | 1495 buildCounterProductsListResponse++; |
| 1288 if (buildCounterProductsListResponse < 3) { | 1496 if (buildCounterProductsListResponse < 3) { |
| 1289 unittest.expect(o.kind, unittest.equals('foo')); | 1497 unittest.expect(o.kind, unittest.equals('foo')); |
| 1290 checkPageInfo(o.pageInfo); | 1498 checkPageInfo(o.pageInfo); |
| 1291 checkUnnamed2246(o.product); | 1499 checkUnnamed423(o.product); |
| 1292 checkTokenPagination(o.tokenPagination); | 1500 checkTokenPagination(o.tokenPagination); |
| 1293 } | 1501 } |
| 1294 buildCounterProductsListResponse--; | 1502 buildCounterProductsListResponse--; |
| 1295 } | 1503 } |
| 1296 | 1504 |
| 1297 core.int buildCounterServiceAccount = 0; | 1505 core.int buildCounterServiceAccount = 0; |
| 1298 buildServiceAccount() { | 1506 buildServiceAccount() { |
| 1299 var o = new api.ServiceAccount(); | 1507 var o = new api.ServiceAccount(); |
| 1300 buildCounterServiceAccount++; | 1508 buildCounterServiceAccount++; |
| 1301 if (buildCounterServiceAccount < 3) { | 1509 if (buildCounterServiceAccount < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 buildCounterServiceAccountKey++; | 1543 buildCounterServiceAccountKey++; |
| 1336 if (buildCounterServiceAccountKey < 3) { | 1544 if (buildCounterServiceAccountKey < 3) { |
| 1337 unittest.expect(o.data, unittest.equals('foo')); | 1545 unittest.expect(o.data, unittest.equals('foo')); |
| 1338 unittest.expect(o.id, unittest.equals('foo')); | 1546 unittest.expect(o.id, unittest.equals('foo')); |
| 1339 unittest.expect(o.kind, unittest.equals('foo')); | 1547 unittest.expect(o.kind, unittest.equals('foo')); |
| 1340 unittest.expect(o.type, unittest.equals('foo')); | 1548 unittest.expect(o.type, unittest.equals('foo')); |
| 1341 } | 1549 } |
| 1342 buildCounterServiceAccountKey--; | 1550 buildCounterServiceAccountKey--; |
| 1343 } | 1551 } |
| 1344 | 1552 |
| 1345 buildUnnamed2247() { | 1553 buildUnnamed424() { |
| 1346 var o = new core.List<api.ServiceAccountKey>(); | 1554 var o = new core.List<api.ServiceAccountKey>(); |
| 1347 o.add(buildServiceAccountKey()); | 1555 o.add(buildServiceAccountKey()); |
| 1348 o.add(buildServiceAccountKey()); | 1556 o.add(buildServiceAccountKey()); |
| 1349 return o; | 1557 return o; |
| 1350 } | 1558 } |
| 1351 | 1559 |
| 1352 checkUnnamed2247(core.List<api.ServiceAccountKey> o) { | 1560 checkUnnamed424(core.List<api.ServiceAccountKey> o) { |
| 1353 unittest.expect(o, unittest.hasLength(2)); | 1561 unittest.expect(o, unittest.hasLength(2)); |
| 1354 checkServiceAccountKey(o[0]); | 1562 checkServiceAccountKey(o[0]); |
| 1355 checkServiceAccountKey(o[1]); | 1563 checkServiceAccountKey(o[1]); |
| 1356 } | 1564 } |
| 1357 | 1565 |
| 1358 core.int buildCounterServiceAccountKeysListResponse = 0; | 1566 core.int buildCounterServiceAccountKeysListResponse = 0; |
| 1359 buildServiceAccountKeysListResponse() { | 1567 buildServiceAccountKeysListResponse() { |
| 1360 var o = new api.ServiceAccountKeysListResponse(); | 1568 var o = new api.ServiceAccountKeysListResponse(); |
| 1361 buildCounterServiceAccountKeysListResponse++; | 1569 buildCounterServiceAccountKeysListResponse++; |
| 1362 if (buildCounterServiceAccountKeysListResponse < 3) { | 1570 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1363 o.serviceAccountKey = buildUnnamed2247(); | 1571 o.serviceAccountKey = buildUnnamed424(); |
| 1364 } | 1572 } |
| 1365 buildCounterServiceAccountKeysListResponse--; | 1573 buildCounterServiceAccountKeysListResponse--; |
| 1366 return o; | 1574 return o; |
| 1367 } | 1575 } |
| 1368 | 1576 |
| 1369 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { | 1577 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { |
| 1370 buildCounterServiceAccountKeysListResponse++; | 1578 buildCounterServiceAccountKeysListResponse++; |
| 1371 if (buildCounterServiceAccountKeysListResponse < 3) { | 1579 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1372 checkUnnamed2247(o.serviceAccountKey); | 1580 checkUnnamed424(o.serviceAccountKey); |
| 1373 } | 1581 } |
| 1374 buildCounterServiceAccountKeysListResponse--; | 1582 buildCounterServiceAccountKeysListResponse--; |
| 1375 } | 1583 } |
| 1376 | 1584 |
| 1377 core.int buildCounterSignupInfo = 0; | 1585 core.int buildCounterSignupInfo = 0; |
| 1378 buildSignupInfo() { | 1586 buildSignupInfo() { |
| 1379 var o = new api.SignupInfo(); | 1587 var o = new api.SignupInfo(); |
| 1380 buildCounterSignupInfo++; | 1588 buildCounterSignupInfo++; |
| 1381 if (buildCounterSignupInfo < 3) { | 1589 if (buildCounterSignupInfo < 3) { |
| 1382 o.completionToken = "foo"; | 1590 o.completionToken = "foo"; |
| 1383 o.kind = "foo"; | 1591 o.kind = "foo"; |
| 1384 o.url = "foo"; | 1592 o.url = "foo"; |
| 1385 } | 1593 } |
| 1386 buildCounterSignupInfo--; | 1594 buildCounterSignupInfo--; |
| 1387 return o; | 1595 return o; |
| 1388 } | 1596 } |
| 1389 | 1597 |
| 1390 checkSignupInfo(api.SignupInfo o) { | 1598 checkSignupInfo(api.SignupInfo o) { |
| 1391 buildCounterSignupInfo++; | 1599 buildCounterSignupInfo++; |
| 1392 if (buildCounterSignupInfo < 3) { | 1600 if (buildCounterSignupInfo < 3) { |
| 1393 unittest.expect(o.completionToken, unittest.equals('foo')); | 1601 unittest.expect(o.completionToken, unittest.equals('foo')); |
| 1394 unittest.expect(o.kind, unittest.equals('foo')); | 1602 unittest.expect(o.kind, unittest.equals('foo')); |
| 1395 unittest.expect(o.url, unittest.equals('foo')); | 1603 unittest.expect(o.url, unittest.equals('foo')); |
| 1396 } | 1604 } |
| 1397 buildCounterSignupInfo--; | 1605 buildCounterSignupInfo--; |
| 1398 } | 1606 } |
| 1399 | 1607 |
| 1400 buildUnnamed2248() { | 1608 buildUnnamed425() { |
| 1401 var o = new core.List<api.LocalizedText>(); | 1609 var o = new core.List<api.LocalizedText>(); |
| 1402 o.add(buildLocalizedText()); | 1610 o.add(buildLocalizedText()); |
| 1403 o.add(buildLocalizedText()); | 1611 o.add(buildLocalizedText()); |
| 1404 return o; | 1612 return o; |
| 1405 } | 1613 } |
| 1406 | 1614 |
| 1407 checkUnnamed2248(core.List<api.LocalizedText> o) { | 1615 checkUnnamed425(core.List<api.LocalizedText> o) { |
| 1408 unittest.expect(o, unittest.hasLength(2)); | 1616 unittest.expect(o, unittest.hasLength(2)); |
| 1409 checkLocalizedText(o[0]); | 1617 checkLocalizedText(o[0]); |
| 1410 checkLocalizedText(o[1]); | 1618 checkLocalizedText(o[1]); |
| 1411 } | 1619 } |
| 1412 | 1620 |
| 1413 buildUnnamed2249() { | 1621 buildUnnamed426() { |
| 1414 var o = new core.List<core.String>(); | 1622 var o = new core.List<core.String>(); |
| 1415 o.add("foo"); | 1623 o.add("foo"); |
| 1416 o.add("foo"); | 1624 o.add("foo"); |
| 1417 return o; | 1625 return o; |
| 1418 } | 1626 } |
| 1419 | 1627 |
| 1420 checkUnnamed2249(core.List<core.String> o) { | 1628 checkUnnamed426(core.List<core.String> o) { |
| 1421 unittest.expect(o, unittest.hasLength(2)); | 1629 unittest.expect(o, unittest.hasLength(2)); |
| 1422 unittest.expect(o[0], unittest.equals('foo')); | 1630 unittest.expect(o[0], unittest.equals('foo')); |
| 1423 unittest.expect(o[1], unittest.equals('foo')); | 1631 unittest.expect(o[1], unittest.equals('foo')); |
| 1424 } | 1632 } |
| 1425 | 1633 |
| 1426 core.int buildCounterStoreCluster = 0; | 1634 core.int buildCounterStoreCluster = 0; |
| 1427 buildStoreCluster() { | 1635 buildStoreCluster() { |
| 1428 var o = new api.StoreCluster(); | 1636 var o = new api.StoreCluster(); |
| 1429 buildCounterStoreCluster++; | 1637 buildCounterStoreCluster++; |
| 1430 if (buildCounterStoreCluster < 3) { | 1638 if (buildCounterStoreCluster < 3) { |
| 1431 o.id = "foo"; | 1639 o.id = "foo"; |
| 1432 o.kind = "foo"; | 1640 o.kind = "foo"; |
| 1433 o.name = buildUnnamed2248(); | 1641 o.name = buildUnnamed425(); |
| 1434 o.orderInPage = "foo"; | 1642 o.orderInPage = "foo"; |
| 1435 o.productId = buildUnnamed2249(); | 1643 o.productId = buildUnnamed426(); |
| 1436 } | 1644 } |
| 1437 buildCounterStoreCluster--; | 1645 buildCounterStoreCluster--; |
| 1438 return o; | 1646 return o; |
| 1439 } | 1647 } |
| 1440 | 1648 |
| 1441 checkStoreCluster(api.StoreCluster o) { | 1649 checkStoreCluster(api.StoreCluster o) { |
| 1442 buildCounterStoreCluster++; | 1650 buildCounterStoreCluster++; |
| 1443 if (buildCounterStoreCluster < 3) { | 1651 if (buildCounterStoreCluster < 3) { |
| 1444 unittest.expect(o.id, unittest.equals('foo')); | 1652 unittest.expect(o.id, unittest.equals('foo')); |
| 1445 unittest.expect(o.kind, unittest.equals('foo')); | 1653 unittest.expect(o.kind, unittest.equals('foo')); |
| 1446 checkUnnamed2248(o.name); | 1654 checkUnnamed425(o.name); |
| 1447 unittest.expect(o.orderInPage, unittest.equals('foo')); | 1655 unittest.expect(o.orderInPage, unittest.equals('foo')); |
| 1448 checkUnnamed2249(o.productId); | 1656 checkUnnamed426(o.productId); |
| 1449 } | 1657 } |
| 1450 buildCounterStoreCluster--; | 1658 buildCounterStoreCluster--; |
| 1451 } | 1659 } |
| 1452 | 1660 |
| 1453 core.int buildCounterStoreLayout = 0; | 1661 core.int buildCounterStoreLayout = 0; |
| 1454 buildStoreLayout() { | 1662 buildStoreLayout() { |
| 1455 var o = new api.StoreLayout(); | 1663 var o = new api.StoreLayout(); |
| 1456 buildCounterStoreLayout++; | 1664 buildCounterStoreLayout++; |
| 1457 if (buildCounterStoreLayout < 3) { | 1665 if (buildCounterStoreLayout < 3) { |
| 1458 o.homepageId = "foo"; | 1666 o.homepageId = "foo"; |
| 1459 o.kind = "foo"; | 1667 o.kind = "foo"; |
| 1460 } | 1668 } |
| 1461 buildCounterStoreLayout--; | 1669 buildCounterStoreLayout--; |
| 1462 return o; | 1670 return o; |
| 1463 } | 1671 } |
| 1464 | 1672 |
| 1465 checkStoreLayout(api.StoreLayout o) { | 1673 checkStoreLayout(api.StoreLayout o) { |
| 1466 buildCounterStoreLayout++; | 1674 buildCounterStoreLayout++; |
| 1467 if (buildCounterStoreLayout < 3) { | 1675 if (buildCounterStoreLayout < 3) { |
| 1468 unittest.expect(o.homepageId, unittest.equals('foo')); | 1676 unittest.expect(o.homepageId, unittest.equals('foo')); |
| 1469 unittest.expect(o.kind, unittest.equals('foo')); | 1677 unittest.expect(o.kind, unittest.equals('foo')); |
| 1470 } | 1678 } |
| 1471 buildCounterStoreLayout--; | 1679 buildCounterStoreLayout--; |
| 1472 } | 1680 } |
| 1473 | 1681 |
| 1474 buildUnnamed2250() { | 1682 buildUnnamed427() { |
| 1475 var o = new core.List<api.StoreCluster>(); | 1683 var o = new core.List<api.StoreCluster>(); |
| 1476 o.add(buildStoreCluster()); | 1684 o.add(buildStoreCluster()); |
| 1477 o.add(buildStoreCluster()); | 1685 o.add(buildStoreCluster()); |
| 1478 return o; | 1686 return o; |
| 1479 } | 1687 } |
| 1480 | 1688 |
| 1481 checkUnnamed2250(core.List<api.StoreCluster> o) { | 1689 checkUnnamed427(core.List<api.StoreCluster> o) { |
| 1482 unittest.expect(o, unittest.hasLength(2)); | 1690 unittest.expect(o, unittest.hasLength(2)); |
| 1483 checkStoreCluster(o[0]); | 1691 checkStoreCluster(o[0]); |
| 1484 checkStoreCluster(o[1]); | 1692 checkStoreCluster(o[1]); |
| 1485 } | 1693 } |
| 1486 | 1694 |
| 1487 core.int buildCounterStoreLayoutClustersListResponse = 0; | 1695 core.int buildCounterStoreLayoutClustersListResponse = 0; |
| 1488 buildStoreLayoutClustersListResponse() { | 1696 buildStoreLayoutClustersListResponse() { |
| 1489 var o = new api.StoreLayoutClustersListResponse(); | 1697 var o = new api.StoreLayoutClustersListResponse(); |
| 1490 buildCounterStoreLayoutClustersListResponse++; | 1698 buildCounterStoreLayoutClustersListResponse++; |
| 1491 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1699 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1492 o.cluster = buildUnnamed2250(); | 1700 o.cluster = buildUnnamed427(); |
| 1493 o.kind = "foo"; | 1701 o.kind = "foo"; |
| 1494 } | 1702 } |
| 1495 buildCounterStoreLayoutClustersListResponse--; | 1703 buildCounterStoreLayoutClustersListResponse--; |
| 1496 return o; | 1704 return o; |
| 1497 } | 1705 } |
| 1498 | 1706 |
| 1499 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { | 1707 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { |
| 1500 buildCounterStoreLayoutClustersListResponse++; | 1708 buildCounterStoreLayoutClustersListResponse++; |
| 1501 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1709 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1502 checkUnnamed2250(o.cluster); | 1710 checkUnnamed427(o.cluster); |
| 1503 unittest.expect(o.kind, unittest.equals('foo')); | 1711 unittest.expect(o.kind, unittest.equals('foo')); |
| 1504 } | 1712 } |
| 1505 buildCounterStoreLayoutClustersListResponse--; | 1713 buildCounterStoreLayoutClustersListResponse--; |
| 1506 } | 1714 } |
| 1507 | 1715 |
| 1508 buildUnnamed2251() { | 1716 buildUnnamed428() { |
| 1509 var o = new core.List<api.StorePage>(); | 1717 var o = new core.List<api.StorePage>(); |
| 1510 o.add(buildStorePage()); | 1718 o.add(buildStorePage()); |
| 1511 o.add(buildStorePage()); | 1719 o.add(buildStorePage()); |
| 1512 return o; | 1720 return o; |
| 1513 } | 1721 } |
| 1514 | 1722 |
| 1515 checkUnnamed2251(core.List<api.StorePage> o) { | 1723 checkUnnamed428(core.List<api.StorePage> o) { |
| 1516 unittest.expect(o, unittest.hasLength(2)); | 1724 unittest.expect(o, unittest.hasLength(2)); |
| 1517 checkStorePage(o[0]); | 1725 checkStorePage(o[0]); |
| 1518 checkStorePage(o[1]); | 1726 checkStorePage(o[1]); |
| 1519 } | 1727 } |
| 1520 | 1728 |
| 1521 core.int buildCounterStoreLayoutPagesListResponse = 0; | 1729 core.int buildCounterStoreLayoutPagesListResponse = 0; |
| 1522 buildStoreLayoutPagesListResponse() { | 1730 buildStoreLayoutPagesListResponse() { |
| 1523 var o = new api.StoreLayoutPagesListResponse(); | 1731 var o = new api.StoreLayoutPagesListResponse(); |
| 1524 buildCounterStoreLayoutPagesListResponse++; | 1732 buildCounterStoreLayoutPagesListResponse++; |
| 1525 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1733 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1526 o.kind = "foo"; | 1734 o.kind = "foo"; |
| 1527 o.page = buildUnnamed2251(); | 1735 o.page = buildUnnamed428(); |
| 1528 } | 1736 } |
| 1529 buildCounterStoreLayoutPagesListResponse--; | 1737 buildCounterStoreLayoutPagesListResponse--; |
| 1530 return o; | 1738 return o; |
| 1531 } | 1739 } |
| 1532 | 1740 |
| 1533 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { | 1741 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { |
| 1534 buildCounterStoreLayoutPagesListResponse++; | 1742 buildCounterStoreLayoutPagesListResponse++; |
| 1535 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1743 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1536 unittest.expect(o.kind, unittest.equals('foo')); | 1744 unittest.expect(o.kind, unittest.equals('foo')); |
| 1537 checkUnnamed2251(o.page); | 1745 checkUnnamed428(o.page); |
| 1538 } | 1746 } |
| 1539 buildCounterStoreLayoutPagesListResponse--; | 1747 buildCounterStoreLayoutPagesListResponse--; |
| 1540 } | 1748 } |
| 1541 | 1749 |
| 1542 buildUnnamed2252() { | 1750 buildUnnamed429() { |
| 1543 var o = new core.List<core.String>(); | 1751 var o = new core.List<core.String>(); |
| 1544 o.add("foo"); | 1752 o.add("foo"); |
| 1545 o.add("foo"); | 1753 o.add("foo"); |
| 1546 return o; | 1754 return o; |
| 1547 } | 1755 } |
| 1548 | 1756 |
| 1549 checkUnnamed2252(core.List<core.String> o) { | 1757 checkUnnamed429(core.List<core.String> o) { |
| 1550 unittest.expect(o, unittest.hasLength(2)); | 1758 unittest.expect(o, unittest.hasLength(2)); |
| 1551 unittest.expect(o[0], unittest.equals('foo')); | 1759 unittest.expect(o[0], unittest.equals('foo')); |
| 1552 unittest.expect(o[1], unittest.equals('foo')); | 1760 unittest.expect(o[1], unittest.equals('foo')); |
| 1553 } | 1761 } |
| 1554 | 1762 |
| 1555 buildUnnamed2253() { | 1763 buildUnnamed430() { |
| 1556 var o = new core.List<api.LocalizedText>(); | 1764 var o = new core.List<api.LocalizedText>(); |
| 1557 o.add(buildLocalizedText()); | 1765 o.add(buildLocalizedText()); |
| 1558 o.add(buildLocalizedText()); | 1766 o.add(buildLocalizedText()); |
| 1559 return o; | 1767 return o; |
| 1560 } | 1768 } |
| 1561 | 1769 |
| 1562 checkUnnamed2253(core.List<api.LocalizedText> o) { | 1770 checkUnnamed430(core.List<api.LocalizedText> o) { |
| 1563 unittest.expect(o, unittest.hasLength(2)); | 1771 unittest.expect(o, unittest.hasLength(2)); |
| 1564 checkLocalizedText(o[0]); | 1772 checkLocalizedText(o[0]); |
| 1565 checkLocalizedText(o[1]); | 1773 checkLocalizedText(o[1]); |
| 1566 } | 1774 } |
| 1567 | 1775 |
| 1568 core.int buildCounterStorePage = 0; | 1776 core.int buildCounterStorePage = 0; |
| 1569 buildStorePage() { | 1777 buildStorePage() { |
| 1570 var o = new api.StorePage(); | 1778 var o = new api.StorePage(); |
| 1571 buildCounterStorePage++; | 1779 buildCounterStorePage++; |
| 1572 if (buildCounterStorePage < 3) { | 1780 if (buildCounterStorePage < 3) { |
| 1573 o.id = "foo"; | 1781 o.id = "foo"; |
| 1574 o.kind = "foo"; | 1782 o.kind = "foo"; |
| 1575 o.link = buildUnnamed2252(); | 1783 o.link = buildUnnamed429(); |
| 1576 o.name = buildUnnamed2253(); | 1784 o.name = buildUnnamed430(); |
| 1577 } | 1785 } |
| 1578 buildCounterStorePage--; | 1786 buildCounterStorePage--; |
| 1579 return o; | 1787 return o; |
| 1580 } | 1788 } |
| 1581 | 1789 |
| 1582 checkStorePage(api.StorePage o) { | 1790 checkStorePage(api.StorePage o) { |
| 1583 buildCounterStorePage++; | 1791 buildCounterStorePage++; |
| 1584 if (buildCounterStorePage < 3) { | 1792 if (buildCounterStorePage < 3) { |
| 1585 unittest.expect(o.id, unittest.equals('foo')); | 1793 unittest.expect(o.id, unittest.equals('foo')); |
| 1586 unittest.expect(o.kind, unittest.equals('foo')); | 1794 unittest.expect(o.kind, unittest.equals('foo')); |
| 1587 checkUnnamed2252(o.link); | 1795 checkUnnamed429(o.link); |
| 1588 checkUnnamed2253(o.name); | 1796 checkUnnamed430(o.name); |
| 1589 } | 1797 } |
| 1590 buildCounterStorePage--; | 1798 buildCounterStorePage--; |
| 1591 } | 1799 } |
| 1592 | 1800 |
| 1593 core.int buildCounterTokenPagination = 0; | 1801 core.int buildCounterTokenPagination = 0; |
| 1594 buildTokenPagination() { | 1802 buildTokenPagination() { |
| 1595 var o = new api.TokenPagination(); | 1803 var o = new api.TokenPagination(); |
| 1596 buildCounterTokenPagination++; | 1804 buildCounterTokenPagination++; |
| 1597 if (buildCounterTokenPagination < 3) { | 1805 if (buildCounterTokenPagination < 3) { |
| 1598 o.nextPageToken = "foo"; | 1806 o.nextPageToken = "foo"; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 checkUserToken(api.UserToken o) { | 1866 checkUserToken(api.UserToken o) { |
| 1659 buildCounterUserToken++; | 1867 buildCounterUserToken++; |
| 1660 if (buildCounterUserToken < 3) { | 1868 if (buildCounterUserToken < 3) { |
| 1661 unittest.expect(o.kind, unittest.equals('foo')); | 1869 unittest.expect(o.kind, unittest.equals('foo')); |
| 1662 unittest.expect(o.token, unittest.equals('foo')); | 1870 unittest.expect(o.token, unittest.equals('foo')); |
| 1663 unittest.expect(o.userId, unittest.equals('foo')); | 1871 unittest.expect(o.userId, unittest.equals('foo')); |
| 1664 } | 1872 } |
| 1665 buildCounterUserToken--; | 1873 buildCounterUserToken--; |
| 1666 } | 1874 } |
| 1667 | 1875 |
| 1668 buildUnnamed2254() { | 1876 buildUnnamed431() { |
| 1669 var o = new core.List<api.User>(); | 1877 var o = new core.List<api.User>(); |
| 1670 o.add(buildUser()); | 1878 o.add(buildUser()); |
| 1671 o.add(buildUser()); | 1879 o.add(buildUser()); |
| 1672 return o; | 1880 return o; |
| 1673 } | 1881 } |
| 1674 | 1882 |
| 1675 checkUnnamed2254(core.List<api.User> o) { | 1883 checkUnnamed431(core.List<api.User> o) { |
| 1676 unittest.expect(o, unittest.hasLength(2)); | 1884 unittest.expect(o, unittest.hasLength(2)); |
| 1677 checkUser(o[0]); | 1885 checkUser(o[0]); |
| 1678 checkUser(o[1]); | 1886 checkUser(o[1]); |
| 1679 } | 1887 } |
| 1680 | 1888 |
| 1681 core.int buildCounterUsersListResponse = 0; | 1889 core.int buildCounterUsersListResponse = 0; |
| 1682 buildUsersListResponse() { | 1890 buildUsersListResponse() { |
| 1683 var o = new api.UsersListResponse(); | 1891 var o = new api.UsersListResponse(); |
| 1684 buildCounterUsersListResponse++; | 1892 buildCounterUsersListResponse++; |
| 1685 if (buildCounterUsersListResponse < 3) { | 1893 if (buildCounterUsersListResponse < 3) { |
| 1686 o.kind = "foo"; | 1894 o.kind = "foo"; |
| 1687 o.user = buildUnnamed2254(); | 1895 o.user = buildUnnamed431(); |
| 1688 } | 1896 } |
| 1689 buildCounterUsersListResponse--; | 1897 buildCounterUsersListResponse--; |
| 1690 return o; | 1898 return o; |
| 1691 } | 1899 } |
| 1692 | 1900 |
| 1693 checkUsersListResponse(api.UsersListResponse o) { | 1901 checkUsersListResponse(api.UsersListResponse o) { |
| 1694 buildCounterUsersListResponse++; | 1902 buildCounterUsersListResponse++; |
| 1695 if (buildCounterUsersListResponse < 3) { | 1903 if (buildCounterUsersListResponse < 3) { |
| 1696 unittest.expect(o.kind, unittest.equals('foo')); | 1904 unittest.expect(o.kind, unittest.equals('foo')); |
| 1697 checkUnnamed2254(o.user); | 1905 checkUnnamed431(o.user); |
| 1698 } | 1906 } |
| 1699 buildCounterUsersListResponse--; | 1907 buildCounterUsersListResponse--; |
| 1700 } | 1908 } |
| 1701 | 1909 |
| 1702 | 1910 |
| 1703 main() { | 1911 main() { |
| 1704 unittest.group("obj-schema-Administrator", () { | 1912 unittest.group("obj-schema-Administrator", () { |
| 1705 unittest.test("to-json--from-json", () { | 1913 unittest.test("to-json--from-json", () { |
| 1706 var o = buildAdministrator(); | 1914 var o = buildAdministrator(); |
| 1707 var od = new api.Administrator.fromJson(o.toJson()); | 1915 var od = new api.Administrator.fromJson(o.toJson()); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 | 2154 |
| 1947 unittest.group("obj-schema-LocalizedText", () { | 2155 unittest.group("obj-schema-LocalizedText", () { |
| 1948 unittest.test("to-json--from-json", () { | 2156 unittest.test("to-json--from-json", () { |
| 1949 var o = buildLocalizedText(); | 2157 var o = buildLocalizedText(); |
| 1950 var od = new api.LocalizedText.fromJson(o.toJson()); | 2158 var od = new api.LocalizedText.fromJson(o.toJson()); |
| 1951 checkLocalizedText(od); | 2159 checkLocalizedText(od); |
| 1952 }); | 2160 }); |
| 1953 }); | 2161 }); |
| 1954 | 2162 |
| 1955 | 2163 |
| 2164 unittest.group("obj-schema-ManagedConfiguration", () { |
| 2165 unittest.test("to-json--from-json", () { |
| 2166 var o = buildManagedConfiguration(); |
| 2167 var od = new api.ManagedConfiguration.fromJson(o.toJson()); |
| 2168 checkManagedConfiguration(od); |
| 2169 }); |
| 2170 }); |
| 2171 |
| 2172 |
| 2173 unittest.group("obj-schema-ManagedConfigurationsForDeviceListResponse", () { |
| 2174 unittest.test("to-json--from-json", () { |
| 2175 var o = buildManagedConfigurationsForDeviceListResponse(); |
| 2176 var od = new api.ManagedConfigurationsForDeviceListResponse.fromJson(o.toJ
son()); |
| 2177 checkManagedConfigurationsForDeviceListResponse(od); |
| 2178 }); |
| 2179 }); |
| 2180 |
| 2181 |
| 2182 unittest.group("obj-schema-ManagedConfigurationsForUserListResponse", () { |
| 2183 unittest.test("to-json--from-json", () { |
| 2184 var o = buildManagedConfigurationsForUserListResponse(); |
| 2185 var od = new api.ManagedConfigurationsForUserListResponse.fromJson(o.toJso
n()); |
| 2186 checkManagedConfigurationsForUserListResponse(od); |
| 2187 }); |
| 2188 }); |
| 2189 |
| 2190 |
| 2191 unittest.group("obj-schema-ManagedProperty", () { |
| 2192 unittest.test("to-json--from-json", () { |
| 2193 var o = buildManagedProperty(); |
| 2194 var od = new api.ManagedProperty.fromJson(o.toJson()); |
| 2195 checkManagedProperty(od); |
| 2196 }); |
| 2197 }); |
| 2198 |
| 2199 |
| 2200 unittest.group("obj-schema-ManagedPropertyBundle", () { |
| 2201 unittest.test("to-json--from-json", () { |
| 2202 var o = buildManagedPropertyBundle(); |
| 2203 var od = new api.ManagedPropertyBundle.fromJson(o.toJson()); |
| 2204 checkManagedPropertyBundle(od); |
| 2205 }); |
| 2206 }); |
| 2207 |
| 2208 |
| 1956 unittest.group("obj-schema-NewPermissionsEvent", () { | 2209 unittest.group("obj-schema-NewPermissionsEvent", () { |
| 1957 unittest.test("to-json--from-json", () { | 2210 unittest.test("to-json--from-json", () { |
| 1958 var o = buildNewPermissionsEvent(); | 2211 var o = buildNewPermissionsEvent(); |
| 1959 var od = new api.NewPermissionsEvent.fromJson(o.toJson()); | 2212 var od = new api.NewPermissionsEvent.fromJson(o.toJson()); |
| 1960 checkNewPermissionsEvent(od); | 2213 checkNewPermissionsEvent(od); |
| 1961 }); | 2214 }); |
| 1962 }); | 2215 }); |
| 1963 | 2216 |
| 1964 | 2217 |
| 1965 unittest.group("obj-schema-Notification", () { | 2218 unittest.group("obj-schema-Notification", () { |
| (...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4788 return new async.Future.value(stringResponse(200, h, resp)); | 5041 return new async.Future.value(stringResponse(200, h, resp)); |
| 4789 }), true); | 5042 }), true); |
| 4790 res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_in
stallId).then(unittest.expectAsync(((api.Install response) { | 5043 res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_in
stallId).then(unittest.expectAsync(((api.Install response) { |
| 4791 checkInstall(response); | 5044 checkInstall(response); |
| 4792 }))); | 5045 }))); |
| 4793 }); | 5046 }); |
| 4794 | 5047 |
| 4795 }); | 5048 }); |
| 4796 | 5049 |
| 4797 | 5050 |
| 5051 unittest.group("resource-ManagedconfigurationsfordeviceResourceApi", () { |
| 5052 unittest.test("method--delete", () { |
| 5053 |
| 5054 var mock = new HttpServerMock(); |
| 5055 api.ManagedconfigurationsfordeviceResourceApi res = new api.Androidenterpr
iseApi(mock).managedconfigurationsfordevice; |
| 5056 var arg_enterpriseId = "foo"; |
| 5057 var arg_userId = "foo"; |
| 5058 var arg_deviceId = "foo"; |
| 5059 var arg_managedConfigurationForDeviceId = "foo"; |
| 5060 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5061 var path = (req.url).path; |
| 5062 var pathOffset = 0; |
| 5063 var index; |
| 5064 var subPart; |
| 5065 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5066 pathOffset += 1; |
| 5067 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5068 pathOffset += 21; |
| 5069 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5070 pathOffset += 12; |
| 5071 index = path.indexOf("/users/", pathOffset); |
| 5072 unittest.expect(index >= 0, unittest.isTrue); |
| 5073 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5074 pathOffset = index; |
| 5075 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5076 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5077 pathOffset += 7; |
| 5078 index = path.indexOf("/devices/", pathOffset); |
| 5079 unittest.expect(index >= 0, unittest.isTrue); |
| 5080 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5081 pathOffset = index; |
| 5082 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5083 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/devices/")); |
| 5084 pathOffset += 9; |
| 5085 index = path.indexOf("/managedConfigurationsForDevice/", pathOffset); |
| 5086 unittest.expect(index >= 0, unittest.isTrue); |
| 5087 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5088 pathOffset = index; |
| 5089 unittest.expect(subPart, unittest.equals("$arg_deviceId")); |
| 5090 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("/managedConfigurationsForDevice/")); |
| 5091 pathOffset += 32; |
| 5092 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5093 pathOffset = path.length; |
| 5094 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForDe
viceId")); |
| 5095 |
| 5096 var query = (req.url).query; |
| 5097 var queryOffset = 0; |
| 5098 var queryMap = {}; |
| 5099 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5100 parseBool(n) { |
| 5101 if (n == "true") return true; |
| 5102 if (n == "false") return false; |
| 5103 if (n == null) return null; |
| 5104 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5105 } |
| 5106 if (query.length > 0) { |
| 5107 for (var part in query.split("&")) { |
| 5108 var keyvalue = part.split("="); |
| 5109 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5110 } |
| 5111 } |
| 5112 |
| 5113 |
| 5114 var h = { |
| 5115 "content-type" : "application/json; charset=utf-8", |
| 5116 }; |
| 5117 var resp = ""; |
| 5118 return new async.Future.value(stringResponse(200, h, resp)); |
| 5119 }), true); |
| 5120 res.delete(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigur
ationForDeviceId).then(unittest.expectAsync((_) {})); |
| 5121 }); |
| 5122 |
| 5123 unittest.test("method--get", () { |
| 5124 |
| 5125 var mock = new HttpServerMock(); |
| 5126 api.ManagedconfigurationsfordeviceResourceApi res = new api.Androidenterpr
iseApi(mock).managedconfigurationsfordevice; |
| 5127 var arg_enterpriseId = "foo"; |
| 5128 var arg_userId = "foo"; |
| 5129 var arg_deviceId = "foo"; |
| 5130 var arg_managedConfigurationForDeviceId = "foo"; |
| 5131 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5132 var path = (req.url).path; |
| 5133 var pathOffset = 0; |
| 5134 var index; |
| 5135 var subPart; |
| 5136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5137 pathOffset += 1; |
| 5138 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5139 pathOffset += 21; |
| 5140 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5141 pathOffset += 12; |
| 5142 index = path.indexOf("/users/", pathOffset); |
| 5143 unittest.expect(index >= 0, unittest.isTrue); |
| 5144 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5145 pathOffset = index; |
| 5146 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5147 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5148 pathOffset += 7; |
| 5149 index = path.indexOf("/devices/", pathOffset); |
| 5150 unittest.expect(index >= 0, unittest.isTrue); |
| 5151 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5152 pathOffset = index; |
| 5153 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5154 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/devices/")); |
| 5155 pathOffset += 9; |
| 5156 index = path.indexOf("/managedConfigurationsForDevice/", pathOffset); |
| 5157 unittest.expect(index >= 0, unittest.isTrue); |
| 5158 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5159 pathOffset = index; |
| 5160 unittest.expect(subPart, unittest.equals("$arg_deviceId")); |
| 5161 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("/managedConfigurationsForDevice/")); |
| 5162 pathOffset += 32; |
| 5163 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5164 pathOffset = path.length; |
| 5165 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForDe
viceId")); |
| 5166 |
| 5167 var query = (req.url).query; |
| 5168 var queryOffset = 0; |
| 5169 var queryMap = {}; |
| 5170 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5171 parseBool(n) { |
| 5172 if (n == "true") return true; |
| 5173 if (n == "false") return false; |
| 5174 if (n == null) return null; |
| 5175 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5176 } |
| 5177 if (query.length > 0) { |
| 5178 for (var part in query.split("&")) { |
| 5179 var keyvalue = part.split("="); |
| 5180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5181 } |
| 5182 } |
| 5183 |
| 5184 |
| 5185 var h = { |
| 5186 "content-type" : "application/json; charset=utf-8", |
| 5187 }; |
| 5188 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5189 return new async.Future.value(stringResponse(200, h, resp)); |
| 5190 }), true); |
| 5191 res.get(arg_enterpriseId, arg_userId, arg_deviceId, arg_managedConfigurati
onForDeviceId).then(unittest.expectAsync(((api.ManagedConfiguration response) { |
| 5192 checkManagedConfiguration(response); |
| 5193 }))); |
| 5194 }); |
| 5195 |
| 5196 unittest.test("method--list", () { |
| 5197 |
| 5198 var mock = new HttpServerMock(); |
| 5199 api.ManagedconfigurationsfordeviceResourceApi res = new api.Androidenterpr
iseApi(mock).managedconfigurationsfordevice; |
| 5200 var arg_enterpriseId = "foo"; |
| 5201 var arg_userId = "foo"; |
| 5202 var arg_deviceId = "foo"; |
| 5203 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5204 var path = (req.url).path; |
| 5205 var pathOffset = 0; |
| 5206 var index; |
| 5207 var subPart; |
| 5208 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5209 pathOffset += 1; |
| 5210 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5211 pathOffset += 21; |
| 5212 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5213 pathOffset += 12; |
| 5214 index = path.indexOf("/users/", pathOffset); |
| 5215 unittest.expect(index >= 0, unittest.isTrue); |
| 5216 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5217 pathOffset = index; |
| 5218 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5219 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5220 pathOffset += 7; |
| 5221 index = path.indexOf("/devices/", pathOffset); |
| 5222 unittest.expect(index >= 0, unittest.isTrue); |
| 5223 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5224 pathOffset = index; |
| 5225 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5226 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/devices/")); |
| 5227 pathOffset += 9; |
| 5228 index = path.indexOf("/managedConfigurationsForDevice", pathOffset); |
| 5229 unittest.expect(index >= 0, unittest.isTrue); |
| 5230 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5231 pathOffset = index; |
| 5232 unittest.expect(subPart, unittest.equals("$arg_deviceId")); |
| 5233 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/managedConfigurationsForDevice")); |
| 5234 pathOffset += 31; |
| 5235 |
| 5236 var query = (req.url).query; |
| 5237 var queryOffset = 0; |
| 5238 var queryMap = {}; |
| 5239 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5240 parseBool(n) { |
| 5241 if (n == "true") return true; |
| 5242 if (n == "false") return false; |
| 5243 if (n == null) return null; |
| 5244 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5245 } |
| 5246 if (query.length > 0) { |
| 5247 for (var part in query.split("&")) { |
| 5248 var keyvalue = part.split("="); |
| 5249 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5250 } |
| 5251 } |
| 5252 |
| 5253 |
| 5254 var h = { |
| 5255 "content-type" : "application/json; charset=utf-8", |
| 5256 }; |
| 5257 var resp = convert.JSON.encode(buildManagedConfigurationsForDeviceListRe
sponse()); |
| 5258 return new async.Future.value(stringResponse(200, h, resp)); |
| 5259 }), true); |
| 5260 res.list(arg_enterpriseId, arg_userId, arg_deviceId).then(unittest.expectA
sync(((api.ManagedConfigurationsForDeviceListResponse response) { |
| 5261 checkManagedConfigurationsForDeviceListResponse(response); |
| 5262 }))); |
| 5263 }); |
| 5264 |
| 5265 unittest.test("method--patch", () { |
| 5266 |
| 5267 var mock = new HttpServerMock(); |
| 5268 api.ManagedconfigurationsfordeviceResourceApi res = new api.Androidenterpr
iseApi(mock).managedconfigurationsfordevice; |
| 5269 var arg_request = buildManagedConfiguration(); |
| 5270 var arg_enterpriseId = "foo"; |
| 5271 var arg_userId = "foo"; |
| 5272 var arg_deviceId = "foo"; |
| 5273 var arg_managedConfigurationForDeviceId = "foo"; |
| 5274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5275 var obj = new api.ManagedConfiguration.fromJson(json); |
| 5276 checkManagedConfiguration(obj); |
| 5277 |
| 5278 var path = (req.url).path; |
| 5279 var pathOffset = 0; |
| 5280 var index; |
| 5281 var subPart; |
| 5282 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5283 pathOffset += 1; |
| 5284 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5285 pathOffset += 21; |
| 5286 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5287 pathOffset += 12; |
| 5288 index = path.indexOf("/users/", pathOffset); |
| 5289 unittest.expect(index >= 0, unittest.isTrue); |
| 5290 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5291 pathOffset = index; |
| 5292 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5293 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5294 pathOffset += 7; |
| 5295 index = path.indexOf("/devices/", pathOffset); |
| 5296 unittest.expect(index >= 0, unittest.isTrue); |
| 5297 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5298 pathOffset = index; |
| 5299 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5300 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/devices/")); |
| 5301 pathOffset += 9; |
| 5302 index = path.indexOf("/managedConfigurationsForDevice/", pathOffset); |
| 5303 unittest.expect(index >= 0, unittest.isTrue); |
| 5304 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5305 pathOffset = index; |
| 5306 unittest.expect(subPart, unittest.equals("$arg_deviceId")); |
| 5307 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("/managedConfigurationsForDevice/")); |
| 5308 pathOffset += 32; |
| 5309 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5310 pathOffset = path.length; |
| 5311 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForDe
viceId")); |
| 5312 |
| 5313 var query = (req.url).query; |
| 5314 var queryOffset = 0; |
| 5315 var queryMap = {}; |
| 5316 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5317 parseBool(n) { |
| 5318 if (n == "true") return true; |
| 5319 if (n == "false") return false; |
| 5320 if (n == null) return null; |
| 5321 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5322 } |
| 5323 if (query.length > 0) { |
| 5324 for (var part in query.split("&")) { |
| 5325 var keyvalue = part.split("="); |
| 5326 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5327 } |
| 5328 } |
| 5329 |
| 5330 |
| 5331 var h = { |
| 5332 "content-type" : "application/json; charset=utf-8", |
| 5333 }; |
| 5334 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5335 return new async.Future.value(stringResponse(200, h, resp)); |
| 5336 }), true); |
| 5337 res.patch(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_man
agedConfigurationForDeviceId).then(unittest.expectAsync(((api.ManagedConfigurati
on response) { |
| 5338 checkManagedConfiguration(response); |
| 5339 }))); |
| 5340 }); |
| 5341 |
| 5342 unittest.test("method--update", () { |
| 5343 |
| 5344 var mock = new HttpServerMock(); |
| 5345 api.ManagedconfigurationsfordeviceResourceApi res = new api.Androidenterpr
iseApi(mock).managedconfigurationsfordevice; |
| 5346 var arg_request = buildManagedConfiguration(); |
| 5347 var arg_enterpriseId = "foo"; |
| 5348 var arg_userId = "foo"; |
| 5349 var arg_deviceId = "foo"; |
| 5350 var arg_managedConfigurationForDeviceId = "foo"; |
| 5351 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5352 var obj = new api.ManagedConfiguration.fromJson(json); |
| 5353 checkManagedConfiguration(obj); |
| 5354 |
| 5355 var path = (req.url).path; |
| 5356 var pathOffset = 0; |
| 5357 var index; |
| 5358 var subPart; |
| 5359 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5360 pathOffset += 1; |
| 5361 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5362 pathOffset += 21; |
| 5363 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5364 pathOffset += 12; |
| 5365 index = path.indexOf("/users/", pathOffset); |
| 5366 unittest.expect(index >= 0, unittest.isTrue); |
| 5367 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5368 pathOffset = index; |
| 5369 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5370 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5371 pathOffset += 7; |
| 5372 index = path.indexOf("/devices/", pathOffset); |
| 5373 unittest.expect(index >= 0, unittest.isTrue); |
| 5374 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5375 pathOffset = index; |
| 5376 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5377 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/devices/")); |
| 5378 pathOffset += 9; |
| 5379 index = path.indexOf("/managedConfigurationsForDevice/", pathOffset); |
| 5380 unittest.expect(index >= 0, unittest.isTrue); |
| 5381 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5382 pathOffset = index; |
| 5383 unittest.expect(subPart, unittest.equals("$arg_deviceId")); |
| 5384 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("/managedConfigurationsForDevice/")); |
| 5385 pathOffset += 32; |
| 5386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5387 pathOffset = path.length; |
| 5388 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForDe
viceId")); |
| 5389 |
| 5390 var query = (req.url).query; |
| 5391 var queryOffset = 0; |
| 5392 var queryMap = {}; |
| 5393 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5394 parseBool(n) { |
| 5395 if (n == "true") return true; |
| 5396 if (n == "false") return false; |
| 5397 if (n == null) return null; |
| 5398 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5399 } |
| 5400 if (query.length > 0) { |
| 5401 for (var part in query.split("&")) { |
| 5402 var keyvalue = part.split("="); |
| 5403 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5404 } |
| 5405 } |
| 5406 |
| 5407 |
| 5408 var h = { |
| 5409 "content-type" : "application/json; charset=utf-8", |
| 5410 }; |
| 5411 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5412 return new async.Future.value(stringResponse(200, h, resp)); |
| 5413 }), true); |
| 5414 res.update(arg_request, arg_enterpriseId, arg_userId, arg_deviceId, arg_ma
nagedConfigurationForDeviceId).then(unittest.expectAsync(((api.ManagedConfigurat
ion response) { |
| 5415 checkManagedConfiguration(response); |
| 5416 }))); |
| 5417 }); |
| 5418 |
| 5419 }); |
| 5420 |
| 5421 |
| 5422 unittest.group("resource-ManagedconfigurationsforuserResourceApi", () { |
| 5423 unittest.test("method--delete", () { |
| 5424 |
| 5425 var mock = new HttpServerMock(); |
| 5426 api.ManagedconfigurationsforuserResourceApi res = new api.Androidenterpris
eApi(mock).managedconfigurationsforuser; |
| 5427 var arg_enterpriseId = "foo"; |
| 5428 var arg_userId = "foo"; |
| 5429 var arg_managedConfigurationForUserId = "foo"; |
| 5430 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5431 var path = (req.url).path; |
| 5432 var pathOffset = 0; |
| 5433 var index; |
| 5434 var subPart; |
| 5435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5436 pathOffset += 1; |
| 5437 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5438 pathOffset += 21; |
| 5439 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5440 pathOffset += 12; |
| 5441 index = path.indexOf("/users/", pathOffset); |
| 5442 unittest.expect(index >= 0, unittest.isTrue); |
| 5443 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5444 pathOffset = index; |
| 5445 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5446 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5447 pathOffset += 7; |
| 5448 index = path.indexOf("/managedConfigurationsForUser/", pathOffset); |
| 5449 unittest.expect(index >= 0, unittest.isTrue); |
| 5450 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5451 pathOffset = index; |
| 5452 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5453 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("/managedConfigurationsForUser/")); |
| 5454 pathOffset += 30; |
| 5455 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5456 pathOffset = path.length; |
| 5457 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForUs
erId")); |
| 5458 |
| 5459 var query = (req.url).query; |
| 5460 var queryOffset = 0; |
| 5461 var queryMap = {}; |
| 5462 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5463 parseBool(n) { |
| 5464 if (n == "true") return true; |
| 5465 if (n == "false") return false; |
| 5466 if (n == null) return null; |
| 5467 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5468 } |
| 5469 if (query.length > 0) { |
| 5470 for (var part in query.split("&")) { |
| 5471 var keyvalue = part.split("="); |
| 5472 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5473 } |
| 5474 } |
| 5475 |
| 5476 |
| 5477 var h = { |
| 5478 "content-type" : "application/json; charset=utf-8", |
| 5479 }; |
| 5480 var resp = ""; |
| 5481 return new async.Future.value(stringResponse(200, h, resp)); |
| 5482 }), true); |
| 5483 res.delete(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId
).then(unittest.expectAsync((_) {})); |
| 5484 }); |
| 5485 |
| 5486 unittest.test("method--get", () { |
| 5487 |
| 5488 var mock = new HttpServerMock(); |
| 5489 api.ManagedconfigurationsforuserResourceApi res = new api.Androidenterpris
eApi(mock).managedconfigurationsforuser; |
| 5490 var arg_enterpriseId = "foo"; |
| 5491 var arg_userId = "foo"; |
| 5492 var arg_managedConfigurationForUserId = "foo"; |
| 5493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5494 var path = (req.url).path; |
| 5495 var pathOffset = 0; |
| 5496 var index; |
| 5497 var subPart; |
| 5498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5499 pathOffset += 1; |
| 5500 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5501 pathOffset += 21; |
| 5502 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5503 pathOffset += 12; |
| 5504 index = path.indexOf("/users/", pathOffset); |
| 5505 unittest.expect(index >= 0, unittest.isTrue); |
| 5506 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5507 pathOffset = index; |
| 5508 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5509 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5510 pathOffset += 7; |
| 5511 index = path.indexOf("/managedConfigurationsForUser/", pathOffset); |
| 5512 unittest.expect(index >= 0, unittest.isTrue); |
| 5513 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5514 pathOffset = index; |
| 5515 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5516 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("/managedConfigurationsForUser/")); |
| 5517 pathOffset += 30; |
| 5518 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5519 pathOffset = path.length; |
| 5520 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForUs
erId")); |
| 5521 |
| 5522 var query = (req.url).query; |
| 5523 var queryOffset = 0; |
| 5524 var queryMap = {}; |
| 5525 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5526 parseBool(n) { |
| 5527 if (n == "true") return true; |
| 5528 if (n == "false") return false; |
| 5529 if (n == null) return null; |
| 5530 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5531 } |
| 5532 if (query.length > 0) { |
| 5533 for (var part in query.split("&")) { |
| 5534 var keyvalue = part.split("="); |
| 5535 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5536 } |
| 5537 } |
| 5538 |
| 5539 |
| 5540 var h = { |
| 5541 "content-type" : "application/json; charset=utf-8", |
| 5542 }; |
| 5543 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5544 return new async.Future.value(stringResponse(200, h, resp)); |
| 5545 }), true); |
| 5546 res.get(arg_enterpriseId, arg_userId, arg_managedConfigurationForUserId).t
hen(unittest.expectAsync(((api.ManagedConfiguration response) { |
| 5547 checkManagedConfiguration(response); |
| 5548 }))); |
| 5549 }); |
| 5550 |
| 5551 unittest.test("method--list", () { |
| 5552 |
| 5553 var mock = new HttpServerMock(); |
| 5554 api.ManagedconfigurationsforuserResourceApi res = new api.Androidenterpris
eApi(mock).managedconfigurationsforuser; |
| 5555 var arg_enterpriseId = "foo"; |
| 5556 var arg_userId = "foo"; |
| 5557 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5558 var path = (req.url).path; |
| 5559 var pathOffset = 0; |
| 5560 var index; |
| 5561 var subPart; |
| 5562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5563 pathOffset += 1; |
| 5564 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5565 pathOffset += 21; |
| 5566 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5567 pathOffset += 12; |
| 5568 index = path.indexOf("/users/", pathOffset); |
| 5569 unittest.expect(index >= 0, unittest.isTrue); |
| 5570 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5571 pathOffset = index; |
| 5572 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5573 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5574 pathOffset += 7; |
| 5575 index = path.indexOf("/managedConfigurationsForUser", pathOffset); |
| 5576 unittest.expect(index >= 0, unittest.isTrue); |
| 5577 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5578 pathOffset = index; |
| 5579 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5580 unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.eq
uals("/managedConfigurationsForUser")); |
| 5581 pathOffset += 29; |
| 5582 |
| 5583 var query = (req.url).query; |
| 5584 var queryOffset = 0; |
| 5585 var queryMap = {}; |
| 5586 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5587 parseBool(n) { |
| 5588 if (n == "true") return true; |
| 5589 if (n == "false") return false; |
| 5590 if (n == null) return null; |
| 5591 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5592 } |
| 5593 if (query.length > 0) { |
| 5594 for (var part in query.split("&")) { |
| 5595 var keyvalue = part.split("="); |
| 5596 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5597 } |
| 5598 } |
| 5599 |
| 5600 |
| 5601 var h = { |
| 5602 "content-type" : "application/json; charset=utf-8", |
| 5603 }; |
| 5604 var resp = convert.JSON.encode(buildManagedConfigurationsForUserListResp
onse()); |
| 5605 return new async.Future.value(stringResponse(200, h, resp)); |
| 5606 }), true); |
| 5607 res.list(arg_enterpriseId, arg_userId).then(unittest.expectAsync(((api.Man
agedConfigurationsForUserListResponse response) { |
| 5608 checkManagedConfigurationsForUserListResponse(response); |
| 5609 }))); |
| 5610 }); |
| 5611 |
| 5612 unittest.test("method--patch", () { |
| 5613 |
| 5614 var mock = new HttpServerMock(); |
| 5615 api.ManagedconfigurationsforuserResourceApi res = new api.Androidenterpris
eApi(mock).managedconfigurationsforuser; |
| 5616 var arg_request = buildManagedConfiguration(); |
| 5617 var arg_enterpriseId = "foo"; |
| 5618 var arg_userId = "foo"; |
| 5619 var arg_managedConfigurationForUserId = "foo"; |
| 5620 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5621 var obj = new api.ManagedConfiguration.fromJson(json); |
| 5622 checkManagedConfiguration(obj); |
| 5623 |
| 5624 var path = (req.url).path; |
| 5625 var pathOffset = 0; |
| 5626 var index; |
| 5627 var subPart; |
| 5628 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5629 pathOffset += 1; |
| 5630 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5631 pathOffset += 21; |
| 5632 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5633 pathOffset += 12; |
| 5634 index = path.indexOf("/users/", pathOffset); |
| 5635 unittest.expect(index >= 0, unittest.isTrue); |
| 5636 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5637 pathOffset = index; |
| 5638 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5639 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5640 pathOffset += 7; |
| 5641 index = path.indexOf("/managedConfigurationsForUser/", pathOffset); |
| 5642 unittest.expect(index >= 0, unittest.isTrue); |
| 5643 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5644 pathOffset = index; |
| 5645 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5646 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("/managedConfigurationsForUser/")); |
| 5647 pathOffset += 30; |
| 5648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5649 pathOffset = path.length; |
| 5650 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForUs
erId")); |
| 5651 |
| 5652 var query = (req.url).query; |
| 5653 var queryOffset = 0; |
| 5654 var queryMap = {}; |
| 5655 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5656 parseBool(n) { |
| 5657 if (n == "true") return true; |
| 5658 if (n == "false") return false; |
| 5659 if (n == null) return null; |
| 5660 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5661 } |
| 5662 if (query.length > 0) { |
| 5663 for (var part in query.split("&")) { |
| 5664 var keyvalue = part.split("="); |
| 5665 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5666 } |
| 5667 } |
| 5668 |
| 5669 |
| 5670 var h = { |
| 5671 "content-type" : "application/json; charset=utf-8", |
| 5672 }; |
| 5673 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5674 return new async.Future.value(stringResponse(200, h, resp)); |
| 5675 }), true); |
| 5676 res.patch(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigurat
ionForUserId).then(unittest.expectAsync(((api.ManagedConfiguration response) { |
| 5677 checkManagedConfiguration(response); |
| 5678 }))); |
| 5679 }); |
| 5680 |
| 5681 unittest.test("method--update", () { |
| 5682 |
| 5683 var mock = new HttpServerMock(); |
| 5684 api.ManagedconfigurationsforuserResourceApi res = new api.Androidenterpris
eApi(mock).managedconfigurationsforuser; |
| 5685 var arg_request = buildManagedConfiguration(); |
| 5686 var arg_enterpriseId = "foo"; |
| 5687 var arg_userId = "foo"; |
| 5688 var arg_managedConfigurationForUserId = "foo"; |
| 5689 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5690 var obj = new api.ManagedConfiguration.fromJson(json); |
| 5691 checkManagedConfiguration(obj); |
| 5692 |
| 5693 var path = (req.url).path; |
| 5694 var pathOffset = 0; |
| 5695 var index; |
| 5696 var subPart; |
| 5697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5698 pathOffset += 1; |
| 5699 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 5700 pathOffset += 21; |
| 5701 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 5702 pathOffset += 12; |
| 5703 index = path.indexOf("/users/", pathOffset); |
| 5704 unittest.expect(index >= 0, unittest.isTrue); |
| 5705 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5706 pathOffset = index; |
| 5707 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 5708 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/users/")); |
| 5709 pathOffset += 7; |
| 5710 index = path.indexOf("/managedConfigurationsForUser/", pathOffset); |
| 5711 unittest.expect(index >= 0, unittest.isTrue); |
| 5712 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 5713 pathOffset = index; |
| 5714 unittest.expect(subPart, unittest.equals("$arg_userId")); |
| 5715 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("/managedConfigurationsForUser/")); |
| 5716 pathOffset += 30; |
| 5717 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5718 pathOffset = path.length; |
| 5719 unittest.expect(subPart, unittest.equals("$arg_managedConfigurationForUs
erId")); |
| 5720 |
| 5721 var query = (req.url).query; |
| 5722 var queryOffset = 0; |
| 5723 var queryMap = {}; |
| 5724 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5725 parseBool(n) { |
| 5726 if (n == "true") return true; |
| 5727 if (n == "false") return false; |
| 5728 if (n == null) return null; |
| 5729 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5730 } |
| 5731 if (query.length > 0) { |
| 5732 for (var part in query.split("&")) { |
| 5733 var keyvalue = part.split("="); |
| 5734 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5735 } |
| 5736 } |
| 5737 |
| 5738 |
| 5739 var h = { |
| 5740 "content-type" : "application/json; charset=utf-8", |
| 5741 }; |
| 5742 var resp = convert.JSON.encode(buildManagedConfiguration()); |
| 5743 return new async.Future.value(stringResponse(200, h, resp)); |
| 5744 }), true); |
| 5745 res.update(arg_request, arg_enterpriseId, arg_userId, arg_managedConfigura
tionForUserId).then(unittest.expectAsync(((api.ManagedConfiguration response) { |
| 5746 checkManagedConfiguration(response); |
| 5747 }))); |
| 5748 }); |
| 5749 |
| 5750 }); |
| 5751 |
| 5752 |
| 4798 unittest.group("resource-PermissionsResourceApi", () { | 5753 unittest.group("resource-PermissionsResourceApi", () { |
| 4799 unittest.test("method--get", () { | 5754 unittest.test("method--get", () { |
| 4800 | 5755 |
| 4801 var mock = new HttpServerMock(); | 5756 var mock = new HttpServerMock(); |
| 4802 api.PermissionsResourceApi res = new api.AndroidenterpriseApi(mock).permis
sions; | 5757 api.PermissionsResourceApi res = new api.AndroidenterpriseApi(mock).permis
sions; |
| 4803 var arg_permissionId = "foo"; | 5758 var arg_permissionId = "foo"; |
| 4804 var arg_language = "foo"; | 5759 var arg_language = "foo"; |
| 4805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5760 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4806 var path = (req.url).path; | 5761 var path = (req.url).path; |
| 4807 var pathOffset = 0; | 5762 var pathOffset = 0; |
| (...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6915 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { | 7870 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { |
| 6916 checkUser(response); | 7871 checkUser(response); |
| 6917 }))); | 7872 }))); |
| 6918 }); | 7873 }); |
| 6919 | 7874 |
| 6920 }); | 7875 }); |
| 6921 | 7876 |
| 6922 | 7877 |
| 6923 } | 7878 } |
| 6924 | 7879 |
| OLD | NEW |