| OLD | NEW |
| 1 library googleapis.admin.directory_v1.test; | 1 library googleapis.admin.directory_v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (buildCounterAlias < 3) { | 36 if (buildCounterAlias < 3) { |
| 37 unittest.expect(o.alias, unittest.equals('foo')); | 37 unittest.expect(o.alias, unittest.equals('foo')); |
| 38 unittest.expect(o.etag, unittest.equals('foo')); | 38 unittest.expect(o.etag, unittest.equals('foo')); |
| 39 unittest.expect(o.id, unittest.equals('foo')); | 39 unittest.expect(o.id, unittest.equals('foo')); |
| 40 unittest.expect(o.kind, unittest.equals('foo')); | 40 unittest.expect(o.kind, unittest.equals('foo')); |
| 41 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 41 unittest.expect(o.primaryEmail, unittest.equals('foo')); |
| 42 } | 42 } |
| 43 buildCounterAlias--; | 43 buildCounterAlias--; |
| 44 } | 44 } |
| 45 | 45 |
| 46 buildUnnamed919() { | 46 buildUnnamed463() { |
| 47 var o = new core.List<api.Alias>(); | 47 var o = new core.List<api.Alias>(); |
| 48 o.add(buildAlias()); | 48 o.add(buildAlias()); |
| 49 o.add(buildAlias()); | 49 o.add(buildAlias()); |
| 50 return o; | 50 return o; |
| 51 } | 51 } |
| 52 | 52 |
| 53 checkUnnamed919(core.List<api.Alias> o) { | 53 checkUnnamed463(core.List<api.Alias> o) { |
| 54 unittest.expect(o, unittest.hasLength(2)); | 54 unittest.expect(o, unittest.hasLength(2)); |
| 55 checkAlias(o[0]); | 55 checkAlias(o[0]); |
| 56 checkAlias(o[1]); | 56 checkAlias(o[1]); |
| 57 } | 57 } |
| 58 | 58 |
| 59 core.int buildCounterAliases = 0; | 59 core.int buildCounterAliases = 0; |
| 60 buildAliases() { | 60 buildAliases() { |
| 61 var o = new api.Aliases(); | 61 var o = new api.Aliases(); |
| 62 buildCounterAliases++; | 62 buildCounterAliases++; |
| 63 if (buildCounterAliases < 3) { | 63 if (buildCounterAliases < 3) { |
| 64 o.aliases = buildUnnamed919(); | 64 o.aliases = buildUnnamed463(); |
| 65 o.etag = "foo"; | 65 o.etag = "foo"; |
| 66 o.kind = "foo"; | 66 o.kind = "foo"; |
| 67 } | 67 } |
| 68 buildCounterAliases--; | 68 buildCounterAliases--; |
| 69 return o; | 69 return o; |
| 70 } | 70 } |
| 71 | 71 |
| 72 checkAliases(api.Aliases o) { | 72 checkAliases(api.Aliases o) { |
| 73 buildCounterAliases++; | 73 buildCounterAliases++; |
| 74 if (buildCounterAliases < 3) { | 74 if (buildCounterAliases < 3) { |
| 75 checkUnnamed919(o.aliases); | 75 checkUnnamed463(o.aliases); |
| 76 unittest.expect(o.etag, unittest.equals('foo')); | 76 unittest.expect(o.etag, unittest.equals('foo')); |
| 77 unittest.expect(o.kind, unittest.equals('foo')); | 77 unittest.expect(o.kind, unittest.equals('foo')); |
| 78 } | 78 } |
| 79 buildCounterAliases--; | 79 buildCounterAliases--; |
| 80 } | 80 } |
| 81 | 81 |
| 82 core.int buildCounterAsp = 0; | 82 core.int buildCounterAsp = 0; |
| 83 buildAsp() { | 83 buildAsp() { |
| 84 var o = new api.Asp(); | 84 var o = new api.Asp(); |
| 85 buildCounterAsp++; | 85 buildCounterAsp++; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 103 unittest.expect(o.creationTime, unittest.equals('foo')); | 103 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 104 unittest.expect(o.etag, unittest.equals('foo')); | 104 unittest.expect(o.etag, unittest.equals('foo')); |
| 105 unittest.expect(o.kind, unittest.equals('foo')); | 105 unittest.expect(o.kind, unittest.equals('foo')); |
| 106 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); | 106 unittest.expect(o.lastTimeUsed, unittest.equals('foo')); |
| 107 unittest.expect(o.name, unittest.equals('foo')); | 107 unittest.expect(o.name, unittest.equals('foo')); |
| 108 unittest.expect(o.userKey, unittest.equals('foo')); | 108 unittest.expect(o.userKey, unittest.equals('foo')); |
| 109 } | 109 } |
| 110 buildCounterAsp--; | 110 buildCounterAsp--; |
| 111 } | 111 } |
| 112 | 112 |
| 113 buildUnnamed920() { | 113 buildUnnamed464() { |
| 114 var o = new core.List<api.Asp>(); | 114 var o = new core.List<api.Asp>(); |
| 115 o.add(buildAsp()); | 115 o.add(buildAsp()); |
| 116 o.add(buildAsp()); | 116 o.add(buildAsp()); |
| 117 return o; | 117 return o; |
| 118 } | 118 } |
| 119 | 119 |
| 120 checkUnnamed920(core.List<api.Asp> o) { | 120 checkUnnamed464(core.List<api.Asp> o) { |
| 121 unittest.expect(o, unittest.hasLength(2)); | 121 unittest.expect(o, unittest.hasLength(2)); |
| 122 checkAsp(o[0]); | 122 checkAsp(o[0]); |
| 123 checkAsp(o[1]); | 123 checkAsp(o[1]); |
| 124 } | 124 } |
| 125 | 125 |
| 126 core.int buildCounterAsps = 0; | 126 core.int buildCounterAsps = 0; |
| 127 buildAsps() { | 127 buildAsps() { |
| 128 var o = new api.Asps(); | 128 var o = new api.Asps(); |
| 129 buildCounterAsps++; | 129 buildCounterAsps++; |
| 130 if (buildCounterAsps < 3) { | 130 if (buildCounterAsps < 3) { |
| 131 o.etag = "foo"; | 131 o.etag = "foo"; |
| 132 o.items = buildUnnamed920(); | 132 o.items = buildUnnamed464(); |
| 133 o.kind = "foo"; | 133 o.kind = "foo"; |
| 134 } | 134 } |
| 135 buildCounterAsps--; | 135 buildCounterAsps--; |
| 136 return o; | 136 return o; |
| 137 } | 137 } |
| 138 | 138 |
| 139 checkAsps(api.Asps o) { | 139 checkAsps(api.Asps o) { |
| 140 buildCounterAsps++; | 140 buildCounterAsps++; |
| 141 if (buildCounterAsps < 3) { | 141 if (buildCounterAsps < 3) { |
| 142 unittest.expect(o.etag, unittest.equals('foo')); | 142 unittest.expect(o.etag, unittest.equals('foo')); |
| 143 checkUnnamed920(o.items); | 143 checkUnnamed464(o.items); |
| 144 unittest.expect(o.kind, unittest.equals('foo')); | 144 unittest.expect(o.kind, unittest.equals('foo')); |
| 145 } | 145 } |
| 146 buildCounterAsps--; | 146 buildCounterAsps--; |
| 147 } | 147 } |
| 148 | 148 |
| 149 buildUnnamed921() { | 149 buildUnnamed465() { |
| 150 var o = new core.Map<core.String, core.String>(); | 150 var o = new core.Map<core.String, core.String>(); |
| 151 o["x"] = "foo"; | 151 o["x"] = "foo"; |
| 152 o["y"] = "foo"; | 152 o["y"] = "foo"; |
| 153 return o; | 153 return o; |
| 154 } | 154 } |
| 155 | 155 |
| 156 checkUnnamed921(core.Map<core.String, core.String> o) { | 156 checkUnnamed465(core.Map<core.String, core.String> o) { |
| 157 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
| 158 unittest.expect(o["x"], unittest.equals('foo')); | 158 unittest.expect(o["x"], unittest.equals('foo')); |
| 159 unittest.expect(o["y"], unittest.equals('foo')); | 159 unittest.expect(o["y"], unittest.equals('foo')); |
| 160 } | 160 } |
| 161 | 161 |
| 162 core.int buildCounterChannel = 0; | 162 core.int buildCounterChannel = 0; |
| 163 buildChannel() { | 163 buildChannel() { |
| 164 var o = new api.Channel(); | 164 var o = new api.Channel(); |
| 165 buildCounterChannel++; | 165 buildCounterChannel++; |
| 166 if (buildCounterChannel < 3) { | 166 if (buildCounterChannel < 3) { |
| 167 o.address = "foo"; | 167 o.address = "foo"; |
| 168 o.expiration = "foo"; | 168 o.expiration = "foo"; |
| 169 o.id = "foo"; | 169 o.id = "foo"; |
| 170 o.kind = "foo"; | 170 o.kind = "foo"; |
| 171 o.params = buildUnnamed921(); | 171 o.params = buildUnnamed465(); |
| 172 o.payload = true; | 172 o.payload = true; |
| 173 o.resourceId = "foo"; | 173 o.resourceId = "foo"; |
| 174 o.resourceUri = "foo"; | 174 o.resourceUri = "foo"; |
| 175 o.token = "foo"; | 175 o.token = "foo"; |
| 176 o.type = "foo"; | 176 o.type = "foo"; |
| 177 } | 177 } |
| 178 buildCounterChannel--; | 178 buildCounterChannel--; |
| 179 return o; | 179 return o; |
| 180 } | 180 } |
| 181 | 181 |
| 182 checkChannel(api.Channel o) { | 182 checkChannel(api.Channel o) { |
| 183 buildCounterChannel++; | 183 buildCounterChannel++; |
| 184 if (buildCounterChannel < 3) { | 184 if (buildCounterChannel < 3) { |
| 185 unittest.expect(o.address, unittest.equals('foo')); | 185 unittest.expect(o.address, unittest.equals('foo')); |
| 186 unittest.expect(o.expiration, unittest.equals('foo')); | 186 unittest.expect(o.expiration, unittest.equals('foo')); |
| 187 unittest.expect(o.id, unittest.equals('foo')); | 187 unittest.expect(o.id, unittest.equals('foo')); |
| 188 unittest.expect(o.kind, unittest.equals('foo')); | 188 unittest.expect(o.kind, unittest.equals('foo')); |
| 189 checkUnnamed921(o.params); | 189 checkUnnamed465(o.params); |
| 190 unittest.expect(o.payload, unittest.isTrue); | 190 unittest.expect(o.payload, unittest.isTrue); |
| 191 unittest.expect(o.resourceId, unittest.equals('foo')); | 191 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 192 unittest.expect(o.resourceUri, unittest.equals('foo')); | 192 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 193 unittest.expect(o.token, unittest.equals('foo')); | 193 unittest.expect(o.token, unittest.equals('foo')); |
| 194 unittest.expect(o.type, unittest.equals('foo')); | 194 unittest.expect(o.type, unittest.equals('foo')); |
| 195 } | 195 } |
| 196 buildCounterChannel--; | 196 buildCounterChannel--; |
| 197 } | 197 } |
| 198 | 198 |
| 199 core.int buildCounterChromeOsDeviceActiveTimeRanges = 0; |
| 200 buildChromeOsDeviceActiveTimeRanges() { |
| 201 var o = new api.ChromeOsDeviceActiveTimeRanges(); |
| 202 buildCounterChromeOsDeviceActiveTimeRanges++; |
| 203 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { |
| 204 o.activeTime = 42; |
| 205 o.date = core.DateTime.parse("2002-02-27T14:01:02Z"); |
| 206 } |
| 207 buildCounterChromeOsDeviceActiveTimeRanges--; |
| 208 return o; |
| 209 } |
| 210 |
| 211 checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) { |
| 212 buildCounterChromeOsDeviceActiveTimeRanges++; |
| 213 if (buildCounterChromeOsDeviceActiveTimeRanges < 3) { |
| 214 unittest.expect(o.activeTime, unittest.equals(42)); |
| 215 unittest.expect(o.date, unittest.equals(core.DateTime.parse("2002-02-27T00:0
0:00"))); |
| 216 } |
| 217 buildCounterChromeOsDeviceActiveTimeRanges--; |
| 218 } |
| 219 |
| 220 buildUnnamed466() { |
| 221 var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); |
| 222 o.add(buildChromeOsDeviceActiveTimeRanges()); |
| 223 o.add(buildChromeOsDeviceActiveTimeRanges()); |
| 224 return o; |
| 225 } |
| 226 |
| 227 checkUnnamed466(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { |
| 228 unittest.expect(o, unittest.hasLength(2)); |
| 229 checkChromeOsDeviceActiveTimeRanges(o[0]); |
| 230 checkChromeOsDeviceActiveTimeRanges(o[1]); |
| 231 } |
| 232 |
| 199 core.int buildCounterChromeOsDeviceRecentUsers = 0; | 233 core.int buildCounterChromeOsDeviceRecentUsers = 0; |
| 200 buildChromeOsDeviceRecentUsers() { | 234 buildChromeOsDeviceRecentUsers() { |
| 201 var o = new api.ChromeOsDeviceRecentUsers(); | 235 var o = new api.ChromeOsDeviceRecentUsers(); |
| 202 buildCounterChromeOsDeviceRecentUsers++; | 236 buildCounterChromeOsDeviceRecentUsers++; |
| 203 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 237 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
| 204 o.email = "foo"; | 238 o.email = "foo"; |
| 205 o.type = "foo"; | 239 o.type = "foo"; |
| 206 } | 240 } |
| 207 buildCounterChromeOsDeviceRecentUsers--; | 241 buildCounterChromeOsDeviceRecentUsers--; |
| 208 return o; | 242 return o; |
| 209 } | 243 } |
| 210 | 244 |
| 211 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { | 245 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { |
| 212 buildCounterChromeOsDeviceRecentUsers++; | 246 buildCounterChromeOsDeviceRecentUsers++; |
| 213 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 247 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
| 214 unittest.expect(o.email, unittest.equals('foo')); | 248 unittest.expect(o.email, unittest.equals('foo')); |
| 215 unittest.expect(o.type, unittest.equals('foo')); | 249 unittest.expect(o.type, unittest.equals('foo')); |
| 216 } | 250 } |
| 217 buildCounterChromeOsDeviceRecentUsers--; | 251 buildCounterChromeOsDeviceRecentUsers--; |
| 218 } | 252 } |
| 219 | 253 |
| 220 buildUnnamed922() { | 254 buildUnnamed467() { |
| 221 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); | 255 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); |
| 222 o.add(buildChromeOsDeviceRecentUsers()); | 256 o.add(buildChromeOsDeviceRecentUsers()); |
| 223 o.add(buildChromeOsDeviceRecentUsers()); | 257 o.add(buildChromeOsDeviceRecentUsers()); |
| 224 return o; | 258 return o; |
| 225 } | 259 } |
| 226 | 260 |
| 227 checkUnnamed922(core.List<api.ChromeOsDeviceRecentUsers> o) { | 261 checkUnnamed467(core.List<api.ChromeOsDeviceRecentUsers> o) { |
| 228 unittest.expect(o, unittest.hasLength(2)); | 262 unittest.expect(o, unittest.hasLength(2)); |
| 229 checkChromeOsDeviceRecentUsers(o[0]); | 263 checkChromeOsDeviceRecentUsers(o[0]); |
| 230 checkChromeOsDeviceRecentUsers(o[1]); | 264 checkChromeOsDeviceRecentUsers(o[1]); |
| 231 } | 265 } |
| 232 | 266 |
| 233 core.int buildCounterChromeOsDevice = 0; | 267 core.int buildCounterChromeOsDevice = 0; |
| 234 buildChromeOsDevice() { | 268 buildChromeOsDevice() { |
| 235 var o = new api.ChromeOsDevice(); | 269 var o = new api.ChromeOsDevice(); |
| 236 buildCounterChromeOsDevice++; | 270 buildCounterChromeOsDevice++; |
| 237 if (buildCounterChromeOsDevice < 3) { | 271 if (buildCounterChromeOsDevice < 3) { |
| 272 o.activeTimeRanges = buildUnnamed466(); |
| 238 o.annotatedLocation = "foo"; | 273 o.annotatedLocation = "foo"; |
| 239 o.annotatedUser = "foo"; | 274 o.annotatedUser = "foo"; |
| 240 o.bootMode = "foo"; | 275 o.bootMode = "foo"; |
| 241 o.deviceId = "foo"; | 276 o.deviceId = "foo"; |
| 242 o.etag = "foo"; | 277 o.etag = "foo"; |
| 243 o.ethernetMacAddress = "foo"; | 278 o.ethernetMacAddress = "foo"; |
| 244 o.firmwareVersion = "foo"; | 279 o.firmwareVersion = "foo"; |
| 245 o.kind = "foo"; | 280 o.kind = "foo"; |
| 246 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); | 281 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 247 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 282 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 248 o.macAddress = "foo"; | 283 o.macAddress = "foo"; |
| 249 o.meid = "foo"; | 284 o.meid = "foo"; |
| 250 o.model = "foo"; | 285 o.model = "foo"; |
| 251 o.notes = "foo"; | 286 o.notes = "foo"; |
| 252 o.orderNumber = "foo"; | 287 o.orderNumber = "foo"; |
| 253 o.orgUnitPath = "foo"; | 288 o.orgUnitPath = "foo"; |
| 254 o.osVersion = "foo"; | 289 o.osVersion = "foo"; |
| 255 o.platformVersion = "foo"; | 290 o.platformVersion = "foo"; |
| 256 o.recentUsers = buildUnnamed922(); | 291 o.recentUsers = buildUnnamed467(); |
| 257 o.serialNumber = "foo"; | 292 o.serialNumber = "foo"; |
| 258 o.status = "foo"; | 293 o.status = "foo"; |
| 259 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); | 294 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 260 o.willAutoRenew = true; | 295 o.willAutoRenew = true; |
| 261 } | 296 } |
| 262 buildCounterChromeOsDevice--; | 297 buildCounterChromeOsDevice--; |
| 263 return o; | 298 return o; |
| 264 } | 299 } |
| 265 | 300 |
| 266 checkChromeOsDevice(api.ChromeOsDevice o) { | 301 checkChromeOsDevice(api.ChromeOsDevice o) { |
| 267 buildCounterChromeOsDevice++; | 302 buildCounterChromeOsDevice++; |
| 268 if (buildCounterChromeOsDevice < 3) { | 303 if (buildCounterChromeOsDevice < 3) { |
| 304 checkUnnamed466(o.activeTimeRanges); |
| 269 unittest.expect(o.annotatedLocation, unittest.equals('foo')); | 305 unittest.expect(o.annotatedLocation, unittest.equals('foo')); |
| 270 unittest.expect(o.annotatedUser, unittest.equals('foo')); | 306 unittest.expect(o.annotatedUser, unittest.equals('foo')); |
| 271 unittest.expect(o.bootMode, unittest.equals('foo')); | 307 unittest.expect(o.bootMode, unittest.equals('foo')); |
| 272 unittest.expect(o.deviceId, unittest.equals('foo')); | 308 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 273 unittest.expect(o.etag, unittest.equals('foo')); | 309 unittest.expect(o.etag, unittest.equals('foo')); |
| 274 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); | 310 unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); |
| 275 unittest.expect(o.firmwareVersion, unittest.equals('foo')); | 311 unittest.expect(o.firmwareVersion, unittest.equals('foo')); |
| 276 unittest.expect(o.kind, unittest.equals('foo')); | 312 unittest.expect(o.kind, unittest.equals('foo')); |
| 277 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 313 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
| 278 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 314 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 279 unittest.expect(o.macAddress, unittest.equals('foo')); | 315 unittest.expect(o.macAddress, unittest.equals('foo')); |
| 280 unittest.expect(o.meid, unittest.equals('foo')); | 316 unittest.expect(o.meid, unittest.equals('foo')); |
| 281 unittest.expect(o.model, unittest.equals('foo')); | 317 unittest.expect(o.model, unittest.equals('foo')); |
| 282 unittest.expect(o.notes, unittest.equals('foo')); | 318 unittest.expect(o.notes, unittest.equals('foo')); |
| 283 unittest.expect(o.orderNumber, unittest.equals('foo')); | 319 unittest.expect(o.orderNumber, unittest.equals('foo')); |
| 284 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 320 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 285 unittest.expect(o.osVersion, unittest.equals('foo')); | 321 unittest.expect(o.osVersion, unittest.equals('foo')); |
| 286 unittest.expect(o.platformVersion, unittest.equals('foo')); | 322 unittest.expect(o.platformVersion, unittest.equals('foo')); |
| 287 checkUnnamed922(o.recentUsers); | 323 checkUnnamed467(o.recentUsers); |
| 288 unittest.expect(o.serialNumber, unittest.equals('foo')); | 324 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 289 unittest.expect(o.status, unittest.equals('foo')); | 325 unittest.expect(o.status, unittest.equals('foo')); |
| 290 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 326 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
| 291 unittest.expect(o.willAutoRenew, unittest.isTrue); | 327 unittest.expect(o.willAutoRenew, unittest.isTrue); |
| 292 } | 328 } |
| 293 buildCounterChromeOsDevice--; | 329 buildCounterChromeOsDevice--; |
| 294 } | 330 } |
| 295 | 331 |
| 296 buildUnnamed923() { | 332 buildUnnamed468() { |
| 297 var o = new core.List<api.ChromeOsDevice>(); | 333 var o = new core.List<api.ChromeOsDevice>(); |
| 298 o.add(buildChromeOsDevice()); | 334 o.add(buildChromeOsDevice()); |
| 299 o.add(buildChromeOsDevice()); | 335 o.add(buildChromeOsDevice()); |
| 300 return o; | 336 return o; |
| 301 } | 337 } |
| 302 | 338 |
| 303 checkUnnamed923(core.List<api.ChromeOsDevice> o) { | 339 checkUnnamed468(core.List<api.ChromeOsDevice> o) { |
| 304 unittest.expect(o, unittest.hasLength(2)); | 340 unittest.expect(o, unittest.hasLength(2)); |
| 305 checkChromeOsDevice(o[0]); | 341 checkChromeOsDevice(o[0]); |
| 306 checkChromeOsDevice(o[1]); | 342 checkChromeOsDevice(o[1]); |
| 307 } | 343 } |
| 308 | 344 |
| 309 core.int buildCounterChromeOsDevices = 0; | 345 core.int buildCounterChromeOsDevices = 0; |
| 310 buildChromeOsDevices() { | 346 buildChromeOsDevices() { |
| 311 var o = new api.ChromeOsDevices(); | 347 var o = new api.ChromeOsDevices(); |
| 312 buildCounterChromeOsDevices++; | 348 buildCounterChromeOsDevices++; |
| 313 if (buildCounterChromeOsDevices < 3) { | 349 if (buildCounterChromeOsDevices < 3) { |
| 314 o.chromeosdevices = buildUnnamed923(); | 350 o.chromeosdevices = buildUnnamed468(); |
| 315 o.etag = "foo"; | 351 o.etag = "foo"; |
| 316 o.kind = "foo"; | 352 o.kind = "foo"; |
| 317 o.nextPageToken = "foo"; | 353 o.nextPageToken = "foo"; |
| 318 } | 354 } |
| 319 buildCounterChromeOsDevices--; | 355 buildCounterChromeOsDevices--; |
| 320 return o; | 356 return o; |
| 321 } | 357 } |
| 322 | 358 |
| 323 checkChromeOsDevices(api.ChromeOsDevices o) { | 359 checkChromeOsDevices(api.ChromeOsDevices o) { |
| 324 buildCounterChromeOsDevices++; | 360 buildCounterChromeOsDevices++; |
| 325 if (buildCounterChromeOsDevices < 3) { | 361 if (buildCounterChromeOsDevices < 3) { |
| 326 checkUnnamed923(o.chromeosdevices); | 362 checkUnnamed468(o.chromeosdevices); |
| 327 unittest.expect(o.etag, unittest.equals('foo')); | 363 unittest.expect(o.etag, unittest.equals('foo')); |
| 328 unittest.expect(o.kind, unittest.equals('foo')); | 364 unittest.expect(o.kind, unittest.equals('foo')); |
| 329 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 365 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 330 } | 366 } |
| 331 buildCounterChromeOsDevices--; | 367 buildCounterChromeOsDevices--; |
| 332 } | 368 } |
| 333 | 369 |
| 334 buildUnnamed924() { | 370 buildUnnamed469() { |
| 335 var o = new core.List<core.String>(); | 371 var o = new core.List<core.String>(); |
| 336 o.add("foo"); | 372 o.add("foo"); |
| 337 o.add("foo"); | 373 o.add("foo"); |
| 338 return o; | 374 return o; |
| 339 } | 375 } |
| 340 | 376 |
| 341 checkUnnamed924(core.List<core.String> o) { | 377 checkUnnamed469(core.List<core.String> o) { |
| 342 unittest.expect(o, unittest.hasLength(2)); | 378 unittest.expect(o, unittest.hasLength(2)); |
| 343 unittest.expect(o[0], unittest.equals('foo')); | 379 unittest.expect(o[0], unittest.equals('foo')); |
| 344 unittest.expect(o[1], unittest.equals('foo')); | 380 unittest.expect(o[1], unittest.equals('foo')); |
| 345 } | 381 } |
| 346 | 382 |
| 347 buildUnnamed925() { | 383 buildUnnamed470() { |
| 348 var o = new core.List<core.String>(); | 384 var o = new core.List<core.String>(); |
| 349 o.add("foo"); | 385 o.add("foo"); |
| 350 o.add("foo"); | 386 o.add("foo"); |
| 351 return o; | 387 return o; |
| 352 } | 388 } |
| 353 | 389 |
| 354 checkUnnamed925(core.List<core.String> o) { | 390 checkUnnamed470(core.List<core.String> o) { |
| 355 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
| 356 unittest.expect(o[0], unittest.equals('foo')); | 392 unittest.expect(o[0], unittest.equals('foo')); |
| 357 unittest.expect(o[1], unittest.equals('foo')); | 393 unittest.expect(o[1], unittest.equals('foo')); |
| 358 } | 394 } |
| 359 | 395 |
| 360 core.int buildCounterGroup = 0; | 396 core.int buildCounterGroup = 0; |
| 361 buildGroup() { | 397 buildGroup() { |
| 362 var o = new api.Group(); | 398 var o = new api.Group(); |
| 363 buildCounterGroup++; | 399 buildCounterGroup++; |
| 364 if (buildCounterGroup < 3) { | 400 if (buildCounterGroup < 3) { |
| 365 o.adminCreated = true; | 401 o.adminCreated = true; |
| 366 o.aliases = buildUnnamed924(); | 402 o.aliases = buildUnnamed469(); |
| 367 o.description = "foo"; | 403 o.description = "foo"; |
| 368 o.directMembersCount = "foo"; | 404 o.directMembersCount = "foo"; |
| 369 o.email = "foo"; | 405 o.email = "foo"; |
| 370 o.etag = "foo"; | 406 o.etag = "foo"; |
| 371 o.id = "foo"; | 407 o.id = "foo"; |
| 372 o.kind = "foo"; | 408 o.kind = "foo"; |
| 373 o.name = "foo"; | 409 o.name = "foo"; |
| 374 o.nonEditableAliases = buildUnnamed925(); | 410 o.nonEditableAliases = buildUnnamed470(); |
| 375 } | 411 } |
| 376 buildCounterGroup--; | 412 buildCounterGroup--; |
| 377 return o; | 413 return o; |
| 378 } | 414 } |
| 379 | 415 |
| 380 checkGroup(api.Group o) { | 416 checkGroup(api.Group o) { |
| 381 buildCounterGroup++; | 417 buildCounterGroup++; |
| 382 if (buildCounterGroup < 3) { | 418 if (buildCounterGroup < 3) { |
| 383 unittest.expect(o.adminCreated, unittest.isTrue); | 419 unittest.expect(o.adminCreated, unittest.isTrue); |
| 384 checkUnnamed924(o.aliases); | 420 checkUnnamed469(o.aliases); |
| 385 unittest.expect(o.description, unittest.equals('foo')); | 421 unittest.expect(o.description, unittest.equals('foo')); |
| 386 unittest.expect(o.directMembersCount, unittest.equals('foo')); | 422 unittest.expect(o.directMembersCount, unittest.equals('foo')); |
| 387 unittest.expect(o.email, unittest.equals('foo')); | 423 unittest.expect(o.email, unittest.equals('foo')); |
| 388 unittest.expect(o.etag, unittest.equals('foo')); | 424 unittest.expect(o.etag, unittest.equals('foo')); |
| 389 unittest.expect(o.id, unittest.equals('foo')); | 425 unittest.expect(o.id, unittest.equals('foo')); |
| 390 unittest.expect(o.kind, unittest.equals('foo')); | 426 unittest.expect(o.kind, unittest.equals('foo')); |
| 391 unittest.expect(o.name, unittest.equals('foo')); | 427 unittest.expect(o.name, unittest.equals('foo')); |
| 392 checkUnnamed925(o.nonEditableAliases); | 428 checkUnnamed470(o.nonEditableAliases); |
| 393 } | 429 } |
| 394 buildCounterGroup--; | 430 buildCounterGroup--; |
| 395 } | 431 } |
| 396 | 432 |
| 397 buildUnnamed926() { | 433 buildUnnamed471() { |
| 398 var o = new core.List<api.Group>(); | 434 var o = new core.List<api.Group>(); |
| 399 o.add(buildGroup()); | 435 o.add(buildGroup()); |
| 400 o.add(buildGroup()); | 436 o.add(buildGroup()); |
| 401 return o; | 437 return o; |
| 402 } | 438 } |
| 403 | 439 |
| 404 checkUnnamed926(core.List<api.Group> o) { | 440 checkUnnamed471(core.List<api.Group> o) { |
| 405 unittest.expect(o, unittest.hasLength(2)); | 441 unittest.expect(o, unittest.hasLength(2)); |
| 406 checkGroup(o[0]); | 442 checkGroup(o[0]); |
| 407 checkGroup(o[1]); | 443 checkGroup(o[1]); |
| 408 } | 444 } |
| 409 | 445 |
| 410 core.int buildCounterGroups = 0; | 446 core.int buildCounterGroups = 0; |
| 411 buildGroups() { | 447 buildGroups() { |
| 412 var o = new api.Groups(); | 448 var o = new api.Groups(); |
| 413 buildCounterGroups++; | 449 buildCounterGroups++; |
| 414 if (buildCounterGroups < 3) { | 450 if (buildCounterGroups < 3) { |
| 415 o.etag = "foo"; | 451 o.etag = "foo"; |
| 416 o.groups = buildUnnamed926(); | 452 o.groups = buildUnnamed471(); |
| 417 o.kind = "foo"; | 453 o.kind = "foo"; |
| 418 o.nextPageToken = "foo"; | 454 o.nextPageToken = "foo"; |
| 419 } | 455 } |
| 420 buildCounterGroups--; | 456 buildCounterGroups--; |
| 421 return o; | 457 return o; |
| 422 } | 458 } |
| 423 | 459 |
| 424 checkGroups(api.Groups o) { | 460 checkGroups(api.Groups o) { |
| 425 buildCounterGroups++; | 461 buildCounterGroups++; |
| 426 if (buildCounterGroups < 3) { | 462 if (buildCounterGroups < 3) { |
| 427 unittest.expect(o.etag, unittest.equals('foo')); | 463 unittest.expect(o.etag, unittest.equals('foo')); |
| 428 checkUnnamed926(o.groups); | 464 checkUnnamed471(o.groups); |
| 429 unittest.expect(o.kind, unittest.equals('foo')); | 465 unittest.expect(o.kind, unittest.equals('foo')); |
| 430 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 466 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 431 } | 467 } |
| 432 buildCounterGroups--; | 468 buildCounterGroups--; |
| 433 } | 469 } |
| 434 | 470 |
| 435 core.int buildCounterMember = 0; | 471 core.int buildCounterMember = 0; |
| 436 buildMember() { | 472 buildMember() { |
| 437 var o = new api.Member(); | 473 var o = new api.Member(); |
| 438 buildCounterMember++; | 474 buildCounterMember++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 454 unittest.expect(o.email, unittest.equals('foo')); | 490 unittest.expect(o.email, unittest.equals('foo')); |
| 455 unittest.expect(o.etag, unittest.equals('foo')); | 491 unittest.expect(o.etag, unittest.equals('foo')); |
| 456 unittest.expect(o.id, unittest.equals('foo')); | 492 unittest.expect(o.id, unittest.equals('foo')); |
| 457 unittest.expect(o.kind, unittest.equals('foo')); | 493 unittest.expect(o.kind, unittest.equals('foo')); |
| 458 unittest.expect(o.role, unittest.equals('foo')); | 494 unittest.expect(o.role, unittest.equals('foo')); |
| 459 unittest.expect(o.type, unittest.equals('foo')); | 495 unittest.expect(o.type, unittest.equals('foo')); |
| 460 } | 496 } |
| 461 buildCounterMember--; | 497 buildCounterMember--; |
| 462 } | 498 } |
| 463 | 499 |
| 464 buildUnnamed927() { | 500 buildUnnamed472() { |
| 465 var o = new core.List<api.Member>(); | 501 var o = new core.List<api.Member>(); |
| 466 o.add(buildMember()); | 502 o.add(buildMember()); |
| 467 o.add(buildMember()); | 503 o.add(buildMember()); |
| 468 return o; | 504 return o; |
| 469 } | 505 } |
| 470 | 506 |
| 471 checkUnnamed927(core.List<api.Member> o) { | 507 checkUnnamed472(core.List<api.Member> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
| 473 checkMember(o[0]); | 509 checkMember(o[0]); |
| 474 checkMember(o[1]); | 510 checkMember(o[1]); |
| 475 } | 511 } |
| 476 | 512 |
| 477 core.int buildCounterMembers = 0; | 513 core.int buildCounterMembers = 0; |
| 478 buildMembers() { | 514 buildMembers() { |
| 479 var o = new api.Members(); | 515 var o = new api.Members(); |
| 480 buildCounterMembers++; | 516 buildCounterMembers++; |
| 481 if (buildCounterMembers < 3) { | 517 if (buildCounterMembers < 3) { |
| 482 o.etag = "foo"; | 518 o.etag = "foo"; |
| 483 o.kind = "foo"; | 519 o.kind = "foo"; |
| 484 o.members = buildUnnamed927(); | 520 o.members = buildUnnamed472(); |
| 485 o.nextPageToken = "foo"; | 521 o.nextPageToken = "foo"; |
| 486 } | 522 } |
| 487 buildCounterMembers--; | 523 buildCounterMembers--; |
| 488 return o; | 524 return o; |
| 489 } | 525 } |
| 490 | 526 |
| 491 checkMembers(api.Members o) { | 527 checkMembers(api.Members o) { |
| 492 buildCounterMembers++; | 528 buildCounterMembers++; |
| 493 if (buildCounterMembers < 3) { | 529 if (buildCounterMembers < 3) { |
| 494 unittest.expect(o.etag, unittest.equals('foo')); | 530 unittest.expect(o.etag, unittest.equals('foo')); |
| 495 unittest.expect(o.kind, unittest.equals('foo')); | 531 unittest.expect(o.kind, unittest.equals('foo')); |
| 496 checkUnnamed927(o.members); | 532 checkUnnamed472(o.members); |
| 497 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 533 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 498 } | 534 } |
| 499 buildCounterMembers--; | 535 buildCounterMembers--; |
| 500 } | 536 } |
| 501 | 537 |
| 502 buildUnnamed928() { | 538 buildUnnamed473() { |
| 503 var o = new core.List<core.String>(); | 539 var o = new core.List<core.String>(); |
| 504 o.add("foo"); | 540 o.add("foo"); |
| 505 o.add("foo"); | 541 o.add("foo"); |
| 506 return o; | 542 return o; |
| 507 } | 543 } |
| 508 | 544 |
| 509 checkUnnamed928(core.List<core.String> o) { | 545 checkUnnamed473(core.List<core.String> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
| 511 unittest.expect(o[0], unittest.equals('foo')); | 547 unittest.expect(o[0], unittest.equals('foo')); |
| 512 unittest.expect(o[1], unittest.equals('foo')); | 548 unittest.expect(o[1], unittest.equals('foo')); |
| 513 } | 549 } |
| 514 | 550 |
| 515 core.int buildCounterMobileDeviceApplications = 0; | 551 core.int buildCounterMobileDeviceApplications = 0; |
| 516 buildMobileDeviceApplications() { | 552 buildMobileDeviceApplications() { |
| 517 var o = new api.MobileDeviceApplications(); | 553 var o = new api.MobileDeviceApplications(); |
| 518 buildCounterMobileDeviceApplications++; | 554 buildCounterMobileDeviceApplications++; |
| 519 if (buildCounterMobileDeviceApplications < 3) { | 555 if (buildCounterMobileDeviceApplications < 3) { |
| 520 o.displayName = "foo"; | 556 o.displayName = "foo"; |
| 521 o.packageName = "foo"; | 557 o.packageName = "foo"; |
| 522 o.permission = buildUnnamed928(); | 558 o.permission = buildUnnamed473(); |
| 523 o.versionCode = 42; | 559 o.versionCode = 42; |
| 524 o.versionName = "foo"; | 560 o.versionName = "foo"; |
| 525 } | 561 } |
| 526 buildCounterMobileDeviceApplications--; | 562 buildCounterMobileDeviceApplications--; |
| 527 return o; | 563 return o; |
| 528 } | 564 } |
| 529 | 565 |
| 530 checkMobileDeviceApplications(api.MobileDeviceApplications o) { | 566 checkMobileDeviceApplications(api.MobileDeviceApplications o) { |
| 531 buildCounterMobileDeviceApplications++; | 567 buildCounterMobileDeviceApplications++; |
| 532 if (buildCounterMobileDeviceApplications < 3) { | 568 if (buildCounterMobileDeviceApplications < 3) { |
| 533 unittest.expect(o.displayName, unittest.equals('foo')); | 569 unittest.expect(o.displayName, unittest.equals('foo')); |
| 534 unittest.expect(o.packageName, unittest.equals('foo')); | 570 unittest.expect(o.packageName, unittest.equals('foo')); |
| 535 checkUnnamed928(o.permission); | 571 checkUnnamed473(o.permission); |
| 536 unittest.expect(o.versionCode, unittest.equals(42)); | 572 unittest.expect(o.versionCode, unittest.equals(42)); |
| 537 unittest.expect(o.versionName, unittest.equals('foo')); | 573 unittest.expect(o.versionName, unittest.equals('foo')); |
| 538 } | 574 } |
| 539 buildCounterMobileDeviceApplications--; | 575 buildCounterMobileDeviceApplications--; |
| 540 } | 576 } |
| 541 | 577 |
| 542 buildUnnamed929() { | 578 buildUnnamed474() { |
| 543 var o = new core.List<api.MobileDeviceApplications>(); | 579 var o = new core.List<api.MobileDeviceApplications>(); |
| 544 o.add(buildMobileDeviceApplications()); | 580 o.add(buildMobileDeviceApplications()); |
| 545 o.add(buildMobileDeviceApplications()); | 581 o.add(buildMobileDeviceApplications()); |
| 546 return o; | 582 return o; |
| 547 } | 583 } |
| 548 | 584 |
| 549 checkUnnamed929(core.List<api.MobileDeviceApplications> o) { | 585 checkUnnamed474(core.List<api.MobileDeviceApplications> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); | 586 unittest.expect(o, unittest.hasLength(2)); |
| 551 checkMobileDeviceApplications(o[0]); | 587 checkMobileDeviceApplications(o[0]); |
| 552 checkMobileDeviceApplications(o[1]); | 588 checkMobileDeviceApplications(o[1]); |
| 553 } | 589 } |
| 554 | 590 |
| 555 buildUnnamed930() { | 591 buildUnnamed475() { |
| 556 var o = new core.List<core.String>(); | 592 var o = new core.List<core.String>(); |
| 557 o.add("foo"); | 593 o.add("foo"); |
| 558 o.add("foo"); | 594 o.add("foo"); |
| 559 return o; | 595 return o; |
| 560 } | 596 } |
| 561 | 597 |
| 562 checkUnnamed930(core.List<core.String> o) { | 598 checkUnnamed475(core.List<core.String> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
| 564 unittest.expect(o[0], unittest.equals('foo')); | 600 unittest.expect(o[0], unittest.equals('foo')); |
| 565 unittest.expect(o[1], unittest.equals('foo')); | 601 unittest.expect(o[1], unittest.equals('foo')); |
| 566 } | 602 } |
| 567 | 603 |
| 568 buildUnnamed931() { | 604 buildUnnamed476() { |
| 569 var o = new core.List<core.String>(); | 605 var o = new core.List<core.String>(); |
| 570 o.add("foo"); | 606 o.add("foo"); |
| 571 o.add("foo"); | 607 o.add("foo"); |
| 572 return o; | 608 return o; |
| 573 } | 609 } |
| 574 | 610 |
| 575 checkUnnamed931(core.List<core.String> o) { | 611 checkUnnamed476(core.List<core.String> o) { |
| 576 unittest.expect(o, unittest.hasLength(2)); | 612 unittest.expect(o, unittest.hasLength(2)); |
| 577 unittest.expect(o[0], unittest.equals('foo')); | 613 unittest.expect(o[0], unittest.equals('foo')); |
| 578 unittest.expect(o[1], unittest.equals('foo')); | 614 unittest.expect(o[1], unittest.equals('foo')); |
| 579 } | 615 } |
| 580 | 616 |
| 581 core.int buildCounterMobileDevice = 0; | 617 core.int buildCounterMobileDevice = 0; |
| 582 buildMobileDevice() { | 618 buildMobileDevice() { |
| 583 var o = new api.MobileDevice(); | 619 var o = new api.MobileDevice(); |
| 584 buildCounterMobileDevice++; | 620 buildCounterMobileDevice++; |
| 585 if (buildCounterMobileDevice < 3) { | 621 if (buildCounterMobileDevice < 3) { |
| 586 o.applications = buildUnnamed929(); | 622 o.applications = buildUnnamed474(); |
| 587 o.basebandVersion = "foo"; | 623 o.basebandVersion = "foo"; |
| 588 o.buildNumber = "foo"; | 624 o.buildNumber = "foo"; |
| 589 o.defaultLanguage = "foo"; | 625 o.defaultLanguage = "foo"; |
| 590 o.deviceCompromisedStatus = "foo"; | 626 o.deviceCompromisedStatus = "foo"; |
| 591 o.deviceId = "foo"; | 627 o.deviceId = "foo"; |
| 592 o.email = buildUnnamed930(); | 628 o.email = buildUnnamed475(); |
| 593 o.etag = "foo"; | 629 o.etag = "foo"; |
| 594 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); | 630 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 595 o.hardwareId = "foo"; | 631 o.hardwareId = "foo"; |
| 596 o.imei = "foo"; | 632 o.imei = "foo"; |
| 597 o.kernelVersion = "foo"; | 633 o.kernelVersion = "foo"; |
| 598 o.kind = "foo"; | 634 o.kind = "foo"; |
| 599 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 635 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 600 o.managedAccountIsOnOwnerProfile = true; | 636 o.managedAccountIsOnOwnerProfile = true; |
| 601 o.meid = "foo"; | 637 o.meid = "foo"; |
| 602 o.model = "foo"; | 638 o.model = "foo"; |
| 603 o.name = buildUnnamed931(); | 639 o.name = buildUnnamed476(); |
| 604 o.networkOperator = "foo"; | 640 o.networkOperator = "foo"; |
| 605 o.os = "foo"; | 641 o.os = "foo"; |
| 606 o.resourceId = "foo"; | 642 o.resourceId = "foo"; |
| 607 o.serialNumber = "foo"; | 643 o.serialNumber = "foo"; |
| 608 o.status = "foo"; | 644 o.status = "foo"; |
| 609 o.type = "foo"; | 645 o.type = "foo"; |
| 610 o.userAgent = "foo"; | 646 o.userAgent = "foo"; |
| 611 o.wifiMacAddress = "foo"; | 647 o.wifiMacAddress = "foo"; |
| 612 } | 648 } |
| 613 buildCounterMobileDevice--; | 649 buildCounterMobileDevice--; |
| 614 return o; | 650 return o; |
| 615 } | 651 } |
| 616 | 652 |
| 617 checkMobileDevice(api.MobileDevice o) { | 653 checkMobileDevice(api.MobileDevice o) { |
| 618 buildCounterMobileDevice++; | 654 buildCounterMobileDevice++; |
| 619 if (buildCounterMobileDevice < 3) { | 655 if (buildCounterMobileDevice < 3) { |
| 620 checkUnnamed929(o.applications); | 656 checkUnnamed474(o.applications); |
| 621 unittest.expect(o.basebandVersion, unittest.equals('foo')); | 657 unittest.expect(o.basebandVersion, unittest.equals('foo')); |
| 622 unittest.expect(o.buildNumber, unittest.equals('foo')); | 658 unittest.expect(o.buildNumber, unittest.equals('foo')); |
| 623 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 659 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
| 624 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); | 660 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); |
| 625 unittest.expect(o.deviceId, unittest.equals('foo')); | 661 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 626 checkUnnamed930(o.email); | 662 checkUnnamed475(o.email); |
| 627 unittest.expect(o.etag, unittest.equals('foo')); | 663 unittest.expect(o.etag, unittest.equals('foo')); |
| 628 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 664 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 629 unittest.expect(o.hardwareId, unittest.equals('foo')); | 665 unittest.expect(o.hardwareId, unittest.equals('foo')); |
| 630 unittest.expect(o.imei, unittest.equals('foo')); | 666 unittest.expect(o.imei, unittest.equals('foo')); |
| 631 unittest.expect(o.kernelVersion, unittest.equals('foo')); | 667 unittest.expect(o.kernelVersion, unittest.equals('foo')); |
| 632 unittest.expect(o.kind, unittest.equals('foo')); | 668 unittest.expect(o.kind, unittest.equals('foo')); |
| 633 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 669 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 634 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); | 670 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); |
| 635 unittest.expect(o.meid, unittest.equals('foo')); | 671 unittest.expect(o.meid, unittest.equals('foo')); |
| 636 unittest.expect(o.model, unittest.equals('foo')); | 672 unittest.expect(o.model, unittest.equals('foo')); |
| 637 checkUnnamed931(o.name); | 673 checkUnnamed476(o.name); |
| 638 unittest.expect(o.networkOperator, unittest.equals('foo')); | 674 unittest.expect(o.networkOperator, unittest.equals('foo')); |
| 639 unittest.expect(o.os, unittest.equals('foo')); | 675 unittest.expect(o.os, unittest.equals('foo')); |
| 640 unittest.expect(o.resourceId, unittest.equals('foo')); | 676 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 641 unittest.expect(o.serialNumber, unittest.equals('foo')); | 677 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 642 unittest.expect(o.status, unittest.equals('foo')); | 678 unittest.expect(o.status, unittest.equals('foo')); |
| 643 unittest.expect(o.type, unittest.equals('foo')); | 679 unittest.expect(o.type, unittest.equals('foo')); |
| 644 unittest.expect(o.userAgent, unittest.equals('foo')); | 680 unittest.expect(o.userAgent, unittest.equals('foo')); |
| 645 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); | 681 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); |
| 646 } | 682 } |
| 647 buildCounterMobileDevice--; | 683 buildCounterMobileDevice--; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 659 } | 695 } |
| 660 | 696 |
| 661 checkMobileDeviceAction(api.MobileDeviceAction o) { | 697 checkMobileDeviceAction(api.MobileDeviceAction o) { |
| 662 buildCounterMobileDeviceAction++; | 698 buildCounterMobileDeviceAction++; |
| 663 if (buildCounterMobileDeviceAction < 3) { | 699 if (buildCounterMobileDeviceAction < 3) { |
| 664 unittest.expect(o.action, unittest.equals('foo')); | 700 unittest.expect(o.action, unittest.equals('foo')); |
| 665 } | 701 } |
| 666 buildCounterMobileDeviceAction--; | 702 buildCounterMobileDeviceAction--; |
| 667 } | 703 } |
| 668 | 704 |
| 669 buildUnnamed932() { | 705 buildUnnamed477() { |
| 670 var o = new core.List<api.MobileDevice>(); | 706 var o = new core.List<api.MobileDevice>(); |
| 671 o.add(buildMobileDevice()); | 707 o.add(buildMobileDevice()); |
| 672 o.add(buildMobileDevice()); | 708 o.add(buildMobileDevice()); |
| 673 return o; | 709 return o; |
| 674 } | 710 } |
| 675 | 711 |
| 676 checkUnnamed932(core.List<api.MobileDevice> o) { | 712 checkUnnamed477(core.List<api.MobileDevice> o) { |
| 677 unittest.expect(o, unittest.hasLength(2)); | 713 unittest.expect(o, unittest.hasLength(2)); |
| 678 checkMobileDevice(o[0]); | 714 checkMobileDevice(o[0]); |
| 679 checkMobileDevice(o[1]); | 715 checkMobileDevice(o[1]); |
| 680 } | 716 } |
| 681 | 717 |
| 682 core.int buildCounterMobileDevices = 0; | 718 core.int buildCounterMobileDevices = 0; |
| 683 buildMobileDevices() { | 719 buildMobileDevices() { |
| 684 var o = new api.MobileDevices(); | 720 var o = new api.MobileDevices(); |
| 685 buildCounterMobileDevices++; | 721 buildCounterMobileDevices++; |
| 686 if (buildCounterMobileDevices < 3) { | 722 if (buildCounterMobileDevices < 3) { |
| 687 o.etag = "foo"; | 723 o.etag = "foo"; |
| 688 o.kind = "foo"; | 724 o.kind = "foo"; |
| 689 o.mobiledevices = buildUnnamed932(); | 725 o.mobiledevices = buildUnnamed477(); |
| 690 o.nextPageToken = "foo"; | 726 o.nextPageToken = "foo"; |
| 691 } | 727 } |
| 692 buildCounterMobileDevices--; | 728 buildCounterMobileDevices--; |
| 693 return o; | 729 return o; |
| 694 } | 730 } |
| 695 | 731 |
| 696 checkMobileDevices(api.MobileDevices o) { | 732 checkMobileDevices(api.MobileDevices o) { |
| 697 buildCounterMobileDevices++; | 733 buildCounterMobileDevices++; |
| 698 if (buildCounterMobileDevices < 3) { | 734 if (buildCounterMobileDevices < 3) { |
| 699 unittest.expect(o.etag, unittest.equals('foo')); | 735 unittest.expect(o.etag, unittest.equals('foo')); |
| 700 unittest.expect(o.kind, unittest.equals('foo')); | 736 unittest.expect(o.kind, unittest.equals('foo')); |
| 701 checkUnnamed932(o.mobiledevices); | 737 checkUnnamed477(o.mobiledevices); |
| 702 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 738 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 703 } | 739 } |
| 704 buildCounterMobileDevices--; | 740 buildCounterMobileDevices--; |
| 705 } | 741 } |
| 706 | 742 |
| 707 core.int buildCounterNotification = 0; | 743 core.int buildCounterNotification = 0; |
| 708 buildNotification() { | 744 buildNotification() { |
| 709 var o = new api.Notification(); | 745 var o = new api.Notification(); |
| 710 buildCounterNotification++; | 746 buildCounterNotification++; |
| 711 if (buildCounterNotification < 3) { | 747 if (buildCounterNotification < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 730 unittest.expect(o.fromAddress, unittest.equals('foo')); | 766 unittest.expect(o.fromAddress, unittest.equals('foo')); |
| 731 unittest.expect(o.isUnread, unittest.isTrue); | 767 unittest.expect(o.isUnread, unittest.isTrue); |
| 732 unittest.expect(o.kind, unittest.equals('foo')); | 768 unittest.expect(o.kind, unittest.equals('foo')); |
| 733 unittest.expect(o.notificationId, unittest.equals('foo')); | 769 unittest.expect(o.notificationId, unittest.equals('foo')); |
| 734 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 770 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 735 unittest.expect(o.subject, unittest.equals('foo')); | 771 unittest.expect(o.subject, unittest.equals('foo')); |
| 736 } | 772 } |
| 737 buildCounterNotification--; | 773 buildCounterNotification--; |
| 738 } | 774 } |
| 739 | 775 |
| 740 buildUnnamed933() { | 776 buildUnnamed478() { |
| 741 var o = new core.List<api.Notification>(); | 777 var o = new core.List<api.Notification>(); |
| 742 o.add(buildNotification()); | 778 o.add(buildNotification()); |
| 743 o.add(buildNotification()); | 779 o.add(buildNotification()); |
| 744 return o; | 780 return o; |
| 745 } | 781 } |
| 746 | 782 |
| 747 checkUnnamed933(core.List<api.Notification> o) { | 783 checkUnnamed478(core.List<api.Notification> o) { |
| 748 unittest.expect(o, unittest.hasLength(2)); | 784 unittest.expect(o, unittest.hasLength(2)); |
| 749 checkNotification(o[0]); | 785 checkNotification(o[0]); |
| 750 checkNotification(o[1]); | 786 checkNotification(o[1]); |
| 751 } | 787 } |
| 752 | 788 |
| 753 core.int buildCounterNotifications = 0; | 789 core.int buildCounterNotifications = 0; |
| 754 buildNotifications() { | 790 buildNotifications() { |
| 755 var o = new api.Notifications(); | 791 var o = new api.Notifications(); |
| 756 buildCounterNotifications++; | 792 buildCounterNotifications++; |
| 757 if (buildCounterNotifications < 3) { | 793 if (buildCounterNotifications < 3) { |
| 758 o.etag = "foo"; | 794 o.etag = "foo"; |
| 759 o.items = buildUnnamed933(); | 795 o.items = buildUnnamed478(); |
| 760 o.kind = "foo"; | 796 o.kind = "foo"; |
| 761 o.nextPageToken = "foo"; | 797 o.nextPageToken = "foo"; |
| 762 o.unreadNotificationsCount = 42; | 798 o.unreadNotificationsCount = 42; |
| 763 } | 799 } |
| 764 buildCounterNotifications--; | 800 buildCounterNotifications--; |
| 765 return o; | 801 return o; |
| 766 } | 802 } |
| 767 | 803 |
| 768 checkNotifications(api.Notifications o) { | 804 checkNotifications(api.Notifications o) { |
| 769 buildCounterNotifications++; | 805 buildCounterNotifications++; |
| 770 if (buildCounterNotifications < 3) { | 806 if (buildCounterNotifications < 3) { |
| 771 unittest.expect(o.etag, unittest.equals('foo')); | 807 unittest.expect(o.etag, unittest.equals('foo')); |
| 772 checkUnnamed933(o.items); | 808 checkUnnamed478(o.items); |
| 773 unittest.expect(o.kind, unittest.equals('foo')); | 809 unittest.expect(o.kind, unittest.equals('foo')); |
| 774 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 810 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 775 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); | 811 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); |
| 776 } | 812 } |
| 777 buildCounterNotifications--; | 813 buildCounterNotifications--; |
| 778 } | 814 } |
| 779 | 815 |
| 780 core.int buildCounterOrgUnit = 0; | 816 core.int buildCounterOrgUnit = 0; |
| 781 buildOrgUnit() { | 817 buildOrgUnit() { |
| 782 var o = new api.OrgUnit(); | 818 var o = new api.OrgUnit(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 801 unittest.expect(o.description, unittest.equals('foo')); | 837 unittest.expect(o.description, unittest.equals('foo')); |
| 802 unittest.expect(o.etag, unittest.equals('foo')); | 838 unittest.expect(o.etag, unittest.equals('foo')); |
| 803 unittest.expect(o.kind, unittest.equals('foo')); | 839 unittest.expect(o.kind, unittest.equals('foo')); |
| 804 unittest.expect(o.name, unittest.equals('foo')); | 840 unittest.expect(o.name, unittest.equals('foo')); |
| 805 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 841 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 806 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); | 842 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); |
| 807 } | 843 } |
| 808 buildCounterOrgUnit--; | 844 buildCounterOrgUnit--; |
| 809 } | 845 } |
| 810 | 846 |
| 811 buildUnnamed934() { | 847 buildUnnamed479() { |
| 812 var o = new core.List<api.OrgUnit>(); | 848 var o = new core.List<api.OrgUnit>(); |
| 813 o.add(buildOrgUnit()); | 849 o.add(buildOrgUnit()); |
| 814 o.add(buildOrgUnit()); | 850 o.add(buildOrgUnit()); |
| 815 return o; | 851 return o; |
| 816 } | 852 } |
| 817 | 853 |
| 818 checkUnnamed934(core.List<api.OrgUnit> o) { | 854 checkUnnamed479(core.List<api.OrgUnit> o) { |
| 819 unittest.expect(o, unittest.hasLength(2)); | 855 unittest.expect(o, unittest.hasLength(2)); |
| 820 checkOrgUnit(o[0]); | 856 checkOrgUnit(o[0]); |
| 821 checkOrgUnit(o[1]); | 857 checkOrgUnit(o[1]); |
| 822 } | 858 } |
| 823 | 859 |
| 824 core.int buildCounterOrgUnits = 0; | 860 core.int buildCounterOrgUnits = 0; |
| 825 buildOrgUnits() { | 861 buildOrgUnits() { |
| 826 var o = new api.OrgUnits(); | 862 var o = new api.OrgUnits(); |
| 827 buildCounterOrgUnits++; | 863 buildCounterOrgUnits++; |
| 828 if (buildCounterOrgUnits < 3) { | 864 if (buildCounterOrgUnits < 3) { |
| 829 o.etag = "foo"; | 865 o.etag = "foo"; |
| 830 o.kind = "foo"; | 866 o.kind = "foo"; |
| 831 o.organizationUnits = buildUnnamed934(); | 867 o.organizationUnits = buildUnnamed479(); |
| 832 } | 868 } |
| 833 buildCounterOrgUnits--; | 869 buildCounterOrgUnits--; |
| 834 return o; | 870 return o; |
| 835 } | 871 } |
| 836 | 872 |
| 837 checkOrgUnits(api.OrgUnits o) { | 873 checkOrgUnits(api.OrgUnits o) { |
| 838 buildCounterOrgUnits++; | 874 buildCounterOrgUnits++; |
| 839 if (buildCounterOrgUnits < 3) { | 875 if (buildCounterOrgUnits < 3) { |
| 840 unittest.expect(o.etag, unittest.equals('foo')); | 876 unittest.expect(o.etag, unittest.equals('foo')); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 877 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 checkUnnamed934(o.organizationUnits); | 878 checkUnnamed479(o.organizationUnits); |
| 843 } | 879 } |
| 844 buildCounterOrgUnits--; | 880 buildCounterOrgUnits--; |
| 845 } | 881 } |
| 846 | 882 |
| 847 buildUnnamed935() { | 883 buildUnnamed480() { |
| 848 var o = new core.List<api.SchemaFieldSpec>(); | 884 var o = new core.List<api.SchemaFieldSpec>(); |
| 849 o.add(buildSchemaFieldSpec()); | 885 o.add(buildSchemaFieldSpec()); |
| 850 o.add(buildSchemaFieldSpec()); | 886 o.add(buildSchemaFieldSpec()); |
| 851 return o; | 887 return o; |
| 852 } | 888 } |
| 853 | 889 |
| 854 checkUnnamed935(core.List<api.SchemaFieldSpec> o) { | 890 checkUnnamed480(core.List<api.SchemaFieldSpec> o) { |
| 855 unittest.expect(o, unittest.hasLength(2)); | 891 unittest.expect(o, unittest.hasLength(2)); |
| 856 checkSchemaFieldSpec(o[0]); | 892 checkSchemaFieldSpec(o[0]); |
| 857 checkSchemaFieldSpec(o[1]); | 893 checkSchemaFieldSpec(o[1]); |
| 858 } | 894 } |
| 859 | 895 |
| 860 core.int buildCounterSchema = 0; | 896 core.int buildCounterSchema = 0; |
| 861 buildSchema() { | 897 buildSchema() { |
| 862 var o = new api.Schema(); | 898 var o = new api.Schema(); |
| 863 buildCounterSchema++; | 899 buildCounterSchema++; |
| 864 if (buildCounterSchema < 3) { | 900 if (buildCounterSchema < 3) { |
| 865 o.etag = "foo"; | 901 o.etag = "foo"; |
| 866 o.fields = buildUnnamed935(); | 902 o.fields = buildUnnamed480(); |
| 867 o.kind = "foo"; | 903 o.kind = "foo"; |
| 868 o.schemaId = "foo"; | 904 o.schemaId = "foo"; |
| 869 o.schemaName = "foo"; | 905 o.schemaName = "foo"; |
| 870 } | 906 } |
| 871 buildCounterSchema--; | 907 buildCounterSchema--; |
| 872 return o; | 908 return o; |
| 873 } | 909 } |
| 874 | 910 |
| 875 checkSchema(api.Schema o) { | 911 checkSchema(api.Schema o) { |
| 876 buildCounterSchema++; | 912 buildCounterSchema++; |
| 877 if (buildCounterSchema < 3) { | 913 if (buildCounterSchema < 3) { |
| 878 unittest.expect(o.etag, unittest.equals('foo')); | 914 unittest.expect(o.etag, unittest.equals('foo')); |
| 879 checkUnnamed935(o.fields); | 915 checkUnnamed480(o.fields); |
| 880 unittest.expect(o.kind, unittest.equals('foo')); | 916 unittest.expect(o.kind, unittest.equals('foo')); |
| 881 unittest.expect(o.schemaId, unittest.equals('foo')); | 917 unittest.expect(o.schemaId, unittest.equals('foo')); |
| 882 unittest.expect(o.schemaName, unittest.equals('foo')); | 918 unittest.expect(o.schemaName, unittest.equals('foo')); |
| 883 } | 919 } |
| 884 buildCounterSchema--; | 920 buildCounterSchema--; |
| 885 } | 921 } |
| 886 | 922 |
| 887 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; | 923 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; |
| 888 buildSchemaFieldSpecNumericIndexingSpec() { | 924 buildSchemaFieldSpecNumericIndexingSpec() { |
| 889 var o = new api.SchemaFieldSpecNumericIndexingSpec(); | 925 var o = new api.SchemaFieldSpecNumericIndexingSpec(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 unittest.expect(o.fieldType, unittest.equals('foo')); | 969 unittest.expect(o.fieldType, unittest.equals('foo')); |
| 934 unittest.expect(o.indexed, unittest.isTrue); | 970 unittest.expect(o.indexed, unittest.isTrue); |
| 935 unittest.expect(o.kind, unittest.equals('foo')); | 971 unittest.expect(o.kind, unittest.equals('foo')); |
| 936 unittest.expect(o.multiValued, unittest.isTrue); | 972 unittest.expect(o.multiValued, unittest.isTrue); |
| 937 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); | 973 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); |
| 938 unittest.expect(o.readAccessType, unittest.equals('foo')); | 974 unittest.expect(o.readAccessType, unittest.equals('foo')); |
| 939 } | 975 } |
| 940 buildCounterSchemaFieldSpec--; | 976 buildCounterSchemaFieldSpec--; |
| 941 } | 977 } |
| 942 | 978 |
| 943 buildUnnamed936() { | 979 buildUnnamed481() { |
| 944 var o = new core.List<api.Schema>(); | 980 var o = new core.List<api.Schema>(); |
| 945 o.add(buildSchema()); | 981 o.add(buildSchema()); |
| 946 o.add(buildSchema()); | 982 o.add(buildSchema()); |
| 947 return o; | 983 return o; |
| 948 } | 984 } |
| 949 | 985 |
| 950 checkUnnamed936(core.List<api.Schema> o) { | 986 checkUnnamed481(core.List<api.Schema> o) { |
| 951 unittest.expect(o, unittest.hasLength(2)); | 987 unittest.expect(o, unittest.hasLength(2)); |
| 952 checkSchema(o[0]); | 988 checkSchema(o[0]); |
| 953 checkSchema(o[1]); | 989 checkSchema(o[1]); |
| 954 } | 990 } |
| 955 | 991 |
| 956 core.int buildCounterSchemas = 0; | 992 core.int buildCounterSchemas = 0; |
| 957 buildSchemas() { | 993 buildSchemas() { |
| 958 var o = new api.Schemas(); | 994 var o = new api.Schemas(); |
| 959 buildCounterSchemas++; | 995 buildCounterSchemas++; |
| 960 if (buildCounterSchemas < 3) { | 996 if (buildCounterSchemas < 3) { |
| 961 o.etag = "foo"; | 997 o.etag = "foo"; |
| 962 o.kind = "foo"; | 998 o.kind = "foo"; |
| 963 o.schemas = buildUnnamed936(); | 999 o.schemas = buildUnnamed481(); |
| 964 } | 1000 } |
| 965 buildCounterSchemas--; | 1001 buildCounterSchemas--; |
| 966 return o; | 1002 return o; |
| 967 } | 1003 } |
| 968 | 1004 |
| 969 checkSchemas(api.Schemas o) { | 1005 checkSchemas(api.Schemas o) { |
| 970 buildCounterSchemas++; | 1006 buildCounterSchemas++; |
| 971 if (buildCounterSchemas < 3) { | 1007 if (buildCounterSchemas < 3) { |
| 972 unittest.expect(o.etag, unittest.equals('foo')); | 1008 unittest.expect(o.etag, unittest.equals('foo')); |
| 973 unittest.expect(o.kind, unittest.equals('foo')); | 1009 unittest.expect(o.kind, unittest.equals('foo')); |
| 974 checkUnnamed936(o.schemas); | 1010 checkUnnamed481(o.schemas); |
| 975 } | 1011 } |
| 976 buildCounterSchemas--; | 1012 buildCounterSchemas--; |
| 977 } | 1013 } |
| 978 | 1014 |
| 979 buildUnnamed937() { | 1015 buildUnnamed482() { |
| 980 var o = new core.List<core.String>(); | 1016 var o = new core.List<core.String>(); |
| 981 o.add("foo"); | 1017 o.add("foo"); |
| 982 o.add("foo"); | 1018 o.add("foo"); |
| 983 return o; | 1019 return o; |
| 984 } | 1020 } |
| 985 | 1021 |
| 986 checkUnnamed937(core.List<core.String> o) { | 1022 checkUnnamed482(core.List<core.String> o) { |
| 987 unittest.expect(o, unittest.hasLength(2)); | 1023 unittest.expect(o, unittest.hasLength(2)); |
| 988 unittest.expect(o[0], unittest.equals('foo')); | 1024 unittest.expect(o[0], unittest.equals('foo')); |
| 989 unittest.expect(o[1], unittest.equals('foo')); | 1025 unittest.expect(o[1], unittest.equals('foo')); |
| 990 } | 1026 } |
| 991 | 1027 |
| 992 core.int buildCounterToken = 0; | 1028 core.int buildCounterToken = 0; |
| 993 buildToken() { | 1029 buildToken() { |
| 994 var o = new api.Token(); | 1030 var o = new api.Token(); |
| 995 buildCounterToken++; | 1031 buildCounterToken++; |
| 996 if (buildCounterToken < 3) { | 1032 if (buildCounterToken < 3) { |
| 997 o.anonymous = true; | 1033 o.anonymous = true; |
| 998 o.clientId = "foo"; | 1034 o.clientId = "foo"; |
| 999 o.displayText = "foo"; | 1035 o.displayText = "foo"; |
| 1000 o.etag = "foo"; | 1036 o.etag = "foo"; |
| 1001 o.kind = "foo"; | 1037 o.kind = "foo"; |
| 1002 o.nativeApp = true; | 1038 o.nativeApp = true; |
| 1003 o.scopes = buildUnnamed937(); | 1039 o.scopes = buildUnnamed482(); |
| 1004 o.userKey = "foo"; | 1040 o.userKey = "foo"; |
| 1005 } | 1041 } |
| 1006 buildCounterToken--; | 1042 buildCounterToken--; |
| 1007 return o; | 1043 return o; |
| 1008 } | 1044 } |
| 1009 | 1045 |
| 1010 checkToken(api.Token o) { | 1046 checkToken(api.Token o) { |
| 1011 buildCounterToken++; | 1047 buildCounterToken++; |
| 1012 if (buildCounterToken < 3) { | 1048 if (buildCounterToken < 3) { |
| 1013 unittest.expect(o.anonymous, unittest.isTrue); | 1049 unittest.expect(o.anonymous, unittest.isTrue); |
| 1014 unittest.expect(o.clientId, unittest.equals('foo')); | 1050 unittest.expect(o.clientId, unittest.equals('foo')); |
| 1015 unittest.expect(o.displayText, unittest.equals('foo')); | 1051 unittest.expect(o.displayText, unittest.equals('foo')); |
| 1016 unittest.expect(o.etag, unittest.equals('foo')); | 1052 unittest.expect(o.etag, unittest.equals('foo')); |
| 1017 unittest.expect(o.kind, unittest.equals('foo')); | 1053 unittest.expect(o.kind, unittest.equals('foo')); |
| 1018 unittest.expect(o.nativeApp, unittest.isTrue); | 1054 unittest.expect(o.nativeApp, unittest.isTrue); |
| 1019 checkUnnamed937(o.scopes); | 1055 checkUnnamed482(o.scopes); |
| 1020 unittest.expect(o.userKey, unittest.equals('foo')); | 1056 unittest.expect(o.userKey, unittest.equals('foo')); |
| 1021 } | 1057 } |
| 1022 buildCounterToken--; | 1058 buildCounterToken--; |
| 1023 } | 1059 } |
| 1024 | 1060 |
| 1025 buildUnnamed938() { | 1061 buildUnnamed483() { |
| 1026 var o = new core.List<api.Token>(); | 1062 var o = new core.List<api.Token>(); |
| 1027 o.add(buildToken()); | 1063 o.add(buildToken()); |
| 1028 o.add(buildToken()); | 1064 o.add(buildToken()); |
| 1029 return o; | 1065 return o; |
| 1030 } | 1066 } |
| 1031 | 1067 |
| 1032 checkUnnamed938(core.List<api.Token> o) { | 1068 checkUnnamed483(core.List<api.Token> o) { |
| 1033 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
| 1034 checkToken(o[0]); | 1070 checkToken(o[0]); |
| 1035 checkToken(o[1]); | 1071 checkToken(o[1]); |
| 1036 } | 1072 } |
| 1037 | 1073 |
| 1038 core.int buildCounterTokens = 0; | 1074 core.int buildCounterTokens = 0; |
| 1039 buildTokens() { | 1075 buildTokens() { |
| 1040 var o = new api.Tokens(); | 1076 var o = new api.Tokens(); |
| 1041 buildCounterTokens++; | 1077 buildCounterTokens++; |
| 1042 if (buildCounterTokens < 3) { | 1078 if (buildCounterTokens < 3) { |
| 1043 o.etag = "foo"; | 1079 o.etag = "foo"; |
| 1044 o.items = buildUnnamed938(); | 1080 o.items = buildUnnamed483(); |
| 1045 o.kind = "foo"; | 1081 o.kind = "foo"; |
| 1046 } | 1082 } |
| 1047 buildCounterTokens--; | 1083 buildCounterTokens--; |
| 1048 return o; | 1084 return o; |
| 1049 } | 1085 } |
| 1050 | 1086 |
| 1051 checkTokens(api.Tokens o) { | 1087 checkTokens(api.Tokens o) { |
| 1052 buildCounterTokens++; | 1088 buildCounterTokens++; |
| 1053 if (buildCounterTokens < 3) { | 1089 if (buildCounterTokens < 3) { |
| 1054 unittest.expect(o.etag, unittest.equals('foo')); | 1090 unittest.expect(o.etag, unittest.equals('foo')); |
| 1055 checkUnnamed938(o.items); | 1091 checkUnnamed483(o.items); |
| 1056 unittest.expect(o.kind, unittest.equals('foo')); | 1092 unittest.expect(o.kind, unittest.equals('foo')); |
| 1057 } | 1093 } |
| 1058 buildCounterTokens--; | 1094 buildCounterTokens--; |
| 1059 } | 1095 } |
| 1060 | 1096 |
| 1061 buildUnnamed939() { | 1097 buildUnnamed484() { |
| 1062 var o = new core.List<core.String>(); | 1098 var o = new core.List<core.String>(); |
| 1063 o.add("foo"); | 1099 o.add("foo"); |
| 1064 o.add("foo"); | 1100 o.add("foo"); |
| 1065 return o; | 1101 return o; |
| 1066 } | 1102 } |
| 1067 | 1103 |
| 1068 checkUnnamed939(core.List<core.String> o) { | 1104 checkUnnamed484(core.List<core.String> o) { |
| 1069 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
| 1070 unittest.expect(o[0], unittest.equals('foo')); | 1106 unittest.expect(o[0], unittest.equals('foo')); |
| 1071 unittest.expect(o[1], unittest.equals('foo')); | 1107 unittest.expect(o[1], unittest.equals('foo')); |
| 1072 } | 1108 } |
| 1073 | 1109 |
| 1074 buildUnnamed940() { | 1110 buildUnnamed485() { |
| 1075 var o = new core.Map<core.String, api.UserCustomProperties>(); | 1111 var o = new core.Map<core.String, api.UserCustomProperties>(); |
| 1076 o["x"] = buildUserCustomProperties(); | 1112 o["x"] = buildUserCustomProperties(); |
| 1077 o["y"] = buildUserCustomProperties(); | 1113 o["y"] = buildUserCustomProperties(); |
| 1078 return o; | 1114 return o; |
| 1079 } | 1115 } |
| 1080 | 1116 |
| 1081 checkUnnamed940(core.Map<core.String, api.UserCustomProperties> o) { | 1117 checkUnnamed485(core.Map<core.String, api.UserCustomProperties> o) { |
| 1082 unittest.expect(o, unittest.hasLength(2)); | 1118 unittest.expect(o, unittest.hasLength(2)); |
| 1083 checkUserCustomProperties(o["x"]); | 1119 checkUserCustomProperties(o["x"]); |
| 1084 checkUserCustomProperties(o["y"]); | 1120 checkUserCustomProperties(o["y"]); |
| 1085 } | 1121 } |
| 1086 | 1122 |
| 1087 buildUnnamed941() { | 1123 buildUnnamed486() { |
| 1088 var o = new core.List<core.String>(); | 1124 var o = new core.List<core.String>(); |
| 1089 o.add("foo"); | 1125 o.add("foo"); |
| 1090 o.add("foo"); | 1126 o.add("foo"); |
| 1091 return o; | 1127 return o; |
| 1092 } | 1128 } |
| 1093 | 1129 |
| 1094 checkUnnamed941(core.List<core.String> o) { | 1130 checkUnnamed486(core.List<core.String> o) { |
| 1095 unittest.expect(o, unittest.hasLength(2)); | 1131 unittest.expect(o, unittest.hasLength(2)); |
| 1096 unittest.expect(o[0], unittest.equals('foo')); | 1132 unittest.expect(o[0], unittest.equals('foo')); |
| 1097 unittest.expect(o[1], unittest.equals('foo')); | 1133 unittest.expect(o[1], unittest.equals('foo')); |
| 1098 } | 1134 } |
| 1099 | 1135 |
| 1100 core.int buildCounterUser = 0; | 1136 core.int buildCounterUser = 0; |
| 1101 buildUser() { | 1137 buildUser() { |
| 1102 var o = new api.User(); | 1138 var o = new api.User(); |
| 1103 buildCounterUser++; | 1139 buildCounterUser++; |
| 1104 if (buildCounterUser < 3) { | 1140 if (buildCounterUser < 3) { |
| 1105 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1141 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1106 o.agreedToTerms = true; | 1142 o.agreedToTerms = true; |
| 1107 o.aliases = buildUnnamed939(); | 1143 o.aliases = buildUnnamed484(); |
| 1108 o.changePasswordAtNextLogin = true; | 1144 o.changePasswordAtNextLogin = true; |
| 1109 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1145 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1110 o.customSchemas = buildUnnamed940(); | 1146 o.customSchemas = buildUnnamed485(); |
| 1111 o.customerId = "foo"; | 1147 o.customerId = "foo"; |
| 1112 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1148 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1113 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1149 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1114 o.etag = "foo"; | 1150 o.etag = "foo"; |
| 1115 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1151 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1116 o.hashFunction = "foo"; | 1152 o.hashFunction = "foo"; |
| 1117 o.id = "foo"; | 1153 o.id = "foo"; |
| 1118 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1154 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1119 o.includeInGlobalAddressList = true; | 1155 o.includeInGlobalAddressList = true; |
| 1120 o.ipWhitelisted = true; | 1156 o.ipWhitelisted = true; |
| 1121 o.isAdmin = true; | 1157 o.isAdmin = true; |
| 1122 o.isDelegatedAdmin = true; | 1158 o.isDelegatedAdmin = true; |
| 1123 o.isMailboxSetup = true; | 1159 o.isMailboxSetup = true; |
| 1124 o.kind = "foo"; | 1160 o.kind = "foo"; |
| 1125 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1161 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1126 o.name = buildUserName(); | 1162 o.name = buildUserName(); |
| 1127 o.nonEditableAliases = buildUnnamed941(); | 1163 o.nonEditableAliases = buildUnnamed486(); |
| 1128 o.orgUnitPath = "foo"; | 1164 o.orgUnitPath = "foo"; |
| 1129 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1165 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1130 o.password = "foo"; | 1166 o.password = "foo"; |
| 1131 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1167 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1132 o.primaryEmail = "foo"; | 1168 o.primaryEmail = "foo"; |
| 1133 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1169 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1134 o.suspended = true; | 1170 o.suspended = true; |
| 1135 o.suspensionReason = "foo"; | 1171 o.suspensionReason = "foo"; |
| 1136 o.thumbnailPhotoUrl = "foo"; | 1172 o.thumbnailPhotoUrl = "foo"; |
| 1137 } | 1173 } |
| 1138 buildCounterUser--; | 1174 buildCounterUser--; |
| 1139 return o; | 1175 return o; |
| 1140 } | 1176 } |
| 1141 | 1177 |
| 1142 checkUser(api.User o) { | 1178 checkUser(api.User o) { |
| 1143 buildCounterUser++; | 1179 buildCounterUser++; |
| 1144 if (buildCounterUser < 3) { | 1180 if (buildCounterUser < 3) { |
| 1145 var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.h
asLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["st
ring"], unittest.equals('foo')); | 1181 var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.h
asLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["st
ring"], unittest.equals('foo')); |
| 1146 unittest.expect(o.agreedToTerms, unittest.isTrue); | 1182 unittest.expect(o.agreedToTerms, unittest.isTrue); |
| 1147 checkUnnamed939(o.aliases); | 1183 checkUnnamed484(o.aliases); |
| 1148 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); | 1184 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); |
| 1149 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1185 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1150 checkUnnamed940(o.customSchemas); | 1186 checkUnnamed485(o.customSchemas); |
| 1151 unittest.expect(o.customerId, unittest.equals('foo')); | 1187 unittest.expect(o.customerId, unittest.equals('foo')); |
| 1152 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1188 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1153 var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasL
ength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["strin
g"], unittest.equals('foo')); | 1189 var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasL
ength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["strin
g"], unittest.equals('foo')); |
| 1154 unittest.expect(o.etag, unittest.equals('foo')); | 1190 unittest.expect(o.etag, unittest.equals('foo')); |
| 1155 var casted3 = (o.externalIds) as core.Map; unittest.expect(casted3, unittest
.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["
string"], unittest.equals('foo')); | 1191 var casted3 = (o.externalIds) as core.Map; unittest.expect(casted3, unittest
.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["
string"], unittest.equals('foo')); |
| 1156 unittest.expect(o.hashFunction, unittest.equals('foo')); | 1192 unittest.expect(o.hashFunction, unittest.equals('foo')); |
| 1157 unittest.expect(o.id, unittest.equals('foo')); | 1193 unittest.expect(o.id, unittest.equals('foo')); |
| 1158 var casted4 = (o.ims) as core.Map; unittest.expect(casted4, unittest.hasLeng
th(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"]
, unittest.equals('foo')); | 1194 var casted4 = (o.ims) as core.Map; unittest.expect(casted4, unittest.hasLeng
th(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"]
, unittest.equals('foo')); |
| 1159 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); | 1195 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); |
| 1160 unittest.expect(o.ipWhitelisted, unittest.isTrue); | 1196 unittest.expect(o.ipWhitelisted, unittest.isTrue); |
| 1161 unittest.expect(o.isAdmin, unittest.isTrue); | 1197 unittest.expect(o.isAdmin, unittest.isTrue); |
| 1162 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); | 1198 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); |
| 1163 unittest.expect(o.isMailboxSetup, unittest.isTrue); | 1199 unittest.expect(o.isMailboxSetup, unittest.isTrue); |
| 1164 unittest.expect(o.kind, unittest.equals('foo')); | 1200 unittest.expect(o.kind, unittest.equals('foo')); |
| 1165 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1201 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
| 1166 checkUserName(o.name); | 1202 checkUserName(o.name); |
| 1167 checkUnnamed941(o.nonEditableAliases); | 1203 checkUnnamed486(o.nonEditableAliases); |
| 1168 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1204 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 1169 var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unitte
st.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5
["string"], unittest.equals('foo')); | 1205 var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unitte
st.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3]));
unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5
["string"], unittest.equals('foo')); |
| 1170 unittest.expect(o.password, unittest.equals('foo')); | 1206 unittest.expect(o.password, unittest.equals('foo')); |
| 1171 var casted6 = (o.phones) as core.Map; unittest.expect(casted6, unittest.hasL
ength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["strin
g"], unittest.equals('foo')); | 1207 var casted6 = (o.phones) as core.Map; unittest.expect(casted6, unittest.hasL
ength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["strin
g"], unittest.equals('foo')); |
| 1172 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 1208 unittest.expect(o.primaryEmail, unittest.equals('foo')); |
| 1173 var casted7 = (o.relations) as core.Map; unittest.expect(casted7, unittest.h
asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st
ring"], unittest.equals('foo')); | 1209 var casted7 = (o.relations) as core.Map; unittest.expect(casted7, unittest.h
asLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["st
ring"], unittest.equals('foo')); |
| 1174 unittest.expect(o.suspended, unittest.isTrue); | 1210 unittest.expect(o.suspended, unittest.isTrue); |
| 1175 unittest.expect(o.suspensionReason, unittest.equals('foo')); | 1211 unittest.expect(o.suspensionReason, unittest.equals('foo')); |
| 1176 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); | 1212 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); |
| 1177 } | 1213 } |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 } | 1521 } |
| 1486 | 1522 |
| 1487 checkUserUndelete(api.UserUndelete o) { | 1523 checkUserUndelete(api.UserUndelete o) { |
| 1488 buildCounterUserUndelete++; | 1524 buildCounterUserUndelete++; |
| 1489 if (buildCounterUserUndelete < 3) { | 1525 if (buildCounterUserUndelete < 3) { |
| 1490 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1526 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 1491 } | 1527 } |
| 1492 buildCounterUserUndelete--; | 1528 buildCounterUserUndelete--; |
| 1493 } | 1529 } |
| 1494 | 1530 |
| 1495 buildUnnamed942() { | 1531 buildUnnamed487() { |
| 1496 var o = new core.List<api.User>(); | 1532 var o = new core.List<api.User>(); |
| 1497 o.add(buildUser()); | 1533 o.add(buildUser()); |
| 1498 o.add(buildUser()); | 1534 o.add(buildUser()); |
| 1499 return o; | 1535 return o; |
| 1500 } | 1536 } |
| 1501 | 1537 |
| 1502 checkUnnamed942(core.List<api.User> o) { | 1538 checkUnnamed487(core.List<api.User> o) { |
| 1503 unittest.expect(o, unittest.hasLength(2)); | 1539 unittest.expect(o, unittest.hasLength(2)); |
| 1504 checkUser(o[0]); | 1540 checkUser(o[0]); |
| 1505 checkUser(o[1]); | 1541 checkUser(o[1]); |
| 1506 } | 1542 } |
| 1507 | 1543 |
| 1508 core.int buildCounterUsers = 0; | 1544 core.int buildCounterUsers = 0; |
| 1509 buildUsers() { | 1545 buildUsers() { |
| 1510 var o = new api.Users(); | 1546 var o = new api.Users(); |
| 1511 buildCounterUsers++; | 1547 buildCounterUsers++; |
| 1512 if (buildCounterUsers < 3) { | 1548 if (buildCounterUsers < 3) { |
| 1513 o.etag = "foo"; | 1549 o.etag = "foo"; |
| 1514 o.kind = "foo"; | 1550 o.kind = "foo"; |
| 1515 o.nextPageToken = "foo"; | 1551 o.nextPageToken = "foo"; |
| 1516 o.triggerEvent = "foo"; | 1552 o.triggerEvent = "foo"; |
| 1517 o.users = buildUnnamed942(); | 1553 o.users = buildUnnamed487(); |
| 1518 } | 1554 } |
| 1519 buildCounterUsers--; | 1555 buildCounterUsers--; |
| 1520 return o; | 1556 return o; |
| 1521 } | 1557 } |
| 1522 | 1558 |
| 1523 checkUsers(api.Users o) { | 1559 checkUsers(api.Users o) { |
| 1524 buildCounterUsers++; | 1560 buildCounterUsers++; |
| 1525 if (buildCounterUsers < 3) { | 1561 if (buildCounterUsers < 3) { |
| 1526 unittest.expect(o.etag, unittest.equals('foo')); | 1562 unittest.expect(o.etag, unittest.equals('foo')); |
| 1527 unittest.expect(o.kind, unittest.equals('foo')); | 1563 unittest.expect(o.kind, unittest.equals('foo')); |
| 1528 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1564 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1529 unittest.expect(o.triggerEvent, unittest.equals('foo')); | 1565 unittest.expect(o.triggerEvent, unittest.equals('foo')); |
| 1530 checkUnnamed942(o.users); | 1566 checkUnnamed487(o.users); |
| 1531 } | 1567 } |
| 1532 buildCounterUsers--; | 1568 buildCounterUsers--; |
| 1533 } | 1569 } |
| 1534 | 1570 |
| 1535 core.int buildCounterVerificationCode = 0; | 1571 core.int buildCounterVerificationCode = 0; |
| 1536 buildVerificationCode() { | 1572 buildVerificationCode() { |
| 1537 var o = new api.VerificationCode(); | 1573 var o = new api.VerificationCode(); |
| 1538 buildCounterVerificationCode++; | 1574 buildCounterVerificationCode++; |
| 1539 if (buildCounterVerificationCode < 3) { | 1575 if (buildCounterVerificationCode < 3) { |
| 1540 o.etag = "foo"; | 1576 o.etag = "foo"; |
| 1541 o.kind = "foo"; | 1577 o.kind = "foo"; |
| 1542 o.userId = "foo"; | 1578 o.userId = "foo"; |
| 1543 o.verificationCode = "foo"; | 1579 o.verificationCode = "foo"; |
| 1544 } | 1580 } |
| 1545 buildCounterVerificationCode--; | 1581 buildCounterVerificationCode--; |
| 1546 return o; | 1582 return o; |
| 1547 } | 1583 } |
| 1548 | 1584 |
| 1549 checkVerificationCode(api.VerificationCode o) { | 1585 checkVerificationCode(api.VerificationCode o) { |
| 1550 buildCounterVerificationCode++; | 1586 buildCounterVerificationCode++; |
| 1551 if (buildCounterVerificationCode < 3) { | 1587 if (buildCounterVerificationCode < 3) { |
| 1552 unittest.expect(o.etag, unittest.equals('foo')); | 1588 unittest.expect(o.etag, unittest.equals('foo')); |
| 1553 unittest.expect(o.kind, unittest.equals('foo')); | 1589 unittest.expect(o.kind, unittest.equals('foo')); |
| 1554 unittest.expect(o.userId, unittest.equals('foo')); | 1590 unittest.expect(o.userId, unittest.equals('foo')); |
| 1555 unittest.expect(o.verificationCode, unittest.equals('foo')); | 1591 unittest.expect(o.verificationCode, unittest.equals('foo')); |
| 1556 } | 1592 } |
| 1557 buildCounterVerificationCode--; | 1593 buildCounterVerificationCode--; |
| 1558 } | 1594 } |
| 1559 | 1595 |
| 1560 buildUnnamed943() { | 1596 buildUnnamed488() { |
| 1561 var o = new core.List<api.VerificationCode>(); | 1597 var o = new core.List<api.VerificationCode>(); |
| 1562 o.add(buildVerificationCode()); | 1598 o.add(buildVerificationCode()); |
| 1563 o.add(buildVerificationCode()); | 1599 o.add(buildVerificationCode()); |
| 1564 return o; | 1600 return o; |
| 1565 } | 1601 } |
| 1566 | 1602 |
| 1567 checkUnnamed943(core.List<api.VerificationCode> o) { | 1603 checkUnnamed488(core.List<api.VerificationCode> o) { |
| 1568 unittest.expect(o, unittest.hasLength(2)); | 1604 unittest.expect(o, unittest.hasLength(2)); |
| 1569 checkVerificationCode(o[0]); | 1605 checkVerificationCode(o[0]); |
| 1570 checkVerificationCode(o[1]); | 1606 checkVerificationCode(o[1]); |
| 1571 } | 1607 } |
| 1572 | 1608 |
| 1573 core.int buildCounterVerificationCodes = 0; | 1609 core.int buildCounterVerificationCodes = 0; |
| 1574 buildVerificationCodes() { | 1610 buildVerificationCodes() { |
| 1575 var o = new api.VerificationCodes(); | 1611 var o = new api.VerificationCodes(); |
| 1576 buildCounterVerificationCodes++; | 1612 buildCounterVerificationCodes++; |
| 1577 if (buildCounterVerificationCodes < 3) { | 1613 if (buildCounterVerificationCodes < 3) { |
| 1578 o.etag = "foo"; | 1614 o.etag = "foo"; |
| 1579 o.items = buildUnnamed943(); | 1615 o.items = buildUnnamed488(); |
| 1580 o.kind = "foo"; | 1616 o.kind = "foo"; |
| 1581 } | 1617 } |
| 1582 buildCounterVerificationCodes--; | 1618 buildCounterVerificationCodes--; |
| 1583 return o; | 1619 return o; |
| 1584 } | 1620 } |
| 1585 | 1621 |
| 1586 checkVerificationCodes(api.VerificationCodes o) { | 1622 checkVerificationCodes(api.VerificationCodes o) { |
| 1587 buildCounterVerificationCodes++; | 1623 buildCounterVerificationCodes++; |
| 1588 if (buildCounterVerificationCodes < 3) { | 1624 if (buildCounterVerificationCodes < 3) { |
| 1589 unittest.expect(o.etag, unittest.equals('foo')); | 1625 unittest.expect(o.etag, unittest.equals('foo')); |
| 1590 checkUnnamed943(o.items); | 1626 checkUnnamed488(o.items); |
| 1591 unittest.expect(o.kind, unittest.equals('foo')); | 1627 unittest.expect(o.kind, unittest.equals('foo')); |
| 1592 } | 1628 } |
| 1593 buildCounterVerificationCodes--; | 1629 buildCounterVerificationCodes--; |
| 1594 } | 1630 } |
| 1595 | 1631 |
| 1596 buildUnnamed944() { | 1632 buildUnnamed489() { |
| 1597 var o = new core.List<core.String>(); | 1633 var o = new core.List<core.String>(); |
| 1598 o.add("foo"); | 1634 o.add("foo"); |
| 1599 o.add("foo"); | 1635 o.add("foo"); |
| 1600 return o; | 1636 return o; |
| 1601 } | 1637 } |
| 1602 | 1638 |
| 1603 checkUnnamed944(core.List<core.String> o) { | 1639 checkUnnamed489(core.List<core.String> o) { |
| 1604 unittest.expect(o, unittest.hasLength(2)); | 1640 unittest.expect(o, unittest.hasLength(2)); |
| 1605 unittest.expect(o[0], unittest.equals('foo')); | 1641 unittest.expect(o[0], unittest.equals('foo')); |
| 1606 unittest.expect(o[1], unittest.equals('foo')); | 1642 unittest.expect(o[1], unittest.equals('foo')); |
| 1607 } | 1643 } |
| 1608 | 1644 |
| 1609 buildUnnamed945() { | 1645 buildUnnamed490() { |
| 1610 var o = new core.List<core.String>(); | 1646 var o = new core.List<core.String>(); |
| 1611 o.add("foo"); | 1647 o.add("foo"); |
| 1612 o.add("foo"); | 1648 o.add("foo"); |
| 1613 return o; | 1649 return o; |
| 1614 } | 1650 } |
| 1615 | 1651 |
| 1616 checkUnnamed945(core.List<core.String> o) { | 1652 checkUnnamed490(core.List<core.String> o) { |
| 1617 unittest.expect(o, unittest.hasLength(2)); | 1653 unittest.expect(o, unittest.hasLength(2)); |
| 1618 unittest.expect(o[0], unittest.equals('foo')); | 1654 unittest.expect(o[0], unittest.equals('foo')); |
| 1619 unittest.expect(o[1], unittest.equals('foo')); | 1655 unittest.expect(o[1], unittest.equals('foo')); |
| 1620 } | 1656 } |
| 1621 | 1657 |
| 1622 buildUnnamed946() { | 1658 buildUnnamed491() { |
| 1623 var o = new core.List<core.String>(); | 1659 var o = new core.List<core.String>(); |
| 1624 o.add("foo"); | 1660 o.add("foo"); |
| 1625 o.add("foo"); | 1661 o.add("foo"); |
| 1626 return o; | 1662 return o; |
| 1627 } | 1663 } |
| 1628 | 1664 |
| 1629 checkUnnamed946(core.List<core.String> o) { | 1665 checkUnnamed491(core.List<core.String> o) { |
| 1630 unittest.expect(o, unittest.hasLength(2)); | 1666 unittest.expect(o, unittest.hasLength(2)); |
| 1631 unittest.expect(o[0], unittest.equals('foo')); | 1667 unittest.expect(o[0], unittest.equals('foo')); |
| 1632 unittest.expect(o[1], unittest.equals('foo')); | 1668 unittest.expect(o[1], unittest.equals('foo')); |
| 1633 } | 1669 } |
| 1634 | 1670 |
| 1635 buildUnnamed947() { | 1671 buildUnnamed492() { |
| 1636 var o = new core.List<core.String>(); | 1672 var o = new core.List<core.String>(); |
| 1637 o.add("foo"); | 1673 o.add("foo"); |
| 1638 o.add("foo"); | 1674 o.add("foo"); |
| 1639 return o; | 1675 return o; |
| 1640 } | 1676 } |
| 1641 | 1677 |
| 1642 checkUnnamed947(core.List<core.String> o) { | 1678 checkUnnamed492(core.List<core.String> o) { |
| 1643 unittest.expect(o, unittest.hasLength(2)); | 1679 unittest.expect(o, unittest.hasLength(2)); |
| 1644 unittest.expect(o[0], unittest.equals('foo')); | 1680 unittest.expect(o[0], unittest.equals('foo')); |
| 1645 unittest.expect(o[1], unittest.equals('foo')); | 1681 unittest.expect(o[1], unittest.equals('foo')); |
| 1646 } | 1682 } |
| 1647 | 1683 |
| 1648 | 1684 |
| 1649 main() { | 1685 main() { |
| 1650 unittest.group("obj-schema-Alias", () { | 1686 unittest.group("obj-schema-Alias", () { |
| 1651 unittest.test("to-json--from-json", () { | 1687 unittest.test("to-json--from-json", () { |
| 1652 var o = buildAlias(); | 1688 var o = buildAlias(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1685 | 1721 |
| 1686 unittest.group("obj-schema-Channel", () { | 1722 unittest.group("obj-schema-Channel", () { |
| 1687 unittest.test("to-json--from-json", () { | 1723 unittest.test("to-json--from-json", () { |
| 1688 var o = buildChannel(); | 1724 var o = buildChannel(); |
| 1689 var od = new api.Channel.fromJson(o.toJson()); | 1725 var od = new api.Channel.fromJson(o.toJson()); |
| 1690 checkChannel(od); | 1726 checkChannel(od); |
| 1691 }); | 1727 }); |
| 1692 }); | 1728 }); |
| 1693 | 1729 |
| 1694 | 1730 |
| 1731 unittest.group("obj-schema-ChromeOsDeviceActiveTimeRanges", () { |
| 1732 unittest.test("to-json--from-json", () { |
| 1733 var o = buildChromeOsDeviceActiveTimeRanges(); |
| 1734 var od = new api.ChromeOsDeviceActiveTimeRanges.fromJson(o.toJson()); |
| 1735 checkChromeOsDeviceActiveTimeRanges(od); |
| 1736 }); |
| 1737 }); |
| 1738 |
| 1739 |
| 1695 unittest.group("obj-schema-ChromeOsDeviceRecentUsers", () { | 1740 unittest.group("obj-schema-ChromeOsDeviceRecentUsers", () { |
| 1696 unittest.test("to-json--from-json", () { | 1741 unittest.test("to-json--from-json", () { |
| 1697 var o = buildChromeOsDeviceRecentUsers(); | 1742 var o = buildChromeOsDeviceRecentUsers(); |
| 1698 var od = new api.ChromeOsDeviceRecentUsers.fromJson(o.toJson()); | 1743 var od = new api.ChromeOsDeviceRecentUsers.fromJson(o.toJson()); |
| 1699 checkChromeOsDeviceRecentUsers(od); | 1744 checkChromeOsDeviceRecentUsers(od); |
| 1700 }); | 1745 }); |
| 1701 }); | 1746 }); |
| 1702 | 1747 |
| 1703 | 1748 |
| 1704 unittest.group("obj-schema-ChromeOsDevice", () { | 1749 unittest.group("obj-schema-ChromeOsDevice", () { |
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3872 | 3917 |
| 3873 }); | 3918 }); |
| 3874 | 3919 |
| 3875 | 3920 |
| 3876 unittest.group("resource-OrgunitsResourceApi", () { | 3921 unittest.group("resource-OrgunitsResourceApi", () { |
| 3877 unittest.test("method--delete", () { | 3922 unittest.test("method--delete", () { |
| 3878 | 3923 |
| 3879 var mock = new common_test.HttpServerMock(); | 3924 var mock = new common_test.HttpServerMock(); |
| 3880 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 3925 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 3881 var arg_customerId = "foo"; | 3926 var arg_customerId = "foo"; |
| 3882 var arg_orgUnitPath = buildUnnamed944(); | 3927 var arg_orgUnitPath = buildUnnamed489(); |
| 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3928 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3884 var path = (req.url).path; | 3929 var path = (req.url).path; |
| 3885 var pathOffset = 0; | 3930 var pathOffset = 0; |
| 3886 var index; | 3931 var index; |
| 3887 var subPart; | 3932 var subPart; |
| 3888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3889 pathOffset += 1; | 3934 pathOffset += 1; |
| 3890 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3935 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
| 3891 pathOffset += 19; | 3936 pathOffset += 19; |
| 3892 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3926 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3971 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 3927 }), true); | 3972 }), true); |
| 3928 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); | 3973 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); |
| 3929 }); | 3974 }); |
| 3930 | 3975 |
| 3931 unittest.test("method--get", () { | 3976 unittest.test("method--get", () { |
| 3932 | 3977 |
| 3933 var mock = new common_test.HttpServerMock(); | 3978 var mock = new common_test.HttpServerMock(); |
| 3934 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 3979 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 3935 var arg_customerId = "foo"; | 3980 var arg_customerId = "foo"; |
| 3936 var arg_orgUnitPath = buildUnnamed945(); | 3981 var arg_orgUnitPath = buildUnnamed490(); |
| 3937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3938 var path = (req.url).path; | 3983 var path = (req.url).path; |
| 3939 var pathOffset = 0; | 3984 var pathOffset = 0; |
| 3940 var index; | 3985 var index; |
| 3941 var subPart; | 3986 var subPart; |
| 3942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3943 pathOffset += 1; | 3988 pathOffset += 1; |
| 3944 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3989 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
| 3945 pathOffset += 19; | 3990 pathOffset += 19; |
| 3946 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3991 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4097 checkOrgUnits(response); | 4142 checkOrgUnits(response); |
| 4098 }))); | 4143 }))); |
| 4099 }); | 4144 }); |
| 4100 | 4145 |
| 4101 unittest.test("method--patch", () { | 4146 unittest.test("method--patch", () { |
| 4102 | 4147 |
| 4103 var mock = new common_test.HttpServerMock(); | 4148 var mock = new common_test.HttpServerMock(); |
| 4104 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4149 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 4105 var arg_request = buildOrgUnit(); | 4150 var arg_request = buildOrgUnit(); |
| 4106 var arg_customerId = "foo"; | 4151 var arg_customerId = "foo"; |
| 4107 var arg_orgUnitPath = buildUnnamed946(); | 4152 var arg_orgUnitPath = buildUnnamed491(); |
| 4108 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4109 var obj = new api.OrgUnit.fromJson(json); | 4154 var obj = new api.OrgUnit.fromJson(json); |
| 4110 checkOrgUnit(obj); | 4155 checkOrgUnit(obj); |
| 4111 | 4156 |
| 4112 var path = (req.url).path; | 4157 var path = (req.url).path; |
| 4113 var pathOffset = 0; | 4158 var pathOffset = 0; |
| 4114 var index; | 4159 var index; |
| 4115 var subPart; | 4160 var subPart; |
| 4116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4117 pathOffset += 1; | 4162 pathOffset += 1; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4157 checkOrgUnit(response); | 4202 checkOrgUnit(response); |
| 4158 }))); | 4203 }))); |
| 4159 }); | 4204 }); |
| 4160 | 4205 |
| 4161 unittest.test("method--update", () { | 4206 unittest.test("method--update", () { |
| 4162 | 4207 |
| 4163 var mock = new common_test.HttpServerMock(); | 4208 var mock = new common_test.HttpServerMock(); |
| 4164 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4209 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 4165 var arg_request = buildOrgUnit(); | 4210 var arg_request = buildOrgUnit(); |
| 4166 var arg_customerId = "foo"; | 4211 var arg_customerId = "foo"; |
| 4167 var arg_orgUnitPath = buildUnnamed947(); | 4212 var arg_orgUnitPath = buildUnnamed492(); |
| 4168 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4169 var obj = new api.OrgUnit.fromJson(json); | 4214 var obj = new api.OrgUnit.fromJson(json); |
| 4170 checkOrgUnit(obj); | 4215 checkOrgUnit(obj); |
| 4171 | 4216 |
| 4172 var path = (req.url).path; | 4217 var path = (req.url).path; |
| 4173 var pathOffset = 0; | 4218 var pathOffset = 0; |
| 4174 var index; | 4219 var index; |
| 4175 var subPart; | 4220 var subPart; |
| 4176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4177 pathOffset += 1; | 4222 pathOffset += 1; |
| (...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5857 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { | 5902 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { |
| 5858 checkVerificationCodes(response); | 5903 checkVerificationCodes(response); |
| 5859 }))); | 5904 }))); |
| 5860 }); | 5905 }); |
| 5861 | 5906 |
| 5862 }); | 5907 }); |
| 5863 | 5908 |
| 5864 | 5909 |
| 5865 } | 5910 } |
| 5866 | 5911 |
| OLD | NEW |