| 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 buildUnnamed941() { | 46 buildUnnamed919() { |
| 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 checkUnnamed941(core.List<api.Alias> o) { | 53 checkUnnamed919(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 = buildUnnamed941(); | 64 o.aliases = buildUnnamed919(); |
| 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 checkUnnamed941(o.aliases); | 75 checkUnnamed919(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 buildUnnamed942() { | 113 buildUnnamed920() { |
| 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 checkUnnamed942(core.List<api.Asp> o) { | 120 checkUnnamed920(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 = buildUnnamed942(); | 132 o.items = buildUnnamed920(); |
| 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 checkUnnamed942(o.items); | 143 checkUnnamed920(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 buildUnnamed943() { | 149 buildUnnamed921() { |
| 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 checkUnnamed943(core.Map<core.String, core.String> o) { | 156 checkUnnamed921(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 = buildUnnamed943(); | 171 o.params = buildUnnamed921(); |
| 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 checkUnnamed943(o.params); | 189 checkUnnamed921(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 buildCounterChromeOsDeviceRecentUsers = 0; | 199 core.int buildCounterChromeOsDeviceRecentUsers = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 210 | 210 |
| 211 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { | 211 checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) { |
| 212 buildCounterChromeOsDeviceRecentUsers++; | 212 buildCounterChromeOsDeviceRecentUsers++; |
| 213 if (buildCounterChromeOsDeviceRecentUsers < 3) { | 213 if (buildCounterChromeOsDeviceRecentUsers < 3) { |
| 214 unittest.expect(o.email, unittest.equals('foo')); | 214 unittest.expect(o.email, unittest.equals('foo')); |
| 215 unittest.expect(o.type, unittest.equals('foo')); | 215 unittest.expect(o.type, unittest.equals('foo')); |
| 216 } | 216 } |
| 217 buildCounterChromeOsDeviceRecentUsers--; | 217 buildCounterChromeOsDeviceRecentUsers--; |
| 218 } | 218 } |
| 219 | 219 |
| 220 buildUnnamed944() { | 220 buildUnnamed922() { |
| 221 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); | 221 var o = new core.List<api.ChromeOsDeviceRecentUsers>(); |
| 222 o.add(buildChromeOsDeviceRecentUsers()); | 222 o.add(buildChromeOsDeviceRecentUsers()); |
| 223 o.add(buildChromeOsDeviceRecentUsers()); | 223 o.add(buildChromeOsDeviceRecentUsers()); |
| 224 return o; | 224 return o; |
| 225 } | 225 } |
| 226 | 226 |
| 227 checkUnnamed944(core.List<api.ChromeOsDeviceRecentUsers> o) { | 227 checkUnnamed922(core.List<api.ChromeOsDeviceRecentUsers> o) { |
| 228 unittest.expect(o, unittest.hasLength(2)); | 228 unittest.expect(o, unittest.hasLength(2)); |
| 229 checkChromeOsDeviceRecentUsers(o[0]); | 229 checkChromeOsDeviceRecentUsers(o[0]); |
| 230 checkChromeOsDeviceRecentUsers(o[1]); | 230 checkChromeOsDeviceRecentUsers(o[1]); |
| 231 } | 231 } |
| 232 | 232 |
| 233 core.int buildCounterChromeOsDevice = 0; | 233 core.int buildCounterChromeOsDevice = 0; |
| 234 buildChromeOsDevice() { | 234 buildChromeOsDevice() { |
| 235 var o = new api.ChromeOsDevice(); | 235 var o = new api.ChromeOsDevice(); |
| 236 buildCounterChromeOsDevice++; | 236 buildCounterChromeOsDevice++; |
| 237 if (buildCounterChromeOsDevice < 3) { | 237 if (buildCounterChromeOsDevice < 3) { |
| 238 o.annotatedLocation = "foo"; | 238 o.annotatedLocation = "foo"; |
| 239 o.annotatedUser = "foo"; | 239 o.annotatedUser = "foo"; |
| 240 o.bootMode = "foo"; | 240 o.bootMode = "foo"; |
| 241 o.deviceId = "foo"; | 241 o.deviceId = "foo"; |
| 242 o.etag = "foo"; | 242 o.etag = "foo"; |
| 243 o.ethernetMacAddress = "foo"; | 243 o.ethernetMacAddress = "foo"; |
| 244 o.firmwareVersion = "foo"; | 244 o.firmwareVersion = "foo"; |
| 245 o.kind = "foo"; | 245 o.kind = "foo"; |
| 246 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); | 246 o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 247 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 247 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 248 o.macAddress = "foo"; | 248 o.macAddress = "foo"; |
| 249 o.meid = "foo"; | 249 o.meid = "foo"; |
| 250 o.model = "foo"; | 250 o.model = "foo"; |
| 251 o.notes = "foo"; | 251 o.notes = "foo"; |
| 252 o.orderNumber = "foo"; | 252 o.orderNumber = "foo"; |
| 253 o.orgUnitPath = "foo"; | 253 o.orgUnitPath = "foo"; |
| 254 o.osVersion = "foo"; | 254 o.osVersion = "foo"; |
| 255 o.platformVersion = "foo"; | 255 o.platformVersion = "foo"; |
| 256 o.recentUsers = buildUnnamed944(); | 256 o.recentUsers = buildUnnamed922(); |
| 257 o.serialNumber = "foo"; | 257 o.serialNumber = "foo"; |
| 258 o.status = "foo"; | 258 o.status = "foo"; |
| 259 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); | 259 o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 260 o.willAutoRenew = true; | 260 o.willAutoRenew = true; |
| 261 } | 261 } |
| 262 buildCounterChromeOsDevice--; | 262 buildCounterChromeOsDevice--; |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkChromeOsDevice(api.ChromeOsDevice o) { | 266 checkChromeOsDevice(api.ChromeOsDevice o) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 277 unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 277 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"))); | 278 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 279 unittest.expect(o.macAddress, unittest.equals('foo')); | 279 unittest.expect(o.macAddress, unittest.equals('foo')); |
| 280 unittest.expect(o.meid, unittest.equals('foo')); | 280 unittest.expect(o.meid, unittest.equals('foo')); |
| 281 unittest.expect(o.model, unittest.equals('foo')); | 281 unittest.expect(o.model, unittest.equals('foo')); |
| 282 unittest.expect(o.notes, unittest.equals('foo')); | 282 unittest.expect(o.notes, unittest.equals('foo')); |
| 283 unittest.expect(o.orderNumber, unittest.equals('foo')); | 283 unittest.expect(o.orderNumber, unittest.equals('foo')); |
| 284 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 284 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 285 unittest.expect(o.osVersion, unittest.equals('foo')); | 285 unittest.expect(o.osVersion, unittest.equals('foo')); |
| 286 unittest.expect(o.platformVersion, unittest.equals('foo')); | 286 unittest.expect(o.platformVersion, unittest.equals('foo')); |
| 287 checkUnnamed944(o.recentUsers); | 287 checkUnnamed922(o.recentUsers); |
| 288 unittest.expect(o.serialNumber, unittest.equals('foo')); | 288 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 289 unittest.expect(o.status, unittest.equals('foo')); | 289 unittest.expect(o.status, unittest.equals('foo')); |
| 290 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); | 290 unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-
02-27T14:01:02"))); |
| 291 unittest.expect(o.willAutoRenew, unittest.isTrue); | 291 unittest.expect(o.willAutoRenew, unittest.isTrue); |
| 292 } | 292 } |
| 293 buildCounterChromeOsDevice--; | 293 buildCounterChromeOsDevice--; |
| 294 } | 294 } |
| 295 | 295 |
| 296 buildUnnamed945() { | 296 buildUnnamed923() { |
| 297 var o = new core.List<api.ChromeOsDevice>(); | 297 var o = new core.List<api.ChromeOsDevice>(); |
| 298 o.add(buildChromeOsDevice()); | 298 o.add(buildChromeOsDevice()); |
| 299 o.add(buildChromeOsDevice()); | 299 o.add(buildChromeOsDevice()); |
| 300 return o; | 300 return o; |
| 301 } | 301 } |
| 302 | 302 |
| 303 checkUnnamed945(core.List<api.ChromeOsDevice> o) { | 303 checkUnnamed923(core.List<api.ChromeOsDevice> o) { |
| 304 unittest.expect(o, unittest.hasLength(2)); | 304 unittest.expect(o, unittest.hasLength(2)); |
| 305 checkChromeOsDevice(o[0]); | 305 checkChromeOsDevice(o[0]); |
| 306 checkChromeOsDevice(o[1]); | 306 checkChromeOsDevice(o[1]); |
| 307 } | 307 } |
| 308 | 308 |
| 309 core.int buildCounterChromeOsDevices = 0; | 309 core.int buildCounterChromeOsDevices = 0; |
| 310 buildChromeOsDevices() { | 310 buildChromeOsDevices() { |
| 311 var o = new api.ChromeOsDevices(); | 311 var o = new api.ChromeOsDevices(); |
| 312 buildCounterChromeOsDevices++; | 312 buildCounterChromeOsDevices++; |
| 313 if (buildCounterChromeOsDevices < 3) { | 313 if (buildCounterChromeOsDevices < 3) { |
| 314 o.chromeosdevices = buildUnnamed945(); | 314 o.chromeosdevices = buildUnnamed923(); |
| 315 o.etag = "foo"; | 315 o.etag = "foo"; |
| 316 o.kind = "foo"; | 316 o.kind = "foo"; |
| 317 o.nextPageToken = "foo"; | 317 o.nextPageToken = "foo"; |
| 318 } | 318 } |
| 319 buildCounterChromeOsDevices--; | 319 buildCounterChromeOsDevices--; |
| 320 return o; | 320 return o; |
| 321 } | 321 } |
| 322 | 322 |
| 323 checkChromeOsDevices(api.ChromeOsDevices o) { | 323 checkChromeOsDevices(api.ChromeOsDevices o) { |
| 324 buildCounterChromeOsDevices++; | 324 buildCounterChromeOsDevices++; |
| 325 if (buildCounterChromeOsDevices < 3) { | 325 if (buildCounterChromeOsDevices < 3) { |
| 326 checkUnnamed945(o.chromeosdevices); | 326 checkUnnamed923(o.chromeosdevices); |
| 327 unittest.expect(o.etag, unittest.equals('foo')); | 327 unittest.expect(o.etag, unittest.equals('foo')); |
| 328 unittest.expect(o.kind, unittest.equals('foo')); | 328 unittest.expect(o.kind, unittest.equals('foo')); |
| 329 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 329 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 330 } | 330 } |
| 331 buildCounterChromeOsDevices--; | 331 buildCounterChromeOsDevices--; |
| 332 } | 332 } |
| 333 | 333 |
| 334 buildUnnamed946() { | 334 buildUnnamed924() { |
| 335 var o = new core.List<core.String>(); | 335 var o = new core.List<core.String>(); |
| 336 o.add("foo"); | 336 o.add("foo"); |
| 337 o.add("foo"); | 337 o.add("foo"); |
| 338 return o; | 338 return o; |
| 339 } | 339 } |
| 340 | 340 |
| 341 checkUnnamed946(core.List<core.String> o) { | 341 checkUnnamed924(core.List<core.String> o) { |
| 342 unittest.expect(o, unittest.hasLength(2)); | 342 unittest.expect(o, unittest.hasLength(2)); |
| 343 unittest.expect(o[0], unittest.equals('foo')); | 343 unittest.expect(o[0], unittest.equals('foo')); |
| 344 unittest.expect(o[1], unittest.equals('foo')); | 344 unittest.expect(o[1], unittest.equals('foo')); |
| 345 } | 345 } |
| 346 | 346 |
| 347 buildUnnamed947() { | 347 buildUnnamed925() { |
| 348 var o = new core.List<core.String>(); | 348 var o = new core.List<core.String>(); |
| 349 o.add("foo"); | 349 o.add("foo"); |
| 350 o.add("foo"); | 350 o.add("foo"); |
| 351 return o; | 351 return o; |
| 352 } | 352 } |
| 353 | 353 |
| 354 checkUnnamed947(core.List<core.String> o) { | 354 checkUnnamed925(core.List<core.String> o) { |
| 355 unittest.expect(o, unittest.hasLength(2)); | 355 unittest.expect(o, unittest.hasLength(2)); |
| 356 unittest.expect(o[0], unittest.equals('foo')); | 356 unittest.expect(o[0], unittest.equals('foo')); |
| 357 unittest.expect(o[1], unittest.equals('foo')); | 357 unittest.expect(o[1], unittest.equals('foo')); |
| 358 } | 358 } |
| 359 | 359 |
| 360 core.int buildCounterGroup = 0; | 360 core.int buildCounterGroup = 0; |
| 361 buildGroup() { | 361 buildGroup() { |
| 362 var o = new api.Group(); | 362 var o = new api.Group(); |
| 363 buildCounterGroup++; | 363 buildCounterGroup++; |
| 364 if (buildCounterGroup < 3) { | 364 if (buildCounterGroup < 3) { |
| 365 o.adminCreated = true; | 365 o.adminCreated = true; |
| 366 o.aliases = buildUnnamed946(); | 366 o.aliases = buildUnnamed924(); |
| 367 o.description = "foo"; | 367 o.description = "foo"; |
| 368 o.directMembersCount = "foo"; | 368 o.directMembersCount = "foo"; |
| 369 o.email = "foo"; | 369 o.email = "foo"; |
| 370 o.etag = "foo"; | 370 o.etag = "foo"; |
| 371 o.id = "foo"; | 371 o.id = "foo"; |
| 372 o.kind = "foo"; | 372 o.kind = "foo"; |
| 373 o.name = "foo"; | 373 o.name = "foo"; |
| 374 o.nonEditableAliases = buildUnnamed947(); | 374 o.nonEditableAliases = buildUnnamed925(); |
| 375 } | 375 } |
| 376 buildCounterGroup--; | 376 buildCounterGroup--; |
| 377 return o; | 377 return o; |
| 378 } | 378 } |
| 379 | 379 |
| 380 checkGroup(api.Group o) { | 380 checkGroup(api.Group o) { |
| 381 buildCounterGroup++; | 381 buildCounterGroup++; |
| 382 if (buildCounterGroup < 3) { | 382 if (buildCounterGroup < 3) { |
| 383 unittest.expect(o.adminCreated, unittest.isTrue); | 383 unittest.expect(o.adminCreated, unittest.isTrue); |
| 384 checkUnnamed946(o.aliases); | 384 checkUnnamed924(o.aliases); |
| 385 unittest.expect(o.description, unittest.equals('foo')); | 385 unittest.expect(o.description, unittest.equals('foo')); |
| 386 unittest.expect(o.directMembersCount, unittest.equals('foo')); | 386 unittest.expect(o.directMembersCount, unittest.equals('foo')); |
| 387 unittest.expect(o.email, unittest.equals('foo')); | 387 unittest.expect(o.email, unittest.equals('foo')); |
| 388 unittest.expect(o.etag, unittest.equals('foo')); | 388 unittest.expect(o.etag, unittest.equals('foo')); |
| 389 unittest.expect(o.id, unittest.equals('foo')); | 389 unittest.expect(o.id, unittest.equals('foo')); |
| 390 unittest.expect(o.kind, unittest.equals('foo')); | 390 unittest.expect(o.kind, unittest.equals('foo')); |
| 391 unittest.expect(o.name, unittest.equals('foo')); | 391 unittest.expect(o.name, unittest.equals('foo')); |
| 392 checkUnnamed947(o.nonEditableAliases); | 392 checkUnnamed925(o.nonEditableAliases); |
| 393 } | 393 } |
| 394 buildCounterGroup--; | 394 buildCounterGroup--; |
| 395 } | 395 } |
| 396 | 396 |
| 397 buildUnnamed948() { | 397 buildUnnamed926() { |
| 398 var o = new core.List<api.Group>(); | 398 var o = new core.List<api.Group>(); |
| 399 o.add(buildGroup()); | 399 o.add(buildGroup()); |
| 400 o.add(buildGroup()); | 400 o.add(buildGroup()); |
| 401 return o; | 401 return o; |
| 402 } | 402 } |
| 403 | 403 |
| 404 checkUnnamed948(core.List<api.Group> o) { | 404 checkUnnamed926(core.List<api.Group> o) { |
| 405 unittest.expect(o, unittest.hasLength(2)); | 405 unittest.expect(o, unittest.hasLength(2)); |
| 406 checkGroup(o[0]); | 406 checkGroup(o[0]); |
| 407 checkGroup(o[1]); | 407 checkGroup(o[1]); |
| 408 } | 408 } |
| 409 | 409 |
| 410 core.int buildCounterGroups = 0; | 410 core.int buildCounterGroups = 0; |
| 411 buildGroups() { | 411 buildGroups() { |
| 412 var o = new api.Groups(); | 412 var o = new api.Groups(); |
| 413 buildCounterGroups++; | 413 buildCounterGroups++; |
| 414 if (buildCounterGroups < 3) { | 414 if (buildCounterGroups < 3) { |
| 415 o.etag = "foo"; | 415 o.etag = "foo"; |
| 416 o.groups = buildUnnamed948(); | 416 o.groups = buildUnnamed926(); |
| 417 o.kind = "foo"; | 417 o.kind = "foo"; |
| 418 o.nextPageToken = "foo"; | 418 o.nextPageToken = "foo"; |
| 419 } | 419 } |
| 420 buildCounterGroups--; | 420 buildCounterGroups--; |
| 421 return o; | 421 return o; |
| 422 } | 422 } |
| 423 | 423 |
| 424 checkGroups(api.Groups o) { | 424 checkGroups(api.Groups o) { |
| 425 buildCounterGroups++; | 425 buildCounterGroups++; |
| 426 if (buildCounterGroups < 3) { | 426 if (buildCounterGroups < 3) { |
| 427 unittest.expect(o.etag, unittest.equals('foo')); | 427 unittest.expect(o.etag, unittest.equals('foo')); |
| 428 checkUnnamed948(o.groups); | 428 checkUnnamed926(o.groups); |
| 429 unittest.expect(o.kind, unittest.equals('foo')); | 429 unittest.expect(o.kind, unittest.equals('foo')); |
| 430 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 430 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 431 } | 431 } |
| 432 buildCounterGroups--; | 432 buildCounterGroups--; |
| 433 } | 433 } |
| 434 | 434 |
| 435 core.int buildCounterMember = 0; | 435 core.int buildCounterMember = 0; |
| 436 buildMember() { | 436 buildMember() { |
| 437 var o = new api.Member(); | 437 var o = new api.Member(); |
| 438 buildCounterMember++; | 438 buildCounterMember++; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 454 unittest.expect(o.email, unittest.equals('foo')); | 454 unittest.expect(o.email, unittest.equals('foo')); |
| 455 unittest.expect(o.etag, unittest.equals('foo')); | 455 unittest.expect(o.etag, unittest.equals('foo')); |
| 456 unittest.expect(o.id, unittest.equals('foo')); | 456 unittest.expect(o.id, unittest.equals('foo')); |
| 457 unittest.expect(o.kind, unittest.equals('foo')); | 457 unittest.expect(o.kind, unittest.equals('foo')); |
| 458 unittest.expect(o.role, unittest.equals('foo')); | 458 unittest.expect(o.role, unittest.equals('foo')); |
| 459 unittest.expect(o.type, unittest.equals('foo')); | 459 unittest.expect(o.type, unittest.equals('foo')); |
| 460 } | 460 } |
| 461 buildCounterMember--; | 461 buildCounterMember--; |
| 462 } | 462 } |
| 463 | 463 |
| 464 buildUnnamed949() { | 464 buildUnnamed927() { |
| 465 var o = new core.List<api.Member>(); | 465 var o = new core.List<api.Member>(); |
| 466 o.add(buildMember()); | 466 o.add(buildMember()); |
| 467 o.add(buildMember()); | 467 o.add(buildMember()); |
| 468 return o; | 468 return o; |
| 469 } | 469 } |
| 470 | 470 |
| 471 checkUnnamed949(core.List<api.Member> o) { | 471 checkUnnamed927(core.List<api.Member> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
| 473 checkMember(o[0]); | 473 checkMember(o[0]); |
| 474 checkMember(o[1]); | 474 checkMember(o[1]); |
| 475 } | 475 } |
| 476 | 476 |
| 477 core.int buildCounterMembers = 0; | 477 core.int buildCounterMembers = 0; |
| 478 buildMembers() { | 478 buildMembers() { |
| 479 var o = new api.Members(); | 479 var o = new api.Members(); |
| 480 buildCounterMembers++; | 480 buildCounterMembers++; |
| 481 if (buildCounterMembers < 3) { | 481 if (buildCounterMembers < 3) { |
| 482 o.etag = "foo"; | 482 o.etag = "foo"; |
| 483 o.kind = "foo"; | 483 o.kind = "foo"; |
| 484 o.members = buildUnnamed949(); | 484 o.members = buildUnnamed927(); |
| 485 o.nextPageToken = "foo"; | 485 o.nextPageToken = "foo"; |
| 486 } | 486 } |
| 487 buildCounterMembers--; | 487 buildCounterMembers--; |
| 488 return o; | 488 return o; |
| 489 } | 489 } |
| 490 | 490 |
| 491 checkMembers(api.Members o) { | 491 checkMembers(api.Members o) { |
| 492 buildCounterMembers++; | 492 buildCounterMembers++; |
| 493 if (buildCounterMembers < 3) { | 493 if (buildCounterMembers < 3) { |
| 494 unittest.expect(o.etag, unittest.equals('foo')); | 494 unittest.expect(o.etag, unittest.equals('foo')); |
| 495 unittest.expect(o.kind, unittest.equals('foo')); | 495 unittest.expect(o.kind, unittest.equals('foo')); |
| 496 checkUnnamed949(o.members); | 496 checkUnnamed927(o.members); |
| 497 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 497 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 498 } | 498 } |
| 499 buildCounterMembers--; | 499 buildCounterMembers--; |
| 500 } | 500 } |
| 501 | 501 |
| 502 buildUnnamed950() { | 502 buildUnnamed928() { |
| 503 var o = new core.List<core.String>(); | 503 var o = new core.List<core.String>(); |
| 504 o.add("foo"); | 504 o.add("foo"); |
| 505 o.add("foo"); | 505 o.add("foo"); |
| 506 return o; | 506 return o; |
| 507 } | 507 } |
| 508 | 508 |
| 509 checkUnnamed950(core.List<core.String> o) { | 509 checkUnnamed928(core.List<core.String> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
| 511 unittest.expect(o[0], unittest.equals('foo')); | 511 unittest.expect(o[0], unittest.equals('foo')); |
| 512 unittest.expect(o[1], unittest.equals('foo')); | 512 unittest.expect(o[1], unittest.equals('foo')); |
| 513 } | 513 } |
| 514 | 514 |
| 515 core.int buildCounterMobileDeviceApplications = 0; | 515 core.int buildCounterMobileDeviceApplications = 0; |
| 516 buildMobileDeviceApplications() { | 516 buildMobileDeviceApplications() { |
| 517 var o = new api.MobileDeviceApplications(); | 517 var o = new api.MobileDeviceApplications(); |
| 518 buildCounterMobileDeviceApplications++; | 518 buildCounterMobileDeviceApplications++; |
| 519 if (buildCounterMobileDeviceApplications < 3) { | 519 if (buildCounterMobileDeviceApplications < 3) { |
| 520 o.displayName = "foo"; | 520 o.displayName = "foo"; |
| 521 o.packageName = "foo"; | 521 o.packageName = "foo"; |
| 522 o.permission = buildUnnamed950(); | 522 o.permission = buildUnnamed928(); |
| 523 o.versionCode = 42; | 523 o.versionCode = 42; |
| 524 o.versionName = "foo"; | 524 o.versionName = "foo"; |
| 525 } | 525 } |
| 526 buildCounterMobileDeviceApplications--; | 526 buildCounterMobileDeviceApplications--; |
| 527 return o; | 527 return o; |
| 528 } | 528 } |
| 529 | 529 |
| 530 checkMobileDeviceApplications(api.MobileDeviceApplications o) { | 530 checkMobileDeviceApplications(api.MobileDeviceApplications o) { |
| 531 buildCounterMobileDeviceApplications++; | 531 buildCounterMobileDeviceApplications++; |
| 532 if (buildCounterMobileDeviceApplications < 3) { | 532 if (buildCounterMobileDeviceApplications < 3) { |
| 533 unittest.expect(o.displayName, unittest.equals('foo')); | 533 unittest.expect(o.displayName, unittest.equals('foo')); |
| 534 unittest.expect(o.packageName, unittest.equals('foo')); | 534 unittest.expect(o.packageName, unittest.equals('foo')); |
| 535 checkUnnamed950(o.permission); | 535 checkUnnamed928(o.permission); |
| 536 unittest.expect(o.versionCode, unittest.equals(42)); | 536 unittest.expect(o.versionCode, unittest.equals(42)); |
| 537 unittest.expect(o.versionName, unittest.equals('foo')); | 537 unittest.expect(o.versionName, unittest.equals('foo')); |
| 538 } | 538 } |
| 539 buildCounterMobileDeviceApplications--; | 539 buildCounterMobileDeviceApplications--; |
| 540 } | 540 } |
| 541 | 541 |
| 542 buildUnnamed951() { | 542 buildUnnamed929() { |
| 543 var o = new core.List<api.MobileDeviceApplications>(); | 543 var o = new core.List<api.MobileDeviceApplications>(); |
| 544 o.add(buildMobileDeviceApplications()); | 544 o.add(buildMobileDeviceApplications()); |
| 545 o.add(buildMobileDeviceApplications()); | 545 o.add(buildMobileDeviceApplications()); |
| 546 return o; | 546 return o; |
| 547 } | 547 } |
| 548 | 548 |
| 549 checkUnnamed951(core.List<api.MobileDeviceApplications> o) { | 549 checkUnnamed929(core.List<api.MobileDeviceApplications> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
| 551 checkMobileDeviceApplications(o[0]); | 551 checkMobileDeviceApplications(o[0]); |
| 552 checkMobileDeviceApplications(o[1]); | 552 checkMobileDeviceApplications(o[1]); |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed952() { | 555 buildUnnamed930() { |
| 556 var o = new core.List<core.String>(); | 556 var o = new core.List<core.String>(); |
| 557 o.add("foo"); | 557 o.add("foo"); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed952(core.List<core.String> o) { | 562 checkUnnamed930(core.List<core.String> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 unittest.expect(o[0], unittest.equals('foo')); | 564 unittest.expect(o[0], unittest.equals('foo')); |
| 565 unittest.expect(o[1], unittest.equals('foo')); | 565 unittest.expect(o[1], unittest.equals('foo')); |
| 566 } | 566 } |
| 567 | 567 |
| 568 buildUnnamed953() { | 568 buildUnnamed931() { |
| 569 var o = new core.List<core.String>(); | 569 var o = new core.List<core.String>(); |
| 570 o.add("foo"); | 570 o.add("foo"); |
| 571 o.add("foo"); | 571 o.add("foo"); |
| 572 return o; | 572 return o; |
| 573 } | 573 } |
| 574 | 574 |
| 575 checkUnnamed953(core.List<core.String> o) { | 575 checkUnnamed931(core.List<core.String> o) { |
| 576 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
| 577 unittest.expect(o[0], unittest.equals('foo')); | 577 unittest.expect(o[0], unittest.equals('foo')); |
| 578 unittest.expect(o[1], unittest.equals('foo')); | 578 unittest.expect(o[1], unittest.equals('foo')); |
| 579 } | 579 } |
| 580 | 580 |
| 581 core.int buildCounterMobileDevice = 0; | 581 core.int buildCounterMobileDevice = 0; |
| 582 buildMobileDevice() { | 582 buildMobileDevice() { |
| 583 var o = new api.MobileDevice(); | 583 var o = new api.MobileDevice(); |
| 584 buildCounterMobileDevice++; | 584 buildCounterMobileDevice++; |
| 585 if (buildCounterMobileDevice < 3) { | 585 if (buildCounterMobileDevice < 3) { |
| 586 o.applications = buildUnnamed951(); | 586 o.applications = buildUnnamed929(); |
| 587 o.basebandVersion = "foo"; | 587 o.basebandVersion = "foo"; |
| 588 o.buildNumber = "foo"; | 588 o.buildNumber = "foo"; |
| 589 o.defaultLanguage = "foo"; | 589 o.defaultLanguage = "foo"; |
| 590 o.deviceCompromisedStatus = "foo"; | 590 o.deviceCompromisedStatus = "foo"; |
| 591 o.deviceId = "foo"; | 591 o.deviceId = "foo"; |
| 592 o.email = buildUnnamed952(); | 592 o.email = buildUnnamed930(); |
| 593 o.etag = "foo"; | 593 o.etag = "foo"; |
| 594 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); | 594 o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 595 o.hardwareId = "foo"; | 595 o.hardwareId = "foo"; |
| 596 o.imei = "foo"; | 596 o.imei = "foo"; |
| 597 o.kernelVersion = "foo"; | 597 o.kernelVersion = "foo"; |
| 598 o.kind = "foo"; | 598 o.kind = "foo"; |
| 599 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); | 599 o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); |
| 600 o.managedAccountIsOnOwnerProfile = true; | 600 o.managedAccountIsOnOwnerProfile = true; |
| 601 o.meid = "foo"; | 601 o.meid = "foo"; |
| 602 o.model = "foo"; | 602 o.model = "foo"; |
| 603 o.name = buildUnnamed953(); | 603 o.name = buildUnnamed931(); |
| 604 o.networkOperator = "foo"; | 604 o.networkOperator = "foo"; |
| 605 o.os = "foo"; | 605 o.os = "foo"; |
| 606 o.resourceId = "foo"; | 606 o.resourceId = "foo"; |
| 607 o.serialNumber = "foo"; | 607 o.serialNumber = "foo"; |
| 608 o.status = "foo"; | 608 o.status = "foo"; |
| 609 o.type = "foo"; | 609 o.type = "foo"; |
| 610 o.userAgent = "foo"; | 610 o.userAgent = "foo"; |
| 611 o.wifiMacAddress = "foo"; | 611 o.wifiMacAddress = "foo"; |
| 612 } | 612 } |
| 613 buildCounterMobileDevice--; | 613 buildCounterMobileDevice--; |
| 614 return o; | 614 return o; |
| 615 } | 615 } |
| 616 | 616 |
| 617 checkMobileDevice(api.MobileDevice o) { | 617 checkMobileDevice(api.MobileDevice o) { |
| 618 buildCounterMobileDevice++; | 618 buildCounterMobileDevice++; |
| 619 if (buildCounterMobileDevice < 3) { | 619 if (buildCounterMobileDevice < 3) { |
| 620 checkUnnamed951(o.applications); | 620 checkUnnamed929(o.applications); |
| 621 unittest.expect(o.basebandVersion, unittest.equals('foo')); | 621 unittest.expect(o.basebandVersion, unittest.equals('foo')); |
| 622 unittest.expect(o.buildNumber, unittest.equals('foo')); | 622 unittest.expect(o.buildNumber, unittest.equals('foo')); |
| 623 unittest.expect(o.defaultLanguage, unittest.equals('foo')); | 623 unittest.expect(o.defaultLanguage, unittest.equals('foo')); |
| 624 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); | 624 unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); |
| 625 unittest.expect(o.deviceId, unittest.equals('foo')); | 625 unittest.expect(o.deviceId, unittest.equals('foo')); |
| 626 checkUnnamed952(o.email); | 626 checkUnnamed930(o.email); |
| 627 unittest.expect(o.etag, unittest.equals('foo')); | 627 unittest.expect(o.etag, unittest.equals('foo')); |
| 628 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 628 unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 629 unittest.expect(o.hardwareId, unittest.equals('foo')); | 629 unittest.expect(o.hardwareId, unittest.equals('foo')); |
| 630 unittest.expect(o.imei, unittest.equals('foo')); | 630 unittest.expect(o.imei, unittest.equals('foo')); |
| 631 unittest.expect(o.kernelVersion, unittest.equals('foo')); | 631 unittest.expect(o.kernelVersion, unittest.equals('foo')); |
| 632 unittest.expect(o.kind, unittest.equals('foo')); | 632 unittest.expect(o.kind, unittest.equals('foo')); |
| 633 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 633 unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 634 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); | 634 unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); |
| 635 unittest.expect(o.meid, unittest.equals('foo')); | 635 unittest.expect(o.meid, unittest.equals('foo')); |
| 636 unittest.expect(o.model, unittest.equals('foo')); | 636 unittest.expect(o.model, unittest.equals('foo')); |
| 637 checkUnnamed953(o.name); | 637 checkUnnamed931(o.name); |
| 638 unittest.expect(o.networkOperator, unittest.equals('foo')); | 638 unittest.expect(o.networkOperator, unittest.equals('foo')); |
| 639 unittest.expect(o.os, unittest.equals('foo')); | 639 unittest.expect(o.os, unittest.equals('foo')); |
| 640 unittest.expect(o.resourceId, unittest.equals('foo')); | 640 unittest.expect(o.resourceId, unittest.equals('foo')); |
| 641 unittest.expect(o.serialNumber, unittest.equals('foo')); | 641 unittest.expect(o.serialNumber, unittest.equals('foo')); |
| 642 unittest.expect(o.status, unittest.equals('foo')); | 642 unittest.expect(o.status, unittest.equals('foo')); |
| 643 unittest.expect(o.type, unittest.equals('foo')); | 643 unittest.expect(o.type, unittest.equals('foo')); |
| 644 unittest.expect(o.userAgent, unittest.equals('foo')); | 644 unittest.expect(o.userAgent, unittest.equals('foo')); |
| 645 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); | 645 unittest.expect(o.wifiMacAddress, unittest.equals('foo')); |
| 646 } | 646 } |
| 647 buildCounterMobileDevice--; | 647 buildCounterMobileDevice--; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 659 } | 659 } |
| 660 | 660 |
| 661 checkMobileDeviceAction(api.MobileDeviceAction o) { | 661 checkMobileDeviceAction(api.MobileDeviceAction o) { |
| 662 buildCounterMobileDeviceAction++; | 662 buildCounterMobileDeviceAction++; |
| 663 if (buildCounterMobileDeviceAction < 3) { | 663 if (buildCounterMobileDeviceAction < 3) { |
| 664 unittest.expect(o.action, unittest.equals('foo')); | 664 unittest.expect(o.action, unittest.equals('foo')); |
| 665 } | 665 } |
| 666 buildCounterMobileDeviceAction--; | 666 buildCounterMobileDeviceAction--; |
| 667 } | 667 } |
| 668 | 668 |
| 669 buildUnnamed954() { | 669 buildUnnamed932() { |
| 670 var o = new core.List<api.MobileDevice>(); | 670 var o = new core.List<api.MobileDevice>(); |
| 671 o.add(buildMobileDevice()); | 671 o.add(buildMobileDevice()); |
| 672 o.add(buildMobileDevice()); | 672 o.add(buildMobileDevice()); |
| 673 return o; | 673 return o; |
| 674 } | 674 } |
| 675 | 675 |
| 676 checkUnnamed954(core.List<api.MobileDevice> o) { | 676 checkUnnamed932(core.List<api.MobileDevice> o) { |
| 677 unittest.expect(o, unittest.hasLength(2)); | 677 unittest.expect(o, unittest.hasLength(2)); |
| 678 checkMobileDevice(o[0]); | 678 checkMobileDevice(o[0]); |
| 679 checkMobileDevice(o[1]); | 679 checkMobileDevice(o[1]); |
| 680 } | 680 } |
| 681 | 681 |
| 682 core.int buildCounterMobileDevices = 0; | 682 core.int buildCounterMobileDevices = 0; |
| 683 buildMobileDevices() { | 683 buildMobileDevices() { |
| 684 var o = new api.MobileDevices(); | 684 var o = new api.MobileDevices(); |
| 685 buildCounterMobileDevices++; | 685 buildCounterMobileDevices++; |
| 686 if (buildCounterMobileDevices < 3) { | 686 if (buildCounterMobileDevices < 3) { |
| 687 o.etag = "foo"; | 687 o.etag = "foo"; |
| 688 o.kind = "foo"; | 688 o.kind = "foo"; |
| 689 o.mobiledevices = buildUnnamed954(); | 689 o.mobiledevices = buildUnnamed932(); |
| 690 o.nextPageToken = "foo"; | 690 o.nextPageToken = "foo"; |
| 691 } | 691 } |
| 692 buildCounterMobileDevices--; | 692 buildCounterMobileDevices--; |
| 693 return o; | 693 return o; |
| 694 } | 694 } |
| 695 | 695 |
| 696 checkMobileDevices(api.MobileDevices o) { | 696 checkMobileDevices(api.MobileDevices o) { |
| 697 buildCounterMobileDevices++; | 697 buildCounterMobileDevices++; |
| 698 if (buildCounterMobileDevices < 3) { | 698 if (buildCounterMobileDevices < 3) { |
| 699 unittest.expect(o.etag, unittest.equals('foo')); | 699 unittest.expect(o.etag, unittest.equals('foo')); |
| 700 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
| 701 checkUnnamed954(o.mobiledevices); | 701 checkUnnamed932(o.mobiledevices); |
| 702 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 702 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 703 } | 703 } |
| 704 buildCounterMobileDevices--; | 704 buildCounterMobileDevices--; |
| 705 } | 705 } |
| 706 | 706 |
| 707 core.int buildCounterNotification = 0; | 707 core.int buildCounterNotification = 0; |
| 708 buildNotification() { | 708 buildNotification() { |
| 709 var o = new api.Notification(); | 709 var o = new api.Notification(); |
| 710 buildCounterNotification++; | 710 buildCounterNotification++; |
| 711 if (buildCounterNotification < 3) { | 711 if (buildCounterNotification < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 730 unittest.expect(o.fromAddress, unittest.equals('foo')); | 730 unittest.expect(o.fromAddress, unittest.equals('foo')); |
| 731 unittest.expect(o.isUnread, unittest.isTrue); | 731 unittest.expect(o.isUnread, unittest.isTrue); |
| 732 unittest.expect(o.kind, unittest.equals('foo')); | 732 unittest.expect(o.kind, unittest.equals('foo')); |
| 733 unittest.expect(o.notificationId, unittest.equals('foo')); | 733 unittest.expect(o.notificationId, unittest.equals('foo')); |
| 734 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); | 734 unittest.expect(o.sendTime, unittest.equals(core.DateTime.parse("2002-02-27T
14:01:02"))); |
| 735 unittest.expect(o.subject, unittest.equals('foo')); | 735 unittest.expect(o.subject, unittest.equals('foo')); |
| 736 } | 736 } |
| 737 buildCounterNotification--; | 737 buildCounterNotification--; |
| 738 } | 738 } |
| 739 | 739 |
| 740 buildUnnamed955() { | 740 buildUnnamed933() { |
| 741 var o = new core.List<api.Notification>(); | 741 var o = new core.List<api.Notification>(); |
| 742 o.add(buildNotification()); | 742 o.add(buildNotification()); |
| 743 o.add(buildNotification()); | 743 o.add(buildNotification()); |
| 744 return o; | 744 return o; |
| 745 } | 745 } |
| 746 | 746 |
| 747 checkUnnamed955(core.List<api.Notification> o) { | 747 checkUnnamed933(core.List<api.Notification> o) { |
| 748 unittest.expect(o, unittest.hasLength(2)); | 748 unittest.expect(o, unittest.hasLength(2)); |
| 749 checkNotification(o[0]); | 749 checkNotification(o[0]); |
| 750 checkNotification(o[1]); | 750 checkNotification(o[1]); |
| 751 } | 751 } |
| 752 | 752 |
| 753 core.int buildCounterNotifications = 0; | 753 core.int buildCounterNotifications = 0; |
| 754 buildNotifications() { | 754 buildNotifications() { |
| 755 var o = new api.Notifications(); | 755 var o = new api.Notifications(); |
| 756 buildCounterNotifications++; | 756 buildCounterNotifications++; |
| 757 if (buildCounterNotifications < 3) { | 757 if (buildCounterNotifications < 3) { |
| 758 o.etag = "foo"; | 758 o.etag = "foo"; |
| 759 o.items = buildUnnamed955(); | 759 o.items = buildUnnamed933(); |
| 760 o.kind = "foo"; | 760 o.kind = "foo"; |
| 761 o.nextPageToken = "foo"; | 761 o.nextPageToken = "foo"; |
| 762 o.unreadNotificationsCount = 42; | 762 o.unreadNotificationsCount = 42; |
| 763 } | 763 } |
| 764 buildCounterNotifications--; | 764 buildCounterNotifications--; |
| 765 return o; | 765 return o; |
| 766 } | 766 } |
| 767 | 767 |
| 768 checkNotifications(api.Notifications o) { | 768 checkNotifications(api.Notifications o) { |
| 769 buildCounterNotifications++; | 769 buildCounterNotifications++; |
| 770 if (buildCounterNotifications < 3) { | 770 if (buildCounterNotifications < 3) { |
| 771 unittest.expect(o.etag, unittest.equals('foo')); | 771 unittest.expect(o.etag, unittest.equals('foo')); |
| 772 checkUnnamed955(o.items); | 772 checkUnnamed933(o.items); |
| 773 unittest.expect(o.kind, unittest.equals('foo')); | 773 unittest.expect(o.kind, unittest.equals('foo')); |
| 774 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 774 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 775 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); | 775 unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); |
| 776 } | 776 } |
| 777 buildCounterNotifications--; | 777 buildCounterNotifications--; |
| 778 } | 778 } |
| 779 | 779 |
| 780 core.int buildCounterOrgUnit = 0; | 780 core.int buildCounterOrgUnit = 0; |
| 781 buildOrgUnit() { | 781 buildOrgUnit() { |
| 782 var o = new api.OrgUnit(); | 782 var o = new api.OrgUnit(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 801 unittest.expect(o.description, unittest.equals('foo')); | 801 unittest.expect(o.description, unittest.equals('foo')); |
| 802 unittest.expect(o.etag, unittest.equals('foo')); | 802 unittest.expect(o.etag, unittest.equals('foo')); |
| 803 unittest.expect(o.kind, unittest.equals('foo')); | 803 unittest.expect(o.kind, unittest.equals('foo')); |
| 804 unittest.expect(o.name, unittest.equals('foo')); | 804 unittest.expect(o.name, unittest.equals('foo')); |
| 805 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 805 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 806 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); | 806 unittest.expect(o.parentOrgUnitPath, unittest.equals('foo')); |
| 807 } | 807 } |
| 808 buildCounterOrgUnit--; | 808 buildCounterOrgUnit--; |
| 809 } | 809 } |
| 810 | 810 |
| 811 buildUnnamed956() { | 811 buildUnnamed934() { |
| 812 var o = new core.List<api.OrgUnit>(); | 812 var o = new core.List<api.OrgUnit>(); |
| 813 o.add(buildOrgUnit()); | 813 o.add(buildOrgUnit()); |
| 814 o.add(buildOrgUnit()); | 814 o.add(buildOrgUnit()); |
| 815 return o; | 815 return o; |
| 816 } | 816 } |
| 817 | 817 |
| 818 checkUnnamed956(core.List<api.OrgUnit> o) { | 818 checkUnnamed934(core.List<api.OrgUnit> o) { |
| 819 unittest.expect(o, unittest.hasLength(2)); | 819 unittest.expect(o, unittest.hasLength(2)); |
| 820 checkOrgUnit(o[0]); | 820 checkOrgUnit(o[0]); |
| 821 checkOrgUnit(o[1]); | 821 checkOrgUnit(o[1]); |
| 822 } | 822 } |
| 823 | 823 |
| 824 core.int buildCounterOrgUnits = 0; | 824 core.int buildCounterOrgUnits = 0; |
| 825 buildOrgUnits() { | 825 buildOrgUnits() { |
| 826 var o = new api.OrgUnits(); | 826 var o = new api.OrgUnits(); |
| 827 buildCounterOrgUnits++; | 827 buildCounterOrgUnits++; |
| 828 if (buildCounterOrgUnits < 3) { | 828 if (buildCounterOrgUnits < 3) { |
| 829 o.etag = "foo"; | 829 o.etag = "foo"; |
| 830 o.kind = "foo"; | 830 o.kind = "foo"; |
| 831 o.organizationUnits = buildUnnamed956(); | 831 o.organizationUnits = buildUnnamed934(); |
| 832 } | 832 } |
| 833 buildCounterOrgUnits--; | 833 buildCounterOrgUnits--; |
| 834 return o; | 834 return o; |
| 835 } | 835 } |
| 836 | 836 |
| 837 checkOrgUnits(api.OrgUnits o) { | 837 checkOrgUnits(api.OrgUnits o) { |
| 838 buildCounterOrgUnits++; | 838 buildCounterOrgUnits++; |
| 839 if (buildCounterOrgUnits < 3) { | 839 if (buildCounterOrgUnits < 3) { |
| 840 unittest.expect(o.etag, unittest.equals('foo')); | 840 unittest.expect(o.etag, unittest.equals('foo')); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 checkUnnamed956(o.organizationUnits); | 842 checkUnnamed934(o.organizationUnits); |
| 843 } | 843 } |
| 844 buildCounterOrgUnits--; | 844 buildCounterOrgUnits--; |
| 845 } | 845 } |
| 846 | 846 |
| 847 buildUnnamed957() { | 847 buildUnnamed935() { |
| 848 var o = new core.List<api.SchemaFieldSpec>(); | 848 var o = new core.List<api.SchemaFieldSpec>(); |
| 849 o.add(buildSchemaFieldSpec()); | 849 o.add(buildSchemaFieldSpec()); |
| 850 o.add(buildSchemaFieldSpec()); | 850 o.add(buildSchemaFieldSpec()); |
| 851 return o; | 851 return o; |
| 852 } | 852 } |
| 853 | 853 |
| 854 checkUnnamed957(core.List<api.SchemaFieldSpec> o) { | 854 checkUnnamed935(core.List<api.SchemaFieldSpec> o) { |
| 855 unittest.expect(o, unittest.hasLength(2)); | 855 unittest.expect(o, unittest.hasLength(2)); |
| 856 checkSchemaFieldSpec(o[0]); | 856 checkSchemaFieldSpec(o[0]); |
| 857 checkSchemaFieldSpec(o[1]); | 857 checkSchemaFieldSpec(o[1]); |
| 858 } | 858 } |
| 859 | 859 |
| 860 core.int buildCounterSchema = 0; | 860 core.int buildCounterSchema = 0; |
| 861 buildSchema() { | 861 buildSchema() { |
| 862 var o = new api.Schema(); | 862 var o = new api.Schema(); |
| 863 buildCounterSchema++; | 863 buildCounterSchema++; |
| 864 if (buildCounterSchema < 3) { | 864 if (buildCounterSchema < 3) { |
| 865 o.etag = "foo"; | 865 o.etag = "foo"; |
| 866 o.fields = buildUnnamed957(); | 866 o.fields = buildUnnamed935(); |
| 867 o.kind = "foo"; | 867 o.kind = "foo"; |
| 868 o.schemaId = "foo"; | 868 o.schemaId = "foo"; |
| 869 o.schemaName = "foo"; | 869 o.schemaName = "foo"; |
| 870 } | 870 } |
| 871 buildCounterSchema--; | 871 buildCounterSchema--; |
| 872 return o; | 872 return o; |
| 873 } | 873 } |
| 874 | 874 |
| 875 checkSchema(api.Schema o) { | 875 checkSchema(api.Schema o) { |
| 876 buildCounterSchema++; | 876 buildCounterSchema++; |
| 877 if (buildCounterSchema < 3) { | 877 if (buildCounterSchema < 3) { |
| 878 unittest.expect(o.etag, unittest.equals('foo')); | 878 unittest.expect(o.etag, unittest.equals('foo')); |
| 879 checkUnnamed957(o.fields); | 879 checkUnnamed935(o.fields); |
| 880 unittest.expect(o.kind, unittest.equals('foo')); | 880 unittest.expect(o.kind, unittest.equals('foo')); |
| 881 unittest.expect(o.schemaId, unittest.equals('foo')); | 881 unittest.expect(o.schemaId, unittest.equals('foo')); |
| 882 unittest.expect(o.schemaName, unittest.equals('foo')); | 882 unittest.expect(o.schemaName, unittest.equals('foo')); |
| 883 } | 883 } |
| 884 buildCounterSchema--; | 884 buildCounterSchema--; |
| 885 } | 885 } |
| 886 | 886 |
| 887 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; | 887 core.int buildCounterSchemaFieldSpecNumericIndexingSpec = 0; |
| 888 buildSchemaFieldSpecNumericIndexingSpec() { | 888 buildSchemaFieldSpecNumericIndexingSpec() { |
| 889 var o = new api.SchemaFieldSpecNumericIndexingSpec(); | 889 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')); | 933 unittest.expect(o.fieldType, unittest.equals('foo')); |
| 934 unittest.expect(o.indexed, unittest.isTrue); | 934 unittest.expect(o.indexed, unittest.isTrue); |
| 935 unittest.expect(o.kind, unittest.equals('foo')); | 935 unittest.expect(o.kind, unittest.equals('foo')); |
| 936 unittest.expect(o.multiValued, unittest.isTrue); | 936 unittest.expect(o.multiValued, unittest.isTrue); |
| 937 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); | 937 checkSchemaFieldSpecNumericIndexingSpec(o.numericIndexingSpec); |
| 938 unittest.expect(o.readAccessType, unittest.equals('foo')); | 938 unittest.expect(o.readAccessType, unittest.equals('foo')); |
| 939 } | 939 } |
| 940 buildCounterSchemaFieldSpec--; | 940 buildCounterSchemaFieldSpec--; |
| 941 } | 941 } |
| 942 | 942 |
| 943 buildUnnamed958() { | 943 buildUnnamed936() { |
| 944 var o = new core.List<api.Schema>(); | 944 var o = new core.List<api.Schema>(); |
| 945 o.add(buildSchema()); | 945 o.add(buildSchema()); |
| 946 o.add(buildSchema()); | 946 o.add(buildSchema()); |
| 947 return o; | 947 return o; |
| 948 } | 948 } |
| 949 | 949 |
| 950 checkUnnamed958(core.List<api.Schema> o) { | 950 checkUnnamed936(core.List<api.Schema> o) { |
| 951 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
| 952 checkSchema(o[0]); | 952 checkSchema(o[0]); |
| 953 checkSchema(o[1]); | 953 checkSchema(o[1]); |
| 954 } | 954 } |
| 955 | 955 |
| 956 core.int buildCounterSchemas = 0; | 956 core.int buildCounterSchemas = 0; |
| 957 buildSchemas() { | 957 buildSchemas() { |
| 958 var o = new api.Schemas(); | 958 var o = new api.Schemas(); |
| 959 buildCounterSchemas++; | 959 buildCounterSchemas++; |
| 960 if (buildCounterSchemas < 3) { | 960 if (buildCounterSchemas < 3) { |
| 961 o.etag = "foo"; | 961 o.etag = "foo"; |
| 962 o.kind = "foo"; | 962 o.kind = "foo"; |
| 963 o.schemas = buildUnnamed958(); | 963 o.schemas = buildUnnamed936(); |
| 964 } | 964 } |
| 965 buildCounterSchemas--; | 965 buildCounterSchemas--; |
| 966 return o; | 966 return o; |
| 967 } | 967 } |
| 968 | 968 |
| 969 checkSchemas(api.Schemas o) { | 969 checkSchemas(api.Schemas o) { |
| 970 buildCounterSchemas++; | 970 buildCounterSchemas++; |
| 971 if (buildCounterSchemas < 3) { | 971 if (buildCounterSchemas < 3) { |
| 972 unittest.expect(o.etag, unittest.equals('foo')); | 972 unittest.expect(o.etag, unittest.equals('foo')); |
| 973 unittest.expect(o.kind, unittest.equals('foo')); | 973 unittest.expect(o.kind, unittest.equals('foo')); |
| 974 checkUnnamed958(o.schemas); | 974 checkUnnamed936(o.schemas); |
| 975 } | 975 } |
| 976 buildCounterSchemas--; | 976 buildCounterSchemas--; |
| 977 } | 977 } |
| 978 | 978 |
| 979 buildUnnamed959() { | 979 buildUnnamed937() { |
| 980 var o = new core.List<core.String>(); | 980 var o = new core.List<core.String>(); |
| 981 o.add("foo"); | 981 o.add("foo"); |
| 982 o.add("foo"); | 982 o.add("foo"); |
| 983 return o; | 983 return o; |
| 984 } | 984 } |
| 985 | 985 |
| 986 checkUnnamed959(core.List<core.String> o) { | 986 checkUnnamed937(core.List<core.String> o) { |
| 987 unittest.expect(o, unittest.hasLength(2)); | 987 unittest.expect(o, unittest.hasLength(2)); |
| 988 unittest.expect(o[0], unittest.equals('foo')); | 988 unittest.expect(o[0], unittest.equals('foo')); |
| 989 unittest.expect(o[1], unittest.equals('foo')); | 989 unittest.expect(o[1], unittest.equals('foo')); |
| 990 } | 990 } |
| 991 | 991 |
| 992 core.int buildCounterToken = 0; | 992 core.int buildCounterToken = 0; |
| 993 buildToken() { | 993 buildToken() { |
| 994 var o = new api.Token(); | 994 var o = new api.Token(); |
| 995 buildCounterToken++; | 995 buildCounterToken++; |
| 996 if (buildCounterToken < 3) { | 996 if (buildCounterToken < 3) { |
| 997 o.anonymous = true; | 997 o.anonymous = true; |
| 998 o.clientId = "foo"; | 998 o.clientId = "foo"; |
| 999 o.displayText = "foo"; | 999 o.displayText = "foo"; |
| 1000 o.etag = "foo"; | 1000 o.etag = "foo"; |
| 1001 o.kind = "foo"; | 1001 o.kind = "foo"; |
| 1002 o.nativeApp = true; | 1002 o.nativeApp = true; |
| 1003 o.scopes = buildUnnamed959(); | 1003 o.scopes = buildUnnamed937(); |
| 1004 o.userKey = "foo"; | 1004 o.userKey = "foo"; |
| 1005 } | 1005 } |
| 1006 buildCounterToken--; | 1006 buildCounterToken--; |
| 1007 return o; | 1007 return o; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 checkToken(api.Token o) { | 1010 checkToken(api.Token o) { |
| 1011 buildCounterToken++; | 1011 buildCounterToken++; |
| 1012 if (buildCounterToken < 3) { | 1012 if (buildCounterToken < 3) { |
| 1013 unittest.expect(o.anonymous, unittest.isTrue); | 1013 unittest.expect(o.anonymous, unittest.isTrue); |
| 1014 unittest.expect(o.clientId, unittest.equals('foo')); | 1014 unittest.expect(o.clientId, unittest.equals('foo')); |
| 1015 unittest.expect(o.displayText, unittest.equals('foo')); | 1015 unittest.expect(o.displayText, unittest.equals('foo')); |
| 1016 unittest.expect(o.etag, unittest.equals('foo')); | 1016 unittest.expect(o.etag, unittest.equals('foo')); |
| 1017 unittest.expect(o.kind, unittest.equals('foo')); | 1017 unittest.expect(o.kind, unittest.equals('foo')); |
| 1018 unittest.expect(o.nativeApp, unittest.isTrue); | 1018 unittest.expect(o.nativeApp, unittest.isTrue); |
| 1019 checkUnnamed959(o.scopes); | 1019 checkUnnamed937(o.scopes); |
| 1020 unittest.expect(o.userKey, unittest.equals('foo')); | 1020 unittest.expect(o.userKey, unittest.equals('foo')); |
| 1021 } | 1021 } |
| 1022 buildCounterToken--; | 1022 buildCounterToken--; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 buildUnnamed960() { | 1025 buildUnnamed938() { |
| 1026 var o = new core.List<api.Token>(); | 1026 var o = new core.List<api.Token>(); |
| 1027 o.add(buildToken()); | 1027 o.add(buildToken()); |
| 1028 o.add(buildToken()); | 1028 o.add(buildToken()); |
| 1029 return o; | 1029 return o; |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 checkUnnamed960(core.List<api.Token> o) { | 1032 checkUnnamed938(core.List<api.Token> o) { |
| 1033 unittest.expect(o, unittest.hasLength(2)); | 1033 unittest.expect(o, unittest.hasLength(2)); |
| 1034 checkToken(o[0]); | 1034 checkToken(o[0]); |
| 1035 checkToken(o[1]); | 1035 checkToken(o[1]); |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 core.int buildCounterTokens = 0; | 1038 core.int buildCounterTokens = 0; |
| 1039 buildTokens() { | 1039 buildTokens() { |
| 1040 var o = new api.Tokens(); | 1040 var o = new api.Tokens(); |
| 1041 buildCounterTokens++; | 1041 buildCounterTokens++; |
| 1042 if (buildCounterTokens < 3) { | 1042 if (buildCounterTokens < 3) { |
| 1043 o.etag = "foo"; | 1043 o.etag = "foo"; |
| 1044 o.items = buildUnnamed960(); | 1044 o.items = buildUnnamed938(); |
| 1045 o.kind = "foo"; | 1045 o.kind = "foo"; |
| 1046 } | 1046 } |
| 1047 buildCounterTokens--; | 1047 buildCounterTokens--; |
| 1048 return o; | 1048 return o; |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 checkTokens(api.Tokens o) { | 1051 checkTokens(api.Tokens o) { |
| 1052 buildCounterTokens++; | 1052 buildCounterTokens++; |
| 1053 if (buildCounterTokens < 3) { | 1053 if (buildCounterTokens < 3) { |
| 1054 unittest.expect(o.etag, unittest.equals('foo')); | 1054 unittest.expect(o.etag, unittest.equals('foo')); |
| 1055 checkUnnamed960(o.items); | 1055 checkUnnamed938(o.items); |
| 1056 unittest.expect(o.kind, unittest.equals('foo')); | 1056 unittest.expect(o.kind, unittest.equals('foo')); |
| 1057 } | 1057 } |
| 1058 buildCounterTokens--; | 1058 buildCounterTokens--; |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 buildUnnamed961() { | 1061 buildUnnamed939() { |
| 1062 var o = new core.List<core.String>(); | 1062 var o = new core.List<core.String>(); |
| 1063 o.add("foo"); | 1063 o.add("foo"); |
| 1064 o.add("foo"); | 1064 o.add("foo"); |
| 1065 return o; | 1065 return o; |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 checkUnnamed961(core.List<core.String> o) { | 1068 checkUnnamed939(core.List<core.String> o) { |
| 1069 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
| 1070 unittest.expect(o[0], unittest.equals('foo')); | 1070 unittest.expect(o[0], unittest.equals('foo')); |
| 1071 unittest.expect(o[1], unittest.equals('foo')); | 1071 unittest.expect(o[1], unittest.equals('foo')); |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 buildUnnamed962() { | 1074 buildUnnamed940() { |
| 1075 var o = new core.Map<core.String, api.UserCustomProperties>(); | 1075 var o = new core.Map<core.String, api.UserCustomProperties>(); |
| 1076 o["x"] = buildUserCustomProperties(); | 1076 o["x"] = buildUserCustomProperties(); |
| 1077 o["y"] = buildUserCustomProperties(); | 1077 o["y"] = buildUserCustomProperties(); |
| 1078 return o; | 1078 return o; |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 checkUnnamed962(core.Map<core.String, api.UserCustomProperties> o) { | 1081 checkUnnamed940(core.Map<core.String, api.UserCustomProperties> o) { |
| 1082 unittest.expect(o, unittest.hasLength(2)); | 1082 unittest.expect(o, unittest.hasLength(2)); |
| 1083 checkUserCustomProperties(o["x"]); | 1083 checkUserCustomProperties(o["x"]); |
| 1084 checkUserCustomProperties(o["y"]); | 1084 checkUserCustomProperties(o["y"]); |
| 1085 } | 1085 } |
| 1086 | 1086 |
| 1087 buildUnnamed963() { | 1087 buildUnnamed941() { |
| 1088 var o = new core.List<core.String>(); | 1088 var o = new core.List<core.String>(); |
| 1089 o.add("foo"); | 1089 o.add("foo"); |
| 1090 o.add("foo"); | 1090 o.add("foo"); |
| 1091 return o; | 1091 return o; |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 checkUnnamed963(core.List<core.String> o) { | 1094 checkUnnamed941(core.List<core.String> o) { |
| 1095 unittest.expect(o, unittest.hasLength(2)); | 1095 unittest.expect(o, unittest.hasLength(2)); |
| 1096 unittest.expect(o[0], unittest.equals('foo')); | 1096 unittest.expect(o[0], unittest.equals('foo')); |
| 1097 unittest.expect(o[1], unittest.equals('foo')); | 1097 unittest.expect(o[1], unittest.equals('foo')); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 core.int buildCounterUser = 0; | 1100 core.int buildCounterUser = 0; |
| 1101 buildUser() { | 1101 buildUser() { |
| 1102 var o = new api.User(); | 1102 var o = new api.User(); |
| 1103 buildCounterUser++; | 1103 buildCounterUser++; |
| 1104 if (buildCounterUser < 3) { | 1104 if (buildCounterUser < 3) { |
| 1105 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1105 o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1106 o.agreedToTerms = true; | 1106 o.agreedToTerms = true; |
| 1107 o.aliases = buildUnnamed961(); | 1107 o.aliases = buildUnnamed939(); |
| 1108 o.changePasswordAtNextLogin = true; | 1108 o.changePasswordAtNextLogin = true; |
| 1109 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1109 o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1110 o.customSchemas = buildUnnamed962(); | 1110 o.customSchemas = buildUnnamed940(); |
| 1111 o.customerId = "foo"; | 1111 o.customerId = "foo"; |
| 1112 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1112 o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1113 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1113 o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1114 o.etag = "foo"; | 1114 o.etag = "foo"; |
| 1115 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1115 o.externalIds = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1116 o.hashFunction = "foo"; | 1116 o.hashFunction = "foo"; |
| 1117 o.id = "foo"; | 1117 o.id = "foo"; |
| 1118 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1118 o.ims = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1119 o.includeInGlobalAddressList = true; | 1119 o.includeInGlobalAddressList = true; |
| 1120 o.ipWhitelisted = true; | 1120 o.ipWhitelisted = true; |
| 1121 o.isAdmin = true; | 1121 o.isAdmin = true; |
| 1122 o.isDelegatedAdmin = true; | 1122 o.isDelegatedAdmin = true; |
| 1123 o.isMailboxSetup = true; | 1123 o.isMailboxSetup = true; |
| 1124 o.kind = "foo"; | 1124 o.kind = "foo"; |
| 1125 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); | 1125 o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1126 o.name = buildUserName(); | 1126 o.name = buildUserName(); |
| 1127 o.nonEditableAliases = buildUnnamed963(); | 1127 o.nonEditableAliases = buildUnnamed941(); |
| 1128 o.orgUnitPath = "foo"; | 1128 o.orgUnitPath = "foo"; |
| 1129 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1129 o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1130 o.password = "foo"; | 1130 o.password = "foo"; |
| 1131 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1131 o.phones = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1132 o.primaryEmail = "foo"; | 1132 o.primaryEmail = "foo"; |
| 1133 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1133 o.relations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1134 o.suspended = true; | 1134 o.suspended = true; |
| 1135 o.suspensionReason = "foo"; | 1135 o.suspensionReason = "foo"; |
| 1136 o.thumbnailPhotoUrl = "foo"; | 1136 o.thumbnailPhotoUrl = "foo"; |
| 1137 } | 1137 } |
| 1138 buildCounterUser--; | 1138 buildCounterUser--; |
| 1139 return o; | 1139 return o; |
| 1140 } | 1140 } |
| 1141 | 1141 |
| 1142 checkUser(api.User o) { | 1142 checkUser(api.User o) { |
| 1143 buildCounterUser++; | 1143 buildCounterUser++; |
| 1144 if (buildCounterUser < 3) { | 1144 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')); | 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')); |
| 1146 unittest.expect(o.agreedToTerms, unittest.isTrue); | 1146 unittest.expect(o.agreedToTerms, unittest.isTrue); |
| 1147 checkUnnamed961(o.aliases); | 1147 checkUnnamed939(o.aliases); |
| 1148 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); | 1148 unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); |
| 1149 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1149 unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 1150 checkUnnamed962(o.customSchemas); | 1150 checkUnnamed940(o.customSchemas); |
| 1151 unittest.expect(o.customerId, unittest.equals('foo')); | 1151 unittest.expect(o.customerId, unittest.equals('foo')); |
| 1152 unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 1152 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')); | 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')); |
| 1154 unittest.expect(o.etag, unittest.equals('foo')); | 1154 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')); | 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')); |
| 1156 unittest.expect(o.hashFunction, unittest.equals('foo')); | 1156 unittest.expect(o.hashFunction, unittest.equals('foo')); |
| 1157 unittest.expect(o.id, unittest.equals('foo')); | 1157 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')); | 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')); |
| 1159 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); | 1159 unittest.expect(o.includeInGlobalAddressList, unittest.isTrue); |
| 1160 unittest.expect(o.ipWhitelisted, unittest.isTrue); | 1160 unittest.expect(o.ipWhitelisted, unittest.isTrue); |
| 1161 unittest.expect(o.isAdmin, unittest.isTrue); | 1161 unittest.expect(o.isAdmin, unittest.isTrue); |
| 1162 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); | 1162 unittest.expect(o.isDelegatedAdmin, unittest.isTrue); |
| 1163 unittest.expect(o.isMailboxSetup, unittest.isTrue); | 1163 unittest.expect(o.isMailboxSetup, unittest.isTrue); |
| 1164 unittest.expect(o.kind, unittest.equals('foo')); | 1164 unittest.expect(o.kind, unittest.equals('foo')); |
| 1165 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1165 unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
| 1166 checkUserName(o.name); | 1166 checkUserName(o.name); |
| 1167 checkUnnamed963(o.nonEditableAliases); | 1167 checkUnnamed941(o.nonEditableAliases); |
| 1168 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1168 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')); | 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')); |
| 1170 unittest.expect(o.password, unittest.equals('foo')); | 1170 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')); | 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')); |
| 1172 unittest.expect(o.primaryEmail, unittest.equals('foo')); | 1172 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')); | 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')); |
| 1174 unittest.expect(o.suspended, unittest.isTrue); | 1174 unittest.expect(o.suspended, unittest.isTrue); |
| 1175 unittest.expect(o.suspensionReason, unittest.equals('foo')); | 1175 unittest.expect(o.suspensionReason, unittest.equals('foo')); |
| 1176 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); | 1176 unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); |
| 1177 } | 1177 } |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 checkUserUndelete(api.UserUndelete o) { | 1487 checkUserUndelete(api.UserUndelete o) { |
| 1488 buildCounterUserUndelete++; | 1488 buildCounterUserUndelete++; |
| 1489 if (buildCounterUserUndelete < 3) { | 1489 if (buildCounterUserUndelete < 3) { |
| 1490 unittest.expect(o.orgUnitPath, unittest.equals('foo')); | 1490 unittest.expect(o.orgUnitPath, unittest.equals('foo')); |
| 1491 } | 1491 } |
| 1492 buildCounterUserUndelete--; | 1492 buildCounterUserUndelete--; |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 buildUnnamed964() { | 1495 buildUnnamed942() { |
| 1496 var o = new core.List<api.User>(); | 1496 var o = new core.List<api.User>(); |
| 1497 o.add(buildUser()); | 1497 o.add(buildUser()); |
| 1498 o.add(buildUser()); | 1498 o.add(buildUser()); |
| 1499 return o; | 1499 return o; |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 checkUnnamed964(core.List<api.User> o) { | 1502 checkUnnamed942(core.List<api.User> o) { |
| 1503 unittest.expect(o, unittest.hasLength(2)); | 1503 unittest.expect(o, unittest.hasLength(2)); |
| 1504 checkUser(o[0]); | 1504 checkUser(o[0]); |
| 1505 checkUser(o[1]); | 1505 checkUser(o[1]); |
| 1506 } | 1506 } |
| 1507 | 1507 |
| 1508 core.int buildCounterUsers = 0; | 1508 core.int buildCounterUsers = 0; |
| 1509 buildUsers() { | 1509 buildUsers() { |
| 1510 var o = new api.Users(); | 1510 var o = new api.Users(); |
| 1511 buildCounterUsers++; | 1511 buildCounterUsers++; |
| 1512 if (buildCounterUsers < 3) { | 1512 if (buildCounterUsers < 3) { |
| 1513 o.etag = "foo"; | 1513 o.etag = "foo"; |
| 1514 o.kind = "foo"; | 1514 o.kind = "foo"; |
| 1515 o.nextPageToken = "foo"; | 1515 o.nextPageToken = "foo"; |
| 1516 o.triggerEvent = "foo"; | 1516 o.triggerEvent = "foo"; |
| 1517 o.users = buildUnnamed964(); | 1517 o.users = buildUnnamed942(); |
| 1518 } | 1518 } |
| 1519 buildCounterUsers--; | 1519 buildCounterUsers--; |
| 1520 return o; | 1520 return o; |
| 1521 } | 1521 } |
| 1522 | 1522 |
| 1523 checkUsers(api.Users o) { | 1523 checkUsers(api.Users o) { |
| 1524 buildCounterUsers++; | 1524 buildCounterUsers++; |
| 1525 if (buildCounterUsers < 3) { | 1525 if (buildCounterUsers < 3) { |
| 1526 unittest.expect(o.etag, unittest.equals('foo')); | 1526 unittest.expect(o.etag, unittest.equals('foo')); |
| 1527 unittest.expect(o.kind, unittest.equals('foo')); | 1527 unittest.expect(o.kind, unittest.equals('foo')); |
| 1528 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1528 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1529 unittest.expect(o.triggerEvent, unittest.equals('foo')); | 1529 unittest.expect(o.triggerEvent, unittest.equals('foo')); |
| 1530 checkUnnamed964(o.users); | 1530 checkUnnamed942(o.users); |
| 1531 } | 1531 } |
| 1532 buildCounterUsers--; | 1532 buildCounterUsers--; |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 core.int buildCounterVerificationCode = 0; | 1535 core.int buildCounterVerificationCode = 0; |
| 1536 buildVerificationCode() { | 1536 buildVerificationCode() { |
| 1537 var o = new api.VerificationCode(); | 1537 var o = new api.VerificationCode(); |
| 1538 buildCounterVerificationCode++; | 1538 buildCounterVerificationCode++; |
| 1539 if (buildCounterVerificationCode < 3) { | 1539 if (buildCounterVerificationCode < 3) { |
| 1540 o.etag = "foo"; | 1540 o.etag = "foo"; |
| 1541 o.kind = "foo"; | 1541 o.kind = "foo"; |
| 1542 o.userId = "foo"; | 1542 o.userId = "foo"; |
| 1543 o.verificationCode = "foo"; | 1543 o.verificationCode = "foo"; |
| 1544 } | 1544 } |
| 1545 buildCounterVerificationCode--; | 1545 buildCounterVerificationCode--; |
| 1546 return o; | 1546 return o; |
| 1547 } | 1547 } |
| 1548 | 1548 |
| 1549 checkVerificationCode(api.VerificationCode o) { | 1549 checkVerificationCode(api.VerificationCode o) { |
| 1550 buildCounterVerificationCode++; | 1550 buildCounterVerificationCode++; |
| 1551 if (buildCounterVerificationCode < 3) { | 1551 if (buildCounterVerificationCode < 3) { |
| 1552 unittest.expect(o.etag, unittest.equals('foo')); | 1552 unittest.expect(o.etag, unittest.equals('foo')); |
| 1553 unittest.expect(o.kind, unittest.equals('foo')); | 1553 unittest.expect(o.kind, unittest.equals('foo')); |
| 1554 unittest.expect(o.userId, unittest.equals('foo')); | 1554 unittest.expect(o.userId, unittest.equals('foo')); |
| 1555 unittest.expect(o.verificationCode, unittest.equals('foo')); | 1555 unittest.expect(o.verificationCode, unittest.equals('foo')); |
| 1556 } | 1556 } |
| 1557 buildCounterVerificationCode--; | 1557 buildCounterVerificationCode--; |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 buildUnnamed965() { | 1560 buildUnnamed943() { |
| 1561 var o = new core.List<api.VerificationCode>(); | 1561 var o = new core.List<api.VerificationCode>(); |
| 1562 o.add(buildVerificationCode()); | 1562 o.add(buildVerificationCode()); |
| 1563 o.add(buildVerificationCode()); | 1563 o.add(buildVerificationCode()); |
| 1564 return o; | 1564 return o; |
| 1565 } | 1565 } |
| 1566 | 1566 |
| 1567 checkUnnamed965(core.List<api.VerificationCode> o) { | 1567 checkUnnamed943(core.List<api.VerificationCode> o) { |
| 1568 unittest.expect(o, unittest.hasLength(2)); | 1568 unittest.expect(o, unittest.hasLength(2)); |
| 1569 checkVerificationCode(o[0]); | 1569 checkVerificationCode(o[0]); |
| 1570 checkVerificationCode(o[1]); | 1570 checkVerificationCode(o[1]); |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 core.int buildCounterVerificationCodes = 0; | 1573 core.int buildCounterVerificationCodes = 0; |
| 1574 buildVerificationCodes() { | 1574 buildVerificationCodes() { |
| 1575 var o = new api.VerificationCodes(); | 1575 var o = new api.VerificationCodes(); |
| 1576 buildCounterVerificationCodes++; | 1576 buildCounterVerificationCodes++; |
| 1577 if (buildCounterVerificationCodes < 3) { | 1577 if (buildCounterVerificationCodes < 3) { |
| 1578 o.etag = "foo"; | 1578 o.etag = "foo"; |
| 1579 o.items = buildUnnamed965(); | 1579 o.items = buildUnnamed943(); |
| 1580 o.kind = "foo"; | 1580 o.kind = "foo"; |
| 1581 } | 1581 } |
| 1582 buildCounterVerificationCodes--; | 1582 buildCounterVerificationCodes--; |
| 1583 return o; | 1583 return o; |
| 1584 } | 1584 } |
| 1585 | 1585 |
| 1586 checkVerificationCodes(api.VerificationCodes o) { | 1586 checkVerificationCodes(api.VerificationCodes o) { |
| 1587 buildCounterVerificationCodes++; | 1587 buildCounterVerificationCodes++; |
| 1588 if (buildCounterVerificationCodes < 3) { | 1588 if (buildCounterVerificationCodes < 3) { |
| 1589 unittest.expect(o.etag, unittest.equals('foo')); | 1589 unittest.expect(o.etag, unittest.equals('foo')); |
| 1590 checkUnnamed965(o.items); | 1590 checkUnnamed943(o.items); |
| 1591 unittest.expect(o.kind, unittest.equals('foo')); | 1591 unittest.expect(o.kind, unittest.equals('foo')); |
| 1592 } | 1592 } |
| 1593 buildCounterVerificationCodes--; | 1593 buildCounterVerificationCodes--; |
| 1594 } | 1594 } |
| 1595 | 1595 |
| 1596 buildUnnamed966() { | 1596 buildUnnamed944() { |
| 1597 var o = new core.List<core.String>(); | 1597 var o = new core.List<core.String>(); |
| 1598 o.add("foo"); | 1598 o.add("foo"); |
| 1599 o.add("foo"); | 1599 o.add("foo"); |
| 1600 return o; | 1600 return o; |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 checkUnnamed966(core.List<core.String> o) { | 1603 checkUnnamed944(core.List<core.String> o) { |
| 1604 unittest.expect(o, unittest.hasLength(2)); | 1604 unittest.expect(o, unittest.hasLength(2)); |
| 1605 unittest.expect(o[0], unittest.equals('foo')); | 1605 unittest.expect(o[0], unittest.equals('foo')); |
| 1606 unittest.expect(o[1], unittest.equals('foo')); | 1606 unittest.expect(o[1], unittest.equals('foo')); |
| 1607 } | 1607 } |
| 1608 | 1608 |
| 1609 buildUnnamed967() { | 1609 buildUnnamed945() { |
| 1610 var o = new core.List<core.String>(); | 1610 var o = new core.List<core.String>(); |
| 1611 o.add("foo"); | 1611 o.add("foo"); |
| 1612 o.add("foo"); | 1612 o.add("foo"); |
| 1613 return o; | 1613 return o; |
| 1614 } | 1614 } |
| 1615 | 1615 |
| 1616 checkUnnamed967(core.List<core.String> o) { | 1616 checkUnnamed945(core.List<core.String> o) { |
| 1617 unittest.expect(o, unittest.hasLength(2)); | 1617 unittest.expect(o, unittest.hasLength(2)); |
| 1618 unittest.expect(o[0], unittest.equals('foo')); | 1618 unittest.expect(o[0], unittest.equals('foo')); |
| 1619 unittest.expect(o[1], unittest.equals('foo')); | 1619 unittest.expect(o[1], unittest.equals('foo')); |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 buildUnnamed968() { | 1622 buildUnnamed946() { |
| 1623 var o = new core.List<core.String>(); | 1623 var o = new core.List<core.String>(); |
| 1624 o.add("foo"); | 1624 o.add("foo"); |
| 1625 o.add("foo"); | 1625 o.add("foo"); |
| 1626 return o; | 1626 return o; |
| 1627 } | 1627 } |
| 1628 | 1628 |
| 1629 checkUnnamed968(core.List<core.String> o) { | 1629 checkUnnamed946(core.List<core.String> o) { |
| 1630 unittest.expect(o, unittest.hasLength(2)); | 1630 unittest.expect(o, unittest.hasLength(2)); |
| 1631 unittest.expect(o[0], unittest.equals('foo')); | 1631 unittest.expect(o[0], unittest.equals('foo')); |
| 1632 unittest.expect(o[1], unittest.equals('foo')); | 1632 unittest.expect(o[1], unittest.equals('foo')); |
| 1633 } | 1633 } |
| 1634 | 1634 |
| 1635 buildUnnamed969() { | 1635 buildUnnamed947() { |
| 1636 var o = new core.List<core.String>(); | 1636 var o = new core.List<core.String>(); |
| 1637 o.add("foo"); | 1637 o.add("foo"); |
| 1638 o.add("foo"); | 1638 o.add("foo"); |
| 1639 return o; | 1639 return o; |
| 1640 } | 1640 } |
| 1641 | 1641 |
| 1642 checkUnnamed969(core.List<core.String> o) { | 1642 checkUnnamed947(core.List<core.String> o) { |
| 1643 unittest.expect(o, unittest.hasLength(2)); | 1643 unittest.expect(o, unittest.hasLength(2)); |
| 1644 unittest.expect(o[0], unittest.equals('foo')); | 1644 unittest.expect(o[0], unittest.equals('foo')); |
| 1645 unittest.expect(o[1], unittest.equals('foo')); | 1645 unittest.expect(o[1], unittest.equals('foo')); |
| 1646 } | 1646 } |
| 1647 | 1647 |
| 1648 | 1648 |
| 1649 main() { | 1649 main() { |
| 1650 unittest.group("obj-schema-Alias", () { | 1650 unittest.group("obj-schema-Alias", () { |
| 1651 unittest.test("to-json--from-json", () { | 1651 unittest.test("to-json--from-json", () { |
| 1652 var o = buildAlias(); | 1652 var o = buildAlias(); |
| (...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3872 | 3872 |
| 3873 }); | 3873 }); |
| 3874 | 3874 |
| 3875 | 3875 |
| 3876 unittest.group("resource-OrgunitsResourceApi", () { | 3876 unittest.group("resource-OrgunitsResourceApi", () { |
| 3877 unittest.test("method--delete", () { | 3877 unittest.test("method--delete", () { |
| 3878 | 3878 |
| 3879 var mock = new common_test.HttpServerMock(); | 3879 var mock = new common_test.HttpServerMock(); |
| 3880 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 3880 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 3881 var arg_customerId = "foo"; | 3881 var arg_customerId = "foo"; |
| 3882 var arg_orgUnitPath = buildUnnamed966(); | 3882 var arg_orgUnitPath = buildUnnamed944(); |
| 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3884 var path = (req.url).path; | 3884 var path = (req.url).path; |
| 3885 var pathOffset = 0; | 3885 var pathOffset = 0; |
| 3886 var index; | 3886 var index; |
| 3887 var subPart; | 3887 var subPart; |
| 3888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3889 pathOffset += 1; | 3889 pathOffset += 1; |
| 3890 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3890 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
| 3891 pathOffset += 19; | 3891 pathOffset += 19; |
| 3892 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3892 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)); | 3926 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 3927 }), true); | 3927 }), true); |
| 3928 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); | 3928 res.delete(arg_customerId, arg_orgUnitPath).then(unittest.expectAsync((_)
{})); |
| 3929 }); | 3929 }); |
| 3930 | 3930 |
| 3931 unittest.test("method--get", () { | 3931 unittest.test("method--get", () { |
| 3932 | 3932 |
| 3933 var mock = new common_test.HttpServerMock(); | 3933 var mock = new common_test.HttpServerMock(); |
| 3934 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 3934 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 3935 var arg_customerId = "foo"; | 3935 var arg_customerId = "foo"; |
| 3936 var arg_orgUnitPath = buildUnnamed967(); | 3936 var arg_orgUnitPath = buildUnnamed945(); |
| 3937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3938 var path = (req.url).path; | 3938 var path = (req.url).path; |
| 3939 var pathOffset = 0; | 3939 var pathOffset = 0; |
| 3940 var index; | 3940 var index; |
| 3941 var subPart; | 3941 var subPart; |
| 3942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3943 pathOffset += 1; | 3943 pathOffset += 1; |
| 3944 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); | 3944 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("admin/directory/v1/")); |
| 3945 pathOffset += 19; | 3945 pathOffset += 19; |
| 3946 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("customer/")); | 3946 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); | 4097 checkOrgUnits(response); |
| 4098 }))); | 4098 }))); |
| 4099 }); | 4099 }); |
| 4100 | 4100 |
| 4101 unittest.test("method--patch", () { | 4101 unittest.test("method--patch", () { |
| 4102 | 4102 |
| 4103 var mock = new common_test.HttpServerMock(); | 4103 var mock = new common_test.HttpServerMock(); |
| 4104 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4104 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 4105 var arg_request = buildOrgUnit(); | 4105 var arg_request = buildOrgUnit(); |
| 4106 var arg_customerId = "foo"; | 4106 var arg_customerId = "foo"; |
| 4107 var arg_orgUnitPath = buildUnnamed968(); | 4107 var arg_orgUnitPath = buildUnnamed946(); |
| 4108 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4108 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4109 var obj = new api.OrgUnit.fromJson(json); | 4109 var obj = new api.OrgUnit.fromJson(json); |
| 4110 checkOrgUnit(obj); | 4110 checkOrgUnit(obj); |
| 4111 | 4111 |
| 4112 var path = (req.url).path; | 4112 var path = (req.url).path; |
| 4113 var pathOffset = 0; | 4113 var pathOffset = 0; |
| 4114 var index; | 4114 var index; |
| 4115 var subPart; | 4115 var subPart; |
| 4116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4117 pathOffset += 1; | 4117 pathOffset += 1; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4157 checkOrgUnit(response); | 4157 checkOrgUnit(response); |
| 4158 }))); | 4158 }))); |
| 4159 }); | 4159 }); |
| 4160 | 4160 |
| 4161 unittest.test("method--update", () { | 4161 unittest.test("method--update", () { |
| 4162 | 4162 |
| 4163 var mock = new common_test.HttpServerMock(); | 4163 var mock = new common_test.HttpServerMock(); |
| 4164 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; | 4164 api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; |
| 4165 var arg_request = buildOrgUnit(); | 4165 var arg_request = buildOrgUnit(); |
| 4166 var arg_customerId = "foo"; | 4166 var arg_customerId = "foo"; |
| 4167 var arg_orgUnitPath = buildUnnamed969(); | 4167 var arg_orgUnitPath = buildUnnamed947(); |
| 4168 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4168 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4169 var obj = new api.OrgUnit.fromJson(json); | 4169 var obj = new api.OrgUnit.fromJson(json); |
| 4170 checkOrgUnit(obj); | 4170 checkOrgUnit(obj); |
| 4171 | 4171 |
| 4172 var path = (req.url).path; | 4172 var path = (req.url).path; |
| 4173 var pathOffset = 0; | 4173 var pathOffset = 0; |
| 4174 var index; | 4174 var index; |
| 4175 var subPart; | 4175 var subPart; |
| 4176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4177 pathOffset += 1; | 4177 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) { | 5857 res.list(arg_userKey).then(unittest.expectAsync(((api.VerificationCodes re
sponse) { |
| 5858 checkVerificationCodes(response); | 5858 checkVerificationCodes(response); |
| 5859 }))); | 5859 }))); |
| 5860 }); | 5860 }); |
| 5861 | 5861 |
| 5862 }); | 5862 }); |
| 5863 | 5863 |
| 5864 | 5864 |
| 5865 } | 5865 } |
| 5866 | 5866 |
| OLD | NEW |