| OLD | NEW |
| 1 library googleapis.androidmanagement.v1.test; | 1 library googleapis.androidmanagement.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkApiLevelCondition(api.ApiLevelCondition o) { | 65 checkApiLevelCondition(api.ApiLevelCondition o) { |
| 66 buildCounterApiLevelCondition++; | 66 buildCounterApiLevelCondition++; |
| 67 if (buildCounterApiLevelCondition < 3) { | 67 if (buildCounterApiLevelCondition < 3) { |
| 68 unittest.expect(o.minApiLevel, unittest.equals(42)); | 68 unittest.expect(o.minApiLevel, unittest.equals(42)); |
| 69 } | 69 } |
| 70 buildCounterApiLevelCondition--; | 70 buildCounterApiLevelCondition--; |
| 71 } | 71 } |
| 72 | 72 |
| 73 buildUnnamed1542() { | 73 buildUnnamed1559() { |
| 74 var o = new core.List<api.ManagedProperty>(); | 74 var o = new core.List<api.ManagedProperty>(); |
| 75 o.add(buildManagedProperty()); | 75 o.add(buildManagedProperty()); |
| 76 o.add(buildManagedProperty()); | 76 o.add(buildManagedProperty()); |
| 77 return o; | 77 return o; |
| 78 } | 78 } |
| 79 | 79 |
| 80 checkUnnamed1542(core.List<api.ManagedProperty> o) { | 80 checkUnnamed1559(core.List<api.ManagedProperty> o) { |
| 81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
| 82 checkManagedProperty(o[0]); | 82 checkManagedProperty(o[0]); |
| 83 checkManagedProperty(o[1]); | 83 checkManagedProperty(o[1]); |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed1543() { | 86 buildUnnamed1560() { |
| 87 var o = new core.List<api.ApplicationPermission>(); | 87 var o = new core.List<api.ApplicationPermission>(); |
| 88 o.add(buildApplicationPermission()); | 88 o.add(buildApplicationPermission()); |
| 89 o.add(buildApplicationPermission()); | 89 o.add(buildApplicationPermission()); |
| 90 return o; | 90 return o; |
| 91 } | 91 } |
| 92 | 92 |
| 93 checkUnnamed1543(core.List<api.ApplicationPermission> o) { | 93 checkUnnamed1560(core.List<api.ApplicationPermission> o) { |
| 94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
| 95 checkApplicationPermission(o[0]); | 95 checkApplicationPermission(o[0]); |
| 96 checkApplicationPermission(o[1]); | 96 checkApplicationPermission(o[1]); |
| 97 } | 97 } |
| 98 | 98 |
| 99 core.int buildCounterApplication = 0; | 99 core.int buildCounterApplication = 0; |
| 100 buildApplication() { | 100 buildApplication() { |
| 101 var o = new api.Application(); | 101 var o = new api.Application(); |
| 102 buildCounterApplication++; | 102 buildCounterApplication++; |
| 103 if (buildCounterApplication < 3) { | 103 if (buildCounterApplication < 3) { |
| 104 o.managedProperties = buildUnnamed1542(); | 104 o.managedProperties = buildUnnamed1559(); |
| 105 o.name = "foo"; | 105 o.name = "foo"; |
| 106 o.permissions = buildUnnamed1543(); | 106 o.permissions = buildUnnamed1560(); |
| 107 o.title = "foo"; | 107 o.title = "foo"; |
| 108 } | 108 } |
| 109 buildCounterApplication--; | 109 buildCounterApplication--; |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkApplication(api.Application o) { | 113 checkApplication(api.Application o) { |
| 114 buildCounterApplication++; | 114 buildCounterApplication++; |
| 115 if (buildCounterApplication < 3) { | 115 if (buildCounterApplication < 3) { |
| 116 checkUnnamed1542(o.managedProperties); | 116 checkUnnamed1559(o.managedProperties); |
| 117 unittest.expect(o.name, unittest.equals('foo')); | 117 unittest.expect(o.name, unittest.equals('foo')); |
| 118 checkUnnamed1543(o.permissions); | 118 checkUnnamed1560(o.permissions); |
| 119 unittest.expect(o.title, unittest.equals('foo')); | 119 unittest.expect(o.title, unittest.equals('foo')); |
| 120 } | 120 } |
| 121 buildCounterApplication--; | 121 buildCounterApplication--; |
| 122 } | 122 } |
| 123 | 123 |
| 124 core.int buildCounterApplicationPermission = 0; | 124 core.int buildCounterApplicationPermission = 0; |
| 125 buildApplicationPermission() { | 125 buildApplicationPermission() { |
| 126 var o = new api.ApplicationPermission(); | 126 var o = new api.ApplicationPermission(); |
| 127 buildCounterApplicationPermission++; | 127 buildCounterApplicationPermission++; |
| 128 if (buildCounterApplicationPermission < 3) { | 128 if (buildCounterApplicationPermission < 3) { |
| 129 o.description = "foo"; | 129 o.description = "foo"; |
| 130 o.name = "foo"; | 130 o.name = "foo"; |
| 131 o.permissionId = "foo"; | 131 o.permissionId = "foo"; |
| 132 } | 132 } |
| 133 buildCounterApplicationPermission--; | 133 buildCounterApplicationPermission--; |
| 134 return o; | 134 return o; |
| 135 } | 135 } |
| 136 | 136 |
| 137 checkApplicationPermission(api.ApplicationPermission o) { | 137 checkApplicationPermission(api.ApplicationPermission o) { |
| 138 buildCounterApplicationPermission++; | 138 buildCounterApplicationPermission++; |
| 139 if (buildCounterApplicationPermission < 3) { | 139 if (buildCounterApplicationPermission < 3) { |
| 140 unittest.expect(o.description, unittest.equals('foo')); | 140 unittest.expect(o.description, unittest.equals('foo')); |
| 141 unittest.expect(o.name, unittest.equals('foo')); | 141 unittest.expect(o.name, unittest.equals('foo')); |
| 142 unittest.expect(o.permissionId, unittest.equals('foo')); | 142 unittest.expect(o.permissionId, unittest.equals('foo')); |
| 143 } | 143 } |
| 144 buildCounterApplicationPermission--; | 144 buildCounterApplicationPermission--; |
| 145 } | 145 } |
| 146 | 146 |
| 147 buildUnnamed1544() { | 147 buildUnnamed1561() { |
| 148 var o = new core.Map<core.String, core.Object>(); | 148 var o = new core.Map<core.String, core.Object>(); |
| 149 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 149 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 150 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 150 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 151 return o; | 151 return o; |
| 152 } | 152 } |
| 153 | 153 |
| 154 checkUnnamed1544(core.Map<core.String, core.Object> o) { | 154 checkUnnamed1561(core.Map<core.String, core.Object> o) { |
| 155 unittest.expect(o, unittest.hasLength(2)); | 155 unittest.expect(o, unittest.hasLength(2)); |
| 156 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 156 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 157 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 157 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 158 } | 158 } |
| 159 | 159 |
| 160 buildUnnamed1545() { | 160 buildUnnamed1562() { |
| 161 var o = new core.List<api.PermissionGrant>(); | 161 var o = new core.List<api.PermissionGrant>(); |
| 162 o.add(buildPermissionGrant()); | 162 o.add(buildPermissionGrant()); |
| 163 o.add(buildPermissionGrant()); | 163 o.add(buildPermissionGrant()); |
| 164 return o; | 164 return o; |
| 165 } | 165 } |
| 166 | 166 |
| 167 checkUnnamed1545(core.List<api.PermissionGrant> o) { | 167 checkUnnamed1562(core.List<api.PermissionGrant> o) { |
| 168 unittest.expect(o, unittest.hasLength(2)); | 168 unittest.expect(o, unittest.hasLength(2)); |
| 169 checkPermissionGrant(o[0]); | 169 checkPermissionGrant(o[0]); |
| 170 checkPermissionGrant(o[1]); | 170 checkPermissionGrant(o[1]); |
| 171 } | 171 } |
| 172 | 172 |
| 173 core.int buildCounterApplicationPolicy = 0; | 173 core.int buildCounterApplicationPolicy = 0; |
| 174 buildApplicationPolicy() { | 174 buildApplicationPolicy() { |
| 175 var o = new api.ApplicationPolicy(); | 175 var o = new api.ApplicationPolicy(); |
| 176 buildCounterApplicationPolicy++; | 176 buildCounterApplicationPolicy++; |
| 177 if (buildCounterApplicationPolicy < 3) { | 177 if (buildCounterApplicationPolicy < 3) { |
| 178 o.defaultPermissionPolicy = "foo"; | 178 o.defaultPermissionPolicy = "foo"; |
| 179 o.installType = "foo"; | 179 o.installType = "foo"; |
| 180 o.lockTaskAllowed = true; | 180 o.lockTaskAllowed = true; |
| 181 o.managedConfiguration = buildUnnamed1544(); | 181 o.managedConfiguration = buildUnnamed1561(); |
| 182 o.packageName = "foo"; | 182 o.packageName = "foo"; |
| 183 o.permissionGrants = buildUnnamed1545(); | 183 o.permissionGrants = buildUnnamed1562(); |
| 184 } | 184 } |
| 185 buildCounterApplicationPolicy--; | 185 buildCounterApplicationPolicy--; |
| 186 return o; | 186 return o; |
| 187 } | 187 } |
| 188 | 188 |
| 189 checkApplicationPolicy(api.ApplicationPolicy o) { | 189 checkApplicationPolicy(api.ApplicationPolicy o) { |
| 190 buildCounterApplicationPolicy++; | 190 buildCounterApplicationPolicy++; |
| 191 if (buildCounterApplicationPolicy < 3) { | 191 if (buildCounterApplicationPolicy < 3) { |
| 192 unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); | 192 unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); |
| 193 unittest.expect(o.installType, unittest.equals('foo')); | 193 unittest.expect(o.installType, unittest.equals('foo')); |
| 194 unittest.expect(o.lockTaskAllowed, unittest.isTrue); | 194 unittest.expect(o.lockTaskAllowed, unittest.isTrue); |
| 195 checkUnnamed1544(o.managedConfiguration); | 195 checkUnnamed1561(o.managedConfiguration); |
| 196 unittest.expect(o.packageName, unittest.equals('foo')); | 196 unittest.expect(o.packageName, unittest.equals('foo')); |
| 197 checkUnnamed1545(o.permissionGrants); | 197 checkUnnamed1562(o.permissionGrants); |
| 198 } | 198 } |
| 199 buildCounterApplicationPolicy--; | 199 buildCounterApplicationPolicy--; |
| 200 } | 200 } |
| 201 | 201 |
| 202 buildUnnamed1546() { | 202 buildUnnamed1563() { |
| 203 var o = new core.List<core.String>(); | 203 var o = new core.List<core.String>(); |
| 204 o.add("foo"); | 204 o.add("foo"); |
| 205 o.add("foo"); | 205 o.add("foo"); |
| 206 return o; | 206 return o; |
| 207 } | 207 } |
| 208 | 208 |
| 209 checkUnnamed1546(core.List<core.String> o) { | 209 checkUnnamed1563(core.List<core.String> o) { |
| 210 unittest.expect(o, unittest.hasLength(2)); | 210 unittest.expect(o, unittest.hasLength(2)); |
| 211 unittest.expect(o[0], unittest.equals('foo')); | 211 unittest.expect(o[0], unittest.equals('foo')); |
| 212 unittest.expect(o[1], unittest.equals('foo')); | 212 unittest.expect(o[1], unittest.equals('foo')); |
| 213 } | 213 } |
| 214 | 214 |
| 215 core.int buildCounterCommand = 0; | 215 core.int buildCounterCommand = 0; |
| 216 buildCommand() { | 216 buildCommand() { |
| 217 var o = new api.Command(); | 217 var o = new api.Command(); |
| 218 buildCounterCommand++; | 218 buildCounterCommand++; |
| 219 if (buildCounterCommand < 3) { | 219 if (buildCounterCommand < 3) { |
| 220 o.createTime = "foo"; | 220 o.createTime = "foo"; |
| 221 o.duration = "foo"; | 221 o.duration = "foo"; |
| 222 o.newPassword = "foo"; | 222 o.newPassword = "foo"; |
| 223 o.resetPasswordFlags = buildUnnamed1546(); | 223 o.resetPasswordFlags = buildUnnamed1563(); |
| 224 o.type = "foo"; | 224 o.type = "foo"; |
| 225 } | 225 } |
| 226 buildCounterCommand--; | 226 buildCounterCommand--; |
| 227 return o; | 227 return o; |
| 228 } | 228 } |
| 229 | 229 |
| 230 checkCommand(api.Command o) { | 230 checkCommand(api.Command o) { |
| 231 buildCounterCommand++; | 231 buildCounterCommand++; |
| 232 if (buildCounterCommand < 3) { | 232 if (buildCounterCommand < 3) { |
| 233 unittest.expect(o.createTime, unittest.equals('foo')); | 233 unittest.expect(o.createTime, unittest.equals('foo')); |
| 234 unittest.expect(o.duration, unittest.equals('foo')); | 234 unittest.expect(o.duration, unittest.equals('foo')); |
| 235 unittest.expect(o.newPassword, unittest.equals('foo')); | 235 unittest.expect(o.newPassword, unittest.equals('foo')); |
| 236 checkUnnamed1546(o.resetPasswordFlags); | 236 checkUnnamed1563(o.resetPasswordFlags); |
| 237 unittest.expect(o.type, unittest.equals('foo')); | 237 unittest.expect(o.type, unittest.equals('foo')); |
| 238 } | 238 } |
| 239 buildCounterCommand--; | 239 buildCounterCommand--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 core.int buildCounterComplianceRule = 0; | 242 core.int buildCounterComplianceRule = 0; |
| 243 buildComplianceRule() { | 243 buildComplianceRule() { |
| 244 var o = new api.ComplianceRule(); | 244 var o = new api.ComplianceRule(); |
| 245 buildCounterComplianceRule++; | 245 buildCounterComplianceRule++; |
| 246 if (buildCounterComplianceRule < 3) { | 246 if (buildCounterComplianceRule < 3) { |
| 247 o.apiLevelCondition = buildApiLevelCondition(); | 247 o.apiLevelCondition = buildApiLevelCondition(); |
| 248 o.disableApps = true; | 248 o.disableApps = true; |
| 249 o.nonComplianceDetailCondition = buildNonComplianceDetailCondition(); | 249 o.nonComplianceDetailCondition = buildNonComplianceDetailCondition(); |
| 250 } | 250 } |
| 251 buildCounterComplianceRule--; | 251 buildCounterComplianceRule--; |
| 252 return o; | 252 return o; |
| 253 } | 253 } |
| 254 | 254 |
| 255 checkComplianceRule(api.ComplianceRule o) { | 255 checkComplianceRule(api.ComplianceRule o) { |
| 256 buildCounterComplianceRule++; | 256 buildCounterComplianceRule++; |
| 257 if (buildCounterComplianceRule < 3) { | 257 if (buildCounterComplianceRule < 3) { |
| 258 checkApiLevelCondition(o.apiLevelCondition); | 258 checkApiLevelCondition(o.apiLevelCondition); |
| 259 unittest.expect(o.disableApps, unittest.isTrue); | 259 unittest.expect(o.disableApps, unittest.isTrue); |
| 260 checkNonComplianceDetailCondition(o.nonComplianceDetailCondition); | 260 checkNonComplianceDetailCondition(o.nonComplianceDetailCondition); |
| 261 } | 261 } |
| 262 buildCounterComplianceRule--; | 262 buildCounterComplianceRule--; |
| 263 } | 263 } |
| 264 | 264 |
| 265 buildUnnamed1547() { | 265 buildUnnamed1564() { |
| 266 var o = new core.List<api.Display>(); | 266 var o = new core.List<api.Display>(); |
| 267 o.add(buildDisplay()); | 267 o.add(buildDisplay()); |
| 268 o.add(buildDisplay()); | 268 o.add(buildDisplay()); |
| 269 return o; | 269 return o; |
| 270 } | 270 } |
| 271 | 271 |
| 272 checkUnnamed1547(core.List<api.Display> o) { | 272 checkUnnamed1564(core.List<api.Display> o) { |
| 273 unittest.expect(o, unittest.hasLength(2)); | 273 unittest.expect(o, unittest.hasLength(2)); |
| 274 checkDisplay(o[0]); | 274 checkDisplay(o[0]); |
| 275 checkDisplay(o[1]); | 275 checkDisplay(o[1]); |
| 276 } | 276 } |
| 277 | 277 |
| 278 buildUnnamed1548() { | 278 buildUnnamed1565() { |
| 279 var o = new core.List<api.HardwareStatus>(); | 279 var o = new core.List<api.HardwareStatus>(); |
| 280 o.add(buildHardwareStatus()); | 280 o.add(buildHardwareStatus()); |
| 281 o.add(buildHardwareStatus()); | 281 o.add(buildHardwareStatus()); |
| 282 return o; | 282 return o; |
| 283 } | 283 } |
| 284 | 284 |
| 285 checkUnnamed1548(core.List<api.HardwareStatus> o) { | 285 checkUnnamed1565(core.List<api.HardwareStatus> o) { |
| 286 unittest.expect(o, unittest.hasLength(2)); | 286 unittest.expect(o, unittest.hasLength(2)); |
| 287 checkHardwareStatus(o[0]); | 287 checkHardwareStatus(o[0]); |
| 288 checkHardwareStatus(o[1]); | 288 checkHardwareStatus(o[1]); |
| 289 } | 289 } |
| 290 | 290 |
| 291 buildUnnamed1549() { | 291 buildUnnamed1566() { |
| 292 var o = new core.List<api.MemoryEvent>(); | 292 var o = new core.List<api.MemoryEvent>(); |
| 293 o.add(buildMemoryEvent()); | 293 o.add(buildMemoryEvent()); |
| 294 o.add(buildMemoryEvent()); | 294 o.add(buildMemoryEvent()); |
| 295 return o; | 295 return o; |
| 296 } | 296 } |
| 297 | 297 |
| 298 checkUnnamed1549(core.List<api.MemoryEvent> o) { | 298 checkUnnamed1566(core.List<api.MemoryEvent> o) { |
| 299 unittest.expect(o, unittest.hasLength(2)); | 299 unittest.expect(o, unittest.hasLength(2)); |
| 300 checkMemoryEvent(o[0]); | 300 checkMemoryEvent(o[0]); |
| 301 checkMemoryEvent(o[1]); | 301 checkMemoryEvent(o[1]); |
| 302 } | 302 } |
| 303 | 303 |
| 304 buildUnnamed1550() { | 304 buildUnnamed1567() { |
| 305 var o = new core.List<api.NonComplianceDetail>(); | 305 var o = new core.List<api.NonComplianceDetail>(); |
| 306 o.add(buildNonComplianceDetail()); | 306 o.add(buildNonComplianceDetail()); |
| 307 o.add(buildNonComplianceDetail()); | 307 o.add(buildNonComplianceDetail()); |
| 308 return o; | 308 return o; |
| 309 } | 309 } |
| 310 | 310 |
| 311 checkUnnamed1550(core.List<api.NonComplianceDetail> o) { | 311 checkUnnamed1567(core.List<api.NonComplianceDetail> o) { |
| 312 unittest.expect(o, unittest.hasLength(2)); | 312 unittest.expect(o, unittest.hasLength(2)); |
| 313 checkNonComplianceDetail(o[0]); | 313 checkNonComplianceDetail(o[0]); |
| 314 checkNonComplianceDetail(o[1]); | 314 checkNonComplianceDetail(o[1]); |
| 315 } | 315 } |
| 316 | 316 |
| 317 buildUnnamed1551() { | 317 buildUnnamed1568() { |
| 318 var o = new core.List<api.PowerManagementEvent>(); | 318 var o = new core.List<api.PowerManagementEvent>(); |
| 319 o.add(buildPowerManagementEvent()); | 319 o.add(buildPowerManagementEvent()); |
| 320 o.add(buildPowerManagementEvent()); | 320 o.add(buildPowerManagementEvent()); |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkUnnamed1551(core.List<api.PowerManagementEvent> o) { | 324 checkUnnamed1568(core.List<api.PowerManagementEvent> o) { |
| 325 unittest.expect(o, unittest.hasLength(2)); | 325 unittest.expect(o, unittest.hasLength(2)); |
| 326 checkPowerManagementEvent(o[0]); | 326 checkPowerManagementEvent(o[0]); |
| 327 checkPowerManagementEvent(o[1]); | 327 checkPowerManagementEvent(o[1]); |
| 328 } | 328 } |
| 329 | 329 |
| 330 buildUnnamed1552() { | 330 buildUnnamed1569() { |
| 331 var o = new core.List<core.String>(); | 331 var o = new core.List<core.String>(); |
| 332 o.add("foo"); | 332 o.add("foo"); |
| 333 o.add("foo"); | 333 o.add("foo"); |
| 334 return o; | 334 return o; |
| 335 } | 335 } |
| 336 | 336 |
| 337 checkUnnamed1552(core.List<core.String> o) { | 337 checkUnnamed1569(core.List<core.String> o) { |
| 338 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
| 339 unittest.expect(o[0], unittest.equals('foo')); | 339 unittest.expect(o[0], unittest.equals('foo')); |
| 340 unittest.expect(o[1], unittest.equals('foo')); | 340 unittest.expect(o[1], unittest.equals('foo')); |
| 341 } | 341 } |
| 342 | 342 |
| 343 core.int buildCounterDevice = 0; | 343 core.int buildCounterDevice = 0; |
| 344 buildDevice() { | 344 buildDevice() { |
| 345 var o = new api.Device(); | 345 var o = new api.Device(); |
| 346 buildCounterDevice++; | 346 buildCounterDevice++; |
| 347 if (buildCounterDevice < 3) { | 347 if (buildCounterDevice < 3) { |
| 348 o.apiLevel = 42; | 348 o.apiLevel = 42; |
| 349 o.appliedPolicyName = "foo"; | 349 o.appliedPolicyName = "foo"; |
| 350 o.appliedPolicyVersion = "foo"; | 350 o.appliedPolicyVersion = "foo"; |
| 351 o.appliedState = "foo"; | 351 o.appliedState = "foo"; |
| 352 o.disabledReason = buildUserFacingMessage(); | 352 o.disabledReason = buildUserFacingMessage(); |
| 353 o.displays = buildUnnamed1547(); | 353 o.displays = buildUnnamed1564(); |
| 354 o.enrollmentTime = "foo"; | 354 o.enrollmentTime = "foo"; |
| 355 o.enrollmentTokenData = "foo"; | 355 o.enrollmentTokenData = "foo"; |
| 356 o.enrollmentTokenName = "foo"; | 356 o.enrollmentTokenName = "foo"; |
| 357 o.hardwareInfo = buildHardwareInfo(); | 357 o.hardwareInfo = buildHardwareInfo(); |
| 358 o.hardwareStatusSamples = buildUnnamed1548(); | 358 o.hardwareStatusSamples = buildUnnamed1565(); |
| 359 o.lastPolicyComplianceReportTime = "foo"; | 359 o.lastPolicyComplianceReportTime = "foo"; |
| 360 o.lastPolicySyncTime = "foo"; | 360 o.lastPolicySyncTime = "foo"; |
| 361 o.lastStatusReportTime = "foo"; | 361 o.lastStatusReportTime = "foo"; |
| 362 o.memoryEvents = buildUnnamed1549(); | 362 o.memoryEvents = buildUnnamed1566(); |
| 363 o.memoryInfo = buildMemoryInfo(); | 363 o.memoryInfo = buildMemoryInfo(); |
| 364 o.name = "foo"; | 364 o.name = "foo"; |
| 365 o.networkInfo = buildNetworkInfo(); | 365 o.networkInfo = buildNetworkInfo(); |
| 366 o.nonComplianceDetails = buildUnnamed1550(); | 366 o.nonComplianceDetails = buildUnnamed1567(); |
| 367 o.policyCompliant = true; | 367 o.policyCompliant = true; |
| 368 o.policyName = "foo"; | 368 o.policyName = "foo"; |
| 369 o.powerManagementEvents = buildUnnamed1551(); | 369 o.powerManagementEvents = buildUnnamed1568(); |
| 370 o.previousDeviceNames = buildUnnamed1552(); | 370 o.previousDeviceNames = buildUnnamed1569(); |
| 371 o.softwareInfo = buildSoftwareInfo(); | 371 o.softwareInfo = buildSoftwareInfo(); |
| 372 o.state = "foo"; | 372 o.state = "foo"; |
| 373 o.userName = "foo"; | 373 o.userName = "foo"; |
| 374 } | 374 } |
| 375 buildCounterDevice--; | 375 buildCounterDevice--; |
| 376 return o; | 376 return o; |
| 377 } | 377 } |
| 378 | 378 |
| 379 checkDevice(api.Device o) { | 379 checkDevice(api.Device o) { |
| 380 buildCounterDevice++; | 380 buildCounterDevice++; |
| 381 if (buildCounterDevice < 3) { | 381 if (buildCounterDevice < 3) { |
| 382 unittest.expect(o.apiLevel, unittest.equals(42)); | 382 unittest.expect(o.apiLevel, unittest.equals(42)); |
| 383 unittest.expect(o.appliedPolicyName, unittest.equals('foo')); | 383 unittest.expect(o.appliedPolicyName, unittest.equals('foo')); |
| 384 unittest.expect(o.appliedPolicyVersion, unittest.equals('foo')); | 384 unittest.expect(o.appliedPolicyVersion, unittest.equals('foo')); |
| 385 unittest.expect(o.appliedState, unittest.equals('foo')); | 385 unittest.expect(o.appliedState, unittest.equals('foo')); |
| 386 checkUserFacingMessage(o.disabledReason); | 386 checkUserFacingMessage(o.disabledReason); |
| 387 checkUnnamed1547(o.displays); | 387 checkUnnamed1564(o.displays); |
| 388 unittest.expect(o.enrollmentTime, unittest.equals('foo')); | 388 unittest.expect(o.enrollmentTime, unittest.equals('foo')); |
| 389 unittest.expect(o.enrollmentTokenData, unittest.equals('foo')); | 389 unittest.expect(o.enrollmentTokenData, unittest.equals('foo')); |
| 390 unittest.expect(o.enrollmentTokenName, unittest.equals('foo')); | 390 unittest.expect(o.enrollmentTokenName, unittest.equals('foo')); |
| 391 checkHardwareInfo(o.hardwareInfo); | 391 checkHardwareInfo(o.hardwareInfo); |
| 392 checkUnnamed1548(o.hardwareStatusSamples); | 392 checkUnnamed1565(o.hardwareStatusSamples); |
| 393 unittest.expect(o.lastPolicyComplianceReportTime, unittest.equals('foo')); | 393 unittest.expect(o.lastPolicyComplianceReportTime, unittest.equals('foo')); |
| 394 unittest.expect(o.lastPolicySyncTime, unittest.equals('foo')); | 394 unittest.expect(o.lastPolicySyncTime, unittest.equals('foo')); |
| 395 unittest.expect(o.lastStatusReportTime, unittest.equals('foo')); | 395 unittest.expect(o.lastStatusReportTime, unittest.equals('foo')); |
| 396 checkUnnamed1549(o.memoryEvents); | 396 checkUnnamed1566(o.memoryEvents); |
| 397 checkMemoryInfo(o.memoryInfo); | 397 checkMemoryInfo(o.memoryInfo); |
| 398 unittest.expect(o.name, unittest.equals('foo')); | 398 unittest.expect(o.name, unittest.equals('foo')); |
| 399 checkNetworkInfo(o.networkInfo); | 399 checkNetworkInfo(o.networkInfo); |
| 400 checkUnnamed1550(o.nonComplianceDetails); | 400 checkUnnamed1567(o.nonComplianceDetails); |
| 401 unittest.expect(o.policyCompliant, unittest.isTrue); | 401 unittest.expect(o.policyCompliant, unittest.isTrue); |
| 402 unittest.expect(o.policyName, unittest.equals('foo')); | 402 unittest.expect(o.policyName, unittest.equals('foo')); |
| 403 checkUnnamed1551(o.powerManagementEvents); | 403 checkUnnamed1568(o.powerManagementEvents); |
| 404 checkUnnamed1552(o.previousDeviceNames); | 404 checkUnnamed1569(o.previousDeviceNames); |
| 405 checkSoftwareInfo(o.softwareInfo); | 405 checkSoftwareInfo(o.softwareInfo); |
| 406 unittest.expect(o.state, unittest.equals('foo')); | 406 unittest.expect(o.state, unittest.equals('foo')); |
| 407 unittest.expect(o.userName, unittest.equals('foo')); | 407 unittest.expect(o.userName, unittest.equals('foo')); |
| 408 } | 408 } |
| 409 buildCounterDevice--; | 409 buildCounterDevice--; |
| 410 } | 410 } |
| 411 | 411 |
| 412 core.int buildCounterDisplay = 0; | 412 core.int buildCounterDisplay = 0; |
| 413 buildDisplay() { | 413 buildDisplay() { |
| 414 var o = new api.Display(); | 414 var o = new api.Display(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 unittest.expect(o.duration, unittest.equals('foo')); | 481 unittest.expect(o.duration, unittest.equals('foo')); |
| 482 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); | 482 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); |
| 483 unittest.expect(o.name, unittest.equals('foo')); | 483 unittest.expect(o.name, unittest.equals('foo')); |
| 484 unittest.expect(o.policyName, unittest.equals('foo')); | 484 unittest.expect(o.policyName, unittest.equals('foo')); |
| 485 unittest.expect(o.qrCode, unittest.equals('foo')); | 485 unittest.expect(o.qrCode, unittest.equals('foo')); |
| 486 unittest.expect(o.value, unittest.equals('foo')); | 486 unittest.expect(o.value, unittest.equals('foo')); |
| 487 } | 487 } |
| 488 buildCounterEnrollmentToken--; | 488 buildCounterEnrollmentToken--; |
| 489 } | 489 } |
| 490 | 490 |
| 491 buildUnnamed1553() { | 491 buildUnnamed1570() { |
| 492 var o = new core.List<core.String>(); | 492 var o = new core.List<core.String>(); |
| 493 o.add("foo"); | 493 o.add("foo"); |
| 494 o.add("foo"); | 494 o.add("foo"); |
| 495 return o; | 495 return o; |
| 496 } | 496 } |
| 497 | 497 |
| 498 checkUnnamed1553(core.List<core.String> o) { | 498 checkUnnamed1570(core.List<core.String> o) { |
| 499 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
| 500 unittest.expect(o[0], unittest.equals('foo')); | 500 unittest.expect(o[0], unittest.equals('foo')); |
| 501 unittest.expect(o[1], unittest.equals('foo')); | 501 unittest.expect(o[1], unittest.equals('foo')); |
| 502 } | 502 } |
| 503 | 503 |
| 504 core.int buildCounterEnterprise = 0; | 504 core.int buildCounterEnterprise = 0; |
| 505 buildEnterprise() { | 505 buildEnterprise() { |
| 506 var o = new api.Enterprise(); | 506 var o = new api.Enterprise(); |
| 507 buildCounterEnterprise++; | 507 buildCounterEnterprise++; |
| 508 if (buildCounterEnterprise < 3) { | 508 if (buildCounterEnterprise < 3) { |
| 509 o.appAutoApprovalEnabled = true; | 509 o.appAutoApprovalEnabled = true; |
| 510 o.enabledNotificationTypes = buildUnnamed1553(); | 510 o.enabledNotificationTypes = buildUnnamed1570(); |
| 511 o.enterpriseDisplayName = "foo"; | 511 o.enterpriseDisplayName = "foo"; |
| 512 o.logo = buildExternalData(); | 512 o.logo = buildExternalData(); |
| 513 o.name = "foo"; | 513 o.name = "foo"; |
| 514 o.primaryColor = 42; | 514 o.primaryColor = 42; |
| 515 o.pubsubTopic = "foo"; | 515 o.pubsubTopic = "foo"; |
| 516 } | 516 } |
| 517 buildCounterEnterprise--; | 517 buildCounterEnterprise--; |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkEnterprise(api.Enterprise o) { | 521 checkEnterprise(api.Enterprise o) { |
| 522 buildCounterEnterprise++; | 522 buildCounterEnterprise++; |
| 523 if (buildCounterEnterprise < 3) { | 523 if (buildCounterEnterprise < 3) { |
| 524 unittest.expect(o.appAutoApprovalEnabled, unittest.isTrue); | 524 unittest.expect(o.appAutoApprovalEnabled, unittest.isTrue); |
| 525 checkUnnamed1553(o.enabledNotificationTypes); | 525 checkUnnamed1570(o.enabledNotificationTypes); |
| 526 unittest.expect(o.enterpriseDisplayName, unittest.equals('foo')); | 526 unittest.expect(o.enterpriseDisplayName, unittest.equals('foo')); |
| 527 checkExternalData(o.logo); | 527 checkExternalData(o.logo); |
| 528 unittest.expect(o.name, unittest.equals('foo')); | 528 unittest.expect(o.name, unittest.equals('foo')); |
| 529 unittest.expect(o.primaryColor, unittest.equals(42)); | 529 unittest.expect(o.primaryColor, unittest.equals(42)); |
| 530 unittest.expect(o.pubsubTopic, unittest.equals('foo')); | 530 unittest.expect(o.pubsubTopic, unittest.equals('foo')); |
| 531 } | 531 } |
| 532 buildCounterEnterprise--; | 532 buildCounterEnterprise--; |
| 533 } | 533 } |
| 534 | 534 |
| 535 core.int buildCounterExternalData = 0; | 535 core.int buildCounterExternalData = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 546 | 546 |
| 547 checkExternalData(api.ExternalData o) { | 547 checkExternalData(api.ExternalData o) { |
| 548 buildCounterExternalData++; | 548 buildCounterExternalData++; |
| 549 if (buildCounterExternalData < 3) { | 549 if (buildCounterExternalData < 3) { |
| 550 unittest.expect(o.sha256Hash, unittest.equals('foo')); | 550 unittest.expect(o.sha256Hash, unittest.equals('foo')); |
| 551 unittest.expect(o.url, unittest.equals('foo')); | 551 unittest.expect(o.url, unittest.equals('foo')); |
| 552 } | 552 } |
| 553 buildCounterExternalData--; | 553 buildCounterExternalData--; |
| 554 } | 554 } |
| 555 | 555 |
| 556 buildUnnamed1554() { | 556 buildUnnamed1571() { |
| 557 var o = new core.List<core.double>(); | 557 var o = new core.List<core.double>(); |
| 558 o.add(42.0); | 558 o.add(42.0); |
| 559 o.add(42.0); | 559 o.add(42.0); |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkUnnamed1554(core.List<core.double> o) { | 563 checkUnnamed1571(core.List<core.double> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 unittest.expect(o[0], unittest.equals(42.0)); | 565 unittest.expect(o[0], unittest.equals(42.0)); |
| 566 unittest.expect(o[1], unittest.equals(42.0)); | 566 unittest.expect(o[1], unittest.equals(42.0)); |
| 567 } | 567 } |
| 568 | 568 |
| 569 buildUnnamed1555() { | 569 buildUnnamed1572() { |
| 570 var o = new core.List<core.double>(); | 570 var o = new core.List<core.double>(); |
| 571 o.add(42.0); | 571 o.add(42.0); |
| 572 o.add(42.0); | 572 o.add(42.0); |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkUnnamed1555(core.List<core.double> o) { | 576 checkUnnamed1572(core.List<core.double> o) { |
| 577 unittest.expect(o, unittest.hasLength(2)); | 577 unittest.expect(o, unittest.hasLength(2)); |
| 578 unittest.expect(o[0], unittest.equals(42.0)); | 578 unittest.expect(o[0], unittest.equals(42.0)); |
| 579 unittest.expect(o[1], unittest.equals(42.0)); | 579 unittest.expect(o[1], unittest.equals(42.0)); |
| 580 } | 580 } |
| 581 | 581 |
| 582 buildUnnamed1556() { | 582 buildUnnamed1573() { |
| 583 var o = new core.List<core.double>(); | 583 var o = new core.List<core.double>(); |
| 584 o.add(42.0); | 584 o.add(42.0); |
| 585 o.add(42.0); | 585 o.add(42.0); |
| 586 return o; | 586 return o; |
| 587 } | 587 } |
| 588 | 588 |
| 589 checkUnnamed1556(core.List<core.double> o) { | 589 checkUnnamed1573(core.List<core.double> o) { |
| 590 unittest.expect(o, unittest.hasLength(2)); | 590 unittest.expect(o, unittest.hasLength(2)); |
| 591 unittest.expect(o[0], unittest.equals(42.0)); | 591 unittest.expect(o[0], unittest.equals(42.0)); |
| 592 unittest.expect(o[1], unittest.equals(42.0)); | 592 unittest.expect(o[1], unittest.equals(42.0)); |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed1557() { | 595 buildUnnamed1574() { |
| 596 var o = new core.List<core.double>(); | 596 var o = new core.List<core.double>(); |
| 597 o.add(42.0); | 597 o.add(42.0); |
| 598 o.add(42.0); | 598 o.add(42.0); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed1557(core.List<core.double> o) { | 602 checkUnnamed1574(core.List<core.double> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 unittest.expect(o[0], unittest.equals(42.0)); | 604 unittest.expect(o[0], unittest.equals(42.0)); |
| 605 unittest.expect(o[1], unittest.equals(42.0)); | 605 unittest.expect(o[1], unittest.equals(42.0)); |
| 606 } | 606 } |
| 607 | 607 |
| 608 buildUnnamed1558() { | 608 buildUnnamed1575() { |
| 609 var o = new core.List<core.double>(); | 609 var o = new core.List<core.double>(); |
| 610 o.add(42.0); | 610 o.add(42.0); |
| 611 o.add(42.0); | 611 o.add(42.0); |
| 612 return o; | 612 return o; |
| 613 } | 613 } |
| 614 | 614 |
| 615 checkUnnamed1558(core.List<core.double> o) { | 615 checkUnnamed1575(core.List<core.double> o) { |
| 616 unittest.expect(o, unittest.hasLength(2)); | 616 unittest.expect(o, unittest.hasLength(2)); |
| 617 unittest.expect(o[0], unittest.equals(42.0)); | 617 unittest.expect(o[0], unittest.equals(42.0)); |
| 618 unittest.expect(o[1], unittest.equals(42.0)); | 618 unittest.expect(o[1], unittest.equals(42.0)); |
| 619 } | 619 } |
| 620 | 620 |
| 621 buildUnnamed1559() { | 621 buildUnnamed1576() { |
| 622 var o = new core.List<core.double>(); | 622 var o = new core.List<core.double>(); |
| 623 o.add(42.0); | 623 o.add(42.0); |
| 624 o.add(42.0); | 624 o.add(42.0); |
| 625 return o; | 625 return o; |
| 626 } | 626 } |
| 627 | 627 |
| 628 checkUnnamed1559(core.List<core.double> o) { | 628 checkUnnamed1576(core.List<core.double> o) { |
| 629 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
| 630 unittest.expect(o[0], unittest.equals(42.0)); | 630 unittest.expect(o[0], unittest.equals(42.0)); |
| 631 unittest.expect(o[1], unittest.equals(42.0)); | 631 unittest.expect(o[1], unittest.equals(42.0)); |
| 632 } | 632 } |
| 633 | 633 |
| 634 buildUnnamed1560() { | 634 buildUnnamed1577() { |
| 635 var o = new core.List<core.double>(); | 635 var o = new core.List<core.double>(); |
| 636 o.add(42.0); | 636 o.add(42.0); |
| 637 o.add(42.0); | 637 o.add(42.0); |
| 638 return o; | 638 return o; |
| 639 } | 639 } |
| 640 | 640 |
| 641 checkUnnamed1560(core.List<core.double> o) { | 641 checkUnnamed1577(core.List<core.double> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
| 643 unittest.expect(o[0], unittest.equals(42.0)); | 643 unittest.expect(o[0], unittest.equals(42.0)); |
| 644 unittest.expect(o[1], unittest.equals(42.0)); | 644 unittest.expect(o[1], unittest.equals(42.0)); |
| 645 } | 645 } |
| 646 | 646 |
| 647 buildUnnamed1561() { | 647 buildUnnamed1578() { |
| 648 var o = new core.List<core.double>(); | 648 var o = new core.List<core.double>(); |
| 649 o.add(42.0); | 649 o.add(42.0); |
| 650 o.add(42.0); | 650 o.add(42.0); |
| 651 return o; | 651 return o; |
| 652 } | 652 } |
| 653 | 653 |
| 654 checkUnnamed1561(core.List<core.double> o) { | 654 checkUnnamed1578(core.List<core.double> o) { |
| 655 unittest.expect(o, unittest.hasLength(2)); | 655 unittest.expect(o, unittest.hasLength(2)); |
| 656 unittest.expect(o[0], unittest.equals(42.0)); | 656 unittest.expect(o[0], unittest.equals(42.0)); |
| 657 unittest.expect(o[1], unittest.equals(42.0)); | 657 unittest.expect(o[1], unittest.equals(42.0)); |
| 658 } | 658 } |
| 659 | 659 |
| 660 core.int buildCounterHardwareInfo = 0; | 660 core.int buildCounterHardwareInfo = 0; |
| 661 buildHardwareInfo() { | 661 buildHardwareInfo() { |
| 662 var o = new api.HardwareInfo(); | 662 var o = new api.HardwareInfo(); |
| 663 buildCounterHardwareInfo++; | 663 buildCounterHardwareInfo++; |
| 664 if (buildCounterHardwareInfo < 3) { | 664 if (buildCounterHardwareInfo < 3) { |
| 665 o.batteryShutdownTemperatures = buildUnnamed1554(); | 665 o.batteryShutdownTemperatures = buildUnnamed1571(); |
| 666 o.batteryThrottlingTemperatures = buildUnnamed1555(); | 666 o.batteryThrottlingTemperatures = buildUnnamed1572(); |
| 667 o.brand = "foo"; | 667 o.brand = "foo"; |
| 668 o.cpuShutdownTemperatures = buildUnnamed1556(); | 668 o.cpuShutdownTemperatures = buildUnnamed1573(); |
| 669 o.cpuThrottlingTemperatures = buildUnnamed1557(); | 669 o.cpuThrottlingTemperatures = buildUnnamed1574(); |
| 670 o.deviceBasebandVersion = "foo"; | 670 o.deviceBasebandVersion = "foo"; |
| 671 o.gpuShutdownTemperatures = buildUnnamed1558(); | 671 o.gpuShutdownTemperatures = buildUnnamed1575(); |
| 672 o.gpuThrottlingTemperatures = buildUnnamed1559(); | 672 o.gpuThrottlingTemperatures = buildUnnamed1576(); |
| 673 o.hardware = "foo"; | 673 o.hardware = "foo"; |
| 674 o.manufacturer = "foo"; | 674 o.manufacturer = "foo"; |
| 675 o.model = "foo"; | 675 o.model = "foo"; |
| 676 o.serialNumber = "foo"; | 676 o.serialNumber = "foo"; |
| 677 o.skinShutdownTemperatures = buildUnnamed1560(); | 677 o.skinShutdownTemperatures = buildUnnamed1577(); |
| 678 o.skinThrottlingTemperatures = buildUnnamed1561(); | 678 o.skinThrottlingTemperatures = buildUnnamed1578(); |
| 679 } | 679 } |
| 680 buildCounterHardwareInfo--; | 680 buildCounterHardwareInfo--; |
| 681 return o; | 681 return o; |
| 682 } | 682 } |
| 683 | 683 |
| 684 checkHardwareInfo(api.HardwareInfo o) { | 684 checkHardwareInfo(api.HardwareInfo o) { |
| 685 buildCounterHardwareInfo++; | 685 buildCounterHardwareInfo++; |
| 686 if (buildCounterHardwareInfo < 3) { | 686 if (buildCounterHardwareInfo < 3) { |
| 687 checkUnnamed1554(o.batteryShutdownTemperatures); | 687 checkUnnamed1571(o.batteryShutdownTemperatures); |
| 688 checkUnnamed1555(o.batteryThrottlingTemperatures); | 688 checkUnnamed1572(o.batteryThrottlingTemperatures); |
| 689 unittest.expect(o.brand, unittest.equals('foo')); | 689 unittest.expect(o.brand, unittest.equals('foo')); |
| 690 checkUnnamed1556(o.cpuShutdownTemperatures); | 690 checkUnnamed1573(o.cpuShutdownTemperatures); |
| 691 checkUnnamed1557(o.cpuThrottlingTemperatures); | 691 checkUnnamed1574(o.cpuThrottlingTemperatures); |
| 692 unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); | 692 unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); |
| 693 checkUnnamed1558(o.gpuShutdownTemperatures); | 693 checkUnnamed1575(o.gpuShutdownTemperatures); |
| 694 checkUnnamed1559(o.gpuThrottlingTemperatures); | 694 checkUnnamed1576(o.gpuThrottlingTemperatures); |
| 695 unittest.expect(o.hardware, unittest.equals('foo')); | 695 unittest.expect(o.hardware, unittest.equals('foo')); |
| 696 unittest.expect(o.manufacturer, unittest.equals('foo')); | 696 unittest.expect(o.manufacturer, unittest.equals('foo')); |
| 697 unittest.expect(o.model, unittest.equals('foo')); | 697 unittest.expect(o.model, unittest.equals('foo')); |
| 698 unittest.expect(o.serialNumber, unittest.equals('foo')); | 698 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 699 checkUnnamed1560(o.skinShutdownTemperatures); | 699 checkUnnamed1577(o.skinShutdownTemperatures); |
| 700 checkUnnamed1561(o.skinThrottlingTemperatures); | 700 checkUnnamed1578(o.skinThrottlingTemperatures); |
| 701 } | 701 } |
| 702 buildCounterHardwareInfo--; | 702 buildCounterHardwareInfo--; |
| 703 } | 703 } |
| 704 | 704 |
| 705 buildUnnamed1562() { | 705 buildUnnamed1579() { |
| 706 var o = new core.List<core.double>(); | 706 var o = new core.List<core.double>(); |
| 707 o.add(42.0); | 707 o.add(42.0); |
| 708 o.add(42.0); | 708 o.add(42.0); |
| 709 return o; | 709 return o; |
| 710 } | 710 } |
| 711 | 711 |
| 712 checkUnnamed1562(core.List<core.double> o) { | 712 checkUnnamed1579(core.List<core.double> o) { |
| 713 unittest.expect(o, unittest.hasLength(2)); | 713 unittest.expect(o, unittest.hasLength(2)); |
| 714 unittest.expect(o[0], unittest.equals(42.0)); | 714 unittest.expect(o[0], unittest.equals(42.0)); |
| 715 unittest.expect(o[1], unittest.equals(42.0)); | 715 unittest.expect(o[1], unittest.equals(42.0)); |
| 716 } | 716 } |
| 717 | 717 |
| 718 buildUnnamed1563() { | 718 buildUnnamed1580() { |
| 719 var o = new core.List<core.double>(); | 719 var o = new core.List<core.double>(); |
| 720 o.add(42.0); | 720 o.add(42.0); |
| 721 o.add(42.0); | 721 o.add(42.0); |
| 722 return o; | 722 return o; |
| 723 } | 723 } |
| 724 | 724 |
| 725 checkUnnamed1563(core.List<core.double> o) { | 725 checkUnnamed1580(core.List<core.double> o) { |
| 726 unittest.expect(o, unittest.hasLength(2)); | 726 unittest.expect(o, unittest.hasLength(2)); |
| 727 unittest.expect(o[0], unittest.equals(42.0)); | 727 unittest.expect(o[0], unittest.equals(42.0)); |
| 728 unittest.expect(o[1], unittest.equals(42.0)); | 728 unittest.expect(o[1], unittest.equals(42.0)); |
| 729 } | 729 } |
| 730 | 730 |
| 731 buildUnnamed1564() { | 731 buildUnnamed1581() { |
| 732 var o = new core.List<core.double>(); | 732 var o = new core.List<core.double>(); |
| 733 o.add(42.0); | 733 o.add(42.0); |
| 734 o.add(42.0); | 734 o.add(42.0); |
| 735 return o; | 735 return o; |
| 736 } | 736 } |
| 737 | 737 |
| 738 checkUnnamed1564(core.List<core.double> o) { | 738 checkUnnamed1581(core.List<core.double> o) { |
| 739 unittest.expect(o, unittest.hasLength(2)); | 739 unittest.expect(o, unittest.hasLength(2)); |
| 740 unittest.expect(o[0], unittest.equals(42.0)); | 740 unittest.expect(o[0], unittest.equals(42.0)); |
| 741 unittest.expect(o[1], unittest.equals(42.0)); | 741 unittest.expect(o[1], unittest.equals(42.0)); |
| 742 } | 742 } |
| 743 | 743 |
| 744 buildUnnamed1565() { | 744 buildUnnamed1582() { |
| 745 var o = new core.List<core.double>(); | 745 var o = new core.List<core.double>(); |
| 746 o.add(42.0); | 746 o.add(42.0); |
| 747 o.add(42.0); | 747 o.add(42.0); |
| 748 return o; | 748 return o; |
| 749 } | 749 } |
| 750 | 750 |
| 751 checkUnnamed1565(core.List<core.double> o) { | 751 checkUnnamed1582(core.List<core.double> o) { |
| 752 unittest.expect(o, unittest.hasLength(2)); | 752 unittest.expect(o, unittest.hasLength(2)); |
| 753 unittest.expect(o[0], unittest.equals(42.0)); | 753 unittest.expect(o[0], unittest.equals(42.0)); |
| 754 unittest.expect(o[1], unittest.equals(42.0)); | 754 unittest.expect(o[1], unittest.equals(42.0)); |
| 755 } | 755 } |
| 756 | 756 |
| 757 buildUnnamed1566() { | 757 buildUnnamed1583() { |
| 758 var o = new core.List<core.double>(); | 758 var o = new core.List<core.double>(); |
| 759 o.add(42.0); | 759 o.add(42.0); |
| 760 o.add(42.0); | 760 o.add(42.0); |
| 761 return o; | 761 return o; |
| 762 } | 762 } |
| 763 | 763 |
| 764 checkUnnamed1566(core.List<core.double> o) { | 764 checkUnnamed1583(core.List<core.double> o) { |
| 765 unittest.expect(o, unittest.hasLength(2)); | 765 unittest.expect(o, unittest.hasLength(2)); |
| 766 unittest.expect(o[0], unittest.equals(42.0)); | 766 unittest.expect(o[0], unittest.equals(42.0)); |
| 767 unittest.expect(o[1], unittest.equals(42.0)); | 767 unittest.expect(o[1], unittest.equals(42.0)); |
| 768 } | 768 } |
| 769 | 769 |
| 770 buildUnnamed1567() { | 770 buildUnnamed1584() { |
| 771 var o = new core.List<core.double>(); | 771 var o = new core.List<core.double>(); |
| 772 o.add(42.0); | 772 o.add(42.0); |
| 773 o.add(42.0); | 773 o.add(42.0); |
| 774 return o; | 774 return o; |
| 775 } | 775 } |
| 776 | 776 |
| 777 checkUnnamed1567(core.List<core.double> o) { | 777 checkUnnamed1584(core.List<core.double> o) { |
| 778 unittest.expect(o, unittest.hasLength(2)); | 778 unittest.expect(o, unittest.hasLength(2)); |
| 779 unittest.expect(o[0], unittest.equals(42.0)); | 779 unittest.expect(o[0], unittest.equals(42.0)); |
| 780 unittest.expect(o[1], unittest.equals(42.0)); | 780 unittest.expect(o[1], unittest.equals(42.0)); |
| 781 } | 781 } |
| 782 | 782 |
| 783 core.int buildCounterHardwareStatus = 0; | 783 core.int buildCounterHardwareStatus = 0; |
| 784 buildHardwareStatus() { | 784 buildHardwareStatus() { |
| 785 var o = new api.HardwareStatus(); | 785 var o = new api.HardwareStatus(); |
| 786 buildCounterHardwareStatus++; | 786 buildCounterHardwareStatus++; |
| 787 if (buildCounterHardwareStatus < 3) { | 787 if (buildCounterHardwareStatus < 3) { |
| 788 o.batteryTemperatures = buildUnnamed1562(); | 788 o.batteryTemperatures = buildUnnamed1579(); |
| 789 o.cpuTemperatures = buildUnnamed1563(); | 789 o.cpuTemperatures = buildUnnamed1580(); |
| 790 o.cpuUsages = buildUnnamed1564(); | 790 o.cpuUsages = buildUnnamed1581(); |
| 791 o.createTime = "foo"; | 791 o.createTime = "foo"; |
| 792 o.fanSpeeds = buildUnnamed1565(); | 792 o.fanSpeeds = buildUnnamed1582(); |
| 793 o.gpuTemperatures = buildUnnamed1566(); | 793 o.gpuTemperatures = buildUnnamed1583(); |
| 794 o.skinTemperatures = buildUnnamed1567(); | 794 o.skinTemperatures = buildUnnamed1584(); |
| 795 } | 795 } |
| 796 buildCounterHardwareStatus--; | 796 buildCounterHardwareStatus--; |
| 797 return o; | 797 return o; |
| 798 } | 798 } |
| 799 | 799 |
| 800 checkHardwareStatus(api.HardwareStatus o) { | 800 checkHardwareStatus(api.HardwareStatus o) { |
| 801 buildCounterHardwareStatus++; | 801 buildCounterHardwareStatus++; |
| 802 if (buildCounterHardwareStatus < 3) { | 802 if (buildCounterHardwareStatus < 3) { |
| 803 checkUnnamed1562(o.batteryTemperatures); | 803 checkUnnamed1579(o.batteryTemperatures); |
| 804 checkUnnamed1563(o.cpuTemperatures); | 804 checkUnnamed1580(o.cpuTemperatures); |
| 805 checkUnnamed1564(o.cpuUsages); | 805 checkUnnamed1581(o.cpuUsages); |
| 806 unittest.expect(o.createTime, unittest.equals('foo')); | 806 unittest.expect(o.createTime, unittest.equals('foo')); |
| 807 checkUnnamed1565(o.fanSpeeds); | 807 checkUnnamed1582(o.fanSpeeds); |
| 808 checkUnnamed1566(o.gpuTemperatures); | 808 checkUnnamed1583(o.gpuTemperatures); |
| 809 checkUnnamed1567(o.skinTemperatures); | 809 checkUnnamed1584(o.skinTemperatures); |
| 810 } | 810 } |
| 811 buildCounterHardwareStatus--; | 811 buildCounterHardwareStatus--; |
| 812 } | 812 } |
| 813 | 813 |
| 814 buildUnnamed1568() { | 814 buildUnnamed1585() { |
| 815 var o = new core.List<api.Device>(); | 815 var o = new core.List<api.Device>(); |
| 816 o.add(buildDevice()); | 816 o.add(buildDevice()); |
| 817 o.add(buildDevice()); | 817 o.add(buildDevice()); |
| 818 return o; | 818 return o; |
| 819 } | 819 } |
| 820 | 820 |
| 821 checkUnnamed1568(core.List<api.Device> o) { | 821 checkUnnamed1585(core.List<api.Device> o) { |
| 822 unittest.expect(o, unittest.hasLength(2)); | 822 unittest.expect(o, unittest.hasLength(2)); |
| 823 checkDevice(o[0]); | 823 checkDevice(o[0]); |
| 824 checkDevice(o[1]); | 824 checkDevice(o[1]); |
| 825 } | 825 } |
| 826 | 826 |
| 827 core.int buildCounterListDevicesResponse = 0; | 827 core.int buildCounterListDevicesResponse = 0; |
| 828 buildListDevicesResponse() { | 828 buildListDevicesResponse() { |
| 829 var o = new api.ListDevicesResponse(); | 829 var o = new api.ListDevicesResponse(); |
| 830 buildCounterListDevicesResponse++; | 830 buildCounterListDevicesResponse++; |
| 831 if (buildCounterListDevicesResponse < 3) { | 831 if (buildCounterListDevicesResponse < 3) { |
| 832 o.devices = buildUnnamed1568(); | 832 o.devices = buildUnnamed1585(); |
| 833 o.nextPageToken = "foo"; | 833 o.nextPageToken = "foo"; |
| 834 } | 834 } |
| 835 buildCounterListDevicesResponse--; | 835 buildCounterListDevicesResponse--; |
| 836 return o; | 836 return o; |
| 837 } | 837 } |
| 838 | 838 |
| 839 checkListDevicesResponse(api.ListDevicesResponse o) { | 839 checkListDevicesResponse(api.ListDevicesResponse o) { |
| 840 buildCounterListDevicesResponse++; | 840 buildCounterListDevicesResponse++; |
| 841 if (buildCounterListDevicesResponse < 3) { | 841 if (buildCounterListDevicesResponse < 3) { |
| 842 checkUnnamed1568(o.devices); | 842 checkUnnamed1585(o.devices); |
| 843 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 843 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 844 } | 844 } |
| 845 buildCounterListDevicesResponse--; | 845 buildCounterListDevicesResponse--; |
| 846 } | 846 } |
| 847 | 847 |
| 848 buildUnnamed1569() { | 848 buildUnnamed1586() { |
| 849 var o = new core.List<api.Operation>(); | 849 var o = new core.List<api.Operation>(); |
| 850 o.add(buildOperation()); | 850 o.add(buildOperation()); |
| 851 o.add(buildOperation()); | 851 o.add(buildOperation()); |
| 852 return o; | 852 return o; |
| 853 } | 853 } |
| 854 | 854 |
| 855 checkUnnamed1569(core.List<api.Operation> o) { | 855 checkUnnamed1586(core.List<api.Operation> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
| 857 checkOperation(o[0]); | 857 checkOperation(o[0]); |
| 858 checkOperation(o[1]); | 858 checkOperation(o[1]); |
| 859 } | 859 } |
| 860 | 860 |
| 861 core.int buildCounterListOperationsResponse = 0; | 861 core.int buildCounterListOperationsResponse = 0; |
| 862 buildListOperationsResponse() { | 862 buildListOperationsResponse() { |
| 863 var o = new api.ListOperationsResponse(); | 863 var o = new api.ListOperationsResponse(); |
| 864 buildCounterListOperationsResponse++; | 864 buildCounterListOperationsResponse++; |
| 865 if (buildCounterListOperationsResponse < 3) { | 865 if (buildCounterListOperationsResponse < 3) { |
| 866 o.nextPageToken = "foo"; | 866 o.nextPageToken = "foo"; |
| 867 o.operations = buildUnnamed1569(); | 867 o.operations = buildUnnamed1586(); |
| 868 } | 868 } |
| 869 buildCounterListOperationsResponse--; | 869 buildCounterListOperationsResponse--; |
| 870 return o; | 870 return o; |
| 871 } | 871 } |
| 872 | 872 |
| 873 checkListOperationsResponse(api.ListOperationsResponse o) { | 873 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 874 buildCounterListOperationsResponse++; | 874 buildCounterListOperationsResponse++; |
| 875 if (buildCounterListOperationsResponse < 3) { | 875 if (buildCounterListOperationsResponse < 3) { |
| 876 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 876 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 877 checkUnnamed1569(o.operations); | 877 checkUnnamed1586(o.operations); |
| 878 } | 878 } |
| 879 buildCounterListOperationsResponse--; | 879 buildCounterListOperationsResponse--; |
| 880 } | 880 } |
| 881 | 881 |
| 882 buildUnnamed1570() { | 882 buildUnnamed1587() { |
| 883 var o = new core.List<api.Policy>(); | 883 var o = new core.List<api.Policy>(); |
| 884 o.add(buildPolicy()); | 884 o.add(buildPolicy()); |
| 885 o.add(buildPolicy()); | 885 o.add(buildPolicy()); |
| 886 return o; | 886 return o; |
| 887 } | 887 } |
| 888 | 888 |
| 889 checkUnnamed1570(core.List<api.Policy> o) { | 889 checkUnnamed1587(core.List<api.Policy> o) { |
| 890 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
| 891 checkPolicy(o[0]); | 891 checkPolicy(o[0]); |
| 892 checkPolicy(o[1]); | 892 checkPolicy(o[1]); |
| 893 } | 893 } |
| 894 | 894 |
| 895 core.int buildCounterListPoliciesResponse = 0; | 895 core.int buildCounterListPoliciesResponse = 0; |
| 896 buildListPoliciesResponse() { | 896 buildListPoliciesResponse() { |
| 897 var o = new api.ListPoliciesResponse(); | 897 var o = new api.ListPoliciesResponse(); |
| 898 buildCounterListPoliciesResponse++; | 898 buildCounterListPoliciesResponse++; |
| 899 if (buildCounterListPoliciesResponse < 3) { | 899 if (buildCounterListPoliciesResponse < 3) { |
| 900 o.nextPageToken = "foo"; | 900 o.nextPageToken = "foo"; |
| 901 o.policies = buildUnnamed1570(); | 901 o.policies = buildUnnamed1587(); |
| 902 } | 902 } |
| 903 buildCounterListPoliciesResponse--; | 903 buildCounterListPoliciesResponse--; |
| 904 return o; | 904 return o; |
| 905 } | 905 } |
| 906 | 906 |
| 907 checkListPoliciesResponse(api.ListPoliciesResponse o) { | 907 checkListPoliciesResponse(api.ListPoliciesResponse o) { |
| 908 buildCounterListPoliciesResponse++; | 908 buildCounterListPoliciesResponse++; |
| 909 if (buildCounterListPoliciesResponse < 3) { | 909 if (buildCounterListPoliciesResponse < 3) { |
| 910 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 910 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 911 checkUnnamed1570(o.policies); | 911 checkUnnamed1587(o.policies); |
| 912 } | 912 } |
| 913 buildCounterListPoliciesResponse--; | 913 buildCounterListPoliciesResponse--; |
| 914 } | 914 } |
| 915 | 915 |
| 916 buildUnnamed1571() { | 916 buildUnnamed1588() { |
| 917 var o = new core.List<api.ManagedPropertyEntry>(); | 917 var o = new core.List<api.ManagedPropertyEntry>(); |
| 918 o.add(buildManagedPropertyEntry()); | 918 o.add(buildManagedPropertyEntry()); |
| 919 o.add(buildManagedPropertyEntry()); | 919 o.add(buildManagedPropertyEntry()); |
| 920 return o; | 920 return o; |
| 921 } | 921 } |
| 922 | 922 |
| 923 checkUnnamed1571(core.List<api.ManagedPropertyEntry> o) { | 923 checkUnnamed1588(core.List<api.ManagedPropertyEntry> o) { |
| 924 unittest.expect(o, unittest.hasLength(2)); | 924 unittest.expect(o, unittest.hasLength(2)); |
| 925 checkManagedPropertyEntry(o[0]); | 925 checkManagedPropertyEntry(o[0]); |
| 926 checkManagedPropertyEntry(o[1]); | 926 checkManagedPropertyEntry(o[1]); |
| 927 } | 927 } |
| 928 | 928 |
| 929 buildUnnamed1572() { | 929 buildUnnamed1589() { |
| 930 var o = new core.List<api.ManagedProperty>(); | 930 var o = new core.List<api.ManagedProperty>(); |
| 931 o.add(buildManagedProperty()); | 931 o.add(buildManagedProperty()); |
| 932 o.add(buildManagedProperty()); | 932 o.add(buildManagedProperty()); |
| 933 return o; | 933 return o; |
| 934 } | 934 } |
| 935 | 935 |
| 936 checkUnnamed1572(core.List<api.ManagedProperty> o) { | 936 checkUnnamed1589(core.List<api.ManagedProperty> o) { |
| 937 unittest.expect(o, unittest.hasLength(2)); | 937 unittest.expect(o, unittest.hasLength(2)); |
| 938 checkManagedProperty(o[0]); | 938 checkManagedProperty(o[0]); |
| 939 checkManagedProperty(o[1]); | 939 checkManagedProperty(o[1]); |
| 940 } | 940 } |
| 941 | 941 |
| 942 core.int buildCounterManagedProperty = 0; | 942 core.int buildCounterManagedProperty = 0; |
| 943 buildManagedProperty() { | 943 buildManagedProperty() { |
| 944 var o = new api.ManagedProperty(); | 944 var o = new api.ManagedProperty(); |
| 945 buildCounterManagedProperty++; | 945 buildCounterManagedProperty++; |
| 946 if (buildCounterManagedProperty < 3) { | 946 if (buildCounterManagedProperty < 3) { |
| 947 o.defaultValue = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 947 o.defaultValue = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 948 o.description = "foo"; | 948 o.description = "foo"; |
| 949 o.entries = buildUnnamed1571(); | 949 o.entries = buildUnnamed1588(); |
| 950 o.key = "foo"; | 950 o.key = "foo"; |
| 951 o.nestedProperties = buildUnnamed1572(); | 951 o.nestedProperties = buildUnnamed1589(); |
| 952 o.title = "foo"; | 952 o.title = "foo"; |
| 953 o.type = "foo"; | 953 o.type = "foo"; |
| 954 } | 954 } |
| 955 buildCounterManagedProperty--; | 955 buildCounterManagedProperty--; |
| 956 return o; | 956 return o; |
| 957 } | 957 } |
| 958 | 958 |
| 959 checkManagedProperty(api.ManagedProperty o) { | 959 checkManagedProperty(api.ManagedProperty o) { |
| 960 buildCounterManagedProperty++; | 960 buildCounterManagedProperty++; |
| 961 if (buildCounterManagedProperty < 3) { | 961 if (buildCounterManagedProperty < 3) { |
| 962 var casted3 = (o.defaultValue) as core.Map; unittest.expect(casted3, unittes
t.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); u
nittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3[
"string"], unittest.equals('foo')); | 962 var casted3 = (o.defaultValue) as core.Map; unittest.expect(casted3, unittes
t.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); u
nittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3[
"string"], unittest.equals('foo')); |
| 963 unittest.expect(o.description, unittest.equals('foo')); | 963 unittest.expect(o.description, unittest.equals('foo')); |
| 964 checkUnnamed1571(o.entries); | 964 checkUnnamed1588(o.entries); |
| 965 unittest.expect(o.key, unittest.equals('foo')); | 965 unittest.expect(o.key, unittest.equals('foo')); |
| 966 checkUnnamed1572(o.nestedProperties); | 966 checkUnnamed1589(o.nestedProperties); |
| 967 unittest.expect(o.title, unittest.equals('foo')); | 967 unittest.expect(o.title, unittest.equals('foo')); |
| 968 unittest.expect(o.type, unittest.equals('foo')); | 968 unittest.expect(o.type, unittest.equals('foo')); |
| 969 } | 969 } |
| 970 buildCounterManagedProperty--; | 970 buildCounterManagedProperty--; |
| 971 } | 971 } |
| 972 | 972 |
| 973 core.int buildCounterManagedPropertyEntry = 0; | 973 core.int buildCounterManagedPropertyEntry = 0; |
| 974 buildManagedPropertyEntry() { | 974 buildManagedPropertyEntry() { |
| 975 var o = new api.ManagedPropertyEntry(); | 975 var o = new api.ManagedPropertyEntry(); |
| 976 buildCounterManagedPropertyEntry++; | 976 buildCounterManagedPropertyEntry++; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 checkNonComplianceDetailCondition(api.NonComplianceDetailCondition o) { | 1103 checkNonComplianceDetailCondition(api.NonComplianceDetailCondition o) { |
| 1104 buildCounterNonComplianceDetailCondition++; | 1104 buildCounterNonComplianceDetailCondition++; |
| 1105 if (buildCounterNonComplianceDetailCondition < 3) { | 1105 if (buildCounterNonComplianceDetailCondition < 3) { |
| 1106 unittest.expect(o.nonComplianceReason, unittest.equals('foo')); | 1106 unittest.expect(o.nonComplianceReason, unittest.equals('foo')); |
| 1107 unittest.expect(o.packageName, unittest.equals('foo')); | 1107 unittest.expect(o.packageName, unittest.equals('foo')); |
| 1108 unittest.expect(o.settingName, unittest.equals('foo')); | 1108 unittest.expect(o.settingName, unittest.equals('foo')); |
| 1109 } | 1109 } |
| 1110 buildCounterNonComplianceDetailCondition--; | 1110 buildCounterNonComplianceDetailCondition--; |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 buildUnnamed1573() { | 1113 buildUnnamed1590() { |
| 1114 var o = new core.Map<core.String, core.Object>(); | 1114 var o = new core.Map<core.String, core.Object>(); |
| 1115 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1115 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1116 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1116 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1117 return o; | 1117 return o; |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 checkUnnamed1573(core.Map<core.String, core.Object> o) { | 1120 checkUnnamed1590(core.Map<core.String, core.Object> o) { |
| 1121 unittest.expect(o, unittest.hasLength(2)); | 1121 unittest.expect(o, unittest.hasLength(2)); |
| 1122 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1122 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 1123 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1123 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 buildUnnamed1574() { | 1126 buildUnnamed1591() { |
| 1127 var o = new core.Map<core.String, core.Object>(); | 1127 var o = new core.Map<core.String, core.Object>(); |
| 1128 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1128 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1129 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1129 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1130 return o; | 1130 return o; |
| 1131 } | 1131 } |
| 1132 | 1132 |
| 1133 checkUnnamed1574(core.Map<core.String, core.Object> o) { | 1133 checkUnnamed1591(core.Map<core.String, core.Object> o) { |
| 1134 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
| 1135 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1135 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
| 1136 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1136 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 core.int buildCounterOperation = 0; | 1139 core.int buildCounterOperation = 0; |
| 1140 buildOperation() { | 1140 buildOperation() { |
| 1141 var o = new api.Operation(); | 1141 var o = new api.Operation(); |
| 1142 buildCounterOperation++; | 1142 buildCounterOperation++; |
| 1143 if (buildCounterOperation < 3) { | 1143 if (buildCounterOperation < 3) { |
| 1144 o.done = true; | 1144 o.done = true; |
| 1145 o.error = buildStatus(); | 1145 o.error = buildStatus(); |
| 1146 o.metadata = buildUnnamed1573(); | 1146 o.metadata = buildUnnamed1590(); |
| 1147 o.name = "foo"; | 1147 o.name = "foo"; |
| 1148 o.response = buildUnnamed1574(); | 1148 o.response = buildUnnamed1591(); |
| 1149 } | 1149 } |
| 1150 buildCounterOperation--; | 1150 buildCounterOperation--; |
| 1151 return o; | 1151 return o; |
| 1152 } | 1152 } |
| 1153 | 1153 |
| 1154 checkOperation(api.Operation o) { | 1154 checkOperation(api.Operation o) { |
| 1155 buildCounterOperation++; | 1155 buildCounterOperation++; |
| 1156 if (buildCounterOperation < 3) { | 1156 if (buildCounterOperation < 3) { |
| 1157 unittest.expect(o.done, unittest.isTrue); | 1157 unittest.expect(o.done, unittest.isTrue); |
| 1158 checkStatus(o.error); | 1158 checkStatus(o.error); |
| 1159 checkUnnamed1573(o.metadata); | 1159 checkUnnamed1590(o.metadata); |
| 1160 unittest.expect(o.name, unittest.equals('foo')); | 1160 unittest.expect(o.name, unittest.equals('foo')); |
| 1161 checkUnnamed1574(o.response); | 1161 checkUnnamed1591(o.response); |
| 1162 } | 1162 } |
| 1163 buildCounterOperation--; | 1163 buildCounterOperation--; |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 core.int buildCounterPasswordRequirements = 0; | 1166 core.int buildCounterPasswordRequirements = 0; |
| 1167 buildPasswordRequirements() { | 1167 buildPasswordRequirements() { |
| 1168 var o = new api.PasswordRequirements(); | 1168 var o = new api.PasswordRequirements(); |
| 1169 buildCounterPasswordRequirements++; | 1169 buildCounterPasswordRequirements++; |
| 1170 if (buildCounterPasswordRequirements < 3) { | 1170 if (buildCounterPasswordRequirements < 3) { |
| 1171 o.maximumFailedPasswordsForWipe = 42; | 1171 o.maximumFailedPasswordsForWipe = 42; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 | 1216 |
| 1217 checkPermissionGrant(api.PermissionGrant o) { | 1217 checkPermissionGrant(api.PermissionGrant o) { |
| 1218 buildCounterPermissionGrant++; | 1218 buildCounterPermissionGrant++; |
| 1219 if (buildCounterPermissionGrant < 3) { | 1219 if (buildCounterPermissionGrant < 3) { |
| 1220 unittest.expect(o.permission, unittest.equals('foo')); | 1220 unittest.expect(o.permission, unittest.equals('foo')); |
| 1221 unittest.expect(o.policy, unittest.equals('foo')); | 1221 unittest.expect(o.policy, unittest.equals('foo')); |
| 1222 } | 1222 } |
| 1223 buildCounterPermissionGrant--; | 1223 buildCounterPermissionGrant--; |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 buildUnnamed1575() { | 1226 buildUnnamed1592() { |
| 1227 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
| 1228 o.add("foo"); | 1228 o.add("foo"); |
| 1229 o.add("foo"); | 1229 o.add("foo"); |
| 1230 return o; | 1230 return o; |
| 1231 } | 1231 } |
| 1232 | 1232 |
| 1233 checkUnnamed1575(core.List<core.String> o) { | 1233 checkUnnamed1592(core.List<core.String> o) { |
| 1234 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
| 1235 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
| 1236 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 buildUnnamed1576() { | 1239 buildUnnamed1593() { |
| 1240 var o = new core.List<core.String>(); | 1240 var o = new core.List<core.String>(); |
| 1241 o.add("foo"); | 1241 o.add("foo"); |
| 1242 o.add("foo"); | 1242 o.add("foo"); |
| 1243 return o; | 1243 return o; |
| 1244 } | 1244 } |
| 1245 | 1245 |
| 1246 checkUnnamed1576(core.List<core.String> o) { | 1246 checkUnnamed1593(core.List<core.String> o) { |
| 1247 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
| 1248 unittest.expect(o[0], unittest.equals('foo')); | 1248 unittest.expect(o[0], unittest.equals('foo')); |
| 1249 unittest.expect(o[1], unittest.equals('foo')); | 1249 unittest.expect(o[1], unittest.equals('foo')); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 core.int buildCounterPersistentPreferredActivity = 0; | 1252 core.int buildCounterPersistentPreferredActivity = 0; |
| 1253 buildPersistentPreferredActivity() { | 1253 buildPersistentPreferredActivity() { |
| 1254 var o = new api.PersistentPreferredActivity(); | 1254 var o = new api.PersistentPreferredActivity(); |
| 1255 buildCounterPersistentPreferredActivity++; | 1255 buildCounterPersistentPreferredActivity++; |
| 1256 if (buildCounterPersistentPreferredActivity < 3) { | 1256 if (buildCounterPersistentPreferredActivity < 3) { |
| 1257 o.actions = buildUnnamed1575(); | 1257 o.actions = buildUnnamed1592(); |
| 1258 o.categories = buildUnnamed1576(); | 1258 o.categories = buildUnnamed1593(); |
| 1259 o.receiverActivity = "foo"; | 1259 o.receiverActivity = "foo"; |
| 1260 } | 1260 } |
| 1261 buildCounterPersistentPreferredActivity--; | 1261 buildCounterPersistentPreferredActivity--; |
| 1262 return o; | 1262 return o; |
| 1263 } | 1263 } |
| 1264 | 1264 |
| 1265 checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { | 1265 checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { |
| 1266 buildCounterPersistentPreferredActivity++; | 1266 buildCounterPersistentPreferredActivity++; |
| 1267 if (buildCounterPersistentPreferredActivity < 3) { | 1267 if (buildCounterPersistentPreferredActivity < 3) { |
| 1268 checkUnnamed1575(o.actions); | 1268 checkUnnamed1592(o.actions); |
| 1269 checkUnnamed1576(o.categories); | 1269 checkUnnamed1593(o.categories); |
| 1270 unittest.expect(o.receiverActivity, unittest.equals('foo')); | 1270 unittest.expect(o.receiverActivity, unittest.equals('foo')); |
| 1271 } | 1271 } |
| 1272 buildCounterPersistentPreferredActivity--; | 1272 buildCounterPersistentPreferredActivity--; |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 buildUnnamed1577() { | 1275 buildUnnamed1594() { |
| 1276 var o = new core.List<api.ApplicationPolicy>(); | 1276 var o = new core.List<api.ApplicationPolicy>(); |
| 1277 o.add(buildApplicationPolicy()); | 1277 o.add(buildApplicationPolicy()); |
| 1278 o.add(buildApplicationPolicy()); | 1278 o.add(buildApplicationPolicy()); |
| 1279 return o; | 1279 return o; |
| 1280 } | 1280 } |
| 1281 | 1281 |
| 1282 checkUnnamed1577(core.List<api.ApplicationPolicy> o) { | 1282 checkUnnamed1594(core.List<api.ApplicationPolicy> o) { |
| 1283 unittest.expect(o, unittest.hasLength(2)); | 1283 unittest.expect(o, unittest.hasLength(2)); |
| 1284 checkApplicationPolicy(o[0]); | 1284 checkApplicationPolicy(o[0]); |
| 1285 checkApplicationPolicy(o[1]); | 1285 checkApplicationPolicy(o[1]); |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 buildUnnamed1578() { | 1288 buildUnnamed1595() { |
| 1289 var o = new core.List<api.ComplianceRule>(); | 1289 var o = new core.List<api.ComplianceRule>(); |
| 1290 o.add(buildComplianceRule()); | 1290 o.add(buildComplianceRule()); |
| 1291 o.add(buildComplianceRule()); | 1291 o.add(buildComplianceRule()); |
| 1292 return o; | 1292 return o; |
| 1293 } | 1293 } |
| 1294 | 1294 |
| 1295 checkUnnamed1578(core.List<api.ComplianceRule> o) { | 1295 checkUnnamed1595(core.List<api.ComplianceRule> o) { |
| 1296 unittest.expect(o, unittest.hasLength(2)); | 1296 unittest.expect(o, unittest.hasLength(2)); |
| 1297 checkComplianceRule(o[0]); | 1297 checkComplianceRule(o[0]); |
| 1298 checkComplianceRule(o[1]); | 1298 checkComplianceRule(o[1]); |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 buildUnnamed1579() { | 1301 buildUnnamed1596() { |
| 1302 var o = new core.List<core.String>(); | 1302 var o = new core.List<core.String>(); |
| 1303 o.add("foo"); | 1303 o.add("foo"); |
| 1304 o.add("foo"); | 1304 o.add("foo"); |
| 1305 return o; | 1305 return o; |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 checkUnnamed1579(core.List<core.String> o) { | 1308 checkUnnamed1596(core.List<core.String> o) { |
| 1309 unittest.expect(o, unittest.hasLength(2)); | 1309 unittest.expect(o, unittest.hasLength(2)); |
| 1310 unittest.expect(o[0], unittest.equals('foo')); | 1310 unittest.expect(o[0], unittest.equals('foo')); |
| 1311 unittest.expect(o[1], unittest.equals('foo')); | 1311 unittest.expect(o[1], unittest.equals('foo')); |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 buildUnnamed1580() { | 1314 buildUnnamed1597() { |
| 1315 var o = new core.Map<core.String, core.Object>(); | 1315 var o = new core.Map<core.String, core.Object>(); |
| 1316 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1316 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1317 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1317 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1318 return o; | 1318 return o; |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 checkUnnamed1580(core.Map<core.String, core.Object> o) { | 1321 checkUnnamed1597(core.Map<core.String, core.Object> o) { |
| 1322 unittest.expect(o, unittest.hasLength(2)); | 1322 unittest.expect(o, unittest.hasLength(2)); |
| 1323 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 1323 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
| 1324 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 1324 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 buildUnnamed1581() { | 1327 buildUnnamed1598() { |
| 1328 var o = new core.List<api.PersistentPreferredActivity>(); | 1328 var o = new core.List<api.PersistentPreferredActivity>(); |
| 1329 o.add(buildPersistentPreferredActivity()); | 1329 o.add(buildPersistentPreferredActivity()); |
| 1330 o.add(buildPersistentPreferredActivity()); | 1330 o.add(buildPersistentPreferredActivity()); |
| 1331 return o; | 1331 return o; |
| 1332 } | 1332 } |
| 1333 | 1333 |
| 1334 checkUnnamed1581(core.List<api.PersistentPreferredActivity> o) { | 1334 checkUnnamed1598(core.List<api.PersistentPreferredActivity> o) { |
| 1335 unittest.expect(o, unittest.hasLength(2)); | 1335 unittest.expect(o, unittest.hasLength(2)); |
| 1336 checkPersistentPreferredActivity(o[0]); | 1336 checkPersistentPreferredActivity(o[0]); |
| 1337 checkPersistentPreferredActivity(o[1]); | 1337 checkPersistentPreferredActivity(o[1]); |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 buildUnnamed1582() { | 1340 buildUnnamed1599() { |
| 1341 var o = new core.List<core.String>(); | 1341 var o = new core.List<core.String>(); |
| 1342 o.add("foo"); | 1342 o.add("foo"); |
| 1343 o.add("foo"); | 1343 o.add("foo"); |
| 1344 return o; | 1344 return o; |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 checkUnnamed1582(core.List<core.String> o) { | 1347 checkUnnamed1599(core.List<core.String> o) { |
| 1348 unittest.expect(o, unittest.hasLength(2)); | 1348 unittest.expect(o, unittest.hasLength(2)); |
| 1349 unittest.expect(o[0], unittest.equals('foo')); | 1349 unittest.expect(o[0], unittest.equals('foo')); |
| 1350 unittest.expect(o[1], unittest.equals('foo')); | 1350 unittest.expect(o[1], unittest.equals('foo')); |
| 1351 } | 1351 } |
| 1352 | 1352 |
| 1353 core.int buildCounterPolicy = 0; | 1353 core.int buildCounterPolicy = 0; |
| 1354 buildPolicy() { | 1354 buildPolicy() { |
| 1355 var o = new api.Policy(); | 1355 var o = new api.Policy(); |
| 1356 buildCounterPolicy++; | 1356 buildCounterPolicy++; |
| 1357 if (buildCounterPolicy < 3) { | 1357 if (buildCounterPolicy < 3) { |
| 1358 o.addUserDisabled = true; | 1358 o.addUserDisabled = true; |
| 1359 o.adjustVolumeDisabled = true; | 1359 o.adjustVolumeDisabled = true; |
| 1360 o.applications = buildUnnamed1577(); | 1360 o.applications = buildUnnamed1594(); |
| 1361 o.blockApplicationsEnabled = true; | 1361 o.blockApplicationsEnabled = true; |
| 1362 o.cameraDisabled = true; | 1362 o.cameraDisabled = true; |
| 1363 o.complianceRules = buildUnnamed1578(); | 1363 o.complianceRules = buildUnnamed1595(); |
| 1364 o.debuggingFeaturesAllowed = true; | 1364 o.debuggingFeaturesAllowed = true; |
| 1365 o.defaultPermissionPolicy = "foo"; | 1365 o.defaultPermissionPolicy = "foo"; |
| 1366 o.factoryResetDisabled = true; | 1366 o.factoryResetDisabled = true; |
| 1367 o.frpAdminEmails = buildUnnamed1579(); | 1367 o.frpAdminEmails = buildUnnamed1596(); |
| 1368 o.funDisabled = true; |
| 1368 o.installUnknownSourcesAllowed = true; | 1369 o.installUnknownSourcesAllowed = true; |
| 1369 o.keyguardDisabled = true; | 1370 o.keyguardDisabled = true; |
| 1370 o.maximumTimeToLock = "foo"; | 1371 o.maximumTimeToLock = "foo"; |
| 1371 o.modifyAccountsDisabled = true; | 1372 o.modifyAccountsDisabled = true; |
| 1372 o.name = "foo"; | 1373 o.name = "foo"; |
| 1373 o.networkEscapeHatchEnabled = true; | 1374 o.networkEscapeHatchEnabled = true; |
| 1374 o.openNetworkConfiguration = buildUnnamed1580(); | 1375 o.openNetworkConfiguration = buildUnnamed1597(); |
| 1375 o.passwordRequirements = buildPasswordRequirements(); | 1376 o.passwordRequirements = buildPasswordRequirements(); |
| 1376 o.persistentPreferredActivities = buildUnnamed1581(); | 1377 o.persistentPreferredActivities = buildUnnamed1598(); |
| 1377 o.removeUserDisabled = true; | 1378 o.removeUserDisabled = true; |
| 1378 o.safeBootDisabled = true; | 1379 o.safeBootDisabled = true; |
| 1379 o.screenCaptureDisabled = true; | 1380 o.screenCaptureDisabled = true; |
| 1380 o.statusBarDisabled = true; | 1381 o.statusBarDisabled = true; |
| 1381 o.statusReportingSettings = buildStatusReportingSettings(); | 1382 o.statusReportingSettings = buildStatusReportingSettings(); |
| 1382 o.stayOnPluggedModes = buildUnnamed1582(); | 1383 o.stayOnPluggedModes = buildUnnamed1599(); |
| 1383 o.systemUpdate = buildSystemUpdate(); | 1384 o.systemUpdate = buildSystemUpdate(); |
| 1384 o.unmuteMicrophoneDisabled = true; | 1385 o.unmuteMicrophoneDisabled = true; |
| 1385 o.version = "foo"; | 1386 o.version = "foo"; |
| 1386 } | 1387 } |
| 1387 buildCounterPolicy--; | 1388 buildCounterPolicy--; |
| 1388 return o; | 1389 return o; |
| 1389 } | 1390 } |
| 1390 | 1391 |
| 1391 checkPolicy(api.Policy o) { | 1392 checkPolicy(api.Policy o) { |
| 1392 buildCounterPolicy++; | 1393 buildCounterPolicy++; |
| 1393 if (buildCounterPolicy < 3) { | 1394 if (buildCounterPolicy < 3) { |
| 1394 unittest.expect(o.addUserDisabled, unittest.isTrue); | 1395 unittest.expect(o.addUserDisabled, unittest.isTrue); |
| 1395 unittest.expect(o.adjustVolumeDisabled, unittest.isTrue); | 1396 unittest.expect(o.adjustVolumeDisabled, unittest.isTrue); |
| 1396 checkUnnamed1577(o.applications); | 1397 checkUnnamed1594(o.applications); |
| 1397 unittest.expect(o.blockApplicationsEnabled, unittest.isTrue); | 1398 unittest.expect(o.blockApplicationsEnabled, unittest.isTrue); |
| 1398 unittest.expect(o.cameraDisabled, unittest.isTrue); | 1399 unittest.expect(o.cameraDisabled, unittest.isTrue); |
| 1399 checkUnnamed1578(o.complianceRules); | 1400 checkUnnamed1595(o.complianceRules); |
| 1400 unittest.expect(o.debuggingFeaturesAllowed, unittest.isTrue); | 1401 unittest.expect(o.debuggingFeaturesAllowed, unittest.isTrue); |
| 1401 unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); | 1402 unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); |
| 1402 unittest.expect(o.factoryResetDisabled, unittest.isTrue); | 1403 unittest.expect(o.factoryResetDisabled, unittest.isTrue); |
| 1403 checkUnnamed1579(o.frpAdminEmails); | 1404 checkUnnamed1596(o.frpAdminEmails); |
| 1405 unittest.expect(o.funDisabled, unittest.isTrue); |
| 1404 unittest.expect(o.installUnknownSourcesAllowed, unittest.isTrue); | 1406 unittest.expect(o.installUnknownSourcesAllowed, unittest.isTrue); |
| 1405 unittest.expect(o.keyguardDisabled, unittest.isTrue); | 1407 unittest.expect(o.keyguardDisabled, unittest.isTrue); |
| 1406 unittest.expect(o.maximumTimeToLock, unittest.equals('foo')); | 1408 unittest.expect(o.maximumTimeToLock, unittest.equals('foo')); |
| 1407 unittest.expect(o.modifyAccountsDisabled, unittest.isTrue); | 1409 unittest.expect(o.modifyAccountsDisabled, unittest.isTrue); |
| 1408 unittest.expect(o.name, unittest.equals('foo')); | 1410 unittest.expect(o.name, unittest.equals('foo')); |
| 1409 unittest.expect(o.networkEscapeHatchEnabled, unittest.isTrue); | 1411 unittest.expect(o.networkEscapeHatchEnabled, unittest.isTrue); |
| 1410 checkUnnamed1580(o.openNetworkConfiguration); | 1412 checkUnnamed1597(o.openNetworkConfiguration); |
| 1411 checkPasswordRequirements(o.passwordRequirements); | 1413 checkPasswordRequirements(o.passwordRequirements); |
| 1412 checkUnnamed1581(o.persistentPreferredActivities); | 1414 checkUnnamed1598(o.persistentPreferredActivities); |
| 1413 unittest.expect(o.removeUserDisabled, unittest.isTrue); | 1415 unittest.expect(o.removeUserDisabled, unittest.isTrue); |
| 1414 unittest.expect(o.safeBootDisabled, unittest.isTrue); | 1416 unittest.expect(o.safeBootDisabled, unittest.isTrue); |
| 1415 unittest.expect(o.screenCaptureDisabled, unittest.isTrue); | 1417 unittest.expect(o.screenCaptureDisabled, unittest.isTrue); |
| 1416 unittest.expect(o.statusBarDisabled, unittest.isTrue); | 1418 unittest.expect(o.statusBarDisabled, unittest.isTrue); |
| 1417 checkStatusReportingSettings(o.statusReportingSettings); | 1419 checkStatusReportingSettings(o.statusReportingSettings); |
| 1418 checkUnnamed1582(o.stayOnPluggedModes); | 1420 checkUnnamed1599(o.stayOnPluggedModes); |
| 1419 checkSystemUpdate(o.systemUpdate); | 1421 checkSystemUpdate(o.systemUpdate); |
| 1420 unittest.expect(o.unmuteMicrophoneDisabled, unittest.isTrue); | 1422 unittest.expect(o.unmuteMicrophoneDisabled, unittest.isTrue); |
| 1421 unittest.expect(o.version, unittest.equals('foo')); | 1423 unittest.expect(o.version, unittest.equals('foo')); |
| 1422 } | 1424 } |
| 1423 buildCounterPolicy--; | 1425 buildCounterPolicy--; |
| 1424 } | 1426 } |
| 1425 | 1427 |
| 1426 core.int buildCounterPowerManagementEvent = 0; | 1428 core.int buildCounterPowerManagementEvent = 0; |
| 1427 buildPowerManagementEvent() { | 1429 buildPowerManagementEvent() { |
| 1428 var o = new api.PowerManagementEvent(); | 1430 var o = new api.PowerManagementEvent(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 unittest.expect(o.androidBuildNumber, unittest.equals('foo')); | 1491 unittest.expect(o.androidBuildNumber, unittest.equals('foo')); |
| 1490 unittest.expect(o.androidBuildTime, unittest.equals('foo')); | 1492 unittest.expect(o.androidBuildTime, unittest.equals('foo')); |
| 1491 unittest.expect(o.androidVersion, unittest.equals('foo')); | 1493 unittest.expect(o.androidVersion, unittest.equals('foo')); |
| 1492 unittest.expect(o.bootloaderVersion, unittest.equals('foo')); | 1494 unittest.expect(o.bootloaderVersion, unittest.equals('foo')); |
| 1493 unittest.expect(o.deviceKernelVersion, unittest.equals('foo')); | 1495 unittest.expect(o.deviceKernelVersion, unittest.equals('foo')); |
| 1494 unittest.expect(o.securityPatchLevel, unittest.equals('foo')); | 1496 unittest.expect(o.securityPatchLevel, unittest.equals('foo')); |
| 1495 } | 1497 } |
| 1496 buildCounterSoftwareInfo--; | 1498 buildCounterSoftwareInfo--; |
| 1497 } | 1499 } |
| 1498 | 1500 |
| 1499 buildUnnamed1583() { | 1501 buildUnnamed1600() { |
| 1500 var o = new core.Map<core.String, core.Object>(); | 1502 var o = new core.Map<core.String, core.Object>(); |
| 1501 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1503 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1502 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1504 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1503 return o; | 1505 return o; |
| 1504 } | 1506 } |
| 1505 | 1507 |
| 1506 checkUnnamed1583(core.Map<core.String, core.Object> o) { | 1508 checkUnnamed1600(core.Map<core.String, core.Object> o) { |
| 1507 unittest.expect(o, unittest.hasLength(2)); | 1509 unittest.expect(o, unittest.hasLength(2)); |
| 1508 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 1510 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); |
| 1509 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); | 1511 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); |
| 1510 } | 1512 } |
| 1511 | 1513 |
| 1512 buildUnnamed1584() { | 1514 buildUnnamed1601() { |
| 1513 var o = new core.List<core.Map<core.String, core.Object>>(); | 1515 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1514 o.add(buildUnnamed1583()); | 1516 o.add(buildUnnamed1600()); |
| 1515 o.add(buildUnnamed1583()); | 1517 o.add(buildUnnamed1600()); |
| 1516 return o; | 1518 return o; |
| 1517 } | 1519 } |
| 1518 | 1520 |
| 1519 checkUnnamed1584(core.List<core.Map<core.String, core.Object>> o) { | 1521 checkUnnamed1601(core.List<core.Map<core.String, core.Object>> o) { |
| 1520 unittest.expect(o, unittest.hasLength(2)); | 1522 unittest.expect(o, unittest.hasLength(2)); |
| 1521 checkUnnamed1583(o[0]); | 1523 checkUnnamed1600(o[0]); |
| 1522 checkUnnamed1583(o[1]); | 1524 checkUnnamed1600(o[1]); |
| 1523 } | 1525 } |
| 1524 | 1526 |
| 1525 core.int buildCounterStatus = 0; | 1527 core.int buildCounterStatus = 0; |
| 1526 buildStatus() { | 1528 buildStatus() { |
| 1527 var o = new api.Status(); | 1529 var o = new api.Status(); |
| 1528 buildCounterStatus++; | 1530 buildCounterStatus++; |
| 1529 if (buildCounterStatus < 3) { | 1531 if (buildCounterStatus < 3) { |
| 1530 o.code = 42; | 1532 o.code = 42; |
| 1531 o.details = buildUnnamed1584(); | 1533 o.details = buildUnnamed1601(); |
| 1532 o.message = "foo"; | 1534 o.message = "foo"; |
| 1533 } | 1535 } |
| 1534 buildCounterStatus--; | 1536 buildCounterStatus--; |
| 1535 return o; | 1537 return o; |
| 1536 } | 1538 } |
| 1537 | 1539 |
| 1538 checkStatus(api.Status o) { | 1540 checkStatus(api.Status o) { |
| 1539 buildCounterStatus++; | 1541 buildCounterStatus++; |
| 1540 if (buildCounterStatus < 3) { | 1542 if (buildCounterStatus < 3) { |
| 1541 unittest.expect(o.code, unittest.equals(42)); | 1543 unittest.expect(o.code, unittest.equals(42)); |
| 1542 checkUnnamed1584(o.details); | 1544 checkUnnamed1601(o.details); |
| 1543 unittest.expect(o.message, unittest.equals('foo')); | 1545 unittest.expect(o.message, unittest.equals('foo')); |
| 1544 } | 1546 } |
| 1545 buildCounterStatus--; | 1547 buildCounterStatus--; |
| 1546 } | 1548 } |
| 1547 | 1549 |
| 1548 core.int buildCounterStatusReportingSettings = 0; | 1550 core.int buildCounterStatusReportingSettings = 0; |
| 1549 buildStatusReportingSettings() { | 1551 buildStatusReportingSettings() { |
| 1550 var o = new api.StatusReportingSettings(); | 1552 var o = new api.StatusReportingSettings(); |
| 1551 buildCounterStatusReportingSettings++; | 1553 buildCounterStatusReportingSettings++; |
| 1552 if (buildCounterStatusReportingSettings < 3) { | 1554 if (buildCounterStatusReportingSettings < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 checkSystemUpdate(api.SystemUpdate o) { | 1592 checkSystemUpdate(api.SystemUpdate o) { |
| 1591 buildCounterSystemUpdate++; | 1593 buildCounterSystemUpdate++; |
| 1592 if (buildCounterSystemUpdate < 3) { | 1594 if (buildCounterSystemUpdate < 3) { |
| 1593 unittest.expect(o.endMinutes, unittest.equals(42)); | 1595 unittest.expect(o.endMinutes, unittest.equals(42)); |
| 1594 unittest.expect(o.startMinutes, unittest.equals(42)); | 1596 unittest.expect(o.startMinutes, unittest.equals(42)); |
| 1595 unittest.expect(o.type, unittest.equals('foo')); | 1597 unittest.expect(o.type, unittest.equals('foo')); |
| 1596 } | 1598 } |
| 1597 buildCounterSystemUpdate--; | 1599 buildCounterSystemUpdate--; |
| 1598 } | 1600 } |
| 1599 | 1601 |
| 1600 buildUnnamed1585() { | 1602 buildUnnamed1602() { |
| 1601 var o = new core.Map<core.String, core.String>(); | 1603 var o = new core.Map<core.String, core.String>(); |
| 1602 o["x"] = "foo"; | 1604 o["x"] = "foo"; |
| 1603 o["y"] = "foo"; | 1605 o["y"] = "foo"; |
| 1604 return o; | 1606 return o; |
| 1605 } | 1607 } |
| 1606 | 1608 |
| 1607 checkUnnamed1585(core.Map<core.String, core.String> o) { | 1609 checkUnnamed1602(core.Map<core.String, core.String> o) { |
| 1608 unittest.expect(o, unittest.hasLength(2)); | 1610 unittest.expect(o, unittest.hasLength(2)); |
| 1609 unittest.expect(o["x"], unittest.equals('foo')); | 1611 unittest.expect(o["x"], unittest.equals('foo')); |
| 1610 unittest.expect(o["y"], unittest.equals('foo')); | 1612 unittest.expect(o["y"], unittest.equals('foo')); |
| 1611 } | 1613 } |
| 1612 | 1614 |
| 1613 core.int buildCounterUserFacingMessage = 0; | 1615 core.int buildCounterUserFacingMessage = 0; |
| 1614 buildUserFacingMessage() { | 1616 buildUserFacingMessage() { |
| 1615 var o = new api.UserFacingMessage(); | 1617 var o = new api.UserFacingMessage(); |
| 1616 buildCounterUserFacingMessage++; | 1618 buildCounterUserFacingMessage++; |
| 1617 if (buildCounterUserFacingMessage < 3) { | 1619 if (buildCounterUserFacingMessage < 3) { |
| 1618 o.defaultMessage = "foo"; | 1620 o.defaultMessage = "foo"; |
| 1619 o.localizedMessages = buildUnnamed1585(); | 1621 o.localizedMessages = buildUnnamed1602(); |
| 1620 } | 1622 } |
| 1621 buildCounterUserFacingMessage--; | 1623 buildCounterUserFacingMessage--; |
| 1622 return o; | 1624 return o; |
| 1623 } | 1625 } |
| 1624 | 1626 |
| 1625 checkUserFacingMessage(api.UserFacingMessage o) { | 1627 checkUserFacingMessage(api.UserFacingMessage o) { |
| 1626 buildCounterUserFacingMessage++; | 1628 buildCounterUserFacingMessage++; |
| 1627 if (buildCounterUserFacingMessage < 3) { | 1629 if (buildCounterUserFacingMessage < 3) { |
| 1628 unittest.expect(o.defaultMessage, unittest.equals('foo')); | 1630 unittest.expect(o.defaultMessage, unittest.equals('foo')); |
| 1629 checkUnnamed1585(o.localizedMessages); | 1631 checkUnnamed1602(o.localizedMessages); |
| 1630 } | 1632 } |
| 1631 buildCounterUserFacingMessage--; | 1633 buildCounterUserFacingMessage--; |
| 1632 } | 1634 } |
| 1633 | 1635 |
| 1634 buildUnnamed1586() { | 1636 buildUnnamed1603() { |
| 1635 var o = new core.List<core.String>(); | 1637 var o = new core.List<core.String>(); |
| 1636 o.add("foo"); | 1638 o.add("foo"); |
| 1637 o.add("foo"); | 1639 o.add("foo"); |
| 1638 return o; | 1640 return o; |
| 1639 } | 1641 } |
| 1640 | 1642 |
| 1641 checkUnnamed1586(core.List<core.String> o) { | 1643 checkUnnamed1603(core.List<core.String> o) { |
| 1642 unittest.expect(o, unittest.hasLength(2)); | 1644 unittest.expect(o, unittest.hasLength(2)); |
| 1643 unittest.expect(o[0], unittest.equals('foo')); | 1645 unittest.expect(o[0], unittest.equals('foo')); |
| 1644 unittest.expect(o[1], unittest.equals('foo')); | 1646 unittest.expect(o[1], unittest.equals('foo')); |
| 1645 } | 1647 } |
| 1646 | 1648 |
| 1647 core.int buildCounterWebToken = 0; | 1649 core.int buildCounterWebToken = 0; |
| 1648 buildWebToken() { | 1650 buildWebToken() { |
| 1649 var o = new api.WebToken(); | 1651 var o = new api.WebToken(); |
| 1650 buildCounterWebToken++; | 1652 buildCounterWebToken++; |
| 1651 if (buildCounterWebToken < 3) { | 1653 if (buildCounterWebToken < 3) { |
| 1652 o.name = "foo"; | 1654 o.name = "foo"; |
| 1653 o.parentFrameUrl = "foo"; | 1655 o.parentFrameUrl = "foo"; |
| 1654 o.permissions = buildUnnamed1586(); | 1656 o.permissions = buildUnnamed1603(); |
| 1655 o.value = "foo"; | 1657 o.value = "foo"; |
| 1656 } | 1658 } |
| 1657 buildCounterWebToken--; | 1659 buildCounterWebToken--; |
| 1658 return o; | 1660 return o; |
| 1659 } | 1661 } |
| 1660 | 1662 |
| 1661 checkWebToken(api.WebToken o) { | 1663 checkWebToken(api.WebToken o) { |
| 1662 buildCounterWebToken++; | 1664 buildCounterWebToken++; |
| 1663 if (buildCounterWebToken < 3) { | 1665 if (buildCounterWebToken < 3) { |
| 1664 unittest.expect(o.name, unittest.equals('foo')); | 1666 unittest.expect(o.name, unittest.equals('foo')); |
| 1665 unittest.expect(o.parentFrameUrl, unittest.equals('foo')); | 1667 unittest.expect(o.parentFrameUrl, unittest.equals('foo')); |
| 1666 checkUnnamed1586(o.permissions); | 1668 checkUnnamed1603(o.permissions); |
| 1667 unittest.expect(o.value, unittest.equals('foo')); | 1669 unittest.expect(o.value, unittest.equals('foo')); |
| 1668 } | 1670 } |
| 1669 buildCounterWebToken--; | 1671 buildCounterWebToken--; |
| 1670 } | 1672 } |
| 1671 | 1673 |
| 1672 | 1674 |
| 1673 main() { | 1675 main() { |
| 1674 unittest.group("obj-schema-ApiLevelCondition", () { | 1676 unittest.group("obj-schema-ApiLevelCondition", () { |
| 1675 unittest.test("to-json--from-json", () { | 1677 unittest.test("to-json--from-json", () { |
| 1676 var o = buildApiLevelCondition(); | 1678 var o = buildApiLevelCondition(); |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3032 res.create(callbackUrl: arg_callbackUrl, projectId: arg_projectId).then(un
ittest.expectAsync1(((api.SignupUrl response) { | 3034 res.create(callbackUrl: arg_callbackUrl, projectId: arg_projectId).then(un
ittest.expectAsync1(((api.SignupUrl response) { |
| 3033 checkSignupUrl(response); | 3035 checkSignupUrl(response); |
| 3034 }))); | 3036 }))); |
| 3035 }); | 3037 }); |
| 3036 | 3038 |
| 3037 }); | 3039 }); |
| 3038 | 3040 |
| 3039 | 3041 |
| 3040 } | 3042 } |
| 3041 | 3043 |
| OLD | NEW |