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

Side by Side Diff: generated/googleapis/test/partners/v2_test.dart

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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.partners.v2.test; 1 library googleapis.partners.v2.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkCertificationExamStatus(api.CertificationExamStatus o) { 66 checkCertificationExamStatus(api.CertificationExamStatus o) {
67 buildCounterCertificationExamStatus++; 67 buildCounterCertificationExamStatus++;
68 if (buildCounterCertificationExamStatus < 3) { 68 if (buildCounterCertificationExamStatus < 3) {
69 unittest.expect(o.numberUsersPass, unittest.equals(42)); 69 unittest.expect(o.numberUsersPass, unittest.equals(42));
70 unittest.expect(o.type, unittest.equals('foo')); 70 unittest.expect(o.type, unittest.equals('foo'));
71 } 71 }
72 buildCounterCertificationExamStatus--; 72 buildCounterCertificationExamStatus--;
73 } 73 }
74 74
75 buildUnnamed1964() { 75 buildUnnamed1545() {
76 var o = new core.List<api.CertificationExamStatus>(); 76 var o = new core.List<api.CertificationExamStatus>();
77 o.add(buildCertificationExamStatus()); 77 o.add(buildCertificationExamStatus());
78 o.add(buildCertificationExamStatus()); 78 o.add(buildCertificationExamStatus());
79 return o; 79 return o;
80 } 80 }
81 81
82 checkUnnamed1964(core.List<api.CertificationExamStatus> o) { 82 checkUnnamed1545(core.List<api.CertificationExamStatus> o) {
83 unittest.expect(o, unittest.hasLength(2)); 83 unittest.expect(o, unittest.hasLength(2));
84 checkCertificationExamStatus(o[0]); 84 checkCertificationExamStatus(o[0]);
85 checkCertificationExamStatus(o[1]); 85 checkCertificationExamStatus(o[1]);
86 } 86 }
87 87
88 core.int buildCounterCertificationStatus = 0; 88 core.int buildCounterCertificationStatus = 0;
89 buildCertificationStatus() { 89 buildCertificationStatus() {
90 var o = new api.CertificationStatus(); 90 var o = new api.CertificationStatus();
91 buildCounterCertificationStatus++; 91 buildCounterCertificationStatus++;
92 if (buildCounterCertificationStatus < 3) { 92 if (buildCounterCertificationStatus < 3) {
93 o.examStatuses = buildUnnamed1964(); 93 o.examStatuses = buildUnnamed1545();
94 o.isCertified = true; 94 o.isCertified = true;
95 o.type = "foo"; 95 o.type = "foo";
96 } 96 }
97 buildCounterCertificationStatus--; 97 buildCounterCertificationStatus--;
98 return o; 98 return o;
99 } 99 }
100 100
101 checkCertificationStatus(api.CertificationStatus o) { 101 checkCertificationStatus(api.CertificationStatus o) {
102 buildCounterCertificationStatus++; 102 buildCounterCertificationStatus++;
103 if (buildCounterCertificationStatus < 3) { 103 if (buildCounterCertificationStatus < 3) {
104 checkUnnamed1964(o.examStatuses); 104 checkUnnamed1545(o.examStatuses);
105 unittest.expect(o.isCertified, unittest.isTrue); 105 unittest.expect(o.isCertified, unittest.isTrue);
106 unittest.expect(o.type, unittest.equals('foo')); 106 unittest.expect(o.type, unittest.equals('foo'));
107 } 107 }
108 buildCounterCertificationStatus--; 108 buildCounterCertificationStatus--;
109 } 109 }
110 110
111 buildUnnamed1965() { 111 buildUnnamed1546() {
112 var o = new core.List<api.CertificationStatus>(); 112 var o = new core.List<api.CertificationStatus>();
113 o.add(buildCertificationStatus()); 113 o.add(buildCertificationStatus());
114 o.add(buildCertificationStatus()); 114 o.add(buildCertificationStatus());
115 return o; 115 return o;
116 } 116 }
117 117
118 checkUnnamed1965(core.List<api.CertificationStatus> o) { 118 checkUnnamed1546(core.List<api.CertificationStatus> o) {
119 unittest.expect(o, unittest.hasLength(2)); 119 unittest.expect(o, unittest.hasLength(2));
120 checkCertificationStatus(o[0]); 120 checkCertificationStatus(o[0]);
121 checkCertificationStatus(o[1]); 121 checkCertificationStatus(o[1]);
122 } 122 }
123 123
124 buildUnnamed1966() { 124 buildUnnamed1547() {
125 var o = new core.List<core.String>(); 125 var o = new core.List<core.String>();
126 o.add("foo"); 126 o.add("foo");
127 o.add("foo"); 127 o.add("foo");
128 return o; 128 return o;
129 } 129 }
130 130
131 checkUnnamed1966(core.List<core.String> o) { 131 checkUnnamed1547(core.List<core.String> o) {
132 unittest.expect(o, unittest.hasLength(2)); 132 unittest.expect(o, unittest.hasLength(2));
133 unittest.expect(o[0], unittest.equals('foo')); 133 unittest.expect(o[0], unittest.equals('foo'));
134 unittest.expect(o[1], unittest.equals('foo')); 134 unittest.expect(o[1], unittest.equals('foo'));
135 } 135 }
136 136
137 buildUnnamed1967() { 137 buildUnnamed1548() {
138 var o = new core.List<api.LocalizedCompanyInfo>(); 138 var o = new core.List<api.LocalizedCompanyInfo>();
139 o.add(buildLocalizedCompanyInfo()); 139 o.add(buildLocalizedCompanyInfo());
140 o.add(buildLocalizedCompanyInfo()); 140 o.add(buildLocalizedCompanyInfo());
141 return o; 141 return o;
142 } 142 }
143 143
144 checkUnnamed1967(core.List<api.LocalizedCompanyInfo> o) { 144 checkUnnamed1548(core.List<api.LocalizedCompanyInfo> o) {
145 unittest.expect(o, unittest.hasLength(2)); 145 unittest.expect(o, unittest.hasLength(2));
146 checkLocalizedCompanyInfo(o[0]); 146 checkLocalizedCompanyInfo(o[0]);
147 checkLocalizedCompanyInfo(o[1]); 147 checkLocalizedCompanyInfo(o[1]);
148 } 148 }
149 149
150 buildUnnamed1968() { 150 buildUnnamed1549() {
151 var o = new core.List<api.Location>(); 151 var o = new core.List<api.Location>();
152 o.add(buildLocation()); 152 o.add(buildLocation());
153 o.add(buildLocation()); 153 o.add(buildLocation());
154 return o; 154 return o;
155 } 155 }
156 156
157 checkUnnamed1968(core.List<api.Location> o) { 157 checkUnnamed1549(core.List<api.Location> o) {
158 unittest.expect(o, unittest.hasLength(2)); 158 unittest.expect(o, unittest.hasLength(2));
159 checkLocation(o[0]); 159 checkLocation(o[0]);
160 checkLocation(o[1]); 160 checkLocation(o[1]);
161 } 161 }
162 162
163 buildUnnamed1969() { 163 buildUnnamed1550() {
164 var o = new core.List<api.Rank>(); 164 var o = new core.List<api.Rank>();
165 o.add(buildRank()); 165 o.add(buildRank());
166 o.add(buildRank()); 166 o.add(buildRank());
167 return o; 167 return o;
168 } 168 }
169 169
170 checkUnnamed1969(core.List<api.Rank> o) { 170 checkUnnamed1550(core.List<api.Rank> o) {
171 unittest.expect(o, unittest.hasLength(2)); 171 unittest.expect(o, unittest.hasLength(2));
172 checkRank(o[0]); 172 checkRank(o[0]);
173 checkRank(o[1]); 173 checkRank(o[1]);
174 } 174 }
175 175
176 buildUnnamed1970() { 176 buildUnnamed1551() {
177 var o = new core.List<core.String>(); 177 var o = new core.List<core.String>();
178 o.add("foo"); 178 o.add("foo");
179 o.add("foo"); 179 o.add("foo");
180 return o; 180 return o;
181 } 181 }
182 182
183 checkUnnamed1970(core.List<core.String> o) { 183 checkUnnamed1551(core.List<core.String> o) {
184 unittest.expect(o, unittest.hasLength(2)); 184 unittest.expect(o, unittest.hasLength(2));
185 unittest.expect(o[0], unittest.equals('foo')); 185 unittest.expect(o[0], unittest.equals('foo'));
186 unittest.expect(o[1], unittest.equals('foo')); 186 unittest.expect(o[1], unittest.equals('foo'));
187 } 187 }
188 188
189 core.int buildCounterCompany = 0; 189 core.int buildCounterCompany = 0;
190 buildCompany() { 190 buildCompany() {
191 var o = new api.Company(); 191 var o = new api.Company();
192 buildCounterCompany++; 192 buildCounterCompany++;
193 if (buildCounterCompany < 3) { 193 if (buildCounterCompany < 3) {
194 o.certificationStatuses = buildUnnamed1965(); 194 o.certificationStatuses = buildUnnamed1546();
195 o.convertedMinMonthlyBudget = buildMoney(); 195 o.convertedMinMonthlyBudget = buildMoney();
196 o.id = "foo"; 196 o.id = "foo";
197 o.industries = buildUnnamed1966(); 197 o.industries = buildUnnamed1547();
198 o.localizedInfos = buildUnnamed1967(); 198 o.localizedInfos = buildUnnamed1548();
199 o.locations = buildUnnamed1968(); 199 o.locations = buildUnnamed1549();
200 o.name = "foo"; 200 o.name = "foo";
201 o.originalMinMonthlyBudget = buildMoney(); 201 o.originalMinMonthlyBudget = buildMoney();
202 o.publicProfile = buildPublicProfile(); 202 o.publicProfile = buildPublicProfile();
203 o.ranks = buildUnnamed1969(); 203 o.ranks = buildUnnamed1550();
204 o.services = buildUnnamed1970(); 204 o.services = buildUnnamed1551();
205 o.websiteUrl = "foo"; 205 o.websiteUrl = "foo";
206 } 206 }
207 buildCounterCompany--; 207 buildCounterCompany--;
208 return o; 208 return o;
209 } 209 }
210 210
211 checkCompany(api.Company o) { 211 checkCompany(api.Company o) {
212 buildCounterCompany++; 212 buildCounterCompany++;
213 if (buildCounterCompany < 3) { 213 if (buildCounterCompany < 3) {
214 checkUnnamed1965(o.certificationStatuses); 214 checkUnnamed1546(o.certificationStatuses);
215 checkMoney(o.convertedMinMonthlyBudget); 215 checkMoney(o.convertedMinMonthlyBudget);
216 unittest.expect(o.id, unittest.equals('foo')); 216 unittest.expect(o.id, unittest.equals('foo'));
217 checkUnnamed1966(o.industries); 217 checkUnnamed1547(o.industries);
218 checkUnnamed1967(o.localizedInfos); 218 checkUnnamed1548(o.localizedInfos);
219 checkUnnamed1968(o.locations); 219 checkUnnamed1549(o.locations);
220 unittest.expect(o.name, unittest.equals('foo')); 220 unittest.expect(o.name, unittest.equals('foo'));
221 checkMoney(o.originalMinMonthlyBudget); 221 checkMoney(o.originalMinMonthlyBudget);
222 checkPublicProfile(o.publicProfile); 222 checkPublicProfile(o.publicProfile);
223 checkUnnamed1969(o.ranks); 223 checkUnnamed1550(o.ranks);
224 checkUnnamed1970(o.services); 224 checkUnnamed1551(o.services);
225 unittest.expect(o.websiteUrl, unittest.equals('foo')); 225 unittest.expect(o.websiteUrl, unittest.equals('foo'));
226 } 226 }
227 buildCounterCompany--; 227 buildCounterCompany--;
228 } 228 }
229 229
230 core.int buildCounterCreateLeadRequest = 0; 230 core.int buildCounterCreateLeadRequest = 0;
231 buildCreateLeadRequest() { 231 buildCreateLeadRequest() {
232 var o = new api.CreateLeadRequest(); 232 var o = new api.CreateLeadRequest();
233 buildCounterCreateLeadRequest++; 233 buildCounterCreateLeadRequest++;
234 if (buildCounterCreateLeadRequest < 3) { 234 if (buildCounterCreateLeadRequest < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return o; 283 return o;
284 } 284 }
285 285
286 checkDebugInfo(api.DebugInfo o) { 286 checkDebugInfo(api.DebugInfo o) {
287 buildCounterDebugInfo++; 287 buildCounterDebugInfo++;
288 if (buildCounterDebugInfo < 3) { 288 if (buildCounterDebugInfo < 3) {
289 } 289 }
290 buildCounterDebugInfo--; 290 buildCounterDebugInfo--;
291 } 291 }
292 292
293 buildUnnamed1971() { 293 buildUnnamed1552() {
294 var o = new core.List<core.String>(); 294 var o = new core.List<core.String>();
295 o.add("foo"); 295 o.add("foo");
296 o.add("foo"); 296 o.add("foo");
297 return o; 297 return o;
298 } 298 }
299 299
300 checkUnnamed1971(core.List<core.String> o) { 300 checkUnnamed1552(core.List<core.String> o) {
301 unittest.expect(o, unittest.hasLength(2)); 301 unittest.expect(o, unittest.hasLength(2));
302 unittest.expect(o[0], unittest.equals('foo')); 302 unittest.expect(o[0], unittest.equals('foo'));
303 unittest.expect(o[1], unittest.equals('foo')); 303 unittest.expect(o[1], unittest.equals('foo'));
304 } 304 }
305 305
306 core.int buildCounterEventData = 0; 306 core.int buildCounterEventData = 0;
307 buildEventData() { 307 buildEventData() {
308 var o = new api.EventData(); 308 var o = new api.EventData();
309 buildCounterEventData++; 309 buildCounterEventData++;
310 if (buildCounterEventData < 3) { 310 if (buildCounterEventData < 3) {
311 o.key = "foo"; 311 o.key = "foo";
312 o.values = buildUnnamed1971(); 312 o.values = buildUnnamed1552();
313 } 313 }
314 buildCounterEventData--; 314 buildCounterEventData--;
315 return o; 315 return o;
316 } 316 }
317 317
318 checkEventData(api.EventData o) { 318 checkEventData(api.EventData o) {
319 buildCounterEventData++; 319 buildCounterEventData++;
320 if (buildCounterEventData < 3) { 320 if (buildCounterEventData < 3) {
321 unittest.expect(o.key, unittest.equals('foo')); 321 unittest.expect(o.key, unittest.equals('foo'));
322 checkUnnamed1971(o.values); 322 checkUnnamed1552(o.values);
323 } 323 }
324 buildCounterEventData--; 324 buildCounterEventData--;
325 } 325 }
326 326
327 core.int buildCounterGetCompanyResponse = 0; 327 core.int buildCounterGetCompanyResponse = 0;
328 buildGetCompanyResponse() { 328 buildGetCompanyResponse() {
329 var o = new api.GetCompanyResponse(); 329 var o = new api.GetCompanyResponse();
330 buildCounterGetCompanyResponse++; 330 buildCounterGetCompanyResponse++;
331 if (buildCounterGetCompanyResponse < 3) { 331 if (buildCounterGetCompanyResponse < 3) {
332 o.company = buildCompany(); 332 o.company = buildCompany();
(...skipping 26 matching lines...) Expand all
359 359
360 checkLatLng(api.LatLng o) { 360 checkLatLng(api.LatLng o) {
361 buildCounterLatLng++; 361 buildCounterLatLng++;
362 if (buildCounterLatLng < 3) { 362 if (buildCounterLatLng < 3) {
363 unittest.expect(o.latitude, unittest.equals(42.0)); 363 unittest.expect(o.latitude, unittest.equals(42.0));
364 unittest.expect(o.longitude, unittest.equals(42.0)); 364 unittest.expect(o.longitude, unittest.equals(42.0));
365 } 365 }
366 buildCounterLatLng--; 366 buildCounterLatLng--;
367 } 367 }
368 368
369 buildUnnamed1972() { 369 buildUnnamed1553() {
370 var o = new core.List<core.String>(); 370 var o = new core.List<core.String>();
371 o.add("foo"); 371 o.add("foo");
372 o.add("foo"); 372 o.add("foo");
373 return o; 373 return o;
374 } 374 }
375 375
376 checkUnnamed1972(core.List<core.String> o) { 376 checkUnnamed1553(core.List<core.String> o) {
377 unittest.expect(o, unittest.hasLength(2)); 377 unittest.expect(o, unittest.hasLength(2));
378 unittest.expect(o[0], unittest.equals('foo')); 378 unittest.expect(o[0], unittest.equals('foo'));
379 unittest.expect(o[1], unittest.equals('foo')); 379 unittest.expect(o[1], unittest.equals('foo'));
380 } 380 }
381 381
382 core.int buildCounterLead = 0; 382 core.int buildCounterLead = 0;
383 buildLead() { 383 buildLead() {
384 var o = new api.Lead(); 384 var o = new api.Lead();
385 buildCounterLead++; 385 buildCounterLead++;
386 if (buildCounterLead < 3) { 386 if (buildCounterLead < 3) {
387 o.comments = "foo"; 387 o.comments = "foo";
388 o.email = "foo"; 388 o.email = "foo";
389 o.familyName = "foo"; 389 o.familyName = "foo";
390 o.givenName = "foo"; 390 o.givenName = "foo";
391 o.gpsMotivations = buildUnnamed1972(); 391 o.gpsMotivations = buildUnnamed1553();
392 o.id = "foo"; 392 o.id = "foo";
393 o.minMonthlyBudget = buildMoney(); 393 o.minMonthlyBudget = buildMoney();
394 o.phoneNumber = "foo"; 394 o.phoneNumber = "foo";
395 o.type = "foo"; 395 o.type = "foo";
396 o.websiteUrl = "foo"; 396 o.websiteUrl = "foo";
397 } 397 }
398 buildCounterLead--; 398 buildCounterLead--;
399 return o; 399 return o;
400 } 400 }
401 401
402 checkLead(api.Lead o) { 402 checkLead(api.Lead o) {
403 buildCounterLead++; 403 buildCounterLead++;
404 if (buildCounterLead < 3) { 404 if (buildCounterLead < 3) {
405 unittest.expect(o.comments, unittest.equals('foo')); 405 unittest.expect(o.comments, unittest.equals('foo'));
406 unittest.expect(o.email, unittest.equals('foo')); 406 unittest.expect(o.email, unittest.equals('foo'));
407 unittest.expect(o.familyName, unittest.equals('foo')); 407 unittest.expect(o.familyName, unittest.equals('foo'));
408 unittest.expect(o.givenName, unittest.equals('foo')); 408 unittest.expect(o.givenName, unittest.equals('foo'));
409 checkUnnamed1972(o.gpsMotivations); 409 checkUnnamed1553(o.gpsMotivations);
410 unittest.expect(o.id, unittest.equals('foo')); 410 unittest.expect(o.id, unittest.equals('foo'));
411 checkMoney(o.minMonthlyBudget); 411 checkMoney(o.minMonthlyBudget);
412 unittest.expect(o.phoneNumber, unittest.equals('foo')); 412 unittest.expect(o.phoneNumber, unittest.equals('foo'));
413 unittest.expect(o.type, unittest.equals('foo')); 413 unittest.expect(o.type, unittest.equals('foo'));
414 unittest.expect(o.websiteUrl, unittest.equals('foo')); 414 unittest.expect(o.websiteUrl, unittest.equals('foo'));
415 } 415 }
416 buildCounterLead--; 416 buildCounterLead--;
417 } 417 }
418 418
419 buildUnnamed1973() { 419 buildUnnamed1554() {
420 var o = new core.List<api.Company>(); 420 var o = new core.List<api.Company>();
421 o.add(buildCompany()); 421 o.add(buildCompany());
422 o.add(buildCompany()); 422 o.add(buildCompany());
423 return o; 423 return o;
424 } 424 }
425 425
426 checkUnnamed1973(core.List<api.Company> o) { 426 checkUnnamed1554(core.List<api.Company> o) {
427 unittest.expect(o, unittest.hasLength(2)); 427 unittest.expect(o, unittest.hasLength(2));
428 checkCompany(o[0]); 428 checkCompany(o[0]);
429 checkCompany(o[1]); 429 checkCompany(o[1]);
430 } 430 }
431 431
432 core.int buildCounterListCompaniesResponse = 0; 432 core.int buildCounterListCompaniesResponse = 0;
433 buildListCompaniesResponse() { 433 buildListCompaniesResponse() {
434 var o = new api.ListCompaniesResponse(); 434 var o = new api.ListCompaniesResponse();
435 buildCounterListCompaniesResponse++; 435 buildCounterListCompaniesResponse++;
436 if (buildCounterListCompaniesResponse < 3) { 436 if (buildCounterListCompaniesResponse < 3) {
437 o.companies = buildUnnamed1973(); 437 o.companies = buildUnnamed1554();
438 o.nextPageToken = "foo"; 438 o.nextPageToken = "foo";
439 o.responseMetadata = buildResponseMetadata(); 439 o.responseMetadata = buildResponseMetadata();
440 } 440 }
441 buildCounterListCompaniesResponse--; 441 buildCounterListCompaniesResponse--;
442 return o; 442 return o;
443 } 443 }
444 444
445 checkListCompaniesResponse(api.ListCompaniesResponse o) { 445 checkListCompaniesResponse(api.ListCompaniesResponse o) {
446 buildCounterListCompaniesResponse++; 446 buildCounterListCompaniesResponse++;
447 if (buildCounterListCompaniesResponse < 3) { 447 if (buildCounterListCompaniesResponse < 3) {
448 checkUnnamed1973(o.companies); 448 checkUnnamed1554(o.companies);
449 unittest.expect(o.nextPageToken, unittest.equals('foo')); 449 unittest.expect(o.nextPageToken, unittest.equals('foo'));
450 checkResponseMetadata(o.responseMetadata); 450 checkResponseMetadata(o.responseMetadata);
451 } 451 }
452 buildCounterListCompaniesResponse--; 452 buildCounterListCompaniesResponse--;
453 } 453 }
454 454
455 buildUnnamed1974() { 455 buildUnnamed1555() {
456 var o = new core.List<core.String>(); 456 var o = new core.List<core.String>();
457 o.add("foo"); 457 o.add("foo");
458 o.add("foo"); 458 o.add("foo");
459 return o; 459 return o;
460 } 460 }
461 461
462 checkUnnamed1974(core.List<core.String> o) { 462 checkUnnamed1555(core.List<core.String> o) {
463 unittest.expect(o, unittest.hasLength(2)); 463 unittest.expect(o, unittest.hasLength(2));
464 unittest.expect(o[0], unittest.equals('foo')); 464 unittest.expect(o[0], unittest.equals('foo'));
465 unittest.expect(o[1], unittest.equals('foo')); 465 unittest.expect(o[1], unittest.equals('foo'));
466 } 466 }
467 467
468 core.int buildCounterListUserStatesResponse = 0; 468 core.int buildCounterListUserStatesResponse = 0;
469 buildListUserStatesResponse() { 469 buildListUserStatesResponse() {
470 var o = new api.ListUserStatesResponse(); 470 var o = new api.ListUserStatesResponse();
471 buildCounterListUserStatesResponse++; 471 buildCounterListUserStatesResponse++;
472 if (buildCounterListUserStatesResponse < 3) { 472 if (buildCounterListUserStatesResponse < 3) {
473 o.responseMetadata = buildResponseMetadata(); 473 o.responseMetadata = buildResponseMetadata();
474 o.userStates = buildUnnamed1974(); 474 o.userStates = buildUnnamed1555();
475 } 475 }
476 buildCounterListUserStatesResponse--; 476 buildCounterListUserStatesResponse--;
477 return o; 477 return o;
478 } 478 }
479 479
480 checkListUserStatesResponse(api.ListUserStatesResponse o) { 480 checkListUserStatesResponse(api.ListUserStatesResponse o) {
481 buildCounterListUserStatesResponse++; 481 buildCounterListUserStatesResponse++;
482 if (buildCounterListUserStatesResponse < 3) { 482 if (buildCounterListUserStatesResponse < 3) {
483 checkResponseMetadata(o.responseMetadata); 483 checkResponseMetadata(o.responseMetadata);
484 checkUnnamed1974(o.userStates); 484 checkUnnamed1555(o.userStates);
485 } 485 }
486 buildCounterListUserStatesResponse--; 486 buildCounterListUserStatesResponse--;
487 } 487 }
488 488
489 buildUnnamed1975() { 489 buildUnnamed1556() {
490 var o = new core.List<core.String>(); 490 var o = new core.List<core.String>();
491 o.add("foo"); 491 o.add("foo");
492 o.add("foo"); 492 o.add("foo");
493 return o; 493 return o;
494 } 494 }
495 495
496 checkUnnamed1975(core.List<core.String> o) { 496 checkUnnamed1556(core.List<core.String> o) {
497 unittest.expect(o, unittest.hasLength(2)); 497 unittest.expect(o, unittest.hasLength(2));
498 unittest.expect(o[0], unittest.equals('foo')); 498 unittest.expect(o[0], unittest.equals('foo'));
499 unittest.expect(o[1], unittest.equals('foo')); 499 unittest.expect(o[1], unittest.equals('foo'));
500 } 500 }
501 501
502 core.int buildCounterLocalizedCompanyInfo = 0; 502 core.int buildCounterLocalizedCompanyInfo = 0;
503 buildLocalizedCompanyInfo() { 503 buildLocalizedCompanyInfo() {
504 var o = new api.LocalizedCompanyInfo(); 504 var o = new api.LocalizedCompanyInfo();
505 buildCounterLocalizedCompanyInfo++; 505 buildCounterLocalizedCompanyInfo++;
506 if (buildCounterLocalizedCompanyInfo < 3) { 506 if (buildCounterLocalizedCompanyInfo < 3) {
507 o.countryCodes = buildUnnamed1975(); 507 o.countryCodes = buildUnnamed1556();
508 o.displayName = "foo"; 508 o.displayName = "foo";
509 o.languageCode = "foo"; 509 o.languageCode = "foo";
510 o.overview = "foo"; 510 o.overview = "foo";
511 } 511 }
512 buildCounterLocalizedCompanyInfo--; 512 buildCounterLocalizedCompanyInfo--;
513 return o; 513 return o;
514 } 514 }
515 515
516 checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { 516 checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) {
517 buildCounterLocalizedCompanyInfo++; 517 buildCounterLocalizedCompanyInfo++;
518 if (buildCounterLocalizedCompanyInfo < 3) { 518 if (buildCounterLocalizedCompanyInfo < 3) {
519 checkUnnamed1975(o.countryCodes); 519 checkUnnamed1556(o.countryCodes);
520 unittest.expect(o.displayName, unittest.equals('foo')); 520 unittest.expect(o.displayName, unittest.equals('foo'));
521 unittest.expect(o.languageCode, unittest.equals('foo')); 521 unittest.expect(o.languageCode, unittest.equals('foo'));
522 unittest.expect(o.overview, unittest.equals('foo')); 522 unittest.expect(o.overview, unittest.equals('foo'));
523 } 523 }
524 buildCounterLocalizedCompanyInfo--; 524 buildCounterLocalizedCompanyInfo--;
525 } 525 }
526 526
527 core.int buildCounterLocation = 0; 527 core.int buildCounterLocation = 0;
528 buildLocation() { 528 buildLocation() {
529 var o = new api.Location(); 529 var o = new api.Location();
530 buildCounterLocation++; 530 buildCounterLocation++;
531 if (buildCounterLocation < 3) { 531 if (buildCounterLocation < 3) {
532 o.address = "foo"; 532 o.address = "foo";
533 o.latLng = buildLatLng(); 533 o.latLng = buildLatLng();
534 } 534 }
535 buildCounterLocation--; 535 buildCounterLocation--;
536 return o; 536 return o;
537 } 537 }
538 538
539 checkLocation(api.Location o) { 539 checkLocation(api.Location o) {
540 buildCounterLocation++; 540 buildCounterLocation++;
541 if (buildCounterLocation < 3) { 541 if (buildCounterLocation < 3) {
542 unittest.expect(o.address, unittest.equals('foo')); 542 unittest.expect(o.address, unittest.equals('foo'));
543 checkLatLng(o.latLng); 543 checkLatLng(o.latLng);
544 } 544 }
545 buildCounterLocation--; 545 buildCounterLocation--;
546 } 546 }
547 547
548 buildUnnamed1976() { 548 buildUnnamed1557() {
549 var o = new core.Map<core.String, core.String>(); 549 var o = new core.Map<core.String, core.String>();
550 o["x"] = "foo"; 550 o["x"] = "foo";
551 o["y"] = "foo"; 551 o["y"] = "foo";
552 return o; 552 return o;
553 } 553 }
554 554
555 checkUnnamed1976(core.Map<core.String, core.String> o) { 555 checkUnnamed1557(core.Map<core.String, core.String> o) {
556 unittest.expect(o, unittest.hasLength(2)); 556 unittest.expect(o, unittest.hasLength(2));
557 unittest.expect(o["x"], unittest.equals('foo')); 557 unittest.expect(o["x"], unittest.equals('foo'));
558 unittest.expect(o["y"], unittest.equals('foo')); 558 unittest.expect(o["y"], unittest.equals('foo'));
559 } 559 }
560 560
561 core.int buildCounterLogMessageRequest = 0; 561 core.int buildCounterLogMessageRequest = 0;
562 buildLogMessageRequest() { 562 buildLogMessageRequest() {
563 var o = new api.LogMessageRequest(); 563 var o = new api.LogMessageRequest();
564 buildCounterLogMessageRequest++; 564 buildCounterLogMessageRequest++;
565 if (buildCounterLogMessageRequest < 3) { 565 if (buildCounterLogMessageRequest < 3) {
566 o.clientInfo = buildUnnamed1976(); 566 o.clientInfo = buildUnnamed1557();
567 o.details = "foo"; 567 o.details = "foo";
568 o.level = "foo"; 568 o.level = "foo";
569 o.requestMetadata = buildRequestMetadata(); 569 o.requestMetadata = buildRequestMetadata();
570 } 570 }
571 buildCounterLogMessageRequest--; 571 buildCounterLogMessageRequest--;
572 return o; 572 return o;
573 } 573 }
574 574
575 checkLogMessageRequest(api.LogMessageRequest o) { 575 checkLogMessageRequest(api.LogMessageRequest o) {
576 buildCounterLogMessageRequest++; 576 buildCounterLogMessageRequest++;
577 if (buildCounterLogMessageRequest < 3) { 577 if (buildCounterLogMessageRequest < 3) {
578 checkUnnamed1976(o.clientInfo); 578 checkUnnamed1557(o.clientInfo);
579 unittest.expect(o.details, unittest.equals('foo')); 579 unittest.expect(o.details, unittest.equals('foo'));
580 unittest.expect(o.level, unittest.equals('foo')); 580 unittest.expect(o.level, unittest.equals('foo'));
581 checkRequestMetadata(o.requestMetadata); 581 checkRequestMetadata(o.requestMetadata);
582 } 582 }
583 buildCounterLogMessageRequest--; 583 buildCounterLogMessageRequest--;
584 } 584 }
585 585
586 core.int buildCounterLogMessageResponse = 0; 586 core.int buildCounterLogMessageResponse = 0;
587 buildLogMessageResponse() { 587 buildLogMessageResponse() {
588 var o = new api.LogMessageResponse(); 588 var o = new api.LogMessageResponse();
589 buildCounterLogMessageResponse++; 589 buildCounterLogMessageResponse++;
590 if (buildCounterLogMessageResponse < 3) { 590 if (buildCounterLogMessageResponse < 3) {
591 o.responseMetadata = buildResponseMetadata(); 591 o.responseMetadata = buildResponseMetadata();
592 } 592 }
593 buildCounterLogMessageResponse--; 593 buildCounterLogMessageResponse--;
594 return o; 594 return o;
595 } 595 }
596 596
597 checkLogMessageResponse(api.LogMessageResponse o) { 597 checkLogMessageResponse(api.LogMessageResponse o) {
598 buildCounterLogMessageResponse++; 598 buildCounterLogMessageResponse++;
599 if (buildCounterLogMessageResponse < 3) { 599 if (buildCounterLogMessageResponse < 3) {
600 checkResponseMetadata(o.responseMetadata); 600 checkResponseMetadata(o.responseMetadata);
601 } 601 }
602 buildCounterLogMessageResponse--; 602 buildCounterLogMessageResponse--;
603 } 603 }
604 604
605 buildUnnamed1977() { 605 buildUnnamed1558() {
606 var o = new core.List<api.EventData>(); 606 var o = new core.List<api.EventData>();
607 o.add(buildEventData()); 607 o.add(buildEventData());
608 o.add(buildEventData()); 608 o.add(buildEventData());
609 return o; 609 return o;
610 } 610 }
611 611
612 checkUnnamed1977(core.List<api.EventData> o) { 612 checkUnnamed1558(core.List<api.EventData> o) {
613 unittest.expect(o, unittest.hasLength(2)); 613 unittest.expect(o, unittest.hasLength(2));
614 checkEventData(o[0]); 614 checkEventData(o[0]);
615 checkEventData(o[1]); 615 checkEventData(o[1]);
616 } 616 }
617 617
618 core.int buildCounterLogUserEventRequest = 0; 618 core.int buildCounterLogUserEventRequest = 0;
619 buildLogUserEventRequest() { 619 buildLogUserEventRequest() {
620 var o = new api.LogUserEventRequest(); 620 var o = new api.LogUserEventRequest();
621 buildCounterLogUserEventRequest++; 621 buildCounterLogUserEventRequest++;
622 if (buildCounterLogUserEventRequest < 3) { 622 if (buildCounterLogUserEventRequest < 3) {
623 o.eventAction = "foo"; 623 o.eventAction = "foo";
624 o.eventCategory = "foo"; 624 o.eventCategory = "foo";
625 o.eventDatas = buildUnnamed1977(); 625 o.eventDatas = buildUnnamed1558();
626 o.eventScope = "foo"; 626 o.eventScope = "foo";
627 o.lead = buildLead(); 627 o.lead = buildLead();
628 o.requestMetadata = buildRequestMetadata(); 628 o.requestMetadata = buildRequestMetadata();
629 o.url = "foo"; 629 o.url = "foo";
630 } 630 }
631 buildCounterLogUserEventRequest--; 631 buildCounterLogUserEventRequest--;
632 return o; 632 return o;
633 } 633 }
634 634
635 checkLogUserEventRequest(api.LogUserEventRequest o) { 635 checkLogUserEventRequest(api.LogUserEventRequest o) {
636 buildCounterLogUserEventRequest++; 636 buildCounterLogUserEventRequest++;
637 if (buildCounterLogUserEventRequest < 3) { 637 if (buildCounterLogUserEventRequest < 3) {
638 unittest.expect(o.eventAction, unittest.equals('foo')); 638 unittest.expect(o.eventAction, unittest.equals('foo'));
639 unittest.expect(o.eventCategory, unittest.equals('foo')); 639 unittest.expect(o.eventCategory, unittest.equals('foo'));
640 checkUnnamed1977(o.eventDatas); 640 checkUnnamed1558(o.eventDatas);
641 unittest.expect(o.eventScope, unittest.equals('foo')); 641 unittest.expect(o.eventScope, unittest.equals('foo'));
642 checkLead(o.lead); 642 checkLead(o.lead);
643 checkRequestMetadata(o.requestMetadata); 643 checkRequestMetadata(o.requestMetadata);
644 unittest.expect(o.url, unittest.equals('foo')); 644 unittest.expect(o.url, unittest.equals('foo'));
645 } 645 }
646 buildCounterLogUserEventRequest--; 646 buildCounterLogUserEventRequest--;
647 } 647 }
648 648
649 core.int buildCounterLogUserEventResponse = 0; 649 core.int buildCounterLogUserEventResponse = 0;
650 buildLogUserEventResponse() { 650 buildLogUserEventResponse() {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 748
749 checkRecaptchaChallenge(api.RecaptchaChallenge o) { 749 checkRecaptchaChallenge(api.RecaptchaChallenge o) {
750 buildCounterRecaptchaChallenge++; 750 buildCounterRecaptchaChallenge++;
751 if (buildCounterRecaptchaChallenge < 3) { 751 if (buildCounterRecaptchaChallenge < 3) {
752 unittest.expect(o.id, unittest.equals('foo')); 752 unittest.expect(o.id, unittest.equals('foo'));
753 unittest.expect(o.response, unittest.equals('foo')); 753 unittest.expect(o.response, unittest.equals('foo'));
754 } 754 }
755 buildCounterRecaptchaChallenge--; 755 buildCounterRecaptchaChallenge--;
756 } 756 }
757 757
758 buildUnnamed1978() { 758 buildUnnamed1559() {
759 var o = new core.List<core.String>(); 759 var o = new core.List<core.String>();
760 o.add("foo"); 760 o.add("foo");
761 o.add("foo"); 761 o.add("foo");
762 return o; 762 return o;
763 } 763 }
764 764
765 checkUnnamed1978(core.List<core.String> o) { 765 checkUnnamed1559(core.List<core.String> o) {
766 unittest.expect(o, unittest.hasLength(2)); 766 unittest.expect(o, unittest.hasLength(2));
767 unittest.expect(o[0], unittest.equals('foo')); 767 unittest.expect(o[0], unittest.equals('foo'));
768 unittest.expect(o[1], unittest.equals('foo')); 768 unittest.expect(o[1], unittest.equals('foo'));
769 } 769 }
770 770
771 core.int buildCounterRequestMetadata = 0; 771 core.int buildCounterRequestMetadata = 0;
772 buildRequestMetadata() { 772 buildRequestMetadata() {
773 var o = new api.RequestMetadata(); 773 var o = new api.RequestMetadata();
774 buildCounterRequestMetadata++; 774 buildCounterRequestMetadata++;
775 if (buildCounterRequestMetadata < 3) { 775 if (buildCounterRequestMetadata < 3) {
776 o.experimentIds = buildUnnamed1978(); 776 o.experimentIds = buildUnnamed1559();
777 o.locale = "foo"; 777 o.locale = "foo";
778 o.partnersSessionId = "foo"; 778 o.partnersSessionId = "foo";
779 } 779 }
780 buildCounterRequestMetadata--; 780 buildCounterRequestMetadata--;
781 return o; 781 return o;
782 } 782 }
783 783
784 checkRequestMetadata(api.RequestMetadata o) { 784 checkRequestMetadata(api.RequestMetadata o) {
785 buildCounterRequestMetadata++; 785 buildCounterRequestMetadata++;
786 if (buildCounterRequestMetadata < 3) { 786 if (buildCounterRequestMetadata < 3) {
787 checkUnnamed1978(o.experimentIds); 787 checkUnnamed1559(o.experimentIds);
788 unittest.expect(o.locale, unittest.equals('foo')); 788 unittest.expect(o.locale, unittest.equals('foo'));
789 unittest.expect(o.partnersSessionId, unittest.equals('foo')); 789 unittest.expect(o.partnersSessionId, unittest.equals('foo'));
790 } 790 }
791 buildCounterRequestMetadata--; 791 buildCounterRequestMetadata--;
792 } 792 }
793 793
794 core.int buildCounterResponseMetadata = 0; 794 core.int buildCounterResponseMetadata = 0;
795 buildResponseMetadata() { 795 buildResponseMetadata() {
796 var o = new api.ResponseMetadata(); 796 var o = new api.ResponseMetadata();
797 buildCounterResponseMetadata++; 797 buildCounterResponseMetadata++;
798 if (buildCounterResponseMetadata < 3) { 798 if (buildCounterResponseMetadata < 3) {
799 o.debugInfo = buildDebugInfo(); 799 o.debugInfo = buildDebugInfo();
800 } 800 }
801 buildCounterResponseMetadata--; 801 buildCounterResponseMetadata--;
802 return o; 802 return o;
803 } 803 }
804 804
805 checkResponseMetadata(api.ResponseMetadata o) { 805 checkResponseMetadata(api.ResponseMetadata o) {
806 buildCounterResponseMetadata++; 806 buildCounterResponseMetadata++;
807 if (buildCounterResponseMetadata < 3) { 807 if (buildCounterResponseMetadata < 3) {
808 checkDebugInfo(o.debugInfo); 808 checkDebugInfo(o.debugInfo);
809 } 809 }
810 buildCounterResponseMetadata--; 810 buildCounterResponseMetadata--;
811 } 811 }
812 812
813 buildUnnamed1979() { 813 buildUnnamed1560() {
814 var o = new core.List<core.String>(); 814 var o = new core.List<core.String>();
815 o.add("foo"); 815 o.add("foo");
816 o.add("foo"); 816 o.add("foo");
817 return o; 817 return o;
818 } 818 }
819 819
820 checkUnnamed1979(core.List<core.String> o) { 820 checkUnnamed1560(core.List<core.String> o) {
821 unittest.expect(o, unittest.hasLength(2)); 821 unittest.expect(o, unittest.hasLength(2));
822 unittest.expect(o[0], unittest.equals('foo')); 822 unittest.expect(o[0], unittest.equals('foo'));
823 unittest.expect(o[1], unittest.equals('foo')); 823 unittest.expect(o[1], unittest.equals('foo'));
824 } 824 }
825 825
826 buildUnnamed1980() { 826 buildUnnamed1561() {
827 var o = new core.List<core.String>(); 827 var o = new core.List<core.String>();
828 o.add("foo"); 828 o.add("foo");
829 o.add("foo"); 829 o.add("foo");
830 return o; 830 return o;
831 } 831 }
832 832
833 checkUnnamed1980(core.List<core.String> o) { 833 checkUnnamed1561(core.List<core.String> o) {
834 unittest.expect(o, unittest.hasLength(2)); 834 unittest.expect(o, unittest.hasLength(2));
835 unittest.expect(o[0], unittest.equals('foo')); 835 unittest.expect(o[0], unittest.equals('foo'));
836 unittest.expect(o[1], unittest.equals('foo')); 836 unittest.expect(o[1], unittest.equals('foo'));
837 } 837 }
838 838
839 buildUnnamed1981() { 839 buildUnnamed1562() {
840 var o = new core.List<core.String>(); 840 var o = new core.List<core.String>();
841 o.add("foo"); 841 o.add("foo");
842 o.add("foo"); 842 o.add("foo");
843 return o; 843 return o;
844 } 844 }
845 845
846 checkUnnamed1981(core.List<core.String> o) { 846 checkUnnamed1562(core.List<core.String> o) {
847 unittest.expect(o, unittest.hasLength(2)); 847 unittest.expect(o, unittest.hasLength(2));
848 unittest.expect(o[0], unittest.equals('foo')); 848 unittest.expect(o[0], unittest.equals('foo'));
849 unittest.expect(o[1], unittest.equals('foo')); 849 unittest.expect(o[1], unittest.equals('foo'));
850 } 850 }
851 851
852 buildUnnamed1982() { 852 buildUnnamed1563() {
853 var o = new core.List<core.String>(); 853 var o = new core.List<core.String>();
854 o.add("foo"); 854 o.add("foo");
855 o.add("foo"); 855 o.add("foo");
856 return o; 856 return o;
857 } 857 }
858 858
859 checkUnnamed1982(core.List<core.String> o) { 859 checkUnnamed1563(core.List<core.String> o) {
860 unittest.expect(o, unittest.hasLength(2)); 860 unittest.expect(o, unittest.hasLength(2));
861 unittest.expect(o[0], unittest.equals('foo')); 861 unittest.expect(o[0], unittest.equals('foo'));
862 unittest.expect(o[1], unittest.equals('foo')); 862 unittest.expect(o[1], unittest.equals('foo'));
863 } 863 }
864 864
865 buildUnnamed1983() { 865 buildUnnamed1564() {
866 var o = new core.List<core.String>(); 866 var o = new core.List<core.String>();
867 o.add("foo"); 867 o.add("foo");
868 o.add("foo"); 868 o.add("foo");
869 return o; 869 return o;
870 } 870 }
871 871
872 checkUnnamed1983(core.List<core.String> o) { 872 checkUnnamed1564(core.List<core.String> o) {
873 unittest.expect(o, unittest.hasLength(2)); 873 unittest.expect(o, unittest.hasLength(2));
874 unittest.expect(o[0], unittest.equals('foo')); 874 unittest.expect(o[0], unittest.equals('foo'));
875 unittest.expect(o[1], unittest.equals('foo')); 875 unittest.expect(o[1], unittest.equals('foo'));
876 } 876 }
877 877
878 buildUnnamed1984() { 878 buildUnnamed1565() {
879 var o = new core.List<core.String>(); 879 var o = new core.List<core.String>();
880 o.add("foo"); 880 o.add("foo");
881 o.add("foo"); 881 o.add("foo");
882 return o; 882 return o;
883 } 883 }
884 884
885 checkUnnamed1984(core.List<core.String> o) { 885 checkUnnamed1565(core.List<core.String> o) {
886 unittest.expect(o, unittest.hasLength(2)); 886 unittest.expect(o, unittest.hasLength(2));
887 unittest.expect(o[0], unittest.equals('foo')); 887 unittest.expect(o[0], unittest.equals('foo'));
888 unittest.expect(o[1], unittest.equals('foo')); 888 unittest.expect(o[1], unittest.equals('foo'));
889 } 889 }
890 890
891 buildUnnamed1985() { 891 buildUnnamed1566() {
892 var o = new core.List<core.String>(); 892 var o = new core.List<core.String>();
893 o.add("foo"); 893 o.add("foo");
894 o.add("foo"); 894 o.add("foo");
895 return o; 895 return o;
896 } 896 }
897 897
898 checkUnnamed1985(core.List<core.String> o) { 898 checkUnnamed1566(core.List<core.String> o) {
899 unittest.expect(o, unittest.hasLength(2)); 899 unittest.expect(o, unittest.hasLength(2));
900 unittest.expect(o[0], unittest.equals('foo')); 900 unittest.expect(o[0], unittest.equals('foo'));
901 unittest.expect(o[1], unittest.equals('foo')); 901 unittest.expect(o[1], unittest.equals('foo'));
902 } 902 }
903 903
904 904
905 main() { 905 main() {
906 unittest.group("obj-schema-CertificationExamStatus", () { 906 unittest.group("obj-schema-CertificationExamStatus", () {
907 unittest.test("to-json--from-json", () { 907 unittest.test("to-json--from-json", () {
908 var o = buildCertificationExamStatus(); 908 var o = buildCertificationExamStatus();
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 1171
1172 1172
1173 unittest.group("resource-CompaniesResourceApi", () { 1173 unittest.group("resource-CompaniesResourceApi", () {
1174 unittest.test("method--get", () { 1174 unittest.test("method--get", () {
1175 1175
1176 var mock = new HttpServerMock(); 1176 var mock = new HttpServerMock();
1177 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; 1177 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies;
1178 var arg_companyId = "foo"; 1178 var arg_companyId = "foo";
1179 var arg_requestMetadata_locale = "foo"; 1179 var arg_requestMetadata_locale = "foo";
1180 var arg_requestMetadata_partnersSessionId = "foo"; 1180 var arg_requestMetadata_partnersSessionId = "foo";
1181 var arg_requestMetadata_experimentIds = buildUnnamed1979(); 1181 var arg_requestMetadata_experimentIds = buildUnnamed1560();
1182 var arg_view = "foo"; 1182 var arg_view = "foo";
1183 var arg_orderBy = "foo"; 1183 var arg_orderBy = "foo";
1184 var arg_currencyCode = "foo"; 1184 var arg_currencyCode = "foo";
1185 var arg_address = "foo"; 1185 var arg_address = "foo";
1186 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1186 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1187 var path = (req.url).path; 1187 var path = (req.url).path;
1188 var pathOffset = 0; 1188 var pathOffset = 0;
1189 var index; 1189 var index;
1190 var subPart; 1190 var subPart;
1191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 checkGetCompanyResponse(response); 1231 checkGetCompanyResponse(response);
1232 }))); 1232 })));
1233 }); 1233 });
1234 1234
1235 unittest.test("method--list", () { 1235 unittest.test("method--list", () {
1236 1236
1237 var mock = new HttpServerMock(); 1237 var mock = new HttpServerMock();
1238 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; 1238 api.CompaniesResourceApi res = new api.PartnersApi(mock).companies;
1239 var arg_requestMetadata_locale = "foo"; 1239 var arg_requestMetadata_locale = "foo";
1240 var arg_requestMetadata_partnersSessionId = "foo"; 1240 var arg_requestMetadata_partnersSessionId = "foo";
1241 var arg_requestMetadata_experimentIds = buildUnnamed1980(); 1241 var arg_requestMetadata_experimentIds = buildUnnamed1561();
1242 var arg_pageSize = 42; 1242 var arg_pageSize = 42;
1243 var arg_pageToken = "foo"; 1243 var arg_pageToken = "foo";
1244 var arg_companyName = "foo"; 1244 var arg_companyName = "foo";
1245 var arg_view = "foo"; 1245 var arg_view = "foo";
1246 var arg_minMonthlyBudget_currencyCode = "foo"; 1246 var arg_minMonthlyBudget_currencyCode = "foo";
1247 var arg_minMonthlyBudget_units = "foo"; 1247 var arg_minMonthlyBudget_units = "foo";
1248 var arg_minMonthlyBudget_nanos = 42; 1248 var arg_minMonthlyBudget_nanos = 42;
1249 var arg_maxMonthlyBudget_currencyCode = "foo"; 1249 var arg_maxMonthlyBudget_currencyCode = "foo";
1250 var arg_maxMonthlyBudget_units = "foo"; 1250 var arg_maxMonthlyBudget_units = "foo";
1251 var arg_maxMonthlyBudget_nanos = 42; 1251 var arg_maxMonthlyBudget_nanos = 42;
1252 var arg_industries = buildUnnamed1981(); 1252 var arg_industries = buildUnnamed1562();
1253 var arg_services = buildUnnamed1982(); 1253 var arg_services = buildUnnamed1563();
1254 var arg_languageCodes = buildUnnamed1983(); 1254 var arg_languageCodes = buildUnnamed1564();
1255 var arg_address = "foo"; 1255 var arg_address = "foo";
1256 var arg_orderBy = "foo"; 1256 var arg_orderBy = "foo";
1257 var arg_gpsMotivations = buildUnnamed1984(); 1257 var arg_gpsMotivations = buildUnnamed1565();
1258 var arg_websiteUrl = "foo"; 1258 var arg_websiteUrl = "foo";
1259 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1259 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1260 var path = (req.url).path; 1260 var path = (req.url).path;
1261 var pathOffset = 0; 1261 var pathOffset = 0;
1262 var index; 1262 var index;
1263 var subPart; 1263 var subPart;
1264 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1264 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1265 pathOffset += 1; 1265 pathOffset += 1;
1266 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v2/companies")); 1266 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v2/companies"));
1267 pathOffset += 12; 1267 pathOffset += 12;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 }); 1428 });
1429 1429
1430 1430
1431 unittest.group("resource-UserStatesResourceApi", () { 1431 unittest.group("resource-UserStatesResourceApi", () {
1432 unittest.test("method--list", () { 1432 unittest.test("method--list", () {
1433 1433
1434 var mock = new HttpServerMock(); 1434 var mock = new HttpServerMock();
1435 api.UserStatesResourceApi res = new api.PartnersApi(mock).userStates; 1435 api.UserStatesResourceApi res = new api.PartnersApi(mock).userStates;
1436 var arg_requestMetadata_locale = "foo"; 1436 var arg_requestMetadata_locale = "foo";
1437 var arg_requestMetadata_partnersSessionId = "foo"; 1437 var arg_requestMetadata_partnersSessionId = "foo";
1438 var arg_requestMetadata_experimentIds = buildUnnamed1985(); 1438 var arg_requestMetadata_experimentIds = buildUnnamed1566();
1439 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1439 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1440 var path = (req.url).path; 1440 var path = (req.url).path;
1441 var pathOffset = 0; 1441 var pathOffset = 0;
1442 var index; 1442 var index;
1443 var subPart; 1443 var subPart;
1444 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1444 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1445 pathOffset += 1; 1445 pathOffset += 1;
1446 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v2/userStates")); 1446 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v2/userStates"));
1447 pathOffset += 13; 1447 pathOffset += 13;
1448 1448
(...skipping 27 matching lines...) Expand all
1476 res.list(requestMetadata_locale: arg_requestMetadata_locale, requestMetada ta_partnersSessionId: arg_requestMetadata_partnersSessionId, requestMetadata_exp erimentIds: arg_requestMetadata_experimentIds).then(unittest.expectAsync(((api.L istUserStatesResponse response) { 1476 res.list(requestMetadata_locale: arg_requestMetadata_locale, requestMetada ta_partnersSessionId: arg_requestMetadata_partnersSessionId, requestMetadata_exp erimentIds: arg_requestMetadata_experimentIds).then(unittest.expectAsync(((api.L istUserStatesResponse response) {
1477 checkListUserStatesResponse(response); 1477 checkListUserStatesResponse(response);
1478 }))); 1478 })));
1479 }); 1479 });
1480 1480
1481 }); 1481 });
1482 1482
1483 1483
1484 } 1484 }
1485 1485
OLDNEW
« no previous file with comments | « generated/googleapis/test/pagespeedonline/v2_test.dart ('k') | generated/googleapis/test/playmoviespartner/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698