| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed387() { | 54 buildUnnamed2209() { |
| 55 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); | 55 var o = new core.List<api.AppRestrictionsSchemaRestriction>(); |
| 56 o.add(buildAppRestrictionsSchemaRestriction()); | 56 o.add(buildAppRestrictionsSchemaRestriction()); |
| 57 o.add(buildAppRestrictionsSchemaRestriction()); | 57 o.add(buildAppRestrictionsSchemaRestriction()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed387(core.List<api.AppRestrictionsSchemaRestriction> o) { | 61 checkUnnamed2209(core.List<api.AppRestrictionsSchemaRestriction> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkAppRestrictionsSchemaRestriction(o[0]); | 63 checkAppRestrictionsSchemaRestriction(o[0]); |
| 64 checkAppRestrictionsSchemaRestriction(o[1]); | 64 checkAppRestrictionsSchemaRestriction(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterAppRestrictionsSchema = 0; | 67 core.int buildCounterAppRestrictionsSchema = 0; |
| 68 buildAppRestrictionsSchema() { | 68 buildAppRestrictionsSchema() { |
| 69 var o = new api.AppRestrictionsSchema(); | 69 var o = new api.AppRestrictionsSchema(); |
| 70 buildCounterAppRestrictionsSchema++; | 70 buildCounterAppRestrictionsSchema++; |
| 71 if (buildCounterAppRestrictionsSchema < 3) { | 71 if (buildCounterAppRestrictionsSchema < 3) { |
| 72 o.kind = "foo"; | 72 o.kind = "foo"; |
| 73 o.restrictions = buildUnnamed387(); | 73 o.restrictions = buildUnnamed2209(); |
| 74 } | 74 } |
| 75 buildCounterAppRestrictionsSchema--; | 75 buildCounterAppRestrictionsSchema--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { | 79 checkAppRestrictionsSchema(api.AppRestrictionsSchema o) { |
| 80 buildCounterAppRestrictionsSchema++; | 80 buildCounterAppRestrictionsSchema++; |
| 81 if (buildCounterAppRestrictionsSchema < 3) { | 81 if (buildCounterAppRestrictionsSchema < 3) { |
| 82 unittest.expect(o.kind, unittest.equals('foo')); | 82 unittest.expect(o.kind, unittest.equals('foo')); |
| 83 checkUnnamed387(o.restrictions); | 83 checkUnnamed2209(o.restrictions); |
| 84 } | 84 } |
| 85 buildCounterAppRestrictionsSchema--; | 85 buildCounterAppRestrictionsSchema--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed388() { | 88 buildUnnamed2210() { |
| 89 var o = new core.List<core.String>(); | 89 var o = new core.List<core.String>(); |
| 90 o.add("foo"); | 90 o.add("foo"); |
| 91 o.add("foo"); | 91 o.add("foo"); |
| 92 return o; | 92 return o; |
| 93 } | 93 } |
| 94 | 94 |
| 95 checkUnnamed388(core.List<core.String> o) { | 95 checkUnnamed2210(core.List<core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
| 98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
| 99 } | 99 } |
| 100 | 100 |
| 101 buildUnnamed389() { | 101 buildUnnamed2211() { |
| 102 var o = new core.List<core.String>(); | 102 var o = new core.List<core.String>(); |
| 103 o.add("foo"); | 103 o.add("foo"); |
| 104 o.add("foo"); | 104 o.add("foo"); |
| 105 return o; | 105 return o; |
| 106 } | 106 } |
| 107 | 107 |
| 108 checkUnnamed389(core.List<core.String> o) { | 108 checkUnnamed2211(core.List<core.String> o) { |
| 109 unittest.expect(o, unittest.hasLength(2)); | 109 unittest.expect(o, unittest.hasLength(2)); |
| 110 unittest.expect(o[0], unittest.equals('foo')); | 110 unittest.expect(o[0], unittest.equals('foo')); |
| 111 unittest.expect(o[1], unittest.equals('foo')); | 111 unittest.expect(o[1], unittest.equals('foo')); |
| 112 } | 112 } |
| 113 | 113 |
| 114 core.int buildCounterAppRestrictionsSchemaRestriction = 0; | 114 core.int buildCounterAppRestrictionsSchemaRestriction = 0; |
| 115 buildAppRestrictionsSchemaRestriction() { | 115 buildAppRestrictionsSchemaRestriction() { |
| 116 var o = new api.AppRestrictionsSchemaRestriction(); | 116 var o = new api.AppRestrictionsSchemaRestriction(); |
| 117 buildCounterAppRestrictionsSchemaRestriction++; | 117 buildCounterAppRestrictionsSchemaRestriction++; |
| 118 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 118 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 119 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); | 119 o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); |
| 120 o.description = "foo"; | 120 o.description = "foo"; |
| 121 o.entry = buildUnnamed388(); | 121 o.entry = buildUnnamed2210(); |
| 122 o.entryValue = buildUnnamed389(); | 122 o.entryValue = buildUnnamed2211(); |
| 123 o.key = "foo"; | 123 o.key = "foo"; |
| 124 o.restrictionType = "foo"; | 124 o.restrictionType = "foo"; |
| 125 o.title = "foo"; | 125 o.title = "foo"; |
| 126 } | 126 } |
| 127 buildCounterAppRestrictionsSchemaRestriction--; | 127 buildCounterAppRestrictionsSchemaRestriction--; |
| 128 return o; | 128 return o; |
| 129 } | 129 } |
| 130 | 130 |
| 131 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { | 131 checkAppRestrictionsSchemaRestriction(api.AppRestrictionsSchemaRestriction o) { |
| 132 buildCounterAppRestrictionsSchemaRestriction++; | 132 buildCounterAppRestrictionsSchemaRestriction++; |
| 133 if (buildCounterAppRestrictionsSchemaRestriction < 3) { | 133 if (buildCounterAppRestrictionsSchemaRestriction < 3) { |
| 134 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); | 134 checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); |
| 135 unittest.expect(o.description, unittest.equals('foo')); | 135 unittest.expect(o.description, unittest.equals('foo')); |
| 136 checkUnnamed388(o.entry); | 136 checkUnnamed2210(o.entry); |
| 137 checkUnnamed389(o.entryValue); | 137 checkUnnamed2211(o.entryValue); |
| 138 unittest.expect(o.key, unittest.equals('foo')); | 138 unittest.expect(o.key, unittest.equals('foo')); |
| 139 unittest.expect(o.restrictionType, unittest.equals('foo')); | 139 unittest.expect(o.restrictionType, unittest.equals('foo')); |
| 140 unittest.expect(o.title, unittest.equals('foo')); | 140 unittest.expect(o.title, unittest.equals('foo')); |
| 141 } | 141 } |
| 142 buildCounterAppRestrictionsSchemaRestriction--; | 142 buildCounterAppRestrictionsSchemaRestriction--; |
| 143 } | 143 } |
| 144 | 144 |
| 145 buildUnnamed390() { | 145 buildUnnamed2212() { |
| 146 var o = new core.List<core.String>(); | 146 var o = new core.List<core.String>(); |
| 147 o.add("foo"); | 147 o.add("foo"); |
| 148 o.add("foo"); | 148 o.add("foo"); |
| 149 return o; | 149 return o; |
| 150 } | 150 } |
| 151 | 151 |
| 152 checkUnnamed390(core.List<core.String> o) { | 152 checkUnnamed2212(core.List<core.String> o) { |
| 153 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
| 154 unittest.expect(o[0], unittest.equals('foo')); | 154 unittest.expect(o[0], unittest.equals('foo')); |
| 155 unittest.expect(o[1], unittest.equals('foo')); | 155 unittest.expect(o[1], unittest.equals('foo')); |
| 156 } | 156 } |
| 157 | 157 |
| 158 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; | 158 core.int buildCounterAppRestrictionsSchemaRestrictionRestrictionValue = 0; |
| 159 buildAppRestrictionsSchemaRestrictionRestrictionValue() { | 159 buildAppRestrictionsSchemaRestrictionRestrictionValue() { |
| 160 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); | 160 var o = new api.AppRestrictionsSchemaRestrictionRestrictionValue(); |
| 161 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 161 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 162 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 162 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 163 o.type = "foo"; | 163 o.type = "foo"; |
| 164 o.valueBool = true; | 164 o.valueBool = true; |
| 165 o.valueInteger = 42; | 165 o.valueInteger = 42; |
| 166 o.valueMultiselect = buildUnnamed390(); | 166 o.valueMultiselect = buildUnnamed2212(); |
| 167 o.valueString = "foo"; | 167 o.valueString = "foo"; |
| 168 } | 168 } |
| 169 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 169 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 170 return o; | 170 return o; |
| 171 } | 171 } |
| 172 | 172 |
| 173 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { | 173 checkAppRestrictionsSchemaRestrictionRestrictionValue(api.AppRestrictionsSchemaR
estrictionRestrictionValue o) { |
| 174 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; | 174 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue++; |
| 175 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { | 175 if (buildCounterAppRestrictionsSchemaRestrictionRestrictionValue < 3) { |
| 176 unittest.expect(o.type, unittest.equals('foo')); | 176 unittest.expect(o.type, unittest.equals('foo')); |
| 177 unittest.expect(o.valueBool, unittest.isTrue); | 177 unittest.expect(o.valueBool, unittest.isTrue); |
| 178 unittest.expect(o.valueInteger, unittest.equals(42)); | 178 unittest.expect(o.valueInteger, unittest.equals(42)); |
| 179 checkUnnamed390(o.valueMultiselect); | 179 checkUnnamed2212(o.valueMultiselect); |
| 180 unittest.expect(o.valueString, unittest.equals('foo')); | 180 unittest.expect(o.valueString, unittest.equals('foo')); |
| 181 } | 181 } |
| 182 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; | 182 buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; |
| 183 } | 183 } |
| 184 | 184 |
| 185 core.int buildCounterAppVersion = 0; | 185 core.int buildCounterAppVersion = 0; |
| 186 buildAppVersion() { | 186 buildAppVersion() { |
| 187 var o = new api.AppVersion(); | 187 var o = new api.AppVersion(); |
| 188 buildCounterAppVersion++; | 188 buildCounterAppVersion++; |
| 189 if (buildCounterAppVersion < 3) { | 189 if (buildCounterAppVersion < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 217 | 217 |
| 218 checkApprovalUrlInfo(api.ApprovalUrlInfo o) { | 218 checkApprovalUrlInfo(api.ApprovalUrlInfo o) { |
| 219 buildCounterApprovalUrlInfo++; | 219 buildCounterApprovalUrlInfo++; |
| 220 if (buildCounterApprovalUrlInfo < 3) { | 220 if (buildCounterApprovalUrlInfo < 3) { |
| 221 unittest.expect(o.approvalUrl, unittest.equals('foo')); | 221 unittest.expect(o.approvalUrl, unittest.equals('foo')); |
| 222 unittest.expect(o.kind, unittest.equals('foo')); | 222 unittest.expect(o.kind, unittest.equals('foo')); |
| 223 } | 223 } |
| 224 buildCounterApprovalUrlInfo--; | 224 buildCounterApprovalUrlInfo--; |
| 225 } | 225 } |
| 226 | 226 |
| 227 buildUnnamed391() { | 227 buildUnnamed2213() { |
| 228 var o = new core.List<core.String>(); | 228 var o = new core.List<core.String>(); |
| 229 o.add("foo"); | 229 o.add("foo"); |
| 230 o.add("foo"); | 230 o.add("foo"); |
| 231 return o; | 231 return o; |
| 232 } | 232 } |
| 233 | 233 |
| 234 checkUnnamed391(core.List<core.String> o) { | 234 checkUnnamed2213(core.List<core.String> o) { |
| 235 unittest.expect(o, unittest.hasLength(2)); | 235 unittest.expect(o, unittest.hasLength(2)); |
| 236 unittest.expect(o[0], unittest.equals('foo')); | 236 unittest.expect(o[0], unittest.equals('foo')); |
| 237 unittest.expect(o[1], unittest.equals('foo')); | 237 unittest.expect(o[1], unittest.equals('foo')); |
| 238 } | 238 } |
| 239 | 239 |
| 240 core.int buildCounterCollection = 0; | 240 core.int buildCounterCollection = 0; |
| 241 buildCollection() { | 241 buildCollection() { |
| 242 var o = new api.Collection(); | 242 var o = new api.Collection(); |
| 243 buildCounterCollection++; | 243 buildCounterCollection++; |
| 244 if (buildCounterCollection < 3) { | 244 if (buildCounterCollection < 3) { |
| 245 o.collectionId = "foo"; | 245 o.collectionId = "foo"; |
| 246 o.kind = "foo"; | 246 o.kind = "foo"; |
| 247 o.name = "foo"; | 247 o.name = "foo"; |
| 248 o.productId = buildUnnamed391(); | 248 o.productId = buildUnnamed2213(); |
| 249 o.visibility = "foo"; | 249 o.visibility = "foo"; |
| 250 } | 250 } |
| 251 buildCounterCollection--; | 251 buildCounterCollection--; |
| 252 return o; | 252 return o; |
| 253 } | 253 } |
| 254 | 254 |
| 255 checkCollection(api.Collection o) { | 255 checkCollection(api.Collection o) { |
| 256 buildCounterCollection++; | 256 buildCounterCollection++; |
| 257 if (buildCounterCollection < 3) { | 257 if (buildCounterCollection < 3) { |
| 258 unittest.expect(o.collectionId, unittest.equals('foo')); | 258 unittest.expect(o.collectionId, unittest.equals('foo')); |
| 259 unittest.expect(o.kind, unittest.equals('foo')); | 259 unittest.expect(o.kind, unittest.equals('foo')); |
| 260 unittest.expect(o.name, unittest.equals('foo')); | 260 unittest.expect(o.name, unittest.equals('foo')); |
| 261 checkUnnamed391(o.productId); | 261 checkUnnamed2213(o.productId); |
| 262 unittest.expect(o.visibility, unittest.equals('foo')); | 262 unittest.expect(o.visibility, unittest.equals('foo')); |
| 263 } | 263 } |
| 264 buildCounterCollection--; | 264 buildCounterCollection--; |
| 265 } | 265 } |
| 266 | 266 |
| 267 buildUnnamed392() { | 267 buildUnnamed2214() { |
| 268 var o = new core.List<api.User>(); | 268 var o = new core.List<api.User>(); |
| 269 o.add(buildUser()); | 269 o.add(buildUser()); |
| 270 o.add(buildUser()); | 270 o.add(buildUser()); |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkUnnamed392(core.List<api.User> o) { | 274 checkUnnamed2214(core.List<api.User> o) { |
| 275 unittest.expect(o, unittest.hasLength(2)); | 275 unittest.expect(o, unittest.hasLength(2)); |
| 276 checkUser(o[0]); | 276 checkUser(o[0]); |
| 277 checkUser(o[1]); | 277 checkUser(o[1]); |
| 278 } | 278 } |
| 279 | 279 |
| 280 core.int buildCounterCollectionViewersListResponse = 0; | 280 core.int buildCounterCollectionViewersListResponse = 0; |
| 281 buildCollectionViewersListResponse() { | 281 buildCollectionViewersListResponse() { |
| 282 var o = new api.CollectionViewersListResponse(); | 282 var o = new api.CollectionViewersListResponse(); |
| 283 buildCounterCollectionViewersListResponse++; | 283 buildCounterCollectionViewersListResponse++; |
| 284 if (buildCounterCollectionViewersListResponse < 3) { | 284 if (buildCounterCollectionViewersListResponse < 3) { |
| 285 o.kind = "foo"; | 285 o.kind = "foo"; |
| 286 o.user = buildUnnamed392(); | 286 o.user = buildUnnamed2214(); |
| 287 } | 287 } |
| 288 buildCounterCollectionViewersListResponse--; | 288 buildCounterCollectionViewersListResponse--; |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { | 292 checkCollectionViewersListResponse(api.CollectionViewersListResponse o) { |
| 293 buildCounterCollectionViewersListResponse++; | 293 buildCounterCollectionViewersListResponse++; |
| 294 if (buildCounterCollectionViewersListResponse < 3) { | 294 if (buildCounterCollectionViewersListResponse < 3) { |
| 295 unittest.expect(o.kind, unittest.equals('foo')); | 295 unittest.expect(o.kind, unittest.equals('foo')); |
| 296 checkUnnamed392(o.user); | 296 checkUnnamed2214(o.user); |
| 297 } | 297 } |
| 298 buildCounterCollectionViewersListResponse--; | 298 buildCounterCollectionViewersListResponse--; |
| 299 } | 299 } |
| 300 | 300 |
| 301 buildUnnamed393() { | 301 buildUnnamed2215() { |
| 302 var o = new core.List<api.Collection>(); | 302 var o = new core.List<api.Collection>(); |
| 303 o.add(buildCollection()); | 303 o.add(buildCollection()); |
| 304 o.add(buildCollection()); | 304 o.add(buildCollection()); |
| 305 return o; | 305 return o; |
| 306 } | 306 } |
| 307 | 307 |
| 308 checkUnnamed393(core.List<api.Collection> o) { | 308 checkUnnamed2215(core.List<api.Collection> o) { |
| 309 unittest.expect(o, unittest.hasLength(2)); | 309 unittest.expect(o, unittest.hasLength(2)); |
| 310 checkCollection(o[0]); | 310 checkCollection(o[0]); |
| 311 checkCollection(o[1]); | 311 checkCollection(o[1]); |
| 312 } | 312 } |
| 313 | 313 |
| 314 core.int buildCounterCollectionsListResponse = 0; | 314 core.int buildCounterCollectionsListResponse = 0; |
| 315 buildCollectionsListResponse() { | 315 buildCollectionsListResponse() { |
| 316 var o = new api.CollectionsListResponse(); | 316 var o = new api.CollectionsListResponse(); |
| 317 buildCounterCollectionsListResponse++; | 317 buildCounterCollectionsListResponse++; |
| 318 if (buildCounterCollectionsListResponse < 3) { | 318 if (buildCounterCollectionsListResponse < 3) { |
| 319 o.collection = buildUnnamed393(); | 319 o.collection = buildUnnamed2215(); |
| 320 o.kind = "foo"; | 320 o.kind = "foo"; |
| 321 } | 321 } |
| 322 buildCounterCollectionsListResponse--; | 322 buildCounterCollectionsListResponse--; |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkCollectionsListResponse(api.CollectionsListResponse o) { | 326 checkCollectionsListResponse(api.CollectionsListResponse o) { |
| 327 buildCounterCollectionsListResponse++; | 327 buildCounterCollectionsListResponse++; |
| 328 if (buildCounterCollectionsListResponse < 3) { | 328 if (buildCounterCollectionsListResponse < 3) { |
| 329 checkUnnamed393(o.collection); | 329 checkUnnamed2215(o.collection); |
| 330 unittest.expect(o.kind, unittest.equals('foo')); | 330 unittest.expect(o.kind, unittest.equals('foo')); |
| 331 } | 331 } |
| 332 buildCounterCollectionsListResponse--; | 332 buildCounterCollectionsListResponse--; |
| 333 } | 333 } |
| 334 | 334 |
| 335 core.int buildCounterDevice = 0; | 335 core.int buildCounterDevice = 0; |
| 336 buildDevice() { | 336 buildDevice() { |
| 337 var o = new api.Device(); | 337 var o = new api.Device(); |
| 338 buildCounterDevice++; | 338 buildCounterDevice++; |
| 339 if (buildCounterDevice < 3) { | 339 if (buildCounterDevice < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 369 | 369 |
| 370 checkDeviceState(api.DeviceState o) { | 370 checkDeviceState(api.DeviceState o) { |
| 371 buildCounterDeviceState++; | 371 buildCounterDeviceState++; |
| 372 if (buildCounterDeviceState < 3) { | 372 if (buildCounterDeviceState < 3) { |
| 373 unittest.expect(o.accountState, unittest.equals('foo')); | 373 unittest.expect(o.accountState, unittest.equals('foo')); |
| 374 unittest.expect(o.kind, unittest.equals('foo')); | 374 unittest.expect(o.kind, unittest.equals('foo')); |
| 375 } | 375 } |
| 376 buildCounterDeviceState--; | 376 buildCounterDeviceState--; |
| 377 } | 377 } |
| 378 | 378 |
| 379 buildUnnamed394() { | 379 buildUnnamed2216() { |
| 380 var o = new core.List<api.Device>(); | 380 var o = new core.List<api.Device>(); |
| 381 o.add(buildDevice()); | 381 o.add(buildDevice()); |
| 382 o.add(buildDevice()); | 382 o.add(buildDevice()); |
| 383 return o; | 383 return o; |
| 384 } | 384 } |
| 385 | 385 |
| 386 checkUnnamed394(core.List<api.Device> o) { | 386 checkUnnamed2216(core.List<api.Device> o) { |
| 387 unittest.expect(o, unittest.hasLength(2)); | 387 unittest.expect(o, unittest.hasLength(2)); |
| 388 checkDevice(o[0]); | 388 checkDevice(o[0]); |
| 389 checkDevice(o[1]); | 389 checkDevice(o[1]); |
| 390 } | 390 } |
| 391 | 391 |
| 392 core.int buildCounterDevicesListResponse = 0; | 392 core.int buildCounterDevicesListResponse = 0; |
| 393 buildDevicesListResponse() { | 393 buildDevicesListResponse() { |
| 394 var o = new api.DevicesListResponse(); | 394 var o = new api.DevicesListResponse(); |
| 395 buildCounterDevicesListResponse++; | 395 buildCounterDevicesListResponse++; |
| 396 if (buildCounterDevicesListResponse < 3) { | 396 if (buildCounterDevicesListResponse < 3) { |
| 397 o.device = buildUnnamed394(); | 397 o.device = buildUnnamed2216(); |
| 398 o.kind = "foo"; | 398 o.kind = "foo"; |
| 399 } | 399 } |
| 400 buildCounterDevicesListResponse--; | 400 buildCounterDevicesListResponse--; |
| 401 return o; | 401 return o; |
| 402 } | 402 } |
| 403 | 403 |
| 404 checkDevicesListResponse(api.DevicesListResponse o) { | 404 checkDevicesListResponse(api.DevicesListResponse o) { |
| 405 buildCounterDevicesListResponse++; | 405 buildCounterDevicesListResponse++; |
| 406 if (buildCounterDevicesListResponse < 3) { | 406 if (buildCounterDevicesListResponse < 3) { |
| 407 checkUnnamed394(o.device); | 407 checkUnnamed2216(o.device); |
| 408 unittest.expect(o.kind, unittest.equals('foo')); | 408 unittest.expect(o.kind, unittest.equals('foo')); |
| 409 } | 409 } |
| 410 buildCounterDevicesListResponse--; | 410 buildCounterDevicesListResponse--; |
| 411 } | 411 } |
| 412 | 412 |
| 413 core.int buildCounterEnterprise = 0; | 413 core.int buildCounterEnterprise = 0; |
| 414 buildEnterprise() { | 414 buildEnterprise() { |
| 415 var o = new api.Enterprise(); | 415 var o = new api.Enterprise(); |
| 416 buildCounterEnterprise++; | 416 buildCounterEnterprise++; |
| 417 if (buildCounterEnterprise < 3) { | 417 if (buildCounterEnterprise < 3) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 checkEnterpriseAccount(api.EnterpriseAccount o) { | 450 checkEnterpriseAccount(api.EnterpriseAccount o) { |
| 451 buildCounterEnterpriseAccount++; | 451 buildCounterEnterpriseAccount++; |
| 452 if (buildCounterEnterpriseAccount < 3) { | 452 if (buildCounterEnterpriseAccount < 3) { |
| 453 unittest.expect(o.accountEmail, unittest.equals('foo')); | 453 unittest.expect(o.accountEmail, unittest.equals('foo')); |
| 454 unittest.expect(o.kind, unittest.equals('foo')); | 454 unittest.expect(o.kind, unittest.equals('foo')); |
| 455 } | 455 } |
| 456 buildCounterEnterpriseAccount--; | 456 buildCounterEnterpriseAccount--; |
| 457 } | 457 } |
| 458 | 458 |
| 459 buildUnnamed395() { | 459 buildUnnamed2217() { |
| 460 var o = new core.List<api.Enterprise>(); | 460 var o = new core.List<api.Enterprise>(); |
| 461 o.add(buildEnterprise()); | 461 o.add(buildEnterprise()); |
| 462 o.add(buildEnterprise()); | 462 o.add(buildEnterprise()); |
| 463 return o; | 463 return o; |
| 464 } | 464 } |
| 465 | 465 |
| 466 checkUnnamed395(core.List<api.Enterprise> o) { | 466 checkUnnamed2217(core.List<api.Enterprise> o) { |
| 467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
| 468 checkEnterprise(o[0]); | 468 checkEnterprise(o[0]); |
| 469 checkEnterprise(o[1]); | 469 checkEnterprise(o[1]); |
| 470 } | 470 } |
| 471 | 471 |
| 472 core.int buildCounterEnterprisesListResponse = 0; | 472 core.int buildCounterEnterprisesListResponse = 0; |
| 473 buildEnterprisesListResponse() { | 473 buildEnterprisesListResponse() { |
| 474 var o = new api.EnterprisesListResponse(); | 474 var o = new api.EnterprisesListResponse(); |
| 475 buildCounterEnterprisesListResponse++; | 475 buildCounterEnterprisesListResponse++; |
| 476 if (buildCounterEnterprisesListResponse < 3) { | 476 if (buildCounterEnterprisesListResponse < 3) { |
| 477 o.enterprise = buildUnnamed395(); | 477 o.enterprise = buildUnnamed2217(); |
| 478 o.kind = "foo"; | 478 o.kind = "foo"; |
| 479 } | 479 } |
| 480 buildCounterEnterprisesListResponse--; | 480 buildCounterEnterprisesListResponse--; |
| 481 return o; | 481 return o; |
| 482 } | 482 } |
| 483 | 483 |
| 484 checkEnterprisesListResponse(api.EnterprisesListResponse o) { | 484 checkEnterprisesListResponse(api.EnterprisesListResponse o) { |
| 485 buildCounterEnterprisesListResponse++; | 485 buildCounterEnterprisesListResponse++; |
| 486 if (buildCounterEnterprisesListResponse < 3) { | 486 if (buildCounterEnterprisesListResponse < 3) { |
| 487 checkUnnamed395(o.enterprise); | 487 checkUnnamed2217(o.enterprise); |
| 488 unittest.expect(o.kind, unittest.equals('foo')); | 488 unittest.expect(o.kind, unittest.equals('foo')); |
| 489 } | 489 } |
| 490 buildCounterEnterprisesListResponse--; | 490 buildCounterEnterprisesListResponse--; |
| 491 } | 491 } |
| 492 | 492 |
| 493 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; | 493 core.int buildCounterEnterprisesSendTestPushNotificationResponse = 0; |
| 494 buildEnterprisesSendTestPushNotificationResponse() { | 494 buildEnterprisesSendTestPushNotificationResponse() { |
| 495 var o = new api.EnterprisesSendTestPushNotificationResponse(); | 495 var o = new api.EnterprisesSendTestPushNotificationResponse(); |
| 496 buildCounterEnterprisesSendTestPushNotificationResponse++; | 496 buildCounterEnterprisesSendTestPushNotificationResponse++; |
| 497 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { | 497 if (buildCounterEnterprisesSendTestPushNotificationResponse < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 527 checkEntitlement(api.Entitlement o) { | 527 checkEntitlement(api.Entitlement o) { |
| 528 buildCounterEntitlement++; | 528 buildCounterEntitlement++; |
| 529 if (buildCounterEntitlement < 3) { | 529 if (buildCounterEntitlement < 3) { |
| 530 unittest.expect(o.kind, unittest.equals('foo')); | 530 unittest.expect(o.kind, unittest.equals('foo')); |
| 531 unittest.expect(o.productId, unittest.equals('foo')); | 531 unittest.expect(o.productId, unittest.equals('foo')); |
| 532 unittest.expect(o.reason, unittest.equals('foo')); | 532 unittest.expect(o.reason, unittest.equals('foo')); |
| 533 } | 533 } |
| 534 buildCounterEntitlement--; | 534 buildCounterEntitlement--; |
| 535 } | 535 } |
| 536 | 536 |
| 537 buildUnnamed396() { | 537 buildUnnamed2218() { |
| 538 var o = new core.List<api.Entitlement>(); | 538 var o = new core.List<api.Entitlement>(); |
| 539 o.add(buildEntitlement()); | 539 o.add(buildEntitlement()); |
| 540 o.add(buildEntitlement()); | 540 o.add(buildEntitlement()); |
| 541 return o; | 541 return o; |
| 542 } | 542 } |
| 543 | 543 |
| 544 checkUnnamed396(core.List<api.Entitlement> o) { | 544 checkUnnamed2218(core.List<api.Entitlement> o) { |
| 545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
| 546 checkEntitlement(o[0]); | 546 checkEntitlement(o[0]); |
| 547 checkEntitlement(o[1]); | 547 checkEntitlement(o[1]); |
| 548 } | 548 } |
| 549 | 549 |
| 550 core.int buildCounterEntitlementsListResponse = 0; | 550 core.int buildCounterEntitlementsListResponse = 0; |
| 551 buildEntitlementsListResponse() { | 551 buildEntitlementsListResponse() { |
| 552 var o = new api.EntitlementsListResponse(); | 552 var o = new api.EntitlementsListResponse(); |
| 553 buildCounterEntitlementsListResponse++; | 553 buildCounterEntitlementsListResponse++; |
| 554 if (buildCounterEntitlementsListResponse < 3) { | 554 if (buildCounterEntitlementsListResponse < 3) { |
| 555 o.entitlement = buildUnnamed396(); | 555 o.entitlement = buildUnnamed2218(); |
| 556 o.kind = "foo"; | 556 o.kind = "foo"; |
| 557 } | 557 } |
| 558 buildCounterEntitlementsListResponse--; | 558 buildCounterEntitlementsListResponse--; |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkEntitlementsListResponse(api.EntitlementsListResponse o) { | 562 checkEntitlementsListResponse(api.EntitlementsListResponse o) { |
| 563 buildCounterEntitlementsListResponse++; | 563 buildCounterEntitlementsListResponse++; |
| 564 if (buildCounterEntitlementsListResponse < 3) { | 564 if (buildCounterEntitlementsListResponse < 3) { |
| 565 checkUnnamed396(o.entitlement); | 565 checkUnnamed2218(o.entitlement); |
| 566 unittest.expect(o.kind, unittest.equals('foo')); | 566 unittest.expect(o.kind, unittest.equals('foo')); |
| 567 } | 567 } |
| 568 buildCounterEntitlementsListResponse--; | 568 buildCounterEntitlementsListResponse--; |
| 569 } | 569 } |
| 570 | 570 |
| 571 core.int buildCounterGroupLicense = 0; | 571 core.int buildCounterGroupLicense = 0; |
| 572 buildGroupLicense() { | 572 buildGroupLicense() { |
| 573 var o = new api.GroupLicense(); | 573 var o = new api.GroupLicense(); |
| 574 buildCounterGroupLicense++; | 574 buildCounterGroupLicense++; |
| 575 if (buildCounterGroupLicense < 3) { | 575 if (buildCounterGroupLicense < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 590 unittest.expect(o.acquisitionKind, unittest.equals('foo')); | 590 unittest.expect(o.acquisitionKind, unittest.equals('foo')); |
| 591 unittest.expect(o.approval, unittest.equals('foo')); | 591 unittest.expect(o.approval, unittest.equals('foo')); |
| 592 unittest.expect(o.kind, unittest.equals('foo')); | 592 unittest.expect(o.kind, unittest.equals('foo')); |
| 593 unittest.expect(o.numProvisioned, unittest.equals(42)); | 593 unittest.expect(o.numProvisioned, unittest.equals(42)); |
| 594 unittest.expect(o.numPurchased, unittest.equals(42)); | 594 unittest.expect(o.numPurchased, unittest.equals(42)); |
| 595 unittest.expect(o.productId, unittest.equals('foo')); | 595 unittest.expect(o.productId, unittest.equals('foo')); |
| 596 } | 596 } |
| 597 buildCounterGroupLicense--; | 597 buildCounterGroupLicense--; |
| 598 } | 598 } |
| 599 | 599 |
| 600 buildUnnamed397() { | 600 buildUnnamed2219() { |
| 601 var o = new core.List<api.User>(); | 601 var o = new core.List<api.User>(); |
| 602 o.add(buildUser()); | 602 o.add(buildUser()); |
| 603 o.add(buildUser()); | 603 o.add(buildUser()); |
| 604 return o; | 604 return o; |
| 605 } | 605 } |
| 606 | 606 |
| 607 checkUnnamed397(core.List<api.User> o) { | 607 checkUnnamed2219(core.List<api.User> o) { |
| 608 unittest.expect(o, unittest.hasLength(2)); | 608 unittest.expect(o, unittest.hasLength(2)); |
| 609 checkUser(o[0]); | 609 checkUser(o[0]); |
| 610 checkUser(o[1]); | 610 checkUser(o[1]); |
| 611 } | 611 } |
| 612 | 612 |
| 613 core.int buildCounterGroupLicenseUsersListResponse = 0; | 613 core.int buildCounterGroupLicenseUsersListResponse = 0; |
| 614 buildGroupLicenseUsersListResponse() { | 614 buildGroupLicenseUsersListResponse() { |
| 615 var o = new api.GroupLicenseUsersListResponse(); | 615 var o = new api.GroupLicenseUsersListResponse(); |
| 616 buildCounterGroupLicenseUsersListResponse++; | 616 buildCounterGroupLicenseUsersListResponse++; |
| 617 if (buildCounterGroupLicenseUsersListResponse < 3) { | 617 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 618 o.kind = "foo"; | 618 o.kind = "foo"; |
| 619 o.user = buildUnnamed397(); | 619 o.user = buildUnnamed2219(); |
| 620 } | 620 } |
| 621 buildCounterGroupLicenseUsersListResponse--; | 621 buildCounterGroupLicenseUsersListResponse--; |
| 622 return o; | 622 return o; |
| 623 } | 623 } |
| 624 | 624 |
| 625 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { | 625 checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { |
| 626 buildCounterGroupLicenseUsersListResponse++; | 626 buildCounterGroupLicenseUsersListResponse++; |
| 627 if (buildCounterGroupLicenseUsersListResponse < 3) { | 627 if (buildCounterGroupLicenseUsersListResponse < 3) { |
| 628 unittest.expect(o.kind, unittest.equals('foo')); | 628 unittest.expect(o.kind, unittest.equals('foo')); |
| 629 checkUnnamed397(o.user); | 629 checkUnnamed2219(o.user); |
| 630 } | 630 } |
| 631 buildCounterGroupLicenseUsersListResponse--; | 631 buildCounterGroupLicenseUsersListResponse--; |
| 632 } | 632 } |
| 633 | 633 |
| 634 buildUnnamed398() { | 634 buildUnnamed2220() { |
| 635 var o = new core.List<api.GroupLicense>(); | 635 var o = new core.List<api.GroupLicense>(); |
| 636 o.add(buildGroupLicense()); | 636 o.add(buildGroupLicense()); |
| 637 o.add(buildGroupLicense()); | 637 o.add(buildGroupLicense()); |
| 638 return o; | 638 return o; |
| 639 } | 639 } |
| 640 | 640 |
| 641 checkUnnamed398(core.List<api.GroupLicense> o) { | 641 checkUnnamed2220(core.List<api.GroupLicense> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
| 643 checkGroupLicense(o[0]); | 643 checkGroupLicense(o[0]); |
| 644 checkGroupLicense(o[1]); | 644 checkGroupLicense(o[1]); |
| 645 } | 645 } |
| 646 | 646 |
| 647 core.int buildCounterGroupLicensesListResponse = 0; | 647 core.int buildCounterGroupLicensesListResponse = 0; |
| 648 buildGroupLicensesListResponse() { | 648 buildGroupLicensesListResponse() { |
| 649 var o = new api.GroupLicensesListResponse(); | 649 var o = new api.GroupLicensesListResponse(); |
| 650 buildCounterGroupLicensesListResponse++; | 650 buildCounterGroupLicensesListResponse++; |
| 651 if (buildCounterGroupLicensesListResponse < 3) { | 651 if (buildCounterGroupLicensesListResponse < 3) { |
| 652 o.groupLicense = buildUnnamed398(); | 652 o.groupLicense = buildUnnamed2220(); |
| 653 o.kind = "foo"; | 653 o.kind = "foo"; |
| 654 } | 654 } |
| 655 buildCounterGroupLicensesListResponse--; | 655 buildCounterGroupLicensesListResponse--; |
| 656 return o; | 656 return o; |
| 657 } | 657 } |
| 658 | 658 |
| 659 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { | 659 checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { |
| 660 buildCounterGroupLicensesListResponse++; | 660 buildCounterGroupLicensesListResponse++; |
| 661 if (buildCounterGroupLicensesListResponse < 3) { | 661 if (buildCounterGroupLicensesListResponse < 3) { |
| 662 checkUnnamed398(o.groupLicense); | 662 checkUnnamed2220(o.groupLicense); |
| 663 unittest.expect(o.kind, unittest.equals('foo')); | 663 unittest.expect(o.kind, unittest.equals('foo')); |
| 664 } | 664 } |
| 665 buildCounterGroupLicensesListResponse--; | 665 buildCounterGroupLicensesListResponse--; |
| 666 } | 666 } |
| 667 | 667 |
| 668 core.int buildCounterInstall = 0; | 668 core.int buildCounterInstall = 0; |
| 669 buildInstall() { | 669 buildInstall() { |
| 670 var o = new api.Install(); | 670 var o = new api.Install(); |
| 671 buildCounterInstall++; | 671 buildCounterInstall++; |
| 672 if (buildCounterInstall < 3) { | 672 if (buildCounterInstall < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 683 buildCounterInstall++; | 683 buildCounterInstall++; |
| 684 if (buildCounterInstall < 3) { | 684 if (buildCounterInstall < 3) { |
| 685 unittest.expect(o.installState, unittest.equals('foo')); | 685 unittest.expect(o.installState, unittest.equals('foo')); |
| 686 unittest.expect(o.kind, unittest.equals('foo')); | 686 unittest.expect(o.kind, unittest.equals('foo')); |
| 687 unittest.expect(o.productId, unittest.equals('foo')); | 687 unittest.expect(o.productId, unittest.equals('foo')); |
| 688 unittest.expect(o.versionCode, unittest.equals(42)); | 688 unittest.expect(o.versionCode, unittest.equals(42)); |
| 689 } | 689 } |
| 690 buildCounterInstall--; | 690 buildCounterInstall--; |
| 691 } | 691 } |
| 692 | 692 |
| 693 buildUnnamed399() { | 693 buildUnnamed2221() { |
| 694 var o = new core.List<api.Install>(); | 694 var o = new core.List<api.Install>(); |
| 695 o.add(buildInstall()); | 695 o.add(buildInstall()); |
| 696 o.add(buildInstall()); | 696 o.add(buildInstall()); |
| 697 return o; | 697 return o; |
| 698 } | 698 } |
| 699 | 699 |
| 700 checkUnnamed399(core.List<api.Install> o) { | 700 checkUnnamed2221(core.List<api.Install> o) { |
| 701 unittest.expect(o, unittest.hasLength(2)); | 701 unittest.expect(o, unittest.hasLength(2)); |
| 702 checkInstall(o[0]); | 702 checkInstall(o[0]); |
| 703 checkInstall(o[1]); | 703 checkInstall(o[1]); |
| 704 } | 704 } |
| 705 | 705 |
| 706 core.int buildCounterInstallsListResponse = 0; | 706 core.int buildCounterInstallsListResponse = 0; |
| 707 buildInstallsListResponse() { | 707 buildInstallsListResponse() { |
| 708 var o = new api.InstallsListResponse(); | 708 var o = new api.InstallsListResponse(); |
| 709 buildCounterInstallsListResponse++; | 709 buildCounterInstallsListResponse++; |
| 710 if (buildCounterInstallsListResponse < 3) { | 710 if (buildCounterInstallsListResponse < 3) { |
| 711 o.install = buildUnnamed399(); | 711 o.install = buildUnnamed2221(); |
| 712 o.kind = "foo"; | 712 o.kind = "foo"; |
| 713 } | 713 } |
| 714 buildCounterInstallsListResponse--; | 714 buildCounterInstallsListResponse--; |
| 715 return o; | 715 return o; |
| 716 } | 716 } |
| 717 | 717 |
| 718 checkInstallsListResponse(api.InstallsListResponse o) { | 718 checkInstallsListResponse(api.InstallsListResponse o) { |
| 719 buildCounterInstallsListResponse++; | 719 buildCounterInstallsListResponse++; |
| 720 if (buildCounterInstallsListResponse < 3) { | 720 if (buildCounterInstallsListResponse < 3) { |
| 721 checkUnnamed399(o.install); | 721 checkUnnamed2221(o.install); |
| 722 unittest.expect(o.kind, unittest.equals('foo')); | 722 unittest.expect(o.kind, unittest.equals('foo')); |
| 723 } | 723 } |
| 724 buildCounterInstallsListResponse--; | 724 buildCounterInstallsListResponse--; |
| 725 } | 725 } |
| 726 | 726 |
| 727 core.int buildCounterLocalizedText = 0; | 727 core.int buildCounterLocalizedText = 0; |
| 728 buildLocalizedText() { | 728 buildLocalizedText() { |
| 729 var o = new api.LocalizedText(); | 729 var o = new api.LocalizedText(); |
| 730 buildCounterLocalizedText++; | 730 buildCounterLocalizedText++; |
| 731 if (buildCounterLocalizedText < 3) { | 731 if (buildCounterLocalizedText < 3) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 buildCounterPermission++; | 786 buildCounterPermission++; |
| 787 if (buildCounterPermission < 3) { | 787 if (buildCounterPermission < 3) { |
| 788 unittest.expect(o.description, unittest.equals('foo')); | 788 unittest.expect(o.description, unittest.equals('foo')); |
| 789 unittest.expect(o.kind, unittest.equals('foo')); | 789 unittest.expect(o.kind, unittest.equals('foo')); |
| 790 unittest.expect(o.name, unittest.equals('foo')); | 790 unittest.expect(o.name, unittest.equals('foo')); |
| 791 unittest.expect(o.permissionId, unittest.equals('foo')); | 791 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 792 } | 792 } |
| 793 buildCounterPermission--; | 793 buildCounterPermission--; |
| 794 } | 794 } |
| 795 | 795 |
| 796 buildUnnamed400() { | 796 buildUnnamed2222() { |
| 797 var o = new core.List<api.AppVersion>(); | 797 var o = new core.List<api.AppVersion>(); |
| 798 o.add(buildAppVersion()); | 798 o.add(buildAppVersion()); |
| 799 o.add(buildAppVersion()); | 799 o.add(buildAppVersion()); |
| 800 return o; | 800 return o; |
| 801 } | 801 } |
| 802 | 802 |
| 803 checkUnnamed400(core.List<api.AppVersion> o) { | 803 checkUnnamed2222(core.List<api.AppVersion> o) { |
| 804 unittest.expect(o, unittest.hasLength(2)); | 804 unittest.expect(o, unittest.hasLength(2)); |
| 805 checkAppVersion(o[0]); | 805 checkAppVersion(o[0]); |
| 806 checkAppVersion(o[1]); | 806 checkAppVersion(o[1]); |
| 807 } | 807 } |
| 808 | 808 |
| 809 core.int buildCounterProduct = 0; | 809 core.int buildCounterProduct = 0; |
| 810 buildProduct() { | 810 buildProduct() { |
| 811 var o = new api.Product(); | 811 var o = new api.Product(); |
| 812 buildCounterProduct++; | 812 buildCounterProduct++; |
| 813 if (buildCounterProduct < 3) { | 813 if (buildCounterProduct < 3) { |
| 814 o.appVersion = buildUnnamed400(); | 814 o.appVersion = buildUnnamed2222(); |
| 815 o.authorName = "foo"; | 815 o.authorName = "foo"; |
| 816 o.detailsUrl = "foo"; | 816 o.detailsUrl = "foo"; |
| 817 o.distributionChannel = "foo"; | 817 o.distributionChannel = "foo"; |
| 818 o.iconUrl = "foo"; | 818 o.iconUrl = "foo"; |
| 819 o.kind = "foo"; | 819 o.kind = "foo"; |
| 820 o.productId = "foo"; | 820 o.productId = "foo"; |
| 821 o.productPricing = "foo"; | 821 o.productPricing = "foo"; |
| 822 o.requiresContainerApp = true; | 822 o.requiresContainerApp = true; |
| 823 o.smallIconUrl = "foo"; | 823 o.smallIconUrl = "foo"; |
| 824 o.title = "foo"; | 824 o.title = "foo"; |
| 825 o.workDetailsUrl = "foo"; | 825 o.workDetailsUrl = "foo"; |
| 826 } | 826 } |
| 827 buildCounterProduct--; | 827 buildCounterProduct--; |
| 828 return o; | 828 return o; |
| 829 } | 829 } |
| 830 | 830 |
| 831 checkProduct(api.Product o) { | 831 checkProduct(api.Product o) { |
| 832 buildCounterProduct++; | 832 buildCounterProduct++; |
| 833 if (buildCounterProduct < 3) { | 833 if (buildCounterProduct < 3) { |
| 834 checkUnnamed400(o.appVersion); | 834 checkUnnamed2222(o.appVersion); |
| 835 unittest.expect(o.authorName, unittest.equals('foo')); | 835 unittest.expect(o.authorName, unittest.equals('foo')); |
| 836 unittest.expect(o.detailsUrl, unittest.equals('foo')); | 836 unittest.expect(o.detailsUrl, unittest.equals('foo')); |
| 837 unittest.expect(o.distributionChannel, unittest.equals('foo')); | 837 unittest.expect(o.distributionChannel, unittest.equals('foo')); |
| 838 unittest.expect(o.iconUrl, unittest.equals('foo')); | 838 unittest.expect(o.iconUrl, unittest.equals('foo')); |
| 839 unittest.expect(o.kind, unittest.equals('foo')); | 839 unittest.expect(o.kind, unittest.equals('foo')); |
| 840 unittest.expect(o.productId, unittest.equals('foo')); | 840 unittest.expect(o.productId, unittest.equals('foo')); |
| 841 unittest.expect(o.productPricing, unittest.equals('foo')); | 841 unittest.expect(o.productPricing, unittest.equals('foo')); |
| 842 unittest.expect(o.requiresContainerApp, unittest.isTrue); | 842 unittest.expect(o.requiresContainerApp, unittest.isTrue); |
| 843 unittest.expect(o.smallIconUrl, unittest.equals('foo')); | 843 unittest.expect(o.smallIconUrl, unittest.equals('foo')); |
| 844 unittest.expect(o.title, unittest.equals('foo')); | 844 unittest.expect(o.title, unittest.equals('foo')); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 861 | 861 |
| 862 checkProductPermission(api.ProductPermission o) { | 862 checkProductPermission(api.ProductPermission o) { |
| 863 buildCounterProductPermission++; | 863 buildCounterProductPermission++; |
| 864 if (buildCounterProductPermission < 3) { | 864 if (buildCounterProductPermission < 3) { |
| 865 unittest.expect(o.permissionId, unittest.equals('foo')); | 865 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 866 unittest.expect(o.state, unittest.equals('foo')); | 866 unittest.expect(o.state, unittest.equals('foo')); |
| 867 } | 867 } |
| 868 buildCounterProductPermission--; | 868 buildCounterProductPermission--; |
| 869 } | 869 } |
| 870 | 870 |
| 871 buildUnnamed401() { | 871 buildUnnamed2223() { |
| 872 var o = new core.List<api.ProductPermission>(); | 872 var o = new core.List<api.ProductPermission>(); |
| 873 o.add(buildProductPermission()); | 873 o.add(buildProductPermission()); |
| 874 o.add(buildProductPermission()); | 874 o.add(buildProductPermission()); |
| 875 return o; | 875 return o; |
| 876 } | 876 } |
| 877 | 877 |
| 878 checkUnnamed401(core.List<api.ProductPermission> o) { | 878 checkUnnamed2223(core.List<api.ProductPermission> o) { |
| 879 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
| 880 checkProductPermission(o[0]); | 880 checkProductPermission(o[0]); |
| 881 checkProductPermission(o[1]); | 881 checkProductPermission(o[1]); |
| 882 } | 882 } |
| 883 | 883 |
| 884 core.int buildCounterProductPermissions = 0; | 884 core.int buildCounterProductPermissions = 0; |
| 885 buildProductPermissions() { | 885 buildProductPermissions() { |
| 886 var o = new api.ProductPermissions(); | 886 var o = new api.ProductPermissions(); |
| 887 buildCounterProductPermissions++; | 887 buildCounterProductPermissions++; |
| 888 if (buildCounterProductPermissions < 3) { | 888 if (buildCounterProductPermissions < 3) { |
| 889 o.kind = "foo"; | 889 o.kind = "foo"; |
| 890 o.permission = buildUnnamed401(); | 890 o.permission = buildUnnamed2223(); |
| 891 o.productId = "foo"; | 891 o.productId = "foo"; |
| 892 } | 892 } |
| 893 buildCounterProductPermissions--; | 893 buildCounterProductPermissions--; |
| 894 return o; | 894 return o; |
| 895 } | 895 } |
| 896 | 896 |
| 897 checkProductPermissions(api.ProductPermissions o) { | 897 checkProductPermissions(api.ProductPermissions o) { |
| 898 buildCounterProductPermissions++; | 898 buildCounterProductPermissions++; |
| 899 if (buildCounterProductPermissions < 3) { | 899 if (buildCounterProductPermissions < 3) { |
| 900 unittest.expect(o.kind, unittest.equals('foo')); | 900 unittest.expect(o.kind, unittest.equals('foo')); |
| 901 checkUnnamed401(o.permission); | 901 checkUnnamed2223(o.permission); |
| 902 unittest.expect(o.productId, unittest.equals('foo')); | 902 unittest.expect(o.productId, unittest.equals('foo')); |
| 903 } | 903 } |
| 904 buildCounterProductPermissions--; | 904 buildCounterProductPermissions--; |
| 905 } | 905 } |
| 906 | 906 |
| 907 buildUnnamed402() { | 907 buildUnnamed2224() { |
| 908 var o = new core.List<core.String>(); | 908 var o = new core.List<core.String>(); |
| 909 o.add("foo"); | 909 o.add("foo"); |
| 910 o.add("foo"); | 910 o.add("foo"); |
| 911 return o; | 911 return o; |
| 912 } | 912 } |
| 913 | 913 |
| 914 checkUnnamed402(core.List<core.String> o) { | 914 checkUnnamed2224(core.List<core.String> o) { |
| 915 unittest.expect(o, unittest.hasLength(2)); | 915 unittest.expect(o, unittest.hasLength(2)); |
| 916 unittest.expect(o[0], unittest.equals('foo')); | 916 unittest.expect(o[0], unittest.equals('foo')); |
| 917 unittest.expect(o[1], unittest.equals('foo')); | 917 unittest.expect(o[1], unittest.equals('foo')); |
| 918 } | 918 } |
| 919 | 919 |
| 920 core.int buildCounterProductSet = 0; | 920 core.int buildCounterProductSet = 0; |
| 921 buildProductSet() { | 921 buildProductSet() { |
| 922 var o = new api.ProductSet(); | 922 var o = new api.ProductSet(); |
| 923 buildCounterProductSet++; | 923 buildCounterProductSet++; |
| 924 if (buildCounterProductSet < 3) { | 924 if (buildCounterProductSet < 3) { |
| 925 o.kind = "foo"; | 925 o.kind = "foo"; |
| 926 o.productId = buildUnnamed402(); | 926 o.productId = buildUnnamed2224(); |
| 927 } | 927 } |
| 928 buildCounterProductSet--; | 928 buildCounterProductSet--; |
| 929 return o; | 929 return o; |
| 930 } | 930 } |
| 931 | 931 |
| 932 checkProductSet(api.ProductSet o) { | 932 checkProductSet(api.ProductSet o) { |
| 933 buildCounterProductSet++; | 933 buildCounterProductSet++; |
| 934 if (buildCounterProductSet < 3) { | 934 if (buildCounterProductSet < 3) { |
| 935 unittest.expect(o.kind, unittest.equals('foo')); | 935 unittest.expect(o.kind, unittest.equals('foo')); |
| 936 checkUnnamed402(o.productId); | 936 checkUnnamed2224(o.productId); |
| 937 } | 937 } |
| 938 buildCounterProductSet--; | 938 buildCounterProductSet--; |
| 939 } | 939 } |
| 940 | 940 |
| 941 core.int buildCounterProductsApproveRequest = 0; | 941 core.int buildCounterProductsApproveRequest = 0; |
| 942 buildProductsApproveRequest() { | 942 buildProductsApproveRequest() { |
| 943 var o = new api.ProductsApproveRequest(); | 943 var o = new api.ProductsApproveRequest(); |
| 944 buildCounterProductsApproveRequest++; | 944 buildCounterProductsApproveRequest++; |
| 945 if (buildCounterProductsApproveRequest < 3) { | 945 if (buildCounterProductsApproveRequest < 3) { |
| 946 o.approvalUrlInfo = buildApprovalUrlInfo(); | 946 o.approvalUrlInfo = buildApprovalUrlInfo(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 969 } | 969 } |
| 970 | 970 |
| 971 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { | 971 checkProductsGenerateApprovalUrlResponse(api.ProductsGenerateApprovalUrlResponse
o) { |
| 972 buildCounterProductsGenerateApprovalUrlResponse++; | 972 buildCounterProductsGenerateApprovalUrlResponse++; |
| 973 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { | 973 if (buildCounterProductsGenerateApprovalUrlResponse < 3) { |
| 974 unittest.expect(o.url, unittest.equals('foo')); | 974 unittest.expect(o.url, unittest.equals('foo')); |
| 975 } | 975 } |
| 976 buildCounterProductsGenerateApprovalUrlResponse--; | 976 buildCounterProductsGenerateApprovalUrlResponse--; |
| 977 } | 977 } |
| 978 | 978 |
| 979 buildUnnamed403() { | 979 buildUnnamed2225() { |
| 980 var o = new core.List<api.Product>(); | 980 var o = new core.List<api.Product>(); |
| 981 o.add(buildProduct()); | 981 o.add(buildProduct()); |
| 982 o.add(buildProduct()); | 982 o.add(buildProduct()); |
| 983 return o; | 983 return o; |
| 984 } | 984 } |
| 985 | 985 |
| 986 checkUnnamed403(core.List<api.Product> o) { | 986 checkUnnamed2225(core.List<api.Product> o) { |
| 987 unittest.expect(o, unittest.hasLength(2)); | 987 unittest.expect(o, unittest.hasLength(2)); |
| 988 checkProduct(o[0]); | 988 checkProduct(o[0]); |
| 989 checkProduct(o[1]); | 989 checkProduct(o[1]); |
| 990 } | 990 } |
| 991 | 991 |
| 992 core.int buildCounterProductsListResponse = 0; | 992 core.int buildCounterProductsListResponse = 0; |
| 993 buildProductsListResponse() { | 993 buildProductsListResponse() { |
| 994 var o = new api.ProductsListResponse(); | 994 var o = new api.ProductsListResponse(); |
| 995 buildCounterProductsListResponse++; | 995 buildCounterProductsListResponse++; |
| 996 if (buildCounterProductsListResponse < 3) { | 996 if (buildCounterProductsListResponse < 3) { |
| 997 o.kind = "foo"; | 997 o.kind = "foo"; |
| 998 o.pageInfo = buildPageInfo(); | 998 o.pageInfo = buildPageInfo(); |
| 999 o.product = buildUnnamed403(); | 999 o.product = buildUnnamed2225(); |
| 1000 o.tokenPagination = buildTokenPagination(); | 1000 o.tokenPagination = buildTokenPagination(); |
| 1001 } | 1001 } |
| 1002 buildCounterProductsListResponse--; | 1002 buildCounterProductsListResponse--; |
| 1003 return o; | 1003 return o; |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 checkProductsListResponse(api.ProductsListResponse o) { | 1006 checkProductsListResponse(api.ProductsListResponse o) { |
| 1007 buildCounterProductsListResponse++; | 1007 buildCounterProductsListResponse++; |
| 1008 if (buildCounterProductsListResponse < 3) { | 1008 if (buildCounterProductsListResponse < 3) { |
| 1009 unittest.expect(o.kind, unittest.equals('foo')); | 1009 unittest.expect(o.kind, unittest.equals('foo')); |
| 1010 checkPageInfo(o.pageInfo); | 1010 checkPageInfo(o.pageInfo); |
| 1011 checkUnnamed403(o.product); | 1011 checkUnnamed2225(o.product); |
| 1012 checkTokenPagination(o.tokenPagination); | 1012 checkTokenPagination(o.tokenPagination); |
| 1013 } | 1013 } |
| 1014 buildCounterProductsListResponse--; | 1014 buildCounterProductsListResponse--; |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 buildUnnamed404() { | 1017 buildUnnamed2226() { |
| 1018 var o = new core.List<api.LocalizedText>(); | 1018 var o = new core.List<api.LocalizedText>(); |
| 1019 o.add(buildLocalizedText()); | 1019 o.add(buildLocalizedText()); |
| 1020 o.add(buildLocalizedText()); | 1020 o.add(buildLocalizedText()); |
| 1021 return o; | 1021 return o; |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 checkUnnamed404(core.List<api.LocalizedText> o) { | 1024 checkUnnamed2226(core.List<api.LocalizedText> o) { |
| 1025 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
| 1026 checkLocalizedText(o[0]); | 1026 checkLocalizedText(o[0]); |
| 1027 checkLocalizedText(o[1]); | 1027 checkLocalizedText(o[1]); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 buildUnnamed405() { | 1030 buildUnnamed2227() { |
| 1031 var o = new core.List<core.String>(); | 1031 var o = new core.List<core.String>(); |
| 1032 o.add("foo"); | 1032 o.add("foo"); |
| 1033 o.add("foo"); | 1033 o.add("foo"); |
| 1034 return o; | 1034 return o; |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 checkUnnamed405(core.List<core.String> o) { | 1037 checkUnnamed2227(core.List<core.String> o) { |
| 1038 unittest.expect(o, unittest.hasLength(2)); | 1038 unittest.expect(o, unittest.hasLength(2)); |
| 1039 unittest.expect(o[0], unittest.equals('foo')); | 1039 unittest.expect(o[0], unittest.equals('foo')); |
| 1040 unittest.expect(o[1], unittest.equals('foo')); | 1040 unittest.expect(o[1], unittest.equals('foo')); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 core.int buildCounterStoreCluster = 0; | 1043 core.int buildCounterStoreCluster = 0; |
| 1044 buildStoreCluster() { | 1044 buildStoreCluster() { |
| 1045 var o = new api.StoreCluster(); | 1045 var o = new api.StoreCluster(); |
| 1046 buildCounterStoreCluster++; | 1046 buildCounterStoreCluster++; |
| 1047 if (buildCounterStoreCluster < 3) { | 1047 if (buildCounterStoreCluster < 3) { |
| 1048 o.id = "foo"; | 1048 o.id = "foo"; |
| 1049 o.kind = "foo"; | 1049 o.kind = "foo"; |
| 1050 o.name = buildUnnamed404(); | 1050 o.name = buildUnnamed2226(); |
| 1051 o.orderInPage = "foo"; | 1051 o.orderInPage = "foo"; |
| 1052 o.productId = buildUnnamed405(); | 1052 o.productId = buildUnnamed2227(); |
| 1053 } | 1053 } |
| 1054 buildCounterStoreCluster--; | 1054 buildCounterStoreCluster--; |
| 1055 return o; | 1055 return o; |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 checkStoreCluster(api.StoreCluster o) { | 1058 checkStoreCluster(api.StoreCluster o) { |
| 1059 buildCounterStoreCluster++; | 1059 buildCounterStoreCluster++; |
| 1060 if (buildCounterStoreCluster < 3) { | 1060 if (buildCounterStoreCluster < 3) { |
| 1061 unittest.expect(o.id, unittest.equals('foo')); | 1061 unittest.expect(o.id, unittest.equals('foo')); |
| 1062 unittest.expect(o.kind, unittest.equals('foo')); | 1062 unittest.expect(o.kind, unittest.equals('foo')); |
| 1063 checkUnnamed404(o.name); | 1063 checkUnnamed2226(o.name); |
| 1064 unittest.expect(o.orderInPage, unittest.equals('foo')); | 1064 unittest.expect(o.orderInPage, unittest.equals('foo')); |
| 1065 checkUnnamed405(o.productId); | 1065 checkUnnamed2227(o.productId); |
| 1066 } | 1066 } |
| 1067 buildCounterStoreCluster--; | 1067 buildCounterStoreCluster--; |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 core.int buildCounterStoreLayout = 0; | 1070 core.int buildCounterStoreLayout = 0; |
| 1071 buildStoreLayout() { | 1071 buildStoreLayout() { |
| 1072 var o = new api.StoreLayout(); | 1072 var o = new api.StoreLayout(); |
| 1073 buildCounterStoreLayout++; | 1073 buildCounterStoreLayout++; |
| 1074 if (buildCounterStoreLayout < 3) { | 1074 if (buildCounterStoreLayout < 3) { |
| 1075 o.homepageId = "foo"; | 1075 o.homepageId = "foo"; |
| 1076 o.kind = "foo"; | 1076 o.kind = "foo"; |
| 1077 } | 1077 } |
| 1078 buildCounterStoreLayout--; | 1078 buildCounterStoreLayout--; |
| 1079 return o; | 1079 return o; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 checkStoreLayout(api.StoreLayout o) { | 1082 checkStoreLayout(api.StoreLayout o) { |
| 1083 buildCounterStoreLayout++; | 1083 buildCounterStoreLayout++; |
| 1084 if (buildCounterStoreLayout < 3) { | 1084 if (buildCounterStoreLayout < 3) { |
| 1085 unittest.expect(o.homepageId, unittest.equals('foo')); | 1085 unittest.expect(o.homepageId, unittest.equals('foo')); |
| 1086 unittest.expect(o.kind, unittest.equals('foo')); | 1086 unittest.expect(o.kind, unittest.equals('foo')); |
| 1087 } | 1087 } |
| 1088 buildCounterStoreLayout--; | 1088 buildCounterStoreLayout--; |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 buildUnnamed406() { | 1091 buildUnnamed2228() { |
| 1092 var o = new core.List<api.StoreCluster>(); | 1092 var o = new core.List<api.StoreCluster>(); |
| 1093 o.add(buildStoreCluster()); | 1093 o.add(buildStoreCluster()); |
| 1094 o.add(buildStoreCluster()); | 1094 o.add(buildStoreCluster()); |
| 1095 return o; | 1095 return o; |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 checkUnnamed406(core.List<api.StoreCluster> o) { | 1098 checkUnnamed2228(core.List<api.StoreCluster> o) { |
| 1099 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
| 1100 checkStoreCluster(o[0]); | 1100 checkStoreCluster(o[0]); |
| 1101 checkStoreCluster(o[1]); | 1101 checkStoreCluster(o[1]); |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 core.int buildCounterStoreLayoutClustersListResponse = 0; | 1104 core.int buildCounterStoreLayoutClustersListResponse = 0; |
| 1105 buildStoreLayoutClustersListResponse() { | 1105 buildStoreLayoutClustersListResponse() { |
| 1106 var o = new api.StoreLayoutClustersListResponse(); | 1106 var o = new api.StoreLayoutClustersListResponse(); |
| 1107 buildCounterStoreLayoutClustersListResponse++; | 1107 buildCounterStoreLayoutClustersListResponse++; |
| 1108 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1108 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1109 o.cluster = buildUnnamed406(); | 1109 o.cluster = buildUnnamed2228(); |
| 1110 o.kind = "foo"; | 1110 o.kind = "foo"; |
| 1111 } | 1111 } |
| 1112 buildCounterStoreLayoutClustersListResponse--; | 1112 buildCounterStoreLayoutClustersListResponse--; |
| 1113 return o; | 1113 return o; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { | 1116 checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { |
| 1117 buildCounterStoreLayoutClustersListResponse++; | 1117 buildCounterStoreLayoutClustersListResponse++; |
| 1118 if (buildCounterStoreLayoutClustersListResponse < 3) { | 1118 if (buildCounterStoreLayoutClustersListResponse < 3) { |
| 1119 checkUnnamed406(o.cluster); | 1119 checkUnnamed2228(o.cluster); |
| 1120 unittest.expect(o.kind, unittest.equals('foo')); | 1120 unittest.expect(o.kind, unittest.equals('foo')); |
| 1121 } | 1121 } |
| 1122 buildCounterStoreLayoutClustersListResponse--; | 1122 buildCounterStoreLayoutClustersListResponse--; |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 buildUnnamed407() { | 1125 buildUnnamed2229() { |
| 1126 var o = new core.List<api.StorePage>(); | 1126 var o = new core.List<api.StorePage>(); |
| 1127 o.add(buildStorePage()); | 1127 o.add(buildStorePage()); |
| 1128 o.add(buildStorePage()); | 1128 o.add(buildStorePage()); |
| 1129 return o; | 1129 return o; |
| 1130 } | 1130 } |
| 1131 | 1131 |
| 1132 checkUnnamed407(core.List<api.StorePage> o) { | 1132 checkUnnamed2229(core.List<api.StorePage> o) { |
| 1133 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
| 1134 checkStorePage(o[0]); | 1134 checkStorePage(o[0]); |
| 1135 checkStorePage(o[1]); | 1135 checkStorePage(o[1]); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 core.int buildCounterStoreLayoutPagesListResponse = 0; | 1138 core.int buildCounterStoreLayoutPagesListResponse = 0; |
| 1139 buildStoreLayoutPagesListResponse() { | 1139 buildStoreLayoutPagesListResponse() { |
| 1140 var o = new api.StoreLayoutPagesListResponse(); | 1140 var o = new api.StoreLayoutPagesListResponse(); |
| 1141 buildCounterStoreLayoutPagesListResponse++; | 1141 buildCounterStoreLayoutPagesListResponse++; |
| 1142 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1142 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1143 o.kind = "foo"; | 1143 o.kind = "foo"; |
| 1144 o.page = buildUnnamed407(); | 1144 o.page = buildUnnamed2229(); |
| 1145 } | 1145 } |
| 1146 buildCounterStoreLayoutPagesListResponse--; | 1146 buildCounterStoreLayoutPagesListResponse--; |
| 1147 return o; | 1147 return o; |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { | 1150 checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { |
| 1151 buildCounterStoreLayoutPagesListResponse++; | 1151 buildCounterStoreLayoutPagesListResponse++; |
| 1152 if (buildCounterStoreLayoutPagesListResponse < 3) { | 1152 if (buildCounterStoreLayoutPagesListResponse < 3) { |
| 1153 unittest.expect(o.kind, unittest.equals('foo')); | 1153 unittest.expect(o.kind, unittest.equals('foo')); |
| 1154 checkUnnamed407(o.page); | 1154 checkUnnamed2229(o.page); |
| 1155 } | 1155 } |
| 1156 buildCounterStoreLayoutPagesListResponse--; | 1156 buildCounterStoreLayoutPagesListResponse--; |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 buildUnnamed408() { | 1159 buildUnnamed2230() { |
| 1160 var o = new core.List<core.String>(); | 1160 var o = new core.List<core.String>(); |
| 1161 o.add("foo"); | 1161 o.add("foo"); |
| 1162 o.add("foo"); | 1162 o.add("foo"); |
| 1163 return o; | 1163 return o; |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 checkUnnamed408(core.List<core.String> o) { | 1166 checkUnnamed2230(core.List<core.String> o) { |
| 1167 unittest.expect(o, unittest.hasLength(2)); | 1167 unittest.expect(o, unittest.hasLength(2)); |
| 1168 unittest.expect(o[0], unittest.equals('foo')); | 1168 unittest.expect(o[0], unittest.equals('foo')); |
| 1169 unittest.expect(o[1], unittest.equals('foo')); | 1169 unittest.expect(o[1], unittest.equals('foo')); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 buildUnnamed409() { | 1172 buildUnnamed2231() { |
| 1173 var o = new core.List<api.LocalizedText>(); | 1173 var o = new core.List<api.LocalizedText>(); |
| 1174 o.add(buildLocalizedText()); | 1174 o.add(buildLocalizedText()); |
| 1175 o.add(buildLocalizedText()); | 1175 o.add(buildLocalizedText()); |
| 1176 return o; | 1176 return o; |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 checkUnnamed409(core.List<api.LocalizedText> o) { | 1179 checkUnnamed2231(core.List<api.LocalizedText> o) { |
| 1180 unittest.expect(o, unittest.hasLength(2)); | 1180 unittest.expect(o, unittest.hasLength(2)); |
| 1181 checkLocalizedText(o[0]); | 1181 checkLocalizedText(o[0]); |
| 1182 checkLocalizedText(o[1]); | 1182 checkLocalizedText(o[1]); |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 core.int buildCounterStorePage = 0; | 1185 core.int buildCounterStorePage = 0; |
| 1186 buildStorePage() { | 1186 buildStorePage() { |
| 1187 var o = new api.StorePage(); | 1187 var o = new api.StorePage(); |
| 1188 buildCounterStorePage++; | 1188 buildCounterStorePage++; |
| 1189 if (buildCounterStorePage < 3) { | 1189 if (buildCounterStorePage < 3) { |
| 1190 o.id = "foo"; | 1190 o.id = "foo"; |
| 1191 o.kind = "foo"; | 1191 o.kind = "foo"; |
| 1192 o.link = buildUnnamed408(); | 1192 o.link = buildUnnamed2230(); |
| 1193 o.name = buildUnnamed409(); | 1193 o.name = buildUnnamed2231(); |
| 1194 } | 1194 } |
| 1195 buildCounterStorePage--; | 1195 buildCounterStorePage--; |
| 1196 return o; | 1196 return o; |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 checkStorePage(api.StorePage o) { | 1199 checkStorePage(api.StorePage o) { |
| 1200 buildCounterStorePage++; | 1200 buildCounterStorePage++; |
| 1201 if (buildCounterStorePage < 3) { | 1201 if (buildCounterStorePage < 3) { |
| 1202 unittest.expect(o.id, unittest.equals('foo')); | 1202 unittest.expect(o.id, unittest.equals('foo')); |
| 1203 unittest.expect(o.kind, unittest.equals('foo')); | 1203 unittest.expect(o.kind, unittest.equals('foo')); |
| 1204 checkUnnamed408(o.link); | 1204 checkUnnamed2230(o.link); |
| 1205 checkUnnamed409(o.name); | 1205 checkUnnamed2231(o.name); |
| 1206 } | 1206 } |
| 1207 buildCounterStorePage--; | 1207 buildCounterStorePage--; |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 core.int buildCounterTokenPagination = 0; | 1210 core.int buildCounterTokenPagination = 0; |
| 1211 buildTokenPagination() { | 1211 buildTokenPagination() { |
| 1212 var o = new api.TokenPagination(); | 1212 var o = new api.TokenPagination(); |
| 1213 buildCounterTokenPagination++; | 1213 buildCounterTokenPagination++; |
| 1214 if (buildCounterTokenPagination < 3) { | 1214 if (buildCounterTokenPagination < 3) { |
| 1215 o.nextPageToken = "foo"; | 1215 o.nextPageToken = "foo"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 checkUserToken(api.UserToken o) { | 1267 checkUserToken(api.UserToken o) { |
| 1268 buildCounterUserToken++; | 1268 buildCounterUserToken++; |
| 1269 if (buildCounterUserToken < 3) { | 1269 if (buildCounterUserToken < 3) { |
| 1270 unittest.expect(o.kind, unittest.equals('foo')); | 1270 unittest.expect(o.kind, unittest.equals('foo')); |
| 1271 unittest.expect(o.token, unittest.equals('foo')); | 1271 unittest.expect(o.token, unittest.equals('foo')); |
| 1272 unittest.expect(o.userId, unittest.equals('foo')); | 1272 unittest.expect(o.userId, unittest.equals('foo')); |
| 1273 } | 1273 } |
| 1274 buildCounterUserToken--; | 1274 buildCounterUserToken--; |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 buildUnnamed410() { | 1277 buildUnnamed2232() { |
| 1278 var o = new core.List<api.User>(); | 1278 var o = new core.List<api.User>(); |
| 1279 o.add(buildUser()); | 1279 o.add(buildUser()); |
| 1280 o.add(buildUser()); | 1280 o.add(buildUser()); |
| 1281 return o; | 1281 return o; |
| 1282 } | 1282 } |
| 1283 | 1283 |
| 1284 checkUnnamed410(core.List<api.User> o) { | 1284 checkUnnamed2232(core.List<api.User> o) { |
| 1285 unittest.expect(o, unittest.hasLength(2)); | 1285 unittest.expect(o, unittest.hasLength(2)); |
| 1286 checkUser(o[0]); | 1286 checkUser(o[0]); |
| 1287 checkUser(o[1]); | 1287 checkUser(o[1]); |
| 1288 } | 1288 } |
| 1289 | 1289 |
| 1290 core.int buildCounterUsersListResponse = 0; | 1290 core.int buildCounterUsersListResponse = 0; |
| 1291 buildUsersListResponse() { | 1291 buildUsersListResponse() { |
| 1292 var o = new api.UsersListResponse(); | 1292 var o = new api.UsersListResponse(); |
| 1293 buildCounterUsersListResponse++; | 1293 buildCounterUsersListResponse++; |
| 1294 if (buildCounterUsersListResponse < 3) { | 1294 if (buildCounterUsersListResponse < 3) { |
| 1295 o.kind = "foo"; | 1295 o.kind = "foo"; |
| 1296 o.user = buildUnnamed410(); | 1296 o.user = buildUnnamed2232(); |
| 1297 } | 1297 } |
| 1298 buildCounterUsersListResponse--; | 1298 buildCounterUsersListResponse--; |
| 1299 return o; | 1299 return o; |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 checkUsersListResponse(api.UsersListResponse o) { | 1302 checkUsersListResponse(api.UsersListResponse o) { |
| 1303 buildCounterUsersListResponse++; | 1303 buildCounterUsersListResponse++; |
| 1304 if (buildCounterUsersListResponse < 3) { | 1304 if (buildCounterUsersListResponse < 3) { |
| 1305 unittest.expect(o.kind, unittest.equals('foo')); | 1305 unittest.expect(o.kind, unittest.equals('foo')); |
| 1306 checkUnnamed410(o.user); | 1306 checkUnnamed2232(o.user); |
| 1307 } | 1307 } |
| 1308 buildCounterUsersListResponse--; | 1308 buildCounterUsersListResponse--; |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 | 1311 |
| 1312 main() { | 1312 main() { |
| 1313 unittest.group("obj-schema-AppRestrictionsSchema", () { | 1313 unittest.group("obj-schema-AppRestrictionsSchema", () { |
| 1314 unittest.test("to-json--from-json", () { | 1314 unittest.test("to-json--from-json", () { |
| 1315 var o = buildAppRestrictionsSchema(); | 1315 var o = buildAppRestrictionsSchema(); |
| 1316 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); | 1316 var od = new api.AppRestrictionsSchema.fromJson(o.toJson()); |
| (...skipping 4315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5632 res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then
(unittest.expectAsync(((api.ProductSet response) { | 5632 res.setAvailableProductSet(arg_request, arg_enterpriseId, arg_userId).then
(unittest.expectAsync(((api.ProductSet response) { |
| 5633 checkProductSet(response); | 5633 checkProductSet(response); |
| 5634 }))); | 5634 }))); |
| 5635 }); | 5635 }); |
| 5636 | 5636 |
| 5637 }); | 5637 }); |
| 5638 | 5638 |
| 5639 | 5639 |
| 5640 } | 5640 } |
| 5641 | 5641 |
| OLD | NEW |