| OLD | NEW |
| 1 library googleapis.identitytoolkit.v3.test; | 1 library googleapis.identitytoolkit.v3.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed2188() { | 54 buildUnnamed2505() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed2188(core.List<core.String> o) { | 61 checkUnnamed2505(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterCreateAuthUriResponse = 0; | 67 core.int buildCounterCreateAuthUriResponse = 0; |
| 68 buildCreateAuthUriResponse() { | 68 buildCreateAuthUriResponse() { |
| 69 var o = new api.CreateAuthUriResponse(); | 69 var o = new api.CreateAuthUriResponse(); |
| 70 buildCounterCreateAuthUriResponse++; | 70 buildCounterCreateAuthUriResponse++; |
| 71 if (buildCounterCreateAuthUriResponse < 3) { | 71 if (buildCounterCreateAuthUriResponse < 3) { |
| 72 o.allProviders = buildUnnamed2188(); | 72 o.allProviders = buildUnnamed2505(); |
| 73 o.authUri = "foo"; | 73 o.authUri = "foo"; |
| 74 o.captchaRequired = true; | 74 o.captchaRequired = true; |
| 75 o.forExistingProvider = true; | 75 o.forExistingProvider = true; |
| 76 o.kind = "foo"; | 76 o.kind = "foo"; |
| 77 o.providerId = "foo"; | 77 o.providerId = "foo"; |
| 78 o.registered = true; | 78 o.registered = true; |
| 79 o.sessionId = "foo"; | 79 o.sessionId = "foo"; |
| 80 } | 80 } |
| 81 buildCounterCreateAuthUriResponse--; | 81 buildCounterCreateAuthUriResponse--; |
| 82 return o; | 82 return o; |
| 83 } | 83 } |
| 84 | 84 |
| 85 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { | 85 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { |
| 86 buildCounterCreateAuthUriResponse++; | 86 buildCounterCreateAuthUriResponse++; |
| 87 if (buildCounterCreateAuthUriResponse < 3) { | 87 if (buildCounterCreateAuthUriResponse < 3) { |
| 88 checkUnnamed2188(o.allProviders); | 88 checkUnnamed2505(o.allProviders); |
| 89 unittest.expect(o.authUri, unittest.equals('foo')); | 89 unittest.expect(o.authUri, unittest.equals('foo')); |
| 90 unittest.expect(o.captchaRequired, unittest.isTrue); | 90 unittest.expect(o.captchaRequired, unittest.isTrue); |
| 91 unittest.expect(o.forExistingProvider, unittest.isTrue); | 91 unittest.expect(o.forExistingProvider, unittest.isTrue); |
| 92 unittest.expect(o.kind, unittest.equals('foo')); | 92 unittest.expect(o.kind, unittest.equals('foo')); |
| 93 unittest.expect(o.providerId, unittest.equals('foo')); | 93 unittest.expect(o.providerId, unittest.equals('foo')); |
| 94 unittest.expect(o.registered, unittest.isTrue); | 94 unittest.expect(o.registered, unittest.isTrue); |
| 95 unittest.expect(o.sessionId, unittest.equals('foo')); | 95 unittest.expect(o.sessionId, unittest.equals('foo')); |
| 96 } | 96 } |
| 97 buildCounterCreateAuthUriResponse--; | 97 buildCounterCreateAuthUriResponse--; |
| 98 } | 98 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 checkDeleteAccountResponse(api.DeleteAccountResponse o) { | 111 checkDeleteAccountResponse(api.DeleteAccountResponse o) { |
| 112 buildCounterDeleteAccountResponse++; | 112 buildCounterDeleteAccountResponse++; |
| 113 if (buildCounterDeleteAccountResponse < 3) { | 113 if (buildCounterDeleteAccountResponse < 3) { |
| 114 unittest.expect(o.kind, unittest.equals('foo')); | 114 unittest.expect(o.kind, unittest.equals('foo')); |
| 115 } | 115 } |
| 116 buildCounterDeleteAccountResponse--; | 116 buildCounterDeleteAccountResponse--; |
| 117 } | 117 } |
| 118 | 118 |
| 119 buildUnnamed2189() { | 119 buildUnnamed2506() { |
| 120 var o = new core.List<api.UserInfo>(); | 120 var o = new core.List<api.UserInfo>(); |
| 121 o.add(buildUserInfo()); | 121 o.add(buildUserInfo()); |
| 122 o.add(buildUserInfo()); | 122 o.add(buildUserInfo()); |
| 123 return o; | 123 return o; |
| 124 } | 124 } |
| 125 | 125 |
| 126 checkUnnamed2189(core.List<api.UserInfo> o) { | 126 checkUnnamed2506(core.List<api.UserInfo> o) { |
| 127 unittest.expect(o, unittest.hasLength(2)); | 127 unittest.expect(o, unittest.hasLength(2)); |
| 128 checkUserInfo(o[0]); | 128 checkUserInfo(o[0]); |
| 129 checkUserInfo(o[1]); | 129 checkUserInfo(o[1]); |
| 130 } | 130 } |
| 131 | 131 |
| 132 core.int buildCounterDownloadAccountResponse = 0; | 132 core.int buildCounterDownloadAccountResponse = 0; |
| 133 buildDownloadAccountResponse() { | 133 buildDownloadAccountResponse() { |
| 134 var o = new api.DownloadAccountResponse(); | 134 var o = new api.DownloadAccountResponse(); |
| 135 buildCounterDownloadAccountResponse++; | 135 buildCounterDownloadAccountResponse++; |
| 136 if (buildCounterDownloadAccountResponse < 3) { | 136 if (buildCounterDownloadAccountResponse < 3) { |
| 137 o.kind = "foo"; | 137 o.kind = "foo"; |
| 138 o.nextPageToken = "foo"; | 138 o.nextPageToken = "foo"; |
| 139 o.users = buildUnnamed2189(); | 139 o.users = buildUnnamed2506(); |
| 140 } | 140 } |
| 141 buildCounterDownloadAccountResponse--; | 141 buildCounterDownloadAccountResponse--; |
| 142 return o; | 142 return o; |
| 143 } | 143 } |
| 144 | 144 |
| 145 checkDownloadAccountResponse(api.DownloadAccountResponse o) { | 145 checkDownloadAccountResponse(api.DownloadAccountResponse o) { |
| 146 buildCounterDownloadAccountResponse++; | 146 buildCounterDownloadAccountResponse++; |
| 147 if (buildCounterDownloadAccountResponse < 3) { | 147 if (buildCounterDownloadAccountResponse < 3) { |
| 148 unittest.expect(o.kind, unittest.equals('foo')); | 148 unittest.expect(o.kind, unittest.equals('foo')); |
| 149 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 149 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 150 checkUnnamed2189(o.users); | 150 checkUnnamed2506(o.users); |
| 151 } | 151 } |
| 152 buildCounterDownloadAccountResponse--; | 152 buildCounterDownloadAccountResponse--; |
| 153 } | 153 } |
| 154 | 154 |
| 155 buildUnnamed2190() { | 155 core.int buildCounterEmailTemplate = 0; |
| 156 buildEmailTemplate() { |
| 157 var o = new api.EmailTemplate(); |
| 158 buildCounterEmailTemplate++; |
| 159 if (buildCounterEmailTemplate < 3) { |
| 160 o.body = "foo"; |
| 161 o.format = "foo"; |
| 162 o.from = "foo"; |
| 163 o.fromDisplayName = "foo"; |
| 164 o.replyTo = "foo"; |
| 165 o.subject = "foo"; |
| 166 } |
| 167 buildCounterEmailTemplate--; |
| 168 return o; |
| 169 } |
| 170 |
| 171 checkEmailTemplate(api.EmailTemplate o) { |
| 172 buildCounterEmailTemplate++; |
| 173 if (buildCounterEmailTemplate < 3) { |
| 174 unittest.expect(o.body, unittest.equals('foo')); |
| 175 unittest.expect(o.format, unittest.equals('foo')); |
| 176 unittest.expect(o.from, unittest.equals('foo')); |
| 177 unittest.expect(o.fromDisplayName, unittest.equals('foo')); |
| 178 unittest.expect(o.replyTo, unittest.equals('foo')); |
| 179 unittest.expect(o.subject, unittest.equals('foo')); |
| 180 } |
| 181 buildCounterEmailTemplate--; |
| 182 } |
| 183 |
| 184 buildUnnamed2507() { |
| 156 var o = new core.List<api.UserInfo>(); | 185 var o = new core.List<api.UserInfo>(); |
| 157 o.add(buildUserInfo()); | 186 o.add(buildUserInfo()); |
| 158 o.add(buildUserInfo()); | 187 o.add(buildUserInfo()); |
| 159 return o; | 188 return o; |
| 160 } | 189 } |
| 161 | 190 |
| 162 checkUnnamed2190(core.List<api.UserInfo> o) { | 191 checkUnnamed2507(core.List<api.UserInfo> o) { |
| 163 unittest.expect(o, unittest.hasLength(2)); | 192 unittest.expect(o, unittest.hasLength(2)); |
| 164 checkUserInfo(o[0]); | 193 checkUserInfo(o[0]); |
| 165 checkUserInfo(o[1]); | 194 checkUserInfo(o[1]); |
| 166 } | 195 } |
| 167 | 196 |
| 168 core.int buildCounterGetAccountInfoResponse = 0; | 197 core.int buildCounterGetAccountInfoResponse = 0; |
| 169 buildGetAccountInfoResponse() { | 198 buildGetAccountInfoResponse() { |
| 170 var o = new api.GetAccountInfoResponse(); | 199 var o = new api.GetAccountInfoResponse(); |
| 171 buildCounterGetAccountInfoResponse++; | 200 buildCounterGetAccountInfoResponse++; |
| 172 if (buildCounterGetAccountInfoResponse < 3) { | 201 if (buildCounterGetAccountInfoResponse < 3) { |
| 173 o.kind = "foo"; | 202 o.kind = "foo"; |
| 174 o.users = buildUnnamed2190(); | 203 o.users = buildUnnamed2507(); |
| 175 } | 204 } |
| 176 buildCounterGetAccountInfoResponse--; | 205 buildCounterGetAccountInfoResponse--; |
| 177 return o; | 206 return o; |
| 178 } | 207 } |
| 179 | 208 |
| 180 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { | 209 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { |
| 181 buildCounterGetAccountInfoResponse++; | 210 buildCounterGetAccountInfoResponse++; |
| 182 if (buildCounterGetAccountInfoResponse < 3) { | 211 if (buildCounterGetAccountInfoResponse < 3) { |
| 183 unittest.expect(o.kind, unittest.equals('foo')); | 212 unittest.expect(o.kind, unittest.equals('foo')); |
| 184 checkUnnamed2190(o.users); | 213 checkUnnamed2507(o.users); |
| 185 } | 214 } |
| 186 buildCounterGetAccountInfoResponse--; | 215 buildCounterGetAccountInfoResponse--; |
| 187 } | 216 } |
| 188 | 217 |
| 189 core.int buildCounterGetOobConfirmationCodeResponse = 0; | 218 core.int buildCounterGetOobConfirmationCodeResponse = 0; |
| 190 buildGetOobConfirmationCodeResponse() { | 219 buildGetOobConfirmationCodeResponse() { |
| 191 var o = new api.GetOobConfirmationCodeResponse(); | 220 var o = new api.GetOobConfirmationCodeResponse(); |
| 192 buildCounterGetOobConfirmationCodeResponse++; | 221 buildCounterGetOobConfirmationCodeResponse++; |
| 193 if (buildCounterGetOobConfirmationCodeResponse < 3) { | 222 if (buildCounterGetOobConfirmationCodeResponse < 3) { |
| 194 o.email = "foo"; | 223 o.email = "foo"; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 } | 297 } |
| 269 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; | 298 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; |
| 270 } | 299 } |
| 271 | 300 |
| 272 core.int buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest = 0; | 301 core.int buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest = 0; |
| 273 buildIdentitytoolkitRelyingpartyDeleteAccountRequest() { | 302 buildIdentitytoolkitRelyingpartyDeleteAccountRequest() { |
| 274 var o = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest(); | 303 var o = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest(); |
| 275 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; | 304 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; |
| 276 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { | 305 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { |
| 277 o.delegatedProjectNumber = "foo"; | 306 o.delegatedProjectNumber = "foo"; |
| 307 o.idToken = "foo"; |
| 278 o.localId = "foo"; | 308 o.localId = "foo"; |
| 279 } | 309 } |
| 280 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; | 310 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; |
| 281 return o; | 311 return o; |
| 282 } | 312 } |
| 283 | 313 |
| 284 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(api.IdentitytoolkitRelyingp
artyDeleteAccountRequest o) { | 314 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(api.IdentitytoolkitRelyingp
artyDeleteAccountRequest o) { |
| 285 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; | 315 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; |
| 286 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { | 316 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { |
| 287 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 317 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 318 unittest.expect(o.idToken, unittest.equals('foo')); |
| 288 unittest.expect(o.localId, unittest.equals('foo')); | 319 unittest.expect(o.localId, unittest.equals('foo')); |
| 289 } | 320 } |
| 290 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; | 321 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; |
| 291 } | 322 } |
| 292 | 323 |
| 293 core.int buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest = 0; | 324 core.int buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest = 0; |
| 294 buildIdentitytoolkitRelyingpartyDownloadAccountRequest() { | 325 buildIdentitytoolkitRelyingpartyDownloadAccountRequest() { |
| 295 var o = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest(); | 326 var o = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest(); |
| 296 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; | 327 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; |
| 297 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { | 328 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { |
| 298 o.delegatedProjectNumber = "foo"; | 329 o.delegatedProjectNumber = "foo"; |
| 299 o.maxResults = 42; | 330 o.maxResults = 42; |
| 300 o.nextPageToken = "foo"; | 331 o.nextPageToken = "foo"; |
| 301 } | 332 } |
| 302 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; | 333 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; |
| 303 return o; | 334 return o; |
| 304 } | 335 } |
| 305 | 336 |
| 306 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(api.IdentitytoolkitRelyin
gpartyDownloadAccountRequest o) { | 337 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(api.IdentitytoolkitRelyin
gpartyDownloadAccountRequest o) { |
| 307 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; | 338 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; |
| 308 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { | 339 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { |
| 309 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 340 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 310 unittest.expect(o.maxResults, unittest.equals(42)); | 341 unittest.expect(o.maxResults, unittest.equals(42)); |
| 311 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 342 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 312 } | 343 } |
| 313 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; | 344 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; |
| 314 } | 345 } |
| 315 | 346 |
| 316 buildUnnamed2191() { | 347 buildUnnamed2508() { |
| 317 var o = new core.List<core.String>(); | 348 var o = new core.List<core.String>(); |
| 318 o.add("foo"); | 349 o.add("foo"); |
| 319 o.add("foo"); | 350 o.add("foo"); |
| 320 return o; | 351 return o; |
| 321 } | 352 } |
| 322 | 353 |
| 323 checkUnnamed2191(core.List<core.String> o) { | 354 checkUnnamed2508(core.List<core.String> o) { |
| 324 unittest.expect(o, unittest.hasLength(2)); | 355 unittest.expect(o, unittest.hasLength(2)); |
| 325 unittest.expect(o[0], unittest.equals('foo')); | 356 unittest.expect(o[0], unittest.equals('foo')); |
| 326 unittest.expect(o[1], unittest.equals('foo')); | 357 unittest.expect(o[1], unittest.equals('foo')); |
| 327 } | 358 } |
| 328 | 359 |
| 329 buildUnnamed2192() { | 360 buildUnnamed2509() { |
| 330 var o = new core.List<core.String>(); | 361 var o = new core.List<core.String>(); |
| 331 o.add("foo"); | 362 o.add("foo"); |
| 332 o.add("foo"); | 363 o.add("foo"); |
| 333 return o; | 364 return o; |
| 334 } | 365 } |
| 335 | 366 |
| 336 checkUnnamed2192(core.List<core.String> o) { | 367 checkUnnamed2509(core.List<core.String> o) { |
| 337 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
| 338 unittest.expect(o[0], unittest.equals('foo')); | 369 unittest.expect(o[0], unittest.equals('foo')); |
| 339 unittest.expect(o[1], unittest.equals('foo')); | 370 unittest.expect(o[1], unittest.equals('foo')); |
| 340 } | 371 } |
| 341 | 372 |
| 342 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; | 373 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; |
| 343 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { | 374 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { |
| 344 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 375 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
| 345 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 376 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
| 346 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 377 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
| 347 o.email = buildUnnamed2191(); | 378 o.delegatedProjectNumber = "foo"; |
| 379 o.email = buildUnnamed2508(); |
| 348 o.idToken = "foo"; | 380 o.idToken = "foo"; |
| 349 o.localId = buildUnnamed2192(); | 381 o.localId = buildUnnamed2509(); |
| 350 } | 382 } |
| 351 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 383 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
| 352 return o; | 384 return o; |
| 353 } | 385 } |
| 354 | 386 |
| 355 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying
partyGetAccountInfoRequest o) { | 387 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying
partyGetAccountInfoRequest o) { |
| 356 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 388 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
| 357 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 389 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
| 358 checkUnnamed2191(o.email); | 390 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 391 checkUnnamed2508(o.email); |
| 359 unittest.expect(o.idToken, unittest.equals('foo')); | 392 unittest.expect(o.idToken, unittest.equals('foo')); |
| 360 checkUnnamed2192(o.localId); | 393 checkUnnamed2509(o.localId); |
| 361 } | 394 } |
| 362 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 395 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
| 363 } | 396 } |
| 364 | 397 |
| 365 buildUnnamed2193() { | 398 buildUnnamed2510() { |
| 399 var o = new core.List<core.String>(); |
| 400 o.add("foo"); |
| 401 o.add("foo"); |
| 402 return o; |
| 403 } |
| 404 |
| 405 checkUnnamed2510(core.List<core.String> o) { |
| 406 unittest.expect(o, unittest.hasLength(2)); |
| 407 unittest.expect(o[0], unittest.equals('foo')); |
| 408 unittest.expect(o[1], unittest.equals('foo')); |
| 409 } |
| 410 |
| 411 buildUnnamed2511() { |
| 366 var o = new core.List<api.IdpConfig>(); | 412 var o = new core.List<api.IdpConfig>(); |
| 367 o.add(buildIdpConfig()); | 413 o.add(buildIdpConfig()); |
| 368 o.add(buildIdpConfig()); | 414 o.add(buildIdpConfig()); |
| 369 return o; | 415 return o; |
| 370 } | 416 } |
| 371 | 417 |
| 372 checkUnnamed2193(core.List<api.IdpConfig> o) { | 418 checkUnnamed2511(core.List<api.IdpConfig> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
| 374 checkIdpConfig(o[0]); | 420 checkIdpConfig(o[0]); |
| 375 checkIdpConfig(o[1]); | 421 checkIdpConfig(o[1]); |
| 376 } | 422 } |
| 377 | 423 |
| 378 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0; | 424 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0; |
| 379 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() { | 425 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() { |
| 380 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse(); | 426 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse(); |
| 381 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; | 427 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; |
| 382 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { | 428 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { |
| 383 o.allowPasswordUser = true; | 429 o.allowPasswordUser = true; |
| 384 o.apiKey = "foo"; | 430 o.apiKey = "foo"; |
| 385 o.idpConfig = buildUnnamed2193(); | 431 o.authorizedDomains = buildUnnamed2510(); |
| 432 o.changeEmailTemplate = buildEmailTemplate(); |
| 433 o.idpConfig = buildUnnamed2511(); |
| 386 o.projectId = "foo"; | 434 o.projectId = "foo"; |
| 435 o.resetPasswordTemplate = buildEmailTemplate(); |
| 436 o.useEmailSending = true; |
| 437 o.verifyEmailTemplate = buildEmailTemplate(); |
| 387 } | 438 } |
| 388 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; | 439 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; |
| 389 return o; | 440 return o; |
| 390 } | 441 } |
| 391 | 442 |
| 392 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(api.IdentitytoolkitRely
ingpartyGetProjectConfigResponse o) { | 443 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(api.IdentitytoolkitRely
ingpartyGetProjectConfigResponse o) { |
| 393 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; | 444 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; |
| 394 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { | 445 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { |
| 395 unittest.expect(o.allowPasswordUser, unittest.isTrue); | 446 unittest.expect(o.allowPasswordUser, unittest.isTrue); |
| 396 unittest.expect(o.apiKey, unittest.equals('foo')); | 447 unittest.expect(o.apiKey, unittest.equals('foo')); |
| 397 checkUnnamed2193(o.idpConfig); | 448 checkUnnamed2510(o.authorizedDomains); |
| 449 checkEmailTemplate(o.changeEmailTemplate); |
| 450 checkUnnamed2511(o.idpConfig); |
| 398 unittest.expect(o.projectId, unittest.equals('foo')); | 451 unittest.expect(o.projectId, unittest.equals('foo')); |
| 452 checkEmailTemplate(o.resetPasswordTemplate); |
| 453 unittest.expect(o.useEmailSending, unittest.isTrue); |
| 454 checkEmailTemplate(o.verifyEmailTemplate); |
| 399 } | 455 } |
| 400 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; | 456 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; |
| 401 } | 457 } |
| 402 | 458 |
| 403 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { | 459 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { |
| 404 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); | 460 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); |
| 405 o["a"] = "foo"; | 461 o["a"] = "foo"; |
| 406 o["b"] = "foo"; | 462 o["b"] = "foo"; |
| 407 return o; | 463 return o; |
| 408 } | 464 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 431 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; | 487 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; |
| 432 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { | 488 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { |
| 433 unittest.expect(o.email, unittest.equals('foo')); | 489 unittest.expect(o.email, unittest.equals('foo')); |
| 434 unittest.expect(o.newPassword, unittest.equals('foo')); | 490 unittest.expect(o.newPassword, unittest.equals('foo')); |
| 435 unittest.expect(o.oldPassword, unittest.equals('foo')); | 491 unittest.expect(o.oldPassword, unittest.equals('foo')); |
| 436 unittest.expect(o.oobCode, unittest.equals('foo')); | 492 unittest.expect(o.oobCode, unittest.equals('foo')); |
| 437 } | 493 } |
| 438 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; | 494 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; |
| 439 } | 495 } |
| 440 | 496 |
| 441 buildUnnamed2194() { | 497 buildUnnamed2512() { |
| 442 var o = new core.List<core.String>(); | 498 var o = new core.List<core.String>(); |
| 443 o.add("foo"); | 499 o.add("foo"); |
| 444 o.add("foo"); | 500 o.add("foo"); |
| 445 return o; | 501 return o; |
| 446 } | 502 } |
| 447 | 503 |
| 448 checkUnnamed2194(core.List<core.String> o) { | 504 checkUnnamed2512(core.List<core.String> o) { |
| 449 unittest.expect(o, unittest.hasLength(2)); | 505 unittest.expect(o, unittest.hasLength(2)); |
| 450 unittest.expect(o[0], unittest.equals('foo')); | 506 unittest.expect(o[0], unittest.equals('foo')); |
| 451 unittest.expect(o[1], unittest.equals('foo')); | 507 unittest.expect(o[1], unittest.equals('foo')); |
| 508 } |
| 509 |
| 510 buildUnnamed2513() { |
| 511 var o = new core.List<core.String>(); |
| 512 o.add("foo"); |
| 513 o.add("foo"); |
| 514 return o; |
| 515 } |
| 516 |
| 517 checkUnnamed2513(core.List<core.String> o) { |
| 518 unittest.expect(o, unittest.hasLength(2)); |
| 519 unittest.expect(o[0], unittest.equals('foo')); |
| 520 unittest.expect(o[1], unittest.equals('foo')); |
| 521 } |
| 522 |
| 523 buildUnnamed2514() { |
| 524 var o = new core.List<core.String>(); |
| 525 o.add("foo"); |
| 526 o.add("foo"); |
| 527 return o; |
| 528 } |
| 529 |
| 530 checkUnnamed2514(core.List<core.String> o) { |
| 531 unittest.expect(o, unittest.hasLength(2)); |
| 532 unittest.expect(o[0], unittest.equals('foo')); |
| 533 unittest.expect(o[1], unittest.equals('foo')); |
| 452 } | 534 } |
| 453 | 535 |
| 454 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; | 536 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; |
| 455 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { | 537 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { |
| 456 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); | 538 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); |
| 457 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 539 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
| 458 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 540 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
| 459 o.captchaChallenge = "foo"; | 541 o.captchaChallenge = "foo"; |
| 460 o.captchaResponse = "foo"; | 542 o.captchaResponse = "foo"; |
| 461 o.delegatedProjectNumber = "foo"; | 543 o.delegatedProjectNumber = "foo"; |
| 544 o.deleteAttribute = buildUnnamed2512(); |
| 545 o.deleteProvider = buildUnnamed2513(); |
| 462 o.disableUser = true; | 546 o.disableUser = true; |
| 463 o.displayName = "foo"; | 547 o.displayName = "foo"; |
| 464 o.email = "foo"; | 548 o.email = "foo"; |
| 465 o.emailVerified = true; | 549 o.emailVerified = true; |
| 466 o.idToken = "foo"; | 550 o.idToken = "foo"; |
| 467 o.instanceId = "foo"; | 551 o.instanceId = "foo"; |
| 468 o.localId = "foo"; | 552 o.localId = "foo"; |
| 469 o.oobCode = "foo"; | 553 o.oobCode = "foo"; |
| 470 o.password = "foo"; | 554 o.password = "foo"; |
| 471 o.provider = buildUnnamed2194(); | 555 o.photoUrl = "foo"; |
| 556 o.provider = buildUnnamed2514(); |
| 557 o.returnSecureToken = true; |
| 472 o.upgradeToFederatedLogin = true; | 558 o.upgradeToFederatedLogin = true; |
| 473 o.validSince = "foo"; | 559 o.validSince = "foo"; |
| 474 } | 560 } |
| 475 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 561 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
| 476 return o; | 562 return o; |
| 477 } | 563 } |
| 478 | 564 |
| 479 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying
partySetAccountInfoRequest o) { | 565 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying
partySetAccountInfoRequest o) { |
| 480 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 566 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
| 481 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 567 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
| 482 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 568 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
| 483 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 569 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
| 484 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 570 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 571 checkUnnamed2512(o.deleteAttribute); |
| 572 checkUnnamed2513(o.deleteProvider); |
| 485 unittest.expect(o.disableUser, unittest.isTrue); | 573 unittest.expect(o.disableUser, unittest.isTrue); |
| 486 unittest.expect(o.displayName, unittest.equals('foo')); | 574 unittest.expect(o.displayName, unittest.equals('foo')); |
| 487 unittest.expect(o.email, unittest.equals('foo')); | 575 unittest.expect(o.email, unittest.equals('foo')); |
| 488 unittest.expect(o.emailVerified, unittest.isTrue); | 576 unittest.expect(o.emailVerified, unittest.isTrue); |
| 489 unittest.expect(o.idToken, unittest.equals('foo')); | 577 unittest.expect(o.idToken, unittest.equals('foo')); |
| 490 unittest.expect(o.instanceId, unittest.equals('foo')); | 578 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 491 unittest.expect(o.localId, unittest.equals('foo')); | 579 unittest.expect(o.localId, unittest.equals('foo')); |
| 492 unittest.expect(o.oobCode, unittest.equals('foo')); | 580 unittest.expect(o.oobCode, unittest.equals('foo')); |
| 493 unittest.expect(o.password, unittest.equals('foo')); | 581 unittest.expect(o.password, unittest.equals('foo')); |
| 494 checkUnnamed2194(o.provider); | 582 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 583 checkUnnamed2514(o.provider); |
| 584 unittest.expect(o.returnSecureToken, unittest.isTrue); |
| 495 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); | 585 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); |
| 496 unittest.expect(o.validSince, unittest.equals('foo')); | 586 unittest.expect(o.validSince, unittest.equals('foo')); |
| 497 } | 587 } |
| 498 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 588 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
| 499 } | 589 } |
| 500 | 590 |
| 591 buildUnnamed2515() { |
| 592 var o = new core.List<api.IdpConfig>(); |
| 593 o.add(buildIdpConfig()); |
| 594 o.add(buildIdpConfig()); |
| 595 return o; |
| 596 } |
| 597 |
| 598 checkUnnamed2515(core.List<api.IdpConfig> o) { |
| 599 unittest.expect(o, unittest.hasLength(2)); |
| 600 checkIdpConfig(o[0]); |
| 601 checkIdpConfig(o[1]); |
| 602 } |
| 603 |
| 604 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest = 0; |
| 605 buildIdentitytoolkitRelyingpartySetProjectConfigRequest() { |
| 606 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest(); |
| 607 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; |
| 608 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { |
| 609 o.allowPasswordUser = true; |
| 610 o.apiKey = "foo"; |
| 611 o.changeEmailTemplate = buildEmailTemplate(); |
| 612 o.delegatedProjectNumber = "foo"; |
| 613 o.idpConfig = buildUnnamed2515(); |
| 614 o.resetPasswordTemplate = buildEmailTemplate(); |
| 615 o.useEmailSending = true; |
| 616 o.verifyEmailTemplate = buildEmailTemplate(); |
| 617 } |
| 618 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; |
| 619 return o; |
| 620 } |
| 621 |
| 622 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(api.IdentitytoolkitRelyi
ngpartySetProjectConfigRequest o) { |
| 623 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; |
| 624 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { |
| 625 unittest.expect(o.allowPasswordUser, unittest.isTrue); |
| 626 unittest.expect(o.apiKey, unittest.equals('foo')); |
| 627 checkEmailTemplate(o.changeEmailTemplate); |
| 628 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 629 checkUnnamed2515(o.idpConfig); |
| 630 checkEmailTemplate(o.resetPasswordTemplate); |
| 631 unittest.expect(o.useEmailSending, unittest.isTrue); |
| 632 checkEmailTemplate(o.verifyEmailTemplate); |
| 633 } |
| 634 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; |
| 635 } |
| 636 |
| 637 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse = 0; |
| 638 buildIdentitytoolkitRelyingpartySetProjectConfigResponse() { |
| 639 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigResponse(); |
| 640 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; |
| 641 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { |
| 642 o.projectId = "foo"; |
| 643 } |
| 644 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; |
| 645 return o; |
| 646 } |
| 647 |
| 648 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(api.IdentitytoolkitRely
ingpartySetProjectConfigResponse o) { |
| 649 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; |
| 650 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { |
| 651 unittest.expect(o.projectId, unittest.equals('foo')); |
| 652 } |
| 653 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; |
| 654 } |
| 655 |
| 501 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserRequest = 0; | 656 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserRequest = 0; |
| 502 buildIdentitytoolkitRelyingpartySignOutUserRequest() { | 657 buildIdentitytoolkitRelyingpartySignOutUserRequest() { |
| 503 var o = new api.IdentitytoolkitRelyingpartySignOutUserRequest(); | 658 var o = new api.IdentitytoolkitRelyingpartySignOutUserRequest(); |
| 504 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; | 659 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; |
| 505 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { | 660 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { |
| 506 o.instanceId = "foo"; | 661 o.instanceId = "foo"; |
| 507 o.localId = "foo"; | 662 o.localId = "foo"; |
| 508 } | 663 } |
| 509 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; | 664 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; |
| 510 return o; | 665 return o; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 531 } | 686 } |
| 532 | 687 |
| 533 checkIdentitytoolkitRelyingpartySignOutUserResponse(api.IdentitytoolkitRelyingpa
rtySignOutUserResponse o) { | 688 checkIdentitytoolkitRelyingpartySignOutUserResponse(api.IdentitytoolkitRelyingpa
rtySignOutUserResponse o) { |
| 534 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; | 689 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; |
| 535 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { | 690 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { |
| 536 unittest.expect(o.localId, unittest.equals('foo')); | 691 unittest.expect(o.localId, unittest.equals('foo')); |
| 537 } | 692 } |
| 538 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; | 693 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; |
| 539 } | 694 } |
| 540 | 695 |
| 541 buildUnnamed2195() { | 696 core.int buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest = 0; |
| 697 buildIdentitytoolkitRelyingpartySignupNewUserRequest() { |
| 698 var o = new api.IdentitytoolkitRelyingpartySignupNewUserRequest(); |
| 699 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; |
| 700 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { |
| 701 o.captchaChallenge = "foo"; |
| 702 o.captchaResponse = "foo"; |
| 703 o.displayName = "foo"; |
| 704 o.email = "foo"; |
| 705 o.idToken = "foo"; |
| 706 o.instanceId = "foo"; |
| 707 o.password = "foo"; |
| 708 o.returnSecureToken = true; |
| 709 } |
| 710 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; |
| 711 return o; |
| 712 } |
| 713 |
| 714 checkIdentitytoolkitRelyingpartySignupNewUserRequest(api.IdentitytoolkitRelyingp
artySignupNewUserRequest o) { |
| 715 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; |
| 716 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { |
| 717 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
| 718 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
| 719 unittest.expect(o.displayName, unittest.equals('foo')); |
| 720 unittest.expect(o.email, unittest.equals('foo')); |
| 721 unittest.expect(o.idToken, unittest.equals('foo')); |
| 722 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 723 unittest.expect(o.password, unittest.equals('foo')); |
| 724 unittest.expect(o.returnSecureToken, unittest.isTrue); |
| 725 } |
| 726 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; |
| 727 } |
| 728 |
| 729 buildUnnamed2516() { |
| 542 var o = new core.List<api.UserInfo>(); | 730 var o = new core.List<api.UserInfo>(); |
| 543 o.add(buildUserInfo()); | 731 o.add(buildUserInfo()); |
| 544 o.add(buildUserInfo()); | 732 o.add(buildUserInfo()); |
| 545 return o; | 733 return o; |
| 546 } | 734 } |
| 547 | 735 |
| 548 checkUnnamed2195(core.List<api.UserInfo> o) { | 736 checkUnnamed2516(core.List<api.UserInfo> o) { |
| 549 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
| 550 checkUserInfo(o[0]); | 738 checkUserInfo(o[0]); |
| 551 checkUserInfo(o[1]); | 739 checkUserInfo(o[1]); |
| 552 } | 740 } |
| 553 | 741 |
| 554 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; | 742 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; |
| 555 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { | 743 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { |
| 556 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); | 744 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); |
| 557 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 745 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
| 558 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 746 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
| 559 o.delegatedProjectNumber = "foo"; | 747 o.delegatedProjectNumber = "foo"; |
| 560 o.hashAlgorithm = "foo"; | 748 o.hashAlgorithm = "foo"; |
| 561 o.memoryCost = 42; | 749 o.memoryCost = 42; |
| 562 o.rounds = 42; | 750 o.rounds = 42; |
| 563 o.saltSeparator = "foo"; | 751 o.saltSeparator = "foo"; |
| 564 o.signerKey = "foo"; | 752 o.signerKey = "foo"; |
| 565 o.users = buildUnnamed2195(); | 753 o.users = buildUnnamed2516(); |
| 566 } | 754 } |
| 567 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 755 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
| 568 return o; | 756 return o; |
| 569 } | 757 } |
| 570 | 758 |
| 571 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp
artyUploadAccountRequest o) { | 759 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp
artyUploadAccountRequest o) { |
| 572 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 760 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
| 573 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 761 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
| 574 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 762 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 575 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); | 763 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); |
| 576 unittest.expect(o.memoryCost, unittest.equals(42)); | 764 unittest.expect(o.memoryCost, unittest.equals(42)); |
| 577 unittest.expect(o.rounds, unittest.equals(42)); | 765 unittest.expect(o.rounds, unittest.equals(42)); |
| 578 unittest.expect(o.saltSeparator, unittest.equals('foo')); | 766 unittest.expect(o.saltSeparator, unittest.equals('foo')); |
| 579 unittest.expect(o.signerKey, unittest.equals('foo')); | 767 unittest.expect(o.signerKey, unittest.equals('foo')); |
| 580 checkUnnamed2195(o.users); | 768 checkUnnamed2516(o.users); |
| 581 } | 769 } |
| 582 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 770 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
| 583 } | 771 } |
| 584 | 772 |
| 585 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; | 773 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; |
| 586 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { | 774 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { |
| 587 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); | 775 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
| 588 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; | 776 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; |
| 589 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { | 777 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { |
| 590 o.delegatedProjectNumber = "foo"; | 778 o.delegatedProjectNumber = "foo"; |
| 779 o.idToken = "foo"; |
| 591 o.instanceId = "foo"; | 780 o.instanceId = "foo"; |
| 592 o.pendingIdToken = "foo"; | 781 o.pendingIdToken = "foo"; |
| 593 o.postBody = "foo"; | 782 o.postBody = "foo"; |
| 594 o.requestUri = "foo"; | 783 o.requestUri = "foo"; |
| 595 o.returnRefreshToken = true; | 784 o.returnRefreshToken = true; |
| 785 o.returnSecureToken = true; |
| 596 o.sessionId = "foo"; | 786 o.sessionId = "foo"; |
| 597 } | 787 } |
| 598 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; | 788 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; |
| 599 return o; | 789 return o; |
| 600 } | 790 } |
| 601 | 791 |
| 602 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(api.IdentitytoolkitRelyin
gpartyVerifyAssertionRequest o) { | 792 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(api.IdentitytoolkitRelyin
gpartyVerifyAssertionRequest o) { |
| 603 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; | 793 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; |
| 604 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { | 794 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { |
| 605 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 795 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 796 unittest.expect(o.idToken, unittest.equals('foo')); |
| 606 unittest.expect(o.instanceId, unittest.equals('foo')); | 797 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 607 unittest.expect(o.pendingIdToken, unittest.equals('foo')); | 798 unittest.expect(o.pendingIdToken, unittest.equals('foo')); |
| 608 unittest.expect(o.postBody, unittest.equals('foo')); | 799 unittest.expect(o.postBody, unittest.equals('foo')); |
| 609 unittest.expect(o.requestUri, unittest.equals('foo')); | 800 unittest.expect(o.requestUri, unittest.equals('foo')); |
| 610 unittest.expect(o.returnRefreshToken, unittest.isTrue); | 801 unittest.expect(o.returnRefreshToken, unittest.isTrue); |
| 802 unittest.expect(o.returnSecureToken, unittest.isTrue); |
| 611 unittest.expect(o.sessionId, unittest.equals('foo')); | 803 unittest.expect(o.sessionId, unittest.equals('foo')); |
| 612 } | 804 } |
| 613 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; | 805 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; |
| 614 } | 806 } |
| 615 | 807 |
| 616 core.int buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest = 0; | 808 core.int buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest = 0; |
| 617 buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest() { | 809 buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest() { |
| 618 var o = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); | 810 var o = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); |
| 619 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; | 811 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; |
| 620 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { | 812 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { |
| 621 o.instanceId = "foo"; | 813 o.instanceId = "foo"; |
| 814 o.returnSecureToken = true; |
| 622 o.token = "foo"; | 815 o.token = "foo"; |
| 623 } | 816 } |
| 624 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; | 817 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; |
| 625 return o; | 818 return o; |
| 626 } | 819 } |
| 627 | 820 |
| 628 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(api.IdentitytoolkitRely
ingpartyVerifyCustomTokenRequest o) { | 821 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(api.IdentitytoolkitRely
ingpartyVerifyCustomTokenRequest o) { |
| 629 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; | 822 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; |
| 630 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { | 823 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { |
| 631 unittest.expect(o.instanceId, unittest.equals('foo')); | 824 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 825 unittest.expect(o.returnSecureToken, unittest.isTrue); |
| 632 unittest.expect(o.token, unittest.equals('foo')); | 826 unittest.expect(o.token, unittest.equals('foo')); |
| 633 } | 827 } |
| 634 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; | 828 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; |
| 635 } | 829 } |
| 636 | 830 |
| 637 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest = 0; | 831 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest = 0; |
| 638 buildIdentitytoolkitRelyingpartyVerifyPasswordRequest() { | 832 buildIdentitytoolkitRelyingpartyVerifyPasswordRequest() { |
| 639 var o = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 833 var o = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
| 640 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; | 834 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; |
| 641 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { | 835 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { |
| 642 o.captchaChallenge = "foo"; | 836 o.captchaChallenge = "foo"; |
| 643 o.captchaResponse = "foo"; | 837 o.captchaResponse = "foo"; |
| 644 o.delegatedProjectNumber = "foo"; | 838 o.delegatedProjectNumber = "foo"; |
| 645 o.email = "foo"; | 839 o.email = "foo"; |
| 840 o.idToken = "foo"; |
| 646 o.instanceId = "foo"; | 841 o.instanceId = "foo"; |
| 647 o.password = "foo"; | 842 o.password = "foo"; |
| 648 o.pendingIdToken = "foo"; | 843 o.pendingIdToken = "foo"; |
| 844 o.returnSecureToken = true; |
| 649 } | 845 } |
| 650 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; | 846 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; |
| 651 return o; | 847 return o; |
| 652 } | 848 } |
| 653 | 849 |
| 654 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(api.IdentitytoolkitRelying
partyVerifyPasswordRequest o) { | 850 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(api.IdentitytoolkitRelying
partyVerifyPasswordRequest o) { |
| 655 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; | 851 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; |
| 656 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { | 852 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { |
| 657 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 853 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
| 658 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 854 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
| 659 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 855 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 660 unittest.expect(o.email, unittest.equals('foo')); | 856 unittest.expect(o.email, unittest.equals('foo')); |
| 857 unittest.expect(o.idToken, unittest.equals('foo')); |
| 661 unittest.expect(o.instanceId, unittest.equals('foo')); | 858 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 662 unittest.expect(o.password, unittest.equals('foo')); | 859 unittest.expect(o.password, unittest.equals('foo')); |
| 663 unittest.expect(o.pendingIdToken, unittest.equals('foo')); | 860 unittest.expect(o.pendingIdToken, unittest.equals('foo')); |
| 861 unittest.expect(o.returnSecureToken, unittest.isTrue); |
| 664 } | 862 } |
| 665 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; | 863 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; |
| 666 } | 864 } |
| 667 | 865 |
| 668 core.int buildCounterIdpConfig = 0; | 866 core.int buildCounterIdpConfig = 0; |
| 669 buildIdpConfig() { | 867 buildIdpConfig() { |
| 670 var o = new api.IdpConfig(); | 868 var o = new api.IdpConfig(); |
| 671 buildCounterIdpConfig++; | 869 buildCounterIdpConfig++; |
| 672 if (buildCounterIdpConfig < 3) { | 870 if (buildCounterIdpConfig < 3) { |
| 673 o.clientId = "foo"; | 871 o.clientId = "foo"; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 checkSetAccountInfoResponseProviderUserInfo(api.SetAccountInfoResponseProviderUs
erInfo o) { | 958 checkSetAccountInfoResponseProviderUserInfo(api.SetAccountInfoResponseProviderUs
erInfo o) { |
| 761 buildCounterSetAccountInfoResponseProviderUserInfo++; | 959 buildCounterSetAccountInfoResponseProviderUserInfo++; |
| 762 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { | 960 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { |
| 763 unittest.expect(o.displayName, unittest.equals('foo')); | 961 unittest.expect(o.displayName, unittest.equals('foo')); |
| 764 unittest.expect(o.photoUrl, unittest.equals('foo')); | 962 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 765 unittest.expect(o.providerId, unittest.equals('foo')); | 963 unittest.expect(o.providerId, unittest.equals('foo')); |
| 766 } | 964 } |
| 767 buildCounterSetAccountInfoResponseProviderUserInfo--; | 965 buildCounterSetAccountInfoResponseProviderUserInfo--; |
| 768 } | 966 } |
| 769 | 967 |
| 770 buildUnnamed2196() { | 968 buildUnnamed2517() { |
| 771 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); | 969 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); |
| 772 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 970 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
| 773 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 971 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
| 774 return o; | 972 return o; |
| 775 } | 973 } |
| 776 | 974 |
| 777 checkUnnamed2196(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { | 975 checkUnnamed2517(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { |
| 778 unittest.expect(o, unittest.hasLength(2)); | 976 unittest.expect(o, unittest.hasLength(2)); |
| 779 checkSetAccountInfoResponseProviderUserInfo(o[0]); | 977 checkSetAccountInfoResponseProviderUserInfo(o[0]); |
| 780 checkSetAccountInfoResponseProviderUserInfo(o[1]); | 978 checkSetAccountInfoResponseProviderUserInfo(o[1]); |
| 781 } | 979 } |
| 782 | 980 |
| 783 core.int buildCounterSetAccountInfoResponse = 0; | 981 core.int buildCounterSetAccountInfoResponse = 0; |
| 784 buildSetAccountInfoResponse() { | 982 buildSetAccountInfoResponse() { |
| 785 var o = new api.SetAccountInfoResponse(); | 983 var o = new api.SetAccountInfoResponse(); |
| 786 buildCounterSetAccountInfoResponse++; | 984 buildCounterSetAccountInfoResponse++; |
| 787 if (buildCounterSetAccountInfoResponse < 3) { | 985 if (buildCounterSetAccountInfoResponse < 3) { |
| 788 o.displayName = "foo"; | 986 o.displayName = "foo"; |
| 789 o.email = "foo"; | 987 o.email = "foo"; |
| 988 o.expiresIn = "foo"; |
| 790 o.idToken = "foo"; | 989 o.idToken = "foo"; |
| 791 o.kind = "foo"; | 990 o.kind = "foo"; |
| 792 o.newEmail = "foo"; | 991 o.newEmail = "foo"; |
| 793 o.providerUserInfo = buildUnnamed2196(); | 992 o.photoUrl = "foo"; |
| 993 o.providerUserInfo = buildUnnamed2517(); |
| 994 o.refreshToken = "foo"; |
| 794 } | 995 } |
| 795 buildCounterSetAccountInfoResponse--; | 996 buildCounterSetAccountInfoResponse--; |
| 796 return o; | 997 return o; |
| 797 } | 998 } |
| 798 | 999 |
| 799 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { | 1000 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { |
| 800 buildCounterSetAccountInfoResponse++; | 1001 buildCounterSetAccountInfoResponse++; |
| 801 if (buildCounterSetAccountInfoResponse < 3) { | 1002 if (buildCounterSetAccountInfoResponse < 3) { |
| 802 unittest.expect(o.displayName, unittest.equals('foo')); | 1003 unittest.expect(o.displayName, unittest.equals('foo')); |
| 803 unittest.expect(o.email, unittest.equals('foo')); | 1004 unittest.expect(o.email, unittest.equals('foo')); |
| 1005 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 804 unittest.expect(o.idToken, unittest.equals('foo')); | 1006 unittest.expect(o.idToken, unittest.equals('foo')); |
| 805 unittest.expect(o.kind, unittest.equals('foo')); | 1007 unittest.expect(o.kind, unittest.equals('foo')); |
| 806 unittest.expect(o.newEmail, unittest.equals('foo')); | 1008 unittest.expect(o.newEmail, unittest.equals('foo')); |
| 807 checkUnnamed2196(o.providerUserInfo); | 1009 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 1010 checkUnnamed2517(o.providerUserInfo); |
| 1011 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 808 } | 1012 } |
| 809 buildCounterSetAccountInfoResponse--; | 1013 buildCounterSetAccountInfoResponse--; |
| 810 } | 1014 } |
| 811 | 1015 |
| 1016 core.int buildCounterSignupNewUserResponse = 0; |
| 1017 buildSignupNewUserResponse() { |
| 1018 var o = new api.SignupNewUserResponse(); |
| 1019 buildCounterSignupNewUserResponse++; |
| 1020 if (buildCounterSignupNewUserResponse < 3) { |
| 1021 o.displayName = "foo"; |
| 1022 o.email = "foo"; |
| 1023 o.expiresIn = "foo"; |
| 1024 o.idToken = "foo"; |
| 1025 o.kind = "foo"; |
| 1026 o.localId = "foo"; |
| 1027 o.refreshToken = "foo"; |
| 1028 } |
| 1029 buildCounterSignupNewUserResponse--; |
| 1030 return o; |
| 1031 } |
| 1032 |
| 1033 checkSignupNewUserResponse(api.SignupNewUserResponse o) { |
| 1034 buildCounterSignupNewUserResponse++; |
| 1035 if (buildCounterSignupNewUserResponse < 3) { |
| 1036 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1037 unittest.expect(o.email, unittest.equals('foo')); |
| 1038 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 1039 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1040 unittest.expect(o.kind, unittest.equals('foo')); |
| 1041 unittest.expect(o.localId, unittest.equals('foo')); |
| 1042 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 1043 } |
| 1044 buildCounterSignupNewUserResponse--; |
| 1045 } |
| 1046 |
| 812 core.int buildCounterUploadAccountResponseError = 0; | 1047 core.int buildCounterUploadAccountResponseError = 0; |
| 813 buildUploadAccountResponseError() { | 1048 buildUploadAccountResponseError() { |
| 814 var o = new api.UploadAccountResponseError(); | 1049 var o = new api.UploadAccountResponseError(); |
| 815 buildCounterUploadAccountResponseError++; | 1050 buildCounterUploadAccountResponseError++; |
| 816 if (buildCounterUploadAccountResponseError < 3) { | 1051 if (buildCounterUploadAccountResponseError < 3) { |
| 817 o.index = 42; | 1052 o.index = 42; |
| 818 o.message = "foo"; | 1053 o.message = "foo"; |
| 819 } | 1054 } |
| 820 buildCounterUploadAccountResponseError--; | 1055 buildCounterUploadAccountResponseError--; |
| 821 return o; | 1056 return o; |
| 822 } | 1057 } |
| 823 | 1058 |
| 824 checkUploadAccountResponseError(api.UploadAccountResponseError o) { | 1059 checkUploadAccountResponseError(api.UploadAccountResponseError o) { |
| 825 buildCounterUploadAccountResponseError++; | 1060 buildCounterUploadAccountResponseError++; |
| 826 if (buildCounterUploadAccountResponseError < 3) { | 1061 if (buildCounterUploadAccountResponseError < 3) { |
| 827 unittest.expect(o.index, unittest.equals(42)); | 1062 unittest.expect(o.index, unittest.equals(42)); |
| 828 unittest.expect(o.message, unittest.equals('foo')); | 1063 unittest.expect(o.message, unittest.equals('foo')); |
| 829 } | 1064 } |
| 830 buildCounterUploadAccountResponseError--; | 1065 buildCounterUploadAccountResponseError--; |
| 831 } | 1066 } |
| 832 | 1067 |
| 833 buildUnnamed2197() { | 1068 buildUnnamed2518() { |
| 834 var o = new core.List<api.UploadAccountResponseError>(); | 1069 var o = new core.List<api.UploadAccountResponseError>(); |
| 835 o.add(buildUploadAccountResponseError()); | 1070 o.add(buildUploadAccountResponseError()); |
| 836 o.add(buildUploadAccountResponseError()); | 1071 o.add(buildUploadAccountResponseError()); |
| 837 return o; | 1072 return o; |
| 838 } | 1073 } |
| 839 | 1074 |
| 840 checkUnnamed2197(core.List<api.UploadAccountResponseError> o) { | 1075 checkUnnamed2518(core.List<api.UploadAccountResponseError> o) { |
| 841 unittest.expect(o, unittest.hasLength(2)); | 1076 unittest.expect(o, unittest.hasLength(2)); |
| 842 checkUploadAccountResponseError(o[0]); | 1077 checkUploadAccountResponseError(o[0]); |
| 843 checkUploadAccountResponseError(o[1]); | 1078 checkUploadAccountResponseError(o[1]); |
| 844 } | 1079 } |
| 845 | 1080 |
| 846 core.int buildCounterUploadAccountResponse = 0; | 1081 core.int buildCounterUploadAccountResponse = 0; |
| 847 buildUploadAccountResponse() { | 1082 buildUploadAccountResponse() { |
| 848 var o = new api.UploadAccountResponse(); | 1083 var o = new api.UploadAccountResponse(); |
| 849 buildCounterUploadAccountResponse++; | 1084 buildCounterUploadAccountResponse++; |
| 850 if (buildCounterUploadAccountResponse < 3) { | 1085 if (buildCounterUploadAccountResponse < 3) { |
| 851 o.error = buildUnnamed2197(); | 1086 o.error = buildUnnamed2518(); |
| 852 o.kind = "foo"; | 1087 o.kind = "foo"; |
| 853 } | 1088 } |
| 854 buildCounterUploadAccountResponse--; | 1089 buildCounterUploadAccountResponse--; |
| 855 return o; | 1090 return o; |
| 856 } | 1091 } |
| 857 | 1092 |
| 858 checkUploadAccountResponse(api.UploadAccountResponse o) { | 1093 checkUploadAccountResponse(api.UploadAccountResponse o) { |
| 859 buildCounterUploadAccountResponse++; | 1094 buildCounterUploadAccountResponse++; |
| 860 if (buildCounterUploadAccountResponse < 3) { | 1095 if (buildCounterUploadAccountResponse < 3) { |
| 861 checkUnnamed2197(o.error); | 1096 checkUnnamed2518(o.error); |
| 862 unittest.expect(o.kind, unittest.equals('foo')); | 1097 unittest.expect(o.kind, unittest.equals('foo')); |
| 863 } | 1098 } |
| 864 buildCounterUploadAccountResponse--; | 1099 buildCounterUploadAccountResponse--; |
| 865 } | 1100 } |
| 866 | 1101 |
| 867 core.int buildCounterUserInfoProviderUserInfo = 0; | 1102 core.int buildCounterUserInfoProviderUserInfo = 0; |
| 868 buildUserInfoProviderUserInfo() { | 1103 buildUserInfoProviderUserInfo() { |
| 869 var o = new api.UserInfoProviderUserInfo(); | 1104 var o = new api.UserInfoProviderUserInfo(); |
| 870 buildCounterUserInfoProviderUserInfo++; | 1105 buildCounterUserInfoProviderUserInfo++; |
| 871 if (buildCounterUserInfoProviderUserInfo < 3) { | 1106 if (buildCounterUserInfoProviderUserInfo < 3) { |
| 872 o.displayName = "foo"; | 1107 o.displayName = "foo"; |
| 1108 o.email = "foo"; |
| 873 o.federatedId = "foo"; | 1109 o.federatedId = "foo"; |
| 874 o.photoUrl = "foo"; | 1110 o.photoUrl = "foo"; |
| 875 o.providerId = "foo"; | 1111 o.providerId = "foo"; |
| 1112 o.rawId = "foo"; |
| 876 } | 1113 } |
| 877 buildCounterUserInfoProviderUserInfo--; | 1114 buildCounterUserInfoProviderUserInfo--; |
| 878 return o; | 1115 return o; |
| 879 } | 1116 } |
| 880 | 1117 |
| 881 checkUserInfoProviderUserInfo(api.UserInfoProviderUserInfo o) { | 1118 checkUserInfoProviderUserInfo(api.UserInfoProviderUserInfo o) { |
| 882 buildCounterUserInfoProviderUserInfo++; | 1119 buildCounterUserInfoProviderUserInfo++; |
| 883 if (buildCounterUserInfoProviderUserInfo < 3) { | 1120 if (buildCounterUserInfoProviderUserInfo < 3) { |
| 884 unittest.expect(o.displayName, unittest.equals('foo')); | 1121 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1122 unittest.expect(o.email, unittest.equals('foo')); |
| 885 unittest.expect(o.federatedId, unittest.equals('foo')); | 1123 unittest.expect(o.federatedId, unittest.equals('foo')); |
| 886 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1124 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 887 unittest.expect(o.providerId, unittest.equals('foo')); | 1125 unittest.expect(o.providerId, unittest.equals('foo')); |
| 1126 unittest.expect(o.rawId, unittest.equals('foo')); |
| 888 } | 1127 } |
| 889 buildCounterUserInfoProviderUserInfo--; | 1128 buildCounterUserInfoProviderUserInfo--; |
| 890 } | 1129 } |
| 891 | 1130 |
| 892 buildUnnamed2198() { | 1131 buildUnnamed2519() { |
| 893 var o = new core.List<api.UserInfoProviderUserInfo>(); | 1132 var o = new core.List<api.UserInfoProviderUserInfo>(); |
| 894 o.add(buildUserInfoProviderUserInfo()); | 1133 o.add(buildUserInfoProviderUserInfo()); |
| 895 o.add(buildUserInfoProviderUserInfo()); | 1134 o.add(buildUserInfoProviderUserInfo()); |
| 896 return o; | 1135 return o; |
| 897 } | 1136 } |
| 898 | 1137 |
| 899 checkUnnamed2198(core.List<api.UserInfoProviderUserInfo> o) { | 1138 checkUnnamed2519(core.List<api.UserInfoProviderUserInfo> o) { |
| 900 unittest.expect(o, unittest.hasLength(2)); | 1139 unittest.expect(o, unittest.hasLength(2)); |
| 901 checkUserInfoProviderUserInfo(o[0]); | 1140 checkUserInfoProviderUserInfo(o[0]); |
| 902 checkUserInfoProviderUserInfo(o[1]); | 1141 checkUserInfoProviderUserInfo(o[1]); |
| 903 } | 1142 } |
| 904 | 1143 |
| 905 core.int buildCounterUserInfo = 0; | 1144 core.int buildCounterUserInfo = 0; |
| 906 buildUserInfo() { | 1145 buildUserInfo() { |
| 907 var o = new api.UserInfo(); | 1146 var o = new api.UserInfo(); |
| 908 buildCounterUserInfo++; | 1147 buildCounterUserInfo++; |
| 909 if (buildCounterUserInfo < 3) { | 1148 if (buildCounterUserInfo < 3) { |
| 910 o.disabled = true; | 1149 o.disabled = true; |
| 911 o.displayName = "foo"; | 1150 o.displayName = "foo"; |
| 912 o.email = "foo"; | 1151 o.email = "foo"; |
| 913 o.emailVerified = true; | 1152 o.emailVerified = true; |
| 914 o.localId = "foo"; | 1153 o.localId = "foo"; |
| 915 o.passwordHash = "foo"; | 1154 o.passwordHash = "foo"; |
| 916 o.passwordUpdatedAt = 42.0; | 1155 o.passwordUpdatedAt = 42.0; |
| 917 o.photoUrl = "foo"; | 1156 o.photoUrl = "foo"; |
| 918 o.providerUserInfo = buildUnnamed2198(); | 1157 o.providerUserInfo = buildUnnamed2519(); |
| 919 o.salt = "foo"; | 1158 o.salt = "foo"; |
| 920 o.validSince = "foo"; | 1159 o.validSince = "foo"; |
| 921 o.version = 42; | 1160 o.version = 42; |
| 922 } | 1161 } |
| 923 buildCounterUserInfo--; | 1162 buildCounterUserInfo--; |
| 924 return o; | 1163 return o; |
| 925 } | 1164 } |
| 926 | 1165 |
| 927 checkUserInfo(api.UserInfo o) { | 1166 checkUserInfo(api.UserInfo o) { |
| 928 buildCounterUserInfo++; | 1167 buildCounterUserInfo++; |
| 929 if (buildCounterUserInfo < 3) { | 1168 if (buildCounterUserInfo < 3) { |
| 930 unittest.expect(o.disabled, unittest.isTrue); | 1169 unittest.expect(o.disabled, unittest.isTrue); |
| 931 unittest.expect(o.displayName, unittest.equals('foo')); | 1170 unittest.expect(o.displayName, unittest.equals('foo')); |
| 932 unittest.expect(o.email, unittest.equals('foo')); | 1171 unittest.expect(o.email, unittest.equals('foo')); |
| 933 unittest.expect(o.emailVerified, unittest.isTrue); | 1172 unittest.expect(o.emailVerified, unittest.isTrue); |
| 934 unittest.expect(o.localId, unittest.equals('foo')); | 1173 unittest.expect(o.localId, unittest.equals('foo')); |
| 935 unittest.expect(o.passwordHash, unittest.equals('foo')); | 1174 unittest.expect(o.passwordHash, unittest.equals('foo')); |
| 936 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); | 1175 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); |
| 937 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1176 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 938 checkUnnamed2198(o.providerUserInfo); | 1177 checkUnnamed2519(o.providerUserInfo); |
| 939 unittest.expect(o.salt, unittest.equals('foo')); | 1178 unittest.expect(o.salt, unittest.equals('foo')); |
| 940 unittest.expect(o.validSince, unittest.equals('foo')); | 1179 unittest.expect(o.validSince, unittest.equals('foo')); |
| 941 unittest.expect(o.version, unittest.equals(42)); | 1180 unittest.expect(o.version, unittest.equals(42)); |
| 942 } | 1181 } |
| 943 buildCounterUserInfo--; | 1182 buildCounterUserInfo--; |
| 944 } | 1183 } |
| 945 | 1184 |
| 946 buildUnnamed2199() { | 1185 buildUnnamed2520() { |
| 947 var o = new core.List<core.String>(); | 1186 var o = new core.List<core.String>(); |
| 948 o.add("foo"); | 1187 o.add("foo"); |
| 949 o.add("foo"); | 1188 o.add("foo"); |
| 950 return o; | 1189 return o; |
| 951 } | 1190 } |
| 952 | 1191 |
| 953 checkUnnamed2199(core.List<core.String> o) { | 1192 checkUnnamed2520(core.List<core.String> o) { |
| 954 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
| 955 unittest.expect(o[0], unittest.equals('foo')); | 1194 unittest.expect(o[0], unittest.equals('foo')); |
| 956 unittest.expect(o[1], unittest.equals('foo')); | 1195 unittest.expect(o[1], unittest.equals('foo')); |
| 957 } | 1196 } |
| 958 | 1197 |
| 959 core.int buildCounterVerifyAssertionResponse = 0; | 1198 core.int buildCounterVerifyAssertionResponse = 0; |
| 960 buildVerifyAssertionResponse() { | 1199 buildVerifyAssertionResponse() { |
| 961 var o = new api.VerifyAssertionResponse(); | 1200 var o = new api.VerifyAssertionResponse(); |
| 962 buildCounterVerifyAssertionResponse++; | 1201 buildCounterVerifyAssertionResponse++; |
| 963 if (buildCounterVerifyAssertionResponse < 3) { | 1202 if (buildCounterVerifyAssertionResponse < 3) { |
| 964 o.action = "foo"; | 1203 o.action = "foo"; |
| 965 o.appInstallationUrl = "foo"; | 1204 o.appInstallationUrl = "foo"; |
| 966 o.appScheme = "foo"; | 1205 o.appScheme = "foo"; |
| 967 o.context = "foo"; | 1206 o.context = "foo"; |
| 968 o.dateOfBirth = "foo"; | 1207 o.dateOfBirth = "foo"; |
| 969 o.displayName = "foo"; | 1208 o.displayName = "foo"; |
| 970 o.email = "foo"; | 1209 o.email = "foo"; |
| 971 o.emailRecycled = true; | 1210 o.emailRecycled = true; |
| 972 o.emailVerified = true; | 1211 o.emailVerified = true; |
| 1212 o.expiresIn = "foo"; |
| 973 o.federatedId = "foo"; | 1213 o.federatedId = "foo"; |
| 974 o.firstName = "foo"; | 1214 o.firstName = "foo"; |
| 975 o.fullName = "foo"; | 1215 o.fullName = "foo"; |
| 976 o.idToken = "foo"; | 1216 o.idToken = "foo"; |
| 977 o.inputEmail = "foo"; | 1217 o.inputEmail = "foo"; |
| 978 o.kind = "foo"; | 1218 o.kind = "foo"; |
| 979 o.language = "foo"; | 1219 o.language = "foo"; |
| 980 o.lastName = "foo"; | 1220 o.lastName = "foo"; |
| 981 o.localId = "foo"; | 1221 o.localId = "foo"; |
| 982 o.needConfirmation = true; | 1222 o.needConfirmation = true; |
| 983 o.needEmail = true; | 1223 o.needEmail = true; |
| 984 o.nickName = "foo"; | 1224 o.nickName = "foo"; |
| 985 o.oauthAccessToken = "foo"; | 1225 o.oauthAccessToken = "foo"; |
| 986 o.oauthAuthorizationCode = "foo"; | 1226 o.oauthAuthorizationCode = "foo"; |
| 987 o.oauthExpireIn = 42; | 1227 o.oauthExpireIn = 42; |
| 988 o.oauthRequestToken = "foo"; | 1228 o.oauthRequestToken = "foo"; |
| 989 o.oauthScope = "foo"; | 1229 o.oauthScope = "foo"; |
| 1230 o.oauthTokenSecret = "foo"; |
| 990 o.originalEmail = "foo"; | 1231 o.originalEmail = "foo"; |
| 991 o.photoUrl = "foo"; | 1232 o.photoUrl = "foo"; |
| 992 o.providerId = "foo"; | 1233 o.providerId = "foo"; |
| 1234 o.refreshToken = "foo"; |
| 993 o.timeZone = "foo"; | 1235 o.timeZone = "foo"; |
| 994 o.verifiedProvider = buildUnnamed2199(); | 1236 o.verifiedProvider = buildUnnamed2520(); |
| 995 } | 1237 } |
| 996 buildCounterVerifyAssertionResponse--; | 1238 buildCounterVerifyAssertionResponse--; |
| 997 return o; | 1239 return o; |
| 998 } | 1240 } |
| 999 | 1241 |
| 1000 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { | 1242 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { |
| 1001 buildCounterVerifyAssertionResponse++; | 1243 buildCounterVerifyAssertionResponse++; |
| 1002 if (buildCounterVerifyAssertionResponse < 3) { | 1244 if (buildCounterVerifyAssertionResponse < 3) { |
| 1003 unittest.expect(o.action, unittest.equals('foo')); | 1245 unittest.expect(o.action, unittest.equals('foo')); |
| 1004 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); | 1246 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); |
| 1005 unittest.expect(o.appScheme, unittest.equals('foo')); | 1247 unittest.expect(o.appScheme, unittest.equals('foo')); |
| 1006 unittest.expect(o.context, unittest.equals('foo')); | 1248 unittest.expect(o.context, unittest.equals('foo')); |
| 1007 unittest.expect(o.dateOfBirth, unittest.equals('foo')); | 1249 unittest.expect(o.dateOfBirth, unittest.equals('foo')); |
| 1008 unittest.expect(o.displayName, unittest.equals('foo')); | 1250 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1009 unittest.expect(o.email, unittest.equals('foo')); | 1251 unittest.expect(o.email, unittest.equals('foo')); |
| 1010 unittest.expect(o.emailRecycled, unittest.isTrue); | 1252 unittest.expect(o.emailRecycled, unittest.isTrue); |
| 1011 unittest.expect(o.emailVerified, unittest.isTrue); | 1253 unittest.expect(o.emailVerified, unittest.isTrue); |
| 1254 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 1012 unittest.expect(o.federatedId, unittest.equals('foo')); | 1255 unittest.expect(o.federatedId, unittest.equals('foo')); |
| 1013 unittest.expect(o.firstName, unittest.equals('foo')); | 1256 unittest.expect(o.firstName, unittest.equals('foo')); |
| 1014 unittest.expect(o.fullName, unittest.equals('foo')); | 1257 unittest.expect(o.fullName, unittest.equals('foo')); |
| 1015 unittest.expect(o.idToken, unittest.equals('foo')); | 1258 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1016 unittest.expect(o.inputEmail, unittest.equals('foo')); | 1259 unittest.expect(o.inputEmail, unittest.equals('foo')); |
| 1017 unittest.expect(o.kind, unittest.equals('foo')); | 1260 unittest.expect(o.kind, unittest.equals('foo')); |
| 1018 unittest.expect(o.language, unittest.equals('foo')); | 1261 unittest.expect(o.language, unittest.equals('foo')); |
| 1019 unittest.expect(o.lastName, unittest.equals('foo')); | 1262 unittest.expect(o.lastName, unittest.equals('foo')); |
| 1020 unittest.expect(o.localId, unittest.equals('foo')); | 1263 unittest.expect(o.localId, unittest.equals('foo')); |
| 1021 unittest.expect(o.needConfirmation, unittest.isTrue); | 1264 unittest.expect(o.needConfirmation, unittest.isTrue); |
| 1022 unittest.expect(o.needEmail, unittest.isTrue); | 1265 unittest.expect(o.needEmail, unittest.isTrue); |
| 1023 unittest.expect(o.nickName, unittest.equals('foo')); | 1266 unittest.expect(o.nickName, unittest.equals('foo')); |
| 1024 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); | 1267 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); |
| 1025 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); | 1268 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); |
| 1026 unittest.expect(o.oauthExpireIn, unittest.equals(42)); | 1269 unittest.expect(o.oauthExpireIn, unittest.equals(42)); |
| 1027 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); | 1270 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); |
| 1028 unittest.expect(o.oauthScope, unittest.equals('foo')); | 1271 unittest.expect(o.oauthScope, unittest.equals('foo')); |
| 1272 unittest.expect(o.oauthTokenSecret, unittest.equals('foo')); |
| 1029 unittest.expect(o.originalEmail, unittest.equals('foo')); | 1273 unittest.expect(o.originalEmail, unittest.equals('foo')); |
| 1030 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1274 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 1031 unittest.expect(o.providerId, unittest.equals('foo')); | 1275 unittest.expect(o.providerId, unittest.equals('foo')); |
| 1276 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 1032 unittest.expect(o.timeZone, unittest.equals('foo')); | 1277 unittest.expect(o.timeZone, unittest.equals('foo')); |
| 1033 checkUnnamed2199(o.verifiedProvider); | 1278 checkUnnamed2520(o.verifiedProvider); |
| 1034 } | 1279 } |
| 1035 buildCounterVerifyAssertionResponse--; | 1280 buildCounterVerifyAssertionResponse--; |
| 1036 } | 1281 } |
| 1037 | 1282 |
| 1038 core.int buildCounterVerifyCustomTokenResponse = 0; | 1283 core.int buildCounterVerifyCustomTokenResponse = 0; |
| 1039 buildVerifyCustomTokenResponse() { | 1284 buildVerifyCustomTokenResponse() { |
| 1040 var o = new api.VerifyCustomTokenResponse(); | 1285 var o = new api.VerifyCustomTokenResponse(); |
| 1041 buildCounterVerifyCustomTokenResponse++; | 1286 buildCounterVerifyCustomTokenResponse++; |
| 1042 if (buildCounterVerifyCustomTokenResponse < 3) { | 1287 if (buildCounterVerifyCustomTokenResponse < 3) { |
| 1288 o.expiresIn = "foo"; |
| 1043 o.idToken = "foo"; | 1289 o.idToken = "foo"; |
| 1044 o.kind = "foo"; | 1290 o.kind = "foo"; |
| 1291 o.refreshToken = "foo"; |
| 1045 } | 1292 } |
| 1046 buildCounterVerifyCustomTokenResponse--; | 1293 buildCounterVerifyCustomTokenResponse--; |
| 1047 return o; | 1294 return o; |
| 1048 } | 1295 } |
| 1049 | 1296 |
| 1050 checkVerifyCustomTokenResponse(api.VerifyCustomTokenResponse o) { | 1297 checkVerifyCustomTokenResponse(api.VerifyCustomTokenResponse o) { |
| 1051 buildCounterVerifyCustomTokenResponse++; | 1298 buildCounterVerifyCustomTokenResponse++; |
| 1052 if (buildCounterVerifyCustomTokenResponse < 3) { | 1299 if (buildCounterVerifyCustomTokenResponse < 3) { |
| 1300 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 1053 unittest.expect(o.idToken, unittest.equals('foo')); | 1301 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1054 unittest.expect(o.kind, unittest.equals('foo')); | 1302 unittest.expect(o.kind, unittest.equals('foo')); |
| 1303 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 1055 } | 1304 } |
| 1056 buildCounterVerifyCustomTokenResponse--; | 1305 buildCounterVerifyCustomTokenResponse--; |
| 1057 } | 1306 } |
| 1058 | 1307 |
| 1059 core.int buildCounterVerifyPasswordResponse = 0; | 1308 core.int buildCounterVerifyPasswordResponse = 0; |
| 1060 buildVerifyPasswordResponse() { | 1309 buildVerifyPasswordResponse() { |
| 1061 var o = new api.VerifyPasswordResponse(); | 1310 var o = new api.VerifyPasswordResponse(); |
| 1062 buildCounterVerifyPasswordResponse++; | 1311 buildCounterVerifyPasswordResponse++; |
| 1063 if (buildCounterVerifyPasswordResponse < 3) { | 1312 if (buildCounterVerifyPasswordResponse < 3) { |
| 1064 o.displayName = "foo"; | 1313 o.displayName = "foo"; |
| 1065 o.email = "foo"; | 1314 o.email = "foo"; |
| 1315 o.expiresIn = "foo"; |
| 1066 o.idToken = "foo"; | 1316 o.idToken = "foo"; |
| 1067 o.kind = "foo"; | 1317 o.kind = "foo"; |
| 1068 o.localId = "foo"; | 1318 o.localId = "foo"; |
| 1069 o.oauthAccessToken = "foo"; | 1319 o.oauthAccessToken = "foo"; |
| 1070 o.oauthAuthorizationCode = "foo"; | 1320 o.oauthAuthorizationCode = "foo"; |
| 1071 o.oauthExpireIn = 42; | 1321 o.oauthExpireIn = 42; |
| 1072 o.photoUrl = "foo"; | 1322 o.photoUrl = "foo"; |
| 1323 o.refreshToken = "foo"; |
| 1073 o.registered = true; | 1324 o.registered = true; |
| 1074 } | 1325 } |
| 1075 buildCounterVerifyPasswordResponse--; | 1326 buildCounterVerifyPasswordResponse--; |
| 1076 return o; | 1327 return o; |
| 1077 } | 1328 } |
| 1078 | 1329 |
| 1079 checkVerifyPasswordResponse(api.VerifyPasswordResponse o) { | 1330 checkVerifyPasswordResponse(api.VerifyPasswordResponse o) { |
| 1080 buildCounterVerifyPasswordResponse++; | 1331 buildCounterVerifyPasswordResponse++; |
| 1081 if (buildCounterVerifyPasswordResponse < 3) { | 1332 if (buildCounterVerifyPasswordResponse < 3) { |
| 1082 unittest.expect(o.displayName, unittest.equals('foo')); | 1333 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1083 unittest.expect(o.email, unittest.equals('foo')); | 1334 unittest.expect(o.email, unittest.equals('foo')); |
| 1335 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 1084 unittest.expect(o.idToken, unittest.equals('foo')); | 1336 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1085 unittest.expect(o.kind, unittest.equals('foo')); | 1337 unittest.expect(o.kind, unittest.equals('foo')); |
| 1086 unittest.expect(o.localId, unittest.equals('foo')); | 1338 unittest.expect(o.localId, unittest.equals('foo')); |
| 1087 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); | 1339 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); |
| 1088 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); | 1340 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); |
| 1089 unittest.expect(o.oauthExpireIn, unittest.equals(42)); | 1341 unittest.expect(o.oauthExpireIn, unittest.equals(42)); |
| 1090 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1342 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 1343 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 1091 unittest.expect(o.registered, unittest.isTrue); | 1344 unittest.expect(o.registered, unittest.isTrue); |
| 1092 } | 1345 } |
| 1093 buildCounterVerifyPasswordResponse--; | 1346 buildCounterVerifyPasswordResponse--; |
| 1094 } | 1347 } |
| 1095 | 1348 |
| 1096 | 1349 |
| 1097 main() { | 1350 main() { |
| 1098 unittest.group("obj-schema-CreateAuthUriResponse", () { | 1351 unittest.group("obj-schema-CreateAuthUriResponse", () { |
| 1099 unittest.test("to-json--from-json", () { | 1352 unittest.test("to-json--from-json", () { |
| 1100 var o = buildCreateAuthUriResponse(); | 1353 var o = buildCreateAuthUriResponse(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1115 | 1368 |
| 1116 unittest.group("obj-schema-DownloadAccountResponse", () { | 1369 unittest.group("obj-schema-DownloadAccountResponse", () { |
| 1117 unittest.test("to-json--from-json", () { | 1370 unittest.test("to-json--from-json", () { |
| 1118 var o = buildDownloadAccountResponse(); | 1371 var o = buildDownloadAccountResponse(); |
| 1119 var od = new api.DownloadAccountResponse.fromJson(o.toJson()); | 1372 var od = new api.DownloadAccountResponse.fromJson(o.toJson()); |
| 1120 checkDownloadAccountResponse(od); | 1373 checkDownloadAccountResponse(od); |
| 1121 }); | 1374 }); |
| 1122 }); | 1375 }); |
| 1123 | 1376 |
| 1124 | 1377 |
| 1378 unittest.group("obj-schema-EmailTemplate", () { |
| 1379 unittest.test("to-json--from-json", () { |
| 1380 var o = buildEmailTemplate(); |
| 1381 var od = new api.EmailTemplate.fromJson(o.toJson()); |
| 1382 checkEmailTemplate(od); |
| 1383 }); |
| 1384 }); |
| 1385 |
| 1386 |
| 1125 unittest.group("obj-schema-GetAccountInfoResponse", () { | 1387 unittest.group("obj-schema-GetAccountInfoResponse", () { |
| 1126 unittest.test("to-json--from-json", () { | 1388 unittest.test("to-json--from-json", () { |
| 1127 var o = buildGetAccountInfoResponse(); | 1389 var o = buildGetAccountInfoResponse(); |
| 1128 var od = new api.GetAccountInfoResponse.fromJson(o.toJson()); | 1390 var od = new api.GetAccountInfoResponse.fromJson(o.toJson()); |
| 1129 checkGetAccountInfoResponse(od); | 1391 checkGetAccountInfoResponse(od); |
| 1130 }); | 1392 }); |
| 1131 }); | 1393 }); |
| 1132 | 1394 |
| 1133 | 1395 |
| 1134 unittest.group("obj-schema-GetOobConfirmationCodeResponse", () { | 1396 unittest.group("obj-schema-GetOobConfirmationCodeResponse", () { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 | 1476 |
| 1215 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetAccountInfoRequest",
() { | 1477 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetAccountInfoRequest",
() { |
| 1216 unittest.test("to-json--from-json", () { | 1478 unittest.test("to-json--from-json", () { |
| 1217 var o = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); | 1479 var o = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); |
| 1218 var od = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson
(o.toJson()); | 1480 var od = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson
(o.toJson()); |
| 1219 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(od); | 1481 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(od); |
| 1220 }); | 1482 }); |
| 1221 }); | 1483 }); |
| 1222 | 1484 |
| 1223 | 1485 |
| 1486 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetProjectConfigRequest"
, () { |
| 1487 unittest.test("to-json--from-json", () { |
| 1488 var o = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(); |
| 1489 var od = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJs
on(o.toJson()); |
| 1490 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(od); |
| 1491 }); |
| 1492 }); |
| 1493 |
| 1494 |
| 1495 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetProjectConfigResponse
", () { |
| 1496 unittest.test("to-json--from-json", () { |
| 1497 var o = buildIdentitytoolkitRelyingpartySetProjectConfigResponse(); |
| 1498 var od = new api.IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJ
son(o.toJson()); |
| 1499 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(od); |
| 1500 }); |
| 1501 }); |
| 1502 |
| 1503 |
| 1224 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserRequest", ()
{ | 1504 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserRequest", ()
{ |
| 1225 unittest.test("to-json--from-json", () { | 1505 unittest.test("to-json--from-json", () { |
| 1226 var o = buildIdentitytoolkitRelyingpartySignOutUserRequest(); | 1506 var o = buildIdentitytoolkitRelyingpartySignOutUserRequest(); |
| 1227 var od = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(o.
toJson()); | 1507 var od = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(o.
toJson()); |
| 1228 checkIdentitytoolkitRelyingpartySignOutUserRequest(od); | 1508 checkIdentitytoolkitRelyingpartySignOutUserRequest(od); |
| 1229 }); | 1509 }); |
| 1230 }); | 1510 }); |
| 1231 | 1511 |
| 1232 | 1512 |
| 1233 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserResponse", ()
{ | 1513 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserResponse", ()
{ |
| 1234 unittest.test("to-json--from-json", () { | 1514 unittest.test("to-json--from-json", () { |
| 1235 var o = buildIdentitytoolkitRelyingpartySignOutUserResponse(); | 1515 var o = buildIdentitytoolkitRelyingpartySignOutUserResponse(); |
| 1236 var od = new api.IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(o
.toJson()); | 1516 var od = new api.IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(o
.toJson()); |
| 1237 checkIdentitytoolkitRelyingpartySignOutUserResponse(od); | 1517 checkIdentitytoolkitRelyingpartySignOutUserResponse(od); |
| 1238 }); | 1518 }); |
| 1239 }); | 1519 }); |
| 1240 | 1520 |
| 1241 | 1521 |
| 1522 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignupNewUserRequest", (
) { |
| 1523 unittest.test("to-json--from-json", () { |
| 1524 var o = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); |
| 1525 var od = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(
o.toJson()); |
| 1526 checkIdentitytoolkitRelyingpartySignupNewUserRequest(od); |
| 1527 }); |
| 1528 }); |
| 1529 |
| 1530 |
| 1242 unittest.group("obj-schema-IdentitytoolkitRelyingpartyUploadAccountRequest", (
) { | 1531 unittest.group("obj-schema-IdentitytoolkitRelyingpartyUploadAccountRequest", (
) { |
| 1243 unittest.test("to-json--from-json", () { | 1532 unittest.test("to-json--from-json", () { |
| 1244 var o = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); | 1533 var o = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); |
| 1245 var od = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(
o.toJson()); | 1534 var od = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(
o.toJson()); |
| 1246 checkIdentitytoolkitRelyingpartyUploadAccountRequest(od); | 1535 checkIdentitytoolkitRelyingpartyUploadAccountRequest(od); |
| 1247 }); | 1536 }); |
| 1248 }); | 1537 }); |
| 1249 | 1538 |
| 1250 | 1539 |
| 1251 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyAssertionRequest",
() { | 1540 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyAssertionRequest",
() { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 | 1602 |
| 1314 unittest.group("obj-schema-SetAccountInfoResponse", () { | 1603 unittest.group("obj-schema-SetAccountInfoResponse", () { |
| 1315 unittest.test("to-json--from-json", () { | 1604 unittest.test("to-json--from-json", () { |
| 1316 var o = buildSetAccountInfoResponse(); | 1605 var o = buildSetAccountInfoResponse(); |
| 1317 var od = new api.SetAccountInfoResponse.fromJson(o.toJson()); | 1606 var od = new api.SetAccountInfoResponse.fromJson(o.toJson()); |
| 1318 checkSetAccountInfoResponse(od); | 1607 checkSetAccountInfoResponse(od); |
| 1319 }); | 1608 }); |
| 1320 }); | 1609 }); |
| 1321 | 1610 |
| 1322 | 1611 |
| 1612 unittest.group("obj-schema-SignupNewUserResponse", () { |
| 1613 unittest.test("to-json--from-json", () { |
| 1614 var o = buildSignupNewUserResponse(); |
| 1615 var od = new api.SignupNewUserResponse.fromJson(o.toJson()); |
| 1616 checkSignupNewUserResponse(od); |
| 1617 }); |
| 1618 }); |
| 1619 |
| 1620 |
| 1323 unittest.group("obj-schema-UploadAccountResponseError", () { | 1621 unittest.group("obj-schema-UploadAccountResponseError", () { |
| 1324 unittest.test("to-json--from-json", () { | 1622 unittest.test("to-json--from-json", () { |
| 1325 var o = buildUploadAccountResponseError(); | 1623 var o = buildUploadAccountResponseError(); |
| 1326 var od = new api.UploadAccountResponseError.fromJson(o.toJson()); | 1624 var od = new api.UploadAccountResponseError.fromJson(o.toJson()); |
| 1327 checkUploadAccountResponseError(od); | 1625 checkUploadAccountResponseError(od); |
| 1328 }); | 1626 }); |
| 1329 }); | 1627 }); |
| 1330 | 1628 |
| 1331 | 1629 |
| 1332 unittest.group("obj-schema-UploadAccountResponse", () { | 1630 unittest.group("obj-schema-UploadAccountResponse", () { |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1626 }), true); | 1924 }), true); |
| 1627 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.Ge
tOobConfirmationCodeResponse response) { | 1925 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.Ge
tOobConfirmationCodeResponse response) { |
| 1628 checkGetOobConfirmationCodeResponse(response); | 1926 checkGetOobConfirmationCodeResponse(response); |
| 1629 }))); | 1927 }))); |
| 1630 }); | 1928 }); |
| 1631 | 1929 |
| 1632 unittest.test("method--getProjectConfig", () { | 1930 unittest.test("method--getProjectConfig", () { |
| 1633 | 1931 |
| 1634 var mock = new HttpServerMock(); | 1932 var mock = new HttpServerMock(); |
| 1635 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1933 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 1934 var arg_delegatedProjectNumber = "foo"; |
| 1935 var arg_projectNumber = "foo"; |
| 1636 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1936 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1637 var path = (req.url).path; | 1937 var path = (req.url).path; |
| 1638 var pathOffset = 0; | 1938 var pathOffset = 0; |
| 1639 var index; | 1939 var index; |
| 1640 var subPart; | 1940 var subPart; |
| 1641 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1941 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1642 pathOffset += 1; | 1942 pathOffset += 1; |
| 1643 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 1943 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); |
| 1644 pathOffset += 32; | 1944 pathOffset += 32; |
| 1645 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("getProjectConfig")); | 1945 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("getProjectConfig")); |
| 1646 pathOffset += 16; | 1946 pathOffset += 16; |
| 1647 | 1947 |
| 1648 var query = (req.url).query; | 1948 var query = (req.url).query; |
| 1649 var queryOffset = 0; | 1949 var queryOffset = 0; |
| 1650 var queryMap = {}; | 1950 var queryMap = {}; |
| 1651 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1951 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1652 parseBool(n) { | 1952 parseBool(n) { |
| 1653 if (n == "true") return true; | 1953 if (n == "true") return true; |
| 1654 if (n == "false") return false; | 1954 if (n == "false") return false; |
| 1655 if (n == null) return null; | 1955 if (n == null) return null; |
| 1656 throw new core.ArgumentError("Invalid boolean: $n"); | 1956 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1657 } | 1957 } |
| 1658 if (query.length > 0) { | 1958 if (query.length > 0) { |
| 1659 for (var part in query.split("&")) { | 1959 for (var part in query.split("&")) { |
| 1660 var keyvalue = part.split("="); | 1960 var keyvalue = part.split("="); |
| 1661 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1961 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1662 } | 1962 } |
| 1663 } | 1963 } |
| 1964 unittest.expect(queryMap["delegatedProjectNumber"].first, unittest.equal
s(arg_delegatedProjectNumber)); |
| 1965 unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_pro
jectNumber)); |
| 1664 | 1966 |
| 1665 | 1967 |
| 1666 var h = { | 1968 var h = { |
| 1667 "content-type" : "application/json; charset=utf-8", | 1969 "content-type" : "application/json; charset=utf-8", |
| 1668 }; | 1970 }; |
| 1669 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjec
tConfigResponse()); | 1971 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjec
tConfigResponse()); |
| 1670 return new async.Future.value(stringResponse(200, h, resp)); | 1972 return new async.Future.value(stringResponse(200, h, resp)); |
| 1671 }), true); | 1973 }), true); |
| 1672 res.getProjectConfig().then(unittest.expectAsync(((api.IdentitytoolkitRely
ingpartyGetProjectConfigResponse response) { | 1974 res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, p
rojectNumber: arg_projectNumber).then(unittest.expectAsync(((api.Identitytoolkit
RelyingpartyGetProjectConfigResponse response) { |
| 1673 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); | 1975 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); |
| 1674 }))); | 1976 }))); |
| 1675 }); | 1977 }); |
| 1676 | 1978 |
| 1677 unittest.test("method--getPublicKeys", () { | 1979 unittest.test("method--getPublicKeys", () { |
| 1678 | 1980 |
| 1679 var mock = new HttpServerMock(); | 1981 var mock = new HttpServerMock(); |
| 1680 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1982 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 1681 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1983 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1682 var path = (req.url).path; | 1984 var path = (req.url).path; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 "content-type" : "application/json; charset=utf-8", | 2157 "content-type" : "application/json; charset=utf-8", |
| 1856 }; | 2158 }; |
| 1857 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); | 2159 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); |
| 1858 return new async.Future.value(stringResponse(200, h, resp)); | 2160 return new async.Future.value(stringResponse(200, h, resp)); |
| 1859 }), true); | 2161 }), true); |
| 1860 res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccount
InfoResponse response) { | 2162 res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccount
InfoResponse response) { |
| 1861 checkSetAccountInfoResponse(response); | 2163 checkSetAccountInfoResponse(response); |
| 1862 }))); | 2164 }))); |
| 1863 }); | 2165 }); |
| 1864 | 2166 |
| 2167 unittest.test("method--setProjectConfig", () { |
| 2168 |
| 2169 var mock = new HttpServerMock(); |
| 2170 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 2171 var arg_request = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(
); |
| 2172 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2173 var obj = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fro
mJson(json); |
| 2174 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj); |
| 2175 |
| 2176 var path = (req.url).path; |
| 2177 var pathOffset = 0; |
| 2178 var index; |
| 2179 var subPart; |
| 2180 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2181 pathOffset += 1; |
| 2182 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); |
| 2183 pathOffset += 32; |
| 2184 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("setProjectConfig")); |
| 2185 pathOffset += 16; |
| 2186 |
| 2187 var query = (req.url).query; |
| 2188 var queryOffset = 0; |
| 2189 var queryMap = {}; |
| 2190 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2191 parseBool(n) { |
| 2192 if (n == "true") return true; |
| 2193 if (n == "false") return false; |
| 2194 if (n == null) return null; |
| 2195 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2196 } |
| 2197 if (query.length > 0) { |
| 2198 for (var part in query.split("&")) { |
| 2199 var keyvalue = part.split("="); |
| 2200 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2201 } |
| 2202 } |
| 2203 |
| 2204 |
| 2205 var h = { |
| 2206 "content-type" : "application/json; charset=utf-8", |
| 2207 }; |
| 2208 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySetProjec
tConfigResponse()); |
| 2209 return new async.Future.value(stringResponse(200, h, resp)); |
| 2210 }), true); |
| 2211 res.setProjectConfig(arg_request).then(unittest.expectAsync(((api.Identity
toolkitRelyingpartySetProjectConfigResponse response) { |
| 2212 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response); |
| 2213 }))); |
| 2214 }); |
| 2215 |
| 1865 unittest.test("method--signOutUser", () { | 2216 unittest.test("method--signOutUser", () { |
| 1866 | 2217 |
| 1867 var mock = new HttpServerMock(); | 2218 var mock = new HttpServerMock(); |
| 1868 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2219 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 1869 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); | 2220 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); |
| 1870 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1871 var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson
(json); | 2222 var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson
(json); |
| 1872 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); | 2223 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); |
| 1873 | 2224 |
| 1874 var path = (req.url).path; | 2225 var path = (req.url).path; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1904 "content-type" : "application/json; charset=utf-8", | 2255 "content-type" : "application/json; charset=utf-8", |
| 1905 }; | 2256 }; |
| 1906 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUs
erResponse()); | 2257 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUs
erResponse()); |
| 1907 return new async.Future.value(stringResponse(200, h, resp)); | 2258 return new async.Future.value(stringResponse(200, h, resp)); |
| 1908 }), true); | 2259 }), true); |
| 1909 res.signOutUser(arg_request).then(unittest.expectAsync(((api.Identitytoolk
itRelyingpartySignOutUserResponse response) { | 2260 res.signOutUser(arg_request).then(unittest.expectAsync(((api.Identitytoolk
itRelyingpartySignOutUserResponse response) { |
| 1910 checkIdentitytoolkitRelyingpartySignOutUserResponse(response); | 2261 checkIdentitytoolkitRelyingpartySignOutUserResponse(response); |
| 1911 }))); | 2262 }))); |
| 1912 }); | 2263 }); |
| 1913 | 2264 |
| 2265 unittest.test("method--signupNewUser", () { |
| 2266 |
| 2267 var mock = new HttpServerMock(); |
| 2268 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 2269 var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); |
| 2270 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2271 var obj = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJs
on(json); |
| 2272 checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj); |
| 2273 |
| 2274 var path = (req.url).path; |
| 2275 var pathOffset = 0; |
| 2276 var index; |
| 2277 var subPart; |
| 2278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2279 pathOffset += 1; |
| 2280 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); |
| 2281 pathOffset += 32; |
| 2282 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("signupNewUser")); |
| 2283 pathOffset += 13; |
| 2284 |
| 2285 var query = (req.url).query; |
| 2286 var queryOffset = 0; |
| 2287 var queryMap = {}; |
| 2288 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2289 parseBool(n) { |
| 2290 if (n == "true") return true; |
| 2291 if (n == "false") return false; |
| 2292 if (n == null) return null; |
| 2293 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2294 } |
| 2295 if (query.length > 0) { |
| 2296 for (var part in query.split("&")) { |
| 2297 var keyvalue = part.split("="); |
| 2298 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2299 } |
| 2300 } |
| 2301 |
| 2302 |
| 2303 var h = { |
| 2304 "content-type" : "application/json; charset=utf-8", |
| 2305 }; |
| 2306 var resp = convert.JSON.encode(buildSignupNewUserResponse()); |
| 2307 return new async.Future.value(stringResponse(200, h, resp)); |
| 2308 }), true); |
| 2309 res.signupNewUser(arg_request).then(unittest.expectAsync(((api.SignupNewUs
erResponse response) { |
| 2310 checkSignupNewUserResponse(response); |
| 2311 }))); |
| 2312 }); |
| 2313 |
| 1914 unittest.test("method--uploadAccount", () { | 2314 unittest.test("method--uploadAccount", () { |
| 1915 | 2315 |
| 1916 var mock = new HttpServerMock(); | 2316 var mock = new HttpServerMock(); |
| 1917 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2317 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
| 1918 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); | 2318 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); |
| 1919 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2319 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1920 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs
on(json); | 2320 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs
on(json); |
| 1921 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); | 2321 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); |
| 1922 | 2322 |
| 1923 var path = (req.url).path; | 2323 var path = (req.url).path; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2105 res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPass
wordResponse response) { | 2505 res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPass
wordResponse response) { |
| 2106 checkVerifyPasswordResponse(response); | 2506 checkVerifyPasswordResponse(response); |
| 2107 }))); | 2507 }))); |
| 2108 }); | 2508 }); |
| 2109 | 2509 |
| 2110 }); | 2510 }); |
| 2111 | 2511 |
| 2112 | 2512 |
| 2113 } | 2513 } |
| 2114 | 2514 |
| OLD | NEW |