Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: generated/googleapis/test/identitytoolkit/v3_test.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.identitytoolkit.v3.test; 1 library googleapis.identitytoolkit.v3.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
11 11
12 import 'package:googleapis/identitytoolkit/v3.dart' as api; 12 import 'package:googleapis/identitytoolkit/v3.dart' as api;
13 13
14 class HttpServerMock extends http.BaseClient { 14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 15 core.Function _callback;
16 core.bool _expectJson; 16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) { 18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 19 _callback = callback;
20 _expectJson = expectJson; 20 _expectJson = expectJson;
(...skipping 18 matching lines...) Expand all
39 } else { 39 } else {
40 return stream.toBytes().then((data) { 40 return stream.toBytes().then((data) {
41 return _callback(request, data); 41 return _callback(request, data);
42 }); 42 });
43 } 43 }
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed2274() { 54 buildUnnamed2297() {
55 var o = new core.List<core.String>(); 55 var o = new core.List<core.String>();
56 o.add("foo"); 56 o.add("foo");
57 o.add("foo"); 57 o.add("foo");
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed2274(core.List<core.String> o) { 61 checkUnnamed2297(core.List<core.String> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 unittest.expect(o[0], unittest.equals('foo')); 63 unittest.expect(o[0], unittest.equals('foo'));
64 unittest.expect(o[1], unittest.equals('foo')); 64 unittest.expect(o[1], unittest.equals('foo'));
65 } 65 }
66 66
67 core.int buildCounterCreateAuthUriResponse = 0; 67 core.int buildCounterCreateAuthUriResponse = 0;
68 buildCreateAuthUriResponse() { 68 buildCreateAuthUriResponse() {
69 var o = new api.CreateAuthUriResponse(); 69 var o = new api.CreateAuthUriResponse();
70 buildCounterCreateAuthUriResponse++; 70 buildCounterCreateAuthUriResponse++;
71 if (buildCounterCreateAuthUriResponse < 3) { 71 if (buildCounterCreateAuthUriResponse < 3) {
72 o.allProviders = buildUnnamed2274(); 72 o.allProviders = buildUnnamed2297();
73 o.authUri = "foo"; 73 o.authUri = "foo";
74 o.captchaRequired = true; 74 o.captchaRequired = true;
75 o.forExistingProvider = true; 75 o.forExistingProvider = true;
76 o.kind = "foo"; 76 o.kind = "foo";
77 o.providerId = "foo"; 77 o.providerId = "foo";
78 o.registered = true; 78 o.registered = true;
79 o.sessionId = "foo"; 79 o.sessionId = "foo";
80 } 80 }
81 buildCounterCreateAuthUriResponse--; 81 buildCounterCreateAuthUriResponse--;
82 return o; 82 return o;
83 } 83 }
84 84
85 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { 85 checkCreateAuthUriResponse(api.CreateAuthUriResponse o) {
86 buildCounterCreateAuthUriResponse++; 86 buildCounterCreateAuthUriResponse++;
87 if (buildCounterCreateAuthUriResponse < 3) { 87 if (buildCounterCreateAuthUriResponse < 3) {
88 checkUnnamed2274(o.allProviders); 88 checkUnnamed2297(o.allProviders);
89 unittest.expect(o.authUri, unittest.equals('foo')); 89 unittest.expect(o.authUri, unittest.equals('foo'));
90 unittest.expect(o.captchaRequired, unittest.isTrue); 90 unittest.expect(o.captchaRequired, unittest.isTrue);
91 unittest.expect(o.forExistingProvider, unittest.isTrue); 91 unittest.expect(o.forExistingProvider, unittest.isTrue);
92 unittest.expect(o.kind, unittest.equals('foo')); 92 unittest.expect(o.kind, unittest.equals('foo'));
93 unittest.expect(o.providerId, unittest.equals('foo')); 93 unittest.expect(o.providerId, unittest.equals('foo'));
94 unittest.expect(o.registered, unittest.isTrue); 94 unittest.expect(o.registered, unittest.isTrue);
95 unittest.expect(o.sessionId, unittest.equals('foo')); 95 unittest.expect(o.sessionId, unittest.equals('foo'));
96 } 96 }
97 buildCounterCreateAuthUriResponse--; 97 buildCounterCreateAuthUriResponse--;
98 } 98 }
(...skipping 10 matching lines...) Expand all
109 } 109 }
110 110
111 checkDeleteAccountResponse(api.DeleteAccountResponse o) { 111 checkDeleteAccountResponse(api.DeleteAccountResponse o) {
112 buildCounterDeleteAccountResponse++; 112 buildCounterDeleteAccountResponse++;
113 if (buildCounterDeleteAccountResponse < 3) { 113 if (buildCounterDeleteAccountResponse < 3) {
114 unittest.expect(o.kind, unittest.equals('foo')); 114 unittest.expect(o.kind, unittest.equals('foo'));
115 } 115 }
116 buildCounterDeleteAccountResponse--; 116 buildCounterDeleteAccountResponse--;
117 } 117 }
118 118
119 buildUnnamed2275() { 119 buildUnnamed2298() {
120 var o = new core.List<api.UserInfo>(); 120 var o = new core.List<api.UserInfo>();
121 o.add(buildUserInfo()); 121 o.add(buildUserInfo());
122 o.add(buildUserInfo()); 122 o.add(buildUserInfo());
123 return o; 123 return o;
124 } 124 }
125 125
126 checkUnnamed2275(core.List<api.UserInfo> o) { 126 checkUnnamed2298(core.List<api.UserInfo> o) {
127 unittest.expect(o, unittest.hasLength(2)); 127 unittest.expect(o, unittest.hasLength(2));
128 checkUserInfo(o[0]); 128 checkUserInfo(o[0]);
129 checkUserInfo(o[1]); 129 checkUserInfo(o[1]);
130 } 130 }
131 131
132 core.int buildCounterDownloadAccountResponse = 0; 132 core.int buildCounterDownloadAccountResponse = 0;
133 buildDownloadAccountResponse() { 133 buildDownloadAccountResponse() {
134 var o = new api.DownloadAccountResponse(); 134 var o = new api.DownloadAccountResponse();
135 buildCounterDownloadAccountResponse++; 135 buildCounterDownloadAccountResponse++;
136 if (buildCounterDownloadAccountResponse < 3) { 136 if (buildCounterDownloadAccountResponse < 3) {
137 o.kind = "foo"; 137 o.kind = "foo";
138 o.nextPageToken = "foo"; 138 o.nextPageToken = "foo";
139 o.users = buildUnnamed2275(); 139 o.users = buildUnnamed2298();
140 } 140 }
141 buildCounterDownloadAccountResponse--; 141 buildCounterDownloadAccountResponse--;
142 return o; 142 return o;
143 } 143 }
144 144
145 checkDownloadAccountResponse(api.DownloadAccountResponse o) { 145 checkDownloadAccountResponse(api.DownloadAccountResponse o) {
146 buildCounterDownloadAccountResponse++; 146 buildCounterDownloadAccountResponse++;
147 if (buildCounterDownloadAccountResponse < 3) { 147 if (buildCounterDownloadAccountResponse < 3) {
148 unittest.expect(o.kind, unittest.equals('foo')); 148 unittest.expect(o.kind, unittest.equals('foo'));
149 unittest.expect(o.nextPageToken, unittest.equals('foo')); 149 unittest.expect(o.nextPageToken, unittest.equals('foo'));
150 checkUnnamed2275(o.users); 150 checkUnnamed2298(o.users);
151 } 151 }
152 buildCounterDownloadAccountResponse--; 152 buildCounterDownloadAccountResponse--;
153 } 153 }
154 154
155 core.int buildCounterEmailTemplate = 0; 155 core.int buildCounterEmailTemplate = 0;
156 buildEmailTemplate() { 156 buildEmailTemplate() {
157 var o = new api.EmailTemplate(); 157 var o = new api.EmailTemplate();
158 buildCounterEmailTemplate++; 158 buildCounterEmailTemplate++;
159 if (buildCounterEmailTemplate < 3) { 159 if (buildCounterEmailTemplate < 3) {
160 o.body = "foo"; 160 o.body = "foo";
(...skipping 13 matching lines...) Expand all
174 unittest.expect(o.body, unittest.equals('foo')); 174 unittest.expect(o.body, unittest.equals('foo'));
175 unittest.expect(o.format, unittest.equals('foo')); 175 unittest.expect(o.format, unittest.equals('foo'));
176 unittest.expect(o.from, unittest.equals('foo')); 176 unittest.expect(o.from, unittest.equals('foo'));
177 unittest.expect(o.fromDisplayName, unittest.equals('foo')); 177 unittest.expect(o.fromDisplayName, unittest.equals('foo'));
178 unittest.expect(o.replyTo, unittest.equals('foo')); 178 unittest.expect(o.replyTo, unittest.equals('foo'));
179 unittest.expect(o.subject, unittest.equals('foo')); 179 unittest.expect(o.subject, unittest.equals('foo'));
180 } 180 }
181 buildCounterEmailTemplate--; 181 buildCounterEmailTemplate--;
182 } 182 }
183 183
184 buildUnnamed2276() { 184 buildUnnamed2299() {
185 var o = new core.List<api.UserInfo>(); 185 var o = new core.List<api.UserInfo>();
186 o.add(buildUserInfo()); 186 o.add(buildUserInfo());
187 o.add(buildUserInfo()); 187 o.add(buildUserInfo());
188 return o; 188 return o;
189 } 189 }
190 190
191 checkUnnamed2276(core.List<api.UserInfo> o) { 191 checkUnnamed2299(core.List<api.UserInfo> o) {
192 unittest.expect(o, unittest.hasLength(2)); 192 unittest.expect(o, unittest.hasLength(2));
193 checkUserInfo(o[0]); 193 checkUserInfo(o[0]);
194 checkUserInfo(o[1]); 194 checkUserInfo(o[1]);
195 } 195 }
196 196
197 core.int buildCounterGetAccountInfoResponse = 0; 197 core.int buildCounterGetAccountInfoResponse = 0;
198 buildGetAccountInfoResponse() { 198 buildGetAccountInfoResponse() {
199 var o = new api.GetAccountInfoResponse(); 199 var o = new api.GetAccountInfoResponse();
200 buildCounterGetAccountInfoResponse++; 200 buildCounterGetAccountInfoResponse++;
201 if (buildCounterGetAccountInfoResponse < 3) { 201 if (buildCounterGetAccountInfoResponse < 3) {
202 o.kind = "foo"; 202 o.kind = "foo";
203 o.users = buildUnnamed2276(); 203 o.users = buildUnnamed2299();
204 } 204 }
205 buildCounterGetAccountInfoResponse--; 205 buildCounterGetAccountInfoResponse--;
206 return o; 206 return o;
207 } 207 }
208 208
209 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) { 209 checkGetAccountInfoResponse(api.GetAccountInfoResponse o) {
210 buildCounterGetAccountInfoResponse++; 210 buildCounterGetAccountInfoResponse++;
211 if (buildCounterGetAccountInfoResponse < 3) { 211 if (buildCounterGetAccountInfoResponse < 3) {
212 unittest.expect(o.kind, unittest.equals('foo')); 212 unittest.expect(o.kind, unittest.equals('foo'));
213 checkUnnamed2276(o.users); 213 checkUnnamed2299(o.users);
214 } 214 }
215 buildCounterGetAccountInfoResponse--; 215 buildCounterGetAccountInfoResponse--;
216 } 216 }
217 217
218 core.int buildCounterGetOobConfirmationCodeResponse = 0; 218 core.int buildCounterGetOobConfirmationCodeResponse = 0;
219 buildGetOobConfirmationCodeResponse() { 219 buildGetOobConfirmationCodeResponse() {
220 var o = new api.GetOobConfirmationCodeResponse(); 220 var o = new api.GetOobConfirmationCodeResponse();
221 buildCounterGetOobConfirmationCodeResponse++; 221 buildCounterGetOobConfirmationCodeResponse++;
222 if (buildCounterGetOobConfirmationCodeResponse < 3) { 222 if (buildCounterGetOobConfirmationCodeResponse < 3) {
223 o.email = "foo"; 223 o.email = "foo";
(...skipping 30 matching lines...) Expand all
254 checkGetRecaptchaParamResponse(api.GetRecaptchaParamResponse o) { 254 checkGetRecaptchaParamResponse(api.GetRecaptchaParamResponse o) {
255 buildCounterGetRecaptchaParamResponse++; 255 buildCounterGetRecaptchaParamResponse++;
256 if (buildCounterGetRecaptchaParamResponse < 3) { 256 if (buildCounterGetRecaptchaParamResponse < 3) {
257 unittest.expect(o.kind, unittest.equals('foo')); 257 unittest.expect(o.kind, unittest.equals('foo'));
258 unittest.expect(o.recaptchaSiteKey, unittest.equals('foo')); 258 unittest.expect(o.recaptchaSiteKey, unittest.equals('foo'));
259 unittest.expect(o.recaptchaStoken, unittest.equals('foo')); 259 unittest.expect(o.recaptchaStoken, unittest.equals('foo'));
260 } 260 }
261 buildCounterGetRecaptchaParamResponse--; 261 buildCounterGetRecaptchaParamResponse--;
262 } 262 }
263 263
264 buildUnnamed2277() { 264 buildUnnamed2300() {
265 var o = new core.Map<core.String, core.String>(); 265 var o = new core.Map<core.String, core.String>();
266 o["x"] = "foo"; 266 o["x"] = "foo";
267 o["y"] = "foo"; 267 o["y"] = "foo";
268 return o; 268 return o;
269 } 269 }
270 270
271 checkUnnamed2277(core.Map<core.String, core.String> o) { 271 checkUnnamed2300(core.Map<core.String, core.String> o) {
272 unittest.expect(o, unittest.hasLength(2)); 272 unittest.expect(o, unittest.hasLength(2));
273 unittest.expect(o["x"], unittest.equals('foo')); 273 unittest.expect(o["x"], unittest.equals('foo'));
274 unittest.expect(o["y"], unittest.equals('foo')); 274 unittest.expect(o["y"], unittest.equals('foo'));
275 } 275 }
276 276
277 core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0; 277 core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0;
278 buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() { 278 buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() {
279 var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest(); 279 var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest();
280 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++; 280 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest++;
281 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) { 281 if (buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest < 3) {
282 o.appId = "foo"; 282 o.appId = "foo";
283 o.authFlowType = "foo"; 283 o.authFlowType = "foo";
284 o.clientId = "foo"; 284 o.clientId = "foo";
285 o.context = "foo"; 285 o.context = "foo";
286 o.continueUri = "foo"; 286 o.continueUri = "foo";
287 o.customParameter = buildUnnamed2277(); 287 o.customParameter = buildUnnamed2300();
288 o.hostedDomain = "foo"; 288 o.hostedDomain = "foo";
289 o.identifier = "foo"; 289 o.identifier = "foo";
290 o.oauthConsumerKey = "foo"; 290 o.oauthConsumerKey = "foo";
291 o.oauthScope = "foo"; 291 o.oauthScope = "foo";
292 o.openidRealm = "foo"; 292 o.openidRealm = "foo";
293 o.otaApp = "foo"; 293 o.otaApp = "foo";
294 o.providerId = "foo"; 294 o.providerId = "foo";
295 o.sessionId = "foo"; 295 o.sessionId = "foo";
296 } 296 }
297 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; 297 buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--;
298 return o; 298 return o;
299 } 299 }
300 300
301 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(api.IdentitytoolkitRelyingp artyCreateAuthUriRequest o) { 301 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(api.IdentitytoolkitRelyingp artyCreateAuthUriRequest 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 checkUnnamed2277(o.customParameter); 309 checkUnnamed2300(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--;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++; 360 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest++;
361 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) { 361 if (buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest < 3) {
362 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); 362 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo'));
363 unittest.expect(o.maxResults, unittest.equals(42)); 363 unittest.expect(o.maxResults, unittest.equals(42));
364 unittest.expect(o.nextPageToken, unittest.equals('foo')); 364 unittest.expect(o.nextPageToken, unittest.equals('foo'));
365 unittest.expect(o.targetProjectId, unittest.equals('foo')); 365 unittest.expect(o.targetProjectId, unittest.equals('foo'));
366 } 366 }
367 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; 367 buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--;
368 } 368 }
369 369
370 buildUnnamed2278() { 370 buildUnnamed2301() {
371 var o = new core.List<core.String>(); 371 var o = new core.List<core.String>();
372 o.add("foo"); 372 o.add("foo");
373 o.add("foo"); 373 o.add("foo");
374 return o; 374 return o;
375 } 375 }
376 376
377 checkUnnamed2278(core.List<core.String> o) { 377 checkUnnamed2301(core.List<core.String> o) {
378 unittest.expect(o, unittest.hasLength(2)); 378 unittest.expect(o, unittest.hasLength(2));
379 unittest.expect(o[0], unittest.equals('foo')); 379 unittest.expect(o[0], unittest.equals('foo'));
380 unittest.expect(o[1], unittest.equals('foo')); 380 unittest.expect(o[1], unittest.equals('foo'));
381 } 381 }
382 382
383 buildUnnamed2279() { 383 buildUnnamed2302() {
384 var o = new core.List<core.String>(); 384 var o = new core.List<core.String>();
385 o.add("foo"); 385 o.add("foo");
386 o.add("foo"); 386 o.add("foo");
387 return o; 387 return o;
388 } 388 }
389 389
390 checkUnnamed2279(core.List<core.String> o) { 390 checkUnnamed2302(core.List<core.String> o) {
391 unittest.expect(o, unittest.hasLength(2)); 391 unittest.expect(o, unittest.hasLength(2));
392 unittest.expect(o[0], unittest.equals('foo')); 392 unittest.expect(o[0], unittest.equals('foo'));
393 unittest.expect(o[1], unittest.equals('foo')); 393 unittest.expect(o[1], unittest.equals('foo'));
394 } 394 }
395 395
396 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0; 396 core.int buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest = 0;
397 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() { 397 buildIdentitytoolkitRelyingpartyGetAccountInfoRequest() {
398 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest(); 398 var o = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest();
399 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; 399 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++;
400 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { 400 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) {
401 o.delegatedProjectNumber = "foo"; 401 o.delegatedProjectNumber = "foo";
402 o.email = buildUnnamed2278(); 402 o.email = buildUnnamed2301();
403 o.idToken = "foo"; 403 o.idToken = "foo";
404 o.localId = buildUnnamed2279(); 404 o.localId = buildUnnamed2302();
405 } 405 }
406 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; 406 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--;
407 return o; 407 return o;
408 } 408 }
409 409
410 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying partyGetAccountInfoRequest o) { 410 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(api.IdentitytoolkitRelying partyGetAccountInfoRequest o) {
411 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; 411 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++;
412 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { 412 if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) {
413 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); 413 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo'));
414 checkUnnamed2278(o.email); 414 checkUnnamed2301(o.email);
415 unittest.expect(o.idToken, unittest.equals('foo')); 415 unittest.expect(o.idToken, unittest.equals('foo'));
416 checkUnnamed2279(o.localId); 416 checkUnnamed2302(o.localId);
417 } 417 }
418 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; 418 buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--;
419 } 419 }
420 420
421 buildUnnamed2280() { 421 buildUnnamed2303() {
422 var o = new core.List<core.String>(); 422 var o = new core.List<core.String>();
423 o.add("foo"); 423 o.add("foo");
424 o.add("foo"); 424 o.add("foo");
425 return o; 425 return o;
426 } 426 }
427 427
428 checkUnnamed2280(core.List<core.String> o) { 428 checkUnnamed2303(core.List<core.String> o) {
429 unittest.expect(o, unittest.hasLength(2)); 429 unittest.expect(o, unittest.hasLength(2));
430 unittest.expect(o[0], unittest.equals('foo')); 430 unittest.expect(o[0], unittest.equals('foo'));
431 unittest.expect(o[1], unittest.equals('foo')); 431 unittest.expect(o[1], unittest.equals('foo'));
432 } 432 }
433 433
434 buildUnnamed2281() { 434 buildUnnamed2304() {
435 var o = new core.List<api.IdpConfig>(); 435 var o = new core.List<api.IdpConfig>();
436 o.add(buildIdpConfig()); 436 o.add(buildIdpConfig());
437 o.add(buildIdpConfig()); 437 o.add(buildIdpConfig());
438 return o; 438 return o;
439 } 439 }
440 440
441 checkUnnamed2281(core.List<api.IdpConfig> o) { 441 checkUnnamed2304(core.List<api.IdpConfig> o) {
442 unittest.expect(o, unittest.hasLength(2)); 442 unittest.expect(o, unittest.hasLength(2));
443 checkIdpConfig(o[0]); 443 checkIdpConfig(o[0]);
444 checkIdpConfig(o[1]); 444 checkIdpConfig(o[1]);
445 } 445 }
446 446
447 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0; 447 core.int buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse = 0;
448 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() { 448 buildIdentitytoolkitRelyingpartyGetProjectConfigResponse() {
449 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse(); 449 var o = new api.IdentitytoolkitRelyingpartyGetProjectConfigResponse();
450 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; 450 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++;
451 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { 451 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) {
452 o.allowPasswordUser = true; 452 o.allowPasswordUser = true;
453 o.apiKey = "foo"; 453 o.apiKey = "foo";
454 o.authorizedDomains = buildUnnamed2280(); 454 o.authorizedDomains = buildUnnamed2303();
455 o.changeEmailTemplate = buildEmailTemplate(); 455 o.changeEmailTemplate = buildEmailTemplate();
456 o.dynamicLinksDomain = "foo"; 456 o.dynamicLinksDomain = "foo";
457 o.enableAnonymousUser = true; 457 o.enableAnonymousUser = true;
458 o.idpConfig = buildUnnamed2281(); 458 o.idpConfig = buildUnnamed2304();
459 o.legacyResetPasswordTemplate = buildEmailTemplate(); 459 o.legacyResetPasswordTemplate = buildEmailTemplate();
460 o.projectId = "foo"; 460 o.projectId = "foo";
461 o.resetPasswordTemplate = buildEmailTemplate(); 461 o.resetPasswordTemplate = buildEmailTemplate();
462 o.useEmailSending = true; 462 o.useEmailSending = true;
463 o.verifyEmailTemplate = buildEmailTemplate(); 463 o.verifyEmailTemplate = buildEmailTemplate();
464 } 464 }
465 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; 465 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--;
466 return o; 466 return o;
467 } 467 }
468 468
469 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(api.IdentitytoolkitRely ingpartyGetProjectConfigResponse o) { 469 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(api.IdentitytoolkitRely ingpartyGetProjectConfigResponse o) {
470 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++; 470 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse++;
471 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { 471 if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) {
472 unittest.expect(o.allowPasswordUser, unittest.isTrue); 472 unittest.expect(o.allowPasswordUser, unittest.isTrue);
473 unittest.expect(o.apiKey, unittest.equals('foo')); 473 unittest.expect(o.apiKey, unittest.equals('foo'));
474 checkUnnamed2280(o.authorizedDomains); 474 checkUnnamed2303(o.authorizedDomains);
475 checkEmailTemplate(o.changeEmailTemplate); 475 checkEmailTemplate(o.changeEmailTemplate);
476 unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); 476 unittest.expect(o.dynamicLinksDomain, unittest.equals('foo'));
477 unittest.expect(o.enableAnonymousUser, unittest.isTrue); 477 unittest.expect(o.enableAnonymousUser, unittest.isTrue);
478 checkUnnamed2281(o.idpConfig); 478 checkUnnamed2304(o.idpConfig);
479 checkEmailTemplate(o.legacyResetPasswordTemplate); 479 checkEmailTemplate(o.legacyResetPasswordTemplate);
480 unittest.expect(o.projectId, unittest.equals('foo')); 480 unittest.expect(o.projectId, unittest.equals('foo'));
481 checkEmailTemplate(o.resetPasswordTemplate); 481 checkEmailTemplate(o.resetPasswordTemplate);
482 unittest.expect(o.useEmailSending, unittest.isTrue); 482 unittest.expect(o.useEmailSending, unittest.isTrue);
483 checkEmailTemplate(o.verifyEmailTemplate); 483 checkEmailTemplate(o.verifyEmailTemplate);
484 } 484 }
485 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--; 485 buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse--;
486 } 486 }
487 487
488 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() { 488 buildIdentitytoolkitRelyingpartyGetPublicKeysResponse() {
(...skipping 27 matching lines...) Expand all
516 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++; 516 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest++;
517 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) { 517 if (buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest < 3) {
518 unittest.expect(o.email, unittest.equals('foo')); 518 unittest.expect(o.email, unittest.equals('foo'));
519 unittest.expect(o.newPassword, unittest.equals('foo')); 519 unittest.expect(o.newPassword, unittest.equals('foo'));
520 unittest.expect(o.oldPassword, unittest.equals('foo')); 520 unittest.expect(o.oldPassword, unittest.equals('foo'));
521 unittest.expect(o.oobCode, unittest.equals('foo')); 521 unittest.expect(o.oobCode, unittest.equals('foo'));
522 } 522 }
523 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; 523 buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--;
524 } 524 }
525 525
526 buildUnnamed2282() { 526 buildUnnamed2305() {
527 var o = new core.List<core.String>(); 527 var o = new core.List<core.String>();
528 o.add("foo"); 528 o.add("foo");
529 o.add("foo"); 529 o.add("foo");
530 return o; 530 return o;
531 } 531 }
532 532
533 checkUnnamed2282(core.List<core.String> o) { 533 checkUnnamed2305(core.List<core.String> o) {
534 unittest.expect(o, unittest.hasLength(2)); 534 unittest.expect(o, unittest.hasLength(2));
535 unittest.expect(o[0], unittest.equals('foo')); 535 unittest.expect(o[0], unittest.equals('foo'));
536 unittest.expect(o[1], unittest.equals('foo')); 536 unittest.expect(o[1], unittest.equals('foo'));
537 } 537 }
538 538
539 buildUnnamed2283() { 539 buildUnnamed2306() {
540 var o = new core.List<core.String>(); 540 var o = new core.List<core.String>();
541 o.add("foo"); 541 o.add("foo");
542 o.add("foo"); 542 o.add("foo");
543 return o; 543 return o;
544 } 544 }
545 545
546 checkUnnamed2283(core.List<core.String> o) { 546 checkUnnamed2306(core.List<core.String> o) {
547 unittest.expect(o, unittest.hasLength(2)); 547 unittest.expect(o, unittest.hasLength(2));
548 unittest.expect(o[0], unittest.equals('foo')); 548 unittest.expect(o[0], unittest.equals('foo'));
549 unittest.expect(o[1], unittest.equals('foo')); 549 unittest.expect(o[1], unittest.equals('foo'));
550 } 550 }
551 551
552 buildUnnamed2284() { 552 buildUnnamed2307() {
553 var o = new core.List<core.String>(); 553 var o = new core.List<core.String>();
554 o.add("foo"); 554 o.add("foo");
555 o.add("foo"); 555 o.add("foo");
556 return o; 556 return o;
557 } 557 }
558 558
559 checkUnnamed2284(core.List<core.String> o) { 559 checkUnnamed2307(core.List<core.String> o) {
560 unittest.expect(o, unittest.hasLength(2)); 560 unittest.expect(o, unittest.hasLength(2));
561 unittest.expect(o[0], unittest.equals('foo')); 561 unittest.expect(o[0], unittest.equals('foo'));
562 unittest.expect(o[1], unittest.equals('foo')); 562 unittest.expect(o[1], unittest.equals('foo'));
563 } 563 }
564 564
565 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0; 565 core.int buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest = 0;
566 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() { 566 buildIdentitytoolkitRelyingpartySetAccountInfoRequest() {
567 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest(); 567 var o = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest();
568 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; 568 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++;
569 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { 569 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) {
570 o.captchaChallenge = "foo"; 570 o.captchaChallenge = "foo";
571 o.captchaResponse = "foo"; 571 o.captchaResponse = "foo";
572 o.createdAt = "foo"; 572 o.createdAt = "foo";
573 o.delegatedProjectNumber = "foo"; 573 o.delegatedProjectNumber = "foo";
574 o.deleteAttribute = buildUnnamed2282(); 574 o.deleteAttribute = buildUnnamed2305();
575 o.deleteProvider = buildUnnamed2283(); 575 o.deleteProvider = buildUnnamed2306();
576 o.disableUser = true; 576 o.disableUser = true;
577 o.displayName = "foo"; 577 o.displayName = "foo";
578 o.email = "foo"; 578 o.email = "foo";
579 o.emailVerified = true; 579 o.emailVerified = true;
580 o.idToken = "foo"; 580 o.idToken = "foo";
581 o.instanceId = "foo"; 581 o.instanceId = "foo";
582 o.lastLoginAt = "foo"; 582 o.lastLoginAt = "foo";
583 o.localId = "foo"; 583 o.localId = "foo";
584 o.oobCode = "foo"; 584 o.oobCode = "foo";
585 o.password = "foo"; 585 o.password = "foo";
586 o.photoUrl = "foo"; 586 o.photoUrl = "foo";
587 o.provider = buildUnnamed2284(); 587 o.provider = buildUnnamed2307();
588 o.returnSecureToken = true; 588 o.returnSecureToken = true;
589 o.upgradeToFederatedLogin = true; 589 o.upgradeToFederatedLogin = true;
590 o.validSince = "foo"; 590 o.validSince = "foo";
591 } 591 }
592 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; 592 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--;
593 return o; 593 return o;
594 } 594 }
595 595
596 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying partySetAccountInfoRequest o) { 596 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(api.IdentitytoolkitRelying partySetAccountInfoRequest o) {
597 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++; 597 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest++;
598 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) { 598 if (buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest < 3) {
599 unittest.expect(o.captchaChallenge, unittest.equals('foo')); 599 unittest.expect(o.captchaChallenge, unittest.equals('foo'));
600 unittest.expect(o.captchaResponse, unittest.equals('foo')); 600 unittest.expect(o.captchaResponse, unittest.equals('foo'));
601 unittest.expect(o.createdAt, unittest.equals('foo')); 601 unittest.expect(o.createdAt, unittest.equals('foo'));
602 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); 602 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo'));
603 checkUnnamed2282(o.deleteAttribute); 603 checkUnnamed2305(o.deleteAttribute);
604 checkUnnamed2283(o.deleteProvider); 604 checkUnnamed2306(o.deleteProvider);
605 unittest.expect(o.disableUser, unittest.isTrue); 605 unittest.expect(o.disableUser, unittest.isTrue);
606 unittest.expect(o.displayName, unittest.equals('foo')); 606 unittest.expect(o.displayName, unittest.equals('foo'));
607 unittest.expect(o.email, unittest.equals('foo')); 607 unittest.expect(o.email, unittest.equals('foo'));
608 unittest.expect(o.emailVerified, unittest.isTrue); 608 unittest.expect(o.emailVerified, unittest.isTrue);
609 unittest.expect(o.idToken, unittest.equals('foo')); 609 unittest.expect(o.idToken, unittest.equals('foo'));
610 unittest.expect(o.instanceId, unittest.equals('foo')); 610 unittest.expect(o.instanceId, unittest.equals('foo'));
611 unittest.expect(o.lastLoginAt, unittest.equals('foo')); 611 unittest.expect(o.lastLoginAt, unittest.equals('foo'));
612 unittest.expect(o.localId, unittest.equals('foo')); 612 unittest.expect(o.localId, unittest.equals('foo'));
613 unittest.expect(o.oobCode, unittest.equals('foo')); 613 unittest.expect(o.oobCode, unittest.equals('foo'));
614 unittest.expect(o.password, unittest.equals('foo')); 614 unittest.expect(o.password, unittest.equals('foo'));
615 unittest.expect(o.photoUrl, unittest.equals('foo')); 615 unittest.expect(o.photoUrl, unittest.equals('foo'));
616 checkUnnamed2284(o.provider); 616 checkUnnamed2307(o.provider);
617 unittest.expect(o.returnSecureToken, unittest.isTrue); 617 unittest.expect(o.returnSecureToken, unittest.isTrue);
618 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); 618 unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue);
619 unittest.expect(o.validSince, unittest.equals('foo')); 619 unittest.expect(o.validSince, unittest.equals('foo'));
620 } 620 }
621 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; 621 buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--;
622 } 622 }
623 623
624 buildUnnamed2285() { 624 buildUnnamed2308() {
625 var o = new core.List<core.String>(); 625 var o = new core.List<core.String>();
626 o.add("foo"); 626 o.add("foo");
627 o.add("foo"); 627 o.add("foo");
628 return o; 628 return o;
629 } 629 }
630 630
631 checkUnnamed2285(core.List<core.String> o) { 631 checkUnnamed2308(core.List<core.String> o) {
632 unittest.expect(o, unittest.hasLength(2)); 632 unittest.expect(o, unittest.hasLength(2));
633 unittest.expect(o[0], unittest.equals('foo')); 633 unittest.expect(o[0], unittest.equals('foo'));
634 unittest.expect(o[1], unittest.equals('foo')); 634 unittest.expect(o[1], unittest.equals('foo'));
635 } 635 }
636 636
637 buildUnnamed2286() { 637 buildUnnamed2309() {
638 var o = new core.List<api.IdpConfig>(); 638 var o = new core.List<api.IdpConfig>();
639 o.add(buildIdpConfig()); 639 o.add(buildIdpConfig());
640 o.add(buildIdpConfig()); 640 o.add(buildIdpConfig());
641 return o; 641 return o;
642 } 642 }
643 643
644 checkUnnamed2286(core.List<api.IdpConfig> o) { 644 checkUnnamed2309(core.List<api.IdpConfig> o) {
645 unittest.expect(o, unittest.hasLength(2)); 645 unittest.expect(o, unittest.hasLength(2));
646 checkIdpConfig(o[0]); 646 checkIdpConfig(o[0]);
647 checkIdpConfig(o[1]); 647 checkIdpConfig(o[1]);
648 } 648 }
649 649
650 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest = 0; 650 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest = 0;
651 buildIdentitytoolkitRelyingpartySetProjectConfigRequest() { 651 buildIdentitytoolkitRelyingpartySetProjectConfigRequest() {
652 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest(); 652 var o = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest();
653 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; 653 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++;
654 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { 654 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) {
655 o.allowPasswordUser = true; 655 o.allowPasswordUser = true;
656 o.apiKey = "foo"; 656 o.apiKey = "foo";
657 o.authorizedDomains = buildUnnamed2285(); 657 o.authorizedDomains = buildUnnamed2308();
658 o.changeEmailTemplate = buildEmailTemplate(); 658 o.changeEmailTemplate = buildEmailTemplate();
659 o.delegatedProjectNumber = "foo"; 659 o.delegatedProjectNumber = "foo";
660 o.enableAnonymousUser = true; 660 o.enableAnonymousUser = true;
661 o.idpConfig = buildUnnamed2286(); 661 o.idpConfig = buildUnnamed2309();
662 o.legacyResetPasswordTemplate = buildEmailTemplate(); 662 o.legacyResetPasswordTemplate = buildEmailTemplate();
663 o.resetPasswordTemplate = buildEmailTemplate(); 663 o.resetPasswordTemplate = buildEmailTemplate();
664 o.useEmailSending = true; 664 o.useEmailSending = true;
665 o.verifyEmailTemplate = buildEmailTemplate(); 665 o.verifyEmailTemplate = buildEmailTemplate();
666 } 666 }
667 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; 667 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--;
668 return o; 668 return o;
669 } 669 }
670 670
671 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(api.IdentitytoolkitRelyi ngpartySetProjectConfigRequest o) { 671 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(api.IdentitytoolkitRelyi ngpartySetProjectConfigRequest o) {
672 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++; 672 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest++;
673 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { 673 if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) {
674 unittest.expect(o.allowPasswordUser, unittest.isTrue); 674 unittest.expect(o.allowPasswordUser, unittest.isTrue);
675 unittest.expect(o.apiKey, unittest.equals('foo')); 675 unittest.expect(o.apiKey, unittest.equals('foo'));
676 checkUnnamed2285(o.authorizedDomains); 676 checkUnnamed2308(o.authorizedDomains);
677 checkEmailTemplate(o.changeEmailTemplate); 677 checkEmailTemplate(o.changeEmailTemplate);
678 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); 678 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo'));
679 unittest.expect(o.enableAnonymousUser, unittest.isTrue); 679 unittest.expect(o.enableAnonymousUser, unittest.isTrue);
680 checkUnnamed2286(o.idpConfig); 680 checkUnnamed2309(o.idpConfig);
681 checkEmailTemplate(o.legacyResetPasswordTemplate); 681 checkEmailTemplate(o.legacyResetPasswordTemplate);
682 checkEmailTemplate(o.resetPasswordTemplate); 682 checkEmailTemplate(o.resetPasswordTemplate);
683 unittest.expect(o.useEmailSending, unittest.isTrue); 683 unittest.expect(o.useEmailSending, unittest.isTrue);
684 checkEmailTemplate(o.verifyEmailTemplate); 684 checkEmailTemplate(o.verifyEmailTemplate);
685 } 685 }
686 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--; 686 buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest--;
687 } 687 }
688 688
689 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse = 0; 689 core.int buildCounterIdentitytoolkitRelyingpartySetProjectConfigResponse = 0;
690 buildIdentitytoolkitRelyingpartySetProjectConfigResponse() { 690 buildIdentitytoolkitRelyingpartySetProjectConfigResponse() {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 unittest.expect(o.emailVerified, unittest.isTrue); 777 unittest.expect(o.emailVerified, unittest.isTrue);
778 unittest.expect(o.idToken, unittest.equals('foo')); 778 unittest.expect(o.idToken, unittest.equals('foo'));
779 unittest.expect(o.instanceId, unittest.equals('foo')); 779 unittest.expect(o.instanceId, unittest.equals('foo'));
780 unittest.expect(o.localId, unittest.equals('foo')); 780 unittest.expect(o.localId, unittest.equals('foo'));
781 unittest.expect(o.password, unittest.equals('foo')); 781 unittest.expect(o.password, unittest.equals('foo'));
782 unittest.expect(o.photoUrl, unittest.equals('foo')); 782 unittest.expect(o.photoUrl, unittest.equals('foo'));
783 } 783 }
784 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; 784 buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--;
785 } 785 }
786 786
787 buildUnnamed2287() { 787 buildUnnamed2310() {
788 var o = new core.List<api.UserInfo>(); 788 var o = new core.List<api.UserInfo>();
789 o.add(buildUserInfo()); 789 o.add(buildUserInfo());
790 o.add(buildUserInfo()); 790 o.add(buildUserInfo());
791 return o; 791 return o;
792 } 792 }
793 793
794 checkUnnamed2287(core.List<api.UserInfo> o) { 794 checkUnnamed2310(core.List<api.UserInfo> o) {
795 unittest.expect(o, unittest.hasLength(2)); 795 unittest.expect(o, unittest.hasLength(2));
796 checkUserInfo(o[0]); 796 checkUserInfo(o[0]);
797 checkUserInfo(o[1]); 797 checkUserInfo(o[1]);
798 } 798 }
799 799
800 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0; 800 core.int buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest = 0;
801 buildIdentitytoolkitRelyingpartyUploadAccountRequest() { 801 buildIdentitytoolkitRelyingpartyUploadAccountRequest() {
802 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); 802 var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest();
803 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; 803 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++;
804 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { 804 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) {
805 o.allowOverwrite = true; 805 o.allowOverwrite = true;
806 o.delegatedProjectNumber = "foo"; 806 o.delegatedProjectNumber = "foo";
807 o.hashAlgorithm = "foo"; 807 o.hashAlgorithm = "foo";
808 o.memoryCost = 42; 808 o.memoryCost = 42;
809 o.rounds = 42; 809 o.rounds = 42;
810 o.saltSeparator = "foo"; 810 o.saltSeparator = "foo";
811 o.sanityCheck = true; 811 o.sanityCheck = true;
812 o.signerKey = "foo"; 812 o.signerKey = "foo";
813 o.targetProjectId = "foo"; 813 o.targetProjectId = "foo";
814 o.users = buildUnnamed2287(); 814 o.users = buildUnnamed2310();
815 } 815 }
816 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; 816 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--;
817 return o; 817 return o;
818 } 818 }
819 819
820 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp artyUploadAccountRequest o) { 820 checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingp artyUploadAccountRequest o) {
821 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; 821 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++;
822 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { 822 if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) {
823 unittest.expect(o.allowOverwrite, unittest.isTrue); 823 unittest.expect(o.allowOverwrite, unittest.isTrue);
824 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); 824 unittest.expect(o.delegatedProjectNumber, unittest.equals('foo'));
825 unittest.expect(o.hashAlgorithm, unittest.equals('foo')); 825 unittest.expect(o.hashAlgorithm, unittest.equals('foo'));
826 unittest.expect(o.memoryCost, unittest.equals(42)); 826 unittest.expect(o.memoryCost, unittest.equals(42));
827 unittest.expect(o.rounds, unittest.equals(42)); 827 unittest.expect(o.rounds, unittest.equals(42));
828 unittest.expect(o.saltSeparator, unittest.equals('foo')); 828 unittest.expect(o.saltSeparator, unittest.equals('foo'));
829 unittest.expect(o.sanityCheck, unittest.isTrue); 829 unittest.expect(o.sanityCheck, unittest.isTrue);
830 unittest.expect(o.signerKey, unittest.equals('foo')); 830 unittest.expect(o.signerKey, unittest.equals('foo'));
831 unittest.expect(o.targetProjectId, unittest.equals('foo')); 831 unittest.expect(o.targetProjectId, unittest.equals('foo'));
832 checkUnnamed2287(o.users); 832 checkUnnamed2310(o.users);
833 } 833 }
834 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; 834 buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--;
835 } 835 }
836 836
837 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0; 837 core.int buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest = 0;
838 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() { 838 buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() {
839 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest(); 839 var o = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest();
840 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++; 840 buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest++;
841 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) { 841 if (buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest < 3) {
842 o.autoCreate = true; 842 o.autoCreate = true;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 unittest.expect(o.email, unittest.equals('foo')); 926 unittest.expect(o.email, unittest.equals('foo'));
927 unittest.expect(o.idToken, unittest.equals('foo')); 927 unittest.expect(o.idToken, unittest.equals('foo'));
928 unittest.expect(o.instanceId, unittest.equals('foo')); 928 unittest.expect(o.instanceId, unittest.equals('foo'));
929 unittest.expect(o.password, unittest.equals('foo')); 929 unittest.expect(o.password, unittest.equals('foo'));
930 unittest.expect(o.pendingIdToken, unittest.equals('foo')); 930 unittest.expect(o.pendingIdToken, unittest.equals('foo'));
931 unittest.expect(o.returnSecureToken, unittest.isTrue); 931 unittest.expect(o.returnSecureToken, unittest.isTrue);
932 } 932 }
933 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; 933 buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--;
934 } 934 }
935 935
936 buildUnnamed2288() { 936 buildUnnamed2311() {
937 var o = new core.List<core.String>(); 937 var o = new core.List<core.String>();
938 o.add("foo"); 938 o.add("foo");
939 o.add("foo"); 939 o.add("foo");
940 return o; 940 return o;
941 } 941 }
942 942
943 checkUnnamed2288(core.List<core.String> o) { 943 checkUnnamed2311(core.List<core.String> o) {
944 unittest.expect(o, unittest.hasLength(2)); 944 unittest.expect(o, unittest.hasLength(2));
945 unittest.expect(o[0], unittest.equals('foo')); 945 unittest.expect(o[0], unittest.equals('foo'));
946 unittest.expect(o[1], unittest.equals('foo')); 946 unittest.expect(o[1], unittest.equals('foo'));
947 } 947 }
948 948
949 core.int buildCounterIdpConfig = 0; 949 core.int buildCounterIdpConfig = 0;
950 buildIdpConfig() { 950 buildIdpConfig() {
951 var o = new api.IdpConfig(); 951 var o = new api.IdpConfig();
952 buildCounterIdpConfig++; 952 buildCounterIdpConfig++;
953 if (buildCounterIdpConfig < 3) { 953 if (buildCounterIdpConfig < 3) {
954 o.clientId = "foo"; 954 o.clientId = "foo";
955 o.enabled = true; 955 o.enabled = true;
956 o.experimentPercent = 42; 956 o.experimentPercent = 42;
957 o.provider = "foo"; 957 o.provider = "foo";
958 o.secret = "foo"; 958 o.secret = "foo";
959 o.whitelistedAudiences = buildUnnamed2288(); 959 o.whitelistedAudiences = buildUnnamed2311();
960 } 960 }
961 buildCounterIdpConfig--; 961 buildCounterIdpConfig--;
962 return o; 962 return o;
963 } 963 }
964 964
965 checkIdpConfig(api.IdpConfig o) { 965 checkIdpConfig(api.IdpConfig o) {
966 buildCounterIdpConfig++; 966 buildCounterIdpConfig++;
967 if (buildCounterIdpConfig < 3) { 967 if (buildCounterIdpConfig < 3) {
968 unittest.expect(o.clientId, unittest.equals('foo')); 968 unittest.expect(o.clientId, unittest.equals('foo'));
969 unittest.expect(o.enabled, unittest.isTrue); 969 unittest.expect(o.enabled, unittest.isTrue);
970 unittest.expect(o.experimentPercent, unittest.equals(42)); 970 unittest.expect(o.experimentPercent, unittest.equals(42));
971 unittest.expect(o.provider, unittest.equals('foo')); 971 unittest.expect(o.provider, unittest.equals('foo'));
972 unittest.expect(o.secret, unittest.equals('foo')); 972 unittest.expect(o.secret, unittest.equals('foo'));
973 checkUnnamed2288(o.whitelistedAudiences); 973 checkUnnamed2311(o.whitelistedAudiences);
974 } 974 }
975 buildCounterIdpConfig--; 975 buildCounterIdpConfig--;
976 } 976 }
977 977
978 core.int buildCounterRelyingparty = 0; 978 core.int buildCounterRelyingparty = 0;
979 buildRelyingparty() { 979 buildRelyingparty() {
980 var o = new api.Relyingparty(); 980 var o = new api.Relyingparty();
981 buildCounterRelyingparty++; 981 buildCounterRelyingparty++;
982 if (buildCounterRelyingparty < 3) { 982 if (buildCounterRelyingparty < 3) {
983 o.androidInstallApp = true; 983 o.androidInstallApp = true;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 buildCounterSetAccountInfoResponseProviderUserInfo++; 1065 buildCounterSetAccountInfoResponseProviderUserInfo++;
1066 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) { 1066 if (buildCounterSetAccountInfoResponseProviderUserInfo < 3) {
1067 unittest.expect(o.displayName, unittest.equals('foo')); 1067 unittest.expect(o.displayName, unittest.equals('foo'));
1068 unittest.expect(o.federatedId, unittest.equals('foo')); 1068 unittest.expect(o.federatedId, unittest.equals('foo'));
1069 unittest.expect(o.photoUrl, unittest.equals('foo')); 1069 unittest.expect(o.photoUrl, unittest.equals('foo'));
1070 unittest.expect(o.providerId, unittest.equals('foo')); 1070 unittest.expect(o.providerId, unittest.equals('foo'));
1071 } 1071 }
1072 buildCounterSetAccountInfoResponseProviderUserInfo--; 1072 buildCounterSetAccountInfoResponseProviderUserInfo--;
1073 } 1073 }
1074 1074
1075 buildUnnamed2289() { 1075 buildUnnamed2312() {
1076 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); 1076 var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>();
1077 o.add(buildSetAccountInfoResponseProviderUserInfo()); 1077 o.add(buildSetAccountInfoResponseProviderUserInfo());
1078 o.add(buildSetAccountInfoResponseProviderUserInfo()); 1078 o.add(buildSetAccountInfoResponseProviderUserInfo());
1079 return o; 1079 return o;
1080 } 1080 }
1081 1081
1082 checkUnnamed2289(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { 1082 checkUnnamed2312(core.List<api.SetAccountInfoResponseProviderUserInfo> o) {
1083 unittest.expect(o, unittest.hasLength(2)); 1083 unittest.expect(o, unittest.hasLength(2));
1084 checkSetAccountInfoResponseProviderUserInfo(o[0]); 1084 checkSetAccountInfoResponseProviderUserInfo(o[0]);
1085 checkSetAccountInfoResponseProviderUserInfo(o[1]); 1085 checkSetAccountInfoResponseProviderUserInfo(o[1]);
1086 } 1086 }
1087 1087
1088 core.int buildCounterSetAccountInfoResponse = 0; 1088 core.int buildCounterSetAccountInfoResponse = 0;
1089 buildSetAccountInfoResponse() { 1089 buildSetAccountInfoResponse() {
1090 var o = new api.SetAccountInfoResponse(); 1090 var o = new api.SetAccountInfoResponse();
1091 buildCounterSetAccountInfoResponse++; 1091 buildCounterSetAccountInfoResponse++;
1092 if (buildCounterSetAccountInfoResponse < 3) { 1092 if (buildCounterSetAccountInfoResponse < 3) {
1093 o.displayName = "foo"; 1093 o.displayName = "foo";
1094 o.email = "foo"; 1094 o.email = "foo";
1095 o.emailVerified = true; 1095 o.emailVerified = true;
1096 o.expiresIn = "foo"; 1096 o.expiresIn = "foo";
1097 o.idToken = "foo"; 1097 o.idToken = "foo";
1098 o.kind = "foo"; 1098 o.kind = "foo";
1099 o.localId = "foo"; 1099 o.localId = "foo";
1100 o.newEmail = "foo"; 1100 o.newEmail = "foo";
1101 o.passwordHash = "foo"; 1101 o.passwordHash = "foo";
1102 o.photoUrl = "foo"; 1102 o.photoUrl = "foo";
1103 o.providerUserInfo = buildUnnamed2289(); 1103 o.providerUserInfo = buildUnnamed2312();
1104 o.refreshToken = "foo"; 1104 o.refreshToken = "foo";
1105 } 1105 }
1106 buildCounterSetAccountInfoResponse--; 1106 buildCounterSetAccountInfoResponse--;
1107 return o; 1107 return o;
1108 } 1108 }
1109 1109
1110 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) { 1110 checkSetAccountInfoResponse(api.SetAccountInfoResponse o) {
1111 buildCounterSetAccountInfoResponse++; 1111 buildCounterSetAccountInfoResponse++;
1112 if (buildCounterSetAccountInfoResponse < 3) { 1112 if (buildCounterSetAccountInfoResponse < 3) {
1113 unittest.expect(o.displayName, unittest.equals('foo')); 1113 unittest.expect(o.displayName, unittest.equals('foo'));
1114 unittest.expect(o.email, unittest.equals('foo')); 1114 unittest.expect(o.email, unittest.equals('foo'));
1115 unittest.expect(o.emailVerified, unittest.isTrue); 1115 unittest.expect(o.emailVerified, unittest.isTrue);
1116 unittest.expect(o.expiresIn, unittest.equals('foo')); 1116 unittest.expect(o.expiresIn, unittest.equals('foo'));
1117 unittest.expect(o.idToken, unittest.equals('foo')); 1117 unittest.expect(o.idToken, unittest.equals('foo'));
1118 unittest.expect(o.kind, unittest.equals('foo')); 1118 unittest.expect(o.kind, unittest.equals('foo'));
1119 unittest.expect(o.localId, unittest.equals('foo')); 1119 unittest.expect(o.localId, unittest.equals('foo'));
1120 unittest.expect(o.newEmail, unittest.equals('foo')); 1120 unittest.expect(o.newEmail, unittest.equals('foo'));
1121 unittest.expect(o.passwordHash, unittest.equals('foo')); 1121 unittest.expect(o.passwordHash, unittest.equals('foo'));
1122 unittest.expect(o.photoUrl, unittest.equals('foo')); 1122 unittest.expect(o.photoUrl, unittest.equals('foo'));
1123 checkUnnamed2289(o.providerUserInfo); 1123 checkUnnamed2312(o.providerUserInfo);
1124 unittest.expect(o.refreshToken, unittest.equals('foo')); 1124 unittest.expect(o.refreshToken, unittest.equals('foo'));
1125 } 1125 }
1126 buildCounterSetAccountInfoResponse--; 1126 buildCounterSetAccountInfoResponse--;
1127 } 1127 }
1128 1128
1129 core.int buildCounterSignupNewUserResponse = 0; 1129 core.int buildCounterSignupNewUserResponse = 0;
1130 buildSignupNewUserResponse() { 1130 buildSignupNewUserResponse() {
1131 var o = new api.SignupNewUserResponse(); 1131 var o = new api.SignupNewUserResponse();
1132 buildCounterSignupNewUserResponse++; 1132 buildCounterSignupNewUserResponse++;
1133 if (buildCounterSignupNewUserResponse < 3) { 1133 if (buildCounterSignupNewUserResponse < 3) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 1171
1172 checkUploadAccountResponseError(api.UploadAccountResponseError o) { 1172 checkUploadAccountResponseError(api.UploadAccountResponseError o) {
1173 buildCounterUploadAccountResponseError++; 1173 buildCounterUploadAccountResponseError++;
1174 if (buildCounterUploadAccountResponseError < 3) { 1174 if (buildCounterUploadAccountResponseError < 3) {
1175 unittest.expect(o.index, unittest.equals(42)); 1175 unittest.expect(o.index, unittest.equals(42));
1176 unittest.expect(o.message, unittest.equals('foo')); 1176 unittest.expect(o.message, unittest.equals('foo'));
1177 } 1177 }
1178 buildCounterUploadAccountResponseError--; 1178 buildCounterUploadAccountResponseError--;
1179 } 1179 }
1180 1180
1181 buildUnnamed2290() { 1181 buildUnnamed2313() {
1182 var o = new core.List<api.UploadAccountResponseError>(); 1182 var o = new core.List<api.UploadAccountResponseError>();
1183 o.add(buildUploadAccountResponseError()); 1183 o.add(buildUploadAccountResponseError());
1184 o.add(buildUploadAccountResponseError()); 1184 o.add(buildUploadAccountResponseError());
1185 return o; 1185 return o;
1186 } 1186 }
1187 1187
1188 checkUnnamed2290(core.List<api.UploadAccountResponseError> o) { 1188 checkUnnamed2313(core.List<api.UploadAccountResponseError> o) {
1189 unittest.expect(o, unittest.hasLength(2)); 1189 unittest.expect(o, unittest.hasLength(2));
1190 checkUploadAccountResponseError(o[0]); 1190 checkUploadAccountResponseError(o[0]);
1191 checkUploadAccountResponseError(o[1]); 1191 checkUploadAccountResponseError(o[1]);
1192 } 1192 }
1193 1193
1194 core.int buildCounterUploadAccountResponse = 0; 1194 core.int buildCounterUploadAccountResponse = 0;
1195 buildUploadAccountResponse() { 1195 buildUploadAccountResponse() {
1196 var o = new api.UploadAccountResponse(); 1196 var o = new api.UploadAccountResponse();
1197 buildCounterUploadAccountResponse++; 1197 buildCounterUploadAccountResponse++;
1198 if (buildCounterUploadAccountResponse < 3) { 1198 if (buildCounterUploadAccountResponse < 3) {
1199 o.error = buildUnnamed2290(); 1199 o.error = buildUnnamed2313();
1200 o.kind = "foo"; 1200 o.kind = "foo";
1201 } 1201 }
1202 buildCounterUploadAccountResponse--; 1202 buildCounterUploadAccountResponse--;
1203 return o; 1203 return o;
1204 } 1204 }
1205 1205
1206 checkUploadAccountResponse(api.UploadAccountResponse o) { 1206 checkUploadAccountResponse(api.UploadAccountResponse o) {
1207 buildCounterUploadAccountResponse++; 1207 buildCounterUploadAccountResponse++;
1208 if (buildCounterUploadAccountResponse < 3) { 1208 if (buildCounterUploadAccountResponse < 3) {
1209 checkUnnamed2290(o.error); 1209 checkUnnamed2313(o.error);
1210 unittest.expect(o.kind, unittest.equals('foo')); 1210 unittest.expect(o.kind, unittest.equals('foo'));
1211 } 1211 }
1212 buildCounterUploadAccountResponse--; 1212 buildCounterUploadAccountResponse--;
1213 } 1213 }
1214 1214
1215 core.int buildCounterUserInfoProviderUserInfo = 0; 1215 core.int buildCounterUserInfoProviderUserInfo = 0;
1216 buildUserInfoProviderUserInfo() { 1216 buildUserInfoProviderUserInfo() {
1217 var o = new api.UserInfoProviderUserInfo(); 1217 var o = new api.UserInfoProviderUserInfo();
1218 buildCounterUserInfoProviderUserInfo++; 1218 buildCounterUserInfoProviderUserInfo++;
1219 if (buildCounterUserInfoProviderUserInfo < 3) { 1219 if (buildCounterUserInfoProviderUserInfo < 3) {
(...skipping 18 matching lines...) Expand all
1238 unittest.expect(o.federatedId, unittest.equals('foo')); 1238 unittest.expect(o.federatedId, unittest.equals('foo'));
1239 unittest.expect(o.phoneNumber, unittest.equals('foo')); 1239 unittest.expect(o.phoneNumber, unittest.equals('foo'));
1240 unittest.expect(o.photoUrl, unittest.equals('foo')); 1240 unittest.expect(o.photoUrl, unittest.equals('foo'));
1241 unittest.expect(o.providerId, unittest.equals('foo')); 1241 unittest.expect(o.providerId, unittest.equals('foo'));
1242 unittest.expect(o.rawId, unittest.equals('foo')); 1242 unittest.expect(o.rawId, unittest.equals('foo'));
1243 unittest.expect(o.screenName, unittest.equals('foo')); 1243 unittest.expect(o.screenName, unittest.equals('foo'));
1244 } 1244 }
1245 buildCounterUserInfoProviderUserInfo--; 1245 buildCounterUserInfoProviderUserInfo--;
1246 } 1246 }
1247 1247
1248 buildUnnamed2291() { 1248 buildUnnamed2314() {
1249 var o = new core.List<api.UserInfoProviderUserInfo>(); 1249 var o = new core.List<api.UserInfoProviderUserInfo>();
1250 o.add(buildUserInfoProviderUserInfo()); 1250 o.add(buildUserInfoProviderUserInfo());
1251 o.add(buildUserInfoProviderUserInfo()); 1251 o.add(buildUserInfoProviderUserInfo());
1252 return o; 1252 return o;
1253 } 1253 }
1254 1254
1255 checkUnnamed2291(core.List<api.UserInfoProviderUserInfo> o) { 1255 checkUnnamed2314(core.List<api.UserInfoProviderUserInfo> o) {
1256 unittest.expect(o, unittest.hasLength(2)); 1256 unittest.expect(o, unittest.hasLength(2));
1257 checkUserInfoProviderUserInfo(o[0]); 1257 checkUserInfoProviderUserInfo(o[0]);
1258 checkUserInfoProviderUserInfo(o[1]); 1258 checkUserInfoProviderUserInfo(o[1]);
1259 } 1259 }
1260 1260
1261 core.int buildCounterUserInfo = 0; 1261 core.int buildCounterUserInfo = 0;
1262 buildUserInfo() { 1262 buildUserInfo() {
1263 var o = new api.UserInfo(); 1263 var o = new api.UserInfo();
1264 buildCounterUserInfo++; 1264 buildCounterUserInfo++;
1265 if (buildCounterUserInfo < 3) { 1265 if (buildCounterUserInfo < 3) {
1266 o.createdAt = "foo"; 1266 o.createdAt = "foo";
1267 o.customAuth = true; 1267 o.customAuth = true;
1268 o.disabled = true; 1268 o.disabled = true;
1269 o.displayName = "foo"; 1269 o.displayName = "foo";
1270 o.email = "foo"; 1270 o.email = "foo";
1271 o.emailVerified = true; 1271 o.emailVerified = true;
1272 o.lastLoginAt = "foo"; 1272 o.lastLoginAt = "foo";
1273 o.localId = "foo"; 1273 o.localId = "foo";
1274 o.passwordHash = "foo"; 1274 o.passwordHash = "foo";
1275 o.passwordUpdatedAt = 42.0; 1275 o.passwordUpdatedAt = 42.0;
1276 o.phoneNumber = "foo"; 1276 o.phoneNumber = "foo";
1277 o.photoUrl = "foo"; 1277 o.photoUrl = "foo";
1278 o.providerUserInfo = buildUnnamed2291(); 1278 o.providerUserInfo = buildUnnamed2314();
1279 o.rawPassword = "foo"; 1279 o.rawPassword = "foo";
1280 o.salt = "foo"; 1280 o.salt = "foo";
1281 o.screenName = "foo"; 1281 o.screenName = "foo";
1282 o.validSince = "foo"; 1282 o.validSince = "foo";
1283 o.version = 42; 1283 o.version = 42;
1284 } 1284 }
1285 buildCounterUserInfo--; 1285 buildCounterUserInfo--;
1286 return o; 1286 return o;
1287 } 1287 }
1288 1288
1289 checkUserInfo(api.UserInfo o) { 1289 checkUserInfo(api.UserInfo o) {
1290 buildCounterUserInfo++; 1290 buildCounterUserInfo++;
1291 if (buildCounterUserInfo < 3) { 1291 if (buildCounterUserInfo < 3) {
1292 unittest.expect(o.createdAt, unittest.equals('foo')); 1292 unittest.expect(o.createdAt, unittest.equals('foo'));
1293 unittest.expect(o.customAuth, unittest.isTrue); 1293 unittest.expect(o.customAuth, unittest.isTrue);
1294 unittest.expect(o.disabled, unittest.isTrue); 1294 unittest.expect(o.disabled, unittest.isTrue);
1295 unittest.expect(o.displayName, unittest.equals('foo')); 1295 unittest.expect(o.displayName, unittest.equals('foo'));
1296 unittest.expect(o.email, unittest.equals('foo')); 1296 unittest.expect(o.email, unittest.equals('foo'));
1297 unittest.expect(o.emailVerified, unittest.isTrue); 1297 unittest.expect(o.emailVerified, unittest.isTrue);
1298 unittest.expect(o.lastLoginAt, unittest.equals('foo')); 1298 unittest.expect(o.lastLoginAt, unittest.equals('foo'));
1299 unittest.expect(o.localId, unittest.equals('foo')); 1299 unittest.expect(o.localId, unittest.equals('foo'));
1300 unittest.expect(o.passwordHash, unittest.equals('foo')); 1300 unittest.expect(o.passwordHash, unittest.equals('foo'));
1301 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); 1301 unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0));
1302 unittest.expect(o.phoneNumber, unittest.equals('foo')); 1302 unittest.expect(o.phoneNumber, unittest.equals('foo'));
1303 unittest.expect(o.photoUrl, unittest.equals('foo')); 1303 unittest.expect(o.photoUrl, unittest.equals('foo'));
1304 checkUnnamed2291(o.providerUserInfo); 1304 checkUnnamed2314(o.providerUserInfo);
1305 unittest.expect(o.rawPassword, unittest.equals('foo')); 1305 unittest.expect(o.rawPassword, unittest.equals('foo'));
1306 unittest.expect(o.salt, unittest.equals('foo')); 1306 unittest.expect(o.salt, unittest.equals('foo'));
1307 unittest.expect(o.screenName, unittest.equals('foo')); 1307 unittest.expect(o.screenName, unittest.equals('foo'));
1308 unittest.expect(o.validSince, unittest.equals('foo')); 1308 unittest.expect(o.validSince, unittest.equals('foo'));
1309 unittest.expect(o.version, unittest.equals(42)); 1309 unittest.expect(o.version, unittest.equals(42));
1310 } 1310 }
1311 buildCounterUserInfo--; 1311 buildCounterUserInfo--;
1312 } 1312 }
1313 1313
1314 buildUnnamed2292() { 1314 buildUnnamed2315() {
1315 var o = new core.List<core.String>(); 1315 var o = new core.List<core.String>();
1316 o.add("foo"); 1316 o.add("foo");
1317 o.add("foo"); 1317 o.add("foo");
1318 return o; 1318 return o;
1319 } 1319 }
1320 1320
1321 checkUnnamed2292(core.List<core.String> o) { 1321 checkUnnamed2315(core.List<core.String> o) {
1322 unittest.expect(o, unittest.hasLength(2)); 1322 unittest.expect(o, unittest.hasLength(2));
1323 unittest.expect(o[0], unittest.equals('foo')); 1323 unittest.expect(o[0], unittest.equals('foo'));
1324 unittest.expect(o[1], unittest.equals('foo')); 1324 unittest.expect(o[1], unittest.equals('foo'));
1325 } 1325 }
1326 1326
1327 core.int buildCounterVerifyAssertionResponse = 0; 1327 core.int buildCounterVerifyAssertionResponse = 0;
1328 buildVerifyAssertionResponse() { 1328 buildVerifyAssertionResponse() {
1329 var o = new api.VerifyAssertionResponse(); 1329 var o = new api.VerifyAssertionResponse();
1330 buildCounterVerifyAssertionResponse++; 1330 buildCounterVerifyAssertionResponse++;
1331 if (buildCounterVerifyAssertionResponse < 3) { 1331 if (buildCounterVerifyAssertionResponse < 3) {
(...skipping 28 matching lines...) Expand all
1360 o.oauthRequestToken = "foo"; 1360 o.oauthRequestToken = "foo";
1361 o.oauthScope = "foo"; 1361 o.oauthScope = "foo";
1362 o.oauthTokenSecret = "foo"; 1362 o.oauthTokenSecret = "foo";
1363 o.originalEmail = "foo"; 1363 o.originalEmail = "foo";
1364 o.photoUrl = "foo"; 1364 o.photoUrl = "foo";
1365 o.providerId = "foo"; 1365 o.providerId = "foo";
1366 o.rawUserInfo = "foo"; 1366 o.rawUserInfo = "foo";
1367 o.refreshToken = "foo"; 1367 o.refreshToken = "foo";
1368 o.screenName = "foo"; 1368 o.screenName = "foo";
1369 o.timeZone = "foo"; 1369 o.timeZone = "foo";
1370 o.verifiedProvider = buildUnnamed2292(); 1370 o.verifiedProvider = buildUnnamed2315();
1371 } 1371 }
1372 buildCounterVerifyAssertionResponse--; 1372 buildCounterVerifyAssertionResponse--;
1373 return o; 1373 return o;
1374 } 1374 }
1375 1375
1376 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) { 1376 checkVerifyAssertionResponse(api.VerifyAssertionResponse o) {
1377 buildCounterVerifyAssertionResponse++; 1377 buildCounterVerifyAssertionResponse++;
1378 if (buildCounterVerifyAssertionResponse < 3) { 1378 if (buildCounterVerifyAssertionResponse < 3) {
1379 unittest.expect(o.action, unittest.equals('foo')); 1379 unittest.expect(o.action, unittest.equals('foo'));
1380 unittest.expect(o.appInstallationUrl, unittest.equals('foo')); 1380 unittest.expect(o.appInstallationUrl, unittest.equals('foo'));
(...skipping 26 matching lines...) Expand all
1407 unittest.expect(o.oauthRequestToken, unittest.equals('foo')); 1407 unittest.expect(o.oauthRequestToken, unittest.equals('foo'));
1408 unittest.expect(o.oauthScope, unittest.equals('foo')); 1408 unittest.expect(o.oauthScope, unittest.equals('foo'));
1409 unittest.expect(o.oauthTokenSecret, unittest.equals('foo')); 1409 unittest.expect(o.oauthTokenSecret, unittest.equals('foo'));
1410 unittest.expect(o.originalEmail, unittest.equals('foo')); 1410 unittest.expect(o.originalEmail, unittest.equals('foo'));
1411 unittest.expect(o.photoUrl, unittest.equals('foo')); 1411 unittest.expect(o.photoUrl, unittest.equals('foo'));
1412 unittest.expect(o.providerId, unittest.equals('foo')); 1412 unittest.expect(o.providerId, unittest.equals('foo'));
1413 unittest.expect(o.rawUserInfo, unittest.equals('foo')); 1413 unittest.expect(o.rawUserInfo, unittest.equals('foo'));
1414 unittest.expect(o.refreshToken, unittest.equals('foo')); 1414 unittest.expect(o.refreshToken, unittest.equals('foo'));
1415 unittest.expect(o.screenName, unittest.equals('foo')); 1415 unittest.expect(o.screenName, unittest.equals('foo'));
1416 unittest.expect(o.timeZone, unittest.equals('foo')); 1416 unittest.expect(o.timeZone, unittest.equals('foo'));
1417 checkUnnamed2292(o.verifiedProvider); 1417 checkUnnamed2315(o.verifiedProvider);
1418 } 1418 }
1419 buildCounterVerifyAssertionResponse--; 1419 buildCounterVerifyAssertionResponse--;
1420 } 1420 }
1421 1421
1422 core.int buildCounterVerifyCustomTokenResponse = 0; 1422 core.int buildCounterVerifyCustomTokenResponse = 0;
1423 buildVerifyCustomTokenResponse() { 1423 buildVerifyCustomTokenResponse() {
1424 var o = new api.VerifyCustomTokenResponse(); 1424 var o = new api.VerifyCustomTokenResponse();
1425 buildCounterVerifyCustomTokenResponse++; 1425 buildCounterVerifyCustomTokenResponse++;
1426 if (buildCounterVerifyCustomTokenResponse < 3) { 1426 if (buildCounterVerifyCustomTokenResponse < 3) {
1427 o.expiresIn = "foo"; 1427 o.expiresIn = "foo";
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 }); 1819 });
1820 }); 1820 });
1821 1821
1822 1822
1823 unittest.group("resource-RelyingpartyResourceApi", () { 1823 unittest.group("resource-RelyingpartyResourceApi", () {
1824 unittest.test("method--createAuthUri", () { 1824 unittest.test("method--createAuthUri", () {
1825 1825
1826 var mock = new HttpServerMock(); 1826 var mock = new HttpServerMock();
1827 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 1827 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
1828 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest(); 1828 var arg_request = buildIdentitytoolkitRelyingpartyCreateAuthUriRequest();
1829 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1829 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1830 var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJs on(json); 1830 var obj = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJs on(json);
1831 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj); 1831 checkIdentitytoolkitRelyingpartyCreateAuthUriRequest(obj);
1832 1832
1833 var path = (req.url).path; 1833 var path = (req.url).path;
1834 var pathOffset = 0; 1834 var pathOffset = 0;
1835 var index; 1835 var index;
1836 var subPart; 1836 var subPart;
1837 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1837 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1838 pathOffset += 1; 1838 pathOffset += 1;
1839 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 1839 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
1858 } 1858 }
1859 } 1859 }
1860 1860
1861 1861
1862 var h = { 1862 var h = {
1863 "content-type" : "application/json; charset=utf-8", 1863 "content-type" : "application/json; charset=utf-8",
1864 }; 1864 };
1865 var resp = convert.JSON.encode(buildCreateAuthUriResponse()); 1865 var resp = convert.JSON.encode(buildCreateAuthUriResponse());
1866 return new async.Future.value(stringResponse(200, h, resp)); 1866 return new async.Future.value(stringResponse(200, h, resp));
1867 }), true); 1867 }), true);
1868 res.createAuthUri(arg_request).then(unittest.expectAsync(((api.CreateAuthU riResponse response) { 1868 res.createAuthUri(arg_request).then(unittest.expectAsync1(((api.CreateAuth UriResponse response) {
1869 checkCreateAuthUriResponse(response); 1869 checkCreateAuthUriResponse(response);
1870 }))); 1870 })));
1871 }); 1871 });
1872 1872
1873 unittest.test("method--deleteAccount", () { 1873 unittest.test("method--deleteAccount", () {
1874 1874
1875 var mock = new HttpServerMock(); 1875 var mock = new HttpServerMock();
1876 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 1876 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
1877 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest(); 1877 var arg_request = buildIdentitytoolkitRelyingpartyDeleteAccountRequest();
1878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1878 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1879 var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJs on(json); 1879 var obj = new api.IdentitytoolkitRelyingpartyDeleteAccountRequest.fromJs on(json);
1880 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj); 1880 checkIdentitytoolkitRelyingpartyDeleteAccountRequest(obj);
1881 1881
1882 var path = (req.url).path; 1882 var path = (req.url).path;
1883 var pathOffset = 0; 1883 var pathOffset = 0;
1884 var index; 1884 var index;
1885 var subPart; 1885 var subPart;
1886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1887 pathOffset += 1; 1887 pathOffset += 1;
1888 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 1888 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
1907 } 1907 }
1908 } 1908 }
1909 1909
1910 1910
1911 var h = { 1911 var h = {
1912 "content-type" : "application/json; charset=utf-8", 1912 "content-type" : "application/json; charset=utf-8",
1913 }; 1913 };
1914 var resp = convert.JSON.encode(buildDeleteAccountResponse()); 1914 var resp = convert.JSON.encode(buildDeleteAccountResponse());
1915 return new async.Future.value(stringResponse(200, h, resp)); 1915 return new async.Future.value(stringResponse(200, h, resp));
1916 }), true); 1916 }), true);
1917 res.deleteAccount(arg_request).then(unittest.expectAsync(((api.DeleteAccou ntResponse response) { 1917 res.deleteAccount(arg_request).then(unittest.expectAsync1(((api.DeleteAcco untResponse response) {
1918 checkDeleteAccountResponse(response); 1918 checkDeleteAccountResponse(response);
1919 }))); 1919 })));
1920 }); 1920 });
1921 1921
1922 unittest.test("method--downloadAccount", () { 1922 unittest.test("method--downloadAccount", () {
1923 1923
1924 var mock = new HttpServerMock(); 1924 var mock = new HttpServerMock();
1925 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 1925 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
1926 var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest() ; 1926 var arg_request = buildIdentitytoolkitRelyingpartyDownloadAccountRequest() ;
1927 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1927 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1928 var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.from Json(json); 1928 var obj = new api.IdentitytoolkitRelyingpartyDownloadAccountRequest.from Json(json);
1929 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj); 1929 checkIdentitytoolkitRelyingpartyDownloadAccountRequest(obj);
1930 1930
1931 var path = (req.url).path; 1931 var path = (req.url).path;
1932 var pathOffset = 0; 1932 var pathOffset = 0;
1933 var index; 1933 var index;
1934 var subPart; 1934 var subPart;
1935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1936 pathOffset += 1; 1936 pathOffset += 1;
1937 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 1937 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
1956 } 1956 }
1957 } 1957 }
1958 1958
1959 1959
1960 var h = { 1960 var h = {
1961 "content-type" : "application/json; charset=utf-8", 1961 "content-type" : "application/json; charset=utf-8",
1962 }; 1962 };
1963 var resp = convert.JSON.encode(buildDownloadAccountResponse()); 1963 var resp = convert.JSON.encode(buildDownloadAccountResponse());
1964 return new async.Future.value(stringResponse(200, h, resp)); 1964 return new async.Future.value(stringResponse(200, h, resp));
1965 }), true); 1965 }), true);
1966 res.downloadAccount(arg_request).then(unittest.expectAsync(((api.DownloadA ccountResponse response) { 1966 res.downloadAccount(arg_request).then(unittest.expectAsync1(((api.Download AccountResponse response) {
1967 checkDownloadAccountResponse(response); 1967 checkDownloadAccountResponse(response);
1968 }))); 1968 })));
1969 }); 1969 });
1970 1970
1971 unittest.test("method--getAccountInfo", () { 1971 unittest.test("method--getAccountInfo", () {
1972 1972
1973 var mock = new HttpServerMock(); 1973 var mock = new HttpServerMock();
1974 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 1974 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
1975 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest(); 1975 var arg_request = buildIdentitytoolkitRelyingpartyGetAccountInfoRequest();
1976 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1976 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1977 var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJ son(json); 1977 var obj = new api.IdentitytoolkitRelyingpartyGetAccountInfoRequest.fromJ son(json);
1978 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj); 1978 checkIdentitytoolkitRelyingpartyGetAccountInfoRequest(obj);
1979 1979
1980 var path = (req.url).path; 1980 var path = (req.url).path;
1981 var pathOffset = 0; 1981 var pathOffset = 0;
1982 var index; 1982 var index;
1983 var subPart; 1983 var subPart;
1984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1985 pathOffset += 1; 1985 pathOffset += 1;
1986 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 1986 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2005 } 2005 }
2006 } 2006 }
2007 2007
2008 2008
2009 var h = { 2009 var h = {
2010 "content-type" : "application/json; charset=utf-8", 2010 "content-type" : "application/json; charset=utf-8",
2011 }; 2011 };
2012 var resp = convert.JSON.encode(buildGetAccountInfoResponse()); 2012 var resp = convert.JSON.encode(buildGetAccountInfoResponse());
2013 return new async.Future.value(stringResponse(200, h, resp)); 2013 return new async.Future.value(stringResponse(200, h, resp));
2014 }), true); 2014 }), true);
2015 res.getAccountInfo(arg_request).then(unittest.expectAsync(((api.GetAccount InfoResponse response) { 2015 res.getAccountInfo(arg_request).then(unittest.expectAsync1(((api.GetAccoun tInfoResponse response) {
2016 checkGetAccountInfoResponse(response); 2016 checkGetAccountInfoResponse(response);
2017 }))); 2017 })));
2018 }); 2018 });
2019 2019
2020 unittest.test("method--getOobConfirmationCode", () { 2020 unittest.test("method--getOobConfirmationCode", () {
2021 2021
2022 var mock = new HttpServerMock(); 2022 var mock = new HttpServerMock();
2023 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2023 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2024 var arg_request = buildRelyingparty(); 2024 var arg_request = buildRelyingparty();
2025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2025 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2026 var obj = new api.Relyingparty.fromJson(json); 2026 var obj = new api.Relyingparty.fromJson(json);
2027 checkRelyingparty(obj); 2027 checkRelyingparty(obj);
2028 2028
2029 var path = (req.url).path; 2029 var path = (req.url).path;
2030 var pathOffset = 0; 2030 var pathOffset = 0;
2031 var index; 2031 var index;
2032 var subPart; 2032 var subPart;
2033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2034 pathOffset += 1; 2034 pathOffset += 1;
2035 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2035 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2054 } 2054 }
2055 } 2055 }
2056 2056
2057 2057
2058 var h = { 2058 var h = {
2059 "content-type" : "application/json; charset=utf-8", 2059 "content-type" : "application/json; charset=utf-8",
2060 }; 2060 };
2061 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse()); 2061 var resp = convert.JSON.encode(buildGetOobConfirmationCodeResponse());
2062 return new async.Future.value(stringResponse(200, h, resp)); 2062 return new async.Future.value(stringResponse(200, h, resp));
2063 }), true); 2063 }), true);
2064 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync(((api.Ge tOobConfirmationCodeResponse response) { 2064 res.getOobConfirmationCode(arg_request).then(unittest.expectAsync1(((api.G etOobConfirmationCodeResponse response) {
2065 checkGetOobConfirmationCodeResponse(response); 2065 checkGetOobConfirmationCodeResponse(response);
2066 }))); 2066 })));
2067 }); 2067 });
2068 2068
2069 unittest.test("method--getProjectConfig", () { 2069 unittest.test("method--getProjectConfig", () {
2070 2070
2071 var mock = new HttpServerMock(); 2071 var mock = new HttpServerMock();
2072 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2072 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2073 var arg_delegatedProjectNumber = "foo"; 2073 var arg_delegatedProjectNumber = "foo";
2074 var arg_projectNumber = "foo"; 2074 var arg_projectNumber = "foo";
2075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2075 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2076 var path = (req.url).path; 2076 var path = (req.url).path;
2077 var pathOffset = 0; 2077 var pathOffset = 0;
2078 var index; 2078 var index;
2079 var subPart; 2079 var subPart;
2080 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2080 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2081 pathOffset += 1; 2081 pathOffset += 1;
2082 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2082 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
2083 pathOffset += 32; 2083 pathOffset += 32;
2084 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("getProjectConfig")); 2084 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("getProjectConfig"));
2085 pathOffset += 16; 2085 pathOffset += 16;
(...skipping 17 matching lines...) Expand all
2103 unittest.expect(queryMap["delegatedProjectNumber"].first, unittest.equal s(arg_delegatedProjectNumber)); 2103 unittest.expect(queryMap["delegatedProjectNumber"].first, unittest.equal s(arg_delegatedProjectNumber));
2104 unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_pro jectNumber)); 2104 unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_pro jectNumber));
2105 2105
2106 2106
2107 var h = { 2107 var h = {
2108 "content-type" : "application/json; charset=utf-8", 2108 "content-type" : "application/json; charset=utf-8",
2109 }; 2109 };
2110 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjec tConfigResponse()); 2110 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetProjec tConfigResponse());
2111 return new async.Future.value(stringResponse(200, h, resp)); 2111 return new async.Future.value(stringResponse(200, h, resp));
2112 }), true); 2112 }), true);
2113 res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, p rojectNumber: arg_projectNumber).then(unittest.expectAsync(((api.Identitytoolkit RelyingpartyGetProjectConfigResponse response) { 2113 res.getProjectConfig(delegatedProjectNumber: arg_delegatedProjectNumber, p rojectNumber: arg_projectNumber).then(unittest.expectAsync1(((api.Identitytoolki tRelyingpartyGetProjectConfigResponse response) {
2114 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response); 2114 checkIdentitytoolkitRelyingpartyGetProjectConfigResponse(response);
2115 }))); 2115 })));
2116 }); 2116 });
2117 2117
2118 unittest.test("method--getPublicKeys", () { 2118 unittest.test("method--getPublicKeys", () {
2119 2119
2120 var mock = new HttpServerMock(); 2120 var mock = new HttpServerMock();
2121 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2121 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2122 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2123 var path = (req.url).path; 2123 var path = (req.url).path;
2124 var pathOffset = 0; 2124 var pathOffset = 0;
2125 var index; 2125 var index;
2126 var subPart; 2126 var subPart;
2127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2128 pathOffset += 1; 2128 pathOffset += 1;
2129 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2129 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
2130 pathOffset += 32; 2130 pathOffset += 32;
2131 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("publicKeys")); 2131 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("publicKeys"));
2132 pathOffset += 10; 2132 pathOffset += 10;
(...skipping 15 matching lines...) Expand all
2148 } 2148 }
2149 } 2149 }
2150 2150
2151 2151
2152 var h = { 2152 var h = {
2153 "content-type" : "application/json; charset=utf-8", 2153 "content-type" : "application/json; charset=utf-8",
2154 }; 2154 };
2155 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublic KeysResponse()); 2155 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartyGetPublic KeysResponse());
2156 return new async.Future.value(stringResponse(200, h, resp)); 2156 return new async.Future.value(stringResponse(200, h, resp));
2157 }), true); 2157 }), true);
2158 res.getPublicKeys().then(unittest.expectAsync(((api.IdentitytoolkitRelying partyGetPublicKeysResponse response) { 2158 res.getPublicKeys().then(unittest.expectAsync1(((api.IdentitytoolkitRelyin gpartyGetPublicKeysResponse response) {
2159 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response); 2159 checkIdentitytoolkitRelyingpartyGetPublicKeysResponse(response);
2160 }))); 2160 })));
2161 }); 2161 });
2162 2162
2163 unittest.test("method--getRecaptchaParam", () { 2163 unittest.test("method--getRecaptchaParam", () {
2164 2164
2165 var mock = new HttpServerMock(); 2165 var mock = new HttpServerMock();
2166 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2166 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2167 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2168 var path = (req.url).path; 2168 var path = (req.url).path;
2169 var pathOffset = 0; 2169 var pathOffset = 0;
2170 var index; 2170 var index;
2171 var subPart; 2171 var subPart;
2172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2173 pathOffset += 1; 2173 pathOffset += 1;
2174 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2174 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
2175 pathOffset += 32; 2175 pathOffset += 32;
2176 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("getRecaptchaParam")); 2176 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("getRecaptchaParam"));
2177 pathOffset += 17; 2177 pathOffset += 17;
(...skipping 15 matching lines...) Expand all
2193 } 2193 }
2194 } 2194 }
2195 2195
2196 2196
2197 var h = { 2197 var h = {
2198 "content-type" : "application/json; charset=utf-8", 2198 "content-type" : "application/json; charset=utf-8",
2199 }; 2199 };
2200 var resp = convert.JSON.encode(buildGetRecaptchaParamResponse()); 2200 var resp = convert.JSON.encode(buildGetRecaptchaParamResponse());
2201 return new async.Future.value(stringResponse(200, h, resp)); 2201 return new async.Future.value(stringResponse(200, h, resp));
2202 }), true); 2202 }), true);
2203 res.getRecaptchaParam().then(unittest.expectAsync(((api.GetRecaptchaParamR esponse response) { 2203 res.getRecaptchaParam().then(unittest.expectAsync1(((api.GetRecaptchaParam Response response) {
2204 checkGetRecaptchaParamResponse(response); 2204 checkGetRecaptchaParamResponse(response);
2205 }))); 2205 })));
2206 }); 2206 });
2207 2207
2208 unittest.test("method--resetPassword", () { 2208 unittest.test("method--resetPassword", () {
2209 2209
2210 var mock = new HttpServerMock(); 2210 var mock = new HttpServerMock();
2211 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2211 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2212 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest(); 2212 var arg_request = buildIdentitytoolkitRelyingpartyResetPasswordRequest();
2213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2213 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2214 var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJs on(json); 2214 var obj = new api.IdentitytoolkitRelyingpartyResetPasswordRequest.fromJs on(json);
2215 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj); 2215 checkIdentitytoolkitRelyingpartyResetPasswordRequest(obj);
2216 2216
2217 var path = (req.url).path; 2217 var path = (req.url).path;
2218 var pathOffset = 0; 2218 var pathOffset = 0;
2219 var index; 2219 var index;
2220 var subPart; 2220 var subPart;
2221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2222 pathOffset += 1; 2222 pathOffset += 1;
2223 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2223 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2242 } 2242 }
2243 } 2243 }
2244 2244
2245 2245
2246 var h = { 2246 var h = {
2247 "content-type" : "application/json; charset=utf-8", 2247 "content-type" : "application/json; charset=utf-8",
2248 }; 2248 };
2249 var resp = convert.JSON.encode(buildResetPasswordResponse()); 2249 var resp = convert.JSON.encode(buildResetPasswordResponse());
2250 return new async.Future.value(stringResponse(200, h, resp)); 2250 return new async.Future.value(stringResponse(200, h, resp));
2251 }), true); 2251 }), true);
2252 res.resetPassword(arg_request).then(unittest.expectAsync(((api.ResetPasswo rdResponse response) { 2252 res.resetPassword(arg_request).then(unittest.expectAsync1(((api.ResetPassw ordResponse response) {
2253 checkResetPasswordResponse(response); 2253 checkResetPasswordResponse(response);
2254 }))); 2254 })));
2255 }); 2255 });
2256 2256
2257 unittest.test("method--setAccountInfo", () { 2257 unittest.test("method--setAccountInfo", () {
2258 2258
2259 var mock = new HttpServerMock(); 2259 var mock = new HttpServerMock();
2260 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2260 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2261 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest(); 2261 var arg_request = buildIdentitytoolkitRelyingpartySetAccountInfoRequest();
2262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2262 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2263 var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJ son(json); 2263 var obj = new api.IdentitytoolkitRelyingpartySetAccountInfoRequest.fromJ son(json);
2264 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj); 2264 checkIdentitytoolkitRelyingpartySetAccountInfoRequest(obj);
2265 2265
2266 var path = (req.url).path; 2266 var path = (req.url).path;
2267 var pathOffset = 0; 2267 var pathOffset = 0;
2268 var index; 2268 var index;
2269 var subPart; 2269 var subPart;
2270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2271 pathOffset += 1; 2271 pathOffset += 1;
2272 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2272 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2291 } 2291 }
2292 } 2292 }
2293 2293
2294 2294
2295 var h = { 2295 var h = {
2296 "content-type" : "application/json; charset=utf-8", 2296 "content-type" : "application/json; charset=utf-8",
2297 }; 2297 };
2298 var resp = convert.JSON.encode(buildSetAccountInfoResponse()); 2298 var resp = convert.JSON.encode(buildSetAccountInfoResponse());
2299 return new async.Future.value(stringResponse(200, h, resp)); 2299 return new async.Future.value(stringResponse(200, h, resp));
2300 }), true); 2300 }), true);
2301 res.setAccountInfo(arg_request).then(unittest.expectAsync(((api.SetAccount InfoResponse response) { 2301 res.setAccountInfo(arg_request).then(unittest.expectAsync1(((api.SetAccoun tInfoResponse response) {
2302 checkSetAccountInfoResponse(response); 2302 checkSetAccountInfoResponse(response);
2303 }))); 2303 })));
2304 }); 2304 });
2305 2305
2306 unittest.test("method--setProjectConfig", () { 2306 unittest.test("method--setProjectConfig", () {
2307 2307
2308 var mock = new HttpServerMock(); 2308 var mock = new HttpServerMock();
2309 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2309 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2310 var arg_request = buildIdentitytoolkitRelyingpartySetProjectConfigRequest( ); 2310 var arg_request = buildIdentitytoolkitRelyingpartySetProjectConfigRequest( );
2311 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2312 var obj = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fro mJson(json); 2312 var obj = new api.IdentitytoolkitRelyingpartySetProjectConfigRequest.fro mJson(json);
2313 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj); 2313 checkIdentitytoolkitRelyingpartySetProjectConfigRequest(obj);
2314 2314
2315 var path = (req.url).path; 2315 var path = (req.url).path;
2316 var pathOffset = 0; 2316 var pathOffset = 0;
2317 var index; 2317 var index;
2318 var subPart; 2318 var subPart;
2319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2320 pathOffset += 1; 2320 pathOffset += 1;
2321 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2321 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2340 } 2340 }
2341 } 2341 }
2342 2342
2343 2343
2344 var h = { 2344 var h = {
2345 "content-type" : "application/json; charset=utf-8", 2345 "content-type" : "application/json; charset=utf-8",
2346 }; 2346 };
2347 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySetProjec tConfigResponse()); 2347 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySetProjec tConfigResponse());
2348 return new async.Future.value(stringResponse(200, h, resp)); 2348 return new async.Future.value(stringResponse(200, h, resp));
2349 }), true); 2349 }), true);
2350 res.setProjectConfig(arg_request).then(unittest.expectAsync(((api.Identity toolkitRelyingpartySetProjectConfigResponse response) { 2350 res.setProjectConfig(arg_request).then(unittest.expectAsync1(((api.Identit ytoolkitRelyingpartySetProjectConfigResponse response) {
2351 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response); 2351 checkIdentitytoolkitRelyingpartySetProjectConfigResponse(response);
2352 }))); 2352 })));
2353 }); 2353 });
2354 2354
2355 unittest.test("method--signOutUser", () { 2355 unittest.test("method--signOutUser", () {
2356 2356
2357 var mock = new HttpServerMock(); 2357 var mock = new HttpServerMock();
2358 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2358 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2359 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest(); 2359 var arg_request = buildIdentitytoolkitRelyingpartySignOutUserRequest();
2360 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2360 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2361 var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson (json); 2361 var obj = new api.IdentitytoolkitRelyingpartySignOutUserRequest.fromJson (json);
2362 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj); 2362 checkIdentitytoolkitRelyingpartySignOutUserRequest(obj);
2363 2363
2364 var path = (req.url).path; 2364 var path = (req.url).path;
2365 var pathOffset = 0; 2365 var pathOffset = 0;
2366 var index; 2366 var index;
2367 var subPart; 2367 var subPart;
2368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2369 pathOffset += 1; 2369 pathOffset += 1;
2370 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2370 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2389 } 2389 }
2390 } 2390 }
2391 2391
2392 2392
2393 var h = { 2393 var h = {
2394 "content-type" : "application/json; charset=utf-8", 2394 "content-type" : "application/json; charset=utf-8",
2395 }; 2395 };
2396 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUs erResponse()); 2396 var resp = convert.JSON.encode(buildIdentitytoolkitRelyingpartySignOutUs erResponse());
2397 return new async.Future.value(stringResponse(200, h, resp)); 2397 return new async.Future.value(stringResponse(200, h, resp));
2398 }), true); 2398 }), true);
2399 res.signOutUser(arg_request).then(unittest.expectAsync(((api.Identitytoolk itRelyingpartySignOutUserResponse response) { 2399 res.signOutUser(arg_request).then(unittest.expectAsync1(((api.Identitytool kitRelyingpartySignOutUserResponse response) {
2400 checkIdentitytoolkitRelyingpartySignOutUserResponse(response); 2400 checkIdentitytoolkitRelyingpartySignOutUserResponse(response);
2401 }))); 2401 })));
2402 }); 2402 });
2403 2403
2404 unittest.test("method--signupNewUser", () { 2404 unittest.test("method--signupNewUser", () {
2405 2405
2406 var mock = new HttpServerMock(); 2406 var mock = new HttpServerMock();
2407 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2407 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2408 var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest(); 2408 var arg_request = buildIdentitytoolkitRelyingpartySignupNewUserRequest();
2409 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2409 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2410 var obj = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJs on(json); 2410 var obj = new api.IdentitytoolkitRelyingpartySignupNewUserRequest.fromJs on(json);
2411 checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj); 2411 checkIdentitytoolkitRelyingpartySignupNewUserRequest(obj);
2412 2412
2413 var path = (req.url).path; 2413 var path = (req.url).path;
2414 var pathOffset = 0; 2414 var pathOffset = 0;
2415 var index; 2415 var index;
2416 var subPart; 2416 var subPart;
2417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2418 pathOffset += 1; 2418 pathOffset += 1;
2419 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2419 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2438 } 2438 }
2439 } 2439 }
2440 2440
2441 2441
2442 var h = { 2442 var h = {
2443 "content-type" : "application/json; charset=utf-8", 2443 "content-type" : "application/json; charset=utf-8",
2444 }; 2444 };
2445 var resp = convert.JSON.encode(buildSignupNewUserResponse()); 2445 var resp = convert.JSON.encode(buildSignupNewUserResponse());
2446 return new async.Future.value(stringResponse(200, h, resp)); 2446 return new async.Future.value(stringResponse(200, h, resp));
2447 }), true); 2447 }), true);
2448 res.signupNewUser(arg_request).then(unittest.expectAsync(((api.SignupNewUs erResponse response) { 2448 res.signupNewUser(arg_request).then(unittest.expectAsync1(((api.SignupNewU serResponse response) {
2449 checkSignupNewUserResponse(response); 2449 checkSignupNewUserResponse(response);
2450 }))); 2450 })));
2451 }); 2451 });
2452 2452
2453 unittest.test("method--uploadAccount", () { 2453 unittest.test("method--uploadAccount", () {
2454 2454
2455 var mock = new HttpServerMock(); 2455 var mock = new HttpServerMock();
2456 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2456 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2457 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest(); 2457 var arg_request = buildIdentitytoolkitRelyingpartyUploadAccountRequest();
2458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2458 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2459 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs on(json); 2459 var obj = new api.IdentitytoolkitRelyingpartyUploadAccountRequest.fromJs on(json);
2460 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj); 2460 checkIdentitytoolkitRelyingpartyUploadAccountRequest(obj);
2461 2461
2462 var path = (req.url).path; 2462 var path = (req.url).path;
2463 var pathOffset = 0; 2463 var pathOffset = 0;
2464 var index; 2464 var index;
2465 var subPart; 2465 var subPart;
2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2467 pathOffset += 1; 2467 pathOffset += 1;
2468 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2468 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2487 } 2487 }
2488 } 2488 }
2489 2489
2490 2490
2491 var h = { 2491 var h = {
2492 "content-type" : "application/json; charset=utf-8", 2492 "content-type" : "application/json; charset=utf-8",
2493 }; 2493 };
2494 var resp = convert.JSON.encode(buildUploadAccountResponse()); 2494 var resp = convert.JSON.encode(buildUploadAccountResponse());
2495 return new async.Future.value(stringResponse(200, h, resp)); 2495 return new async.Future.value(stringResponse(200, h, resp));
2496 }), true); 2496 }), true);
2497 res.uploadAccount(arg_request).then(unittest.expectAsync(((api.UploadAccou ntResponse response) { 2497 res.uploadAccount(arg_request).then(unittest.expectAsync1(((api.UploadAcco untResponse response) {
2498 checkUploadAccountResponse(response); 2498 checkUploadAccountResponse(response);
2499 }))); 2499 })));
2500 }); 2500 });
2501 2501
2502 unittest.test("method--verifyAssertion", () { 2502 unittest.test("method--verifyAssertion", () {
2503 2503
2504 var mock = new HttpServerMock(); 2504 var mock = new HttpServerMock();
2505 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2505 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2506 var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() ; 2506 var arg_request = buildIdentitytoolkitRelyingpartyVerifyAssertionRequest() ;
2507 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2507 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2508 var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.from Json(json); 2508 var obj = new api.IdentitytoolkitRelyingpartyVerifyAssertionRequest.from Json(json);
2509 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj); 2509 checkIdentitytoolkitRelyingpartyVerifyAssertionRequest(obj);
2510 2510
2511 var path = (req.url).path; 2511 var path = (req.url).path;
2512 var pathOffset = 0; 2512 var pathOffset = 0;
2513 var index; 2513 var index;
2514 var subPart; 2514 var subPart;
2515 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2515 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2516 pathOffset += 1; 2516 pathOffset += 1;
2517 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2517 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2536 } 2536 }
2537 } 2537 }
2538 2538
2539 2539
2540 var h = { 2540 var h = {
2541 "content-type" : "application/json; charset=utf-8", 2541 "content-type" : "application/json; charset=utf-8",
2542 }; 2542 };
2543 var resp = convert.JSON.encode(buildVerifyAssertionResponse()); 2543 var resp = convert.JSON.encode(buildVerifyAssertionResponse());
2544 return new async.Future.value(stringResponse(200, h, resp)); 2544 return new async.Future.value(stringResponse(200, h, resp));
2545 }), true); 2545 }), true);
2546 res.verifyAssertion(arg_request).then(unittest.expectAsync(((api.VerifyAss ertionResponse response) { 2546 res.verifyAssertion(arg_request).then(unittest.expectAsync1(((api.VerifyAs sertionResponse response) {
2547 checkVerifyAssertionResponse(response); 2547 checkVerifyAssertionResponse(response);
2548 }))); 2548 })));
2549 }); 2549 });
2550 2550
2551 unittest.test("method--verifyCustomToken", () { 2551 unittest.test("method--verifyCustomToken", () {
2552 2552
2553 var mock = new HttpServerMock(); 2553 var mock = new HttpServerMock();
2554 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2554 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2555 var arg_request = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest (); 2555 var arg_request = buildIdentitytoolkitRelyingpartyVerifyCustomTokenRequest ();
2556 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2556 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2557 var obj = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fr omJson(json); 2557 var obj = new api.IdentitytoolkitRelyingpartyVerifyCustomTokenRequest.fr omJson(json);
2558 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(obj); 2558 checkIdentitytoolkitRelyingpartyVerifyCustomTokenRequest(obj);
2559 2559
2560 var path = (req.url).path; 2560 var path = (req.url).path;
2561 var pathOffset = 0; 2561 var pathOffset = 0;
2562 var index; 2562 var index;
2563 var subPart; 2563 var subPart;
2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2565 pathOffset += 1; 2565 pathOffset += 1;
2566 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2566 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2585 } 2585 }
2586 } 2586 }
2587 2587
2588 2588
2589 var h = { 2589 var h = {
2590 "content-type" : "application/json; charset=utf-8", 2590 "content-type" : "application/json; charset=utf-8",
2591 }; 2591 };
2592 var resp = convert.JSON.encode(buildVerifyCustomTokenResponse()); 2592 var resp = convert.JSON.encode(buildVerifyCustomTokenResponse());
2593 return new async.Future.value(stringResponse(200, h, resp)); 2593 return new async.Future.value(stringResponse(200, h, resp));
2594 }), true); 2594 }), true);
2595 res.verifyCustomToken(arg_request).then(unittest.expectAsync(((api.VerifyC ustomTokenResponse response) { 2595 res.verifyCustomToken(arg_request).then(unittest.expectAsync1(((api.Verify CustomTokenResponse response) {
2596 checkVerifyCustomTokenResponse(response); 2596 checkVerifyCustomTokenResponse(response);
2597 }))); 2597 })));
2598 }); 2598 });
2599 2599
2600 unittest.test("method--verifyPassword", () { 2600 unittest.test("method--verifyPassword", () {
2601 2601
2602 var mock = new HttpServerMock(); 2602 var mock = new HttpServerMock();
2603 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party; 2603 api.RelyingpartyResourceApi res = new api.IdentitytoolkitApi(mock).relying party;
2604 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest(); 2604 var arg_request = buildIdentitytoolkitRelyingpartyVerifyPasswordRequest();
2605 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2605 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2606 var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJ son(json); 2606 var obj = new api.IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJ son(json);
2607 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj); 2607 checkIdentitytoolkitRelyingpartyVerifyPasswordRequest(obj);
2608 2608
2609 var path = (req.url).path; 2609 var path = (req.url).path;
2610 var pathOffset = 0; 2610 var pathOffset = 0;
2611 var index; 2611 var index;
2612 var subPart; 2612 var subPart;
2613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2614 pathOffset += 1; 2614 pathOffset += 1;
2615 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/")); 2615 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("identitytoolkit/v3/relyingparty/"));
(...skipping 18 matching lines...) Expand all
2634 } 2634 }
2635 } 2635 }
2636 2636
2637 2637
2638 var h = { 2638 var h = {
2639 "content-type" : "application/json; charset=utf-8", 2639 "content-type" : "application/json; charset=utf-8",
2640 }; 2640 };
2641 var resp = convert.JSON.encode(buildVerifyPasswordResponse()); 2641 var resp = convert.JSON.encode(buildVerifyPasswordResponse());
2642 return new async.Future.value(stringResponse(200, h, resp)); 2642 return new async.Future.value(stringResponse(200, h, resp));
2643 }), true); 2643 }), true);
2644 res.verifyPassword(arg_request).then(unittest.expectAsync(((api.VerifyPass wordResponse response) { 2644 res.verifyPassword(arg_request).then(unittest.expectAsync1(((api.VerifyPas swordResponse response) {
2645 checkVerifyPasswordResponse(response); 2645 checkVerifyPasswordResponse(response);
2646 }))); 2646 })));
2647 }); 2647 });
2648 2648
2649 }); 2649 });
2650 2650
2651 2651
2652 } 2652 }
2653 2653
OLDNEW
« no previous file with comments | « generated/googleapis/test/groupssettings/v1_test.dart ('k') | generated/googleapis/test/language/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698