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; | |
5 import "dart:async" as async; | 4 import "dart:async" as async; |
6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; |
7 | 6 |
8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | |
10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; |
11 | 9 |
12 import 'package:googleapis/identitytoolkit/v3.dart' as api; | 10 import 'package:googleapis/identitytoolkit/v3.dart' as api; |
13 | 11 |
14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 13 core.Function _callback; |
16 core.bool _expectJson; | 14 core.bool _expectJson; |
17 | 15 |
18 void register(core.Function callback, core.bool expectJson) { | 16 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 17 _callback = callback; |
20 _expectJson = expectJson; | 18 _expectJson = expectJson; |
21 } | 19 } |
22 | 20 |
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
24 if (_expectJson) { | 22 if (_expectJson) { |
25 return request.finalize() | 23 return request |
| 24 .finalize() |
26 .transform(convert.UTF8.decoder) | 25 .transform(convert.UTF8.decoder) |
27 .join('') | 26 .join('') |
28 .then((core.String jsonString) { | 27 .then((core.String jsonString) { |
29 if (jsonString.isEmpty) { | 28 if (jsonString.isEmpty) { |
30 return _callback(request, null); | 29 return _callback(request, null); |
31 } else { | 30 } else { |
32 return _callback(request, convert.JSON.decode(jsonString)); | 31 return _callback(request, convert.JSON.decode(jsonString)); |
33 } | 32 } |
34 }); | 33 }); |
35 } else { | 34 } else { |
36 var stream = request.finalize(); | 35 var stream = request.finalize(); |
37 if (stream == null) { | 36 if (stream == null) { |
38 return _callback(request, []); | 37 return _callback(request, []); |
39 } else { | 38 } else { |
40 return stream.toBytes().then((data) { | 39 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 40 return _callback(request, data); |
42 }); | 41 }); |
43 } | 42 } |
44 } | 43 } |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, |
49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 48 core.Map<core.String, core.String> headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 50 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 51 } |
53 | 52 |
54 buildUnnamed2453() { | 53 buildUnnamed2440() { |
55 var o = new core.List<core.String>(); | 54 var o = new core.List<core.String>(); |
56 o.add("foo"); | 55 o.add("foo"); |
57 o.add("foo"); | 56 o.add("foo"); |
58 return o; | 57 return o; |
59 } | 58 } |
60 | 59 |
61 checkUnnamed2453(core.List<core.String> o) { | 60 checkUnnamed2440(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 61 unittest.expect(o, unittest.hasLength(2)); |
63 unittest.expect(o[0], unittest.equals('foo')); | 62 unittest.expect(o[0], unittest.equals('foo')); |
64 unittest.expect(o[1], unittest.equals('foo')); | 63 unittest.expect(o[1], unittest.equals('foo')); |
65 } | 64 } |
66 | 65 |
67 core.int buildCounterCreateAuthUriResponse = 0; | 66 core.int buildCounterCreateAuthUriResponse = 0; |
68 buildCreateAuthUriResponse() { | 67 buildCreateAuthUriResponse() { |
69 var o = new api.CreateAuthUriResponse(); | 68 var o = new api.CreateAuthUriResponse(); |
70 buildCounterCreateAuthUriResponse++; | 69 buildCounterCreateAuthUriResponse++; |
71 if (buildCounterCreateAuthUriResponse < 3) { | 70 if (buildCounterCreateAuthUriResponse < 3) { |
72 o.allProviders = buildUnnamed2453(); | 71 o.allProviders = buildUnnamed2440(); |
73 o.authUri = "foo"; | 72 o.authUri = "foo"; |
74 o.captchaRequired = true; | 73 o.captchaRequired = true; |
75 o.forExistingProvider = true; | 74 o.forExistingProvider = true; |
76 o.kind = "foo"; | 75 o.kind = "foo"; |
77 o.providerId = "foo"; | 76 o.providerId = "foo"; |
78 o.registered = true; | 77 o.registered = true; |
79 o.sessionId = "foo"; | 78 o.sessionId = "foo"; |
80 } | 79 } |
81 buildCounterCreateAuthUriResponse--; | 80 buildCounterCreateAuthUriResponse--; |
82 return o; | 81 return o; |
83 } | 82 } |
84 | 83 |
85 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { | 84 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { |
86 buildCounterCreateAuthUriResponse++; | 85 buildCounterCreateAuthUriResponse++; |
87 if (buildCounterCreateAuthUriResponse < 3) { | 86 if (buildCounterCreateAuthUriResponse < 3) { |
88 checkUnnamed2453(o.allProviders); | 87 checkUnnamed2440(o.allProviders); |
89 unittest.expect(o.authUri, unittest.equals('foo')); | 88 unittest.expect(o.authUri, unittest.equals('foo')); |
90 unittest.expect(o.captchaRequired, unittest.isTrue); | 89 unittest.expect(o.captchaRequired, unittest.isTrue); |
91 unittest.expect(o.forExistingProvider, unittest.isTrue); | 90 unittest.expect(o.forExistingProvider, unittest.isTrue); |
92 unittest.expect(o.kind, unittest.equals('foo')); | 91 unittest.expect(o.kind, unittest.equals('foo')); |
93 unittest.expect(o.providerId, unittest.equals('foo')); | 92 unittest.expect(o.providerId, unittest.equals('foo')); |
94 unittest.expect(o.registered, unittest.isTrue); | 93 unittest.expect(o.registered, unittest.isTrue); |
95 unittest.expect(o.sessionId, unittest.equals('foo')); | 94 unittest.expect(o.sessionId, unittest.equals('foo')); |
96 } | 95 } |
97 buildCounterCreateAuthUriResponse--; | 96 buildCounterCreateAuthUriResponse--; |
98 } | 97 } |
(...skipping 10 matching lines...) Expand all Loading... |
109 } | 108 } |
110 | 109 |
111 checkDeleteAccountResponse(api.DeleteAccountResponse o) { | 110 checkDeleteAccountResponse(api.DeleteAccountResponse o) { |
112 buildCounterDeleteAccountResponse++; | 111 buildCounterDeleteAccountResponse++; |
113 if (buildCounterDeleteAccountResponse < 3) { | 112 if (buildCounterDeleteAccountResponse < 3) { |
114 unittest.expect(o.kind, unittest.equals('foo')); | 113 unittest.expect(o.kind, unittest.equals('foo')); |
115 } | 114 } |
116 buildCounterDeleteAccountResponse--; | 115 buildCounterDeleteAccountResponse--; |
117 } | 116 } |
118 | 117 |
119 buildUnnamed2454() { | 118 buildUnnamed2441() { |
120 var o = new core.List<api.UserInfo>(); | 119 var o = new core.List<api.UserInfo>(); |
121 o.add(buildUserInfo()); | 120 o.add(buildUserInfo()); |
122 o.add(buildUserInfo()); | 121 o.add(buildUserInfo()); |
123 return o; | 122 return o; |
124 } | 123 } |
125 | 124 |
126 checkUnnamed2454(core.List<api.UserInfo> o) { | 125 checkUnnamed2441(core.List<api.UserInfo> o) { |
127 unittest.expect(o, unittest.hasLength(2)); | 126 unittest.expect(o, unittest.hasLength(2)); |
128 checkUserInfo(o[0]); | 127 checkUserInfo(o[0]); |
129 checkUserInfo(o[1]); | 128 checkUserInfo(o[1]); |
130 } | 129 } |
131 | 130 |
132 core.int buildCounterDownloadAccountResponse = 0; | 131 core.int buildCounterDownloadAccountResponse = 0; |
133 buildDownloadAccountResponse() { | 132 buildDownloadAccountResponse() { |
134 var o = new api.DownloadAccountResponse(); | 133 var o = new api.DownloadAccountResponse(); |
135 buildCounterDownloadAccountResponse++; | 134 buildCounterDownloadAccountResponse++; |
136 if (buildCounterDownloadAccountResponse < 3) { | 135 if (buildCounterDownloadAccountResponse < 3) { |
137 o.kind = "foo"; | 136 o.kind = "foo"; |
138 o.nextPageToken = "foo"; | 137 o.nextPageToken = "foo"; |
139 o.users = buildUnnamed2454(); | 138 o.users = buildUnnamed2441(); |
140 } | 139 } |
141 buildCounterDownloadAccountResponse--; | 140 buildCounterDownloadAccountResponse--; |
142 return o; | 141 return o; |
143 } | 142 } |
144 | 143 |
145 checkDownloadAccountResponse(api.DownloadAccountResponse o) { | 144 checkDownloadAccountResponse(api.DownloadAccountResponse o) { |
146 buildCounterDownloadAccountResponse++; | 145 buildCounterDownloadAccountResponse++; |
147 if (buildCounterDownloadAccountResponse < 3) { | 146 if (buildCounterDownloadAccountResponse < 3) { |
148 unittest.expect(o.kind, unittest.equals('foo')); | 147 unittest.expect(o.kind, unittest.equals('foo')); |
149 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 148 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
150 checkUnnamed2454(o.users); | 149 checkUnnamed2441(o.users); |
151 } | 150 } |
152 buildCounterDownloadAccountResponse--; | 151 buildCounterDownloadAccountResponse--; |
153 } | 152 } |
154 | 153 |
155 core.int buildCounterEmailTemplate = 0; | 154 core.int buildCounterEmailTemplate = 0; |
156 buildEmailTemplate() { | 155 buildEmailTemplate() { |
157 var o = new api.EmailTemplate(); | 156 var o = new api.EmailTemplate(); |
158 buildCounterEmailTemplate++; | 157 buildCounterEmailTemplate++; |
159 if (buildCounterEmailTemplate < 3) { | 158 if (buildCounterEmailTemplate < 3) { |
160 o.body = "foo"; | 159 o.body = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
174 unittest.expect(o.body, unittest.equals('foo')); | 173 unittest.expect(o.body, unittest.equals('foo')); |
175 unittest.expect(o.format, unittest.equals('foo')); | 174 unittest.expect(o.format, unittest.equals('foo')); |
176 unittest.expect(o.from, unittest.equals('foo')); | 175 unittest.expect(o.from, unittest.equals('foo')); |
177 unittest.expect(o.fromDisplayName, unittest.equals('foo')); | 176 unittest.expect(o.fromDisplayName, unittest.equals('foo')); |
178 unittest.expect(o.replyTo, unittest.equals('foo')); | 177 unittest.expect(o.replyTo, unittest.equals('foo')); |
179 unittest.expect(o.subject, unittest.equals('foo')); | 178 unittest.expect(o.subject, unittest.equals('foo')); |
180 } | 179 } |
181 buildCounterEmailTemplate--; | 180 buildCounterEmailTemplate--; |
182 } | 181 } |
183 | 182 |
184 buildUnnamed2455() { | 183 buildUnnamed2442() { |
185 var o = new core.List<api.UserInfo>(); | 184 var o = new core.List<api.UserInfo>(); |
186 o.add(buildUserInfo()); | 185 o.add(buildUserInfo()); |
187 o.add(buildUserInfo()); | 186 o.add(buildUserInfo()); |
188 return o; | 187 return o; |
189 } | 188 } |
190 | 189 |
191 checkUnnamed2455(core.List<api.UserInfo> o) { | 190 checkUnnamed2442(core.List<api.UserInfo> o) { |
192 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
193 checkUserInfo(o[0]); | 192 checkUserInfo(o[0]); |
194 checkUserInfo(o[1]); | 193 checkUserInfo(o[1]); |
195 } | 194 } |
196 | 195 |
197 core.int buildCounterGetAccountInfoResponse = 0; | 196 core.int buildCounterGetAccountInfoResponse = 0; |
198 buildGetAccountInfoResponse() { | 197 buildGetAccountInfoResponse() { |
199 var o = new api.GetAccountInfoResponse(); | 198 var o = new api.GetAccountInfoResponse(); |
200 buildCounterGetAccountInfoResponse++; | 199 buildCounterGetAccountInfoResponse++; |
201 if (buildCounterGetAccountInfoResponse < 3) { | 200 if (buildCounterGetAccountInfoResponse < 3) { |
202 o.kind = "foo"; | 201 o.kind = "foo"; |
203 o.users = buildUnnamed2455(); | 202 o.users = buildUnnamed2442(); |
204 } | 203 } |
205 buildCounterGetAccountInfoResponse--; | 204 buildCounterGetAccountInfoResponse--; |
206 return o; | 205 return o; |
207 } | 206 } |
208 | 207 |
209 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { | 208 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { |
210 buildCounterGetAccountInfoResponse++; | 209 buildCounterGetAccountInfoResponse++; |
211 if (buildCounterGetAccountInfoResponse < 3) { | 210 if (buildCounterGetAccountInfoResponse < 3) { |
212 unittest.expect(o.kind, unittest.equals('foo')); | 211 unittest.expect(o.kind, unittest.equals('foo')); |
213 checkUnnamed2455(o.users); | 212 checkUnnamed2442(o.users); |
214 } | 213 } |
215 buildCounterGetAccountInfoResponse--; | 214 buildCounterGetAccountInfoResponse--; |
216 } | 215 } |
217 | 216 |
218 core.int buildCounterGetOobConfirmationCodeResponse = 0; | 217 core.int buildCounterGetOobConfirmationCodeResponse = 0; |
219 buildGetOobConfirmationCodeResponse() { | 218 buildGetOobConfirmationCodeResponse() { |
220 var o = new api.GetOobConfirmationCodeResponse(); | 219 var o = new api.GetOobConfirmationCodeResponse(); |
221 buildCounterGetOobConfirmationCodeResponse++; | 220 buildCounterGetOobConfirmationCodeResponse++; |
222 if (buildCounterGetOobConfirmationCodeResponse < 3) { | 221 if (buildCounterGetOobConfirmationCodeResponse < 3) { |
223 o.email = "foo"; | 222 o.email = "foo"; |
(...skipping 30 matching lines...) Expand all Loading... |
254 checkGetRecaptchaParamResponse(api.GetRecaptchaParamResponse o) { | 253 checkGetRecaptchaParamResponse(api.GetRecaptchaParamResponse o) { |
255 buildCounterGetRecaptchaParamResponse++; | 254 buildCounterGetRecaptchaParamResponse++; |
256 if (buildCounterGetRecaptchaParamResponse < 3) { | 255 if (buildCounterGetRecaptchaParamResponse < 3) { |
257 unittest.expect(o.kind, unittest.equals('foo')); | 256 unittest.expect(o.kind, unittest.equals('foo')); |
258 unittest.expect(o.recaptchaSiteKey, unittest.equals('foo')); | 257 unittest.expect(o.recaptchaSiteKey, unittest.equals('foo')); |
259 unittest.expect(o.recaptchaStoken, unittest.equals('foo')); | 258 unittest.expect(o.recaptchaStoken, unittest.equals('foo')); |
260 } | 259 } |
261 buildCounterGetRecaptchaParamResponse--; | 260 buildCounterGetRecaptchaParamResponse--; |
262 } | 261 } |
263 | 262 |
264 buildUnnamed2456() { | 263 buildUnnamed2443() { |
265 var o = new core.Map<core.String, core.String>(); | 264 var o = new core.Map<core.String, core.String>(); |
266 o["x"] = "foo"; | 265 o["x"] = "foo"; |
267 o["y"] = "foo"; | 266 o["y"] = "foo"; |
268 return o; | 267 return o; |
269 } | 268 } |
270 | 269 |
271 checkUnnamed2456(core.Map<core.String, core.String> o) { | 270 checkUnnamed2443(core.Map<core.String, core.String> o) { |
272 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
273 unittest.expect(o["x"], unittest.equals('foo')); | 272 unittest.expect(o["x"], unittest.equals('foo')); |
274 unittest.expect(o["y"], unittest.equals('foo')); | 273 unittest.expect(o["y"], unittest.equals('foo')); |
275 } | 274 } |
276 | 275 |
277 core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0; | 276 core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0; |
278 buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() { | 277 buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() { |
279 var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest(); | 278 var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest(); |
280 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++; | 279 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++; |
281 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) { | 280 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) { |
282 o.appId = "foo"; | 281 o.appId = "foo"; |
283 o.authFlowType = "foo"; | 282 o.authFlowType = "foo"; |
284 o.clientId = "foo"; | 283 o.clientId = "foo"; |
285 o.context = "foo"; | 284 o.context = "foo"; |
286 o.continueUri = "foo"; | 285 o.continueUri = "foo"; |
287 o.customParameter = buildUnnamed2456(); | 286 o.customParameter = buildUnnamed2443(); |
288 o.hostedDomain = "foo"; | 287 o.hostedDomain = "foo"; |
289 o.identifier = "foo"; | 288 o.identifier = "foo"; |
290 o.oauthConsumerKey = "foo"; | 289 o.oauthConsumerKey = "foo"; |
291 o.oauthScope = "foo"; | 290 o.oauthScope = "foo"; |
292 o.openidRealm = "foo"; | 291 o.openidRealm = "foo"; |
293 o.otaApp = "foo"; | 292 o.otaApp = "foo"; |
294 o.providerId = "foo"; | 293 o.providerId = "foo"; |
295 o.sessionId = "foo"; | 294 o.sessionId = "foo"; |
296 } | 295 } |
297 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; | 296 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; |
298 return o; | 297 return o; |
299 } | 298 } |
300 | 299 |
301 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(api.IdentitytoolkitRelyingp
artyCreateAuthUriRequest o) { | 300 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest( |
| 301 api.IdentitytoolkitRelyingpartyCreateAuthUriRequest o) { |
302 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++; | 302 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++; |
303 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) { | 303 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) { |
304 unittest.expect(o.appId, unittest.equals('foo')); | 304 unittest.expect(o.appId, unittest.equals('foo')); |
305 unittest.expect(o.authFlowType, unittest.equals('foo')); | 305 unittest.expect(o.authFlowType, unittest.equals('foo')); |
306 unittest.expect(o.clientId, unittest.equals('foo')); | 306 unittest.expect(o.clientId, unittest.equals('foo')); |
307 unittest.expect(o.context, unittest.equals('foo')); | 307 unittest.expect(o.context, unittest.equals('foo')); |
308 unittest.expect(o.continueUri, unittest.equals('foo')); | 308 unittest.expect(o.continueUri, unittest.equals('foo')); |
309 checkUnnamed2456(o.customParameter); | 309 checkUnnamed2443(o.customParameter); |
310 unittest.expect(o.hostedDomain, unittest.equals('foo')); | 310 unittest.expect(o.hostedDomain, unittest.equals('foo')); |
311 unittest.expect(o.identifier, unittest.equals('foo')); | 311 unittest.expect(o.identifier, unittest.equals('foo')); |
312 unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); | 312 unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); |
313 unittest.expect(o.oauthScope, unittest.equals('foo')); | 313 unittest.expect(o.oauthScope, unittest.equals('foo')); |
314 unittest.expect(o.openidRealm, unittest.equals('foo')); | 314 unittest.expect(o.openidRealm, unittest.equals('foo')); |
315 unittest.expect(o.otaApp, unittest.equals('foo')); | 315 unittest.expect(o.otaApp, unittest.equals('foo')); |
316 unittest.expect(o.providerId, unittest.equals('foo')); | 316 unittest.expect(o.providerId, unittest.equals('foo')); |
317 unittest.expect(o.sessionId, unittest.equals('foo')); | 317 unittest.expect(o.sessionId, unittest.equals('foo')); |
318 } | 318 } |
319 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; | 319 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; |
320 } | 320 } |
321 | 321 |
322 core.int buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest = 0; | 322 core.int buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest = 0; |
323 buildIdentitytoolkitRelyingpartyDeleteAccountRequest() { | 323 buildIdentitytoolkitRelyingpartyDeleteAccountRequest() { |
324 var o = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest(); | 324 var o = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest(); |
325 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; | 325 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; |
326 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { | 326 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { |
327 o.delegatedProjectNumber = "foo"; | 327 o.delegatedProjectNumber = "foo"; |
328 o.idToken = "foo"; | 328 o.idToken = "foo"; |
329 o.localId = "foo"; | 329 o.localId = "foo"; |
330 } | 330 } |
331 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; | 331 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(api.IdentitytoolkitRelyingp
artyDeleteAccountRequest o) { | 335 checkIdentitytoolkitRelyingpartyDeleteAccountRequest( |
| 336 api.IdentitytoolkitRelyingpartyDeleteAccountRequest o) { |
336 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; | 337 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest++; |
337 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { | 338 if (buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest < 3) { |
338 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 339 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
339 unittest.expect(o.idToken, unittest.equals('foo')); | 340 unittest.expect(o.idToken, unittest.equals('foo')); |
340 unittest.expect(o.localId, unittest.equals('foo')); | 341 unittest.expect(o.localId, unittest.equals('foo')); |
341 } | 342 } |
342 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; | 343 buildCounterIdentitytoolkitRelyingpartyDeleteAccountRequest--; |
343 } | 344 } |
344 | 345 |
345 core.int buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest = 0; | 346 core.int buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest = 0; |
346 buildIdentitytoolkitRelyingpartyDownloadAccountRequest() { | 347 buildIdentitytoolkitRelyingpartyDownloadAccountRequest() { |
347 var o = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest(); | 348 var o = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest(); |
348 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; | 349 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; |
349 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { | 350 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { |
350 o.delegatedProjectNumber = "foo"; | 351 o.delegatedProjectNumber = "foo"; |
351 o.maxResults = 42; | 352 o.maxResults = 42; |
352 o.nextPageToken = "foo"; | 353 o.nextPageToken = "foo"; |
353 o.targetProjectId = "foo"; | 354 o.targetProjectId = "foo"; |
354 } | 355 } |
355 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; | 356 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; |
356 return o; | 357 return o; |
357 } | 358 } |
358 | 359 |
359 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(api.IdentitytoolkitRelyin
gpartyDownloadAccountRequest o) { | 360 checkIdentitytoolkitRelyingpartyDownloadAccountRequest( |
| 361 api.IdentitytoolkitRelyingpartyDownloadAccountRequest o) { |
360 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; | 362 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; |
361 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { | 363 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { |
362 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 364 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
363 unittest.expect(o.maxResults, unittest.equals(42)); | 365 unittest.expect(o.maxResults, unittest.equals(42)); |
364 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 366 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
365 unittest.expect(o.targetProjectId, unittest.equals('foo')); | 367 unittest.expect(o.targetProjectId, unittest.equals('foo')); |
366 } | 368 } |
367 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; | 369 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; |
368 } | 370 } |
369 | 371 |
370 buildUnnamed2457() { | 372 buildUnnamed2444() { |
371 var o = new core.List<core.String>(); | 373 var o = new core.List<core.String>(); |
372 o.add("foo"); | 374 o.add("foo"); |
373 o.add("foo"); | 375 o.add("foo"); |
374 return o; | 376 return o; |
375 } | 377 } |
376 | 378 |
377 checkUnnamed2457(core.List<core.String> o) { | 379 checkUnnamed2444(core.List<core.String> o) { |
378 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
379 unittest.expect(o[0], unittest.equals('foo')); | 381 unittest.expect(o[0], unittest.equals('foo')); |
380 unittest.expect(o[1], unittest.equals('foo')); | 382 unittest.expect(o[1], unittest.equals('foo')); |
381 } | 383 } |
382 | 384 |
383 buildUnnamed2458() { | 385 buildUnnamed2445() { |
384 var o = new core.List<core.String>(); | 386 var o = new core.List<core.String>(); |
385 o.add("foo"); | 387 o.add("foo"); |
386 o.add("foo"); | 388 o.add("foo"); |
387 return o; | 389 return o; |
388 } | 390 } |
389 | 391 |
390 checkUnnamed2458(core.List<core.String> o) { | 392 checkUnnamed2445(core.List<core.String> o) { |
391 unittest.expect(o, unittest.hasLength(2)); | 393 unittest.expect(o, unittest.hasLength(2)); |
392 unittest.expect(o[0], unittest.equals('foo')); | 394 unittest.expect(o[0], unittest.equals('foo')); |
393 unittest.expect(o[1], unittest.equals('foo')); | 395 unittest.expect(o[1], unittest.equals('foo')); |
394 } | 396 } |
395 | 397 |
396 buildUnnamed2459() { | 398 buildUnnamed2446() { |
397 var o = new core.List<core.String>(); | 399 var o = new core.List<core.String>(); |
398 o.add("foo"); | 400 o.add("foo"); |
399 o.add("foo"); | 401 o.add("foo"); |
400 return o; | 402 return o; |
401 } | 403 } |
402 | 404 |
403 checkUnnamed2459(core.List<core.String> o) { | 405 checkUnnamed2446(core.List<core.String> o) { |
404 unittest.expect(o, unittest.hasLength(2)); | 406 unittest.expect(o, unittest.hasLength(2)); |
405 unittest.expect(o[0], unittest.equals('foo')); | 407 unittest.expect(o[0], unittest.equals('foo')); |
406 unittest.expect(o[1], unittest.equals('foo')); | 408 unittest.expect(o[1], unittest.equals('foo')); |
407 } | 409 } |
408 | 410 |
409 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; | 411 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; |
410 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { | 412 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { |
411 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 413 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
412 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 414 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
413 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 415 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
414 o.delegatedProjectNumber = "foo"; | 416 o.delegatedProjectNumber = "foo"; |
415 o.email = buildUnnamed2457(); | 417 o.email = buildUnnamed2444(); |
416 o.idToken = "foo"; | 418 o.idToken = "foo"; |
417 o.localId = buildUnnamed2458(); | 419 o.localId = buildUnnamed2445(); |
418 o.phoneNumber = buildUnnamed2459(); | 420 o.phoneNumber = buildUnnamed2446(); |
419 } | 421 } |
420 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 422 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
421 return o; | 423 return o; |
422 } | 424 } |
423 | 425 |
424 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying
partyGetAccountInfoRequest o) { | 426 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest( |
| 427 api.IdentitytoolkitRelyingpartyGetAccountInfoRequest o) { |
425 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; | 428 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; |
426 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { | 429 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { |
427 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 430 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
428 checkUnnamed2457(o.email); | 431 checkUnnamed2444(o.email); |
429 unittest.expect(o.idToken, unittest.equals('foo')); | 432 unittest.expect(o.idToken, unittest.equals('foo')); |
430 checkUnnamed2458(o.localId); | 433 checkUnnamed2445(o.localId); |
431 checkUnnamed2459(o.phoneNumber); | 434 checkUnnamed2446(o.phoneNumber); |
432 } | 435 } |
433 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; | 436 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; |
434 } | 437 } |
435 | 438 |
436 buildUnnamed2460() { | 439 buildUnnamed2447() { |
437 var o = new core.List<core.String>(); | 440 var o = new core.List<core.String>(); |
438 o.add("foo"); | 441 o.add("foo"); |
439 o.add("foo"); | 442 o.add("foo"); |
440 return o; | 443 return o; |
441 } | 444 } |
442 | 445 |
443 checkUnnamed2460(core.List<core.String> o) { | 446 checkUnnamed2447(core.List<core.String> o) { |
444 unittest.expect(o, unittest.hasLength(2)); | 447 unittest.expect(o, unittest.hasLength(2)); |
445 unittest.expect(o[0], unittest.equals('foo')); | 448 unittest.expect(o[0], unittest.equals('foo')); |
446 unittest.expect(o[1], unittest.equals('foo')); | 449 unittest.expect(o[1], unittest.equals('foo')); |
447 } | 450 } |
448 | 451 |
449 buildUnnamed2461() { | 452 buildUnnamed2448() { |
450 var o = new core.List<api.IdpConfig>(); | 453 var o = new core.List<api.IdpConfig>(); |
451 o.add(buildIdpConfig()); | 454 o.add(buildIdpConfig()); |
452 o.add(buildIdpConfig()); | 455 o.add(buildIdpConfig()); |
453 return o; | 456 return o; |
454 } | 457 } |
455 | 458 |
456 checkUnnamed2461(core.List<api.IdpConfig> o) { | 459 checkUnnamed2448(core.List<api.IdpConfig> o) { |
457 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
458 checkIdpConfig(o[0]); | 461 checkIdpConfig(o[0]); |
459 checkIdpConfig(o[1]); | 462 checkIdpConfig(o[1]); |
460 } | 463 } |
461 | 464 |
462 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0; | 465 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0; |
463 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() { | 466 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() { |
464 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse(); | 467 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse(); |
465 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; | 468 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; |
466 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { | 469 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { |
467 o.allowPasswordUser = true; | 470 o.allowPasswordUser = true; |
468 o.apiKey = "foo"; | 471 o.apiKey = "foo"; |
469 o.authorizedDomains = buildUnnamed2460(); | 472 o.authorizedDomains = buildUnnamed2447(); |
470 o.changeEmailTemplate = buildEmailTemplate(); | 473 o.changeEmailTemplate = buildEmailTemplate(); |
471 o.dynamicLinksDomain = "foo"; | 474 o.dynamicLinksDomain = "foo"; |
472 o.enableAnonymousUser = true; | 475 o.enableAnonymousUser = true; |
473 o.idpConfig = buildUnnamed2461(); | 476 o.idpConfig = buildUnnamed2448(); |
474 o.legacyResetPasswordTemplate = buildEmailTemplate(); | 477 o.legacyResetPasswordTemplate = buildEmailTemplate(); |
475 o.projectId = "foo"; | 478 o.projectId = "foo"; |
476 o.resetPasswordTemplate = buildEmailTemplate(); | 479 o.resetPasswordTemplate = buildEmailTemplate(); |
477 o.useEmailSending = true; | 480 o.useEmailSending = true; |
478 o.verifyEmailTemplate = buildEmailTemplate(); | 481 o.verifyEmailTemplate = buildEmailTemplate(); |
479 } | 482 } |
480 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; | 483 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; |
481 return o; | 484 return o; |
482 } | 485 } |
483 | 486 |
484 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(api.IdentitytoolkitRely
ingpartyGetProjectConfigResponse o) { | 487 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse( |
| 488 api.IdentitytoolkitRelyingpartyGetProjectConfigResponse o) { |
485 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; | 489 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; |
486 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { | 490 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { |
487 unittest.expect(o.allowPasswordUser, unittest.isTrue); | 491 unittest.expect(o.allowPasswordUser, unittest.isTrue); |
488 unittest.expect(o.apiKey, unittest.equals('foo')); | 492 unittest.expect(o.apiKey, unittest.equals('foo')); |
489 checkUnnamed2460(o.authorizedDomains); | 493 checkUnnamed2447(o.authorizedDomains); |
490 checkEmailTemplate(o.changeEmailTemplate); | 494 checkEmailTemplate(o.changeEmailTemplate); |
491 unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); | 495 unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); |
492 unittest.expect(o.enableAnonymousUser, unittest.isTrue); | 496 unittest.expect(o.enableAnonymousUser, unittest.isTrue); |
493 checkUnnamed2461(o.idpConfig); | 497 checkUnnamed2448(o.idpConfig); |
494 checkEmailTemplate(o.legacyResetPasswordTemplate); | 498 checkEmailTemplate(o.legacyResetPasswordTemplate); |
495 unittest.expect(o.projectId, unittest.equals('foo')); | 499 unittest.expect(o.projectId, unittest.equals('foo')); |
496 checkEmailTemplate(o.resetPasswordTemplate); | 500 checkEmailTemplate(o.resetPasswordTemplate); |
497 unittest.expect(o.useEmailSending, unittest.isTrue); | 501 unittest.expect(o.useEmailSending, unittest.isTrue); |
498 checkEmailTemplate(o.verifyEmailTemplate); | 502 checkEmailTemplate(o.verifyEmailTemplate); |
499 } | 503 } |
500 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; | 504 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; |
501 } | 505 } |
502 | 506 |
503 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { | 507 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { |
504 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); | 508 var o = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse(); |
505 o["a"] = "foo"; | 509 o["a"] = "foo"; |
506 o["b"] = "foo"; | 510 o["b"] = "foo"; |
507 return o; | 511 return o; |
508 } | 512 } |
509 | 513 |
510 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(api.IdentitytoolkitRelying
partyGetPublicKeysResponse o) { | 514 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse( |
| 515 api.IdentitytoolkitRelyingpartyGetPublicKeysResponse o) { |
511 unittest.expect(o, unittest.hasLength(2)); | 516 unittest.expect(o, unittest.hasLength(2)); |
512 unittest.expect(o["a"], unittest.equals('foo')); | 517 unittest.expect(o["a"], unittest.equals('foo')); |
513 unittest.expect(o["b"], unittest.equals('foo')); | 518 unittest.expect(o["b"], unittest.equals('foo')); |
514 } | 519 } |
515 | 520 |
516 core.int buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest = 0; | 521 core.int buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest = 0; |
517 buildIdentitytoolkitRelyingpartyResetPasswordRequest() { | 522 buildIdentitytoolkitRelyingpartyResetPasswordRequest() { |
518 var o = new api.IdentitytoolkitRelyingpartyResetPasswordRequest(); | 523 var o = new api.IdentitytoolkitRelyingpartyResetPasswordRequest(); |
519 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; | 524 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; |
520 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { | 525 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { |
521 o.email = "foo"; | 526 o.email = "foo"; |
522 o.newPassword = "foo"; | 527 o.newPassword = "foo"; |
523 o.oldPassword = "foo"; | 528 o.oldPassword = "foo"; |
524 o.oobCode = "foo"; | 529 o.oobCode = "foo"; |
525 } | 530 } |
526 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; | 531 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; |
527 return o; | 532 return o; |
528 } | 533 } |
529 | 534 |
530 checkIdentitytoolkitRelyingpartyResetPasswordRequest(api.IdentitytoolkitRelyingp
artyResetPasswordRequest o) { | 535 checkIdentitytoolkitRelyingpartyResetPasswordRequest( |
| 536 api.IdentitytoolkitRelyingpartyResetPasswordRequest o) { |
531 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; | 537 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; |
532 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { | 538 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { |
533 unittest.expect(o.email, unittest.equals('foo')); | 539 unittest.expect(o.email, unittest.equals('foo')); |
534 unittest.expect(o.newPassword, unittest.equals('foo')); | 540 unittest.expect(o.newPassword, unittest.equals('foo')); |
535 unittest.expect(o.oldPassword, unittest.equals('foo')); | 541 unittest.expect(o.oldPassword, unittest.equals('foo')); |
536 unittest.expect(o.oobCode, unittest.equals('foo')); | 542 unittest.expect(o.oobCode, unittest.equals('foo')); |
537 } | 543 } |
538 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; | 544 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; |
539 } | 545 } |
540 | 546 |
541 buildUnnamed2462() { | 547 core.int buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest = 0; |
| 548 buildIdentitytoolkitRelyingpartySendVerificationCodeRequest() { |
| 549 var o = new api.IdentitytoolkitRelyingpartySendVerificationCodeRequest(); |
| 550 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest++; |
| 551 if (buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest < 3) { |
| 552 o.iosReceipt = "foo"; |
| 553 o.iosSecret = "foo"; |
| 554 o.phoneNumber = "foo"; |
| 555 o.recaptchaToken = "foo"; |
| 556 } |
| 557 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest--; |
| 558 return o; |
| 559 } |
| 560 |
| 561 checkIdentitytoolkitRelyingpartySendVerificationCodeRequest( |
| 562 api.IdentitytoolkitRelyingpartySendVerificationCodeRequest o) { |
| 563 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest++; |
| 564 if (buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest < 3) { |
| 565 unittest.expect(o.iosReceipt, unittest.equals('foo')); |
| 566 unittest.expect(o.iosSecret, unittest.equals('foo')); |
| 567 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 568 unittest.expect(o.recaptchaToken, unittest.equals('foo')); |
| 569 } |
| 570 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeRequest--; |
| 571 } |
| 572 |
| 573 core.int buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse = |
| 574 0; |
| 575 buildIdentitytoolkitRelyingpartySendVerificationCodeResponse() { |
| 576 var o = new api.IdentitytoolkitRelyingpartySendVerificationCodeResponse(); |
| 577 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse++; |
| 578 if (buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse < 3) { |
| 579 o.sessionInfo = "foo"; |
| 580 } |
| 581 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse--; |
| 582 return o; |
| 583 } |
| 584 |
| 585 checkIdentitytoolkitRelyingpartySendVerificationCodeResponse( |
| 586 api.IdentitytoolkitRelyingpartySendVerificationCodeResponse o) { |
| 587 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse++; |
| 588 if (buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse < 3) { |
| 589 unittest.expect(o.sessionInfo, unittest.equals('foo')); |
| 590 } |
| 591 buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse--; |
| 592 } |
| 593 |
| 594 buildUnnamed2449() { |
542 var o = new core.List<core.String>(); | 595 var o = new core.List<core.String>(); |
543 o.add("foo"); | 596 o.add("foo"); |
544 o.add("foo"); | 597 o.add("foo"); |
545 return o; | 598 return o; |
546 } | 599 } |
547 | 600 |
548 checkUnnamed2462(core.List<core.String> o) { | 601 checkUnnamed2449(core.List<core.String> o) { |
549 unittest.expect(o, unittest.hasLength(2)); | 602 unittest.expect(o, unittest.hasLength(2)); |
550 unittest.expect(o[0], unittest.equals('foo')); | 603 unittest.expect(o[0], unittest.equals('foo')); |
551 unittest.expect(o[1], unittest.equals('foo')); | 604 unittest.expect(o[1], unittest.equals('foo')); |
552 } | 605 } |
553 | 606 |
554 buildUnnamed2463() { | 607 buildUnnamed2450() { |
555 var o = new core.List<core.String>(); | 608 var o = new core.List<core.String>(); |
556 o.add("foo"); | 609 o.add("foo"); |
557 o.add("foo"); | 610 o.add("foo"); |
558 return o; | 611 return o; |
559 } | 612 } |
560 | 613 |
561 checkUnnamed2463(core.List<core.String> o) { | 614 checkUnnamed2450(core.List<core.String> o) { |
562 unittest.expect(o, unittest.hasLength(2)); | 615 unittest.expect(o, unittest.hasLength(2)); |
563 unittest.expect(o[0], unittest.equals('foo')); | 616 unittest.expect(o[0], unittest.equals('foo')); |
564 unittest.expect(o[1], unittest.equals('foo')); | 617 unittest.expect(o[1], unittest.equals('foo')); |
565 } | 618 } |
566 | 619 |
567 buildUnnamed2464() { | 620 buildUnnamed2451() { |
568 var o = new core.List<core.String>(); | 621 var o = new core.List<core.String>(); |
569 o.add("foo"); | 622 o.add("foo"); |
570 o.add("foo"); | 623 o.add("foo"); |
571 return o; | 624 return o; |
572 } | 625 } |
573 | 626 |
574 checkUnnamed2464(core.List<core.String> o) { | 627 checkUnnamed2451(core.List<core.String> o) { |
575 unittest.expect(o, unittest.hasLength(2)); | 628 unittest.expect(o, unittest.hasLength(2)); |
576 unittest.expect(o[0], unittest.equals('foo')); | 629 unittest.expect(o[0], unittest.equals('foo')); |
577 unittest.expect(o[1], unittest.equals('foo')); | 630 unittest.expect(o[1], unittest.equals('foo')); |
578 } | 631 } |
579 | 632 |
580 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; | 633 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; |
581 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { | 634 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { |
582 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); | 635 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); |
583 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 636 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
584 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 637 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
585 o.captchaChallenge = "foo"; | 638 o.captchaChallenge = "foo"; |
586 o.captchaResponse = "foo"; | 639 o.captchaResponse = "foo"; |
587 o.createdAt = "foo"; | 640 o.createdAt = "foo"; |
| 641 o.customAttributes = "foo"; |
588 o.delegatedProjectNumber = "foo"; | 642 o.delegatedProjectNumber = "foo"; |
589 o.deleteAttribute = buildUnnamed2462(); | 643 o.deleteAttribute = buildUnnamed2449(); |
590 o.deleteProvider = buildUnnamed2463(); | 644 o.deleteProvider = buildUnnamed2450(); |
591 o.disableUser = true; | 645 o.disableUser = true; |
592 o.displayName = "foo"; | 646 o.displayName = "foo"; |
593 o.email = "foo"; | 647 o.email = "foo"; |
594 o.emailVerified = true; | 648 o.emailVerified = true; |
595 o.idToken = "foo"; | 649 o.idToken = "foo"; |
596 o.instanceId = "foo"; | 650 o.instanceId = "foo"; |
597 o.lastLoginAt = "foo"; | 651 o.lastLoginAt = "foo"; |
598 o.localId = "foo"; | 652 o.localId = "foo"; |
599 o.oobCode = "foo"; | 653 o.oobCode = "foo"; |
600 o.password = "foo"; | 654 o.password = "foo"; |
601 o.phoneNumber = "foo"; | 655 o.phoneNumber = "foo"; |
602 o.photoUrl = "foo"; | 656 o.photoUrl = "foo"; |
603 o.provider = buildUnnamed2464(); | 657 o.provider = buildUnnamed2451(); |
604 o.returnSecureToken = true; | 658 o.returnSecureToken = true; |
605 o.upgradeToFederatedLogin = true; | 659 o.upgradeToFederatedLogin = true; |
606 o.validSince = "foo"; | 660 o.validSince = "foo"; |
607 } | 661 } |
608 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 662 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
609 return o; | 663 return o; |
610 } | 664 } |
611 | 665 |
612 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying
partySetAccountInfoRequest o) { | 666 checkIdentitytoolkitRelyingpartySetAccountInfoRequest( |
| 667 api.IdentitytoolkitRelyingpartySetAccountInfoRequest o) { |
613 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; | 668 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; |
614 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { | 669 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { |
615 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 670 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
616 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 671 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
617 unittest.expect(o.createdAt, unittest.equals('foo')); | 672 unittest.expect(o.createdAt, unittest.equals('foo')); |
| 673 unittest.expect(o.customAttributes, unittest.equals('foo')); |
618 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 674 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
619 checkUnnamed2462(o.deleteAttribute); | 675 checkUnnamed2449(o.deleteAttribute); |
620 checkUnnamed2463(o.deleteProvider); | 676 checkUnnamed2450(o.deleteProvider); |
621 unittest.expect(o.disableUser, unittest.isTrue); | 677 unittest.expect(o.disableUser, unittest.isTrue); |
622 unittest.expect(o.displayName, unittest.equals('foo')); | 678 unittest.expect(o.displayName, unittest.equals('foo')); |
623 unittest.expect(o.email, unittest.equals('foo')); | 679 unittest.expect(o.email, unittest.equals('foo')); |
624 unittest.expect(o.emailVerified, unittest.isTrue); | 680 unittest.expect(o.emailVerified, unittest.isTrue); |
625 unittest.expect(o.idToken, unittest.equals('foo')); | 681 unittest.expect(o.idToken, unittest.equals('foo')); |
626 unittest.expect(o.instanceId, unittest.equals('foo')); | 682 unittest.expect(o.instanceId, unittest.equals('foo')); |
627 unittest.expect(o.lastLoginAt, unittest.equals('foo')); | 683 unittest.expect(o.lastLoginAt, unittest.equals('foo')); |
628 unittest.expect(o.localId, unittest.equals('foo')); | 684 unittest.expect(o.localId, unittest.equals('foo')); |
629 unittest.expect(o.oobCode, unittest.equals('foo')); | 685 unittest.expect(o.oobCode, unittest.equals('foo')); |
630 unittest.expect(o.password, unittest.equals('foo')); | 686 unittest.expect(o.password, unittest.equals('foo')); |
631 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 687 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
632 unittest.expect(o.photoUrl, unittest.equals('foo')); | 688 unittest.expect(o.photoUrl, unittest.equals('foo')); |
633 checkUnnamed2464(o.provider); | 689 checkUnnamed2451(o.provider); |
634 unittest.expect(o.returnSecureToken, unittest.isTrue); | 690 unittest.expect(o.returnSecureToken, unittest.isTrue); |
635 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); | 691 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); |
636 unittest.expect(o.validSince, unittest.equals('foo')); | 692 unittest.expect(o.validSince, unittest.equals('foo')); |
637 } | 693 } |
638 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; | 694 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; |
639 } | 695 } |
640 | 696 |
641 buildUnnamed2465() { | 697 buildUnnamed2452() { |
642 var o = new core.List<core.String>(); | 698 var o = new core.List<core.String>(); |
643 o.add("foo"); | 699 o.add("foo"); |
644 o.add("foo"); | 700 o.add("foo"); |
645 return o; | 701 return o; |
646 } | 702 } |
647 | 703 |
648 checkUnnamed2465(core.List<core.String> o) { | 704 checkUnnamed2452(core.List<core.String> o) { |
649 unittest.expect(o, unittest.hasLength(2)); | 705 unittest.expect(o, unittest.hasLength(2)); |
650 unittest.expect(o[0], unittest.equals('foo')); | 706 unittest.expect(o[0], unittest.equals('foo')); |
651 unittest.expect(o[1], unittest.equals('foo')); | 707 unittest.expect(o[1], unittest.equals('foo')); |
652 } | 708 } |
653 | 709 |
654 buildUnnamed2466() { | 710 buildUnnamed2453() { |
655 var o = new core.List<api.IdpConfig>(); | 711 var o = new core.List<api.IdpConfig>(); |
656 o.add(buildIdpConfig()); | 712 o.add(buildIdpConfig()); |
657 o.add(buildIdpConfig()); | 713 o.add(buildIdpConfig()); |
658 return o; | 714 return o; |
659 } | 715 } |
660 | 716 |
661 checkUnnamed2466(core.List<api.IdpConfig> o) { | 717 checkUnnamed2453(core.List<api.IdpConfig> o) { |
662 unittest.expect(o, unittest.hasLength(2)); | 718 unittest.expect(o, unittest.hasLength(2)); |
663 checkIdpConfig(o[0]); | 719 checkIdpConfig(o[0]); |
664 checkIdpConfig(o[1]); | 720 checkIdpConfig(o[1]); |
665 } | 721 } |
666 | 722 |
667 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest = 0; | 723 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest = 0; |
668 buildIdentitytoolkitRelyingpartySetProjectConfigRequest() { | 724 buildIdentitytoolkitRelyingpartySetProjectConfigRequest() { |
669 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest(); | 725 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest(); |
670 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; | 726 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; |
671 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { | 727 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { |
672 o.allowPasswordUser = true; | 728 o.allowPasswordUser = true; |
673 o.apiKey = "foo"; | 729 o.apiKey = "foo"; |
674 o.authorizedDomains = buildUnnamed2465(); | 730 o.authorizedDomains = buildUnnamed2452(); |
675 o.changeEmailTemplate = buildEmailTemplate(); | 731 o.changeEmailTemplate = buildEmailTemplate(); |
676 o.delegatedProjectNumber = "foo"; | 732 o.delegatedProjectNumber = "foo"; |
677 o.enableAnonymousUser = true; | 733 o.enableAnonymousUser = true; |
678 o.idpConfig = buildUnnamed2466(); | 734 o.idpConfig = buildUnnamed2453(); |
679 o.legacyResetPasswordTemplate = buildEmailTemplate(); | 735 o.legacyResetPasswordTemplate = buildEmailTemplate(); |
680 o.resetPasswordTemplate = buildEmailTemplate(); | 736 o.resetPasswordTemplate = buildEmailTemplate(); |
681 o.useEmailSending = true; | 737 o.useEmailSending = true; |
682 o.verifyEmailTemplate = buildEmailTemplate(); | 738 o.verifyEmailTemplate = buildEmailTemplate(); |
683 } | 739 } |
684 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; | 740 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; |
685 return o; | 741 return o; |
686 } | 742 } |
687 | 743 |
688 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(api.IdentitytoolkitRelyi
ngpartySetProjectConfigRequest o) { | 744 checkIdentitytoolkitRelyingpartySetProjectConfigRequest( |
| 745 api.IdentitytoolkitRelyingpartySetProjectConfigRequest o) { |
689 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; | 746 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; |
690 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { | 747 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { |
691 unittest.expect(o.allowPasswordUser, unittest.isTrue); | 748 unittest.expect(o.allowPasswordUser, unittest.isTrue); |
692 unittest.expect(o.apiKey, unittest.equals('foo')); | 749 unittest.expect(o.apiKey, unittest.equals('foo')); |
693 checkUnnamed2465(o.authorizedDomains); | 750 checkUnnamed2452(o.authorizedDomains); |
694 checkEmailTemplate(o.changeEmailTemplate); | 751 checkEmailTemplate(o.changeEmailTemplate); |
695 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 752 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
696 unittest.expect(o.enableAnonymousUser, unittest.isTrue); | 753 unittest.expect(o.enableAnonymousUser, unittest.isTrue); |
697 checkUnnamed2466(o.idpConfig); | 754 checkUnnamed2453(o.idpConfig); |
698 checkEmailTemplate(o.legacyResetPasswordTemplate); | 755 checkEmailTemplate(o.legacyResetPasswordTemplate); |
699 checkEmailTemplate(o.resetPasswordTemplate); | 756 checkEmailTemplate(o.resetPasswordTemplate); |
700 unittest.expect(o.useEmailSending, unittest.isTrue); | 757 unittest.expect(o.useEmailSending, unittest.isTrue); |
701 checkEmailTemplate(o.verifyEmailTemplate); | 758 checkEmailTemplate(o.verifyEmailTemplate); |
702 } | 759 } |
703 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; | 760 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; |
704 } | 761 } |
705 | 762 |
706 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse = 0; | 763 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse = 0; |
707 buildIdentitytoolkitRelyingpartySetProjectConfigResponse() { | 764 buildIdentitytoolkitRelyingpartySetProjectConfigResponse() { |
708 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigResponse(); | 765 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigResponse(); |
709 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; | 766 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; |
710 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { | 767 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { |
711 o.projectId = "foo"; | 768 o.projectId = "foo"; |
712 } | 769 } |
713 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; | 770 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; |
714 return o; | 771 return o; |
715 } | 772 } |
716 | 773 |
717 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(api.IdentitytoolkitRely
ingpartySetProjectConfigResponse o) { | 774 checkIdentitytoolkitRelyingpartySetProjectConfigResponse( |
| 775 api.IdentitytoolkitRelyingpartySetProjectConfigResponse o) { |
718 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; | 776 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse++; |
719 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { | 777 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse < 3) { |
720 unittest.expect(o.projectId, unittest.equals('foo')); | 778 unittest.expect(o.projectId, unittest.equals('foo')); |
721 } | 779 } |
722 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; | 780 buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse--; |
723 } | 781 } |
724 | 782 |
725 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserRequest = 0; | 783 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserRequest = 0; |
726 buildIdentitytoolkitRelyingpartySignOutUserRequest() { | 784 buildIdentitytoolkitRelyingpartySignOutUserRequest() { |
727 var o = new api.IdentitytoolkitRelyingpartySignOutUserRequest(); | 785 var o = new api.IdentitytoolkitRelyingpartySignOutUserRequest(); |
728 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; | 786 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; |
729 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { | 787 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { |
730 o.instanceId = "foo"; | 788 o.instanceId = "foo"; |
731 o.localId = "foo"; | 789 o.localId = "foo"; |
732 } | 790 } |
733 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; | 791 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; |
734 return o; | 792 return o; |
735 } | 793 } |
736 | 794 |
737 checkIdentitytoolkitRelyingpartySignOutUserRequest(api.IdentitytoolkitRelyingpar
tySignOutUserRequest o) { | 795 checkIdentitytoolkitRelyingpartySignOutUserRequest( |
| 796 api.IdentitytoolkitRelyingpartySignOutUserRequest o) { |
738 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; | 797 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest++; |
739 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { | 798 if (buildCounterIdentitytoolkitRelyingpartySignOutUserRequest < 3) { |
740 unittest.expect(o.instanceId, unittest.equals('foo')); | 799 unittest.expect(o.instanceId, unittest.equals('foo')); |
741 unittest.expect(o.localId, unittest.equals('foo')); | 800 unittest.expect(o.localId, unittest.equals('foo')); |
742 } | 801 } |
743 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; | 802 buildCounterIdentitytoolkitRelyingpartySignOutUserRequest--; |
744 } | 803 } |
745 | 804 |
746 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserResponse = 0; | 805 core.int buildCounterIdentitytoolkitRelyingpartySignOutUserResponse = 0; |
747 buildIdentitytoolkitRelyingpartySignOutUserResponse() { | 806 buildIdentitytoolkitRelyingpartySignOutUserResponse() { |
748 var o = new api.IdentitytoolkitRelyingpartySignOutUserResponse(); | 807 var o = new api.IdentitytoolkitRelyingpartySignOutUserResponse(); |
749 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; | 808 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; |
750 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { | 809 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { |
751 o.localId = "foo"; | 810 o.localId = "foo"; |
752 } | 811 } |
753 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; | 812 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; |
754 return o; | 813 return o; |
755 } | 814 } |
756 | 815 |
757 checkIdentitytoolkitRelyingpartySignOutUserResponse(api.IdentitytoolkitRelyingpa
rtySignOutUserResponse o) { | 816 checkIdentitytoolkitRelyingpartySignOutUserResponse( |
| 817 api.IdentitytoolkitRelyingpartySignOutUserResponse o) { |
758 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; | 818 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse++; |
759 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { | 819 if (buildCounterIdentitytoolkitRelyingpartySignOutUserResponse < 3) { |
760 unittest.expect(o.localId, unittest.equals('foo')); | 820 unittest.expect(o.localId, unittest.equals('foo')); |
761 } | 821 } |
762 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; | 822 buildCounterIdentitytoolkitRelyingpartySignOutUserResponse--; |
763 } | 823 } |
764 | 824 |
765 core.int buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest = 0; | 825 core.int buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest = 0; |
766 buildIdentitytoolkitRelyingpartySignupNewUserRequest() { | 826 buildIdentitytoolkitRelyingpartySignupNewUserRequest() { |
767 var o = new api.IdentitytoolkitRelyingpartySignupNewUserRequest(); | 827 var o = new api.IdentitytoolkitRelyingpartySignupNewUserRequest(); |
768 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; | 828 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; |
769 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { | 829 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { |
770 o.captchaChallenge = "foo"; | 830 o.captchaChallenge = "foo"; |
771 o.captchaResponse = "foo"; | 831 o.captchaResponse = "foo"; |
772 o.disabled = true; | 832 o.disabled = true; |
773 o.displayName = "foo"; | 833 o.displayName = "foo"; |
774 o.email = "foo"; | 834 o.email = "foo"; |
775 o.emailVerified = true; | 835 o.emailVerified = true; |
776 o.idToken = "foo"; | 836 o.idToken = "foo"; |
777 o.instanceId = "foo"; | 837 o.instanceId = "foo"; |
778 o.localId = "foo"; | 838 o.localId = "foo"; |
779 o.password = "foo"; | 839 o.password = "foo"; |
780 o.phoneNumber = "foo"; | 840 o.phoneNumber = "foo"; |
781 o.photoUrl = "foo"; | 841 o.photoUrl = "foo"; |
782 } | 842 } |
783 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; | 843 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; |
784 return o; | 844 return o; |
785 } | 845 } |
786 | 846 |
787 checkIdentitytoolkitRelyingpartySignupNewUserRequest(api.IdentitytoolkitRelyingp
artySignupNewUserRequest o) { | 847 checkIdentitytoolkitRelyingpartySignupNewUserRequest( |
| 848 api.IdentitytoolkitRelyingpartySignupNewUserRequest o) { |
788 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; | 849 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest++; |
789 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { | 850 if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { |
790 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 851 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
791 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 852 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
792 unittest.expect(o.disabled, unittest.isTrue); | 853 unittest.expect(o.disabled, unittest.isTrue); |
793 unittest.expect(o.displayName, unittest.equals('foo')); | 854 unittest.expect(o.displayName, unittest.equals('foo')); |
794 unittest.expect(o.email, unittest.equals('foo')); | 855 unittest.expect(o.email, unittest.equals('foo')); |
795 unittest.expect(o.emailVerified, unittest.isTrue); | 856 unittest.expect(o.emailVerified, unittest.isTrue); |
796 unittest.expect(o.idToken, unittest.equals('foo')); | 857 unittest.expect(o.idToken, unittest.equals('foo')); |
797 unittest.expect(o.instanceId, unittest.equals('foo')); | 858 unittest.expect(o.instanceId, unittest.equals('foo')); |
798 unittest.expect(o.localId, unittest.equals('foo')); | 859 unittest.expect(o.localId, unittest.equals('foo')); |
799 unittest.expect(o.password, unittest.equals('foo')); | 860 unittest.expect(o.password, unittest.equals('foo')); |
800 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 861 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
801 unittest.expect(o.photoUrl, unittest.equals('foo')); | 862 unittest.expect(o.photoUrl, unittest.equals('foo')); |
802 } | 863 } |
803 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; | 864 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; |
804 } | 865 } |
805 | 866 |
806 buildUnnamed2467() { | 867 buildUnnamed2454() { |
807 var o = new core.List<api.UserInfo>(); | 868 var o = new core.List<api.UserInfo>(); |
808 o.add(buildUserInfo()); | 869 o.add(buildUserInfo()); |
809 o.add(buildUserInfo()); | 870 o.add(buildUserInfo()); |
810 return o; | 871 return o; |
811 } | 872 } |
812 | 873 |
813 checkUnnamed2467(core.List<api.UserInfo> o) { | 874 checkUnnamed2454(core.List<api.UserInfo> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 875 unittest.expect(o, unittest.hasLength(2)); |
815 checkUserInfo(o[0]); | 876 checkUserInfo(o[0]); |
816 checkUserInfo(o[1]); | 877 checkUserInfo(o[1]); |
817 } | 878 } |
818 | 879 |
819 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; | 880 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; |
820 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { | 881 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { |
821 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); | 882 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); |
822 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 883 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
823 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 884 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
824 o.allowOverwrite = true; | 885 o.allowOverwrite = true; |
| 886 o.blockSize = 42; |
| 887 o.cpuMemCost = 42; |
825 o.delegatedProjectNumber = "foo"; | 888 o.delegatedProjectNumber = "foo"; |
| 889 o.dkLen = 42; |
826 o.hashAlgorithm = "foo"; | 890 o.hashAlgorithm = "foo"; |
827 o.memoryCost = 42; | 891 o.memoryCost = 42; |
| 892 o.parallelization = 42; |
828 o.rounds = 42; | 893 o.rounds = 42; |
829 o.saltSeparator = "foo"; | 894 o.saltSeparator = "foo"; |
830 o.sanityCheck = true; | 895 o.sanityCheck = true; |
831 o.signerKey = "foo"; | 896 o.signerKey = "foo"; |
832 o.targetProjectId = "foo"; | 897 o.targetProjectId = "foo"; |
833 o.users = buildUnnamed2467(); | 898 o.users = buildUnnamed2454(); |
834 } | 899 } |
835 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 900 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
836 return o; | 901 return o; |
837 } | 902 } |
838 | 903 |
839 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp
artyUploadAccountRequest o) { | 904 checkIdentitytoolkitRelyingpartyUploadAccountRequest( |
| 905 api.IdentitytoolkitRelyingpartyUploadAccountRequest o) { |
840 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; | 906 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; |
841 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { | 907 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { |
842 unittest.expect(o.allowOverwrite, unittest.isTrue); | 908 unittest.expect(o.allowOverwrite, unittest.isTrue); |
| 909 unittest.expect(o.blockSize, unittest.equals(42)); |
| 910 unittest.expect(o.cpuMemCost, unittest.equals(42)); |
843 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 911 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
| 912 unittest.expect(o.dkLen, unittest.equals(42)); |
844 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); | 913 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); |
845 unittest.expect(o.memoryCost, unittest.equals(42)); | 914 unittest.expect(o.memoryCost, unittest.equals(42)); |
| 915 unittest.expect(o.parallelization, unittest.equals(42)); |
846 unittest.expect(o.rounds, unittest.equals(42)); | 916 unittest.expect(o.rounds, unittest.equals(42)); |
847 unittest.expect(o.saltSeparator, unittest.equals('foo')); | 917 unittest.expect(o.saltSeparator, unittest.equals('foo')); |
848 unittest.expect(o.sanityCheck, unittest.isTrue); | 918 unittest.expect(o.sanityCheck, unittest.isTrue); |
849 unittest.expect(o.signerKey, unittest.equals('foo')); | 919 unittest.expect(o.signerKey, unittest.equals('foo')); |
850 unittest.expect(o.targetProjectId, unittest.equals('foo')); | 920 unittest.expect(o.targetProjectId, unittest.equals('foo')); |
851 checkUnnamed2467(o.users); | 921 checkUnnamed2454(o.users); |
852 } | 922 } |
853 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; | 923 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; |
854 } | 924 } |
855 | 925 |
856 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; | 926 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; |
857 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { | 927 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { |
858 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); | 928 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
859 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; | 929 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; |
860 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { | 930 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { |
861 o.autoCreate = true; | 931 o.autoCreate = true; |
862 o.delegatedProjectNumber = "foo"; | 932 o.delegatedProjectNumber = "foo"; |
863 o.idToken = "foo"; | 933 o.idToken = "foo"; |
864 o.instanceId = "foo"; | 934 o.instanceId = "foo"; |
865 o.pendingIdToken = "foo"; | 935 o.pendingIdToken = "foo"; |
866 o.postBody = "foo"; | 936 o.postBody = "foo"; |
867 o.requestUri = "foo"; | 937 o.requestUri = "foo"; |
868 o.returnIdpCredential = true; | 938 o.returnIdpCredential = true; |
869 o.returnRefreshToken = true; | 939 o.returnRefreshToken = true; |
870 o.returnSecureToken = true; | 940 o.returnSecureToken = true; |
871 o.sessionId = "foo"; | 941 o.sessionId = "foo"; |
872 } | 942 } |
873 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; | 943 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; |
874 return o; | 944 return o; |
875 } | 945 } |
876 | 946 |
877 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(api.IdentitytoolkitRelyin
gpartyVerifyAssertionRequest o) { | 947 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest( |
| 948 api.IdentitytoolkitRelyingpartyVerifyAssertionRequest o) { |
878 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; | 949 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; |
879 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { | 950 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { |
880 unittest.expect(o.autoCreate, unittest.isTrue); | 951 unittest.expect(o.autoCreate, unittest.isTrue); |
881 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 952 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
882 unittest.expect(o.idToken, unittest.equals('foo')); | 953 unittest.expect(o.idToken, unittest.equals('foo')); |
883 unittest.expect(o.instanceId, unittest.equals('foo')); | 954 unittest.expect(o.instanceId, unittest.equals('foo')); |
884 unittest.expect(o.pendingIdToken, unittest.equals('foo')); | 955 unittest.expect(o.pendingIdToken, unittest.equals('foo')); |
885 unittest.expect(o.postBody, unittest.equals('foo')); | 956 unittest.expect(o.postBody, unittest.equals('foo')); |
886 unittest.expect(o.requestUri, unittest.equals('foo')); | 957 unittest.expect(o.requestUri, unittest.equals('foo')); |
887 unittest.expect(o.returnIdpCredential, unittest.isTrue); | 958 unittest.expect(o.returnIdpCredential, unittest.isTrue); |
(...skipping 11 matching lines...) Expand all Loading... |
899 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { | 970 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { |
900 o.delegatedProjectNumber = "foo"; | 971 o.delegatedProjectNumber = "foo"; |
901 o.instanceId = "foo"; | 972 o.instanceId = "foo"; |
902 o.returnSecureToken = true; | 973 o.returnSecureToken = true; |
903 o.token = "foo"; | 974 o.token = "foo"; |
904 } | 975 } |
905 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; | 976 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; |
906 return o; | 977 return o; |
907 } | 978 } |
908 | 979 |
909 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(api.IdentitytoolkitRely
ingpartyVerifyCustomTokenRequest o) { | 980 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest( |
| 981 api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest o) { |
910 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; | 982 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest++; |
911 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { | 983 if (buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest < 3) { |
912 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 984 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
913 unittest.expect(o.instanceId, unittest.equals('foo')); | 985 unittest.expect(o.instanceId, unittest.equals('foo')); |
914 unittest.expect(o.returnSecureToken, unittest.isTrue); | 986 unittest.expect(o.returnSecureToken, unittest.isTrue); |
915 unittest.expect(o.token, unittest.equals('foo')); | 987 unittest.expect(o.token, unittest.equals('foo')); |
916 } | 988 } |
917 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; | 989 buildCounterIdentitytoolkitRelyingpartyVerifyCustomTokenRequest--; |
918 } | 990 } |
919 | 991 |
920 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest = 0; | 992 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest = 0; |
921 buildIdentitytoolkitRelyingpartyVerifyPasswordRequest() { | 993 buildIdentitytoolkitRelyingpartyVerifyPasswordRequest() { |
922 var o = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 994 var o = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
923 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; | 995 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; |
924 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { | 996 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { |
925 o.captchaChallenge = "foo"; | 997 o.captchaChallenge = "foo"; |
926 o.captchaResponse = "foo"; | 998 o.captchaResponse = "foo"; |
927 o.delegatedProjectNumber = "foo"; | 999 o.delegatedProjectNumber = "foo"; |
928 o.email = "foo"; | 1000 o.email = "foo"; |
929 o.idToken = "foo"; | 1001 o.idToken = "foo"; |
930 o.instanceId = "foo"; | 1002 o.instanceId = "foo"; |
931 o.password = "foo"; | 1003 o.password = "foo"; |
932 o.pendingIdToken = "foo"; | 1004 o.pendingIdToken = "foo"; |
933 o.returnSecureToken = true; | 1005 o.returnSecureToken = true; |
934 } | 1006 } |
935 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; | 1007 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; |
936 return o; | 1008 return o; |
937 } | 1009 } |
938 | 1010 |
939 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(api.IdentitytoolkitRelying
partyVerifyPasswordRequest o) { | 1011 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest( |
| 1012 api.IdentitytoolkitRelyingpartyVerifyPasswordRequest o) { |
940 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; | 1013 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest++; |
941 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { | 1014 if (buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest < 3) { |
942 unittest.expect(o.captchaChallenge, unittest.equals('foo')); | 1015 unittest.expect(o.captchaChallenge, unittest.equals('foo')); |
943 unittest.expect(o.captchaResponse, unittest.equals('foo')); | 1016 unittest.expect(o.captchaResponse, unittest.equals('foo')); |
944 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); | 1017 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); |
945 unittest.expect(o.email, unittest.equals('foo')); | 1018 unittest.expect(o.email, unittest.equals('foo')); |
946 unittest.expect(o.idToken, unittest.equals('foo')); | 1019 unittest.expect(o.idToken, unittest.equals('foo')); |
947 unittest.expect(o.instanceId, unittest.equals('foo')); | 1020 unittest.expect(o.instanceId, unittest.equals('foo')); |
948 unittest.expect(o.password, unittest.equals('foo')); | 1021 unittest.expect(o.password, unittest.equals('foo')); |
949 unittest.expect(o.pendingIdToken, unittest.equals('foo')); | 1022 unittest.expect(o.pendingIdToken, unittest.equals('foo')); |
950 unittest.expect(o.returnSecureToken, unittest.isTrue); | 1023 unittest.expect(o.returnSecureToken, unittest.isTrue); |
951 } | 1024 } |
952 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; | 1025 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; |
953 } | 1026 } |
954 | 1027 |
955 buildUnnamed2468() { | 1028 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest = 0; |
| 1029 buildIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest() { |
| 1030 var o = new api.IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest(); |
| 1031 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest++; |
| 1032 if (buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest < 3) { |
| 1033 o.code = "foo"; |
| 1034 o.idToken = "foo"; |
| 1035 o.operation = "foo"; |
| 1036 o.phoneNumber = "foo"; |
| 1037 o.sessionInfo = "foo"; |
| 1038 o.temporaryProof = "foo"; |
| 1039 o.verificationProof = "foo"; |
| 1040 } |
| 1041 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest--; |
| 1042 return o; |
| 1043 } |
| 1044 |
| 1045 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest( |
| 1046 api.IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest o) { |
| 1047 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest++; |
| 1048 if (buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest < 3) { |
| 1049 unittest.expect(o.code, unittest.equals('foo')); |
| 1050 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1051 unittest.expect(o.operation, unittest.equals('foo')); |
| 1052 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 1053 unittest.expect(o.sessionInfo, unittest.equals('foo')); |
| 1054 unittest.expect(o.temporaryProof, unittest.equals('foo')); |
| 1055 unittest.expect(o.verificationProof, unittest.equals('foo')); |
| 1056 } |
| 1057 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest--; |
| 1058 } |
| 1059 |
| 1060 core.int buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse = 0; |
| 1061 buildIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse() { |
| 1062 var o = new api.IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse(); |
| 1063 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse++; |
| 1064 if (buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse < 3) { |
| 1065 o.expiresIn = "foo"; |
| 1066 o.idToken = "foo"; |
| 1067 o.isNewUser = true; |
| 1068 o.localId = "foo"; |
| 1069 o.phoneNumber = "foo"; |
| 1070 o.refreshToken = "foo"; |
| 1071 o.temporaryProof = "foo"; |
| 1072 o.temporaryProofExpiresIn = "foo"; |
| 1073 o.verificationProof = "foo"; |
| 1074 o.verificationProofExpiresIn = "foo"; |
| 1075 } |
| 1076 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse--; |
| 1077 return o; |
| 1078 } |
| 1079 |
| 1080 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse( |
| 1081 api.IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse o) { |
| 1082 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse++; |
| 1083 if (buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse < 3) { |
| 1084 unittest.expect(o.expiresIn, unittest.equals('foo')); |
| 1085 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1086 unittest.expect(o.isNewUser, unittest.isTrue); |
| 1087 unittest.expect(o.localId, unittest.equals('foo')); |
| 1088 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
| 1089 unittest.expect(o.refreshToken, unittest.equals('foo')); |
| 1090 unittest.expect(o.temporaryProof, unittest.equals('foo')); |
| 1091 unittest.expect(o.temporaryProofExpiresIn, unittest.equals('foo')); |
| 1092 unittest.expect(o.verificationProof, unittest.equals('foo')); |
| 1093 unittest.expect(o.verificationProofExpiresIn, unittest.equals('foo')); |
| 1094 } |
| 1095 buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse--; |
| 1096 } |
| 1097 |
| 1098 buildUnnamed2455() { |
956 var o = new core.List<core.String>(); | 1099 var o = new core.List<core.String>(); |
957 o.add("foo"); | 1100 o.add("foo"); |
958 o.add("foo"); | 1101 o.add("foo"); |
959 return o; | 1102 return o; |
960 } | 1103 } |
961 | 1104 |
962 checkUnnamed2468(core.List<core.String> o) { | 1105 checkUnnamed2455(core.List<core.String> o) { |
963 unittest.expect(o, unittest.hasLength(2)); | 1106 unittest.expect(o, unittest.hasLength(2)); |
964 unittest.expect(o[0], unittest.equals('foo')); | 1107 unittest.expect(o[0], unittest.equals('foo')); |
965 unittest.expect(o[1], unittest.equals('foo')); | 1108 unittest.expect(o[1], unittest.equals('foo')); |
966 } | 1109 } |
967 | 1110 |
968 core.int buildCounterIdpConfig = 0; | 1111 core.int buildCounterIdpConfig = 0; |
969 buildIdpConfig() { | 1112 buildIdpConfig() { |
970 var o = new api.IdpConfig(); | 1113 var o = new api.IdpConfig(); |
971 buildCounterIdpConfig++; | 1114 buildCounterIdpConfig++; |
972 if (buildCounterIdpConfig < 3) { | 1115 if (buildCounterIdpConfig < 3) { |
973 o.clientId = "foo"; | 1116 o.clientId = "foo"; |
974 o.enabled = true; | 1117 o.enabled = true; |
975 o.experimentPercent = 42; | 1118 o.experimentPercent = 42; |
976 o.provider = "foo"; | 1119 o.provider = "foo"; |
977 o.secret = "foo"; | 1120 o.secret = "foo"; |
978 o.whitelistedAudiences = buildUnnamed2468(); | 1121 o.whitelistedAudiences = buildUnnamed2455(); |
979 } | 1122 } |
980 buildCounterIdpConfig--; | 1123 buildCounterIdpConfig--; |
981 return o; | 1124 return o; |
982 } | 1125 } |
983 | 1126 |
984 checkIdpConfig(api.IdpConfig o) { | 1127 checkIdpConfig(api.IdpConfig o) { |
985 buildCounterIdpConfig++; | 1128 buildCounterIdpConfig++; |
986 if (buildCounterIdpConfig < 3) { | 1129 if (buildCounterIdpConfig < 3) { |
987 unittest.expect(o.clientId, unittest.equals('foo')); | 1130 unittest.expect(o.clientId, unittest.equals('foo')); |
988 unittest.expect(o.enabled, unittest.isTrue); | 1131 unittest.expect(o.enabled, unittest.isTrue); |
989 unittest.expect(o.experimentPercent, unittest.equals(42)); | 1132 unittest.expect(o.experimentPercent, unittest.equals(42)); |
990 unittest.expect(o.provider, unittest.equals('foo')); | 1133 unittest.expect(o.provider, unittest.equals('foo')); |
991 unittest.expect(o.secret, unittest.equals('foo')); | 1134 unittest.expect(o.secret, unittest.equals('foo')); |
992 checkUnnamed2468(o.whitelistedAudiences); | 1135 checkUnnamed2455(o.whitelistedAudiences); |
993 } | 1136 } |
994 buildCounterIdpConfig--; | 1137 buildCounterIdpConfig--; |
995 } | 1138 } |
996 | 1139 |
997 core.int buildCounterRelyingparty = 0; | 1140 core.int buildCounterRelyingparty = 0; |
998 buildRelyingparty() { | 1141 buildRelyingparty() { |
999 var o = new api.Relyingparty(); | 1142 var o = new api.Relyingparty(); |
1000 buildCounterRelyingparty++; | 1143 buildCounterRelyingparty++; |
1001 if (buildCounterRelyingparty < 3) { | 1144 if (buildCounterRelyingparty < 3) { |
1002 o.androidInstallApp = true; | 1145 o.androidInstallApp = true; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { | 1216 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { |
1074 o.displayName = "foo"; | 1217 o.displayName = "foo"; |
1075 o.federatedId = "foo"; | 1218 o.federatedId = "foo"; |
1076 o.photoUrl = "foo"; | 1219 o.photoUrl = "foo"; |
1077 o.providerId = "foo"; | 1220 o.providerId = "foo"; |
1078 } | 1221 } |
1079 buildCounterSetAccountInfoResponseProviderUserInfo--; | 1222 buildCounterSetAccountInfoResponseProviderUserInfo--; |
1080 return o; | 1223 return o; |
1081 } | 1224 } |
1082 | 1225 |
1083 checkSetAccountInfoResponseProviderUserInfo(api.SetAccountInfoResponseProviderUs
erInfo o) { | 1226 checkSetAccountInfoResponseProviderUserInfo( |
| 1227 api.SetAccountInfoResponseProviderUserInfo o) { |
1084 buildCounterSetAccountInfoResponseProviderUserInfo++; | 1228 buildCounterSetAccountInfoResponseProviderUserInfo++; |
1085 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { | 1229 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { |
1086 unittest.expect(o.displayName, unittest.equals('foo')); | 1230 unittest.expect(o.displayName, unittest.equals('foo')); |
1087 unittest.expect(o.federatedId, unittest.equals('foo')); | 1231 unittest.expect(o.federatedId, unittest.equals('foo')); |
1088 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1232 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1089 unittest.expect(o.providerId, unittest.equals('foo')); | 1233 unittest.expect(o.providerId, unittest.equals('foo')); |
1090 } | 1234 } |
1091 buildCounterSetAccountInfoResponseProviderUserInfo--; | 1235 buildCounterSetAccountInfoResponseProviderUserInfo--; |
1092 } | 1236 } |
1093 | 1237 |
1094 buildUnnamed2469() { | 1238 buildUnnamed2456() { |
1095 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); | 1239 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); |
1096 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 1240 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
1097 o.add(buildSetAccountInfoResponseProviderUserInfo()); | 1241 o.add(buildSetAccountInfoResponseProviderUserInfo()); |
1098 return o; | 1242 return o; |
1099 } | 1243 } |
1100 | 1244 |
1101 checkUnnamed2469(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { | 1245 checkUnnamed2456(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { |
1102 unittest.expect(o, unittest.hasLength(2)); | 1246 unittest.expect(o, unittest.hasLength(2)); |
1103 checkSetAccountInfoResponseProviderUserInfo(o[0]); | 1247 checkSetAccountInfoResponseProviderUserInfo(o[0]); |
1104 checkSetAccountInfoResponseProviderUserInfo(o[1]); | 1248 checkSetAccountInfoResponseProviderUserInfo(o[1]); |
1105 } | 1249 } |
1106 | 1250 |
1107 core.int buildCounterSetAccountInfoResponse = 0; | 1251 core.int buildCounterSetAccountInfoResponse = 0; |
1108 buildSetAccountInfoResponse() { | 1252 buildSetAccountInfoResponse() { |
1109 var o = new api.SetAccountInfoResponse(); | 1253 var o = new api.SetAccountInfoResponse(); |
1110 buildCounterSetAccountInfoResponse++; | 1254 buildCounterSetAccountInfoResponse++; |
1111 if (buildCounterSetAccountInfoResponse < 3) { | 1255 if (buildCounterSetAccountInfoResponse < 3) { |
1112 o.displayName = "foo"; | 1256 o.displayName = "foo"; |
1113 o.email = "foo"; | 1257 o.email = "foo"; |
1114 o.emailVerified = true; | 1258 o.emailVerified = true; |
1115 o.expiresIn = "foo"; | 1259 o.expiresIn = "foo"; |
1116 o.idToken = "foo"; | 1260 o.idToken = "foo"; |
1117 o.kind = "foo"; | 1261 o.kind = "foo"; |
1118 o.localId = "foo"; | 1262 o.localId = "foo"; |
1119 o.newEmail = "foo"; | 1263 o.newEmail = "foo"; |
1120 o.passwordHash = "foo"; | 1264 o.passwordHash = "foo"; |
1121 o.photoUrl = "foo"; | 1265 o.photoUrl = "foo"; |
1122 o.providerUserInfo = buildUnnamed2469(); | 1266 o.providerUserInfo = buildUnnamed2456(); |
1123 o.refreshToken = "foo"; | 1267 o.refreshToken = "foo"; |
1124 } | 1268 } |
1125 buildCounterSetAccountInfoResponse--; | 1269 buildCounterSetAccountInfoResponse--; |
1126 return o; | 1270 return o; |
1127 } | 1271 } |
1128 | 1272 |
1129 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { | 1273 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { |
1130 buildCounterSetAccountInfoResponse++; | 1274 buildCounterSetAccountInfoResponse++; |
1131 if (buildCounterSetAccountInfoResponse < 3) { | 1275 if (buildCounterSetAccountInfoResponse < 3) { |
1132 unittest.expect(o.displayName, unittest.equals('foo')); | 1276 unittest.expect(o.displayName, unittest.equals('foo')); |
1133 unittest.expect(o.email, unittest.equals('foo')); | 1277 unittest.expect(o.email, unittest.equals('foo')); |
1134 unittest.expect(o.emailVerified, unittest.isTrue); | 1278 unittest.expect(o.emailVerified, unittest.isTrue); |
1135 unittest.expect(o.expiresIn, unittest.equals('foo')); | 1279 unittest.expect(o.expiresIn, unittest.equals('foo')); |
1136 unittest.expect(o.idToken, unittest.equals('foo')); | 1280 unittest.expect(o.idToken, unittest.equals('foo')); |
1137 unittest.expect(o.kind, unittest.equals('foo')); | 1281 unittest.expect(o.kind, unittest.equals('foo')); |
1138 unittest.expect(o.localId, unittest.equals('foo')); | 1282 unittest.expect(o.localId, unittest.equals('foo')); |
1139 unittest.expect(o.newEmail, unittest.equals('foo')); | 1283 unittest.expect(o.newEmail, unittest.equals('foo')); |
1140 unittest.expect(o.passwordHash, unittest.equals('foo')); | 1284 unittest.expect(o.passwordHash, unittest.equals('foo')); |
1141 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1285 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1142 checkUnnamed2469(o.providerUserInfo); | 1286 checkUnnamed2456(o.providerUserInfo); |
1143 unittest.expect(o.refreshToken, unittest.equals('foo')); | 1287 unittest.expect(o.refreshToken, unittest.equals('foo')); |
1144 } | 1288 } |
1145 buildCounterSetAccountInfoResponse--; | 1289 buildCounterSetAccountInfoResponse--; |
1146 } | 1290 } |
1147 | 1291 |
1148 core.int buildCounterSignupNewUserResponse = 0; | 1292 core.int buildCounterSignupNewUserResponse = 0; |
1149 buildSignupNewUserResponse() { | 1293 buildSignupNewUserResponse() { |
1150 var o = new api.SignupNewUserResponse(); | 1294 var o = new api.SignupNewUserResponse(); |
1151 buildCounterSignupNewUserResponse++; | 1295 buildCounterSignupNewUserResponse++; |
1152 if (buildCounterSignupNewUserResponse < 3) { | 1296 if (buildCounterSignupNewUserResponse < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 | 1334 |
1191 checkUploadAccountResponseError(api.UploadAccountResponseError o) { | 1335 checkUploadAccountResponseError(api.UploadAccountResponseError o) { |
1192 buildCounterUploadAccountResponseError++; | 1336 buildCounterUploadAccountResponseError++; |
1193 if (buildCounterUploadAccountResponseError < 3) { | 1337 if (buildCounterUploadAccountResponseError < 3) { |
1194 unittest.expect(o.index, unittest.equals(42)); | 1338 unittest.expect(o.index, unittest.equals(42)); |
1195 unittest.expect(o.message, unittest.equals('foo')); | 1339 unittest.expect(o.message, unittest.equals('foo')); |
1196 } | 1340 } |
1197 buildCounterUploadAccountResponseError--; | 1341 buildCounterUploadAccountResponseError--; |
1198 } | 1342 } |
1199 | 1343 |
1200 buildUnnamed2470() { | 1344 buildUnnamed2457() { |
1201 var o = new core.List<api.UploadAccountResponseError>(); | 1345 var o = new core.List<api.UploadAccountResponseError>(); |
1202 o.add(buildUploadAccountResponseError()); | 1346 o.add(buildUploadAccountResponseError()); |
1203 o.add(buildUploadAccountResponseError()); | 1347 o.add(buildUploadAccountResponseError()); |
1204 return o; | 1348 return o; |
1205 } | 1349 } |
1206 | 1350 |
1207 checkUnnamed2470(core.List<api.UploadAccountResponseError> o) { | 1351 checkUnnamed2457(core.List<api.UploadAccountResponseError> o) { |
1208 unittest.expect(o, unittest.hasLength(2)); | 1352 unittest.expect(o, unittest.hasLength(2)); |
1209 checkUploadAccountResponseError(o[0]); | 1353 checkUploadAccountResponseError(o[0]); |
1210 checkUploadAccountResponseError(o[1]); | 1354 checkUploadAccountResponseError(o[1]); |
1211 } | 1355 } |
1212 | 1356 |
1213 core.int buildCounterUploadAccountResponse = 0; | 1357 core.int buildCounterUploadAccountResponse = 0; |
1214 buildUploadAccountResponse() { | 1358 buildUploadAccountResponse() { |
1215 var o = new api.UploadAccountResponse(); | 1359 var o = new api.UploadAccountResponse(); |
1216 buildCounterUploadAccountResponse++; | 1360 buildCounterUploadAccountResponse++; |
1217 if (buildCounterUploadAccountResponse < 3) { | 1361 if (buildCounterUploadAccountResponse < 3) { |
1218 o.error = buildUnnamed2470(); | 1362 o.error = buildUnnamed2457(); |
1219 o.kind = "foo"; | 1363 o.kind = "foo"; |
1220 } | 1364 } |
1221 buildCounterUploadAccountResponse--; | 1365 buildCounterUploadAccountResponse--; |
1222 return o; | 1366 return o; |
1223 } | 1367 } |
1224 | 1368 |
1225 checkUploadAccountResponse(api.UploadAccountResponse o) { | 1369 checkUploadAccountResponse(api.UploadAccountResponse o) { |
1226 buildCounterUploadAccountResponse++; | 1370 buildCounterUploadAccountResponse++; |
1227 if (buildCounterUploadAccountResponse < 3) { | 1371 if (buildCounterUploadAccountResponse < 3) { |
1228 checkUnnamed2470(o.error); | 1372 checkUnnamed2457(o.error); |
1229 unittest.expect(o.kind, unittest.equals('foo')); | 1373 unittest.expect(o.kind, unittest.equals('foo')); |
1230 } | 1374 } |
1231 buildCounterUploadAccountResponse--; | 1375 buildCounterUploadAccountResponse--; |
1232 } | 1376 } |
1233 | 1377 |
1234 core.int buildCounterUserInfoProviderUserInfo = 0; | 1378 core.int buildCounterUserInfoProviderUserInfo = 0; |
1235 buildUserInfoProviderUserInfo() { | 1379 buildUserInfoProviderUserInfo() { |
1236 var o = new api.UserInfoProviderUserInfo(); | 1380 var o = new api.UserInfoProviderUserInfo(); |
1237 buildCounterUserInfoProviderUserInfo++; | 1381 buildCounterUserInfoProviderUserInfo++; |
1238 if (buildCounterUserInfoProviderUserInfo < 3) { | 1382 if (buildCounterUserInfoProviderUserInfo < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
1257 unittest.expect(o.federatedId, unittest.equals('foo')); | 1401 unittest.expect(o.federatedId, unittest.equals('foo')); |
1258 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 1402 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
1259 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1403 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1260 unittest.expect(o.providerId, unittest.equals('foo')); | 1404 unittest.expect(o.providerId, unittest.equals('foo')); |
1261 unittest.expect(o.rawId, unittest.equals('foo')); | 1405 unittest.expect(o.rawId, unittest.equals('foo')); |
1262 unittest.expect(o.screenName, unittest.equals('foo')); | 1406 unittest.expect(o.screenName, unittest.equals('foo')); |
1263 } | 1407 } |
1264 buildCounterUserInfoProviderUserInfo--; | 1408 buildCounterUserInfoProviderUserInfo--; |
1265 } | 1409 } |
1266 | 1410 |
1267 buildUnnamed2471() { | 1411 buildUnnamed2458() { |
1268 var o = new core.List<api.UserInfoProviderUserInfo>(); | 1412 var o = new core.List<api.UserInfoProviderUserInfo>(); |
1269 o.add(buildUserInfoProviderUserInfo()); | 1413 o.add(buildUserInfoProviderUserInfo()); |
1270 o.add(buildUserInfoProviderUserInfo()); | 1414 o.add(buildUserInfoProviderUserInfo()); |
1271 return o; | 1415 return o; |
1272 } | 1416 } |
1273 | 1417 |
1274 checkUnnamed2471(core.List<api.UserInfoProviderUserInfo> o) { | 1418 checkUnnamed2458(core.List<api.UserInfoProviderUserInfo> o) { |
1275 unittest.expect(o, unittest.hasLength(2)); | 1419 unittest.expect(o, unittest.hasLength(2)); |
1276 checkUserInfoProviderUserInfo(o[0]); | 1420 checkUserInfoProviderUserInfo(o[0]); |
1277 checkUserInfoProviderUserInfo(o[1]); | 1421 checkUserInfoProviderUserInfo(o[1]); |
1278 } | 1422 } |
1279 | 1423 |
1280 core.int buildCounterUserInfo = 0; | 1424 core.int buildCounterUserInfo = 0; |
1281 buildUserInfo() { | 1425 buildUserInfo() { |
1282 var o = new api.UserInfo(); | 1426 var o = new api.UserInfo(); |
1283 buildCounterUserInfo++; | 1427 buildCounterUserInfo++; |
1284 if (buildCounterUserInfo < 3) { | 1428 if (buildCounterUserInfo < 3) { |
1285 o.createdAt = "foo"; | 1429 o.createdAt = "foo"; |
| 1430 o.customAttributes = "foo"; |
1286 o.customAuth = true; | 1431 o.customAuth = true; |
1287 o.disabled = true; | 1432 o.disabled = true; |
1288 o.displayName = "foo"; | 1433 o.displayName = "foo"; |
1289 o.email = "foo"; | 1434 o.email = "foo"; |
1290 o.emailVerified = true; | 1435 o.emailVerified = true; |
1291 o.lastLoginAt = "foo"; | 1436 o.lastLoginAt = "foo"; |
1292 o.localId = "foo"; | 1437 o.localId = "foo"; |
1293 o.passwordHash = "foo"; | 1438 o.passwordHash = "foo"; |
1294 o.passwordUpdatedAt = 42.0; | 1439 o.passwordUpdatedAt = 42.0; |
1295 o.phoneNumber = "foo"; | 1440 o.phoneNumber = "foo"; |
1296 o.photoUrl = "foo"; | 1441 o.photoUrl = "foo"; |
1297 o.providerUserInfo = buildUnnamed2471(); | 1442 o.providerUserInfo = buildUnnamed2458(); |
1298 o.rawPassword = "foo"; | 1443 o.rawPassword = "foo"; |
1299 o.salt = "foo"; | 1444 o.salt = "foo"; |
1300 o.screenName = "foo"; | 1445 o.screenName = "foo"; |
1301 o.validSince = "foo"; | 1446 o.validSince = "foo"; |
1302 o.version = 42; | 1447 o.version = 42; |
1303 } | 1448 } |
1304 buildCounterUserInfo--; | 1449 buildCounterUserInfo--; |
1305 return o; | 1450 return o; |
1306 } | 1451 } |
1307 | 1452 |
1308 checkUserInfo(api.UserInfo o) { | 1453 checkUserInfo(api.UserInfo o) { |
1309 buildCounterUserInfo++; | 1454 buildCounterUserInfo++; |
1310 if (buildCounterUserInfo < 3) { | 1455 if (buildCounterUserInfo < 3) { |
1311 unittest.expect(o.createdAt, unittest.equals('foo')); | 1456 unittest.expect(o.createdAt, unittest.equals('foo')); |
| 1457 unittest.expect(o.customAttributes, unittest.equals('foo')); |
1312 unittest.expect(o.customAuth, unittest.isTrue); | 1458 unittest.expect(o.customAuth, unittest.isTrue); |
1313 unittest.expect(o.disabled, unittest.isTrue); | 1459 unittest.expect(o.disabled, unittest.isTrue); |
1314 unittest.expect(o.displayName, unittest.equals('foo')); | 1460 unittest.expect(o.displayName, unittest.equals('foo')); |
1315 unittest.expect(o.email, unittest.equals('foo')); | 1461 unittest.expect(o.email, unittest.equals('foo')); |
1316 unittest.expect(o.emailVerified, unittest.isTrue); | 1462 unittest.expect(o.emailVerified, unittest.isTrue); |
1317 unittest.expect(o.lastLoginAt, unittest.equals('foo')); | 1463 unittest.expect(o.lastLoginAt, unittest.equals('foo')); |
1318 unittest.expect(o.localId, unittest.equals('foo')); | 1464 unittest.expect(o.localId, unittest.equals('foo')); |
1319 unittest.expect(o.passwordHash, unittest.equals('foo')); | 1465 unittest.expect(o.passwordHash, unittest.equals('foo')); |
1320 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); | 1466 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); |
1321 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 1467 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
1322 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1468 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1323 checkUnnamed2471(o.providerUserInfo); | 1469 checkUnnamed2458(o.providerUserInfo); |
1324 unittest.expect(o.rawPassword, unittest.equals('foo')); | 1470 unittest.expect(o.rawPassword, unittest.equals('foo')); |
1325 unittest.expect(o.salt, unittest.equals('foo')); | 1471 unittest.expect(o.salt, unittest.equals('foo')); |
1326 unittest.expect(o.screenName, unittest.equals('foo')); | 1472 unittest.expect(o.screenName, unittest.equals('foo')); |
1327 unittest.expect(o.validSince, unittest.equals('foo')); | 1473 unittest.expect(o.validSince, unittest.equals('foo')); |
1328 unittest.expect(o.version, unittest.equals(42)); | 1474 unittest.expect(o.version, unittest.equals(42)); |
1329 } | 1475 } |
1330 buildCounterUserInfo--; | 1476 buildCounterUserInfo--; |
1331 } | 1477 } |
1332 | 1478 |
1333 buildUnnamed2472() { | 1479 buildUnnamed2459() { |
1334 var o = new core.List<core.String>(); | 1480 var o = new core.List<core.String>(); |
1335 o.add("foo"); | 1481 o.add("foo"); |
1336 o.add("foo"); | 1482 o.add("foo"); |
1337 return o; | 1483 return o; |
1338 } | 1484 } |
1339 | 1485 |
1340 checkUnnamed2472(core.List<core.String> o) { | 1486 checkUnnamed2459(core.List<core.String> o) { |
1341 unittest.expect(o, unittest.hasLength(2)); | 1487 unittest.expect(o, unittest.hasLength(2)); |
1342 unittest.expect(o[0], unittest.equals('foo')); | 1488 unittest.expect(o[0], unittest.equals('foo')); |
1343 unittest.expect(o[1], unittest.equals('foo')); | 1489 unittest.expect(o[1], unittest.equals('foo')); |
1344 } | 1490 } |
1345 | 1491 |
1346 core.int buildCounterVerifyAssertionResponse = 0; | 1492 core.int buildCounterVerifyAssertionResponse = 0; |
1347 buildVerifyAssertionResponse() { | 1493 buildVerifyAssertionResponse() { |
1348 var o = new api.VerifyAssertionResponse(); | 1494 var o = new api.VerifyAssertionResponse(); |
1349 buildCounterVerifyAssertionResponse++; | 1495 buildCounterVerifyAssertionResponse++; |
1350 if (buildCounterVerifyAssertionResponse < 3) { | 1496 if (buildCounterVerifyAssertionResponse < 3) { |
(...skipping 28 matching lines...) Expand all Loading... |
1379 o.oauthRequestToken = "foo"; | 1525 o.oauthRequestToken = "foo"; |
1380 o.oauthScope = "foo"; | 1526 o.oauthScope = "foo"; |
1381 o.oauthTokenSecret = "foo"; | 1527 o.oauthTokenSecret = "foo"; |
1382 o.originalEmail = "foo"; | 1528 o.originalEmail = "foo"; |
1383 o.photoUrl = "foo"; | 1529 o.photoUrl = "foo"; |
1384 o.providerId = "foo"; | 1530 o.providerId = "foo"; |
1385 o.rawUserInfo = "foo"; | 1531 o.rawUserInfo = "foo"; |
1386 o.refreshToken = "foo"; | 1532 o.refreshToken = "foo"; |
1387 o.screenName = "foo"; | 1533 o.screenName = "foo"; |
1388 o.timeZone = "foo"; | 1534 o.timeZone = "foo"; |
1389 o.verifiedProvider = buildUnnamed2472(); | 1535 o.verifiedProvider = buildUnnamed2459(); |
1390 } | 1536 } |
1391 buildCounterVerifyAssertionResponse--; | 1537 buildCounterVerifyAssertionResponse--; |
1392 return o; | 1538 return o; |
1393 } | 1539 } |
1394 | 1540 |
1395 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { | 1541 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { |
1396 buildCounterVerifyAssertionResponse++; | 1542 buildCounterVerifyAssertionResponse++; |
1397 if (buildCounterVerifyAssertionResponse < 3) { | 1543 if (buildCounterVerifyAssertionResponse < 3) { |
1398 unittest.expect(o.action, unittest.equals('foo')); | 1544 unittest.expect(o.action, unittest.equals('foo')); |
1399 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); | 1545 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); |
(...skipping 26 matching lines...) Expand all Loading... |
1426 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); | 1572 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); |
1427 unittest.expect(o.oauthScope, unittest.equals('foo')); | 1573 unittest.expect(o.oauthScope, unittest.equals('foo')); |
1428 unittest.expect(o.oauthTokenSecret, unittest.equals('foo')); | 1574 unittest.expect(o.oauthTokenSecret, unittest.equals('foo')); |
1429 unittest.expect(o.originalEmail, unittest.equals('foo')); | 1575 unittest.expect(o.originalEmail, unittest.equals('foo')); |
1430 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1576 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1431 unittest.expect(o.providerId, unittest.equals('foo')); | 1577 unittest.expect(o.providerId, unittest.equals('foo')); |
1432 unittest.expect(o.rawUserInfo, unittest.equals('foo')); | 1578 unittest.expect(o.rawUserInfo, unittest.equals('foo')); |
1433 unittest.expect(o.refreshToken, unittest.equals('foo')); | 1579 unittest.expect(o.refreshToken, unittest.equals('foo')); |
1434 unittest.expect(o.screenName, unittest.equals('foo')); | 1580 unittest.expect(o.screenName, unittest.equals('foo')); |
1435 unittest.expect(o.timeZone, unittest.equals('foo')); | 1581 unittest.expect(o.timeZone, unittest.equals('foo')); |
1436 checkUnnamed2472(o.verifiedProvider); | 1582 checkUnnamed2459(o.verifiedProvider); |
1437 } | 1583 } |
1438 buildCounterVerifyAssertionResponse--; | 1584 buildCounterVerifyAssertionResponse--; |
1439 } | 1585 } |
1440 | 1586 |
1441 core.int buildCounterVerifyCustomTokenResponse = 0; | 1587 core.int buildCounterVerifyCustomTokenResponse = 0; |
1442 buildVerifyCustomTokenResponse() { | 1588 buildVerifyCustomTokenResponse() { |
1443 var o = new api.VerifyCustomTokenResponse(); | 1589 var o = new api.VerifyCustomTokenResponse(); |
1444 buildCounterVerifyCustomTokenResponse++; | 1590 buildCounterVerifyCustomTokenResponse++; |
1445 if (buildCounterVerifyCustomTokenResponse < 3) { | 1591 if (buildCounterVerifyCustomTokenResponse < 3) { |
1446 o.expiresIn = "foo"; | 1592 o.expiresIn = "foo"; |
1447 o.idToken = "foo"; | 1593 o.idToken = "foo"; |
| 1594 o.isNewUser = true; |
1448 o.kind = "foo"; | 1595 o.kind = "foo"; |
1449 o.refreshToken = "foo"; | 1596 o.refreshToken = "foo"; |
1450 } | 1597 } |
1451 buildCounterVerifyCustomTokenResponse--; | 1598 buildCounterVerifyCustomTokenResponse--; |
1452 return o; | 1599 return o; |
1453 } | 1600 } |
1454 | 1601 |
1455 checkVerifyCustomTokenResponse(api.VerifyCustomTokenResponse o) { | 1602 checkVerifyCustomTokenResponse(api.VerifyCustomTokenResponse o) { |
1456 buildCounterVerifyCustomTokenResponse++; | 1603 buildCounterVerifyCustomTokenResponse++; |
1457 if (buildCounterVerifyCustomTokenResponse < 3) { | 1604 if (buildCounterVerifyCustomTokenResponse < 3) { |
1458 unittest.expect(o.expiresIn, unittest.equals('foo')); | 1605 unittest.expect(o.expiresIn, unittest.equals('foo')); |
1459 unittest.expect(o.idToken, unittest.equals('foo')); | 1606 unittest.expect(o.idToken, unittest.equals('foo')); |
| 1607 unittest.expect(o.isNewUser, unittest.isTrue); |
1460 unittest.expect(o.kind, unittest.equals('foo')); | 1608 unittest.expect(o.kind, unittest.equals('foo')); |
1461 unittest.expect(o.refreshToken, unittest.equals('foo')); | 1609 unittest.expect(o.refreshToken, unittest.equals('foo')); |
1462 } | 1610 } |
1463 buildCounterVerifyCustomTokenResponse--; | 1611 buildCounterVerifyCustomTokenResponse--; |
1464 } | 1612 } |
1465 | 1613 |
1466 core.int buildCounterVerifyPasswordResponse = 0; | 1614 core.int buildCounterVerifyPasswordResponse = 0; |
1467 buildVerifyPasswordResponse() { | 1615 buildVerifyPasswordResponse() { |
1468 var o = new api.VerifyPasswordResponse(); | 1616 var o = new api.VerifyPasswordResponse(); |
1469 buildCounterVerifyPasswordResponse++; | 1617 buildCounterVerifyPasswordResponse++; |
(...skipping 27 matching lines...) Expand all Loading... |
1497 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); | 1645 unittest.expect(o.oauthAccessToken, unittest.equals('foo')); |
1498 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); | 1646 unittest.expect(o.oauthAuthorizationCode, unittest.equals('foo')); |
1499 unittest.expect(o.oauthExpireIn, unittest.equals(42)); | 1647 unittest.expect(o.oauthExpireIn, unittest.equals(42)); |
1500 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1648 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1501 unittest.expect(o.refreshToken, unittest.equals('foo')); | 1649 unittest.expect(o.refreshToken, unittest.equals('foo')); |
1502 unittest.expect(o.registered, unittest.isTrue); | 1650 unittest.expect(o.registered, unittest.isTrue); |
1503 } | 1651 } |
1504 buildCounterVerifyPasswordResponse--; | 1652 buildCounterVerifyPasswordResponse--; |
1505 } | 1653 } |
1506 | 1654 |
1507 | |
1508 main() { | 1655 main() { |
1509 unittest.group("obj-schema-CreateAuthUriResponse", () { | 1656 unittest.group("obj-schema-CreateAuthUriResponse", () { |
1510 unittest.test("to-json--from-json", () { | 1657 unittest.test("to-json--from-json", () { |
1511 var o = buildCreateAuthUriResponse(); | 1658 var o = buildCreateAuthUriResponse(); |
1512 var od = new api.CreateAuthUriResponse.fromJson(o.toJson()); | 1659 var od = new api.CreateAuthUriResponse.fromJson(o.toJson()); |
1513 checkCreateAuthUriResponse(od); | 1660 checkCreateAuthUriResponse(od); |
1514 }); | 1661 }); |
1515 }); | 1662 }); |
1516 | 1663 |
1517 | |
1518 unittest.group("obj-schema-DeleteAccountResponse", () { | 1664 unittest.group("obj-schema-DeleteAccountResponse", () { |
1519 unittest.test("to-json--from-json", () { | 1665 unittest.test("to-json--from-json", () { |
1520 var o = buildDeleteAccountResponse(); | 1666 var o = buildDeleteAccountResponse(); |
1521 var od = new api.DeleteAccountResponse.fromJson(o.toJson()); | 1667 var od = new api.DeleteAccountResponse.fromJson(o.toJson()); |
1522 checkDeleteAccountResponse(od); | 1668 checkDeleteAccountResponse(od); |
1523 }); | 1669 }); |
1524 }); | 1670 }); |
1525 | 1671 |
1526 | |
1527 unittest.group("obj-schema-DownloadAccountResponse", () { | 1672 unittest.group("obj-schema-DownloadAccountResponse", () { |
1528 unittest.test("to-json--from-json", () { | 1673 unittest.test("to-json--from-json", () { |
1529 var o = buildDownloadAccountResponse(); | 1674 var o = buildDownloadAccountResponse(); |
1530 var od = new api.DownloadAccountResponse.fromJson(o.toJson()); | 1675 var od = new api.DownloadAccountResponse.fromJson(o.toJson()); |
1531 checkDownloadAccountResponse(od); | 1676 checkDownloadAccountResponse(od); |
1532 }); | 1677 }); |
1533 }); | 1678 }); |
1534 | 1679 |
1535 | |
1536 unittest.group("obj-schema-EmailTemplate", () { | 1680 unittest.group("obj-schema-EmailTemplate", () { |
1537 unittest.test("to-json--from-json", () { | 1681 unittest.test("to-json--from-json", () { |
1538 var o = buildEmailTemplate(); | 1682 var o = buildEmailTemplate(); |
1539 var od = new api.EmailTemplate.fromJson(o.toJson()); | 1683 var od = new api.EmailTemplate.fromJson(o.toJson()); |
1540 checkEmailTemplate(od); | 1684 checkEmailTemplate(od); |
1541 }); | 1685 }); |
1542 }); | 1686 }); |
1543 | 1687 |
1544 | |
1545 unittest.group("obj-schema-GetAccountInfoResponse", () { | 1688 unittest.group("obj-schema-GetAccountInfoResponse", () { |
1546 unittest.test("to-json--from-json", () { | 1689 unittest.test("to-json--from-json", () { |
1547 var o = buildGetAccountInfoResponse(); | 1690 var o = buildGetAccountInfoResponse(); |
1548 var od = new api.GetAccountInfoResponse.fromJson(o.toJson()); | 1691 var od = new api.GetAccountInfoResponse.fromJson(o.toJson()); |
1549 checkGetAccountInfoResponse(od); | 1692 checkGetAccountInfoResponse(od); |
1550 }); | 1693 }); |
1551 }); | 1694 }); |
1552 | 1695 |
1553 | |
1554 unittest.group("obj-schema-GetOobConfirmationCodeResponse", () { | 1696 unittest.group("obj-schema-GetOobConfirmationCodeResponse", () { |
1555 unittest.test("to-json--from-json", () { | 1697 unittest.test("to-json--from-json", () { |
1556 var o = buildGetOobConfirmationCodeResponse(); | 1698 var o = buildGetOobConfirmationCodeResponse(); |
1557 var od = new api.GetOobConfirmationCodeResponse.fromJson(o.toJson()); | 1699 var od = new api.GetOobConfirmationCodeResponse.fromJson(o.toJson()); |
1558 checkGetOobConfirmationCodeResponse(od); | 1700 checkGetOobConfirmationCodeResponse(od); |
1559 }); | 1701 }); |
1560 }); | 1702 }); |
1561 | 1703 |
1562 | |
1563 unittest.group("obj-schema-GetRecaptchaParamResponse", () { | 1704 unittest.group("obj-schema-GetRecaptchaParamResponse", () { |
1564 unittest.test("to-json--from-json", () { | 1705 unittest.test("to-json--from-json", () { |
1565 var o = buildGetRecaptchaParamResponse(); | 1706 var o = buildGetRecaptchaParamResponse(); |
1566 var od = new api.GetRecaptchaParamResponse.fromJson(o.toJson()); | 1707 var od = new api.GetRecaptchaParamResponse.fromJson(o.toJson()); |
1567 checkGetRecaptchaParamResponse(od); | 1708 checkGetRecaptchaParamResponse(od); |
1568 }); | 1709 }); |
1569 }); | 1710 }); |
1570 | 1711 |
1571 | 1712 unittest.group("obj-schema-IdentitytoolkitRelyingpartyCreateAuthUriRequest", |
1572 unittest.group("obj-schema-IdentitytoolkitRelyingpartyCreateAuthUriRequest", (
) { | 1713 () { |
1573 unittest.test("to-json--from-json", () { | 1714 unittest.test("to-json--from-json", () { |
1574 var o = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); | 1715 var o = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); |
1575 var od = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson(
o.toJson()); | 1716 var od = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson( |
| 1717 o.toJson()); |
1576 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(od); | 1718 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(od); |
1577 }); | 1719 }); |
1578 }); | 1720 }); |
1579 | 1721 |
1580 | 1722 unittest.group("obj-schema-IdentitytoolkitRelyingpartyDeleteAccountRequest", |
1581 unittest.group("obj-schema-IdentitytoolkitRelyingpartyDeleteAccountRequest", (
) { | 1723 () { |
1582 unittest.test("to-json--from-json", () { | 1724 unittest.test("to-json--from-json", () { |
1583 var o = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); | 1725 var o = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); |
1584 var od = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson(
o.toJson()); | 1726 var od = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson( |
| 1727 o.toJson()); |
1585 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(od); | 1728 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(od); |
1586 }); | 1729 }); |
1587 }); | 1730 }); |
1588 | 1731 |
1589 | 1732 unittest.group("obj-schema-IdentitytoolkitRelyingpartyDownloadAccountRequest", |
1590 unittest.group("obj-schema-IdentitytoolkitRelyingpartyDownloadAccountRequest",
() { | 1733 () { |
1591 unittest.test("to-json--from-json", () { | 1734 unittest.test("to-json--from-json", () { |
1592 var o = buildIdentitytoolkitRelyingpartyDownloadAccountRequest(); | 1735 var o = buildIdentitytoolkitRelyingpartyDownloadAccountRequest(); |
1593 var od = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJso
n(o.toJson()); | 1736 var od = |
| 1737 new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson( |
| 1738 o.toJson()); |
1594 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(od); | 1739 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(od); |
1595 }); | 1740 }); |
1596 }); | 1741 }); |
1597 | 1742 |
1598 | 1743 unittest.group("obj-schema-IdentitytoolkitRelyingpartyGetAccountInfoRequest", |
1599 unittest.group("obj-schema-IdentitytoolkitRelyingpartyGetAccountInfoRequest",
() { | 1744 () { |
1600 unittest.test("to-json--from-json", () { | 1745 unittest.test("to-json--from-json", () { |
1601 var o = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 1746 var o = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
1602 var od = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson
(o.toJson()); | 1747 var od = |
| 1748 new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson( |
| 1749 o.toJson()); |
1603 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(od); | 1750 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(od); |
1604 }); | 1751 }); |
1605 }); | 1752 }); |
1606 | 1753 |
1607 | 1754 unittest.group( |
1608 unittest.group("obj-schema-IdentitytoolkitRelyingpartyGetProjectConfigResponse
", () { | 1755 "obj-schema-IdentitytoolkitRelyingpartyGetProjectConfigResponse", () { |
1609 unittest.test("to-json--from-json", () { | 1756 unittest.test("to-json--from-json", () { |
1610 var o = buildIdentitytoolkitRelyingpartyGetProjectConfigResponse(); | 1757 var o = buildIdentitytoolkitRelyingpartyGetProjectConfigResponse(); |
1611 var od = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJ
son(o.toJson()); | 1758 var od = |
| 1759 new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse.fromJson( |
| 1760 o.toJson()); |
1612 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(od); | 1761 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(od); |
1613 }); | 1762 }); |
1614 }); | 1763 }); |
1615 | 1764 |
1616 | 1765 unittest.group("obj-schema-IdentitytoolkitRelyingpartyGetPublicKeysResponse", |
1617 unittest.group("obj-schema-IdentitytoolkitRelyingpartyGetPublicKeysResponse",
() { | 1766 () { |
1618 unittest.test("to-json--from-json", () { | 1767 unittest.test("to-json--from-json", () { |
1619 var o = buildIdentitytoolkitRelyingpartyGetPublicKeysResponse(); | 1768 var o = buildIdentitytoolkitRelyingpartyGetPublicKeysResponse(); |
1620 var od = new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson
(o.toJson()); | 1769 var od = |
| 1770 new api.IdentitytoolkitRelyingpartyGetPublicKeysResponse.fromJson( |
| 1771 o.toJson()); |
1621 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(od); | 1772 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(od); |
1622 }); | 1773 }); |
1623 }); | 1774 }); |
1624 | 1775 |
1625 | 1776 unittest.group("obj-schema-IdentitytoolkitRelyingpartyResetPasswordRequest", |
1626 unittest.group("obj-schema-IdentitytoolkitRelyingpartyResetPasswordRequest", (
) { | 1777 () { |
1627 unittest.test("to-json--from-json", () { | 1778 unittest.test("to-json--from-json", () { |
1628 var o = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); | 1779 var o = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); |
1629 var od = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson(
o.toJson()); | 1780 var od = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson( |
| 1781 o.toJson()); |
1630 checkIdentitytoolkitRelyingpartyResetPasswordRequest(od); | 1782 checkIdentitytoolkitRelyingpartyResetPasswordRequest(od); |
1631 }); | 1783 }); |
1632 }); | 1784 }); |
1633 | 1785 |
1634 | 1786 unittest.group( |
1635 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetAccountInfoRequest",
() { | 1787 "obj-schema-IdentitytoolkitRelyingpartySendVerificationCodeRequest", () { |
| 1788 unittest.test("to-json--from-json", () { |
| 1789 var o = buildIdentitytoolkitRelyingpartySendVerificationCodeRequest(); |
| 1790 var od = new api |
| 1791 .IdentitytoolkitRelyingpartySendVerificationCodeRequest.fromJson( |
| 1792 o.toJson()); |
| 1793 checkIdentitytoolkitRelyingpartySendVerificationCodeRequest(od); |
| 1794 }); |
| 1795 }); |
| 1796 |
| 1797 unittest.group( |
| 1798 "obj-schema-IdentitytoolkitRelyingpartySendVerificationCodeResponse", () { |
| 1799 unittest.test("to-json--from-json", () { |
| 1800 var o = buildIdentitytoolkitRelyingpartySendVerificationCodeResponse(); |
| 1801 var od = new api |
| 1802 .IdentitytoolkitRelyingpartySendVerificationCodeResponse.fromJson( |
| 1803 o.toJson()); |
| 1804 checkIdentitytoolkitRelyingpartySendVerificationCodeResponse(od); |
| 1805 }); |
| 1806 }); |
| 1807 |
| 1808 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetAccountInfoRequest", |
| 1809 () { |
1636 unittest.test("to-json--from-json", () { | 1810 unittest.test("to-json--from-json", () { |
1637 var o = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); | 1811 var o = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); |
1638 var od = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson
(o.toJson()); | 1812 var od = |
| 1813 new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson( |
| 1814 o.toJson()); |
1639 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(od); | 1815 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(od); |
1640 }); | 1816 }); |
1641 }); | 1817 }); |
1642 | 1818 |
1643 | 1819 unittest.group( |
1644 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetProjectConfigRequest"
, () { | 1820 "obj-schema-IdentitytoolkitRelyingpartySetProjectConfigRequest", () { |
1645 unittest.test("to-json--from-json", () { | 1821 unittest.test("to-json--from-json", () { |
1646 var o = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(); | 1822 var o = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(); |
1647 var od = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJs
on(o.toJson()); | 1823 var od = |
| 1824 new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson( |
| 1825 o.toJson()); |
1648 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(od); | 1826 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(od); |
1649 }); | 1827 }); |
1650 }); | 1828 }); |
1651 | 1829 |
1652 | 1830 unittest.group( |
1653 unittest.group("obj-schema-IdentitytoolkitRelyingpartySetProjectConfigResponse
", () { | 1831 "obj-schema-IdentitytoolkitRelyingpartySetProjectConfigResponse", () { |
1654 unittest.test("to-json--from-json", () { | 1832 unittest.test("to-json--from-json", () { |
1655 var o = buildIdentitytoolkitRelyingpartySetProjectConfigResponse(); | 1833 var o = buildIdentitytoolkitRelyingpartySetProjectConfigResponse(); |
1656 var od = new api.IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJ
son(o.toJson()); | 1834 var od = |
| 1835 new api.IdentitytoolkitRelyingpartySetProjectConfigResponse.fromJson( |
| 1836 o.toJson()); |
1657 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(od); | 1837 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(od); |
1658 }); | 1838 }); |
1659 }); | 1839 }); |
1660 | 1840 |
1661 | 1841 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserRequest", |
1662 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserRequest", ()
{ | 1842 () { |
1663 unittest.test("to-json--from-json", () { | 1843 unittest.test("to-json--from-json", () { |
1664 var o = buildIdentitytoolkitRelyingpartySignOutUserRequest(); | 1844 var o = buildIdentitytoolkitRelyingpartySignOutUserRequest(); |
1665 var od = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson(o.
toJson()); | 1845 var od = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson( |
| 1846 o.toJson()); |
1666 checkIdentitytoolkitRelyingpartySignOutUserRequest(od); | 1847 checkIdentitytoolkitRelyingpartySignOutUserRequest(od); |
1667 }); | 1848 }); |
1668 }); | 1849 }); |
1669 | 1850 |
1670 | 1851 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserResponse", |
1671 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignOutUserResponse", ()
{ | 1852 () { |
1672 unittest.test("to-json--from-json", () { | 1853 unittest.test("to-json--from-json", () { |
1673 var o = buildIdentitytoolkitRelyingpartySignOutUserResponse(); | 1854 var o = buildIdentitytoolkitRelyingpartySignOutUserResponse(); |
1674 var od = new api.IdentitytoolkitRelyingpartySignOutUserResponse.fromJson(o
.toJson()); | 1855 var od = new api.IdentitytoolkitRelyingpartySignOutUserResponse.fromJson( |
| 1856 o.toJson()); |
1675 checkIdentitytoolkitRelyingpartySignOutUserResponse(od); | 1857 checkIdentitytoolkitRelyingpartySignOutUserResponse(od); |
1676 }); | 1858 }); |
1677 }); | 1859 }); |
1678 | 1860 |
1679 | 1861 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignupNewUserRequest", |
1680 unittest.group("obj-schema-IdentitytoolkitRelyingpartySignupNewUserRequest", (
) { | 1862 () { |
1681 unittest.test("to-json--from-json", () { | 1863 unittest.test("to-json--from-json", () { |
1682 var o = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); | 1864 var o = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); |
1683 var od = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(
o.toJson()); | 1865 var od = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson( |
| 1866 o.toJson()); |
1684 checkIdentitytoolkitRelyingpartySignupNewUserRequest(od); | 1867 checkIdentitytoolkitRelyingpartySignupNewUserRequest(od); |
1685 }); | 1868 }); |
1686 }); | 1869 }); |
1687 | 1870 |
1688 | 1871 unittest.group("obj-schema-IdentitytoolkitRelyingpartyUploadAccountRequest", |
1689 unittest.group("obj-schema-IdentitytoolkitRelyingpartyUploadAccountRequest", (
) { | 1872 () { |
1690 unittest.test("to-json--from-json", () { | 1873 unittest.test("to-json--from-json", () { |
1691 var o = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); | 1874 var o = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); |
1692 var od = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(
o.toJson()); | 1875 var od = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson( |
| 1876 o.toJson()); |
1693 checkIdentitytoolkitRelyingpartyUploadAccountRequest(od); | 1877 checkIdentitytoolkitRelyingpartyUploadAccountRequest(od); |
1694 }); | 1878 }); |
1695 }); | 1879 }); |
1696 | 1880 |
1697 | 1881 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyAssertionRequest", |
1698 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyAssertionRequest",
() { | 1882 () { |
1699 unittest.test("to-json--from-json", () { | 1883 unittest.test("to-json--from-json", () { |
1700 var o = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest(); | 1884 var o = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
1701 var od = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJso
n(o.toJson()); | 1885 var od = |
| 1886 new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson( |
| 1887 o.toJson()); |
1702 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(od); | 1888 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(od); |
1703 }); | 1889 }); |
1704 }); | 1890 }); |
1705 | 1891 |
1706 | 1892 unittest.group( |
1707 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyCustomTokenRequest
", () { | 1893 "obj-schema-IdentitytoolkitRelyingpartyVerifyCustomTokenRequest", () { |
1708 unittest.test("to-json--from-json", () { | 1894 unittest.test("to-json--from-json", () { |
1709 var o = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); | 1895 var o = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); |
1710 var od = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJ
son(o.toJson()); | 1896 var od = |
| 1897 new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson( |
| 1898 o.toJson()); |
1711 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(od); | 1899 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(od); |
1712 }); | 1900 }); |
1713 }); | 1901 }); |
1714 | 1902 |
1715 | 1903 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyPasswordRequest", |
1716 unittest.group("obj-schema-IdentitytoolkitRelyingpartyVerifyPasswordRequest",
() { | 1904 () { |
1717 unittest.test("to-json--from-json", () { | 1905 unittest.test("to-json--from-json", () { |
1718 var o = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 1906 var o = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
1719 var od = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson
(o.toJson()); | 1907 var od = |
| 1908 new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson( |
| 1909 o.toJson()); |
1720 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(od); | 1910 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(od); |
1721 }); | 1911 }); |
1722 }); | 1912 }); |
1723 | 1913 |
| 1914 unittest.group( |
| 1915 "obj-schema-IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest", () { |
| 1916 unittest.test("to-json--from-json", () { |
| 1917 var o = buildIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest(); |
| 1918 var od = |
| 1919 new api.IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest.fromJson( |
| 1920 o.toJson()); |
| 1921 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest(od); |
| 1922 }); |
| 1923 }); |
| 1924 |
| 1925 unittest.group( |
| 1926 "obj-schema-IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse", () { |
| 1927 unittest.test("to-json--from-json", () { |
| 1928 var o = buildIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse(); |
| 1929 var od = |
| 1930 new api.IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse.fromJson( |
| 1931 o.toJson()); |
| 1932 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse(od); |
| 1933 }); |
| 1934 }); |
1724 | 1935 |
1725 unittest.group("obj-schema-IdpConfig", () { | 1936 unittest.group("obj-schema-IdpConfig", () { |
1726 unittest.test("to-json--from-json", () { | 1937 unittest.test("to-json--from-json", () { |
1727 var o = buildIdpConfig(); | 1938 var o = buildIdpConfig(); |
1728 var od = new api.IdpConfig.fromJson(o.toJson()); | 1939 var od = new api.IdpConfig.fromJson(o.toJson()); |
1729 checkIdpConfig(od); | 1940 checkIdpConfig(od); |
1730 }); | 1941 }); |
1731 }); | 1942 }); |
1732 | 1943 |
1733 | |
1734 unittest.group("obj-schema-Relyingparty", () { | 1944 unittest.group("obj-schema-Relyingparty", () { |
1735 unittest.test("to-json--from-json", () { | 1945 unittest.test("to-json--from-json", () { |
1736 var o = buildRelyingparty(); | 1946 var o = buildRelyingparty(); |
1737 var od = new api.Relyingparty.fromJson(o.toJson()); | 1947 var od = new api.Relyingparty.fromJson(o.toJson()); |
1738 checkRelyingparty(od); | 1948 checkRelyingparty(od); |
1739 }); | 1949 }); |
1740 }); | 1950 }); |
1741 | 1951 |
1742 | |
1743 unittest.group("obj-schema-ResetPasswordResponse", () { | 1952 unittest.group("obj-schema-ResetPasswordResponse", () { |
1744 unittest.test("to-json--from-json", () { | 1953 unittest.test("to-json--from-json", () { |
1745 var o = buildResetPasswordResponse(); | 1954 var o = buildResetPasswordResponse(); |
1746 var od = new api.ResetPasswordResponse.fromJson(o.toJson()); | 1955 var od = new api.ResetPasswordResponse.fromJson(o.toJson()); |
1747 checkResetPasswordResponse(od); | 1956 checkResetPasswordResponse(od); |
1748 }); | 1957 }); |
1749 }); | 1958 }); |
1750 | 1959 |
1751 | |
1752 unittest.group("obj-schema-SetAccountInfoResponseProviderUserInfo", () { | 1960 unittest.group("obj-schema-SetAccountInfoResponseProviderUserInfo", () { |
1753 unittest.test("to-json--from-json", () { | 1961 unittest.test("to-json--from-json", () { |
1754 var o = buildSetAccountInfoResponseProviderUserInfo(); | 1962 var o = buildSetAccountInfoResponseProviderUserInfo(); |
1755 var od = new api.SetAccountInfoResponseProviderUserInfo.fromJson(o.toJson(
)); | 1963 var od = |
| 1964 new api.SetAccountInfoResponseProviderUserInfo.fromJson(o.toJson()); |
1756 checkSetAccountInfoResponseProviderUserInfo(od); | 1965 checkSetAccountInfoResponseProviderUserInfo(od); |
1757 }); | 1966 }); |
1758 }); | 1967 }); |
1759 | 1968 |
1760 | |
1761 unittest.group("obj-schema-SetAccountInfoResponse", () { | 1969 unittest.group("obj-schema-SetAccountInfoResponse", () { |
1762 unittest.test("to-json--from-json", () { | 1970 unittest.test("to-json--from-json", () { |
1763 var o = buildSetAccountInfoResponse(); | 1971 var o = buildSetAccountInfoResponse(); |
1764 var od = new api.SetAccountInfoResponse.fromJson(o.toJson()); | 1972 var od = new api.SetAccountInfoResponse.fromJson(o.toJson()); |
1765 checkSetAccountInfoResponse(od); | 1973 checkSetAccountInfoResponse(od); |
1766 }); | 1974 }); |
1767 }); | 1975 }); |
1768 | 1976 |
1769 | |
1770 unittest.group("obj-schema-SignupNewUserResponse", () { | 1977 unittest.group("obj-schema-SignupNewUserResponse", () { |
1771 unittest.test("to-json--from-json", () { | 1978 unittest.test("to-json--from-json", () { |
1772 var o = buildSignupNewUserResponse(); | 1979 var o = buildSignupNewUserResponse(); |
1773 var od = new api.SignupNewUserResponse.fromJson(o.toJson()); | 1980 var od = new api.SignupNewUserResponse.fromJson(o.toJson()); |
1774 checkSignupNewUserResponse(od); | 1981 checkSignupNewUserResponse(od); |
1775 }); | 1982 }); |
1776 }); | 1983 }); |
1777 | 1984 |
1778 | |
1779 unittest.group("obj-schema-UploadAccountResponseError", () { | 1985 unittest.group("obj-schema-UploadAccountResponseError", () { |
1780 unittest.test("to-json--from-json", () { | 1986 unittest.test("to-json--from-json", () { |
1781 var o = buildUploadAccountResponseError(); | 1987 var o = buildUploadAccountResponseError(); |
1782 var od = new api.UploadAccountResponseError.fromJson(o.toJson()); | 1988 var od = new api.UploadAccountResponseError.fromJson(o.toJson()); |
1783 checkUploadAccountResponseError(od); | 1989 checkUploadAccountResponseError(od); |
1784 }); | 1990 }); |
1785 }); | 1991 }); |
1786 | 1992 |
1787 | |
1788 unittest.group("obj-schema-UploadAccountResponse", () { | 1993 unittest.group("obj-schema-UploadAccountResponse", () { |
1789 unittest.test("to-json--from-json", () { | 1994 unittest.test("to-json--from-json", () { |
1790 var o = buildUploadAccountResponse(); | 1995 var o = buildUploadAccountResponse(); |
1791 var od = new api.UploadAccountResponse.fromJson(o.toJson()); | 1996 var od = new api.UploadAccountResponse.fromJson(o.toJson()); |
1792 checkUploadAccountResponse(od); | 1997 checkUploadAccountResponse(od); |
1793 }); | 1998 }); |
1794 }); | 1999 }); |
1795 | 2000 |
1796 | |
1797 unittest.group("obj-schema-UserInfoProviderUserInfo", () { | 2001 unittest.group("obj-schema-UserInfoProviderUserInfo", () { |
1798 unittest.test("to-json--from-json", () { | 2002 unittest.test("to-json--from-json", () { |
1799 var o = buildUserInfoProviderUserInfo(); | 2003 var o = buildUserInfoProviderUserInfo(); |
1800 var od = new api.UserInfoProviderUserInfo.fromJson(o.toJson()); | 2004 var od = new api.UserInfoProviderUserInfo.fromJson(o.toJson()); |
1801 checkUserInfoProviderUserInfo(od); | 2005 checkUserInfoProviderUserInfo(od); |
1802 }); | 2006 }); |
1803 }); | 2007 }); |
1804 | 2008 |
1805 | |
1806 unittest.group("obj-schema-UserInfo", () { | 2009 unittest.group("obj-schema-UserInfo", () { |
1807 unittest.test("to-json--from-json", () { | 2010 unittest.test("to-json--from-json", () { |
1808 var o = buildUserInfo(); | 2011 var o = buildUserInfo(); |
1809 var od = new api.UserInfo.fromJson(o.toJson()); | 2012 var od = new api.UserInfo.fromJson(o.toJson()); |
1810 checkUserInfo(od); | 2013 checkUserInfo(od); |
1811 }); | 2014 }); |
1812 }); | 2015 }); |
1813 | 2016 |
1814 | |
1815 unittest.group("obj-schema-VerifyAssertionResponse", () { | 2017 unittest.group("obj-schema-VerifyAssertionResponse", () { |
1816 unittest.test("to-json--from-json", () { | 2018 unittest.test("to-json--from-json", () { |
1817 var o = buildVerifyAssertionResponse(); | 2019 var o = buildVerifyAssertionResponse(); |
1818 var od = new api.VerifyAssertionResponse.fromJson(o.toJson()); | 2020 var od = new api.VerifyAssertionResponse.fromJson(o.toJson()); |
1819 checkVerifyAssertionResponse(od); | 2021 checkVerifyAssertionResponse(od); |
1820 }); | 2022 }); |
1821 }); | 2023 }); |
1822 | 2024 |
1823 | |
1824 unittest.group("obj-schema-VerifyCustomTokenResponse", () { | 2025 unittest.group("obj-schema-VerifyCustomTokenResponse", () { |
1825 unittest.test("to-json--from-json", () { | 2026 unittest.test("to-json--from-json", () { |
1826 var o = buildVerifyCustomTokenResponse(); | 2027 var o = buildVerifyCustomTokenResponse(); |
1827 var od = new api.VerifyCustomTokenResponse.fromJson(o.toJson()); | 2028 var od = new api.VerifyCustomTokenResponse.fromJson(o.toJson()); |
1828 checkVerifyCustomTokenResponse(od); | 2029 checkVerifyCustomTokenResponse(od); |
1829 }); | 2030 }); |
1830 }); | 2031 }); |
1831 | 2032 |
1832 | |
1833 unittest.group("obj-schema-VerifyPasswordResponse", () { | 2033 unittest.group("obj-schema-VerifyPasswordResponse", () { |
1834 unittest.test("to-json--from-json", () { | 2034 unittest.test("to-json--from-json", () { |
1835 var o = buildVerifyPasswordResponse(); | 2035 var o = buildVerifyPasswordResponse(); |
1836 var od = new api.VerifyPasswordResponse.fromJson(o.toJson()); | 2036 var od = new api.VerifyPasswordResponse.fromJson(o.toJson()); |
1837 checkVerifyPasswordResponse(od); | 2037 checkVerifyPasswordResponse(od); |
1838 }); | 2038 }); |
1839 }); | 2039 }); |
1840 | 2040 |
1841 | |
1842 unittest.group("resource-RelyingpartyResourceApi", () { | 2041 unittest.group("resource-RelyingpartyResourceApi", () { |
1843 unittest.test("method--createAuthUri", () { | 2042 unittest.test("method--createAuthUri", () { |
1844 | |
1845 var mock = new HttpServerMock(); | 2043 var mock = new HttpServerMock(); |
1846 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2044 api.RelyingpartyResourceApi res = |
| 2045 new api.IdentitytoolkitApi(mock).relyingparty; |
1847 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); | 2046 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); |
1848 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2047 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
1849 var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJs
on(json); | 2048 var obj = |
| 2049 new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson( |
| 2050 json); |
1850 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); | 2051 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); |
1851 | 2052 |
1852 var path = (req.url).path; | 2053 var path = (req.url).path; |
1853 var pathOffset = 0; | 2054 var pathOffset = 0; |
1854 var index; | 2055 var index; |
1855 var subPart; | 2056 var subPart; |
1856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2057 unittest.expect( |
| 2058 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
1857 pathOffset += 1; | 2059 pathOffset += 1; |
1858 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2060 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2061 unittest.equals("identitytoolkit/v3/relyingparty/")); |
1859 pathOffset += 32; | 2062 pathOffset += 32; |
1860 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("createAuthUri")); | 2063 unittest.expect(path.substring(pathOffset, pathOffset + 13), |
| 2064 unittest.equals("createAuthUri")); |
1861 pathOffset += 13; | 2065 pathOffset += 13; |
1862 | 2066 |
1863 var query = (req.url).query; | 2067 var query = (req.url).query; |
1864 var queryOffset = 0; | 2068 var queryOffset = 0; |
1865 var queryMap = {}; | 2069 var queryMap = {}; |
1866 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2070 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1867 parseBool(n) { | 2071 parseBool(n) { |
1868 if (n == "true") return true; | 2072 if (n == "true") return true; |
1869 if (n == "false") return false; | 2073 if (n == "false") return false; |
1870 if (n == null) return null; | 2074 if (n == null) return null; |
1871 throw new core.ArgumentError("Invalid boolean: $n"); | 2075 throw new core.ArgumentError("Invalid boolean: $n"); |
1872 } | 2076 } |
| 2077 |
1873 if (query.length > 0) { | 2078 if (query.length > 0) { |
1874 for (var part in query.split("&")) { | 2079 for (var part in query.split("&")) { |
1875 var keyvalue = part.split("="); | 2080 var keyvalue = part.split("="); |
1876 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2081 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2082 core.Uri.decodeQueryComponent(keyvalue[1])); |
1877 } | 2083 } |
1878 } | 2084 } |
1879 | 2085 |
1880 | |
1881 var h = { | 2086 var h = { |
1882 "content-type" : "application/json; charset=utf-8", | 2087 "content-type": "application/json; charset=utf-8", |
1883 }; | 2088 }; |
1884 var resp = convert.JSON.encode(buildCreateAuthUriResponse()); | 2089 var resp = convert.JSON.encode(buildCreateAuthUriResponse()); |
1885 return new async.Future.value(stringResponse(200, h, resp)); | 2090 return new async.Future.value(stringResponse(200, h, resp)); |
1886 }), true); | 2091 }), true); |
1887 res.createAuthUri(arg_request).then(unittest.expectAsync1(((api.CreateAuth
UriResponse response) { | 2092 res |
| 2093 .createAuthUri(arg_request) |
| 2094 .then(unittest.expectAsync1(((api.CreateAuthUriResponse response) { |
1888 checkCreateAuthUriResponse(response); | 2095 checkCreateAuthUriResponse(response); |
1889 }))); | 2096 }))); |
1890 }); | 2097 }); |
1891 | 2098 |
1892 unittest.test("method--deleteAccount", () { | 2099 unittest.test("method--deleteAccount", () { |
1893 | |
1894 var mock = new HttpServerMock(); | 2100 var mock = new HttpServerMock(); |
1895 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2101 api.RelyingpartyResourceApi res = |
| 2102 new api.IdentitytoolkitApi(mock).relyingparty; |
1896 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); | 2103 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); |
1897 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2104 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
1898 var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJs
on(json); | 2105 var obj = |
| 2106 new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJson( |
| 2107 json); |
1899 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); | 2108 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); |
1900 | 2109 |
1901 var path = (req.url).path; | 2110 var path = (req.url).path; |
1902 var pathOffset = 0; | 2111 var pathOffset = 0; |
1903 var index; | 2112 var index; |
1904 var subPart; | 2113 var subPart; |
1905 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2114 unittest.expect( |
| 2115 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
1906 pathOffset += 1; | 2116 pathOffset += 1; |
1907 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2117 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2118 unittest.equals("identitytoolkit/v3/relyingparty/")); |
1908 pathOffset += 32; | 2119 pathOffset += 32; |
1909 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("deleteAccount")); | 2120 unittest.expect(path.substring(pathOffset, pathOffset + 13), |
| 2121 unittest.equals("deleteAccount")); |
1910 pathOffset += 13; | 2122 pathOffset += 13; |
1911 | 2123 |
1912 var query = (req.url).query; | 2124 var query = (req.url).query; |
1913 var queryOffset = 0; | 2125 var queryOffset = 0; |
1914 var queryMap = {}; | 2126 var queryMap = {}; |
1915 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2127 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1916 parseBool(n) { | 2128 parseBool(n) { |
1917 if (n == "true") return true; | 2129 if (n == "true") return true; |
1918 if (n == "false") return false; | 2130 if (n == "false") return false; |
1919 if (n == null) return null; | 2131 if (n == null) return null; |
1920 throw new core.ArgumentError("Invalid boolean: $n"); | 2132 throw new core.ArgumentError("Invalid boolean: $n"); |
1921 } | 2133 } |
| 2134 |
1922 if (query.length > 0) { | 2135 if (query.length > 0) { |
1923 for (var part in query.split("&")) { | 2136 for (var part in query.split("&")) { |
1924 var keyvalue = part.split("="); | 2137 var keyvalue = part.split("="); |
1925 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2138 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2139 core.Uri.decodeQueryComponent(keyvalue[1])); |
1926 } | 2140 } |
1927 } | 2141 } |
1928 | 2142 |
1929 | |
1930 var h = { | 2143 var h = { |
1931 "content-type" : "application/json; charset=utf-8", | 2144 "content-type": "application/json; charset=utf-8", |
1932 }; | 2145 }; |
1933 var resp = convert.JSON.encode(buildDeleteAccountResponse()); | 2146 var resp = convert.JSON.encode(buildDeleteAccountResponse()); |
1934 return new async.Future.value(stringResponse(200, h, resp)); | 2147 return new async.Future.value(stringResponse(200, h, resp)); |
1935 }), true); | 2148 }), true); |
1936 res.deleteAccount(arg_request).then(unittest.expectAsync1(((api.DeleteAcco
untResponse response) { | 2149 res |
| 2150 .deleteAccount(arg_request) |
| 2151 .then(unittest.expectAsync1(((api.DeleteAccountResponse response) { |
1937 checkDeleteAccountResponse(response); | 2152 checkDeleteAccountResponse(response); |
1938 }))); | 2153 }))); |
1939 }); | 2154 }); |
1940 | 2155 |
1941 unittest.test("method--downloadAccount", () { | 2156 unittest.test("method--downloadAccount", () { |
1942 | |
1943 var mock = new HttpServerMock(); | 2157 var mock = new HttpServerMock(); |
1944 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2158 api.RelyingpartyResourceApi res = |
1945 var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest()
; | 2159 new api.IdentitytoolkitApi(mock).relyingparty; |
| 2160 var arg_request = |
| 2161 buildIdentitytoolkitRelyingpartyDownloadAccountRequest(); |
1946 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2162 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
1947 var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.from
Json(json); | 2163 var obj = |
| 2164 new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.fromJson( |
| 2165 json); |
1948 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); | 2166 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); |
1949 | 2167 |
1950 var path = (req.url).path; | 2168 var path = (req.url).path; |
1951 var pathOffset = 0; | 2169 var pathOffset = 0; |
1952 var index; | 2170 var index; |
1953 var subPart; | 2171 var subPart; |
1954 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2172 unittest.expect( |
| 2173 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
1955 pathOffset += 1; | 2174 pathOffset += 1; |
1956 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2175 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2176 unittest.equals("identitytoolkit/v3/relyingparty/")); |
1957 pathOffset += 32; | 2177 pathOffset += 32; |
1958 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("downloadAccount")); | 2178 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 2179 unittest.equals("downloadAccount")); |
1959 pathOffset += 15; | 2180 pathOffset += 15; |
1960 | 2181 |
1961 var query = (req.url).query; | 2182 var query = (req.url).query; |
1962 var queryOffset = 0; | 2183 var queryOffset = 0; |
1963 var queryMap = {}; | 2184 var queryMap = {}; |
1964 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2185 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1965 parseBool(n) { | 2186 parseBool(n) { |
1966 if (n == "true") return true; | 2187 if (n == "true") return true; |
1967 if (n == "false") return false; | 2188 if (n == "false") return false; |
1968 if (n == null) return null; | 2189 if (n == null) return null; |
1969 throw new core.ArgumentError("Invalid boolean: $n"); | 2190 throw new core.ArgumentError("Invalid boolean: $n"); |
1970 } | 2191 } |
| 2192 |
1971 if (query.length > 0) { | 2193 if (query.length > 0) { |
1972 for (var part in query.split("&")) { | 2194 for (var part in query.split("&")) { |
1973 var keyvalue = part.split("="); | 2195 var keyvalue = part.split("="); |
1974 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2196 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2197 core.Uri.decodeQueryComponent(keyvalue[1])); |
1975 } | 2198 } |
1976 } | 2199 } |
1977 | 2200 |
1978 | |
1979 var h = { | 2201 var h = { |
1980 "content-type" : "application/json; charset=utf-8", | 2202 "content-type": "application/json; charset=utf-8", |
1981 }; | 2203 }; |
1982 var resp = convert.JSON.encode(buildDownloadAccountResponse()); | 2204 var resp = convert.JSON.encode(buildDownloadAccountResponse()); |
1983 return new async.Future.value(stringResponse(200, h, resp)); | 2205 return new async.Future.value(stringResponse(200, h, resp)); |
1984 }), true); | 2206 }), true); |
1985 res.downloadAccount(arg_request).then(unittest.expectAsync1(((api.Download
AccountResponse response) { | 2207 res |
| 2208 .downloadAccount(arg_request) |
| 2209 .then(unittest.expectAsync1(((api.DownloadAccountResponse response) { |
1986 checkDownloadAccountResponse(response); | 2210 checkDownloadAccountResponse(response); |
1987 }))); | 2211 }))); |
1988 }); | 2212 }); |
1989 | 2213 |
1990 unittest.test("method--getAccountInfo", () { | 2214 unittest.test("method--getAccountInfo", () { |
1991 | |
1992 var mock = new HttpServerMock(); | 2215 var mock = new HttpServerMock(); |
1993 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2216 api.RelyingpartyResourceApi res = |
| 2217 new api.IdentitytoolkitApi(mock).relyingparty; |
1994 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); | 2218 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); |
1995 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2219 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
1996 var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJ
son(json); | 2220 var obj = |
| 2221 new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJson( |
| 2222 json); |
1997 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); | 2223 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); |
1998 | 2224 |
1999 var path = (req.url).path; | 2225 var path = (req.url).path; |
2000 var pathOffset = 0; | 2226 var pathOffset = 0; |
2001 var index; | 2227 var index; |
2002 var subPart; | 2228 var subPart; |
2003 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2229 unittest.expect( |
| 2230 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2004 pathOffset += 1; | 2231 pathOffset += 1; |
2005 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2232 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2233 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2006 pathOffset += 32; | 2234 pathOffset += 32; |
2007 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("getAccountInfo")); | 2235 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 2236 unittest.equals("getAccountInfo")); |
2008 pathOffset += 14; | 2237 pathOffset += 14; |
2009 | 2238 |
2010 var query = (req.url).query; | 2239 var query = (req.url).query; |
2011 var queryOffset = 0; | 2240 var queryOffset = 0; |
2012 var queryMap = {}; | 2241 var queryMap = {}; |
2013 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2242 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2014 parseBool(n) { | 2243 parseBool(n) { |
2015 if (n == "true") return true; | 2244 if (n == "true") return true; |
2016 if (n == "false") return false; | 2245 if (n == "false") return false; |
2017 if (n == null) return null; | 2246 if (n == null) return null; |
2018 throw new core.ArgumentError("Invalid boolean: $n"); | 2247 throw new core.ArgumentError("Invalid boolean: $n"); |
2019 } | 2248 } |
| 2249 |
2020 if (query.length > 0) { | 2250 if (query.length > 0) { |
2021 for (var part in query.split("&")) { | 2251 for (var part in query.split("&")) { |
2022 var keyvalue = part.split("="); | 2252 var keyvalue = part.split("="); |
2023 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2253 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2254 core.Uri.decodeQueryComponent(keyvalue[1])); |
2024 } | 2255 } |
2025 } | 2256 } |
2026 | 2257 |
2027 | |
2028 var h = { | 2258 var h = { |
2029 "content-type" : "application/json; charset=utf-8", | 2259 "content-type": "application/json; charset=utf-8", |
2030 }; | 2260 }; |
2031 var resp = convert.JSON.encode(buildGetAccountInfoResponse()); | 2261 var resp = convert.JSON.encode(buildGetAccountInfoResponse()); |
2032 return new async.Future.value(stringResponse(200, h, resp)); | 2262 return new async.Future.value(stringResponse(200, h, resp)); |
2033 }), true); | 2263 }), true); |
2034 res.getAccountInfo(arg_request).then(unittest.expectAsync1(((api.GetAccoun
tInfoResponse response) { | 2264 res |
| 2265 .getAccountInfo(arg_request) |
| 2266 .then(unittest.expectAsync1(((api.GetAccountInfoResponse response) { |
2035 checkGetAccountInfoResponse(response); | 2267 checkGetAccountInfoResponse(response); |
2036 }))); | 2268 }))); |
2037 }); | 2269 }); |
2038 | 2270 |
2039 unittest.test("method--getOobConfirmationCode", () { | 2271 unittest.test("method--getOobConfirmationCode", () { |
2040 | |
2041 var mock = new HttpServerMock(); | 2272 var mock = new HttpServerMock(); |
2042 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2273 api.RelyingpartyResourceApi res = |
| 2274 new api.IdentitytoolkitApi(mock).relyingparty; |
2043 var arg_request = buildRelyingparty(); | 2275 var arg_request = buildRelyingparty(); |
2044 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2276 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2045 var obj = new api.Relyingparty.fromJson(json); | 2277 var obj = new api.Relyingparty.fromJson(json); |
2046 checkRelyingparty(obj); | 2278 checkRelyingparty(obj); |
2047 | 2279 |
2048 var path = (req.url).path; | 2280 var path = (req.url).path; |
2049 var pathOffset = 0; | 2281 var pathOffset = 0; |
2050 var index; | 2282 var index; |
2051 var subPart; | 2283 var subPart; |
2052 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2284 unittest.expect( |
| 2285 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2053 pathOffset += 1; | 2286 pathOffset += 1; |
2054 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2287 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2288 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2055 pathOffset += 32; | 2289 pathOffset += 32; |
2056 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("getOobConfirmationCode")); | 2290 unittest.expect(path.substring(pathOffset, pathOffset + 22), |
| 2291 unittest.equals("getOobConfirmationCode")); |
2057 pathOffset += 22; | 2292 pathOffset += 22; |
2058 | 2293 |
2059 var query = (req.url).query; | 2294 var query = (req.url).query; |
2060 var queryOffset = 0; | 2295 var queryOffset = 0; |
2061 var queryMap = {}; | 2296 var queryMap = {}; |
2062 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2297 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2063 parseBool(n) { | 2298 parseBool(n) { |
2064 if (n == "true") return true; | 2299 if (n == "true") return true; |
2065 if (n == "false") return false; | 2300 if (n == "false") return false; |
2066 if (n == null) return null; | 2301 if (n == null) return null; |
2067 throw new core.ArgumentError("Invalid boolean: $n"); | 2302 throw new core.ArgumentError("Invalid boolean: $n"); |
2068 } | 2303 } |
| 2304 |
2069 if (query.length > 0) { | 2305 if (query.length > 0) { |
2070 for (var part in query.split("&")) { | 2306 for (var part in query.split("&")) { |
2071 var keyvalue = part.split("="); | 2307 var keyvalue = part.split("="); |
2072 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2308 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2309 core.Uri.decodeQueryComponent(keyvalue[1])); |
2073 } | 2310 } |
2074 } | 2311 } |
2075 | 2312 |
2076 | |
2077 var h = { | 2313 var h = { |
2078 "content-type" : "application/json; charset=utf-8", | 2314 "content-type": "application/json; charset=utf-8", |
2079 }; | 2315 }; |
2080 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); | 2316 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); |
2081 return new async.Future.value(stringResponse(200, h, resp)); | 2317 return new async.Future.value(stringResponse(200, h, resp)); |
2082 }), true); | 2318 }), true); |
2083 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync1(((api.G
etOobConfirmationCodeResponse response) { | 2319 res.getOobConfirmationCode(arg_request).then( |
| 2320 unittest.expectAsync1(((api.GetOobConfirmationCodeResponse response) { |
2084 checkGetOobConfirmationCodeResponse(response); | 2321 checkGetOobConfirmationCodeResponse(response); |
2085 }))); | 2322 }))); |
2086 }); | 2323 }); |
2087 | 2324 |
2088 unittest.test("method--getProjectConfig", () { | 2325 unittest.test("method--getProjectConfig", () { |
2089 | |
2090 var mock = new HttpServerMock(); | 2326 var mock = new HttpServerMock(); |
2091 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2327 api.RelyingpartyResourceApi res = |
| 2328 new api.IdentitytoolkitApi(mock).relyingparty; |
2092 var arg_delegatedProjectNumber = "foo"; | 2329 var arg_delegatedProjectNumber = "foo"; |
2093 var arg_projectNumber = "foo"; | 2330 var arg_projectNumber = "foo"; |
2094 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2331 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2095 var path = (req.url).path; | 2332 var path = (req.url).path; |
2096 var pathOffset = 0; | 2333 var pathOffset = 0; |
2097 var index; | 2334 var index; |
2098 var subPart; | 2335 var subPart; |
2099 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2336 unittest.expect( |
| 2337 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2100 pathOffset += 1; | 2338 pathOffset += 1; |
2101 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2339 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2340 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2102 pathOffset += 32; | 2341 pathOffset += 32; |
2103 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("getProjectConfig")); | 2342 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 2343 unittest.equals("getProjectConfig")); |
2104 pathOffset += 16; | 2344 pathOffset += 16; |
2105 | 2345 |
2106 var query = (req.url).query; | 2346 var query = (req.url).query; |
2107 var queryOffset = 0; | 2347 var queryOffset = 0; |
2108 var queryMap = {}; | 2348 var queryMap = {}; |
2109 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2349 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2110 parseBool(n) { | 2350 parseBool(n) { |
2111 if (n == "true") return true; | 2351 if (n == "true") return true; |
2112 if (n == "false") return false; | 2352 if (n == "false") return false; |
2113 if (n == null) return null; | 2353 if (n == null) return null; |
2114 throw new core.ArgumentError("Invalid boolean: $n"); | 2354 throw new core.ArgumentError("Invalid boolean: $n"); |
2115 } | 2355 } |
| 2356 |
2116 if (query.length > 0) { | 2357 if (query.length > 0) { |
2117 for (var part in query.split("&")) { | 2358 for (var part in query.split("&")) { |
2118 var keyvalue = part.split("="); | 2359 var keyvalue = part.split("="); |
2119 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2360 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2361 core.Uri.decodeQueryComponent(keyvalue[1])); |
2120 } | 2362 } |
2121 } | 2363 } |
2122 unittest.expect(queryMap["delegatedProjectNumber"].first, unittest.equal
s(arg_delegatedProjectNumber)); | 2364 unittest.expect(queryMap["delegatedProjectNumber"].first, |
2123 unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_pro
jectNumber)); | 2365 unittest.equals(arg_delegatedProjectNumber)); |
2124 | 2366 unittest.expect(queryMap["projectNumber"].first, |
| 2367 unittest.equals(arg_projectNumber)); |
2125 | 2368 |
2126 var h = { | 2369 var h = { |
2127 "content-type" : "application/json; charset=utf-8", | 2370 "content-type": "application/json; charset=utf-8", |
2128 }; | 2371 }; |
2129 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjec
tConfigResponse()); | 2372 var resp = convert.JSON |
| 2373 .encode(buildIdentitytoolkitRelyingpartyGetProjectConfigResponse()); |
2130 return new async.Future.value(stringResponse(200, h, resp)); | 2374 return new async.Future.value(stringResponse(200, h, resp)); |
2131 }), true); | 2375 }), true); |
2132 res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, p
rojectNumber: arg_projectNumber).then(unittest.expectAsync1(((api.Identitytoolki
tRelyingpartyGetProjectConfigResponse response) { | 2376 res |
| 2377 .getProjectConfig( |
| 2378 delegatedProjectNumber: arg_delegatedProjectNumber, |
| 2379 projectNumber: arg_projectNumber) |
| 2380 .then(unittest.expectAsync1( |
| 2381 ((api.IdentitytoolkitRelyingpartyGetProjectConfigResponse |
| 2382 response) { |
2133 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); | 2383 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); |
2134 }))); | 2384 }))); |
2135 }); | 2385 }); |
2136 | 2386 |
2137 unittest.test("method--getPublicKeys", () { | 2387 unittest.test("method--getPublicKeys", () { |
2138 | |
2139 var mock = new HttpServerMock(); | 2388 var mock = new HttpServerMock(); |
2140 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2389 api.RelyingpartyResourceApi res = |
| 2390 new api.IdentitytoolkitApi(mock).relyingparty; |
2141 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2391 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2142 var path = (req.url).path; | 2392 var path = (req.url).path; |
2143 var pathOffset = 0; | 2393 var pathOffset = 0; |
2144 var index; | 2394 var index; |
2145 var subPart; | 2395 var subPart; |
2146 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2396 unittest.expect( |
| 2397 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2147 pathOffset += 1; | 2398 pathOffset += 1; |
2148 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2399 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2400 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2149 pathOffset += 32; | 2401 pathOffset += 32; |
2150 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("publicKeys")); | 2402 unittest.expect(path.substring(pathOffset, pathOffset + 10), |
| 2403 unittest.equals("publicKeys")); |
2151 pathOffset += 10; | 2404 pathOffset += 10; |
2152 | 2405 |
2153 var query = (req.url).query; | 2406 var query = (req.url).query; |
2154 var queryOffset = 0; | 2407 var queryOffset = 0; |
2155 var queryMap = {}; | 2408 var queryMap = {}; |
2156 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2409 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2157 parseBool(n) { | 2410 parseBool(n) { |
2158 if (n == "true") return true; | 2411 if (n == "true") return true; |
2159 if (n == "false") return false; | 2412 if (n == "false") return false; |
2160 if (n == null) return null; | 2413 if (n == null) return null; |
2161 throw new core.ArgumentError("Invalid boolean: $n"); | 2414 throw new core.ArgumentError("Invalid boolean: $n"); |
2162 } | 2415 } |
| 2416 |
2163 if (query.length > 0) { | 2417 if (query.length > 0) { |
2164 for (var part in query.split("&")) { | 2418 for (var part in query.split("&")) { |
2165 var keyvalue = part.split("="); | 2419 var keyvalue = part.split("="); |
2166 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2420 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2421 core.Uri.decodeQueryComponent(keyvalue[1])); |
2167 } | 2422 } |
2168 } | 2423 } |
2169 | 2424 |
2170 | |
2171 var h = { | 2425 var h = { |
2172 "content-type" : "application/json; charset=utf-8", | 2426 "content-type": "application/json; charset=utf-8", |
2173 }; | 2427 }; |
2174 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublic
KeysResponse()); | 2428 var resp = convert.JSON |
| 2429 .encode(buildIdentitytoolkitRelyingpartyGetPublicKeysResponse()); |
2175 return new async.Future.value(stringResponse(200, h, resp)); | 2430 return new async.Future.value(stringResponse(200, h, resp)); |
2176 }), true); | 2431 }), true); |
2177 res.getPublicKeys().then(unittest.expectAsync1(((api.IdentitytoolkitRelyin
gpartyGetPublicKeysResponse response) { | 2432 res.getPublicKeys().then(unittest.expectAsync1( |
| 2433 ((api.IdentitytoolkitRelyingpartyGetPublicKeysResponse response) { |
2178 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); | 2434 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); |
2179 }))); | 2435 }))); |
2180 }); | 2436 }); |
2181 | 2437 |
2182 unittest.test("method--getRecaptchaParam", () { | 2438 unittest.test("method--getRecaptchaParam", () { |
2183 | |
2184 var mock = new HttpServerMock(); | 2439 var mock = new HttpServerMock(); |
2185 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2440 api.RelyingpartyResourceApi res = |
| 2441 new api.IdentitytoolkitApi(mock).relyingparty; |
2186 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2442 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2187 var path = (req.url).path; | 2443 var path = (req.url).path; |
2188 var pathOffset = 0; | 2444 var pathOffset = 0; |
2189 var index; | 2445 var index; |
2190 var subPart; | 2446 var subPart; |
2191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2447 unittest.expect( |
| 2448 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2192 pathOffset += 1; | 2449 pathOffset += 1; |
2193 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2450 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2451 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2194 pathOffset += 32; | 2452 pathOffset += 32; |
2195 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("getRecaptchaParam")); | 2453 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 2454 unittest.equals("getRecaptchaParam")); |
2196 pathOffset += 17; | 2455 pathOffset += 17; |
2197 | 2456 |
2198 var query = (req.url).query; | 2457 var query = (req.url).query; |
2199 var queryOffset = 0; | 2458 var queryOffset = 0; |
2200 var queryMap = {}; | 2459 var queryMap = {}; |
2201 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2460 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2202 parseBool(n) { | 2461 parseBool(n) { |
2203 if (n == "true") return true; | 2462 if (n == "true") return true; |
2204 if (n == "false") return false; | 2463 if (n == "false") return false; |
2205 if (n == null) return null; | 2464 if (n == null) return null; |
2206 throw new core.ArgumentError("Invalid boolean: $n"); | 2465 throw new core.ArgumentError("Invalid boolean: $n"); |
2207 } | 2466 } |
| 2467 |
2208 if (query.length > 0) { | 2468 if (query.length > 0) { |
2209 for (var part in query.split("&")) { | 2469 for (var part in query.split("&")) { |
2210 var keyvalue = part.split("="); | 2470 var keyvalue = part.split("="); |
2211 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2471 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2472 core.Uri.decodeQueryComponent(keyvalue[1])); |
2212 } | 2473 } |
2213 } | 2474 } |
2214 | 2475 |
2215 | |
2216 var h = { | 2476 var h = { |
2217 "content-type" : "application/json; charset=utf-8", | 2477 "content-type": "application/json; charset=utf-8", |
2218 }; | 2478 }; |
2219 var resp = convert.JSON.encode(buildGetRecaptchaParamResponse()); | 2479 var resp = convert.JSON.encode(buildGetRecaptchaParamResponse()); |
2220 return new async.Future.value(stringResponse(200, h, resp)); | 2480 return new async.Future.value(stringResponse(200, h, resp)); |
2221 }), true); | 2481 }), true); |
2222 res.getRecaptchaParam().then(unittest.expectAsync1(((api.GetRecaptchaParam
Response response) { | 2482 res.getRecaptchaParam().then( |
| 2483 unittest.expectAsync1(((api.GetRecaptchaParamResponse response) { |
2223 checkGetRecaptchaParamResponse(response); | 2484 checkGetRecaptchaParamResponse(response); |
2224 }))); | 2485 }))); |
2225 }); | 2486 }); |
2226 | 2487 |
2227 unittest.test("method--resetPassword", () { | 2488 unittest.test("method--resetPassword", () { |
2228 | |
2229 var mock = new HttpServerMock(); | 2489 var mock = new HttpServerMock(); |
2230 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2490 api.RelyingpartyResourceApi res = |
| 2491 new api.IdentitytoolkitApi(mock).relyingparty; |
2231 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); | 2492 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); |
2232 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2493 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2233 var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJs
on(json); | 2494 var obj = |
| 2495 new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJson( |
| 2496 json); |
2234 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); | 2497 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); |
2235 | 2498 |
2236 var path = (req.url).path; | 2499 var path = (req.url).path; |
2237 var pathOffset = 0; | 2500 var pathOffset = 0; |
2238 var index; | 2501 var index; |
2239 var subPart; | 2502 var subPart; |
2240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2503 unittest.expect( |
| 2504 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2241 pathOffset += 1; | 2505 pathOffset += 1; |
2242 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2506 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2507 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2243 pathOffset += 32; | 2508 pathOffset += 32; |
2244 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("resetPassword")); | 2509 unittest.expect(path.substring(pathOffset, pathOffset + 13), |
| 2510 unittest.equals("resetPassword")); |
2245 pathOffset += 13; | 2511 pathOffset += 13; |
2246 | 2512 |
2247 var query = (req.url).query; | 2513 var query = (req.url).query; |
2248 var queryOffset = 0; | 2514 var queryOffset = 0; |
2249 var queryMap = {}; | 2515 var queryMap = {}; |
2250 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2516 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2251 parseBool(n) { | 2517 parseBool(n) { |
2252 if (n == "true") return true; | 2518 if (n == "true") return true; |
2253 if (n == "false") return false; | 2519 if (n == "false") return false; |
2254 if (n == null) return null; | 2520 if (n == null) return null; |
2255 throw new core.ArgumentError("Invalid boolean: $n"); | 2521 throw new core.ArgumentError("Invalid boolean: $n"); |
2256 } | 2522 } |
| 2523 |
2257 if (query.length > 0) { | 2524 if (query.length > 0) { |
2258 for (var part in query.split("&")) { | 2525 for (var part in query.split("&")) { |
2259 var keyvalue = part.split("="); | 2526 var keyvalue = part.split("="); |
2260 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2527 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2528 core.Uri.decodeQueryComponent(keyvalue[1])); |
2261 } | 2529 } |
2262 } | 2530 } |
2263 | 2531 |
2264 | |
2265 var h = { | 2532 var h = { |
2266 "content-type" : "application/json; charset=utf-8", | 2533 "content-type": "application/json; charset=utf-8", |
2267 }; | 2534 }; |
2268 var resp = convert.JSON.encode(buildResetPasswordResponse()); | 2535 var resp = convert.JSON.encode(buildResetPasswordResponse()); |
2269 return new async.Future.value(stringResponse(200, h, resp)); | 2536 return new async.Future.value(stringResponse(200, h, resp)); |
2270 }), true); | 2537 }), true); |
2271 res.resetPassword(arg_request).then(unittest.expectAsync1(((api.ResetPassw
ordResponse response) { | 2538 res |
| 2539 .resetPassword(arg_request) |
| 2540 .then(unittest.expectAsync1(((api.ResetPasswordResponse response) { |
2272 checkResetPasswordResponse(response); | 2541 checkResetPasswordResponse(response); |
2273 }))); | 2542 }))); |
2274 }); | 2543 }); |
2275 | 2544 |
| 2545 unittest.test("method--sendVerificationCode", () { |
| 2546 var mock = new HttpServerMock(); |
| 2547 api.RelyingpartyResourceApi res = |
| 2548 new api.IdentitytoolkitApi(mock).relyingparty; |
| 2549 var arg_request = |
| 2550 buildIdentitytoolkitRelyingpartySendVerificationCodeRequest(); |
| 2551 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2552 var obj = new api |
| 2553 .IdentitytoolkitRelyingpartySendVerificationCodeRequest.fromJson
( |
| 2554 json); |
| 2555 checkIdentitytoolkitRelyingpartySendVerificationCodeRequest(obj); |
| 2556 |
| 2557 var path = (req.url).path; |
| 2558 var pathOffset = 0; |
| 2559 var index; |
| 2560 var subPart; |
| 2561 unittest.expect( |
| 2562 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 2563 pathOffset += 1; |
| 2564 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2565 unittest.equals("identitytoolkit/v3/relyingparty/")); |
| 2566 pathOffset += 32; |
| 2567 unittest.expect(path.substring(pathOffset, pathOffset + 20), |
| 2568 unittest.equals("sendVerificationCode")); |
| 2569 pathOffset += 20; |
| 2570 |
| 2571 var query = (req.url).query; |
| 2572 var queryOffset = 0; |
| 2573 var queryMap = {}; |
| 2574 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2575 parseBool(n) { |
| 2576 if (n == "true") return true; |
| 2577 if (n == "false") return false; |
| 2578 if (n == null) return null; |
| 2579 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2580 } |
| 2581 |
| 2582 if (query.length > 0) { |
| 2583 for (var part in query.split("&")) { |
| 2584 var keyvalue = part.split("="); |
| 2585 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2586 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 2587 } |
| 2588 } |
| 2589 |
| 2590 var h = { |
| 2591 "content-type": "application/json; charset=utf-8", |
| 2592 }; |
| 2593 var resp = convert.JSON.encode( |
| 2594 buildIdentitytoolkitRelyingpartySendVerificationCodeResponse()); |
| 2595 return new async.Future.value(stringResponse(200, h, resp)); |
| 2596 }), true); |
| 2597 res.sendVerificationCode(arg_request).then(unittest.expectAsync1( |
| 2598 ((api.IdentitytoolkitRelyingpartySendVerificationCodeResponse |
| 2599 response) { |
| 2600 checkIdentitytoolkitRelyingpartySendVerificationCodeResponse(response); |
| 2601 }))); |
| 2602 }); |
| 2603 |
2276 unittest.test("method--setAccountInfo", () { | 2604 unittest.test("method--setAccountInfo", () { |
2277 | |
2278 var mock = new HttpServerMock(); | 2605 var mock = new HttpServerMock(); |
2279 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2606 api.RelyingpartyResourceApi res = |
| 2607 new api.IdentitytoolkitApi(mock).relyingparty; |
2280 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); | 2608 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); |
2281 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2609 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2282 var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJ
son(json); | 2610 var obj = |
| 2611 new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJson( |
| 2612 json); |
2283 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); | 2613 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); |
2284 | 2614 |
2285 var path = (req.url).path; | 2615 var path = (req.url).path; |
2286 var pathOffset = 0; | 2616 var pathOffset = 0; |
2287 var index; | 2617 var index; |
2288 var subPart; | 2618 var subPart; |
2289 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2619 unittest.expect( |
| 2620 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2290 pathOffset += 1; | 2621 pathOffset += 1; |
2291 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2622 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2623 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2292 pathOffset += 32; | 2624 pathOffset += 32; |
2293 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("setAccountInfo")); | 2625 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 2626 unittest.equals("setAccountInfo")); |
2294 pathOffset += 14; | 2627 pathOffset += 14; |
2295 | 2628 |
2296 var query = (req.url).query; | 2629 var query = (req.url).query; |
2297 var queryOffset = 0; | 2630 var queryOffset = 0; |
2298 var queryMap = {}; | 2631 var queryMap = {}; |
2299 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2632 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2300 parseBool(n) { | 2633 parseBool(n) { |
2301 if (n == "true") return true; | 2634 if (n == "true") return true; |
2302 if (n == "false") return false; | 2635 if (n == "false") return false; |
2303 if (n == null) return null; | 2636 if (n == null) return null; |
2304 throw new core.ArgumentError("Invalid boolean: $n"); | 2637 throw new core.ArgumentError("Invalid boolean: $n"); |
2305 } | 2638 } |
| 2639 |
2306 if (query.length > 0) { | 2640 if (query.length > 0) { |
2307 for (var part in query.split("&")) { | 2641 for (var part in query.split("&")) { |
2308 var keyvalue = part.split("="); | 2642 var keyvalue = part.split("="); |
2309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2643 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2644 core.Uri.decodeQueryComponent(keyvalue[1])); |
2310 } | 2645 } |
2311 } | 2646 } |
2312 | 2647 |
2313 | |
2314 var h = { | 2648 var h = { |
2315 "content-type" : "application/json; charset=utf-8", | 2649 "content-type": "application/json; charset=utf-8", |
2316 }; | 2650 }; |
2317 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); | 2651 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); |
2318 return new async.Future.value(stringResponse(200, h, resp)); | 2652 return new async.Future.value(stringResponse(200, h, resp)); |
2319 }), true); | 2653 }), true); |
2320 res.setAccountInfo(arg_request).then(unittest.expectAsync1(((api.SetAccoun
tInfoResponse response) { | 2654 res |
| 2655 .setAccountInfo(arg_request) |
| 2656 .then(unittest.expectAsync1(((api.SetAccountInfoResponse response) { |
2321 checkSetAccountInfoResponse(response); | 2657 checkSetAccountInfoResponse(response); |
2322 }))); | 2658 }))); |
2323 }); | 2659 }); |
2324 | 2660 |
2325 unittest.test("method--setProjectConfig", () { | 2661 unittest.test("method--setProjectConfig", () { |
2326 | |
2327 var mock = new HttpServerMock(); | 2662 var mock = new HttpServerMock(); |
2328 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2663 api.RelyingpartyResourceApi res = |
2329 var arg_request = buildIdentitytoolkitRelyingpartySetProjectConfigRequest(
); | 2664 new api.IdentitytoolkitApi(mock).relyingparty; |
| 2665 var arg_request = |
| 2666 buildIdentitytoolkitRelyingpartySetProjectConfigRequest(); |
2330 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2667 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2331 var obj = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fro
mJson(json); | 2668 var obj = |
| 2669 new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fromJson( |
| 2670 json); |
2332 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj); | 2671 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj); |
2333 | 2672 |
2334 var path = (req.url).path; | 2673 var path = (req.url).path; |
2335 var pathOffset = 0; | 2674 var pathOffset = 0; |
2336 var index; | 2675 var index; |
2337 var subPart; | 2676 var subPart; |
2338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2677 unittest.expect( |
| 2678 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2339 pathOffset += 1; | 2679 pathOffset += 1; |
2340 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2680 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2681 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2341 pathOffset += 32; | 2682 pathOffset += 32; |
2342 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("setProjectConfig")); | 2683 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 2684 unittest.equals("setProjectConfig")); |
2343 pathOffset += 16; | 2685 pathOffset += 16; |
2344 | 2686 |
2345 var query = (req.url).query; | 2687 var query = (req.url).query; |
2346 var queryOffset = 0; | 2688 var queryOffset = 0; |
2347 var queryMap = {}; | 2689 var queryMap = {}; |
2348 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2690 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2349 parseBool(n) { | 2691 parseBool(n) { |
2350 if (n == "true") return true; | 2692 if (n == "true") return true; |
2351 if (n == "false") return false; | 2693 if (n == "false") return false; |
2352 if (n == null) return null; | 2694 if (n == null) return null; |
2353 throw new core.ArgumentError("Invalid boolean: $n"); | 2695 throw new core.ArgumentError("Invalid boolean: $n"); |
2354 } | 2696 } |
| 2697 |
2355 if (query.length > 0) { | 2698 if (query.length > 0) { |
2356 for (var part in query.split("&")) { | 2699 for (var part in query.split("&")) { |
2357 var keyvalue = part.split("="); | 2700 var keyvalue = part.split("="); |
2358 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2701 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2702 core.Uri.decodeQueryComponent(keyvalue[1])); |
2359 } | 2703 } |
2360 } | 2704 } |
2361 | 2705 |
2362 | |
2363 var h = { | 2706 var h = { |
2364 "content-type" : "application/json; charset=utf-8", | 2707 "content-type": "application/json; charset=utf-8", |
2365 }; | 2708 }; |
2366 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySetProjec
tConfigResponse()); | 2709 var resp = convert.JSON |
| 2710 .encode(buildIdentitytoolkitRelyingpartySetProjectConfigResponse()); |
2367 return new async.Future.value(stringResponse(200, h, resp)); | 2711 return new async.Future.value(stringResponse(200, h, resp)); |
2368 }), true); | 2712 }), true); |
2369 res.setProjectConfig(arg_request).then(unittest.expectAsync1(((api.Identit
ytoolkitRelyingpartySetProjectConfigResponse response) { | 2713 res.setProjectConfig(arg_request).then(unittest.expectAsync1( |
| 2714 ((api.IdentitytoolkitRelyingpartySetProjectConfigResponse response) { |
2370 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response); | 2715 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response); |
2371 }))); | 2716 }))); |
2372 }); | 2717 }); |
2373 | 2718 |
2374 unittest.test("method--signOutUser", () { | 2719 unittest.test("method--signOutUser", () { |
2375 | |
2376 var mock = new HttpServerMock(); | 2720 var mock = new HttpServerMock(); |
2377 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2721 api.RelyingpartyResourceApi res = |
| 2722 new api.IdentitytoolkitApi(mock).relyingparty; |
2378 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); | 2723 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); |
2379 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2724 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2380 var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson
(json); | 2725 var obj = |
| 2726 new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson( |
| 2727 json); |
2381 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); | 2728 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); |
2382 | 2729 |
2383 var path = (req.url).path; | 2730 var path = (req.url).path; |
2384 var pathOffset = 0; | 2731 var pathOffset = 0; |
2385 var index; | 2732 var index; |
2386 var subPart; | 2733 var subPart; |
2387 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2734 unittest.expect( |
| 2735 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2388 pathOffset += 1; | 2736 pathOffset += 1; |
2389 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2737 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2738 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2390 pathOffset += 32; | 2739 pathOffset += 32; |
2391 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("signOutUser")); | 2740 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 2741 unittest.equals("signOutUser")); |
2392 pathOffset += 11; | 2742 pathOffset += 11; |
2393 | 2743 |
2394 var query = (req.url).query; | 2744 var query = (req.url).query; |
2395 var queryOffset = 0; | 2745 var queryOffset = 0; |
2396 var queryMap = {}; | 2746 var queryMap = {}; |
2397 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2747 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2398 parseBool(n) { | 2748 parseBool(n) { |
2399 if (n == "true") return true; | 2749 if (n == "true") return true; |
2400 if (n == "false") return false; | 2750 if (n == "false") return false; |
2401 if (n == null) return null; | 2751 if (n == null) return null; |
2402 throw new core.ArgumentError("Invalid boolean: $n"); | 2752 throw new core.ArgumentError("Invalid boolean: $n"); |
2403 } | 2753 } |
| 2754 |
2404 if (query.length > 0) { | 2755 if (query.length > 0) { |
2405 for (var part in query.split("&")) { | 2756 for (var part in query.split("&")) { |
2406 var keyvalue = part.split("="); | 2757 var keyvalue = part.split("="); |
2407 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2758 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2759 core.Uri.decodeQueryComponent(keyvalue[1])); |
2408 } | 2760 } |
2409 } | 2761 } |
2410 | 2762 |
2411 | |
2412 var h = { | 2763 var h = { |
2413 "content-type" : "application/json; charset=utf-8", | 2764 "content-type": "application/json; charset=utf-8", |
2414 }; | 2765 }; |
2415 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUs
erResponse()); | 2766 var resp = convert.JSON |
| 2767 .encode(buildIdentitytoolkitRelyingpartySignOutUserResponse()); |
2416 return new async.Future.value(stringResponse(200, h, resp)); | 2768 return new async.Future.value(stringResponse(200, h, resp)); |
2417 }), true); | 2769 }), true); |
2418 res.signOutUser(arg_request).then(unittest.expectAsync1(((api.Identitytool
kitRelyingpartySignOutUserResponse response) { | 2770 res.signOutUser(arg_request).then(unittest.expectAsync1( |
| 2771 ((api.IdentitytoolkitRelyingpartySignOutUserResponse response) { |
2419 checkIdentitytoolkitRelyingpartySignOutUserResponse(response); | 2772 checkIdentitytoolkitRelyingpartySignOutUserResponse(response); |
2420 }))); | 2773 }))); |
2421 }); | 2774 }); |
2422 | 2775 |
2423 unittest.test("method--signupNewUser", () { | 2776 unittest.test("method--signupNewUser", () { |
2424 | |
2425 var mock = new HttpServerMock(); | 2777 var mock = new HttpServerMock(); |
2426 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2778 api.RelyingpartyResourceApi res = |
| 2779 new api.IdentitytoolkitApi(mock).relyingparty; |
2427 var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); | 2780 var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); |
2428 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2781 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2429 var obj = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJs
on(json); | 2782 var obj = |
| 2783 new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson( |
| 2784 json); |
2430 checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj); | 2785 checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj); |
2431 | 2786 |
2432 var path = (req.url).path; | 2787 var path = (req.url).path; |
2433 var pathOffset = 0; | 2788 var pathOffset = 0; |
2434 var index; | 2789 var index; |
2435 var subPart; | 2790 var subPart; |
2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2791 unittest.expect( |
| 2792 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2437 pathOffset += 1; | 2793 pathOffset += 1; |
2438 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2794 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2795 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2439 pathOffset += 32; | 2796 pathOffset += 32; |
2440 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("signupNewUser")); | 2797 unittest.expect(path.substring(pathOffset, pathOffset + 13), |
| 2798 unittest.equals("signupNewUser")); |
2441 pathOffset += 13; | 2799 pathOffset += 13; |
2442 | 2800 |
2443 var query = (req.url).query; | 2801 var query = (req.url).query; |
2444 var queryOffset = 0; | 2802 var queryOffset = 0; |
2445 var queryMap = {}; | 2803 var queryMap = {}; |
2446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2804 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2447 parseBool(n) { | 2805 parseBool(n) { |
2448 if (n == "true") return true; | 2806 if (n == "true") return true; |
2449 if (n == "false") return false; | 2807 if (n == "false") return false; |
2450 if (n == null) return null; | 2808 if (n == null) return null; |
2451 throw new core.ArgumentError("Invalid boolean: $n"); | 2809 throw new core.ArgumentError("Invalid boolean: $n"); |
2452 } | 2810 } |
| 2811 |
2453 if (query.length > 0) { | 2812 if (query.length > 0) { |
2454 for (var part in query.split("&")) { | 2813 for (var part in query.split("&")) { |
2455 var keyvalue = part.split("="); | 2814 var keyvalue = part.split("="); |
2456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2815 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2816 core.Uri.decodeQueryComponent(keyvalue[1])); |
2457 } | 2817 } |
2458 } | 2818 } |
2459 | 2819 |
2460 | |
2461 var h = { | 2820 var h = { |
2462 "content-type" : "application/json; charset=utf-8", | 2821 "content-type": "application/json; charset=utf-8", |
2463 }; | 2822 }; |
2464 var resp = convert.JSON.encode(buildSignupNewUserResponse()); | 2823 var resp = convert.JSON.encode(buildSignupNewUserResponse()); |
2465 return new async.Future.value(stringResponse(200, h, resp)); | 2824 return new async.Future.value(stringResponse(200, h, resp)); |
2466 }), true); | 2825 }), true); |
2467 res.signupNewUser(arg_request).then(unittest.expectAsync1(((api.SignupNewU
serResponse response) { | 2826 res |
| 2827 .signupNewUser(arg_request) |
| 2828 .then(unittest.expectAsync1(((api.SignupNewUserResponse response) { |
2468 checkSignupNewUserResponse(response); | 2829 checkSignupNewUserResponse(response); |
2469 }))); | 2830 }))); |
2470 }); | 2831 }); |
2471 | 2832 |
2472 unittest.test("method--uploadAccount", () { | 2833 unittest.test("method--uploadAccount", () { |
2473 | |
2474 var mock = new HttpServerMock(); | 2834 var mock = new HttpServerMock(); |
2475 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2835 api.RelyingpartyResourceApi res = |
| 2836 new api.IdentitytoolkitApi(mock).relyingparty; |
2476 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); | 2837 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); |
2477 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2838 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2478 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs
on(json); | 2839 var obj = |
| 2840 new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson( |
| 2841 json); |
2479 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); | 2842 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); |
2480 | 2843 |
2481 var path = (req.url).path; | 2844 var path = (req.url).path; |
2482 var pathOffset = 0; | 2845 var pathOffset = 0; |
2483 var index; | 2846 var index; |
2484 var subPart; | 2847 var subPart; |
2485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2848 unittest.expect( |
| 2849 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2486 pathOffset += 1; | 2850 pathOffset += 1; |
2487 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2851 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2852 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2488 pathOffset += 32; | 2853 pathOffset += 32; |
2489 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("uploadAccount")); | 2854 unittest.expect(path.substring(pathOffset, pathOffset + 13), |
| 2855 unittest.equals("uploadAccount")); |
2490 pathOffset += 13; | 2856 pathOffset += 13; |
2491 | 2857 |
2492 var query = (req.url).query; | 2858 var query = (req.url).query; |
2493 var queryOffset = 0; | 2859 var queryOffset = 0; |
2494 var queryMap = {}; | 2860 var queryMap = {}; |
2495 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2861 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2496 parseBool(n) { | 2862 parseBool(n) { |
2497 if (n == "true") return true; | 2863 if (n == "true") return true; |
2498 if (n == "false") return false; | 2864 if (n == "false") return false; |
2499 if (n == null) return null; | 2865 if (n == null) return null; |
2500 throw new core.ArgumentError("Invalid boolean: $n"); | 2866 throw new core.ArgumentError("Invalid boolean: $n"); |
2501 } | 2867 } |
| 2868 |
2502 if (query.length > 0) { | 2869 if (query.length > 0) { |
2503 for (var part in query.split("&")) { | 2870 for (var part in query.split("&")) { |
2504 var keyvalue = part.split("="); | 2871 var keyvalue = part.split("="); |
2505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2873 core.Uri.decodeQueryComponent(keyvalue[1])); |
2506 } | 2874 } |
2507 } | 2875 } |
2508 | 2876 |
2509 | |
2510 var h = { | 2877 var h = { |
2511 "content-type" : "application/json; charset=utf-8", | 2878 "content-type": "application/json; charset=utf-8", |
2512 }; | 2879 }; |
2513 var resp = convert.JSON.encode(buildUploadAccountResponse()); | 2880 var resp = convert.JSON.encode(buildUploadAccountResponse()); |
2514 return new async.Future.value(stringResponse(200, h, resp)); | 2881 return new async.Future.value(stringResponse(200, h, resp)); |
2515 }), true); | 2882 }), true); |
2516 res.uploadAccount(arg_request).then(unittest.expectAsync1(((api.UploadAcco
untResponse response) { | 2883 res |
| 2884 .uploadAccount(arg_request) |
| 2885 .then(unittest.expectAsync1(((api.UploadAccountResponse response) { |
2517 checkUploadAccountResponse(response); | 2886 checkUploadAccountResponse(response); |
2518 }))); | 2887 }))); |
2519 }); | 2888 }); |
2520 | 2889 |
2521 unittest.test("method--verifyAssertion", () { | 2890 unittest.test("method--verifyAssertion", () { |
2522 | |
2523 var mock = new HttpServerMock(); | 2891 var mock = new HttpServerMock(); |
2524 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2892 api.RelyingpartyResourceApi res = |
2525 var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest()
; | 2893 new api.IdentitytoolkitApi(mock).relyingparty; |
| 2894 var arg_request = |
| 2895 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest(); |
2526 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2896 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2527 var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.from
Json(json); | 2897 var obj = |
| 2898 new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson( |
| 2899 json); |
2528 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); | 2900 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); |
2529 | 2901 |
2530 var path = (req.url).path; | 2902 var path = (req.url).path; |
2531 var pathOffset = 0; | 2903 var pathOffset = 0; |
2532 var index; | 2904 var index; |
2533 var subPart; | 2905 var subPart; |
2534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2906 unittest.expect( |
| 2907 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2535 pathOffset += 1; | 2908 pathOffset += 1; |
2536 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2909 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2910 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2537 pathOffset += 32; | 2911 pathOffset += 32; |
2538 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("verifyAssertion")); | 2912 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 2913 unittest.equals("verifyAssertion")); |
2539 pathOffset += 15; | 2914 pathOffset += 15; |
2540 | 2915 |
2541 var query = (req.url).query; | 2916 var query = (req.url).query; |
2542 var queryOffset = 0; | 2917 var queryOffset = 0; |
2543 var queryMap = {}; | 2918 var queryMap = {}; |
2544 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2919 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2545 parseBool(n) { | 2920 parseBool(n) { |
2546 if (n == "true") return true; | 2921 if (n == "true") return true; |
2547 if (n == "false") return false; | 2922 if (n == "false") return false; |
2548 if (n == null) return null; | 2923 if (n == null) return null; |
2549 throw new core.ArgumentError("Invalid boolean: $n"); | 2924 throw new core.ArgumentError("Invalid boolean: $n"); |
2550 } | 2925 } |
| 2926 |
2551 if (query.length > 0) { | 2927 if (query.length > 0) { |
2552 for (var part in query.split("&")) { | 2928 for (var part in query.split("&")) { |
2553 var keyvalue = part.split("="); | 2929 var keyvalue = part.split("="); |
2554 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2930 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2931 core.Uri.decodeQueryComponent(keyvalue[1])); |
2555 } | 2932 } |
2556 } | 2933 } |
2557 | 2934 |
2558 | |
2559 var h = { | 2935 var h = { |
2560 "content-type" : "application/json; charset=utf-8", | 2936 "content-type": "application/json; charset=utf-8", |
2561 }; | 2937 }; |
2562 var resp = convert.JSON.encode(buildVerifyAssertionResponse()); | 2938 var resp = convert.JSON.encode(buildVerifyAssertionResponse()); |
2563 return new async.Future.value(stringResponse(200, h, resp)); | 2939 return new async.Future.value(stringResponse(200, h, resp)); |
2564 }), true); | 2940 }), true); |
2565 res.verifyAssertion(arg_request).then(unittest.expectAsync1(((api.VerifyAs
sertionResponse response) { | 2941 res |
| 2942 .verifyAssertion(arg_request) |
| 2943 .then(unittest.expectAsync1(((api.VerifyAssertionResponse response) { |
2566 checkVerifyAssertionResponse(response); | 2944 checkVerifyAssertionResponse(response); |
2567 }))); | 2945 }))); |
2568 }); | 2946 }); |
2569 | 2947 |
2570 unittest.test("method--verifyCustomToken", () { | 2948 unittest.test("method--verifyCustomToken", () { |
2571 | |
2572 var mock = new HttpServerMock(); | 2949 var mock = new HttpServerMock(); |
2573 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 2950 api.RelyingpartyResourceApi res = |
2574 var arg_request = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest
(); | 2951 new api.IdentitytoolkitApi(mock).relyingparty; |
| 2952 var arg_request = |
| 2953 buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(); |
2575 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2954 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2576 var obj = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fr
omJson(json); | 2955 var obj = new api |
| 2956 .IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fromJson(json); |
2577 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(obj); | 2957 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(obj); |
2578 | 2958 |
2579 var path = (req.url).path; | 2959 var path = (req.url).path; |
2580 var pathOffset = 0; | 2960 var pathOffset = 0; |
2581 var index; | 2961 var index; |
2582 var subPart; | 2962 var subPart; |
2583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2963 unittest.expect( |
| 2964 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2584 pathOffset += 1; | 2965 pathOffset += 1; |
2585 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 2966 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 2967 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2586 pathOffset += 32; | 2968 pathOffset += 32; |
2587 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("verifyCustomToken")); | 2969 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 2970 unittest.equals("verifyCustomToken")); |
2588 pathOffset += 17; | 2971 pathOffset += 17; |
2589 | 2972 |
2590 var query = (req.url).query; | 2973 var query = (req.url).query; |
2591 var queryOffset = 0; | 2974 var queryOffset = 0; |
2592 var queryMap = {}; | 2975 var queryMap = {}; |
2593 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2976 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2594 parseBool(n) { | 2977 parseBool(n) { |
2595 if (n == "true") return true; | 2978 if (n == "true") return true; |
2596 if (n == "false") return false; | 2979 if (n == "false") return false; |
2597 if (n == null) return null; | 2980 if (n == null) return null; |
2598 throw new core.ArgumentError("Invalid boolean: $n"); | 2981 throw new core.ArgumentError("Invalid boolean: $n"); |
2599 } | 2982 } |
| 2983 |
2600 if (query.length > 0) { | 2984 if (query.length > 0) { |
2601 for (var part in query.split("&")) { | 2985 for (var part in query.split("&")) { |
2602 var keyvalue = part.split("="); | 2986 var keyvalue = part.split("="); |
2603 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2987 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 2988 core.Uri.decodeQueryComponent(keyvalue[1])); |
2604 } | 2989 } |
2605 } | 2990 } |
2606 | 2991 |
2607 | |
2608 var h = { | 2992 var h = { |
2609 "content-type" : "application/json; charset=utf-8", | 2993 "content-type": "application/json; charset=utf-8", |
2610 }; | 2994 }; |
2611 var resp = convert.JSON.encode(buildVerifyCustomTokenResponse()); | 2995 var resp = convert.JSON.encode(buildVerifyCustomTokenResponse()); |
2612 return new async.Future.value(stringResponse(200, h, resp)); | 2996 return new async.Future.value(stringResponse(200, h, resp)); |
2613 }), true); | 2997 }), true); |
2614 res.verifyCustomToken(arg_request).then(unittest.expectAsync1(((api.Verify
CustomTokenResponse response) { | 2998 res.verifyCustomToken(arg_request).then( |
| 2999 unittest.expectAsync1(((api.VerifyCustomTokenResponse response) { |
2615 checkVerifyCustomTokenResponse(response); | 3000 checkVerifyCustomTokenResponse(response); |
2616 }))); | 3001 }))); |
2617 }); | 3002 }); |
2618 | 3003 |
2619 unittest.test("method--verifyPassword", () { | 3004 unittest.test("method--verifyPassword", () { |
2620 | |
2621 var mock = new HttpServerMock(); | 3005 var mock = new HttpServerMock(); |
2622 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying
party; | 3006 api.RelyingpartyResourceApi res = |
| 3007 new api.IdentitytoolkitApi(mock).relyingparty; |
2623 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); | 3008 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); |
2624 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3009 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2625 var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJ
son(json); | 3010 var obj = |
| 3011 new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson( |
| 3012 json); |
2626 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); | 3013 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); |
2627 | 3014 |
2628 var path = (req.url).path; | 3015 var path = (req.url).path; |
2629 var pathOffset = 0; | 3016 var pathOffset = 0; |
2630 var index; | 3017 var index; |
2631 var subPart; | 3018 var subPart; |
2632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3019 unittest.expect( |
| 3020 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
2633 pathOffset += 1; | 3021 pathOffset += 1; |
2634 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("identitytoolkit/v3/relyingparty/")); | 3022 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 3023 unittest.equals("identitytoolkit/v3/relyingparty/")); |
2635 pathOffset += 32; | 3024 pathOffset += 32; |
2636 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("verifyPassword")); | 3025 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 3026 unittest.equals("verifyPassword")); |
2637 pathOffset += 14; | 3027 pathOffset += 14; |
2638 | 3028 |
2639 var query = (req.url).query; | 3029 var query = (req.url).query; |
2640 var queryOffset = 0; | 3030 var queryOffset = 0; |
2641 var queryMap = {}; | 3031 var queryMap = {}; |
2642 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3032 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2643 parseBool(n) { | 3033 parseBool(n) { |
2644 if (n == "true") return true; | 3034 if (n == "true") return true; |
2645 if (n == "false") return false; | 3035 if (n == "false") return false; |
2646 if (n == null) return null; | 3036 if (n == null) return null; |
2647 throw new core.ArgumentError("Invalid boolean: $n"); | 3037 throw new core.ArgumentError("Invalid boolean: $n"); |
2648 } | 3038 } |
| 3039 |
2649 if (query.length > 0) { | 3040 if (query.length > 0) { |
2650 for (var part in query.split("&")) { | 3041 for (var part in query.split("&")) { |
2651 var keyvalue = part.split("="); | 3042 var keyvalue = part.split("="); |
2652 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3043 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 3044 core.Uri.decodeQueryComponent(keyvalue[1])); |
2653 } | 3045 } |
2654 } | 3046 } |
2655 | 3047 |
2656 | |
2657 var h = { | 3048 var h = { |
2658 "content-type" : "application/json; charset=utf-8", | 3049 "content-type": "application/json; charset=utf-8", |
2659 }; | 3050 }; |
2660 var resp = convert.JSON.encode(buildVerifyPasswordResponse()); | 3051 var resp = convert.JSON.encode(buildVerifyPasswordResponse()); |
2661 return new async.Future.value(stringResponse(200, h, resp)); | 3052 return new async.Future.value(stringResponse(200, h, resp)); |
2662 }), true); | 3053 }), true); |
2663 res.verifyPassword(arg_request).then(unittest.expectAsync1(((api.VerifyPas
swordResponse response) { | 3054 res |
| 3055 .verifyPassword(arg_request) |
| 3056 .then(unittest.expectAsync1(((api.VerifyPasswordResponse response) { |
2664 checkVerifyPasswordResponse(response); | 3057 checkVerifyPasswordResponse(response); |
2665 }))); | 3058 }))); |
2666 }); | 3059 }); |
2667 | 3060 |
| 3061 unittest.test("method--verifyPhoneNumber", () { |
| 3062 var mock = new HttpServerMock(); |
| 3063 api.RelyingpartyResourceApi res = |
| 3064 new api.IdentitytoolkitApi(mock).relyingparty; |
| 3065 var arg_request = |
| 3066 buildIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest(); |
| 3067 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3068 var obj = new api |
| 3069 .IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest.fromJson(json); |
| 3070 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberRequest(obj); |
| 3071 |
| 3072 var path = (req.url).path; |
| 3073 var pathOffset = 0; |
| 3074 var index; |
| 3075 var subPart; |
| 3076 unittest.expect( |
| 3077 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
| 3078 pathOffset += 1; |
| 3079 unittest.expect(path.substring(pathOffset, pathOffset + 32), |
| 3080 unittest.equals("identitytoolkit/v3/relyingparty/")); |
| 3081 pathOffset += 32; |
| 3082 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 3083 unittest.equals("verifyPhoneNumber")); |
| 3084 pathOffset += 17; |
| 3085 |
| 3086 var query = (req.url).query; |
| 3087 var queryOffset = 0; |
| 3088 var queryMap = {}; |
| 3089 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3090 parseBool(n) { |
| 3091 if (n == "true") return true; |
| 3092 if (n == "false") return false; |
| 3093 if (n == null) return null; |
| 3094 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3095 } |
| 3096 |
| 3097 if (query.length > 0) { |
| 3098 for (var part in query.split("&")) { |
| 3099 var keyvalue = part.split("="); |
| 3100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 3101 core.Uri.decodeQueryComponent(keyvalue[1])); |
| 3102 } |
| 3103 } |
| 3104 |
| 3105 var h = { |
| 3106 "content-type": "application/json; charset=utf-8", |
| 3107 }; |
| 3108 var resp = convert.JSON.encode( |
| 3109 buildIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse()); |
| 3110 return new async.Future.value(stringResponse(200, h, resp)); |
| 3111 }), true); |
| 3112 res.verifyPhoneNumber(arg_request).then(unittest.expectAsync1( |
| 3113 ((api.IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse response) { |
| 3114 checkIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse(response); |
| 3115 }))); |
| 3116 }); |
2668 }); | 3117 }); |
2669 | |
2670 | |
2671 } | 3118 } |
2672 | |
OLD | NEW |