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; |
11 import 'package:googleapis/common/common.dart' as common; | |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
13 import '../common/common_internal_test.dart' as common_test; | |
14 | 11 |
15 import 'package:googleapis/identitytoolkit/v3.dart' as api; | 12 import 'package:googleapis/identitytoolkit/v3.dart' as api; |
16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
18 | 53 |
19 core.int buildCounterCreateAuthUriResponse = 0; | 54 core.int buildCounterCreateAuthUriResponse = 0; |
20 buildCreateAuthUriResponse() { | 55 buildCreateAuthUriResponse() { |
21 var o = new api.CreateAuthUriResponse(); | 56 var o = new api.CreateAuthUriResponse(); |
22 buildCounterCreateAuthUriResponse++; | 57 buildCounterCreateAuthUriResponse++; |
23 if (buildCounterCreateAuthUriResponse < 3) { | 58 if (buildCounterCreateAuthUriResponse < 3) { |
24 o.authUri = "foo"; | 59 o.authUri = "foo"; |
25 o.captchaRequired = true; | 60 o.captchaRequired = true; |
26 o.forExistingProvider = true; | 61 o.forExistingProvider = true; |
27 o.kind = "foo"; | 62 o.kind = "foo"; |
(...skipping 29 matching lines...) Expand all Loading... |
57 } | 92 } |
58 | 93 |
59 checkDeleteAccountResponse(api.DeleteAccountResponse o) { | 94 checkDeleteAccountResponse(api.DeleteAccountResponse o) { |
60 buildCounterDeleteAccountResponse++; | 95 buildCounterDeleteAccountResponse++; |
61 if (buildCounterDeleteAccountResponse < 3) { | 96 if (buildCounterDeleteAccountResponse < 3) { |
62 unittest.expect(o.kind, unittest.equals('foo')); | 97 unittest.expect(o.kind, unittest.equals('foo')); |
63 } | 98 } |
64 buildCounterDeleteAccountResponse--; | 99 buildCounterDeleteAccountResponse--; |
65 } | 100 } |
66 | 101 |
67 buildUnnamed1333() { | 102 buildUnnamed1152() { |
68 var o = new core.List<api.UserInfo>(); | 103 var o = new core.List<api.UserInfo>(); |
69 o.add(buildUserInfo()); | 104 o.add(buildUserInfo()); |
70 o.add(buildUserInfo()); | 105 o.add(buildUserInfo()); |
71 return o; | 106 return o; |
72 } | 107 } |
73 | 108 |
74 checkUnnamed1333(core.List<api.UserInfo> o) { | 109 checkUnnamed1152(core.List<api.UserInfo> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 110 unittest.expect(o, unittest.hasLength(2)); |
76 checkUserInfo(o[0]); | 111 checkUserInfo(o[0]); |
77 checkUserInfo(o[1]); | 112 checkUserInfo(o[1]); |
78 } | 113 } |
79 | 114 |
80 core.int buildCounterDownloadAccountResponse = 0; | 115 core.int buildCounterDownloadAccountResponse = 0; |
81 buildDownloadAccountResponse() { | 116 buildDownloadAccountResponse() { |
82 var o = new api.DownloadAccountResponse(); | 117 var o = new api.DownloadAccountResponse(); |
83 buildCounterDownloadAccountResponse++; | 118 buildCounterDownloadAccountResponse++; |
84 if (buildCounterDownloadAccountResponse < 3) { | 119 if (buildCounterDownloadAccountResponse < 3) { |
85 o.kind = "foo"; | 120 o.kind = "foo"; |
86 o.nextPageToken = "foo"; | 121 o.nextPageToken = "foo"; |
87 o.users = buildUnnamed1333(); | 122 o.users = buildUnnamed1152(); |
88 } | 123 } |
89 buildCounterDownloadAccountResponse--; | 124 buildCounterDownloadAccountResponse--; |
90 return o; | 125 return o; |
91 } | 126 } |
92 | 127 |
93 checkDownloadAccountResponse(api.DownloadAccountResponse o) { | 128 checkDownloadAccountResponse(api.DownloadAccountResponse o) { |
94 buildCounterDownloadAccountResponse++; | 129 buildCounterDownloadAccountResponse++; |
95 if (buildCounterDownloadAccountResponse < 3) { | 130 if (buildCounterDownloadAccountResponse < 3) { |
96 unittest.expect(o.kind, unittest.equals('foo')); | 131 unittest.expect(o.kind, unittest.equals('foo')); |
97 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 132 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
98 checkUnnamed1333(o.users); | 133 checkUnnamed1152(o.users); |
99 } | 134 } |
100 buildCounterDownloadAccountResponse--; | 135 buildCounterDownloadAccountResponse--; |
101 } | 136 } |
102 | 137 |
103 buildUnnamed1334() { | 138 buildUnnamed1153() { |
104 var o = new core.List<api.UserInfo>(); | 139 var o = new core.List<api.UserInfo>(); |
105 o.add(buildUserInfo()); | 140 o.add(buildUserInfo()); |
106 o.add(buildUserInfo()); | 141 o.add(buildUserInfo()); |
107 return o; | 142 return o; |
108 } | 143 } |
109 | 144 |
110 checkUnnamed1334(core.List<api.UserInfo> o) { | 145 checkUnnamed1153(core.List<api.UserInfo> o) { |
111 unittest.expect(o, unittest.hasLength(2)); | 146 unittest.expect(o, unittest.hasLength(2)); |
112 checkUserInfo(o[0]); | 147 checkUserInfo(o[0]); |
113 checkUserInfo(o[1]); | 148 checkUserInfo(o[1]); |
114 } | 149 } |
115 | 150 |
116 core.int buildCounterGetAccountInfoResponse = 0; | 151 core.int buildCounterGetAccountInfoResponse = 0; |
117 buildGetAccountInfoResponse() { | 152 buildGetAccountInfoResponse() { |
118 var o = new api.GetAccountInfoResponse(); | 153 var o = new api.GetAccountInfoResponse(); |
119 buildCounterGetAccountInfoResponse++; | 154 buildCounterGetAccountInfoResponse++; |
120 if (buildCounterGetAccountInfoResponse < 3) { | 155 if (buildCounterGetAccountInfoResponse < 3) { |
121 o.kind = "foo"; | 156 o.kind = "foo"; |
122 o.users = buildUnnamed1334(); | 157 o.users = buildUnnamed1153(); |
123 } | 158 } |
124 buildCounterGetAccountInfoResponse--; | 159 buildCounterGetAccountInfoResponse--; |
125 return o; | 160 return o; |
126 } | 161 } |
127 | 162 |
128 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { | 163 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { |
129 buildCounterGetAccountInfoResponse++; | 164 buildCounterGetAccountInfoResponse++; |
130 if (buildCounterGetAccountInfoResponse < 3) { | 165 if (buildCounterGetAccountInfoResponse < 3) { |
131 unittest.expect(o.kind, unittest.equals('foo')); | 166 unittest.expect(o.kind, unittest.equals('foo')); |
132 checkUnnamed1334(o.users); | 167 checkUnnamed1153(o.users); |
133 } | 168 } |
134 buildCounterGetAccountInfoResponse--; | 169 buildCounterGetAccountInfoResponse--; |
135 } | 170 } |
136 | 171 |
137 core.int buildCounterGetOobConfirmationCodeResponse = 0; | 172 core.int buildCounterGetOobConfirmationCodeResponse = 0; |
138 buildGetOobConfirmationCodeResponse() { | 173 buildGetOobConfirmationCodeResponse() { |
139 var o = new api.GetOobConfirmationCodeResponse(); | 174 var o = new api.GetOobConfirmationCodeResponse(); |
140 buildCounterGetOobConfirmationCodeResponse++; | 175 buildCounterGetOobConfirmationCodeResponse++; |
141 if (buildCounterGetOobConfirmationCodeResponse < 3) { | 176 if (buildCounterGetOobConfirmationCodeResponse < 3) { |
142 o.kind = "foo"; | 177 o.kind = "foo"; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 256 |
222 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(api.IdentitytoolkitRelyin
gpartyDownloadAccountRequest o) { | 257 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(api.IdentitytoolkitRelyin
gpartyDownloadAccountRequest o) { |
223 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; | 258 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; |
224 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { | 259 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { |
225 unittest.expect(o.maxResults, unittest.equals(42)); | 260 unittest.expect(o.maxResults, unittest.equals(42)); |
226 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 261 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
227 } | 262 } |
228 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; | 263 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; |
229 } | 264 } |
230 | 265 |
231 buildUnnamed1335() { | 266 buildUnnamed1154() { |
232 var o = new core.List<core.String>(); | 267 var o = new core.List<core.String>(); |
233 o.add("foo"); | 268 o.add("foo"); |
234 o.add("foo"); | 269 o.add("foo"); |
235 return o; | 270 return o; |
236 } | 271 } |
237 | 272 |
238 checkUnnamed1335(core.List<core.String> o) { | 273 checkUnnamed1154(core.List<core.String> o) { |
239 unittest.expect(o, unittest.hasLength(2)); | 274 unittest.expect(o, unittest.hasLength(2)); |
240 unittest.expect(o[0], unittest.equals('foo')); | 275 unittest.expect(o[0], unittest.equals('foo')); |
241 unittest.expect(o[1], unittest.equals('foo')); | 276 unittest.expect(o[1], unittest.equals('foo')); |
242 } | 277 } |
243 | 278 |
244 buildUnnamed1336() { | 279 buildUnnamed1155() { |
245 var o = new core.List<core.String>(); | 280 var o = new core.List<core.String>(); |
246 o.add("foo"); | 281 o.add("foo"); |
247 o.add("foo"); | 282 o.add("foo"); |
248 return o; | 283 return o; |
249 } | 284 } |
250 | 285 |
251 checkUnnamed1336(core.List<core.String> o) { | 286 checkUnnamed1155(core.List<core.String> o) { |
252 unittest.expect(o, unittest.hasLength(2)); | 287 unittest.expect(o, unittest.hasLength(2)); |
253 unittest.expect(o[0], unittest.equals('foo')); | 288 unittest.expect(o[0], unittest.equals('foo')); |
254 unittest.expect(o[1], unittest.equals('foo')); | 289 unittest.expect(o[1], unittest.equals('foo')); |
255 } | 290 } |
256 | 291 |
257 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; | 292 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; |
258 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { | 293 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { |
259 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 294 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
260 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 295 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
261 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 296 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
262 o.email = buildUnnamed1335(); | 297 o.email = buildUnnamed1154(); |
263 o.idToken = "foo"; | 298 o.idToken = "foo"; |
264 o.localId = buildUnnamed1336(); | 299 o.localId = buildUnnamed1155(); |
265 } | 300 } |
266 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 301 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
267 return o; | 302 return o; |
268 } | 303 } |
269 | 304 |
270 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying
partyGetAccountInfoRequest o) { | 305 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying
partyGetAccountInfoRequest o) { |
271 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 306 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
272 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 307 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
273 checkUnnamed1335(o.email); | 308 checkUnnamed1154(o.email); |
274 unittest.expect(o.idToken, unittest.equals('foo')); | 309 unittest.expect(o.idToken, unittest.equals('foo')); |
275 checkUnnamed1336(o.localId); | 310 checkUnnamed1155(o.localId); |
276 } | 311 } |
277 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 312 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
278 } | 313 } |
279 | 314 |
280 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { | 315 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { |
281 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); | 316 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); |
282 o["a"] = "foo"; | 317 o["a"] = "foo"; |
283 o["b"] = "foo"; | 318 o["b"] = "foo"; |
284 return o; | 319 return o; |
285 } | 320 } |
(...skipping 22 matching lines...) Expand all Loading... |
308 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; | 343 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; |
309 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { | 344 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { |
310 unittest.expect(o.email, unittest.equals('foo')); | 345 unittest.expect(o.email, unittest.equals('foo')); |
311 unittest.expect(o.newPassword, unittest.equals('foo')); | 346 unittest.expect(o.newPassword, unittest.equals('foo')); |
312 unittest.expect(o.oldPassword, unittest.equals('foo')); | 347 unittest.expect(o.oldPassword, unittest.equals('foo')); |
313 unittest.expect(o.oobCode, unittest.equals('foo')); | 348 unittest.expect(o.oobCode, unittest.equals('foo')); |
314 } | 349 } |
315 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; | 350 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; |
316 } | 351 } |
317 | 352 |
318 buildUnnamed1337() { | 353 buildUnnamed1156() { |
319 var o = new core.List<core.String>(); | 354 var o = new core.List<core.String>(); |
320 o.add("foo"); | 355 o.add("foo"); |
321 o.add("foo"); | 356 o.add("foo"); |
322 return o; | 357 return o; |
323 } | 358 } |
324 | 359 |
325 checkUnnamed1337(core.List<core.String> o) { | 360 checkUnnamed1156(core.List<core.String> o) { |
326 unittest.expect(o, unittest.hasLength(2)); | 361 unittest.expect(o, unittest.hasLength(2)); |
327 unittest.expect(o[0], unittest.equals('foo')); | 362 unittest.expect(o[0], unittest.equals('foo')); |
328 unittest.expect(o[1], unittest.equals('foo')); | 363 unittest.expect(o[1], unittest.equals('foo')); |
329 } | 364 } |
330 | 365 |
331 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; | 366 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; |
332 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { | 367 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { |
333 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); | 368 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); |
334 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 369 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
335 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 370 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
336 o.captchaChallenge = "foo"; | 371 o.captchaChallenge = "foo"; |
337 o.captchaResponse = "foo"; | 372 o.captchaResponse = "foo"; |
338 o.displayName = "foo"; | 373 o.displayName = "foo"; |
339 o.email = "foo"; | 374 o.email = "foo"; |
340 o.emailVerified = true; | 375 o.emailVerified = true; |
341 o.idToken = "foo"; | 376 o.idToken = "foo"; |
342 o.localId = "foo"; | 377 o.localId = "foo"; |
343 o.oobCode = "foo"; | 378 o.oobCode = "foo"; |
344 o.password = "foo"; | 379 o.password = "foo"; |
345 o.provider = buildUnnamed1337(); | 380 o.provider = buildUnnamed1156(); |
346 o.upgradeToFederatedLogin = true; | 381 o.upgradeToFederatedLogin = true; |
347 } | 382 } |
348 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 383 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
349 return o; | 384 return o; |
350 } | 385 } |
351 | 386 |
352 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying
partySetAccountInfoRequest o) { | 387 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying
partySetAccountInfoRequest o) { |
353 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 388 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
354 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 389 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
355 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 390 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
356 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 391 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
357 unittest.expect(o.displayName, unittest.equals('foo')); | 392 unittest.expect(o.displayName, unittest.equals('foo')); |
358 unittest.expect(o.email, unittest.equals('foo')); | 393 unittest.expect(o.email, unittest.equals('foo')); |
359 unittest.expect(o.emailVerified, unittest.isTrue); | 394 unittest.expect(o.emailVerified, unittest.isTrue); |
360 unittest.expect(o.idToken, unittest.equals('foo')); | 395 unittest.expect(o.idToken, unittest.equals('foo')); |
361 unittest.expect(o.localId, unittest.equals('foo')); | 396 unittest.expect(o.localId, unittest.equals('foo')); |
362 unittest.expect(o.oobCode, unittest.equals('foo')); | 397 unittest.expect(o.oobCode, unittest.equals('foo')); |
363 unittest.expect(o.password, unittest.equals('foo')); | 398 unittest.expect(o.password, unittest.equals('foo')); |
364 checkUnnamed1337(o.provider); | 399 checkUnnamed1156(o.provider); |
365 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); | 400 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); |
366 } | 401 } |
367 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 402 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
368 } | 403 } |
369 | 404 |
370 buildUnnamed1338() { | 405 buildUnnamed1157() { |
371 var o = new core.List<api.UserInfo>(); | 406 var o = new core.List<api.UserInfo>(); |
372 o.add(buildUserInfo()); | 407 o.add(buildUserInfo()); |
373 o.add(buildUserInfo()); | 408 o.add(buildUserInfo()); |
374 return o; | 409 return o; |
375 } | 410 } |
376 | 411 |
377 checkUnnamed1338(core.List<api.UserInfo> o) { | 412 checkUnnamed1157(core.List<api.UserInfo> o) { |
378 unittest.expect(o, unittest.hasLength(2)); | 413 unittest.expect(o, unittest.hasLength(2)); |
379 checkUserInfo(o[0]); | 414 checkUserInfo(o[0]); |
380 checkUserInfo(o[1]); | 415 checkUserInfo(o[1]); |
381 } | 416 } |
382 | 417 |
383 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; | 418 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; |
384 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { | 419 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { |
385 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); | 420 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); |
386 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 421 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
387 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 422 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
388 o.hashAlgorithm = "foo"; | 423 o.hashAlgorithm = "foo"; |
389 o.memoryCost = 42; | 424 o.memoryCost = 42; |
390 o.rounds = 42; | 425 o.rounds = 42; |
391 o.saltSeparator = "foo"; | 426 o.saltSeparator = "foo"; |
392 o.signerKey = "foo"; | 427 o.signerKey = "foo"; |
393 o.users = buildUnnamed1338(); | 428 o.users = buildUnnamed1157(); |
394 } | 429 } |
395 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 430 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
396 return o; | 431 return o; |
397 } | 432 } |
398 | 433 |
399 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp
artyUploadAccountRequest o) { | 434 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp
artyUploadAccountRequest o) { |
400 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 435 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
401 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 436 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
402 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); | 437 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); |
403 unittest.expect(o.memoryCost, unittest.equals(42)); | 438 unittest.expect(o.memoryCost, unittest.equals(42)); |
404 unittest.expect(o.rounds, unittest.equals(42)); | 439 unittest.expect(o.rounds, unittest.equals(42)); |
405 unittest.expect(o.saltSeparator, unittest.equals('foo')); | 440 unittest.expect(o.saltSeparator, unittest.equals('foo')); |
406 unittest.expect(o.signerKey, unittest.equals('foo')); | 441 unittest.expect(o.signerKey, unittest.equals('foo')); |
407 checkUnnamed1338(o.users); | 442 checkUnnamed1157(o.users); |
408 } | 443 } |
409 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 444 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
410 } | 445 } |
411 | 446 |
412 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; | 447 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; |
413 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { | 448 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { |
414 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); | 449 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
415 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; | 450 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; |
416 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { | 451 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { |
417 o.pendingIdToken = "foo"; | 452 o.pendingIdToken = "foo"; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 checkSetAccountInfoResponseProviderUserInfo(api.SetAccountInfoResponseProviderUs
erInfo o) { | 564 checkSetAccountInfoResponseProviderUserInfo(api.SetAccountInfoResponseProviderUs
erInfo o) { |
530 buildCounterSetAccountInfoResponseProviderUserInfo++; | 565 buildCounterSetAccountInfoResponseProviderUserInfo++; |
531 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { | 566 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { |
532 unittest.expect(o.displayName, unittest.equals('foo')); | 567 unittest.expect(o.displayName, unittest.equals('foo')); |
533 unittest.expect(o.photoUrl, unittest.equals('foo')); | 568 unittest.expect(o.photoUrl, unittest.equals('foo')); |
534 unittest.expect(o.providerId, unittest.equals('foo')); | 569 unittest.expect(o.providerId, unittest.equals('foo')); |
535 } | 570 } |
536 buildCounterSetAccountInfoResponseProviderUserInfo--; | 571 buildCounterSetAccountInfoResponseProviderUserInfo--; |
537 } | 572 } |
538 | 573 |
539 buildUnnamed1339() { | 574 buildUnnamed1158() { |
540 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); | 575 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); |
541 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 576 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
542 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 577 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
543 return o; | 578 return o; |
544 } | 579 } |
545 | 580 |
546 checkUnnamed1339(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { | 581 checkUnnamed1158(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { |
547 unittest.expect(o, unittest.hasLength(2)); | 582 unittest.expect(o, unittest.hasLength(2)); |
548 checkSetAccountInfoResponseProviderUserInfo(o[0]); | 583 checkSetAccountInfoResponseProviderUserInfo(o[0]); |
549 checkSetAccountInfoResponseProviderUserInfo(o[1]); | 584 checkSetAccountInfoResponseProviderUserInfo(o[1]); |
550 } | 585 } |
551 | 586 |
552 core.int buildCounterSetAccountInfoResponse = 0; | 587 core.int buildCounterSetAccountInfoResponse = 0; |
553 buildSetAccountInfoResponse() { | 588 buildSetAccountInfoResponse() { |
554 var o = new api.SetAccountInfoResponse(); | 589 var o = new api.SetAccountInfoResponse(); |
555 buildCounterSetAccountInfoResponse++; | 590 buildCounterSetAccountInfoResponse++; |
556 if (buildCounterSetAccountInfoResponse < 3) { | 591 if (buildCounterSetAccountInfoResponse < 3) { |
557 o.displayName = "foo"; | 592 o.displayName = "foo"; |
558 o.email = "foo"; | 593 o.email = "foo"; |
559 o.idToken = "foo"; | 594 o.idToken = "foo"; |
560 o.kind = "foo"; | 595 o.kind = "foo"; |
561 o.providerUserInfo = buildUnnamed1339(); | 596 o.providerUserInfo = buildUnnamed1158(); |
562 } | 597 } |
563 buildCounterSetAccountInfoResponse--; | 598 buildCounterSetAccountInfoResponse--; |
564 return o; | 599 return o; |
565 } | 600 } |
566 | 601 |
567 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { | 602 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { |
568 buildCounterSetAccountInfoResponse++; | 603 buildCounterSetAccountInfoResponse++; |
569 if (buildCounterSetAccountInfoResponse < 3) { | 604 if (buildCounterSetAccountInfoResponse < 3) { |
570 unittest.expect(o.displayName, unittest.equals('foo')); | 605 unittest.expect(o.displayName, unittest.equals('foo')); |
571 unittest.expect(o.email, unittest.equals('foo')); | 606 unittest.expect(o.email, unittest.equals('foo')); |
572 unittest.expect(o.idToken, unittest.equals('foo')); | 607 unittest.expect(o.idToken, unittest.equals('foo')); |
573 unittest.expect(o.kind, unittest.equals('foo')); | 608 unittest.expect(o.kind, unittest.equals('foo')); |
574 checkUnnamed1339(o.providerUserInfo); | 609 checkUnnamed1158(o.providerUserInfo); |
575 } | 610 } |
576 buildCounterSetAccountInfoResponse--; | 611 buildCounterSetAccountInfoResponse--; |
577 } | 612 } |
578 | 613 |
579 core.int buildCounterUploadAccountResponseError = 0; | 614 core.int buildCounterUploadAccountResponseError = 0; |
580 buildUploadAccountResponseError() { | 615 buildUploadAccountResponseError() { |
581 var o = new api.UploadAccountResponseError(); | 616 var o = new api.UploadAccountResponseError(); |
582 buildCounterUploadAccountResponseError++; | 617 buildCounterUploadAccountResponseError++; |
583 if (buildCounterUploadAccountResponseError < 3) { | 618 if (buildCounterUploadAccountResponseError < 3) { |
584 o.index = 42; | 619 o.index = 42; |
585 o.message = "foo"; | 620 o.message = "foo"; |
586 } | 621 } |
587 buildCounterUploadAccountResponseError--; | 622 buildCounterUploadAccountResponseError--; |
588 return o; | 623 return o; |
589 } | 624 } |
590 | 625 |
591 checkUploadAccountResponseError(api.UploadAccountResponseError o) { | 626 checkUploadAccountResponseError(api.UploadAccountResponseError o) { |
592 buildCounterUploadAccountResponseError++; | 627 buildCounterUploadAccountResponseError++; |
593 if (buildCounterUploadAccountResponseError < 3) { | 628 if (buildCounterUploadAccountResponseError < 3) { |
594 unittest.expect(o.index, unittest.equals(42)); | 629 unittest.expect(o.index, unittest.equals(42)); |
595 unittest.expect(o.message, unittest.equals('foo')); | 630 unittest.expect(o.message, unittest.equals('foo')); |
596 } | 631 } |
597 buildCounterUploadAccountResponseError--; | 632 buildCounterUploadAccountResponseError--; |
598 } | 633 } |
599 | 634 |
600 buildUnnamed1340() { | 635 buildUnnamed1159() { |
601 var o = new core.List<api.UploadAccountResponseError>(); | 636 var o = new core.List<api.UploadAccountResponseError>(); |
602 o.add(buildUploadAccountResponseError()); | 637 o.add(buildUploadAccountResponseError()); |
603 o.add(buildUploadAccountResponseError()); | 638 o.add(buildUploadAccountResponseError()); |
604 return o; | 639 return o; |
605 } | 640 } |
606 | 641 |
607 checkUnnamed1340(core.List<api.UploadAccountResponseError> o) { | 642 checkUnnamed1159(core.List<api.UploadAccountResponseError> o) { |
608 unittest.expect(o, unittest.hasLength(2)); | 643 unittest.expect(o, unittest.hasLength(2)); |
609 checkUploadAccountResponseError(o[0]); | 644 checkUploadAccountResponseError(o[0]); |
610 checkUploadAccountResponseError(o[1]); | 645 checkUploadAccountResponseError(o[1]); |
611 } | 646 } |
612 | 647 |
613 core.int buildCounterUploadAccountResponse = 0; | 648 core.int buildCounterUploadAccountResponse = 0; |
614 buildUploadAccountResponse() { | 649 buildUploadAccountResponse() { |
615 var o = new api.UploadAccountResponse(); | 650 var o = new api.UploadAccountResponse(); |
616 buildCounterUploadAccountResponse++; | 651 buildCounterUploadAccountResponse++; |
617 if (buildCounterUploadAccountResponse < 3) { | 652 if (buildCounterUploadAccountResponse < 3) { |
618 o.error = buildUnnamed1340(); | 653 o.error = buildUnnamed1159(); |
619 o.kind = "foo"; | 654 o.kind = "foo"; |
620 } | 655 } |
621 buildCounterUploadAccountResponse--; | 656 buildCounterUploadAccountResponse--; |
622 return o; | 657 return o; |
623 } | 658 } |
624 | 659 |
625 checkUploadAccountResponse(api.UploadAccountResponse o) { | 660 checkUploadAccountResponse(api.UploadAccountResponse o) { |
626 buildCounterUploadAccountResponse++; | 661 buildCounterUploadAccountResponse++; |
627 if (buildCounterUploadAccountResponse < 3) { | 662 if (buildCounterUploadAccountResponse < 3) { |
628 checkUnnamed1340(o.error); | 663 checkUnnamed1159(o.error); |
629 unittest.expect(o.kind, unittest.equals('foo')); | 664 unittest.expect(o.kind, unittest.equals('foo')); |
630 } | 665 } |
631 buildCounterUploadAccountResponse--; | 666 buildCounterUploadAccountResponse--; |
632 } | 667 } |
633 | 668 |
634 core.int buildCounterUserInfoProviderUserInfo = 0; | 669 core.int buildCounterUserInfoProviderUserInfo = 0; |
635 buildUserInfoProviderUserInfo() { | 670 buildUserInfoProviderUserInfo() { |
636 var o = new api.UserInfoProviderUserInfo(); | 671 var o = new api.UserInfoProviderUserInfo(); |
637 buildCounterUserInfoProviderUserInfo++; | 672 buildCounterUserInfoProviderUserInfo++; |
638 if (buildCounterUserInfoProviderUserInfo < 3) { | 673 if (buildCounterUserInfoProviderUserInfo < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
649 buildCounterUserInfoProviderUserInfo++; | 684 buildCounterUserInfoProviderUserInfo++; |
650 if (buildCounterUserInfoProviderUserInfo < 3) { | 685 if (buildCounterUserInfoProviderUserInfo < 3) { |
651 unittest.expect(o.displayName, unittest.equals('foo')); | 686 unittest.expect(o.displayName, unittest.equals('foo')); |
652 unittest.expect(o.federatedId, unittest.equals('foo')); | 687 unittest.expect(o.federatedId, unittest.equals('foo')); |
653 unittest.expect(o.photoUrl, unittest.equals('foo')); | 688 unittest.expect(o.photoUrl, unittest.equals('foo')); |
654 unittest.expect(o.providerId, unittest.equals('foo')); | 689 unittest.expect(o.providerId, unittest.equals('foo')); |
655 } | 690 } |
656 buildCounterUserInfoProviderUserInfo--; | 691 buildCounterUserInfoProviderUserInfo--; |
657 } | 692 } |
658 | 693 |
659 buildUnnamed1341() { | 694 buildUnnamed1160() { |
660 var o = new core.List<api.UserInfoProviderUserInfo>(); | 695 var o = new core.List<api.UserInfoProviderUserInfo>(); |
661 o.add(buildUserInfoProviderUserInfo()); | 696 o.add(buildUserInfoProviderUserInfo()); |
662 o.add(buildUserInfoProviderUserInfo()); | 697 o.add(buildUserInfoProviderUserInfo()); |
663 return o; | 698 return o; |
664 } | 699 } |
665 | 700 |
666 checkUnnamed1341(core.List<api.UserInfoProviderUserInfo> o) { | 701 checkUnnamed1160(core.List<api.UserInfoProviderUserInfo> o) { |
667 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
668 checkUserInfoProviderUserInfo(o[0]); | 703 checkUserInfoProviderUserInfo(o[0]); |
669 checkUserInfoProviderUserInfo(o[1]); | 704 checkUserInfoProviderUserInfo(o[1]); |
670 } | 705 } |
671 | 706 |
672 core.int buildCounterUserInfo = 0; | 707 core.int buildCounterUserInfo = 0; |
673 buildUserInfo() { | 708 buildUserInfo() { |
674 var o = new api.UserInfo(); | 709 var o = new api.UserInfo(); |
675 buildCounterUserInfo++; | 710 buildCounterUserInfo++; |
676 if (buildCounterUserInfo < 3) { | 711 if (buildCounterUserInfo < 3) { |
677 o.displayName = "foo"; | 712 o.displayName = "foo"; |
678 o.email = "foo"; | 713 o.email = "foo"; |
679 o.emailVerified = true; | 714 o.emailVerified = true; |
680 o.localId = "foo"; | 715 o.localId = "foo"; |
681 o.passwordHash = "foo"; | 716 o.passwordHash = "foo"; |
682 o.passwordUpdatedAt = 42.0; | 717 o.passwordUpdatedAt = 42.0; |
683 o.photoUrl = "foo"; | 718 o.photoUrl = "foo"; |
684 o.providerUserInfo = buildUnnamed1341(); | 719 o.providerUserInfo = buildUnnamed1160(); |
685 o.salt = "foo"; | 720 o.salt = "foo"; |
686 o.version = 42; | 721 o.version = 42; |
687 } | 722 } |
688 buildCounterUserInfo--; | 723 buildCounterUserInfo--; |
689 return o; | 724 return o; |
690 } | 725 } |
691 | 726 |
692 checkUserInfo(api.UserInfo o) { | 727 checkUserInfo(api.UserInfo o) { |
693 buildCounterUserInfo++; | 728 buildCounterUserInfo++; |
694 if (buildCounterUserInfo < 3) { | 729 if (buildCounterUserInfo < 3) { |
695 unittest.expect(o.displayName, unittest.equals('foo')); | 730 unittest.expect(o.displayName, unittest.equals('foo')); |
696 unittest.expect(o.email, unittest.equals('foo')); | 731 unittest.expect(o.email, unittest.equals('foo')); |
697 unittest.expect(o.emailVerified, unittest.isTrue); | 732 unittest.expect(o.emailVerified, unittest.isTrue); |
698 unittest.expect(o.localId, unittest.equals('foo')); | 733 unittest.expect(o.localId, unittest.equals('foo')); |
699 unittest.expect(o.passwordHash, unittest.equals('foo')); | 734 unittest.expect(o.passwordHash, unittest.equals('foo')); |
700 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); | 735 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); |
701 unittest.expect(o.photoUrl, unittest.equals('foo')); | 736 unittest.expect(o.photoUrl, unittest.equals('foo')); |
702 checkUnnamed1341(o.providerUserInfo); | 737 checkUnnamed1160(o.providerUserInfo); |
703 unittest.expect(o.salt, unittest.equals('foo')); | 738 unittest.expect(o.salt, unittest.equals('foo')); |
704 unittest.expect(o.version, unittest.equals(42)); | 739 unittest.expect(o.version, unittest.equals(42)); |
705 } | 740 } |
706 buildCounterUserInfo--; | 741 buildCounterUserInfo--; |
707 } | 742 } |
708 | 743 |
709 buildUnnamed1342() { | 744 buildUnnamed1161() { |
710 var o = new core.List<core.String>(); | 745 var o = new core.List<core.String>(); |
711 o.add("foo"); | 746 o.add("foo"); |
712 o.add("foo"); | 747 o.add("foo"); |
713 return o; | 748 return o; |
714 } | 749 } |
715 | 750 |
716 checkUnnamed1342(core.List<core.String> o) { | 751 checkUnnamed1161(core.List<core.String> o) { |
717 unittest.expect(o, unittest.hasLength(2)); | 752 unittest.expect(o, unittest.hasLength(2)); |
718 unittest.expect(o[0], unittest.equals('foo')); | 753 unittest.expect(o[0], unittest.equals('foo')); |
719 unittest.expect(o[1], unittest.equals('foo')); | 754 unittest.expect(o[1], unittest.equals('foo')); |
720 } | 755 } |
721 | 756 |
722 core.int buildCounterVerifyAssertionResponse = 0; | 757 core.int buildCounterVerifyAssertionResponse = 0; |
723 buildVerifyAssertionResponse() { | 758 buildVerifyAssertionResponse() { |
724 var o = new api.VerifyAssertionResponse(); | 759 var o = new api.VerifyAssertionResponse(); |
725 buildCounterVerifyAssertionResponse++; | 760 buildCounterVerifyAssertionResponse++; |
726 if (buildCounterVerifyAssertionResponse < 3) { | 761 if (buildCounterVerifyAssertionResponse < 3) { |
(...skipping 16 matching lines...) Expand all Loading... |
743 o.lastName = "foo"; | 778 o.lastName = "foo"; |
744 o.localId = "foo"; | 779 o.localId = "foo"; |
745 o.needConfirmation = true; | 780 o.needConfirmation = true; |
746 o.nickName = "foo"; | 781 o.nickName = "foo"; |
747 o.oauthRequestToken = "foo"; | 782 o.oauthRequestToken = "foo"; |
748 o.oauthScope = "foo"; | 783 o.oauthScope = "foo"; |
749 o.originalEmail = "foo"; | 784 o.originalEmail = "foo"; |
750 o.photoUrl = "foo"; | 785 o.photoUrl = "foo"; |
751 o.providerId = "foo"; | 786 o.providerId = "foo"; |
752 o.timeZone = "foo"; | 787 o.timeZone = "foo"; |
753 o.verifiedProvider = buildUnnamed1342(); | 788 o.verifiedProvider = buildUnnamed1161(); |
754 } | 789 } |
755 buildCounterVerifyAssertionResponse--; | 790 buildCounterVerifyAssertionResponse--; |
756 return o; | 791 return o; |
757 } | 792 } |
758 | 793 |
759 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { | 794 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { |
760 buildCounterVerifyAssertionResponse++; | 795 buildCounterVerifyAssertionResponse++; |
761 if (buildCounterVerifyAssertionResponse < 3) { | 796 if (buildCounterVerifyAssertionResponse < 3) { |
762 unittest.expect(o.action, unittest.equals('foo')); | 797 unittest.expect(o.action, unittest.equals('foo')); |
763 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); | 798 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); |
(...skipping 14 matching lines...) Expand all Loading... |
778 unittest.expect(o.lastName, unittest.equals('foo')); | 813 unittest.expect(o.lastName, unittest.equals('foo')); |
779 unittest.expect(o.localId, unittest.equals('foo')); | 814 unittest.expect(o.localId, unittest.equals('foo')); |
780 unittest.expect(o.needConfirmation, unittest.isTrue); | 815 unittest.expect(o.needConfirmation, unittest.isTrue); |
781 unittest.expect(o.nickName, unittest.equals('foo')); | 816 unittest.expect(o.nickName, unittest.equals('foo')); |
782 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); | 817 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); |
783 unittest.expect(o.oauthScope, unittest.equals('foo')); | 818 unittest.expect(o.oauthScope, unittest.equals('foo')); |
784 unittest.expect(o.originalEmail, unittest.equals('foo')); | 819 unittest.expect(o.originalEmail, unittest.equals('foo')); |
785 unittest.expect(o.photoUrl, unittest.equals('foo')); | 820 unittest.expect(o.photoUrl, unittest.equals('foo')); |
786 unittest.expect(o.providerId, unittest.equals('foo')); | 821 unittest.expect(o.providerId, unittest.equals('foo')); |
787 unittest.expect(o.timeZone, unittest.equals('foo')); | 822 unittest.expect(o.timeZone, unittest.equals('foo')); |
788 checkUnnamed1342(o.verifiedProvider); | 823 checkUnnamed1161(o.verifiedProvider); |
789 } | 824 } |
790 buildCounterVerifyAssertionResponse--; | 825 buildCounterVerifyAssertionResponse--; |
791 } | 826 } |
792 | 827 |
793 core.int buildCounterVerifyPasswordResponse = 0; | 828 core.int buildCounterVerifyPasswordResponse = 0; |
794 buildVerifyPasswordResponse() { | 829 buildVerifyPasswordResponse() { |
795 var o = new api.VerifyPasswordResponse(); | 830 var o = new api.VerifyPasswordResponse(); |
796 buildCounterVerifyPasswordResponse++; | 831 buildCounterVerifyPasswordResponse++; |
797 if (buildCounterVerifyPasswordResponse < 3) { | 832 if (buildCounterVerifyPasswordResponse < 3) { |
798 o.displayName = "foo"; | 833 o.displayName = "foo"; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 var o = buildVerifyPasswordResponse(); | 1079 var o = buildVerifyPasswordResponse(); |
1045 var od = new api.VerifyPasswordResponse.fromJson(o.toJson()); | 1080 var od = new api.VerifyPasswordResponse.fromJson(o.toJson()); |
1046 checkVerifyPasswordResponse(od); | 1081 checkVerifyPasswordResponse(od); |
1047 }); | 1082 }); |
1048 }); | 1083 }); |
1049 | 1084 |
1050 | 1085 |
1051 unittest.group("resource-RelyingpartyResourceApi", () { | 1086 unittest.group("resource-RelyingpartyResourceApi", () { |
1052 unittest.test("method--createAuthUri", () { | 1087 unittest.test("method--createAuthUri", () { |
1053 | 1088 |
1054 var mock = new common_test.HttpServerMock(); | 1089 var mock = new HttpServerMock(); |
1055 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1090 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1056 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); | 1091 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); |
1057 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1058 var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJs
on(json); | 1093 var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJs
on(json); |
1059 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); | 1094 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); |
1060 | 1095 |
1061 var path = (req.url).path; | 1096 var path = (req.url).path; |
1062 var pathOffset = 0; | 1097 var pathOffset = 0; |
1063 var index; | 1098 var index; |
1064 var subPart; | 1099 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1084 var keyvalue = part.split("="); | 1119 var keyvalue = part.split("="); |
1085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1120 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1086 } | 1121 } |
1087 } | 1122 } |
1088 | 1123 |
1089 | 1124 |
1090 var h = { | 1125 var h = { |
1091 "content-type" : "application/json; charset=utf-8", | 1126 "content-type" : "application/json; charset=utf-8", |
1092 }; | 1127 }; |
1093 var resp = convert.JSON.encode(buildCreateAuthUriResponse()); | 1128 var resp = convert.JSON.encode(buildCreateAuthUriResponse()); |
1094 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1129 return new async.Future.value(stringResponse(200, h, resp)); |
1095 }), true); | 1130 }), true); |
1096 res.createAuthUri(arg_request).then(unittest.expectAsync(((api.CreateAuthU
riResponse response) { | 1131 res.createAuthUri(arg_request).then(unittest.expectAsync(((api.CreateAuthU
riResponse response) { |
1097 checkCreateAuthUriResponse(response); | 1132 checkCreateAuthUriResponse(response); |
1098 }))); | 1133 }))); |
1099 }); | 1134 }); |
1100 | 1135 |
1101 unittest.test("method--deleteAccount", () { | 1136 unittest.test("method--deleteAccount", () { |
1102 | 1137 |
1103 var mock = new common_test.HttpServerMock(); | 1138 var mock = new HttpServerMock(); |
1104 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1139 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1105 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); | 1140 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); |
1106 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1141 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1107 var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJs
on(json); | 1142 var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJs
on(json); |
1108 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); | 1143 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); |
1109 | 1144 |
1110 var path = (req.url).path; | 1145 var path = (req.url).path; |
1111 var pathOffset = 0; | 1146 var pathOffset = 0; |
1112 var index; | 1147 var index; |
1113 var subPart; | 1148 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1133 var keyvalue = part.split("="); | 1168 var keyvalue = part.split("="); |
1134 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1169 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1135 } | 1170 } |
1136 } | 1171 } |
1137 | 1172 |
1138 | 1173 |
1139 var h = { | 1174 var h = { |
1140 "content-type" : "application/json; charset=utf-8", | 1175 "content-type" : "application/json; charset=utf-8", |
1141 }; | 1176 }; |
1142 var resp = convert.JSON.encode(buildDeleteAccountResponse()); | 1177 var resp = convert.JSON.encode(buildDeleteAccountResponse()); |
1143 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1178 return new async.Future.value(stringResponse(200, h, resp)); |
1144 }), true); | 1179 }), true); |
1145 res.deleteAccount(arg_request).then(unittest.expectAsync(((api.DeleteAccou
ntResponse response) { | 1180 res.deleteAccount(arg_request).then(unittest.expectAsync(((api.DeleteAccou
ntResponse response) { |
1146 checkDeleteAccountResponse(response); | 1181 checkDeleteAccountResponse(response); |
1147 }))); | 1182 }))); |
1148 }); | 1183 }); |
1149 | 1184 |
1150 unittest.test("method--downloadAccount", () { | 1185 unittest.test("method--downloadAccount", () { |
1151 | 1186 |
1152 var mock = new common_test.HttpServerMock(); | 1187 var mock = new HttpServerMock(); |
1153 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1188 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1154 var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest()
; | 1189 var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest()
; |
1155 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1190 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1156 var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.from
Json(json); | 1191 var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.from
Json(json); |
1157 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); | 1192 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); |
1158 | 1193 |
1159 var path = (req.url).path; | 1194 var path = (req.url).path; |
1160 var pathOffset = 0; | 1195 var pathOffset = 0; |
1161 var index; | 1196 var index; |
1162 var subPart; | 1197 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1182 var keyvalue = part.split("="); | 1217 var keyvalue = part.split("="); |
1183 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1184 } | 1219 } |
1185 } | 1220 } |
1186 | 1221 |
1187 | 1222 |
1188 var h = { | 1223 var h = { |
1189 "content-type" : "application/json; charset=utf-8", | 1224 "content-type" : "application/json; charset=utf-8", |
1190 }; | 1225 }; |
1191 var resp = convert.JSON.encode(buildDownloadAccountResponse()); | 1226 var resp = convert.JSON.encode(buildDownloadAccountResponse()); |
1192 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1227 return new async.Future.value(stringResponse(200, h, resp)); |
1193 }), true); | 1228 }), true); |
1194 res.downloadAccount(arg_request).then(unittest.expectAsync(((api.DownloadA
ccountResponse response) { | 1229 res.downloadAccount(arg_request).then(unittest.expectAsync(((api.DownloadA
ccountResponse response) { |
1195 checkDownloadAccountResponse(response); | 1230 checkDownloadAccountResponse(response); |
1196 }))); | 1231 }))); |
1197 }); | 1232 }); |
1198 | 1233 |
1199 unittest.test("method--getAccountInfo", () { | 1234 unittest.test("method--getAccountInfo", () { |
1200 | 1235 |
1201 var mock = new common_test.HttpServerMock(); | 1236 var mock = new HttpServerMock(); |
1202 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1237 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1203 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 1238 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
1204 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1239 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1205 var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJ
son(json); | 1240 var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJ
son(json); |
1206 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); | 1241 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); |
1207 | 1242 |
1208 var path = (req.url).path; | 1243 var path = (req.url).path; |
1209 var pathOffset = 0; | 1244 var pathOffset = 0; |
1210 var index; | 1245 var index; |
1211 var subPart; | 1246 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1231 var keyvalue = part.split("="); | 1266 var keyvalue = part.split("="); |
1232 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1267 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1233 } | 1268 } |
1234 } | 1269 } |
1235 | 1270 |
1236 | 1271 |
1237 var h = { | 1272 var h = { |
1238 "content-type" : "application/json; charset=utf-8", | 1273 "content-type" : "application/json; charset=utf-8", |
1239 }; | 1274 }; |
1240 var resp = convert.JSON.encode(buildGetAccountInfoResponse()); | 1275 var resp = convert.JSON.encode(buildGetAccountInfoResponse()); |
1241 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1276 return new async.Future.value(stringResponse(200, h, resp)); |
1242 }), true); | 1277 }), true); |
1243 res.getAccountInfo(arg_request).then(unittest.expectAsync(((api.GetAccount
InfoResponse response) { | 1278 res.getAccountInfo(arg_request).then(unittest.expectAsync(((api.GetAccount
InfoResponse response) { |
1244 checkGetAccountInfoResponse(response); | 1279 checkGetAccountInfoResponse(response); |
1245 }))); | 1280 }))); |
1246 }); | 1281 }); |
1247 | 1282 |
1248 unittest.test("method--getOobConfirmationCode", () { | 1283 unittest.test("method--getOobConfirmationCode", () { |
1249 | 1284 |
1250 var mock = new common_test.HttpServerMock(); | 1285 var mock = new HttpServerMock(); |
1251 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1286 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1252 var arg_request = buildRelyingparty(); | 1287 var arg_request = buildRelyingparty(); |
1253 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1288 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1254 var obj = new api.Relyingparty.fromJson(json); | 1289 var obj = new api.Relyingparty.fromJson(json); |
1255 checkRelyingparty(obj); | 1290 checkRelyingparty(obj); |
1256 | 1291 |
1257 var path = (req.url).path; | 1292 var path = (req.url).path; |
1258 var pathOffset = 0; | 1293 var pathOffset = 0; |
1259 var index; | 1294 var index; |
1260 var subPart; | 1295 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1280 var keyvalue = part.split("="); | 1315 var keyvalue = part.split("="); |
1281 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1282 } | 1317 } |
1283 } | 1318 } |
1284 | 1319 |
1285 | 1320 |
1286 var h = { | 1321 var h = { |
1287 "content-type" : "application/json; charset=utf-8", | 1322 "content-type" : "application/json; charset=utf-8", |
1288 }; | 1323 }; |
1289 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); | 1324 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); |
1290 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1325 return new async.Future.value(stringResponse(200, h, resp)); |
1291 }), true); | 1326 }), true); |
1292 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.Ge
tOobConfirmationCodeResponse response) { | 1327 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.Ge
tOobConfirmationCodeResponse response) { |
1293 checkGetOobConfirmationCodeResponse(response); | 1328 checkGetOobConfirmationCodeResponse(response); |
1294 }))); | 1329 }))); |
1295 }); | 1330 }); |
1296 | 1331 |
1297 unittest.test("method--getPublicKeys", () { | 1332 unittest.test("method--getPublicKeys", () { |
1298 | 1333 |
1299 var mock = new common_test.HttpServerMock(); | 1334 var mock = new HttpServerMock(); |
1300 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1335 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1336 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1302 var path = (req.url).path; | 1337 var path = (req.url).path; |
1303 var pathOffset = 0; | 1338 var pathOffset = 0; |
1304 var index; | 1339 var index; |
1305 var subPart; | 1340 var subPart; |
1306 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1341 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1307 pathOffset += 1; | 1342 pathOffset += 1; |
1308 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 1343 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); |
1309 pathOffset += 32; | 1344 pathOffset += 32; |
(...skipping 15 matching lines...) Expand all Loading... |
1325 var keyvalue = part.split("="); | 1360 var keyvalue = part.split("="); |
1326 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1327 } | 1362 } |
1328 } | 1363 } |
1329 | 1364 |
1330 | 1365 |
1331 var h = { | 1366 var h = { |
1332 "content-type" : "application/json; charset=utf-8", | 1367 "content-type" : "application/json; charset=utf-8", |
1333 }; | 1368 }; |
1334 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublic
KeysResponse()); | 1369 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublic
KeysResponse()); |
1335 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1370 return new async.Future.value(stringResponse(200, h, resp)); |
1336 }), true); | 1371 }), true); |
1337 res.getPublicKeys().then(unittest.expectAsync(((api.IdentitytoolkitRelying
partyGetPublicKeysResponse response) { | 1372 res.getPublicKeys().then(unittest.expectAsync(((api.IdentitytoolkitRelying
partyGetPublicKeysResponse response) { |
1338 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); | 1373 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); |
1339 }))); | 1374 }))); |
1340 }); | 1375 }); |
1341 | 1376 |
1342 unittest.test("method--resetPassword", () { | 1377 unittest.test("method--resetPassword", () { |
1343 | 1378 |
1344 var mock = new common_test.HttpServerMock(); | 1379 var mock = new HttpServerMock(); |
1345 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1380 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1346 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); | 1381 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); |
1347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1382 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1348 var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJs
on(json); | 1383 var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJs
on(json); |
1349 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); | 1384 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); |
1350 | 1385 |
1351 var path = (req.url).path; | 1386 var path = (req.url).path; |
1352 var pathOffset = 0; | 1387 var pathOffset = 0; |
1353 var index; | 1388 var index; |
1354 var subPart; | 1389 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1374 var keyvalue = part.split("="); | 1409 var keyvalue = part.split("="); |
1375 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1376 } | 1411 } |
1377 } | 1412 } |
1378 | 1413 |
1379 | 1414 |
1380 var h = { | 1415 var h = { |
1381 "content-type" : "application/json; charset=utf-8", | 1416 "content-type" : "application/json; charset=utf-8", |
1382 }; | 1417 }; |
1383 var resp = convert.JSON.encode(buildResetPasswordResponse()); | 1418 var resp = convert.JSON.encode(buildResetPasswordResponse()); |
1384 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1419 return new async.Future.value(stringResponse(200, h, resp)); |
1385 }), true); | 1420 }), true); |
1386 res.resetPassword(arg_request).then(unittest.expectAsync(((api.ResetPasswo
rdResponse response) { | 1421 res.resetPassword(arg_request).then(unittest.expectAsync(((api.ResetPasswo
rdResponse response) { |
1387 checkResetPasswordResponse(response); | 1422 checkResetPasswordResponse(response); |
1388 }))); | 1423 }))); |
1389 }); | 1424 }); |
1390 | 1425 |
1391 unittest.test("method--setAccountInfo", () { | 1426 unittest.test("method--setAccountInfo", () { |
1392 | 1427 |
1393 var mock = new common_test.HttpServerMock(); | 1428 var mock = new HttpServerMock(); |
1394 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1429 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1395 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); | 1430 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); |
1396 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1431 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1397 var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJ
son(json); | 1432 var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJ
son(json); |
1398 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); | 1433 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); |
1399 | 1434 |
1400 var path = (req.url).path; | 1435 var path = (req.url).path; |
1401 var pathOffset = 0; | 1436 var pathOffset = 0; |
1402 var index; | 1437 var index; |
1403 var subPart; | 1438 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1423 var keyvalue = part.split("="); | 1458 var keyvalue = part.split("="); |
1424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1459 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1425 } | 1460 } |
1426 } | 1461 } |
1427 | 1462 |
1428 | 1463 |
1429 var h = { | 1464 var h = { |
1430 "content-type" : "application/json; charset=utf-8", | 1465 "content-type" : "application/json; charset=utf-8", |
1431 }; | 1466 }; |
1432 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); | 1467 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); |
1433 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1468 return new async.Future.value(stringResponse(200, h, resp)); |
1434 }), true); | 1469 }), true); |
1435 res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccount
InfoResponse response) { | 1470 res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccount
InfoResponse response) { |
1436 checkSetAccountInfoResponse(response); | 1471 checkSetAccountInfoResponse(response); |
1437 }))); | 1472 }))); |
1438 }); | 1473 }); |
1439 | 1474 |
1440 unittest.test("method--uploadAccount", () { | 1475 unittest.test("method--uploadAccount", () { |
1441 | 1476 |
1442 var mock = new common_test.HttpServerMock(); | 1477 var mock = new HttpServerMock(); |
1443 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1478 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1444 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); | 1479 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); |
1445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1446 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs
on(json); | 1481 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs
on(json); |
1447 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); | 1482 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); |
1448 | 1483 |
1449 var path = (req.url).path; | 1484 var path = (req.url).path; |
1450 var pathOffset = 0; | 1485 var pathOffset = 0; |
1451 var index; | 1486 var index; |
1452 var subPart; | 1487 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1472 var keyvalue = part.split("="); | 1507 var keyvalue = part.split("="); |
1473 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1508 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1474 } | 1509 } |
1475 } | 1510 } |
1476 | 1511 |
1477 | 1512 |
1478 var h = { | 1513 var h = { |
1479 "content-type" : "application/json; charset=utf-8", | 1514 "content-type" : "application/json; charset=utf-8", |
1480 }; | 1515 }; |
1481 var resp = convert.JSON.encode(buildUploadAccountResponse()); | 1516 var resp = convert.JSON.encode(buildUploadAccountResponse()); |
1482 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1517 return new async.Future.value(stringResponse(200, h, resp)); |
1483 }), true); | 1518 }), true); |
1484 res.uploadAccount(arg_request).then(unittest.expectAsync(((api.UploadAccou
ntResponse response) { | 1519 res.uploadAccount(arg_request).then(unittest.expectAsync(((api.UploadAccou
ntResponse response) { |
1485 checkUploadAccountResponse(response); | 1520 checkUploadAccountResponse(response); |
1486 }))); | 1521 }))); |
1487 }); | 1522 }); |
1488 | 1523 |
1489 unittest.test("method--verifyAssertion", () { | 1524 unittest.test("method--verifyAssertion", () { |
1490 | 1525 |
1491 var mock = new common_test.HttpServerMock(); | 1526 var mock = new HttpServerMock(); |
1492 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1527 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1493 var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest()
; | 1528 var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest()
; |
1494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1529 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1495 var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.from
Json(json); | 1530 var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.from
Json(json); |
1496 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); | 1531 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); |
1497 | 1532 |
1498 var path = (req.url).path; | 1533 var path = (req.url).path; |
1499 var pathOffset = 0; | 1534 var pathOffset = 0; |
1500 var index; | 1535 var index; |
1501 var subPart; | 1536 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1521 var keyvalue = part.split("="); | 1556 var keyvalue = part.split("="); |
1522 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1557 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1523 } | 1558 } |
1524 } | 1559 } |
1525 | 1560 |
1526 | 1561 |
1527 var h = { | 1562 var h = { |
1528 "content-type" : "application/json; charset=utf-8", | 1563 "content-type" : "application/json; charset=utf-8", |
1529 }; | 1564 }; |
1530 var resp = convert.JSON.encode(buildVerifyAssertionResponse()); | 1565 var resp = convert.JSON.encode(buildVerifyAssertionResponse()); |
1531 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1566 return new async.Future.value(stringResponse(200, h, resp)); |
1532 }), true); | 1567 }), true); |
1533 res.verifyAssertion(arg_request).then(unittest.expectAsync(((api.VerifyAss
ertionResponse response) { | 1568 res.verifyAssertion(arg_request).then(unittest.expectAsync(((api.VerifyAss
ertionResponse response) { |
1534 checkVerifyAssertionResponse(response); | 1569 checkVerifyAssertionResponse(response); |
1535 }))); | 1570 }))); |
1536 }); | 1571 }); |
1537 | 1572 |
1538 unittest.test("method--verifyPassword", () { | 1573 unittest.test("method--verifyPassword", () { |
1539 | 1574 |
1540 var mock = new common_test.HttpServerMock(); | 1575 var mock = new HttpServerMock(); |
1541 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 1576 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; |
1542 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 1577 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
1543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1544 var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJ
son(json); | 1579 var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJ
son(json); |
1545 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); | 1580 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); |
1546 | 1581 |
1547 var path = (req.url).path; | 1582 var path = (req.url).path; |
1548 var pathOffset = 0; | 1583 var pathOffset = 0; |
1549 var index; | 1584 var index; |
1550 var subPart; | 1585 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
1570 var keyvalue = part.split("="); | 1605 var keyvalue = part.split("="); |
1571 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1606 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
1572 } | 1607 } |
1573 } | 1608 } |
1574 | 1609 |
1575 | 1610 |
1576 var h = { | 1611 var h = { |
1577 "content-type" : "application/json; charset=utf-8", | 1612 "content-type" : "application/json; charset=utf-8", |
1578 }; | 1613 }; |
1579 var resp = convert.JSON.encode(buildVerifyPasswordResponse()); | 1614 var resp = convert.JSON.encode(buildVerifyPasswordResponse()); |
1580 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1615 return new async.Future.value(stringResponse(200, h, resp)); |
1581 }), true); | 1616 }), true); |
1582 res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPass
wordResponse response) { | 1617 res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPass
wordResponse response) { |
1583 checkVerifyPasswordResponse(response); | 1618 checkVerifyPasswordResponse(response); |
1584 }))); | 1619 }))); |
1585 }); | 1620 }); |
1586 | 1621 |
1587 }); | 1622 }); |
1588 | 1623 |
1589 | 1624 |
1590 } | 1625 } |
1591 | 1626 |
OLD | NEW |