| 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 buildUnnamed2372() { | 73 core.int buildCounterAdministratorWebToken = 0; |
| 74 buildAdministratorWebToken() { |
| 75 var o = new api.AdministratorWebToken(); |
| 76 buildCounterAdministratorWebToken++; |
| 77 if (buildCounterAdministratorWebToken < 3) { |
| 78 o.kind = "foo"; |
| 79 o.token = "foo"; |
| 80 } |
| 81 buildCounterAdministratorWebToken--; |
| 82 return o; |
| 83 } |
| 84 |
| 85 checkAdministratorWebToken(api.AdministratorWebToken o) { |
| 86 buildCounterAdministratorWebToken++; |
| 87 if (buildCounterAdministratorWebToken < 3) { |
| 88 unittest.expect(o.kind, unittest.equals('foo')); |
| 89 unittest.expect(o.token, unittest.equals('foo')); |
| 90 } |
| 91 buildCounterAdministratorWebToken--; |
| 92 } |
| 93 |
| 94 buildUnnamed2134() { |
| 95 var o = new core.List<core.String>(); |
| 96 o.add("foo"); |
| 97 o.add("foo"); |
| 98 return o; |
| 99 } |
| 100 |
| 101 checkUnnamed2134(core.List<core.String> o) { |
| 102 unittest.expect(o, unittest.hasLength(2)); |
| 103 unittest.expect(o[0], unittest.equals('foo')); |
| 104 unittest.expect(o[1], unittest.equals('foo')); |
| 105 } |
| 106 |
| 107 core.int buildCounterAdministratorWebTokenSpec = 0; |
| 108 buildAdministratorWebTokenSpec() { |
| 109 var o = new api.AdministratorWebTokenSpec(); |
| 110 buildCounterAdministratorWebTokenSpec++; |
| 111 if (buildCounterAdministratorWebTokenSpec < 3) { |
| 112 o.kind = "foo"; |
| 113 o.parent = "foo"; |
| 114 o.permission = buildUnnamed2134(); |
| 115 } |
| 116 buildCounterAdministratorWebTokenSpec--; |
| 117 return o; |
| 118 } |
| 119 |
| 120 checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) { |
| 121 buildCounterAdministratorWebTokenSpec++; |
| 122 if (buildCounterAdministratorWebTokenSpec < 3) { |
| 123 unittest.expect(o.kind, unittest.equals('foo')); |
| 124 unittest.expect(o.parent, unittest.equals('foo')); |
| 125 checkUnnamed2134(o.permission); |
| 126 } |
| 127 buildCounterAdministratorWebTokenSpec--; |
| 128 } |
| 129 |
| 130 buildUnnamed2135() { |
| 74 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); | 131 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); |
| 75 o.add(buildAppRestrictionsSchemaRestriction()); | 132 o.add(buildAppRestrictionsSchemaRestriction()); |
| 76 o.add(buildAppRestrictionsSchemaRestriction()); | 133 o.add(buildAppRestrictionsSchemaRestriction()); |
| 77 return o; | 134 return o; |
| 78 } | 135 } |
| 79 | 136 |
| 80 checkUnnamed2372(core.List<api.AppRestrictionsSchemaRestriction> o) { | 137 checkUnnamed2135(core.List<api.AppRestrictionsSchemaRestriction> o) { |
| 81 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
| 82 checkAppRestrictionsSchemaRestriction(o[0]); | 139 checkAppRestrictionsSchemaRestriction(o[0]); |
| 83 checkAppRestrictionsSchemaRestriction(o[1]); | 140 checkAppRestrictionsSchemaRestriction(o[1]); |
| 84 } | 141 } |
| 85 | 142 |
| 86 core.int buildCounterAppRestrictionsSchema = 0; | 143 core.int buildCounterAppRestrictionsSchema = 0; |
| 87 buildAppRestrictionsSchema() { | 144 buildAppRestrictionsSchema() { |
| 88 var o = new api.AppRestrictionsSchema(); | 145 var o = new api.AppRestrictionsSchema(); |
| 89 buildCounterAppRestrictionsSchema++; | 146 buildCounterAppRestrictionsSchema++; |
| 90 if (buildCounterAppRestrictionsSchema < 3) { | 147 if (buildCounterAppRestrictionsSchema < 3) { |
| 91 o.kind = "foo"; | 148 o.kind = "foo"; |
| 92 o.restrictions = buildUnnamed2372(); | 149 o.restrictions = buildUnnamed2135(); |
| 93 } | 150 } |
| 94 buildCounterAppRestrictionsSchema--; | 151 buildCounterAppRestrictionsSchema--; |
| 95 return o; | 152 return o; |
| 96 } | 153 } |
| 97 | 154 |
| 98 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { | 155 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { |
| 99 buildCounterAppRestrictionsSchema++; | 156 buildCounterAppRestrictionsSchema++; |
| 100 if (buildCounterAppRestrictionsSchema < 3) { | 157 if (buildCounterAppRestrictionsSchema < 3) { |
| 101 unittest.expect(o.kind, unittest.equals('foo')); | 158 unittest.expect(o.kind, unittest.equals('foo')); |
| 102 checkUnnamed2372(o.restrictions); | 159 checkUnnamed2135(o.restrictions); |
| 103 } | 160 } |
| 104 buildCounterAppRestrictionsSchema--; | 161 buildCounterAppRestrictionsSchema--; |
| 105 } | 162 } |
| 106 | 163 |
| 107 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0; | 164 core.int buildCounterAppRestrictionsSchemaChangeEvent = 0; |
| 108 buildAppRestrictionsSchemaChangeEvent() { | 165 buildAppRestrictionsSchemaChangeEvent() { |
| 109 var o = new api.AppRestrictionsSchemaChangeEvent(); | 166 var o = new api.AppRestrictionsSchemaChangeEvent(); |
| 110 buildCounterAppRestrictionsSchemaChangeEvent++; | 167 buildCounterAppRestrictionsSchemaChangeEvent++; |
| 111 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { | 168 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { |
| 112 o.productId = "foo"; | 169 o.productId = "foo"; |
| 113 } | 170 } |
| 114 buildCounterAppRestrictionsSchemaChangeEvent--; | 171 buildCounterAppRestrictionsSchemaChangeEvent--; |
| 115 return o; | 172 return o; |
| 116 } | 173 } |
| 117 | 174 |
| 118 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) { | 175 checkAppRestrictionsSchemaChangeEvent(api.AppRestrictionsSchemaChangeEvent o) { |
| 119 buildCounterAppRestrictionsSchemaChangeEvent++; | 176 buildCounterAppRestrictionsSchemaChangeEvent++; |
| 120 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { | 177 if (buildCounterAppRestrictionsSchemaChangeEvent < 3) { |
| 121 unittest.expect(o.productId, unittest.equals('foo')); | 178 unittest.expect(o.productId, unittest.equals('foo')); |
| 122 } | 179 } |
| 123 buildCounterAppRestrictionsSchemaChangeEvent--; | 180 buildCounterAppRestrictionsSchemaChangeEvent--; |
| 124 } | 181 } |
| 125 | 182 |
| 126 buildUnnamed2373() { | 183 buildUnnamed2136() { |
| 127 var o = new core.List<core.String>(); | 184 var o = new core.List<core.String>(); |
| 128 o.add("foo"); | 185 o.add("foo"); |
| 129 o.add("foo"); | 186 o.add("foo"); |
| 130 return o; | 187 return o; |
| 131 } | 188 } |
| 132 | 189 |
| 133 checkUnnamed2373(core.List<core.String> o) { | 190 checkUnnamed2136(core.List<core.String> o) { |
| 134 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
| 135 unittest.expect(o[0], unittest.equals('foo')); | 192 unittest.expect(o[0], unittest.equals('foo')); |
| 136 unittest.expect(o[1], unittest.equals('foo')); | 193 unittest.expect(o[1], unittest.equals('foo')); |
| 137 } | 194 } |
| 138 | 195 |
| 139 buildUnnamed2374() { | 196 buildUnnamed2137() { |
| 140 var o = new core.List<core.String>(); | 197 var o = new core.List<core.String>(); |
| 141 o.add("foo"); | 198 o.add("foo"); |
| 142 o.add("foo"); | 199 o.add("foo"); |
| 143 return o; | 200 return o; |
| 144 } | 201 } |
| 145 | 202 |
| 146 checkUnnamed2374(core.List<core.String> o) { | 203 checkUnnamed2137(core.List<core.String> o) { |
| 147 unittest.expect(o, unittest.hasLength(2)); | 204 unittest.expect(o, unittest.hasLength(2)); |
| 148 unittest.expect(o[0], unittest.equals('foo')); | 205 unittest.expect(o[0], unittest.equals('foo')); |
| 149 unittest.expect(o[1], unittest.equals('foo')); | 206 unittest.expect(o[1], unittest.equals('foo')); |
| 150 } | 207 } |
| 151 | 208 |
| 152 buildUnnamed2375() { | 209 buildUnnamed2138() { |
| 153 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); | 210 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); |
| 154 o.add(buildAppRestrictionsSchemaRestriction()); | 211 o.add(buildAppRestrictionsSchemaRestriction()); |
| 155 o.add(buildAppRestrictionsSchemaRestriction()); | 212 o.add(buildAppRestrictionsSchemaRestriction()); |
| 156 return o; | 213 return o; |
| 157 } | 214 } |
| 158 | 215 |
| 159 checkUnnamed2375(core.List<api.AppRestrictionsSchemaRestriction> o) { | 216 checkUnnamed2138(core.List<api.AppRestrictionsSchemaRestriction> o) { |
| 160 unittest.expect(o, unittest.hasLength(2)); | 217 unittest.expect(o, unittest.hasLength(2)); |
| 161 checkAppRestrictionsSchemaRestriction(o[0]); | 218 checkAppRestrictionsSchemaRestriction(o[0]); |
| 162 checkAppRestrictionsSchemaRestriction(o[1]); | 219 checkAppRestrictionsSchemaRestriction(o[1]); |
| 163 } | 220 } |
| 164 | 221 |
| 165 core.int buildCounterAppRestrictionsSchemaRestriction = 0; | 222 core.int buildCounterAppRestrictionsSchemaRestriction = 0; |
| 166 buildAppRestrictionsSchemaRestriction() { | 223 buildAppRestrictionsSchemaRestriction() { |
| 167 var o = new api.AppRestrictionsSchemaRestriction(); | 224 var o = new api.AppRestrictionsSchemaRestriction(); |
| 168 buildCounterAppRestrictionsSchemaRestriction++; | 225 buildCounterAppRestrictionsSchemaRestriction++; |
| 169 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 226 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 170 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); | 227 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); |
| 171 o.description = "foo"; | 228 o.description = "foo"; |
| 172 o.entry = buildUnnamed2373(); | 229 o.entry = buildUnnamed2136(); |
| 173 o.entryValue = buildUnnamed2374(); | 230 o.entryValue = buildUnnamed2137(); |
| 174 o.key = "foo"; | 231 o.key = "foo"; |
| 175 o.nestedRestriction = buildUnnamed2375(); | 232 o.nestedRestriction = buildUnnamed2138(); |
| 176 o.restrictionType = "foo"; | 233 o.restrictionType = "foo"; |
| 177 o.title = "foo"; | 234 o.title = "foo"; |
| 178 } | 235 } |
| 179 buildCounterAppRestrictionsSchemaRestriction--; | 236 buildCounterAppRestrictionsSchemaRestriction--; |
| 180 return o; | 237 return o; |
| 181 } | 238 } |
| 182 | 239 |
| 183 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { | 240 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { |
| 184 buildCounterAppRestrictionsSchemaRestriction++; | 241 buildCounterAppRestrictionsSchemaRestriction++; |
| 185 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 242 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 186 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); | 243 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); |
| 187 unittest.expect(o.description, unittest.equals('foo')); | 244 unittest.expect(o.description, unittest.equals('foo')); |
| 188 checkUnnamed2373(o.entry); | 245 checkUnnamed2136(o.entry); |
| 189 checkUnnamed2374(o.entryValue); | 246 checkUnnamed2137(o.entryValue); |
| 190 unittest.expect(o.key, unittest.equals('foo')); | 247 unittest.expect(o.key, unittest.equals('foo')); |
| 191 checkUnnamed2375(o.nestedRestriction); | 248 checkUnnamed2138(o.nestedRestriction); |
| 192 unittest.expect(o.restrictionType, unittest.equals('foo')); | 249 unittest.expect(o.restrictionType, unittest.equals('foo')); |
| 193 unittest.expect(o.title, unittest.equals('foo')); | 250 unittest.expect(o.title, unittest.equals('foo')); |
| 194 } | 251 } |
| 195 buildCounterAppRestrictionsSchemaRestriction--; | 252 buildCounterAppRestrictionsSchemaRestriction--; |
| 196 } | 253 } |
| 197 | 254 |
| 198 buildUnnamed2376() { | 255 buildUnnamed2139() { |
| 199 var o = new core.List<core.String>(); | 256 var o = new core.List<core.String>(); |
| 200 o.add("foo"); | 257 o.add("foo"); |
| 201 o.add("foo"); | 258 o.add("foo"); |
| 202 return o; | 259 return o; |
| 203 } | 260 } |
| 204 | 261 |
| 205 checkUnnamed2376(core.List<core.String> o) { | 262 checkUnnamed2139(core.List<core.String> o) { |
| 206 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
| 207 unittest.expect(o[0], unittest.equals('foo')); | 264 unittest.expect(o[0], unittest.equals('foo')); |
| 208 unittest.expect(o[1], unittest.equals('foo')); | 265 unittest.expect(o[1], unittest.equals('foo')); |
| 209 } | 266 } |
| 210 | 267 |
| 211 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; | 268 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; |
| 212 buildAppRestrictionsSchemaRestrictionRestrictionValue() { | 269 buildAppRestrictionsSchemaRestrictionRestrictionValue() { |
| 213 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); | 270 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); |
| 214 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 271 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 215 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 272 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 216 o.type = "foo"; | 273 o.type = "foo"; |
| 217 o.valueBool = true; | 274 o.valueBool = true; |
| 218 o.valueInteger = 42; | 275 o.valueInteger = 42; |
| 219 o.valueMultiselect = buildUnnamed2376(); | 276 o.valueMultiselect = buildUnnamed2139(); |
| 220 o.valueString = "foo"; | 277 o.valueString = "foo"; |
| 221 } | 278 } |
| 222 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 279 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 223 return o; | 280 return o; |
| 224 } | 281 } |
| 225 | 282 |
| 226 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { | 283 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { |
| 227 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 284 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 228 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 285 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 229 unittest.expect(o.type, unittest.equals('foo')); | 286 unittest.expect(o.type, unittest.equals('foo')); |
| 230 unittest.expect(o.valueBool, unittest.isTrue); | 287 unittest.expect(o.valueBool, unittest.isTrue); |
| 231 unittest.expect(o.valueInteger, unittest.equals(42)); | 288 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 232 checkUnnamed2376(o.valueMultiselect); | 289 checkUnnamed2139(o.valueMultiselect); |
| 233 unittest.expect(o.valueString, unittest.equals('foo')); | 290 unittest.expect(o.valueString, unittest.equals('foo')); |
| 234 } | 291 } |
| 235 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 292 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 236 } | 293 } |
| 237 | 294 |
| 238 core.int buildCounterAppUpdateEvent = 0; | 295 core.int buildCounterAppUpdateEvent = 0; |
| 239 buildAppUpdateEvent() { | 296 buildAppUpdateEvent() { |
| 240 var o = new api.AppUpdateEvent(); | 297 var o = new api.AppUpdateEvent(); |
| 241 buildCounterAppUpdateEvent++; | 298 buildCounterAppUpdateEvent++; |
| 242 if (buildCounterAppUpdateEvent < 3) { | 299 if (buildCounterAppUpdateEvent < 3) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 367 |
| 311 checkAuthenticationToken(api.AuthenticationToken o) { | 368 checkAuthenticationToken(api.AuthenticationToken o) { |
| 312 buildCounterAuthenticationToken++; | 369 buildCounterAuthenticationToken++; |
| 313 if (buildCounterAuthenticationToken < 3) { | 370 if (buildCounterAuthenticationToken < 3) { |
| 314 unittest.expect(o.kind, unittest.equals('foo')); | 371 unittest.expect(o.kind, unittest.equals('foo')); |
| 315 unittest.expect(o.token, unittest.equals('foo')); | 372 unittest.expect(o.token, unittest.equals('foo')); |
| 316 } | 373 } |
| 317 buildCounterAuthenticationToken--; | 374 buildCounterAuthenticationToken--; |
| 318 } | 375 } |
| 319 | 376 |
| 320 buildUnnamed2377() { | 377 buildUnnamed2140() { |
| 321 var o = new core.List<core.String>(); | 378 var o = new core.List<core.String>(); |
| 322 o.add("foo"); | 379 o.add("foo"); |
| 323 o.add("foo"); | 380 o.add("foo"); |
| 324 return o; | 381 return o; |
| 325 } | 382 } |
| 326 | 383 |
| 327 checkUnnamed2377(core.List<core.String> o) { | 384 checkUnnamed2140(core.List<core.String> o) { |
| 328 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
| 329 unittest.expect(o[0], unittest.equals('foo')); | 386 unittest.expect(o[0], unittest.equals('foo')); |
| 330 unittest.expect(o[1], unittest.equals('foo')); | 387 unittest.expect(o[1], unittest.equals('foo')); |
| 331 } | 388 } |
| 332 | 389 |
| 333 core.int buildCounterCollection = 0; | 390 core.int buildCounterCollection = 0; |
| 334 buildCollection() { | 391 buildCollection() { |
| 335 var o = new api.Collection(); | 392 var o = new api.Collection(); |
| 336 buildCounterCollection++; | 393 buildCounterCollection++; |
| 337 if (buildCounterCollection < 3) { | 394 if (buildCounterCollection < 3) { |
| 338 o.collectionId = "foo"; | 395 o.collectionId = "foo"; |
| 339 o.kind = "foo"; | 396 o.kind = "foo"; |
| 340 o.name = "foo"; | 397 o.name = "foo"; |
| 341 o.productId = buildUnnamed2377(); | 398 o.productId = buildUnnamed2140(); |
| 342 o.visibility = "foo"; | 399 o.visibility = "foo"; |
| 343 } | 400 } |
| 344 buildCounterCollection--; | 401 buildCounterCollection--; |
| 345 return o; | 402 return o; |
| 346 } | 403 } |
| 347 | 404 |
| 348 checkCollection(api.Collection o) { | 405 checkCollection(api.Collection o) { |
| 349 buildCounterCollection++; | 406 buildCounterCollection++; |
| 350 if (buildCounterCollection < 3) { | 407 if (buildCounterCollection < 3) { |
| 351 unittest.expect(o.collectionId, unittest.equals('foo')); | 408 unittest.expect(o.collectionId, unittest.equals('foo')); |
| 352 unittest.expect(o.kind, unittest.equals('foo')); | 409 unittest.expect(o.kind, unittest.equals('foo')); |
| 353 unittest.expect(o.name, unittest.equals('foo')); | 410 unittest.expect(o.name, unittest.equals('foo')); |
| 354 checkUnnamed2377(o.productId); | 411 checkUnnamed2140(o.productId); |
| 355 unittest.expect(o.visibility, unittest.equals('foo')); | 412 unittest.expect(o.visibility, unittest.equals('foo')); |
| 356 } | 413 } |
| 357 buildCounterCollection--; | 414 buildCounterCollection--; |
| 358 } | 415 } |
| 359 | 416 |
| 360 buildUnnamed2378() { | 417 buildUnnamed2141() { |
| 361 var o = new core.List<api.User>(); | 418 var o = new core.List<api.User>(); |
| 362 o.add(buildUser()); | 419 o.add(buildUser()); |
| 363 o.add(buildUser()); | 420 o.add(buildUser()); |
| 364 return o; | 421 return o; |
| 365 } | 422 } |
| 366 | 423 |
| 367 checkUnnamed2378(core.List<api.User> o) { | 424 checkUnnamed2141(core.List<api.User> o) { |
| 368 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
| 369 checkUser(o[0]); | 426 checkUser(o[0]); |
| 370 checkUser(o[1]); | 427 checkUser(o[1]); |
| 371 } | 428 } |
| 372 | 429 |
| 373 core.int buildCounterCollectionViewersListResponse = 0; | 430 core.int buildCounterCollectionViewersListResponse = 0; |
| 374 buildCollectionViewersListResponse() { | 431 buildCollectionViewersListResponse() { |
| 375 var o = new api.CollectionViewersListResponse(); | 432 var o = new api.CollectionViewersListResponse(); |
| 376 buildCounterCollectionViewersListResponse++; | 433 buildCounterCollectionViewersListResponse++; |
| 377 if (buildCounterCollectionViewersListResponse < 3) { | 434 if (buildCounterCollectionViewersListResponse < 3) { |
| 378 o.kind = "foo"; | 435 o.kind = "foo"; |
| 379 o.user = buildUnnamed2378(); | 436 o.user = buildUnnamed2141(); |
| 380 } | 437 } |
| 381 buildCounterCollectionViewersListResponse--; | 438 buildCounterCollectionViewersListResponse--; |
| 382 return o; | 439 return o; |
| 383 } | 440 } |
| 384 | 441 |
| 385 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { | 442 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { |
| 386 buildCounterCollectionViewersListResponse++; | 443 buildCounterCollectionViewersListResponse++; |
| 387 if (buildCounterCollectionViewersListResponse < 3) { | 444 if (buildCounterCollectionViewersListResponse < 3) { |
| 388 unittest.expect(o.kind, unittest.equals('foo')); | 445 unittest.expect(o.kind, unittest.equals('foo')); |
| 389 checkUnnamed2378(o.user); | 446 checkUnnamed2141(o.user); |
| 390 } | 447 } |
| 391 buildCounterCollectionViewersListResponse--; | 448 buildCounterCollectionViewersListResponse--; |
| 392 } | 449 } |
| 393 | 450 |
| 394 buildUnnamed2379() { | 451 buildUnnamed2142() { |
| 395 var o = new core.List<api.Collection>(); | 452 var o = new core.List<api.Collection>(); |
| 396 o.add(buildCollection()); | 453 o.add(buildCollection()); |
| 397 o.add(buildCollection()); | 454 o.add(buildCollection()); |
| 398 return o; | 455 return o; |
| 399 } | 456 } |
| 400 | 457 |
| 401 checkUnnamed2379(core.List<api.Collection> o) { | 458 checkUnnamed2142(core.List<api.Collection> o) { |
| 402 unittest.expect(o, unittest.hasLength(2)); | 459 unittest.expect(o, unittest.hasLength(2)); |
| 403 checkCollection(o[0]); | 460 checkCollection(o[0]); |
| 404 checkCollection(o[1]); | 461 checkCollection(o[1]); |
| 405 } | 462 } |
| 406 | 463 |
| 407 core.int buildCounterCollectionsListResponse = 0; | 464 core.int buildCounterCollectionsListResponse = 0; |
| 408 buildCollectionsListResponse() { | 465 buildCollectionsListResponse() { |
| 409 var o = new api.CollectionsListResponse(); | 466 var o = new api.CollectionsListResponse(); |
| 410 buildCounterCollectionsListResponse++; | 467 buildCounterCollectionsListResponse++; |
| 411 if (buildCounterCollectionsListResponse < 3) { | 468 if (buildCounterCollectionsListResponse < 3) { |
| 412 o.collection = buildUnnamed2379(); | 469 o.collection = buildUnnamed2142(); |
| 413 o.kind = "foo"; | 470 o.kind = "foo"; |
| 414 } | 471 } |
| 415 buildCounterCollectionsListResponse--; | 472 buildCounterCollectionsListResponse--; |
| 416 return o; | 473 return o; |
| 417 } | 474 } |
| 418 | 475 |
| 419 checkCollectionsListResponse(api.CollectionsListResponse o) { | 476 checkCollectionsListResponse(api.CollectionsListResponse o) { |
| 420 buildCounterCollectionsListResponse++; | 477 buildCounterCollectionsListResponse++; |
| 421 if (buildCounterCollectionsListResponse < 3) { | 478 if (buildCounterCollectionsListResponse < 3) { |
| 422 checkUnnamed2379(o.collection); | 479 checkUnnamed2142(o.collection); |
| 423 unittest.expect(o.kind, unittest.equals('foo')); | 480 unittest.expect(o.kind, unittest.equals('foo')); |
| 424 } | 481 } |
| 425 buildCounterCollectionsListResponse--; | 482 buildCounterCollectionsListResponse--; |
| 426 } | 483 } |
| 427 | 484 |
| 428 core.int buildCounterDevice = 0; | 485 core.int buildCounterDevice = 0; |
| 429 buildDevice() { | 486 buildDevice() { |
| 430 var o = new api.Device(); | 487 var o = new api.Device(); |
| 431 buildCounterDevice++; | 488 buildCounterDevice++; |
| 432 if (buildCounterDevice < 3) { | 489 if (buildCounterDevice < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 462 | 519 |
| 463 checkDeviceState(api.DeviceState o) { | 520 checkDeviceState(api.DeviceState o) { |
| 464 buildCounterDeviceState++; | 521 buildCounterDeviceState++; |
| 465 if (buildCounterDeviceState < 3) { | 522 if (buildCounterDeviceState < 3) { |
| 466 unittest.expect(o.accountState, unittest.equals('foo')); | 523 unittest.expect(o.accountState, unittest.equals('foo')); |
| 467 unittest.expect(o.kind, unittest.equals('foo')); | 524 unittest.expect(o.kind, unittest.equals('foo')); |
| 468 } | 525 } |
| 469 buildCounterDeviceState--; | 526 buildCounterDeviceState--; |
| 470 } | 527 } |
| 471 | 528 |
| 472 buildUnnamed2380() { | 529 buildUnnamed2143() { |
| 473 var o = new core.List<api.Device>(); | 530 var o = new core.List<api.Device>(); |
| 474 o.add(buildDevice()); | 531 o.add(buildDevice()); |
| 475 o.add(buildDevice()); | 532 o.add(buildDevice()); |
| 476 return o; | 533 return o; |
| 477 } | 534 } |
| 478 | 535 |
| 479 checkUnnamed2380(core.List<api.Device> o) { | 536 checkUnnamed2143(core.List<api.Device> o) { |
| 480 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 481 checkDevice(o[0]); | 538 checkDevice(o[0]); |
| 482 checkDevice(o[1]); | 539 checkDevice(o[1]); |
| 483 } | 540 } |
| 484 | 541 |
| 485 core.int buildCounterDevicesListResponse = 0; | 542 core.int buildCounterDevicesListResponse = 0; |
| 486 buildDevicesListResponse() { | 543 buildDevicesListResponse() { |
| 487 var o = new api.DevicesListResponse(); | 544 var o = new api.DevicesListResponse(); |
| 488 buildCounterDevicesListResponse++; | 545 buildCounterDevicesListResponse++; |
| 489 if (buildCounterDevicesListResponse < 3) { | 546 if (buildCounterDevicesListResponse < 3) { |
| 490 o.device = buildUnnamed2380(); | 547 o.device = buildUnnamed2143(); |
| 491 o.kind = "foo"; | 548 o.kind = "foo"; |
| 492 } | 549 } |
| 493 buildCounterDevicesListResponse--; | 550 buildCounterDevicesListResponse--; |
| 494 return o; | 551 return o; |
| 495 } | 552 } |
| 496 | 553 |
| 497 checkDevicesListResponse(api.DevicesListResponse o) { | 554 checkDevicesListResponse(api.DevicesListResponse o) { |
| 498 buildCounterDevicesListResponse++; | 555 buildCounterDevicesListResponse++; |
| 499 if (buildCounterDevicesListResponse < 3) { | 556 if (buildCounterDevicesListResponse < 3) { |
| 500 checkUnnamed2380(o.device); | 557 checkUnnamed2143(o.device); |
| 501 unittest.expect(o.kind, unittest.equals('foo')); | 558 unittest.expect(o.kind, unittest.equals('foo')); |
| 502 } | 559 } |
| 503 buildCounterDevicesListResponse--; | 560 buildCounterDevicesListResponse--; |
| 504 } | 561 } |
| 505 | 562 |
| 506 buildUnnamed2381() { | 563 buildUnnamed2144() { |
| 507 var o = new core.List<api.Administrator>(); | 564 var o = new core.List<api.Administrator>(); |
| 508 o.add(buildAdministrator()); | 565 o.add(buildAdministrator()); |
| 509 o.add(buildAdministrator()); | 566 o.add(buildAdministrator()); |
| 510 return o; | 567 return o; |
| 511 } | 568 } |
| 512 | 569 |
| 513 checkUnnamed2381(core.List<api.Administrator> o) { | 570 checkUnnamed2144(core.List<api.Administrator> o) { |
| 514 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
| 515 checkAdministrator(o[0]); | 572 checkAdministrator(o[0]); |
| 516 checkAdministrator(o[1]); | 573 checkAdministrator(o[1]); |
| 517 } | 574 } |
| 518 | 575 |
| 519 core.int buildCounterEnterprise = 0; | 576 core.int buildCounterEnterprise = 0; |
| 520 buildEnterprise() { | 577 buildEnterprise() { |
| 521 var o = new api.Enterprise(); | 578 var o = new api.Enterprise(); |
| 522 buildCounterEnterprise++; | 579 buildCounterEnterprise++; |
| 523 if (buildCounterEnterprise < 3) { | 580 if (buildCounterEnterprise < 3) { |
| 524 o.administrator = buildUnnamed2381(); | 581 o.administrator = buildUnnamed2144(); |
| 525 o.id = "foo"; | 582 o.id = "foo"; |
| 526 o.kind = "foo"; | 583 o.kind = "foo"; |
| 527 o.name = "foo"; | 584 o.name = "foo"; |
| 528 o.primaryDomain = "foo"; | 585 o.primaryDomain = "foo"; |
| 529 } | 586 } |
| 530 buildCounterEnterprise--; | 587 buildCounterEnterprise--; |
| 531 return o; | 588 return o; |
| 532 } | 589 } |
| 533 | 590 |
| 534 checkEnterprise(api.Enterprise o) { | 591 checkEnterprise(api.Enterprise o) { |
| 535 buildCounterEnterprise++; | 592 buildCounterEnterprise++; |
| 536 if (buildCounterEnterprise < 3) { | 593 if (buildCounterEnterprise < 3) { |
| 537 checkUnnamed2381(o.administrator); | 594 checkUnnamed2144(o.administrator); |
| 538 unittest.expect(o.id, unittest.equals('foo')); | 595 unittest.expect(o.id, unittest.equals('foo')); |
| 539 unittest.expect(o.kind, unittest.equals('foo')); | 596 unittest.expect(o.kind, unittest.equals('foo')); |
| 540 unittest.expect(o.name, unittest.equals('foo')); | 597 unittest.expect(o.name, unittest.equals('foo')); |
| 541 unittest.expect(o.primaryDomain, unittest.equals('foo')); | 598 unittest.expect(o.primaryDomain, unittest.equals('foo')); |
| 542 } | 599 } |
| 543 buildCounterEnterprise--; | 600 buildCounterEnterprise--; |
| 544 } | 601 } |
| 545 | 602 |
| 546 core.int buildCounterEnterpriseAccount = 0; | 603 core.int buildCounterEnterpriseAccount = 0; |
| 547 buildEnterpriseAccount() { | 604 buildEnterpriseAccount() { |
| 548 var o = new api.EnterpriseAccount(); | 605 var o = new api.EnterpriseAccount(); |
| 549 buildCounterEnterpriseAccount++; | 606 buildCounterEnterpriseAccount++; |
| 550 if (buildCounterEnterpriseAccount < 3) { | 607 if (buildCounterEnterpriseAccount < 3) { |
| 551 o.accountEmail = "foo"; | 608 o.accountEmail = "foo"; |
| 552 o.kind = "foo"; | 609 o.kind = "foo"; |
| 553 } | 610 } |
| 554 buildCounterEnterpriseAccount--; | 611 buildCounterEnterpriseAccount--; |
| 555 return o; | 612 return o; |
| 556 } | 613 } |
| 557 | 614 |
| 558 checkEnterpriseAccount(api.EnterpriseAccount o) { | 615 checkEnterpriseAccount(api.EnterpriseAccount o) { |
| 559 buildCounterEnterpriseAccount++; | 616 buildCounterEnterpriseAccount++; |
| 560 if (buildCounterEnterpriseAccount < 3) { | 617 if (buildCounterEnterpriseAccount < 3) { |
| 561 unittest.expect(o.accountEmail, unittest.equals('foo')); | 618 unittest.expect(o.accountEmail, unittest.equals('foo')); |
| 562 unittest.expect(o.kind, unittest.equals('foo')); | 619 unittest.expect(o.kind, unittest.equals('foo')); |
| 563 } | 620 } |
| 564 buildCounterEnterpriseAccount--; | 621 buildCounterEnterpriseAccount--; |
| 565 } | 622 } |
| 566 | 623 |
| 567 buildUnnamed2382() { | 624 buildUnnamed2145() { |
| 568 var o = new core.List<api.Enterprise>(); | 625 var o = new core.List<api.Enterprise>(); |
| 569 o.add(buildEnterprise()); | 626 o.add(buildEnterprise()); |
| 570 o.add(buildEnterprise()); | 627 o.add(buildEnterprise()); |
| 571 return o; | 628 return o; |
| 572 } | 629 } |
| 573 | 630 |
| 574 checkUnnamed2382(core.List<api.Enterprise> o) { | 631 checkUnnamed2145(core.List<api.Enterprise> o) { |
| 575 unittest.expect(o, unittest.hasLength(2)); | 632 unittest.expect(o, unittest.hasLength(2)); |
| 576 checkEnterprise(o[0]); | 633 checkEnterprise(o[0]); |
| 577 checkEnterprise(o[1]); | 634 checkEnterprise(o[1]); |
| 578 } | 635 } |
| 579 | 636 |
| 580 core.int buildCounterEnterprisesListResponse = 0; | 637 core.int buildCounterEnterprisesListResponse = 0; |
| 581 buildEnterprisesListResponse() { | 638 buildEnterprisesListResponse() { |
| 582 var o = new api.EnterprisesListResponse(); | 639 var o = new api.EnterprisesListResponse(); |
| 583 buildCounterEnterprisesListResponse++; | 640 buildCounterEnterprisesListResponse++; |
| 584 if (buildCounterEnterprisesListResponse < 3) { | 641 if (buildCounterEnterprisesListResponse < 3) { |
| 585 o.enterprise = buildUnnamed2382(); | 642 o.enterprise = buildUnnamed2145(); |
| 586 o.kind = "foo"; | 643 o.kind = "foo"; |
| 587 } | 644 } |
| 588 buildCounterEnterprisesListResponse--; | 645 buildCounterEnterprisesListResponse--; |
| 589 return o; | 646 return o; |
| 590 } | 647 } |
| 591 | 648 |
| 592 checkEnterprisesListResponse(api.EnterprisesListResponse o) { | 649 checkEnterprisesListResponse(api.EnterprisesListResponse o) { |
| 593 buildCounterEnterprisesListResponse++; | 650 buildCounterEnterprisesListResponse++; |
| 594 if (buildCounterEnterprisesListResponse < 3) { | 651 if (buildCounterEnterprisesListResponse < 3) { |
| 595 checkUnnamed2382(o.enterprise); | 652 checkUnnamed2145(o.enterprise); |
| 596 unittest.expect(o.kind, unittest.equals('foo')); | 653 unittest.expect(o.kind, unittest.equals('foo')); |
| 597 } | 654 } |
| 598 buildCounterEnterprisesListResponse--; | 655 buildCounterEnterprisesListResponse--; |
| 599 } | 656 } |
| 600 | 657 |
| 601 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; | 658 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; |
| 602 buildEnterprisesSendTestPushNotificationResponse() { | 659 buildEnterprisesSendTestPushNotificationResponse() { |
| 603 var o = new api.EnterprisesSendTestPushNotificationResponse(); | 660 var o = new api.EnterprisesSendTestPushNotificationResponse(); |
| 604 buildCounterEnterprisesSendTestPushNotificationResponse++; | 661 buildCounterEnterprisesSendTestPushNotificationResponse++; |
| 605 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { | 662 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 635 checkEntitlement(api.Entitlement o) { | 692 checkEntitlement(api.Entitlement o) { |
| 636 buildCounterEntitlement++; | 693 buildCounterEntitlement++; |
| 637 if (buildCounterEntitlement < 3) { | 694 if (buildCounterEntitlement < 3) { |
| 638 unittest.expect(o.kind, unittest.equals('foo')); | 695 unittest.expect(o.kind, unittest.equals('foo')); |
| 639 unittest.expect(o.productId, unittest.equals('foo')); | 696 unittest.expect(o.productId, unittest.equals('foo')); |
| 640 unittest.expect(o.reason, unittest.equals('foo')); | 697 unittest.expect(o.reason, unittest.equals('foo')); |
| 641 } | 698 } |
| 642 buildCounterEntitlement--; | 699 buildCounterEntitlement--; |
| 643 } | 700 } |
| 644 | 701 |
| 645 buildUnnamed2383() { | 702 buildUnnamed2146() { |
| 646 var o = new core.List<api.Entitlement>(); | 703 var o = new core.List<api.Entitlement>(); |
| 647 o.add(buildEntitlement()); | 704 o.add(buildEntitlement()); |
| 648 o.add(buildEntitlement()); | 705 o.add(buildEntitlement()); |
| 649 return o; | 706 return o; |
| 650 } | 707 } |
| 651 | 708 |
| 652 checkUnnamed2383(core.List<api.Entitlement> o) { | 709 checkUnnamed2146(core.List<api.Entitlement> o) { |
| 653 unittest.expect(o, unittest.hasLength(2)); | 710 unittest.expect(o, unittest.hasLength(2)); |
| 654 checkEntitlement(o[0]); | 711 checkEntitlement(o[0]); |
| 655 checkEntitlement(o[1]); | 712 checkEntitlement(o[1]); |
| 656 } | 713 } |
| 657 | 714 |
| 658 core.int buildCounterEntitlementsListResponse = 0; | 715 core.int buildCounterEntitlementsListResponse = 0; |
| 659 buildEntitlementsListResponse() { | 716 buildEntitlementsListResponse() { |
| 660 var o = new api.EntitlementsListResponse(); | 717 var o = new api.EntitlementsListResponse(); |
| 661 buildCounterEntitlementsListResponse++; | 718 buildCounterEntitlementsListResponse++; |
| 662 if (buildCounterEntitlementsListResponse < 3) { | 719 if (buildCounterEntitlementsListResponse < 3) { |
| 663 o.entitlement = buildUnnamed2383(); | 720 o.entitlement = buildUnnamed2146(); |
| 664 o.kind = "foo"; | 721 o.kind = "foo"; |
| 665 } | 722 } |
| 666 buildCounterEntitlementsListResponse--; | 723 buildCounterEntitlementsListResponse--; |
| 667 return o; | 724 return o; |
| 668 } | 725 } |
| 669 | 726 |
| 670 checkEntitlementsListResponse(api.EntitlementsListResponse o) { | 727 checkEntitlementsListResponse(api.EntitlementsListResponse o) { |
| 671 buildCounterEntitlementsListResponse++; | 728 buildCounterEntitlementsListResponse++; |
| 672 if (buildCounterEntitlementsListResponse < 3) { | 729 if (buildCounterEntitlementsListResponse < 3) { |
| 673 checkUnnamed2383(o.entitlement); | 730 checkUnnamed2146(o.entitlement); |
| 674 unittest.expect(o.kind, unittest.equals('foo')); | 731 unittest.expect(o.kind, unittest.equals('foo')); |
| 675 } | 732 } |
| 676 buildCounterEntitlementsListResponse--; | 733 buildCounterEntitlementsListResponse--; |
| 677 } | 734 } |
| 678 | 735 |
| 679 core.int buildCounterGroupLicense = 0; | 736 core.int buildCounterGroupLicense = 0; |
| 680 buildGroupLicense() { | 737 buildGroupLicense() { |
| 681 var o = new api.GroupLicense(); | 738 var o = new api.GroupLicense(); |
| 682 buildCounterGroupLicense++; | 739 buildCounterGroupLicense++; |
| 683 if (buildCounterGroupLicense < 3) { | 740 if (buildCounterGroupLicense < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 698 unittest.expect(o.acquisitionKind, unittest.equals('foo')); | 755 unittest.expect(o.acquisitionKind, unittest.equals('foo')); |
| 699 unittest.expect(o.approval, unittest.equals('foo')); | 756 unittest.expect(o.approval, unittest.equals('foo')); |
| 700 unittest.expect(o.kind, unittest.equals('foo')); | 757 unittest.expect(o.kind, unittest.equals('foo')); |
| 701 unittest.expect(o.numProvisioned, unittest.equals(42)); | 758 unittest.expect(o.numProvisioned, unittest.equals(42)); |
| 702 unittest.expect(o.numPurchased, unittest.equals(42)); | 759 unittest.expect(o.numPurchased, unittest.equals(42)); |
| 703 unittest.expect(o.productId, unittest.equals('foo')); | 760 unittest.expect(o.productId, unittest.equals('foo')); |
| 704 } | 761 } |
| 705 buildCounterGroupLicense--; | 762 buildCounterGroupLicense--; |
| 706 } | 763 } |
| 707 | 764 |
| 708 buildUnnamed2384() { | 765 buildUnnamed2147() { |
| 709 var o = new core.List<api.User>(); | 766 var o = new core.List<api.User>(); |
| 710 o.add(buildUser()); | 767 o.add(buildUser()); |
| 711 o.add(buildUser()); | 768 o.add(buildUser()); |
| 712 return o; | 769 return o; |
| 713 } | 770 } |
| 714 | 771 |
| 715 checkUnnamed2384(core.List<api.User> o) { | 772 checkUnnamed2147(core.List<api.User> o) { |
| 716 unittest.expect(o, unittest.hasLength(2)); | 773 unittest.expect(o, unittest.hasLength(2)); |
| 717 checkUser(o[0]); | 774 checkUser(o[0]); |
| 718 checkUser(o[1]); | 775 checkUser(o[1]); |
| 719 } | 776 } |
| 720 | 777 |
| 721 core.int buildCounterGroupLicenseUsersListResponse = 0; | 778 core.int buildCounterGroupLicenseUsersListResponse = 0; |
| 722 buildGroupLicenseUsersListResponse() { | 779 buildGroupLicenseUsersListResponse() { |
| 723 var o = new api.GroupLicenseUsersListResponse(); | 780 var o = new api.GroupLicenseUsersListResponse(); |
| 724 buildCounterGroupLicenseUsersListResponse++; | 781 buildCounterGroupLicenseUsersListResponse++; |
| 725 if (buildCounterGroupLicenseUsersListResponse < 3) { | 782 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 726 o.kind = "foo"; | 783 o.kind = "foo"; |
| 727 o.user = buildUnnamed2384(); | 784 o.user = buildUnnamed2147(); |
| 728 } | 785 } |
| 729 buildCounterGroupLicenseUsersListResponse--; | 786 buildCounterGroupLicenseUsersListResponse--; |
| 730 return o; | 787 return o; |
| 731 } | 788 } |
| 732 | 789 |
| 733 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { | 790 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { |
| 734 buildCounterGroupLicenseUsersListResponse++; | 791 buildCounterGroupLicenseUsersListResponse++; |
| 735 if (buildCounterGroupLicenseUsersListResponse < 3) { | 792 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 736 unittest.expect(o.kind, unittest.equals('foo')); | 793 unittest.expect(o.kind, unittest.equals('foo')); |
| 737 checkUnnamed2384(o.user); | 794 checkUnnamed2147(o.user); |
| 738 } | 795 } |
| 739 buildCounterGroupLicenseUsersListResponse--; | 796 buildCounterGroupLicenseUsersListResponse--; |
| 740 } | 797 } |
| 741 | 798 |
| 742 buildUnnamed2385() { | 799 buildUnnamed2148() { |
| 743 var o = new core.List<api.GroupLicense>(); | 800 var o = new core.List<api.GroupLicense>(); |
| 744 o.add(buildGroupLicense()); | 801 o.add(buildGroupLicense()); |
| 745 o.add(buildGroupLicense()); | 802 o.add(buildGroupLicense()); |
| 746 return o; | 803 return o; |
| 747 } | 804 } |
| 748 | 805 |
| 749 checkUnnamed2385(core.List<api.GroupLicense> o) { | 806 checkUnnamed2148(core.List<api.GroupLicense> o) { |
| 750 unittest.expect(o, unittest.hasLength(2)); | 807 unittest.expect(o, unittest.hasLength(2)); |
| 751 checkGroupLicense(o[0]); | 808 checkGroupLicense(o[0]); |
| 752 checkGroupLicense(o[1]); | 809 checkGroupLicense(o[1]); |
| 753 } | 810 } |
| 754 | 811 |
| 755 core.int buildCounterGroupLicensesListResponse = 0; | 812 core.int buildCounterGroupLicensesListResponse = 0; |
| 756 buildGroupLicensesListResponse() { | 813 buildGroupLicensesListResponse() { |
| 757 var o = new api.GroupLicensesListResponse(); | 814 var o = new api.GroupLicensesListResponse(); |
| 758 buildCounterGroupLicensesListResponse++; | 815 buildCounterGroupLicensesListResponse++; |
| 759 if (buildCounterGroupLicensesListResponse < 3) { | 816 if (buildCounterGroupLicensesListResponse < 3) { |
| 760 o.groupLicense = buildUnnamed2385(); | 817 o.groupLicense = buildUnnamed2148(); |
| 761 o.kind = "foo"; | 818 o.kind = "foo"; |
| 762 } | 819 } |
| 763 buildCounterGroupLicensesListResponse--; | 820 buildCounterGroupLicensesListResponse--; |
| 764 return o; | 821 return o; |
| 765 } | 822 } |
| 766 | 823 |
| 767 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { | 824 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { |
| 768 buildCounterGroupLicensesListResponse++; | 825 buildCounterGroupLicensesListResponse++; |
| 769 if (buildCounterGroupLicensesListResponse < 3) { | 826 if (buildCounterGroupLicensesListResponse < 3) { |
| 770 checkUnnamed2385(o.groupLicense); | 827 checkUnnamed2148(o.groupLicense); |
| 771 unittest.expect(o.kind, unittest.equals('foo')); | 828 unittest.expect(o.kind, unittest.equals('foo')); |
| 772 } | 829 } |
| 773 buildCounterGroupLicensesListResponse--; | 830 buildCounterGroupLicensesListResponse--; |
| 774 } | 831 } |
| 775 | 832 |
| 776 core.int buildCounterInstall = 0; | 833 core.int buildCounterInstall = 0; |
| 777 buildInstall() { | 834 buildInstall() { |
| 778 var o = new api.Install(); | 835 var o = new api.Install(); |
| 779 buildCounterInstall++; | 836 buildCounterInstall++; |
| 780 if (buildCounterInstall < 3) { | 837 if (buildCounterInstall < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 if (buildCounterInstallFailureEvent < 3) { | 875 if (buildCounterInstallFailureEvent < 3) { |
| 819 unittest.expect(o.deviceId, unittest.equals('foo')); | 876 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 820 unittest.expect(o.failureDetails, unittest.equals('foo')); | 877 unittest.expect(o.failureDetails, unittest.equals('foo')); |
| 821 unittest.expect(o.failureReason, unittest.equals('foo')); | 878 unittest.expect(o.failureReason, unittest.equals('foo')); |
| 822 unittest.expect(o.productId, unittest.equals('foo')); | 879 unittest.expect(o.productId, unittest.equals('foo')); |
| 823 unittest.expect(o.userId, unittest.equals('foo')); | 880 unittest.expect(o.userId, unittest.equals('foo')); |
| 824 } | 881 } |
| 825 buildCounterInstallFailureEvent--; | 882 buildCounterInstallFailureEvent--; |
| 826 } | 883 } |
| 827 | 884 |
| 828 buildUnnamed2386() { | 885 buildUnnamed2149() { |
| 829 var o = new core.List<api.Install>(); | 886 var o = new core.List<api.Install>(); |
| 830 o.add(buildInstall()); | 887 o.add(buildInstall()); |
| 831 o.add(buildInstall()); | 888 o.add(buildInstall()); |
| 832 return o; | 889 return o; |
| 833 } | 890 } |
| 834 | 891 |
| 835 checkUnnamed2386(core.List<api.Install> o) { | 892 checkUnnamed2149(core.List<api.Install> o) { |
| 836 unittest.expect(o, unittest.hasLength(2)); | 893 unittest.expect(o, unittest.hasLength(2)); |
| 837 checkInstall(o[0]); | 894 checkInstall(o[0]); |
| 838 checkInstall(o[1]); | 895 checkInstall(o[1]); |
| 839 } | 896 } |
| 840 | 897 |
| 841 core.int buildCounterInstallsListResponse = 0; | 898 core.int buildCounterInstallsListResponse = 0; |
| 842 buildInstallsListResponse() { | 899 buildInstallsListResponse() { |
| 843 var o = new api.InstallsListResponse(); | 900 var o = new api.InstallsListResponse(); |
| 844 buildCounterInstallsListResponse++; | 901 buildCounterInstallsListResponse++; |
| 845 if (buildCounterInstallsListResponse < 3) { | 902 if (buildCounterInstallsListResponse < 3) { |
| 846 o.install = buildUnnamed2386(); | 903 o.install = buildUnnamed2149(); |
| 847 o.kind = "foo"; | 904 o.kind = "foo"; |
| 848 } | 905 } |
| 849 buildCounterInstallsListResponse--; | 906 buildCounterInstallsListResponse--; |
| 850 return o; | 907 return o; |
| 851 } | 908 } |
| 852 | 909 |
| 853 checkInstallsListResponse(api.InstallsListResponse o) { | 910 checkInstallsListResponse(api.InstallsListResponse o) { |
| 854 buildCounterInstallsListResponse++; | 911 buildCounterInstallsListResponse++; |
| 855 if (buildCounterInstallsListResponse < 3) { | 912 if (buildCounterInstallsListResponse < 3) { |
| 856 checkUnnamed2386(o.install); | 913 checkUnnamed2149(o.install); |
| 857 unittest.expect(o.kind, unittest.equals('foo')); | 914 unittest.expect(o.kind, unittest.equals('foo')); |
| 858 } | 915 } |
| 859 buildCounterInstallsListResponse--; | 916 buildCounterInstallsListResponse--; |
| 860 } | 917 } |
| 861 | 918 |
| 862 core.int buildCounterLocalizedText = 0; | 919 core.int buildCounterLocalizedText = 0; |
| 863 buildLocalizedText() { | 920 buildLocalizedText() { |
| 864 var o = new api.LocalizedText(); | 921 var o = new api.LocalizedText(); |
| 865 buildCounterLocalizedText++; | 922 buildCounterLocalizedText++; |
| 866 if (buildCounterLocalizedText < 3) { | 923 if (buildCounterLocalizedText < 3) { |
| 867 o.locale = "foo"; | 924 o.locale = "foo"; |
| 868 o.text = "foo"; | 925 o.text = "foo"; |
| 869 } | 926 } |
| 870 buildCounterLocalizedText--; | 927 buildCounterLocalizedText--; |
| 871 return o; | 928 return o; |
| 872 } | 929 } |
| 873 | 930 |
| 874 checkLocalizedText(api.LocalizedText o) { | 931 checkLocalizedText(api.LocalizedText o) { |
| 875 buildCounterLocalizedText++; | 932 buildCounterLocalizedText++; |
| 876 if (buildCounterLocalizedText < 3) { | 933 if (buildCounterLocalizedText < 3) { |
| 877 unittest.expect(o.locale, unittest.equals('foo')); | 934 unittest.expect(o.locale, unittest.equals('foo')); |
| 878 unittest.expect(o.text, unittest.equals('foo')); | 935 unittest.expect(o.text, unittest.equals('foo')); |
| 879 } | 936 } |
| 880 buildCounterLocalizedText--; | 937 buildCounterLocalizedText--; |
| 881 } | 938 } |
| 882 | 939 |
| 883 buildUnnamed2387() { | 940 buildUnnamed2150() { |
| 884 var o = new core.List<api.ManagedProperty>(); | 941 var o = new core.List<api.ManagedProperty>(); |
| 885 o.add(buildManagedProperty()); | 942 o.add(buildManagedProperty()); |
| 886 o.add(buildManagedProperty()); | 943 o.add(buildManagedProperty()); |
| 887 return o; | 944 return o; |
| 888 } | 945 } |
| 889 | 946 |
| 890 checkUnnamed2387(core.List<api.ManagedProperty> o) { | 947 checkUnnamed2150(core.List<api.ManagedProperty> o) { |
| 891 unittest.expect(o, unittest.hasLength(2)); | 948 unittest.expect(o, unittest.hasLength(2)); |
| 892 checkManagedProperty(o[0]); | 949 checkManagedProperty(o[0]); |
| 893 checkManagedProperty(o[1]); | 950 checkManagedProperty(o[1]); |
| 894 } | 951 } |
| 895 | 952 |
| 896 core.int buildCounterManagedConfiguration = 0; | 953 core.int buildCounterManagedConfiguration = 0; |
| 897 buildManagedConfiguration() { | 954 buildManagedConfiguration() { |
| 898 var o = new api.ManagedConfiguration(); | 955 var o = new api.ManagedConfiguration(); |
| 899 buildCounterManagedConfiguration++; | 956 buildCounterManagedConfiguration++; |
| 900 if (buildCounterManagedConfiguration < 3) { | 957 if (buildCounterManagedConfiguration < 3) { |
| 901 o.kind = "foo"; | 958 o.kind = "foo"; |
| 902 o.managedProperty = buildUnnamed2387(); | 959 o.managedProperty = buildUnnamed2150(); |
| 903 o.productId = "foo"; | 960 o.productId = "foo"; |
| 904 } | 961 } |
| 905 buildCounterManagedConfiguration--; | 962 buildCounterManagedConfiguration--; |
| 906 return o; | 963 return o; |
| 907 } | 964 } |
| 908 | 965 |
| 909 checkManagedConfiguration(api.ManagedConfiguration o) { | 966 checkManagedConfiguration(api.ManagedConfiguration o) { |
| 910 buildCounterManagedConfiguration++; | 967 buildCounterManagedConfiguration++; |
| 911 if (buildCounterManagedConfiguration < 3) { | 968 if (buildCounterManagedConfiguration < 3) { |
| 912 unittest.expect(o.kind, unittest.equals('foo')); | 969 unittest.expect(o.kind, unittest.equals('foo')); |
| 913 checkUnnamed2387(o.managedProperty); | 970 checkUnnamed2150(o.managedProperty); |
| 914 unittest.expect(o.productId, unittest.equals('foo')); | 971 unittest.expect(o.productId, unittest.equals('foo')); |
| 915 } | 972 } |
| 916 buildCounterManagedConfiguration--; | 973 buildCounterManagedConfiguration--; |
| 917 } | 974 } |
| 918 | 975 |
| 919 buildUnnamed2388() { | 976 buildUnnamed2151() { |
| 920 var o = new core.List<api.ManagedConfiguration>(); | 977 var o = new core.List<api.ManagedConfiguration>(); |
| 921 o.add(buildManagedConfiguration()); | 978 o.add(buildManagedConfiguration()); |
| 922 o.add(buildManagedConfiguration()); | 979 o.add(buildManagedConfiguration()); |
| 923 return o; | 980 return o; |
| 924 } | 981 } |
| 925 | 982 |
| 926 checkUnnamed2388(core.List<api.ManagedConfiguration> o) { | 983 checkUnnamed2151(core.List<api.ManagedConfiguration> o) { |
| 927 unittest.expect(o, unittest.hasLength(2)); | 984 unittest.expect(o, unittest.hasLength(2)); |
| 928 checkManagedConfiguration(o[0]); | 985 checkManagedConfiguration(o[0]); |
| 929 checkManagedConfiguration(o[1]); | 986 checkManagedConfiguration(o[1]); |
| 930 } | 987 } |
| 931 | 988 |
| 932 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; | 989 core.int buildCounterManagedConfigurationsForDeviceListResponse = 0; |
| 933 buildManagedConfigurationsForDeviceListResponse() { | 990 buildManagedConfigurationsForDeviceListResponse() { |
| 934 var o = new api.ManagedConfigurationsForDeviceListResponse(); | 991 var o = new api.ManagedConfigurationsForDeviceListResponse(); |
| 935 buildCounterManagedConfigurationsForDeviceListResponse++; | 992 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 936 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { | 993 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 937 o.kind = "foo"; | 994 o.kind = "foo"; |
| 938 o.managedConfigurationForDevice = buildUnnamed2388(); | 995 o.managedConfigurationForDevice = buildUnnamed2151(); |
| 939 } | 996 } |
| 940 buildCounterManagedConfigurationsForDeviceListResponse--; | 997 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 941 return o; | 998 return o; |
| 942 } | 999 } |
| 943 | 1000 |
| 944 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi
ceListResponse o) { | 1001 checkManagedConfigurationsForDeviceListResponse(api.ManagedConfigurationsForDevi
ceListResponse o) { |
| 945 buildCounterManagedConfigurationsForDeviceListResponse++; | 1002 buildCounterManagedConfigurationsForDeviceListResponse++; |
| 946 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { | 1003 if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { |
| 947 unittest.expect(o.kind, unittest.equals('foo')); | 1004 unittest.expect(o.kind, unittest.equals('foo')); |
| 948 checkUnnamed2388(o.managedConfigurationForDevice); | 1005 checkUnnamed2151(o.managedConfigurationForDevice); |
| 949 } | 1006 } |
| 950 buildCounterManagedConfigurationsForDeviceListResponse--; | 1007 buildCounterManagedConfigurationsForDeviceListResponse--; |
| 951 } | 1008 } |
| 952 | 1009 |
| 953 buildUnnamed2389() { | 1010 buildUnnamed2152() { |
| 954 var o = new core.List<api.ManagedConfiguration>(); | 1011 var o = new core.List<api.ManagedConfiguration>(); |
| 955 o.add(buildManagedConfiguration()); | 1012 o.add(buildManagedConfiguration()); |
| 956 o.add(buildManagedConfiguration()); | 1013 o.add(buildManagedConfiguration()); |
| 957 return o; | 1014 return o; |
| 958 } | 1015 } |
| 959 | 1016 |
| 960 checkUnnamed2389(core.List<api.ManagedConfiguration> o) { | 1017 checkUnnamed2152(core.List<api.ManagedConfiguration> o) { |
| 961 unittest.expect(o, unittest.hasLength(2)); | 1018 unittest.expect(o, unittest.hasLength(2)); |
| 962 checkManagedConfiguration(o[0]); | 1019 checkManagedConfiguration(o[0]); |
| 963 checkManagedConfiguration(o[1]); | 1020 checkManagedConfiguration(o[1]); |
| 964 } | 1021 } |
| 965 | 1022 |
| 966 core.int buildCounterManagedConfigurationsForUserListResponse = 0; | 1023 core.int buildCounterManagedConfigurationsForUserListResponse = 0; |
| 967 buildManagedConfigurationsForUserListResponse() { | 1024 buildManagedConfigurationsForUserListResponse() { |
| 968 var o = new api.ManagedConfigurationsForUserListResponse(); | 1025 var o = new api.ManagedConfigurationsForUserListResponse(); |
| 969 buildCounterManagedConfigurationsForUserListResponse++; | 1026 buildCounterManagedConfigurationsForUserListResponse++; |
| 970 if (buildCounterManagedConfigurationsForUserListResponse < 3) { | 1027 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 971 o.kind = "foo"; | 1028 o.kind = "foo"; |
| 972 o.managedConfigurationForUser = buildUnnamed2389(); | 1029 o.managedConfigurationForUser = buildUnnamed2152(); |
| 973 } | 1030 } |
| 974 buildCounterManagedConfigurationsForUserListResponse--; | 1031 buildCounterManagedConfigurationsForUserListResponse--; |
| 975 return o; | 1032 return o; |
| 976 } | 1033 } |
| 977 | 1034 |
| 978 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi
stResponse o) { | 1035 checkManagedConfigurationsForUserListResponse(api.ManagedConfigurationsForUserLi
stResponse o) { |
| 979 buildCounterManagedConfigurationsForUserListResponse++; | 1036 buildCounterManagedConfigurationsForUserListResponse++; |
| 980 if (buildCounterManagedConfigurationsForUserListResponse < 3) { | 1037 if (buildCounterManagedConfigurationsForUserListResponse < 3) { |
| 981 unittest.expect(o.kind, unittest.equals('foo')); | 1038 unittest.expect(o.kind, unittest.equals('foo')); |
| 982 checkUnnamed2389(o.managedConfigurationForUser); | 1039 checkUnnamed2152(o.managedConfigurationForUser); |
| 983 } | 1040 } |
| 984 buildCounterManagedConfigurationsForUserListResponse--; | 1041 buildCounterManagedConfigurationsForUserListResponse--; |
| 985 } | 1042 } |
| 986 | 1043 |
| 987 buildUnnamed2390() { | 1044 buildUnnamed2153() { |
| 988 var o = new core.List<api.ManagedPropertyBundle>(); | 1045 var o = new core.List<api.ManagedPropertyBundle>(); |
| 989 o.add(buildManagedPropertyBundle()); | 1046 o.add(buildManagedPropertyBundle()); |
| 990 o.add(buildManagedPropertyBundle()); | 1047 o.add(buildManagedPropertyBundle()); |
| 991 return o; | 1048 return o; |
| 992 } | 1049 } |
| 993 | 1050 |
| 994 checkUnnamed2390(core.List<api.ManagedPropertyBundle> o) { | 1051 checkUnnamed2153(core.List<api.ManagedPropertyBundle> o) { |
| 995 unittest.expect(o, unittest.hasLength(2)); | 1052 unittest.expect(o, unittest.hasLength(2)); |
| 996 checkManagedPropertyBundle(o[0]); | 1053 checkManagedPropertyBundle(o[0]); |
| 997 checkManagedPropertyBundle(o[1]); | 1054 checkManagedPropertyBundle(o[1]); |
| 998 } | 1055 } |
| 999 | 1056 |
| 1000 buildUnnamed2391() { | 1057 buildUnnamed2154() { |
| 1001 var o = new core.List<core.String>(); | 1058 var o = new core.List<core.String>(); |
| 1002 o.add("foo"); | 1059 o.add("foo"); |
| 1003 o.add("foo"); | 1060 o.add("foo"); |
| 1004 return o; | 1061 return o; |
| 1005 } | 1062 } |
| 1006 | 1063 |
| 1007 checkUnnamed2391(core.List<core.String> o) { | 1064 checkUnnamed2154(core.List<core.String> o) { |
| 1008 unittest.expect(o, unittest.hasLength(2)); | 1065 unittest.expect(o, unittest.hasLength(2)); |
| 1009 unittest.expect(o[0], unittest.equals('foo')); | 1066 unittest.expect(o[0], unittest.equals('foo')); |
| 1010 unittest.expect(o[1], unittest.equals('foo')); | 1067 unittest.expect(o[1], unittest.equals('foo')); |
| 1011 } | 1068 } |
| 1012 | 1069 |
| 1013 core.int buildCounterManagedProperty = 0; | 1070 core.int buildCounterManagedProperty = 0; |
| 1014 buildManagedProperty() { | 1071 buildManagedProperty() { |
| 1015 var o = new api.ManagedProperty(); | 1072 var o = new api.ManagedProperty(); |
| 1016 buildCounterManagedProperty++; | 1073 buildCounterManagedProperty++; |
| 1017 if (buildCounterManagedProperty < 3) { | 1074 if (buildCounterManagedProperty < 3) { |
| 1018 o.key = "foo"; | 1075 o.key = "foo"; |
| 1019 o.valueBool = true; | 1076 o.valueBool = true; |
| 1020 o.valueBundle = buildManagedPropertyBundle(); | 1077 o.valueBundle = buildManagedPropertyBundle(); |
| 1021 o.valueBundleArray = buildUnnamed2390(); | 1078 o.valueBundleArray = buildUnnamed2153(); |
| 1022 o.valueInteger = 42; | 1079 o.valueInteger = 42; |
| 1023 o.valueString = "foo"; | 1080 o.valueString = "foo"; |
| 1024 o.valueStringArray = buildUnnamed2391(); | 1081 o.valueStringArray = buildUnnamed2154(); |
| 1025 } | 1082 } |
| 1026 buildCounterManagedProperty--; | 1083 buildCounterManagedProperty--; |
| 1027 return o; | 1084 return o; |
| 1028 } | 1085 } |
| 1029 | 1086 |
| 1030 checkManagedProperty(api.ManagedProperty o) { | 1087 checkManagedProperty(api.ManagedProperty o) { |
| 1031 buildCounterManagedProperty++; | 1088 buildCounterManagedProperty++; |
| 1032 if (buildCounterManagedProperty < 3) { | 1089 if (buildCounterManagedProperty < 3) { |
| 1033 unittest.expect(o.key, unittest.equals('foo')); | 1090 unittest.expect(o.key, unittest.equals('foo')); |
| 1034 unittest.expect(o.valueBool, unittest.isTrue); | 1091 unittest.expect(o.valueBool, unittest.isTrue); |
| 1035 checkManagedPropertyBundle(o.valueBundle); | 1092 checkManagedPropertyBundle(o.valueBundle); |
| 1036 checkUnnamed2390(o.valueBundleArray); | 1093 checkUnnamed2153(o.valueBundleArray); |
| 1037 unittest.expect(o.valueInteger, unittest.equals(42)); | 1094 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 1038 unittest.expect(o.valueString, unittest.equals('foo')); | 1095 unittest.expect(o.valueString, unittest.equals('foo')); |
| 1039 checkUnnamed2391(o.valueStringArray); | 1096 checkUnnamed2154(o.valueStringArray); |
| 1040 } | 1097 } |
| 1041 buildCounterManagedProperty--; | 1098 buildCounterManagedProperty--; |
| 1042 } | 1099 } |
| 1043 | 1100 |
| 1044 buildUnnamed2392() { | 1101 buildUnnamed2155() { |
| 1045 var o = new core.List<api.ManagedProperty>(); | 1102 var o = new core.List<api.ManagedProperty>(); |
| 1046 o.add(buildManagedProperty()); | 1103 o.add(buildManagedProperty()); |
| 1047 o.add(buildManagedProperty()); | 1104 o.add(buildManagedProperty()); |
| 1048 return o; | 1105 return o; |
| 1049 } | 1106 } |
| 1050 | 1107 |
| 1051 checkUnnamed2392(core.List<api.ManagedProperty> o) { | 1108 checkUnnamed2155(core.List<api.ManagedProperty> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
| 1053 checkManagedProperty(o[0]); | 1110 checkManagedProperty(o[0]); |
| 1054 checkManagedProperty(o[1]); | 1111 checkManagedProperty(o[1]); |
| 1055 } | 1112 } |
| 1056 | 1113 |
| 1057 core.int buildCounterManagedPropertyBundle = 0; | 1114 core.int buildCounterManagedPropertyBundle = 0; |
| 1058 buildManagedPropertyBundle() { | 1115 buildManagedPropertyBundle() { |
| 1059 var o = new api.ManagedPropertyBundle(); | 1116 var o = new api.ManagedPropertyBundle(); |
| 1060 buildCounterManagedPropertyBundle++; | 1117 buildCounterManagedPropertyBundle++; |
| 1061 if (buildCounterManagedPropertyBundle < 3) { | 1118 if (buildCounterManagedPropertyBundle < 3) { |
| 1062 o.managedProperty = buildUnnamed2392(); | 1119 o.managedProperty = buildUnnamed2155(); |
| 1063 } | 1120 } |
| 1064 buildCounterManagedPropertyBundle--; | 1121 buildCounterManagedPropertyBundle--; |
| 1065 return o; | 1122 return o; |
| 1066 } | 1123 } |
| 1067 | 1124 |
| 1068 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { | 1125 checkManagedPropertyBundle(api.ManagedPropertyBundle o) { |
| 1069 buildCounterManagedPropertyBundle++; | 1126 buildCounterManagedPropertyBundle++; |
| 1070 if (buildCounterManagedPropertyBundle < 3) { | 1127 if (buildCounterManagedPropertyBundle < 3) { |
| 1071 checkUnnamed2392(o.managedProperty); | 1128 checkUnnamed2155(o.managedProperty); |
| 1072 } | 1129 } |
| 1073 buildCounterManagedPropertyBundle--; | 1130 buildCounterManagedPropertyBundle--; |
| 1074 } | 1131 } |
| 1075 | 1132 |
| 1076 buildUnnamed2393() { | 1133 buildUnnamed2156() { |
| 1077 var o = new core.List<core.String>(); | 1134 var o = new core.List<core.String>(); |
| 1078 o.add("foo"); | 1135 o.add("foo"); |
| 1079 o.add("foo"); | 1136 o.add("foo"); |
| 1080 return o; | 1137 return o; |
| 1081 } | 1138 } |
| 1082 | 1139 |
| 1083 checkUnnamed2393(core.List<core.String> o) { | 1140 checkUnnamed2156(core.List<core.String> o) { |
| 1084 unittest.expect(o, unittest.hasLength(2)); | 1141 unittest.expect(o, unittest.hasLength(2)); |
| 1085 unittest.expect(o[0], unittest.equals('foo')); | 1142 unittest.expect(o[0], unittest.equals('foo')); |
| 1086 unittest.expect(o[1], unittest.equals('foo')); | 1143 unittest.expect(o[1], unittest.equals('foo')); |
| 1087 } | 1144 } |
| 1088 | 1145 |
| 1089 buildUnnamed2394() { | 1146 buildUnnamed2157() { |
| 1090 var o = new core.List<core.String>(); | 1147 var o = new core.List<core.String>(); |
| 1091 o.add("foo"); | 1148 o.add("foo"); |
| 1092 o.add("foo"); | 1149 o.add("foo"); |
| 1093 return o; | 1150 return o; |
| 1094 } | 1151 } |
| 1095 | 1152 |
| 1096 checkUnnamed2394(core.List<core.String> o) { | 1153 checkUnnamed2157(core.List<core.String> o) { |
| 1097 unittest.expect(o, unittest.hasLength(2)); | 1154 unittest.expect(o, unittest.hasLength(2)); |
| 1098 unittest.expect(o[0], unittest.equals('foo')); | 1155 unittest.expect(o[0], unittest.equals('foo')); |
| 1099 unittest.expect(o[1], unittest.equals('foo')); | 1156 unittest.expect(o[1], unittest.equals('foo')); |
| 1100 } | 1157 } |
| 1101 | 1158 |
| 1102 core.int buildCounterNewPermissionsEvent = 0; | 1159 core.int buildCounterNewPermissionsEvent = 0; |
| 1103 buildNewPermissionsEvent() { | 1160 buildNewPermissionsEvent() { |
| 1104 var o = new api.NewPermissionsEvent(); | 1161 var o = new api.NewPermissionsEvent(); |
| 1105 buildCounterNewPermissionsEvent++; | 1162 buildCounterNewPermissionsEvent++; |
| 1106 if (buildCounterNewPermissionsEvent < 3) { | 1163 if (buildCounterNewPermissionsEvent < 3) { |
| 1107 o.approvedPermissions = buildUnnamed2393(); | 1164 o.approvedPermissions = buildUnnamed2156(); |
| 1108 o.productId = "foo"; | 1165 o.productId = "foo"; |
| 1109 o.requestedPermissions = buildUnnamed2394(); | 1166 o.requestedPermissions = buildUnnamed2157(); |
| 1110 } | 1167 } |
| 1111 buildCounterNewPermissionsEvent--; | 1168 buildCounterNewPermissionsEvent--; |
| 1112 return o; | 1169 return o; |
| 1113 } | 1170 } |
| 1114 | 1171 |
| 1115 checkNewPermissionsEvent(api.NewPermissionsEvent o) { | 1172 checkNewPermissionsEvent(api.NewPermissionsEvent o) { |
| 1116 buildCounterNewPermissionsEvent++; | 1173 buildCounterNewPermissionsEvent++; |
| 1117 if (buildCounterNewPermissionsEvent < 3) { | 1174 if (buildCounterNewPermissionsEvent < 3) { |
| 1118 checkUnnamed2393(o.approvedPermissions); | 1175 checkUnnamed2156(o.approvedPermissions); |
| 1119 unittest.expect(o.productId, unittest.equals('foo')); | 1176 unittest.expect(o.productId, unittest.equals('foo')); |
| 1120 checkUnnamed2394(o.requestedPermissions); | 1177 checkUnnamed2157(o.requestedPermissions); |
| 1121 } | 1178 } |
| 1122 buildCounterNewPermissionsEvent--; | 1179 buildCounterNewPermissionsEvent--; |
| 1123 } | 1180 } |
| 1124 | 1181 |
| 1125 core.int buildCounterNotification = 0; | 1182 core.int buildCounterNotification = 0; |
| 1126 buildNotification() { | 1183 buildNotification() { |
| 1127 var o = new api.Notification(); | 1184 var o = new api.Notification(); |
| 1128 buildCounterNotification++; | 1185 buildCounterNotification++; |
| 1129 if (buildCounterNotification < 3) { | 1186 if (buildCounterNotification < 3) { |
| 1130 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; | 1187 o.appRestrictionsSchemaChangeEvent = buildAppRestrictionsSchemaChangeEvent()
; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1148 unittest.expect(o.enterpriseId, unittest.equals('foo')); | 1205 unittest.expect(o.enterpriseId, unittest.equals('foo')); |
| 1149 checkInstallFailureEvent(o.installFailureEvent); | 1206 checkInstallFailureEvent(o.installFailureEvent); |
| 1150 checkNewPermissionsEvent(o.newPermissionsEvent); | 1207 checkNewPermissionsEvent(o.newPermissionsEvent); |
| 1151 checkProductApprovalEvent(o.productApprovalEvent); | 1208 checkProductApprovalEvent(o.productApprovalEvent); |
| 1152 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); | 1209 checkProductAvailabilityChangeEvent(o.productAvailabilityChangeEvent); |
| 1153 unittest.expect(o.timestampMillis, unittest.equals('foo')); | 1210 unittest.expect(o.timestampMillis, unittest.equals('foo')); |
| 1154 } | 1211 } |
| 1155 buildCounterNotification--; | 1212 buildCounterNotification--; |
| 1156 } | 1213 } |
| 1157 | 1214 |
| 1158 buildUnnamed2395() { | 1215 buildUnnamed2158() { |
| 1159 var o = new core.List<api.Notification>(); | 1216 var o = new core.List<api.Notification>(); |
| 1160 o.add(buildNotification()); | 1217 o.add(buildNotification()); |
| 1161 o.add(buildNotification()); | 1218 o.add(buildNotification()); |
| 1162 return o; | 1219 return o; |
| 1163 } | 1220 } |
| 1164 | 1221 |
| 1165 checkUnnamed2395(core.List<api.Notification> o) { | 1222 checkUnnamed2158(core.List<api.Notification> o) { |
| 1166 unittest.expect(o, unittest.hasLength(2)); | 1223 unittest.expect(o, unittest.hasLength(2)); |
| 1167 checkNotification(o[0]); | 1224 checkNotification(o[0]); |
| 1168 checkNotification(o[1]); | 1225 checkNotification(o[1]); |
| 1169 } | 1226 } |
| 1170 | 1227 |
| 1171 core.int buildCounterNotificationSet = 0; | 1228 core.int buildCounterNotificationSet = 0; |
| 1172 buildNotificationSet() { | 1229 buildNotificationSet() { |
| 1173 var o = new api.NotificationSet(); | 1230 var o = new api.NotificationSet(); |
| 1174 buildCounterNotificationSet++; | 1231 buildCounterNotificationSet++; |
| 1175 if (buildCounterNotificationSet < 3) { | 1232 if (buildCounterNotificationSet < 3) { |
| 1176 o.kind = "foo"; | 1233 o.kind = "foo"; |
| 1177 o.notification = buildUnnamed2395(); | 1234 o.notification = buildUnnamed2158(); |
| 1178 o.notificationSetId = "foo"; | 1235 o.notificationSetId = "foo"; |
| 1179 } | 1236 } |
| 1180 buildCounterNotificationSet--; | 1237 buildCounterNotificationSet--; |
| 1181 return o; | 1238 return o; |
| 1182 } | 1239 } |
| 1183 | 1240 |
| 1184 checkNotificationSet(api.NotificationSet o) { | 1241 checkNotificationSet(api.NotificationSet o) { |
| 1185 buildCounterNotificationSet++; | 1242 buildCounterNotificationSet++; |
| 1186 if (buildCounterNotificationSet < 3) { | 1243 if (buildCounterNotificationSet < 3) { |
| 1187 unittest.expect(o.kind, unittest.equals('foo')); | 1244 unittest.expect(o.kind, unittest.equals('foo')); |
| 1188 checkUnnamed2395(o.notification); | 1245 checkUnnamed2158(o.notification); |
| 1189 unittest.expect(o.notificationSetId, unittest.equals('foo')); | 1246 unittest.expect(o.notificationSetId, unittest.equals('foo')); |
| 1190 } | 1247 } |
| 1191 buildCounterNotificationSet--; | 1248 buildCounterNotificationSet--; |
| 1192 } | 1249 } |
| 1193 | 1250 |
| 1194 core.int buildCounterPageInfo = 0; | 1251 core.int buildCounterPageInfo = 0; |
| 1195 buildPageInfo() { | 1252 buildPageInfo() { |
| 1196 var o = new api.PageInfo(); | 1253 var o = new api.PageInfo(); |
| 1197 buildCounterPageInfo++; | 1254 buildCounterPageInfo++; |
| 1198 if (buildCounterPageInfo < 3) { | 1255 if (buildCounterPageInfo < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 buildCounterPermission++; | 1289 buildCounterPermission++; |
| 1233 if (buildCounterPermission < 3) { | 1290 if (buildCounterPermission < 3) { |
| 1234 unittest.expect(o.description, unittest.equals('foo')); | 1291 unittest.expect(o.description, unittest.equals('foo')); |
| 1235 unittest.expect(o.kind, unittest.equals('foo')); | 1292 unittest.expect(o.kind, unittest.equals('foo')); |
| 1236 unittest.expect(o.name, unittest.equals('foo')); | 1293 unittest.expect(o.name, unittest.equals('foo')); |
| 1237 unittest.expect(o.permissionId, unittest.equals('foo')); | 1294 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1238 } | 1295 } |
| 1239 buildCounterPermission--; | 1296 buildCounterPermission--; |
| 1240 } | 1297 } |
| 1241 | 1298 |
| 1242 buildUnnamed2396() { | 1299 buildUnnamed2159() { |
| 1243 var o = new core.List<api.AppVersion>(); | 1300 var o = new core.List<api.AppVersion>(); |
| 1244 o.add(buildAppVersion()); | 1301 o.add(buildAppVersion()); |
| 1245 o.add(buildAppVersion()); | 1302 o.add(buildAppVersion()); |
| 1246 return o; | 1303 return o; |
| 1247 } | 1304 } |
| 1248 | 1305 |
| 1249 checkUnnamed2396(core.List<api.AppVersion> o) { | 1306 checkUnnamed2159(core.List<api.AppVersion> o) { |
| 1250 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
| 1251 checkAppVersion(o[0]); | 1308 checkAppVersion(o[0]); |
| 1252 checkAppVersion(o[1]); | 1309 checkAppVersion(o[1]); |
| 1253 } | 1310 } |
| 1254 | 1311 |
| 1255 core.int buildCounterProduct = 0; | 1312 core.int buildCounterProduct = 0; |
| 1256 buildProduct() { | 1313 buildProduct() { |
| 1257 var o = new api.Product(); | 1314 var o = new api.Product(); |
| 1258 buildCounterProduct++; | 1315 buildCounterProduct++; |
| 1259 if (buildCounterProduct < 3) { | 1316 if (buildCounterProduct < 3) { |
| 1260 o.appVersion = buildUnnamed2396(); | 1317 o.appVersion = buildUnnamed2159(); |
| 1261 o.authorName = "foo"; | 1318 o.authorName = "foo"; |
| 1262 o.detailsUrl = "foo"; | 1319 o.detailsUrl = "foo"; |
| 1263 o.distributionChannel = "foo"; | 1320 o.distributionChannel = "foo"; |
| 1264 o.iconUrl = "foo"; | 1321 o.iconUrl = "foo"; |
| 1265 o.kind = "foo"; | 1322 o.kind = "foo"; |
| 1266 o.productId = "foo"; | 1323 o.productId = "foo"; |
| 1267 o.productPricing = "foo"; | 1324 o.productPricing = "foo"; |
| 1268 o.requiresContainerApp = true; | 1325 o.requiresContainerApp = true; |
| 1269 o.smallIconUrl = "foo"; | 1326 o.smallIconUrl = "foo"; |
| 1270 o.title = "foo"; | 1327 o.title = "foo"; |
| 1271 o.workDetailsUrl = "foo"; | 1328 o.workDetailsUrl = "foo"; |
| 1272 } | 1329 } |
| 1273 buildCounterProduct--; | 1330 buildCounterProduct--; |
| 1274 return o; | 1331 return o; |
| 1275 } | 1332 } |
| 1276 | 1333 |
| 1277 checkProduct(api.Product o) { | 1334 checkProduct(api.Product o) { |
| 1278 buildCounterProduct++; | 1335 buildCounterProduct++; |
| 1279 if (buildCounterProduct < 3) { | 1336 if (buildCounterProduct < 3) { |
| 1280 checkUnnamed2396(o.appVersion); | 1337 checkUnnamed2159(o.appVersion); |
| 1281 unittest.expect(o.authorName, unittest.equals('foo')); | 1338 unittest.expect(o.authorName, unittest.equals('foo')); |
| 1282 unittest.expect(o.detailsUrl, unittest.equals('foo')); | 1339 unittest.expect(o.detailsUrl, unittest.equals('foo')); |
| 1283 unittest.expect(o.distributionChannel, unittest.equals('foo')); | 1340 unittest.expect(o.distributionChannel, unittest.equals('foo')); |
| 1284 unittest.expect(o.iconUrl, unittest.equals('foo')); | 1341 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 1285 unittest.expect(o.kind, unittest.equals('foo')); | 1342 unittest.expect(o.kind, unittest.equals('foo')); |
| 1286 unittest.expect(o.productId, unittest.equals('foo')); | 1343 unittest.expect(o.productId, unittest.equals('foo')); |
| 1287 unittest.expect(o.productPricing, unittest.equals('foo')); | 1344 unittest.expect(o.productPricing, unittest.equals('foo')); |
| 1288 unittest.expect(o.requiresContainerApp, unittest.isTrue); | 1345 unittest.expect(o.requiresContainerApp, unittest.isTrue); |
| 1289 unittest.expect(o.smallIconUrl, unittest.equals('foo')); | 1346 unittest.expect(o.smallIconUrl, unittest.equals('foo')); |
| 1290 unittest.expect(o.title, unittest.equals('foo')); | 1347 unittest.expect(o.title, unittest.equals('foo')); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 | 1406 |
| 1350 checkProductPermission(api.ProductPermission o) { | 1407 checkProductPermission(api.ProductPermission o) { |
| 1351 buildCounterProductPermission++; | 1408 buildCounterProductPermission++; |
| 1352 if (buildCounterProductPermission < 3) { | 1409 if (buildCounterProductPermission < 3) { |
| 1353 unittest.expect(o.permissionId, unittest.equals('foo')); | 1410 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 1354 unittest.expect(o.state, unittest.equals('foo')); | 1411 unittest.expect(o.state, unittest.equals('foo')); |
| 1355 } | 1412 } |
| 1356 buildCounterProductPermission--; | 1413 buildCounterProductPermission--; |
| 1357 } | 1414 } |
| 1358 | 1415 |
| 1359 buildUnnamed2397() { | 1416 buildUnnamed2160() { |
| 1360 var o = new core.List<api.ProductPermission>(); | 1417 var o = new core.List<api.ProductPermission>(); |
| 1361 o.add(buildProductPermission()); | 1418 o.add(buildProductPermission()); |
| 1362 o.add(buildProductPermission()); | 1419 o.add(buildProductPermission()); |
| 1363 return o; | 1420 return o; |
| 1364 } | 1421 } |
| 1365 | 1422 |
| 1366 checkUnnamed2397(core.List<api.ProductPermission> o) { | 1423 checkUnnamed2160(core.List<api.ProductPermission> o) { |
| 1367 unittest.expect(o, unittest.hasLength(2)); | 1424 unittest.expect(o, unittest.hasLength(2)); |
| 1368 checkProductPermission(o[0]); | 1425 checkProductPermission(o[0]); |
| 1369 checkProductPermission(o[1]); | 1426 checkProductPermission(o[1]); |
| 1370 } | 1427 } |
| 1371 | 1428 |
| 1372 core.int buildCounterProductPermissions = 0; | 1429 core.int buildCounterProductPermissions = 0; |
| 1373 buildProductPermissions() { | 1430 buildProductPermissions() { |
| 1374 var o = new api.ProductPermissions(); | 1431 var o = new api.ProductPermissions(); |
| 1375 buildCounterProductPermissions++; | 1432 buildCounterProductPermissions++; |
| 1376 if (buildCounterProductPermissions < 3) { | 1433 if (buildCounterProductPermissions < 3) { |
| 1377 o.kind = "foo"; | 1434 o.kind = "foo"; |
| 1378 o.permission = buildUnnamed2397(); | 1435 o.permission = buildUnnamed2160(); |
| 1379 o.productId = "foo"; | 1436 o.productId = "foo"; |
| 1380 } | 1437 } |
| 1381 buildCounterProductPermissions--; | 1438 buildCounterProductPermissions--; |
| 1382 return o; | 1439 return o; |
| 1383 } | 1440 } |
| 1384 | 1441 |
| 1385 checkProductPermissions(api.ProductPermissions o) { | 1442 checkProductPermissions(api.ProductPermissions o) { |
| 1386 buildCounterProductPermissions++; | 1443 buildCounterProductPermissions++; |
| 1387 if (buildCounterProductPermissions < 3) { | 1444 if (buildCounterProductPermissions < 3) { |
| 1388 unittest.expect(o.kind, unittest.equals('foo')); | 1445 unittest.expect(o.kind, unittest.equals('foo')); |
| 1389 checkUnnamed2397(o.permission); | 1446 checkUnnamed2160(o.permission); |
| 1390 unittest.expect(o.productId, unittest.equals('foo')); | 1447 unittest.expect(o.productId, unittest.equals('foo')); |
| 1391 } | 1448 } |
| 1392 buildCounterProductPermissions--; | 1449 buildCounterProductPermissions--; |
| 1393 } | 1450 } |
| 1394 | 1451 |
| 1395 buildUnnamed2398() { | 1452 buildUnnamed2161() { |
| 1396 var o = new core.List<core.String>(); | 1453 var o = new core.List<core.String>(); |
| 1397 o.add("foo"); | 1454 o.add("foo"); |
| 1398 o.add("foo"); | 1455 o.add("foo"); |
| 1399 return o; | 1456 return o; |
| 1400 } | 1457 } |
| 1401 | 1458 |
| 1402 checkUnnamed2398(core.List<core.String> o) { | 1459 checkUnnamed2161(core.List<core.String> o) { |
| 1403 unittest.expect(o, unittest.hasLength(2)); | 1460 unittest.expect(o, unittest.hasLength(2)); |
| 1404 unittest.expect(o[0], unittest.equals('foo')); | 1461 unittest.expect(o[0], unittest.equals('foo')); |
| 1405 unittest.expect(o[1], unittest.equals('foo')); | 1462 unittest.expect(o[1], unittest.equals('foo')); |
| 1406 } | 1463 } |
| 1407 | 1464 |
| 1408 core.int buildCounterProductSet = 0; | 1465 core.int buildCounterProductSet = 0; |
| 1409 buildProductSet() { | 1466 buildProductSet() { |
| 1410 var o = new api.ProductSet(); | 1467 var o = new api.ProductSet(); |
| 1411 buildCounterProductSet++; | 1468 buildCounterProductSet++; |
| 1412 if (buildCounterProductSet < 3) { | 1469 if (buildCounterProductSet < 3) { |
| 1413 o.kind = "foo"; | 1470 o.kind = "foo"; |
| 1414 o.productId = buildUnnamed2398(); | 1471 o.productId = buildUnnamed2161(); |
| 1472 o.productSetBehavior = "foo"; |
| 1415 } | 1473 } |
| 1416 buildCounterProductSet--; | 1474 buildCounterProductSet--; |
| 1417 return o; | 1475 return o; |
| 1418 } | 1476 } |
| 1419 | 1477 |
| 1420 checkProductSet(api.ProductSet o) { | 1478 checkProductSet(api.ProductSet o) { |
| 1421 buildCounterProductSet++; | 1479 buildCounterProductSet++; |
| 1422 if (buildCounterProductSet < 3) { | 1480 if (buildCounterProductSet < 3) { |
| 1423 unittest.expect(o.kind, unittest.equals('foo')); | 1481 unittest.expect(o.kind, unittest.equals('foo')); |
| 1424 checkUnnamed2398(o.productId); | 1482 checkUnnamed2161(o.productId); |
| 1483 unittest.expect(o.productSetBehavior, unittest.equals('foo')); |
| 1425 } | 1484 } |
| 1426 buildCounterProductSet--; | 1485 buildCounterProductSet--; |
| 1427 } | 1486 } |
| 1428 | 1487 |
| 1429 core.int buildCounterProductsApproveRequest = 0; | 1488 core.int buildCounterProductsApproveRequest = 0; |
| 1430 buildProductsApproveRequest() { | 1489 buildProductsApproveRequest() { |
| 1431 var o = new api.ProductsApproveRequest(); | 1490 var o = new api.ProductsApproveRequest(); |
| 1432 buildCounterProductsApproveRequest++; | 1491 buildCounterProductsApproveRequest++; |
| 1433 if (buildCounterProductsApproveRequest < 3) { | 1492 if (buildCounterProductsApproveRequest < 3) { |
| 1434 o.approvalUrlInfo = buildApprovalUrlInfo(); | 1493 o.approvalUrlInfo = buildApprovalUrlInfo(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1457 } | 1516 } |
| 1458 | 1517 |
| 1459 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { | 1518 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { |
| 1460 buildCounterProductsGenerateApprovalUrlResponse++; | 1519 buildCounterProductsGenerateApprovalUrlResponse++; |
| 1461 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { | 1520 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { |
| 1462 unittest.expect(o.url, unittest.equals('foo')); | 1521 unittest.expect(o.url, unittest.equals('foo')); |
| 1463 } | 1522 } |
| 1464 buildCounterProductsGenerateApprovalUrlResponse--; | 1523 buildCounterProductsGenerateApprovalUrlResponse--; |
| 1465 } | 1524 } |
| 1466 | 1525 |
| 1467 buildUnnamed2399() { | 1526 buildUnnamed2162() { |
| 1468 var o = new core.List<api.Product>(); | 1527 var o = new core.List<api.Product>(); |
| 1469 o.add(buildProduct()); | 1528 o.add(buildProduct()); |
| 1470 o.add(buildProduct()); | 1529 o.add(buildProduct()); |
| 1471 return o; | 1530 return o; |
| 1472 } | 1531 } |
| 1473 | 1532 |
| 1474 checkUnnamed2399(core.List<api.Product> o) { | 1533 checkUnnamed2162(core.List<api.Product> o) { |
| 1475 unittest.expect(o, unittest.hasLength(2)); | 1534 unittest.expect(o, unittest.hasLength(2)); |
| 1476 checkProduct(o[0]); | 1535 checkProduct(o[0]); |
| 1477 checkProduct(o[1]); | 1536 checkProduct(o[1]); |
| 1478 } | 1537 } |
| 1479 | 1538 |
| 1480 core.int buildCounterProductsListResponse = 0; | 1539 core.int buildCounterProductsListResponse = 0; |
| 1481 buildProductsListResponse() { | 1540 buildProductsListResponse() { |
| 1482 var o = new api.ProductsListResponse(); | 1541 var o = new api.ProductsListResponse(); |
| 1483 buildCounterProductsListResponse++; | 1542 buildCounterProductsListResponse++; |
| 1484 if (buildCounterProductsListResponse < 3) { | 1543 if (buildCounterProductsListResponse < 3) { |
| 1485 o.kind = "foo"; | 1544 o.kind = "foo"; |
| 1486 o.pageInfo = buildPageInfo(); | 1545 o.pageInfo = buildPageInfo(); |
| 1487 o.product = buildUnnamed2399(); | 1546 o.product = buildUnnamed2162(); |
| 1488 o.tokenPagination = buildTokenPagination(); | 1547 o.tokenPagination = buildTokenPagination(); |
| 1489 } | 1548 } |
| 1490 buildCounterProductsListResponse--; | 1549 buildCounterProductsListResponse--; |
| 1491 return o; | 1550 return o; |
| 1492 } | 1551 } |
| 1493 | 1552 |
| 1494 checkProductsListResponse(api.ProductsListResponse o) { | 1553 checkProductsListResponse(api.ProductsListResponse o) { |
| 1495 buildCounterProductsListResponse++; | 1554 buildCounterProductsListResponse++; |
| 1496 if (buildCounterProductsListResponse < 3) { | 1555 if (buildCounterProductsListResponse < 3) { |
| 1497 unittest.expect(o.kind, unittest.equals('foo')); | 1556 unittest.expect(o.kind, unittest.equals('foo')); |
| 1498 checkPageInfo(o.pageInfo); | 1557 checkPageInfo(o.pageInfo); |
| 1499 checkUnnamed2399(o.product); | 1558 checkUnnamed2162(o.product); |
| 1500 checkTokenPagination(o.tokenPagination); | 1559 checkTokenPagination(o.tokenPagination); |
| 1501 } | 1560 } |
| 1502 buildCounterProductsListResponse--; | 1561 buildCounterProductsListResponse--; |
| 1503 } | 1562 } |
| 1504 | 1563 |
| 1505 core.int buildCounterServiceAccount = 0; | 1564 core.int buildCounterServiceAccount = 0; |
| 1506 buildServiceAccount() { | 1565 buildServiceAccount() { |
| 1507 var o = new api.ServiceAccount(); | 1566 var o = new api.ServiceAccount(); |
| 1508 buildCounterServiceAccount++; | 1567 buildCounterServiceAccount++; |
| 1509 if (buildCounterServiceAccount < 3) { | 1568 if (buildCounterServiceAccount < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 buildCounterServiceAccountKey++; | 1602 buildCounterServiceAccountKey++; |
| 1544 if (buildCounterServiceAccountKey < 3) { | 1603 if (buildCounterServiceAccountKey < 3) { |
| 1545 unittest.expect(o.data, unittest.equals('foo')); | 1604 unittest.expect(o.data, unittest.equals('foo')); |
| 1546 unittest.expect(o.id, unittest.equals('foo')); | 1605 unittest.expect(o.id, unittest.equals('foo')); |
| 1547 unittest.expect(o.kind, unittest.equals('foo')); | 1606 unittest.expect(o.kind, unittest.equals('foo')); |
| 1548 unittest.expect(o.type, unittest.equals('foo')); | 1607 unittest.expect(o.type, unittest.equals('foo')); |
| 1549 } | 1608 } |
| 1550 buildCounterServiceAccountKey--; | 1609 buildCounterServiceAccountKey--; |
| 1551 } | 1610 } |
| 1552 | 1611 |
| 1553 buildUnnamed2400() { | 1612 buildUnnamed2163() { |
| 1554 var o = new core.List<api.ServiceAccountKey>(); | 1613 var o = new core.List<api.ServiceAccountKey>(); |
| 1555 o.add(buildServiceAccountKey()); | 1614 o.add(buildServiceAccountKey()); |
| 1556 o.add(buildServiceAccountKey()); | 1615 o.add(buildServiceAccountKey()); |
| 1557 return o; | 1616 return o; |
| 1558 } | 1617 } |
| 1559 | 1618 |
| 1560 checkUnnamed2400(core.List<api.ServiceAccountKey> o) { | 1619 checkUnnamed2163(core.List<api.ServiceAccountKey> o) { |
| 1561 unittest.expect(o, unittest.hasLength(2)); | 1620 unittest.expect(o, unittest.hasLength(2)); |
| 1562 checkServiceAccountKey(o[0]); | 1621 checkServiceAccountKey(o[0]); |
| 1563 checkServiceAccountKey(o[1]); | 1622 checkServiceAccountKey(o[1]); |
| 1564 } | 1623 } |
| 1565 | 1624 |
| 1566 core.int buildCounterServiceAccountKeysListResponse = 0; | 1625 core.int buildCounterServiceAccountKeysListResponse = 0; |
| 1567 buildServiceAccountKeysListResponse() { | 1626 buildServiceAccountKeysListResponse() { |
| 1568 var o = new api.ServiceAccountKeysListResponse(); | 1627 var o = new api.ServiceAccountKeysListResponse(); |
| 1569 buildCounterServiceAccountKeysListResponse++; | 1628 buildCounterServiceAccountKeysListResponse++; |
| 1570 if (buildCounterServiceAccountKeysListResponse < 3) { | 1629 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1571 o.serviceAccountKey = buildUnnamed2400(); | 1630 o.serviceAccountKey = buildUnnamed2163(); |
| 1572 } | 1631 } |
| 1573 buildCounterServiceAccountKeysListResponse--; | 1632 buildCounterServiceAccountKeysListResponse--; |
| 1574 return o; | 1633 return o; |
| 1575 } | 1634 } |
| 1576 | 1635 |
| 1577 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { | 1636 checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { |
| 1578 buildCounterServiceAccountKeysListResponse++; | 1637 buildCounterServiceAccountKeysListResponse++; |
| 1579 if (buildCounterServiceAccountKeysListResponse < 3) { | 1638 if (buildCounterServiceAccountKeysListResponse < 3) { |
| 1580 checkUnnamed2400(o.serviceAccountKey); | 1639 checkUnnamed2163(o.serviceAccountKey); |
| 1581 } | 1640 } |
| 1582 buildCounterServiceAccountKeysListResponse--; | 1641 buildCounterServiceAccountKeysListResponse--; |
| 1583 } | 1642 } |
| 1584 | 1643 |
| 1585 core.int buildCounterSignupInfo = 0; | 1644 core.int buildCounterSignupInfo = 0; |
| 1586 buildSignupInfo() { | 1645 buildSignupInfo() { |
| 1587 var o = new api.SignupInfo(); | 1646 var o = new api.SignupInfo(); |
| 1588 buildCounterSignupInfo++; | 1647 buildCounterSignupInfo++; |
| 1589 if (buildCounterSignupInfo < 3) { | 1648 if (buildCounterSignupInfo < 3) { |
| 1590 o.completionToken = "foo"; | 1649 o.completionToken = "foo"; |
| 1591 o.kind = "foo"; | 1650 o.kind = "foo"; |
| 1592 o.url = "foo"; | 1651 o.url = "foo"; |
| 1593 } | 1652 } |
| 1594 buildCounterSignupInfo--; | 1653 buildCounterSignupInfo--; |
| 1595 return o; | 1654 return o; |
| 1596 } | 1655 } |
| 1597 | 1656 |
| 1598 checkSignupInfo(api.SignupInfo o) { | 1657 checkSignupInfo(api.SignupInfo o) { |
| 1599 buildCounterSignupInfo++; | 1658 buildCounterSignupInfo++; |
| 1600 if (buildCounterSignupInfo < 3) { | 1659 if (buildCounterSignupInfo < 3) { |
| 1601 unittest.expect(o.completionToken, unittest.equals('foo')); | 1660 unittest.expect(o.completionToken, unittest.equals('foo')); |
| 1602 unittest.expect(o.kind, unittest.equals('foo')); | 1661 unittest.expect(o.kind, unittest.equals('foo')); |
| 1603 unittest.expect(o.url, unittest.equals('foo')); | 1662 unittest.expect(o.url, unittest.equals('foo')); |
| 1604 } | 1663 } |
| 1605 buildCounterSignupInfo--; | 1664 buildCounterSignupInfo--; |
| 1606 } | 1665 } |
| 1607 | 1666 |
| 1608 buildUnnamed2401() { | 1667 buildUnnamed2164() { |
| 1609 var o = new core.List<api.LocalizedText>(); | 1668 var o = new core.List<api.LocalizedText>(); |
| 1610 o.add(buildLocalizedText()); | 1669 o.add(buildLocalizedText()); |
| 1611 o.add(buildLocalizedText()); | 1670 o.add(buildLocalizedText()); |
| 1612 return o; | 1671 return o; |
| 1613 } | 1672 } |
| 1614 | 1673 |
| 1615 checkUnnamed2401(core.List<api.LocalizedText> o) { | 1674 checkUnnamed2164(core.List<api.LocalizedText> o) { |
| 1616 unittest.expect(o, unittest.hasLength(2)); | 1675 unittest.expect(o, unittest.hasLength(2)); |
| 1617 checkLocalizedText(o[0]); | 1676 checkLocalizedText(o[0]); |
| 1618 checkLocalizedText(o[1]); | 1677 checkLocalizedText(o[1]); |
| 1619 } | 1678 } |
| 1620 | 1679 |
| 1621 buildUnnamed2402() { | 1680 buildUnnamed2165() { |
| 1622 var o = new core.List<core.String>(); | 1681 var o = new core.List<core.String>(); |
| 1623 o.add("foo"); | 1682 o.add("foo"); |
| 1624 o.add("foo"); | 1683 o.add("foo"); |
| 1625 return o; | 1684 return o; |
| 1626 } | 1685 } |
| 1627 | 1686 |
| 1628 checkUnnamed2402(core.List<core.String> o) { | 1687 checkUnnamed2165(core.List<core.String> o) { |
| 1629 unittest.expect(o, unittest.hasLength(2)); | 1688 unittest.expect(o, unittest.hasLength(2)); |
| 1630 unittest.expect(o[0], unittest.equals('foo')); | 1689 unittest.expect(o[0], unittest.equals('foo')); |
| 1631 unittest.expect(o[1], unittest.equals('foo')); | 1690 unittest.expect(o[1], unittest.equals('foo')); |
| 1632 } | 1691 } |
| 1633 | 1692 |
| 1634 core.int buildCounterStoreCluster = 0; | 1693 core.int buildCounterStoreCluster = 0; |
| 1635 buildStoreCluster() { | 1694 buildStoreCluster() { |
| 1636 var o = new api.StoreCluster(); | 1695 var o = new api.StoreCluster(); |
| 1637 buildCounterStoreCluster++; | 1696 buildCounterStoreCluster++; |
| 1638 if (buildCounterStoreCluster < 3) { | 1697 if (buildCounterStoreCluster < 3) { |
| 1639 o.id = "foo"; | 1698 o.id = "foo"; |
| 1640 o.kind = "foo"; | 1699 o.kind = "foo"; |
| 1641 o.name = buildUnnamed2401(); | 1700 o.name = buildUnnamed2164(); |
| 1642 o.orderInPage = "foo"; | 1701 o.orderInPage = "foo"; |
| 1643 o.productId = buildUnnamed2402(); | 1702 o.productId = buildUnnamed2165(); |
| 1644 } | 1703 } |
| 1645 buildCounterStoreCluster--; | 1704 buildCounterStoreCluster--; |
| 1646 return o; | 1705 return o; |
| 1647 } | 1706 } |
| 1648 | 1707 |
| 1649 checkStoreCluster(api.StoreCluster o) { | 1708 checkStoreCluster(api.StoreCluster o) { |
| 1650 buildCounterStoreCluster++; | 1709 buildCounterStoreCluster++; |
| 1651 if (buildCounterStoreCluster < 3) { | 1710 if (buildCounterStoreCluster < 3) { |
| 1652 unittest.expect(o.id, unittest.equals('foo')); | 1711 unittest.expect(o.id, unittest.equals('foo')); |
| 1653 unittest.expect(o.kind, unittest.equals('foo')); | 1712 unittest.expect(o.kind, unittest.equals('foo')); |
| 1654 checkUnnamed2401(o.name); | 1713 checkUnnamed2164(o.name); |
| 1655 unittest.expect(o.orderInPage, unittest.equals('foo')); | 1714 unittest.expect(o.orderInPage, unittest.equals('foo')); |
| 1656 checkUnnamed2402(o.productId); | 1715 checkUnnamed2165(o.productId); |
| 1657 } | 1716 } |
| 1658 buildCounterStoreCluster--; | 1717 buildCounterStoreCluster--; |
| 1659 } | 1718 } |
| 1660 | 1719 |
| 1661 core.int buildCounterStoreLayout = 0; | 1720 core.int buildCounterStoreLayout = 0; |
| 1662 buildStoreLayout() { | 1721 buildStoreLayout() { |
| 1663 var o = new api.StoreLayout(); | 1722 var o = new api.StoreLayout(); |
| 1664 buildCounterStoreLayout++; | 1723 buildCounterStoreLayout++; |
| 1665 if (buildCounterStoreLayout < 3) { | 1724 if (buildCounterStoreLayout < 3) { |
| 1666 o.homepageId = "foo"; | 1725 o.homepageId = "foo"; |
| 1667 o.kind = "foo"; | 1726 o.kind = "foo"; |
| 1727 o.storeLayoutType = "foo"; |
| 1668 } | 1728 } |
| 1669 buildCounterStoreLayout--; | 1729 buildCounterStoreLayout--; |
| 1670 return o; | 1730 return o; |
| 1671 } | 1731 } |
| 1672 | 1732 |
| 1673 checkStoreLayout(api.StoreLayout o) { | 1733 checkStoreLayout(api.StoreLayout o) { |
| 1674 buildCounterStoreLayout++; | 1734 buildCounterStoreLayout++; |
| 1675 if (buildCounterStoreLayout < 3) { | 1735 if (buildCounterStoreLayout < 3) { |
| 1676 unittest.expect(o.homepageId, unittest.equals('foo')); | 1736 unittest.expect(o.homepageId, unittest.equals('foo')); |
| 1677 unittest.expect(o.kind, unittest.equals('foo')); | 1737 unittest.expect(o.kind, unittest.equals('foo')); |
| 1738 unittest.expect(o.storeLayoutType, unittest.equals('foo')); |
| 1678 } | 1739 } |
| 1679 buildCounterStoreLayout--; | 1740 buildCounterStoreLayout--; |
| 1680 } | 1741 } |
| 1681 | 1742 |
| 1682 buildUnnamed2403() { | 1743 buildUnnamed2166() { |
| 1683 var o = new core.List<api.StoreCluster>(); | 1744 var o = new core.List<api.StoreCluster>(); |
| 1684 o.add(buildStoreCluster()); | 1745 o.add(buildStoreCluster()); |
| 1685 o.add(buildStoreCluster()); | 1746 o.add(buildStoreCluster()); |
| 1686 return o; | 1747 return o; |
| 1687 } | 1748 } |
| 1688 | 1749 |
| 1689 checkUnnamed2403(core.List<api.StoreCluster> o) { | 1750 checkUnnamed2166(core.List<api.StoreCluster> o) { |
| 1690 unittest.expect(o, unittest.hasLength(2)); | 1751 unittest.expect(o, unittest.hasLength(2)); |
| 1691 checkStoreCluster(o[0]); | 1752 checkStoreCluster(o[0]); |
| 1692 checkStoreCluster(o[1]); | 1753 checkStoreCluster(o[1]); |
| 1693 } | 1754 } |
| 1694 | 1755 |
| 1695 core.int buildCounterStoreLayoutClustersListResponse = 0; | 1756 core.int buildCounterStoreLayoutClustersListResponse = 0; |
| 1696 buildStoreLayoutClustersListResponse() { | 1757 buildStoreLayoutClustersListResponse() { |
| 1697 var o = new api.StoreLayoutClustersListResponse(); | 1758 var o = new api.StoreLayoutClustersListResponse(); |
| 1698 buildCounterStoreLayoutClustersListResponse++; | 1759 buildCounterStoreLayoutClustersListResponse++; |
| 1699 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1760 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1700 o.cluster = buildUnnamed2403(); | 1761 o.cluster = buildUnnamed2166(); |
| 1701 o.kind = "foo"; | 1762 o.kind = "foo"; |
| 1702 } | 1763 } |
| 1703 buildCounterStoreLayoutClustersListResponse--; | 1764 buildCounterStoreLayoutClustersListResponse--; |
| 1704 return o; | 1765 return o; |
| 1705 } | 1766 } |
| 1706 | 1767 |
| 1707 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { | 1768 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { |
| 1708 buildCounterStoreLayoutClustersListResponse++; | 1769 buildCounterStoreLayoutClustersListResponse++; |
| 1709 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1770 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1710 checkUnnamed2403(o.cluster); | 1771 checkUnnamed2166(o.cluster); |
| 1711 unittest.expect(o.kind, unittest.equals('foo')); | 1772 unittest.expect(o.kind, unittest.equals('foo')); |
| 1712 } | 1773 } |
| 1713 buildCounterStoreLayoutClustersListResponse--; | 1774 buildCounterStoreLayoutClustersListResponse--; |
| 1714 } | 1775 } |
| 1715 | 1776 |
| 1716 buildUnnamed2404() { | 1777 buildUnnamed2167() { |
| 1717 var o = new core.List<api.StorePage>(); | 1778 var o = new core.List<api.StorePage>(); |
| 1718 o.add(buildStorePage()); | 1779 o.add(buildStorePage()); |
| 1719 o.add(buildStorePage()); | 1780 o.add(buildStorePage()); |
| 1720 return o; | 1781 return o; |
| 1721 } | 1782 } |
| 1722 | 1783 |
| 1723 checkUnnamed2404(core.List<api.StorePage> o) { | 1784 checkUnnamed2167(core.List<api.StorePage> o) { |
| 1724 unittest.expect(o, unittest.hasLength(2)); | 1785 unittest.expect(o, unittest.hasLength(2)); |
| 1725 checkStorePage(o[0]); | 1786 checkStorePage(o[0]); |
| 1726 checkStorePage(o[1]); | 1787 checkStorePage(o[1]); |
| 1727 } | 1788 } |
| 1728 | 1789 |
| 1729 core.int buildCounterStoreLayoutPagesListResponse = 0; | 1790 core.int buildCounterStoreLayoutPagesListResponse = 0; |
| 1730 buildStoreLayoutPagesListResponse() { | 1791 buildStoreLayoutPagesListResponse() { |
| 1731 var o = new api.StoreLayoutPagesListResponse(); | 1792 var o = new api.StoreLayoutPagesListResponse(); |
| 1732 buildCounterStoreLayoutPagesListResponse++; | 1793 buildCounterStoreLayoutPagesListResponse++; |
| 1733 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1794 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1734 o.kind = "foo"; | 1795 o.kind = "foo"; |
| 1735 o.page = buildUnnamed2404(); | 1796 o.page = buildUnnamed2167(); |
| 1736 } | 1797 } |
| 1737 buildCounterStoreLayoutPagesListResponse--; | 1798 buildCounterStoreLayoutPagesListResponse--; |
| 1738 return o; | 1799 return o; |
| 1739 } | 1800 } |
| 1740 | 1801 |
| 1741 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { | 1802 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { |
| 1742 buildCounterStoreLayoutPagesListResponse++; | 1803 buildCounterStoreLayoutPagesListResponse++; |
| 1743 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1804 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1744 unittest.expect(o.kind, unittest.equals('foo')); | 1805 unittest.expect(o.kind, unittest.equals('foo')); |
| 1745 checkUnnamed2404(o.page); | 1806 checkUnnamed2167(o.page); |
| 1746 } | 1807 } |
| 1747 buildCounterStoreLayoutPagesListResponse--; | 1808 buildCounterStoreLayoutPagesListResponse--; |
| 1748 } | 1809 } |
| 1749 | 1810 |
| 1750 buildUnnamed2405() { | 1811 buildUnnamed2168() { |
| 1751 var o = new core.List<core.String>(); | 1812 var o = new core.List<core.String>(); |
| 1752 o.add("foo"); | 1813 o.add("foo"); |
| 1753 o.add("foo"); | 1814 o.add("foo"); |
| 1754 return o; | 1815 return o; |
| 1755 } | 1816 } |
| 1756 | 1817 |
| 1757 checkUnnamed2405(core.List<core.String> o) { | 1818 checkUnnamed2168(core.List<core.String> o) { |
| 1758 unittest.expect(o, unittest.hasLength(2)); | 1819 unittest.expect(o, unittest.hasLength(2)); |
| 1759 unittest.expect(o[0], unittest.equals('foo')); | 1820 unittest.expect(o[0], unittest.equals('foo')); |
| 1760 unittest.expect(o[1], unittest.equals('foo')); | 1821 unittest.expect(o[1], unittest.equals('foo')); |
| 1761 } | 1822 } |
| 1762 | 1823 |
| 1763 buildUnnamed2406() { | 1824 buildUnnamed2169() { |
| 1764 var o = new core.List<api.LocalizedText>(); | 1825 var o = new core.List<api.LocalizedText>(); |
| 1765 o.add(buildLocalizedText()); | 1826 o.add(buildLocalizedText()); |
| 1766 o.add(buildLocalizedText()); | 1827 o.add(buildLocalizedText()); |
| 1767 return o; | 1828 return o; |
| 1768 } | 1829 } |
| 1769 | 1830 |
| 1770 checkUnnamed2406(core.List<api.LocalizedText> o) { | 1831 checkUnnamed2169(core.List<api.LocalizedText> o) { |
| 1771 unittest.expect(o, unittest.hasLength(2)); | 1832 unittest.expect(o, unittest.hasLength(2)); |
| 1772 checkLocalizedText(o[0]); | 1833 checkLocalizedText(o[0]); |
| 1773 checkLocalizedText(o[1]); | 1834 checkLocalizedText(o[1]); |
| 1774 } | 1835 } |
| 1775 | 1836 |
| 1776 core.int buildCounterStorePage = 0; | 1837 core.int buildCounterStorePage = 0; |
| 1777 buildStorePage() { | 1838 buildStorePage() { |
| 1778 var o = new api.StorePage(); | 1839 var o = new api.StorePage(); |
| 1779 buildCounterStorePage++; | 1840 buildCounterStorePage++; |
| 1780 if (buildCounterStorePage < 3) { | 1841 if (buildCounterStorePage < 3) { |
| 1781 o.id = "foo"; | 1842 o.id = "foo"; |
| 1782 o.kind = "foo"; | 1843 o.kind = "foo"; |
| 1783 o.link = buildUnnamed2405(); | 1844 o.link = buildUnnamed2168(); |
| 1784 o.name = buildUnnamed2406(); | 1845 o.name = buildUnnamed2169(); |
| 1785 } | 1846 } |
| 1786 buildCounterStorePage--; | 1847 buildCounterStorePage--; |
| 1787 return o; | 1848 return o; |
| 1788 } | 1849 } |
| 1789 | 1850 |
| 1790 checkStorePage(api.StorePage o) { | 1851 checkStorePage(api.StorePage o) { |
| 1791 buildCounterStorePage++; | 1852 buildCounterStorePage++; |
| 1792 if (buildCounterStorePage < 3) { | 1853 if (buildCounterStorePage < 3) { |
| 1793 unittest.expect(o.id, unittest.equals('foo')); | 1854 unittest.expect(o.id, unittest.equals('foo')); |
| 1794 unittest.expect(o.kind, unittest.equals('foo')); | 1855 unittest.expect(o.kind, unittest.equals('foo')); |
| 1795 checkUnnamed2405(o.link); | 1856 checkUnnamed2168(o.link); |
| 1796 checkUnnamed2406(o.name); | 1857 checkUnnamed2169(o.name); |
| 1797 } | 1858 } |
| 1798 buildCounterStorePage--; | 1859 buildCounterStorePage--; |
| 1799 } | 1860 } |
| 1800 | 1861 |
| 1801 core.int buildCounterTokenPagination = 0; | 1862 core.int buildCounterTokenPagination = 0; |
| 1802 buildTokenPagination() { | 1863 buildTokenPagination() { |
| 1803 var o = new api.TokenPagination(); | 1864 var o = new api.TokenPagination(); |
| 1804 buildCounterTokenPagination++; | 1865 buildCounterTokenPagination++; |
| 1805 if (buildCounterTokenPagination < 3) { | 1866 if (buildCounterTokenPagination < 3) { |
| 1806 o.nextPageToken = "foo"; | 1867 o.nextPageToken = "foo"; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1866 checkUserToken(api.UserToken o) { | 1927 checkUserToken(api.UserToken o) { |
| 1867 buildCounterUserToken++; | 1928 buildCounterUserToken++; |
| 1868 if (buildCounterUserToken < 3) { | 1929 if (buildCounterUserToken < 3) { |
| 1869 unittest.expect(o.kind, unittest.equals('foo')); | 1930 unittest.expect(o.kind, unittest.equals('foo')); |
| 1870 unittest.expect(o.token, unittest.equals('foo')); | 1931 unittest.expect(o.token, unittest.equals('foo')); |
| 1871 unittest.expect(o.userId, unittest.equals('foo')); | 1932 unittest.expect(o.userId, unittest.equals('foo')); |
| 1872 } | 1933 } |
| 1873 buildCounterUserToken--; | 1934 buildCounterUserToken--; |
| 1874 } | 1935 } |
| 1875 | 1936 |
| 1876 buildUnnamed2407() { | 1937 buildUnnamed2170() { |
| 1877 var o = new core.List<api.User>(); | 1938 var o = new core.List<api.User>(); |
| 1878 o.add(buildUser()); | 1939 o.add(buildUser()); |
| 1879 o.add(buildUser()); | 1940 o.add(buildUser()); |
| 1880 return o; | 1941 return o; |
| 1881 } | 1942 } |
| 1882 | 1943 |
| 1883 checkUnnamed2407(core.List<api.User> o) { | 1944 checkUnnamed2170(core.List<api.User> o) { |
| 1884 unittest.expect(o, unittest.hasLength(2)); | 1945 unittest.expect(o, unittest.hasLength(2)); |
| 1885 checkUser(o[0]); | 1946 checkUser(o[0]); |
| 1886 checkUser(o[1]); | 1947 checkUser(o[1]); |
| 1887 } | 1948 } |
| 1888 | 1949 |
| 1889 core.int buildCounterUsersListResponse = 0; | 1950 core.int buildCounterUsersListResponse = 0; |
| 1890 buildUsersListResponse() { | 1951 buildUsersListResponse() { |
| 1891 var o = new api.UsersListResponse(); | 1952 var o = new api.UsersListResponse(); |
| 1892 buildCounterUsersListResponse++; | 1953 buildCounterUsersListResponse++; |
| 1893 if (buildCounterUsersListResponse < 3) { | 1954 if (buildCounterUsersListResponse < 3) { |
| 1894 o.kind = "foo"; | 1955 o.kind = "foo"; |
| 1895 o.user = buildUnnamed2407(); | 1956 o.user = buildUnnamed2170(); |
| 1896 } | 1957 } |
| 1897 buildCounterUsersListResponse--; | 1958 buildCounterUsersListResponse--; |
| 1898 return o; | 1959 return o; |
| 1899 } | 1960 } |
| 1900 | 1961 |
| 1901 checkUsersListResponse(api.UsersListResponse o) { | 1962 checkUsersListResponse(api.UsersListResponse o) { |
| 1902 buildCounterUsersListResponse++; | 1963 buildCounterUsersListResponse++; |
| 1903 if (buildCounterUsersListResponse < 3) { | 1964 if (buildCounterUsersListResponse < 3) { |
| 1904 unittest.expect(o.kind, unittest.equals('foo')); | 1965 unittest.expect(o.kind, unittest.equals('foo')); |
| 1905 checkUnnamed2407(o.user); | 1966 checkUnnamed2170(o.user); |
| 1906 } | 1967 } |
| 1907 buildCounterUsersListResponse--; | 1968 buildCounterUsersListResponse--; |
| 1908 } | 1969 } |
| 1909 | 1970 |
| 1910 | 1971 |
| 1911 main() { | 1972 main() { |
| 1912 unittest.group("obj-schema-Administrator", () { | 1973 unittest.group("obj-schema-Administrator", () { |
| 1913 unittest.test("to-json--from-json", () { | 1974 unittest.test("to-json--from-json", () { |
| 1914 var o = buildAdministrator(); | 1975 var o = buildAdministrator(); |
| 1915 var od = new api.Administrator.fromJson(o.toJson()); | 1976 var od = new api.Administrator.fromJson(o.toJson()); |
| 1916 checkAdministrator(od); | 1977 checkAdministrator(od); |
| 1917 }); | 1978 }); |
| 1918 }); | 1979 }); |
| 1919 | 1980 |
| 1920 | 1981 |
| 1982 unittest.group("obj-schema-AdministratorWebToken", () { |
| 1983 unittest.test("to-json--from-json", () { |
| 1984 var o = buildAdministratorWebToken(); |
| 1985 var od = new api.AdministratorWebToken.fromJson(o.toJson()); |
| 1986 checkAdministratorWebToken(od); |
| 1987 }); |
| 1988 }); |
| 1989 |
| 1990 |
| 1991 unittest.group("obj-schema-AdministratorWebTokenSpec", () { |
| 1992 unittest.test("to-json--from-json", () { |
| 1993 var o = buildAdministratorWebTokenSpec(); |
| 1994 var od = new api.AdministratorWebTokenSpec.fromJson(o.toJson()); |
| 1995 checkAdministratorWebTokenSpec(od); |
| 1996 }); |
| 1997 }); |
| 1998 |
| 1999 |
| 1921 unittest.group("obj-schema-AppRestrictionsSchema", () { | 2000 unittest.group("obj-schema-AppRestrictionsSchema", () { |
| 1922 unittest.test("to-json--from-json", () { | 2001 unittest.test("to-json--from-json", () { |
| 1923 var o = buildAppRestrictionsSchema(); | 2002 var o = buildAppRestrictionsSchema(); |
| 1924 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); | 2003 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); |
| 1925 checkAppRestrictionsSchema(od); | 2004 checkAppRestrictionsSchema(od); |
| 1926 }); | 2005 }); |
| 1927 }); | 2006 }); |
| 1928 | 2007 |
| 1929 | 2008 |
| 1930 unittest.group("obj-schema-AppRestrictionsSchemaChangeEvent", () { | 2009 unittest.group("obj-schema-AppRestrictionsSchemaChangeEvent", () { |
| (...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3488 "content-type" : "application/json; charset=utf-8", | 3567 "content-type" : "application/json; charset=utf-8", |
| 3489 }; | 3568 }; |
| 3490 var resp = convert.JSON.encode(buildEnterprise()); | 3569 var resp = convert.JSON.encode(buildEnterprise()); |
| 3491 return new async.Future.value(stringResponse(200, h, resp)); | 3570 return new async.Future.value(stringResponse(200, h, resp)); |
| 3492 }), true); | 3571 }), true); |
| 3493 res.completeSignup(completionToken: arg_completionToken, enterpriseToken:
arg_enterpriseToken).then(unittest.expectAsync(((api.Enterprise response) { | 3572 res.completeSignup(completionToken: arg_completionToken, enterpriseToken:
arg_enterpriseToken).then(unittest.expectAsync(((api.Enterprise response) { |
| 3494 checkEnterprise(response); | 3573 checkEnterprise(response); |
| 3495 }))); | 3574 }))); |
| 3496 }); | 3575 }); |
| 3497 | 3576 |
| 3577 unittest.test("method--createWebToken", () { |
| 3578 |
| 3579 var mock = new HttpServerMock(); |
| 3580 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp
rises; |
| 3581 var arg_request = buildAdministratorWebTokenSpec(); |
| 3582 var arg_enterpriseId = "foo"; |
| 3583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3584 var obj = new api.AdministratorWebTokenSpec.fromJson(json); |
| 3585 checkAdministratorWebTokenSpec(obj); |
| 3586 |
| 3587 var path = (req.url).path; |
| 3588 var pathOffset = 0; |
| 3589 var index; |
| 3590 var subPart; |
| 3591 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3592 pathOffset += 1; |
| 3593 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("androidenterprise/v1/")); |
| 3594 pathOffset += 21; |
| 3595 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("enterprises/")); |
| 3596 pathOffset += 12; |
| 3597 index = path.indexOf("/createWebToken", pathOffset); |
| 3598 unittest.expect(index >= 0, unittest.isTrue); |
| 3599 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3600 pathOffset = index; |
| 3601 unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); |
| 3602 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/createWebToken")); |
| 3603 pathOffset += 15; |
| 3604 |
| 3605 var query = (req.url).query; |
| 3606 var queryOffset = 0; |
| 3607 var queryMap = {}; |
| 3608 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3609 parseBool(n) { |
| 3610 if (n == "true") return true; |
| 3611 if (n == "false") return false; |
| 3612 if (n == null) return null; |
| 3613 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3614 } |
| 3615 if (query.length > 0) { |
| 3616 for (var part in query.split("&")) { |
| 3617 var keyvalue = part.split("="); |
| 3618 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3619 } |
| 3620 } |
| 3621 |
| 3622 |
| 3623 var h = { |
| 3624 "content-type" : "application/json; charset=utf-8", |
| 3625 }; |
| 3626 var resp = convert.JSON.encode(buildAdministratorWebToken()); |
| 3627 return new async.Future.value(stringResponse(200, h, resp)); |
| 3628 }), true); |
| 3629 res.createWebToken(arg_request, arg_enterpriseId).then(unittest.expectAsyn
c(((api.AdministratorWebToken response) { |
| 3630 checkAdministratorWebToken(response); |
| 3631 }))); |
| 3632 }); |
| 3633 |
| 3498 unittest.test("method--delete", () { | 3634 unittest.test("method--delete", () { |
| 3499 | 3635 |
| 3500 var mock = new HttpServerMock(); | 3636 var mock = new HttpServerMock(); |
| 3501 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp
rises; | 3637 api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterp
rises; |
| 3502 var arg_enterpriseId = "foo"; | 3638 var arg_enterpriseId = "foo"; |
| 3503 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3504 var path = (req.url).path; | 3640 var path = (req.url).path; |
| 3505 var pathOffset = 0; | 3641 var pathOffset = 0; |
| 3506 var index; | 3642 var index; |
| 3507 var subPart; | 3643 var subPart; |
| (...skipping 4362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7870 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { | 8006 res.update(arg_request, arg_enterpriseId, arg_userId).then(unittest.expect
Async(((api.User response) { |
| 7871 checkUser(response); | 8007 checkUser(response); |
| 7872 }))); | 8008 }))); |
| 7873 }); | 8009 }); |
| 7874 | 8010 |
| 7875 }); | 8011 }); |
| 7876 | 8012 |
| 7877 | 8013 |
| 7878 } | 8014 } |
| 7879 | 8015 |
| OLD | NEW |