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

Side by Side Diff: generated/googleapis/test/coordinate/v1_test.dart

Issue 663113002: Api roll 4: 2014-10-20 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 2 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.coordinate.v1.test; 1 library googleapis.coordinate.v1.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 unittest.expect(o.enabled, unittest.isTrue); 61 unittest.expect(o.enabled, unittest.isTrue);
62 unittest.expect(o.id, unittest.equals('foo')); 62 unittest.expect(o.id, unittest.equals('foo'));
63 unittest.expect(o.kind, unittest.equals('foo')); 63 unittest.expect(o.kind, unittest.equals('foo'));
64 unittest.expect(o.name, unittest.equals('foo')); 64 unittest.expect(o.name, unittest.equals('foo'));
65 unittest.expect(o.requiredForCheckout, unittest.isTrue); 65 unittest.expect(o.requiredForCheckout, unittest.isTrue);
66 unittest.expect(o.type, unittest.equals('foo')); 66 unittest.expect(o.type, unittest.equals('foo'));
67 } 67 }
68 buildCounterCustomFieldDef--; 68 buildCounterCustomFieldDef--;
69 } 69 }
70 70
71 buildUnnamed220() { 71 buildUnnamed452() {
72 var o = new core.List<api.CustomFieldDef>(); 72 var o = new core.List<api.CustomFieldDef>();
73 o.add(buildCustomFieldDef()); 73 o.add(buildCustomFieldDef());
74 o.add(buildCustomFieldDef()); 74 o.add(buildCustomFieldDef());
75 return o; 75 return o;
76 } 76 }
77 77
78 checkUnnamed220(core.List<api.CustomFieldDef> o) { 78 checkUnnamed452(core.List<api.CustomFieldDef> o) {
79 unittest.expect(o, unittest.hasLength(2)); 79 unittest.expect(o, unittest.hasLength(2));
80 checkCustomFieldDef(o[0]); 80 checkCustomFieldDef(o[0]);
81 checkCustomFieldDef(o[1]); 81 checkCustomFieldDef(o[1]);
82 } 82 }
83 83
84 core.int buildCounterCustomFieldDefListResponse = 0; 84 core.int buildCounterCustomFieldDefListResponse = 0;
85 buildCustomFieldDefListResponse() { 85 buildCustomFieldDefListResponse() {
86 var o = new api.CustomFieldDefListResponse(); 86 var o = new api.CustomFieldDefListResponse();
87 buildCounterCustomFieldDefListResponse++; 87 buildCounterCustomFieldDefListResponse++;
88 if (buildCounterCustomFieldDefListResponse < 3) { 88 if (buildCounterCustomFieldDefListResponse < 3) {
89 o.items = buildUnnamed220(); 89 o.items = buildUnnamed452();
90 o.kind = "foo"; 90 o.kind = "foo";
91 } 91 }
92 buildCounterCustomFieldDefListResponse--; 92 buildCounterCustomFieldDefListResponse--;
93 return o; 93 return o;
94 } 94 }
95 95
96 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) { 96 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) {
97 buildCounterCustomFieldDefListResponse++; 97 buildCounterCustomFieldDefListResponse++;
98 if (buildCounterCustomFieldDefListResponse < 3) { 98 if (buildCounterCustomFieldDefListResponse < 3) {
99 checkUnnamed220(o.items); 99 checkUnnamed452(o.items);
100 unittest.expect(o.kind, unittest.equals('foo')); 100 unittest.expect(o.kind, unittest.equals('foo'));
101 } 101 }
102 buildCounterCustomFieldDefListResponse--; 102 buildCounterCustomFieldDefListResponse--;
103 } 103 }
104 104
105 buildUnnamed221() { 105 buildUnnamed453() {
106 var o = new core.List<api.CustomField>(); 106 var o = new core.List<api.CustomField>();
107 o.add(buildCustomField()); 107 o.add(buildCustomField());
108 o.add(buildCustomField()); 108 o.add(buildCustomField());
109 return o; 109 return o;
110 } 110 }
111 111
112 checkUnnamed221(core.List<api.CustomField> o) { 112 checkUnnamed453(core.List<api.CustomField> o) {
113 unittest.expect(o, unittest.hasLength(2)); 113 unittest.expect(o, unittest.hasLength(2));
114 checkCustomField(o[0]); 114 checkCustomField(o[0]);
115 checkCustomField(o[1]); 115 checkCustomField(o[1]);
116 } 116 }
117 117
118 core.int buildCounterCustomFields = 0; 118 core.int buildCounterCustomFields = 0;
119 buildCustomFields() { 119 buildCustomFields() {
120 var o = new api.CustomFields(); 120 var o = new api.CustomFields();
121 buildCounterCustomFields++; 121 buildCounterCustomFields++;
122 if (buildCounterCustomFields < 3) { 122 if (buildCounterCustomFields < 3) {
123 o.customField = buildUnnamed221(); 123 o.customField = buildUnnamed453();
124 o.kind = "foo"; 124 o.kind = "foo";
125 } 125 }
126 buildCounterCustomFields--; 126 buildCounterCustomFields--;
127 return o; 127 return o;
128 } 128 }
129 129
130 checkCustomFields(api.CustomFields o) { 130 checkCustomFields(api.CustomFields o) {
131 buildCounterCustomFields++; 131 buildCounterCustomFields++;
132 if (buildCounterCustomFields < 3) { 132 if (buildCounterCustomFields < 3) {
133 checkUnnamed221(o.customField); 133 checkUnnamed453(o.customField);
134 unittest.expect(o.kind, unittest.equals('foo')); 134 unittest.expect(o.kind, unittest.equals('foo'));
135 } 135 }
136 buildCounterCustomFields--; 136 buildCounterCustomFields--;
137 } 137 }
138 138
139 buildUnnamed222() { 139 buildUnnamed454() {
140 var o = new core.List<api.JobChange>(); 140 var o = new core.List<api.JobChange>();
141 o.add(buildJobChange()); 141 o.add(buildJobChange());
142 o.add(buildJobChange()); 142 o.add(buildJobChange());
143 return o; 143 return o;
144 } 144 }
145 145
146 checkUnnamed222(core.List<api.JobChange> o) { 146 checkUnnamed454(core.List<api.JobChange> o) {
147 unittest.expect(o, unittest.hasLength(2)); 147 unittest.expect(o, unittest.hasLength(2));
148 checkJobChange(o[0]); 148 checkJobChange(o[0]);
149 checkJobChange(o[1]); 149 checkJobChange(o[1]);
150 } 150 }
151 151
152 core.int buildCounterJob = 0; 152 core.int buildCounterJob = 0;
153 buildJob() { 153 buildJob() {
154 var o = new api.Job(); 154 var o = new api.Job();
155 buildCounterJob++; 155 buildCounterJob++;
156 if (buildCounterJob < 3) { 156 if (buildCounterJob < 3) {
157 o.id = "foo"; 157 o.id = "foo";
158 o.jobChange = buildUnnamed222(); 158 o.jobChange = buildUnnamed454();
159 o.kind = "foo"; 159 o.kind = "foo";
160 o.state = buildJobState(); 160 o.state = buildJobState();
161 } 161 }
162 buildCounterJob--; 162 buildCounterJob--;
163 return o; 163 return o;
164 } 164 }
165 165
166 checkJob(api.Job o) { 166 checkJob(api.Job o) {
167 buildCounterJob++; 167 buildCounterJob++;
168 if (buildCounterJob < 3) { 168 if (buildCounterJob < 3) {
169 unittest.expect(o.id, unittest.equals('foo')); 169 unittest.expect(o.id, unittest.equals('foo'));
170 checkUnnamed222(o.jobChange); 170 checkUnnamed454(o.jobChange);
171 unittest.expect(o.kind, unittest.equals('foo')); 171 unittest.expect(o.kind, unittest.equals('foo'));
172 checkJobState(o.state); 172 checkJobState(o.state);
173 } 173 }
174 buildCounterJob--; 174 buildCounterJob--;
175 } 175 }
176 176
177 core.int buildCounterJobChange = 0; 177 core.int buildCounterJobChange = 0;
178 buildJobChange() { 178 buildJobChange() {
179 var o = new api.JobChange(); 179 var o = new api.JobChange();
180 buildCounterJobChange++; 180 buildCounterJobChange++;
181 if (buildCounterJobChange < 3) { 181 if (buildCounterJobChange < 3) {
182 o.kind = "foo"; 182 o.kind = "foo";
183 o.state = buildJobState(); 183 o.state = buildJobState();
184 o.timestamp = "foo"; 184 o.timestamp = "foo";
185 } 185 }
186 buildCounterJobChange--; 186 buildCounterJobChange--;
187 return o; 187 return o;
188 } 188 }
189 189
190 checkJobChange(api.JobChange o) { 190 checkJobChange(api.JobChange o) {
191 buildCounterJobChange++; 191 buildCounterJobChange++;
192 if (buildCounterJobChange < 3) { 192 if (buildCounterJobChange < 3) {
193 unittest.expect(o.kind, unittest.equals('foo')); 193 unittest.expect(o.kind, unittest.equals('foo'));
194 checkJobState(o.state); 194 checkJobState(o.state);
195 unittest.expect(o.timestamp, unittest.equals('foo')); 195 unittest.expect(o.timestamp, unittest.equals('foo'));
196 } 196 }
197 buildCounterJobChange--; 197 buildCounterJobChange--;
198 } 198 }
199 199
200 buildUnnamed223() { 200 buildUnnamed455() {
201 var o = new core.List<api.Job>(); 201 var o = new core.List<api.Job>();
202 o.add(buildJob()); 202 o.add(buildJob());
203 o.add(buildJob()); 203 o.add(buildJob());
204 return o; 204 return o;
205 } 205 }
206 206
207 checkUnnamed223(core.List<api.Job> o) { 207 checkUnnamed455(core.List<api.Job> o) {
208 unittest.expect(o, unittest.hasLength(2)); 208 unittest.expect(o, unittest.hasLength(2));
209 checkJob(o[0]); 209 checkJob(o[0]);
210 checkJob(o[1]); 210 checkJob(o[1]);
211 } 211 }
212 212
213 core.int buildCounterJobListResponse = 0; 213 core.int buildCounterJobListResponse = 0;
214 buildJobListResponse() { 214 buildJobListResponse() {
215 var o = new api.JobListResponse(); 215 var o = new api.JobListResponse();
216 buildCounterJobListResponse++; 216 buildCounterJobListResponse++;
217 if (buildCounterJobListResponse < 3) { 217 if (buildCounterJobListResponse < 3) {
218 o.items = buildUnnamed223(); 218 o.items = buildUnnamed455();
219 o.kind = "foo"; 219 o.kind = "foo";
220 o.nextPageToken = "foo"; 220 o.nextPageToken = "foo";
221 } 221 }
222 buildCounterJobListResponse--; 222 buildCounterJobListResponse--;
223 return o; 223 return o;
224 } 224 }
225 225
226 checkJobListResponse(api.JobListResponse o) { 226 checkJobListResponse(api.JobListResponse o) {
227 buildCounterJobListResponse++; 227 buildCounterJobListResponse++;
228 if (buildCounterJobListResponse < 3) { 228 if (buildCounterJobListResponse < 3) {
229 checkUnnamed223(o.items); 229 checkUnnamed455(o.items);
230 unittest.expect(o.kind, unittest.equals('foo')); 230 unittest.expect(o.kind, unittest.equals('foo'));
231 unittest.expect(o.nextPageToken, unittest.equals('foo')); 231 unittest.expect(o.nextPageToken, unittest.equals('foo'));
232 } 232 }
233 buildCounterJobListResponse--; 233 buildCounterJobListResponse--;
234 } 234 }
235 235
236 buildUnnamed224() { 236 buildUnnamed456() {
237 var o = new core.List<core.String>(); 237 var o = new core.List<core.String>();
238 o.add("foo"); 238 o.add("foo");
239 o.add("foo"); 239 o.add("foo");
240 return o; 240 return o;
241 } 241 }
242 242
243 checkUnnamed224(core.List<core.String> o) { 243 checkUnnamed456(core.List<core.String> o) {
244 unittest.expect(o, unittest.hasLength(2)); 244 unittest.expect(o, unittest.hasLength(2));
245 unittest.expect(o[0], unittest.equals('foo')); 245 unittest.expect(o[0], unittest.equals('foo'));
246 unittest.expect(o[1], unittest.equals('foo')); 246 unittest.expect(o[1], unittest.equals('foo'));
247 } 247 }
248 248
249 core.int buildCounterJobState = 0; 249 core.int buildCounterJobState = 0;
250 buildJobState() { 250 buildJobState() {
251 var o = new api.JobState(); 251 var o = new api.JobState();
252 buildCounterJobState++; 252 buildCounterJobState++;
253 if (buildCounterJobState < 3) { 253 if (buildCounterJobState < 3) {
254 o.assignee = "foo"; 254 o.assignee = "foo";
255 o.customFields = buildCustomFields(); 255 o.customFields = buildCustomFields();
256 o.customerName = "foo"; 256 o.customerName = "foo";
257 o.customerPhoneNumber = "foo"; 257 o.customerPhoneNumber = "foo";
258 o.kind = "foo"; 258 o.kind = "foo";
259 o.location = buildLocation(); 259 o.location = buildLocation();
260 o.note = buildUnnamed224(); 260 o.note = buildUnnamed456();
261 o.progress = "foo"; 261 o.progress = "foo";
262 o.title = "foo"; 262 o.title = "foo";
263 } 263 }
264 buildCounterJobState--; 264 buildCounterJobState--;
265 return o; 265 return o;
266 } 266 }
267 267
268 checkJobState(api.JobState o) { 268 checkJobState(api.JobState o) {
269 buildCounterJobState++; 269 buildCounterJobState++;
270 if (buildCounterJobState < 3) { 270 if (buildCounterJobState < 3) {
271 unittest.expect(o.assignee, unittest.equals('foo')); 271 unittest.expect(o.assignee, unittest.equals('foo'));
272 checkCustomFields(o.customFields); 272 checkCustomFields(o.customFields);
273 unittest.expect(o.customerName, unittest.equals('foo')); 273 unittest.expect(o.customerName, unittest.equals('foo'));
274 unittest.expect(o.customerPhoneNumber, unittest.equals('foo')); 274 unittest.expect(o.customerPhoneNumber, unittest.equals('foo'));
275 unittest.expect(o.kind, unittest.equals('foo')); 275 unittest.expect(o.kind, unittest.equals('foo'));
276 checkLocation(o.location); 276 checkLocation(o.location);
277 checkUnnamed224(o.note); 277 checkUnnamed456(o.note);
278 unittest.expect(o.progress, unittest.equals('foo')); 278 unittest.expect(o.progress, unittest.equals('foo'));
279 unittest.expect(o.title, unittest.equals('foo')); 279 unittest.expect(o.title, unittest.equals('foo'));
280 } 280 }
281 buildCounterJobState--; 281 buildCounterJobState--;
282 } 282 }
283 283
284 buildUnnamed225() { 284 buildUnnamed457() {
285 var o = new core.List<core.String>(); 285 var o = new core.List<core.String>();
286 o.add("foo"); 286 o.add("foo");
287 o.add("foo"); 287 o.add("foo");
288 return o; 288 return o;
289 } 289 }
290 290
291 checkUnnamed225(core.List<core.String> o) { 291 checkUnnamed457(core.List<core.String> o) {
292 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
293 unittest.expect(o[0], unittest.equals('foo')); 293 unittest.expect(o[0], unittest.equals('foo'));
294 unittest.expect(o[1], unittest.equals('foo')); 294 unittest.expect(o[1], unittest.equals('foo'));
295 } 295 }
296 296
297 core.int buildCounterLocation = 0; 297 core.int buildCounterLocation = 0;
298 buildLocation() { 298 buildLocation() {
299 var o = new api.Location(); 299 var o = new api.Location();
300 buildCounterLocation++; 300 buildCounterLocation++;
301 if (buildCounterLocation < 3) { 301 if (buildCounterLocation < 3) {
302 o.addressLine = buildUnnamed225(); 302 o.addressLine = buildUnnamed457();
303 o.kind = "foo"; 303 o.kind = "foo";
304 o.lat = 42.0; 304 o.lat = 42.0;
305 o.lng = 42.0; 305 o.lng = 42.0;
306 } 306 }
307 buildCounterLocation--; 307 buildCounterLocation--;
308 return o; 308 return o;
309 } 309 }
310 310
311 checkLocation(api.Location o) { 311 checkLocation(api.Location o) {
312 buildCounterLocation++; 312 buildCounterLocation++;
313 if (buildCounterLocation < 3) { 313 if (buildCounterLocation < 3) {
314 checkUnnamed225(o.addressLine); 314 checkUnnamed457(o.addressLine);
315 unittest.expect(o.kind, unittest.equals('foo')); 315 unittest.expect(o.kind, unittest.equals('foo'));
316 unittest.expect(o.lat, unittest.equals(42.0)); 316 unittest.expect(o.lat, unittest.equals(42.0));
317 unittest.expect(o.lng, unittest.equals(42.0)); 317 unittest.expect(o.lng, unittest.equals(42.0));
318 } 318 }
319 buildCounterLocation--; 319 buildCounterLocation--;
320 } 320 }
321 321
322 buildUnnamed226() { 322 buildUnnamed458() {
323 var o = new core.List<api.LocationRecord>(); 323 var o = new core.List<api.LocationRecord>();
324 o.add(buildLocationRecord()); 324 o.add(buildLocationRecord());
325 o.add(buildLocationRecord()); 325 o.add(buildLocationRecord());
326 return o; 326 return o;
327 } 327 }
328 328
329 checkUnnamed226(core.List<api.LocationRecord> o) { 329 checkUnnamed458(core.List<api.LocationRecord> o) {
330 unittest.expect(o, unittest.hasLength(2)); 330 unittest.expect(o, unittest.hasLength(2));
331 checkLocationRecord(o[0]); 331 checkLocationRecord(o[0]);
332 checkLocationRecord(o[1]); 332 checkLocationRecord(o[1]);
333 } 333 }
334 334
335 core.int buildCounterLocationListResponse = 0; 335 core.int buildCounterLocationListResponse = 0;
336 buildLocationListResponse() { 336 buildLocationListResponse() {
337 var o = new api.LocationListResponse(); 337 var o = new api.LocationListResponse();
338 buildCounterLocationListResponse++; 338 buildCounterLocationListResponse++;
339 if (buildCounterLocationListResponse < 3) { 339 if (buildCounterLocationListResponse < 3) {
340 o.items = buildUnnamed226(); 340 o.items = buildUnnamed458();
341 o.kind = "foo"; 341 o.kind = "foo";
342 o.nextPageToken = "foo"; 342 o.nextPageToken = "foo";
343 o.tokenPagination = buildTokenPagination(); 343 o.tokenPagination = buildTokenPagination();
344 } 344 }
345 buildCounterLocationListResponse--; 345 buildCounterLocationListResponse--;
346 return o; 346 return o;
347 } 347 }
348 348
349 checkLocationListResponse(api.LocationListResponse o) { 349 checkLocationListResponse(api.LocationListResponse o) {
350 buildCounterLocationListResponse++; 350 buildCounterLocationListResponse++;
351 if (buildCounterLocationListResponse < 3) { 351 if (buildCounterLocationListResponse < 3) {
352 checkUnnamed226(o.items); 352 checkUnnamed458(o.items);
353 unittest.expect(o.kind, unittest.equals('foo')); 353 unittest.expect(o.kind, unittest.equals('foo'));
354 unittest.expect(o.nextPageToken, unittest.equals('foo')); 354 unittest.expect(o.nextPageToken, unittest.equals('foo'));
355 checkTokenPagination(o.tokenPagination); 355 checkTokenPagination(o.tokenPagination);
356 } 356 }
357 buildCounterLocationListResponse--; 357 buildCounterLocationListResponse--;
358 } 358 }
359 359
360 core.int buildCounterLocationRecord = 0; 360 core.int buildCounterLocationRecord = 0;
361 buildLocationRecord() { 361 buildLocationRecord() {
362 var o = new api.LocationRecord(); 362 var o = new api.LocationRecord();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 checkWorker(api.Worker o) { 449 checkWorker(api.Worker o) {
450 buildCounterWorker++; 450 buildCounterWorker++;
451 if (buildCounterWorker < 3) { 451 if (buildCounterWorker < 3) {
452 unittest.expect(o.id, unittest.equals('foo')); 452 unittest.expect(o.id, unittest.equals('foo'));
453 unittest.expect(o.kind, unittest.equals('foo')); 453 unittest.expect(o.kind, unittest.equals('foo'));
454 } 454 }
455 buildCounterWorker--; 455 buildCounterWorker--;
456 } 456 }
457 457
458 buildUnnamed227() { 458 buildUnnamed459() {
459 var o = new core.List<api.Worker>(); 459 var o = new core.List<api.Worker>();
460 o.add(buildWorker()); 460 o.add(buildWorker());
461 o.add(buildWorker()); 461 o.add(buildWorker());
462 return o; 462 return o;
463 } 463 }
464 464
465 checkUnnamed227(core.List<api.Worker> o) { 465 checkUnnamed459(core.List<api.Worker> o) {
466 unittest.expect(o, unittest.hasLength(2)); 466 unittest.expect(o, unittest.hasLength(2));
467 checkWorker(o[0]); 467 checkWorker(o[0]);
468 checkWorker(o[1]); 468 checkWorker(o[1]);
469 } 469 }
470 470
471 core.int buildCounterWorkerListResponse = 0; 471 core.int buildCounterWorkerListResponse = 0;
472 buildWorkerListResponse() { 472 buildWorkerListResponse() {
473 var o = new api.WorkerListResponse(); 473 var o = new api.WorkerListResponse();
474 buildCounterWorkerListResponse++; 474 buildCounterWorkerListResponse++;
475 if (buildCounterWorkerListResponse < 3) { 475 if (buildCounterWorkerListResponse < 3) {
476 o.items = buildUnnamed227(); 476 o.items = buildUnnamed459();
477 o.kind = "foo"; 477 o.kind = "foo";
478 } 478 }
479 buildCounterWorkerListResponse--; 479 buildCounterWorkerListResponse--;
480 return o; 480 return o;
481 } 481 }
482 482
483 checkWorkerListResponse(api.WorkerListResponse o) { 483 checkWorkerListResponse(api.WorkerListResponse o) {
484 buildCounterWorkerListResponse++; 484 buildCounterWorkerListResponse++;
485 if (buildCounterWorkerListResponse < 3) { 485 if (buildCounterWorkerListResponse < 3) {
486 checkUnnamed227(o.items); 486 checkUnnamed459(o.items);
487 unittest.expect(o.kind, unittest.equals('foo')); 487 unittest.expect(o.kind, unittest.equals('foo'));
488 } 488 }
489 buildCounterWorkerListResponse--; 489 buildCounterWorkerListResponse--;
490 } 490 }
491 491
492 buildUnnamed228() { 492 buildUnnamed460() {
493 var o = new core.List<core.String>(); 493 var o = new core.List<core.String>();
494 o.add("foo"); 494 o.add("foo");
495 o.add("foo"); 495 o.add("foo");
496 return o; 496 return o;
497 } 497 }
498 498
499 checkUnnamed228(core.List<core.String> o) { 499 checkUnnamed460(core.List<core.String> o) {
500 unittest.expect(o, unittest.hasLength(2)); 500 unittest.expect(o, unittest.hasLength(2));
501 unittest.expect(o[0], unittest.equals('foo')); 501 unittest.expect(o[0], unittest.equals('foo'));
502 unittest.expect(o[1], unittest.equals('foo')); 502 unittest.expect(o[1], unittest.equals('foo'));
503 } 503 }
504 504
505 buildUnnamed229() { 505 buildUnnamed461() {
506 var o = new core.List<core.String>(); 506 var o = new core.List<core.String>();
507 o.add("foo"); 507 o.add("foo");
508 o.add("foo"); 508 o.add("foo");
509 return o; 509 return o;
510 } 510 }
511 511
512 checkUnnamed229(core.List<core.String> o) { 512 checkUnnamed461(core.List<core.String> o) {
513 unittest.expect(o, unittest.hasLength(2)); 513 unittest.expect(o, unittest.hasLength(2));
514 unittest.expect(o[0], unittest.equals('foo')); 514 unittest.expect(o[0], unittest.equals('foo'));
515 unittest.expect(o[1], unittest.equals('foo')); 515 unittest.expect(o[1], unittest.equals('foo'));
516 } 516 }
517 517
518 buildUnnamed230() { 518 buildUnnamed462() {
519 var o = new core.List<core.String>(); 519 var o = new core.List<core.String>();
520 o.add("foo"); 520 o.add("foo");
521 o.add("foo"); 521 o.add("foo");
522 return o; 522 return o;
523 } 523 }
524 524
525 checkUnnamed230(core.List<core.String> o) { 525 checkUnnamed462(core.List<core.String> o) {
526 unittest.expect(o, unittest.hasLength(2)); 526 unittest.expect(o, unittest.hasLength(2));
527 unittest.expect(o[0], unittest.equals('foo')); 527 unittest.expect(o[0], unittest.equals('foo'));
528 unittest.expect(o[1], unittest.equals('foo')); 528 unittest.expect(o[1], unittest.equals('foo'));
529 } 529 }
530 530
531 531
532 main() { 532 main() {
533 unittest.group("obj-schema-CustomField", () { 533 unittest.group("obj-schema-CustomField", () {
534 unittest.test("to-json--from-json", () { 534 unittest.test("to-json--from-json", () {
535 var o = buildCustomField(); 535 var o = buildCustomField();
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 759
760 var mock = new common_test.HttpServerMock(); 760 var mock = new common_test.HttpServerMock();
761 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 761 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
762 var arg_request = buildJob(); 762 var arg_request = buildJob();
763 var arg_teamId = "foo"; 763 var arg_teamId = "foo";
764 var arg_address = "foo"; 764 var arg_address = "foo";
765 var arg_lat = 42.0; 765 var arg_lat = 42.0;
766 var arg_lng = 42.0; 766 var arg_lng = 42.0;
767 var arg_title = "foo"; 767 var arg_title = "foo";
768 var arg_assignee = "foo"; 768 var arg_assignee = "foo";
769 var arg_customField = buildUnnamed228(); 769 var arg_customField = buildUnnamed460();
770 var arg_customerName = "foo"; 770 var arg_customerName = "foo";
771 var arg_customerPhoneNumber = "foo"; 771 var arg_customerPhoneNumber = "foo";
772 var arg_note = "foo"; 772 var arg_note = "foo";
773 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 773 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
774 var obj = new api.Job.fromJson(json); 774 var obj = new api.Job.fromJson(json);
775 checkJob(obj); 775 checkJob(obj);
776 776
777 var path = (req.url).path; 777 var path = (req.url).path;
778 var pathOffset = 0; 778 var pathOffset = 0;
779 var index; 779 var index;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 869
870 unittest.test("method--patch", () { 870 unittest.test("method--patch", () {
871 871
872 var mock = new common_test.HttpServerMock(); 872 var mock = new common_test.HttpServerMock();
873 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 873 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
874 var arg_request = buildJob(); 874 var arg_request = buildJob();
875 var arg_teamId = "foo"; 875 var arg_teamId = "foo";
876 var arg_jobId = "foo"; 876 var arg_jobId = "foo";
877 var arg_address = "foo"; 877 var arg_address = "foo";
878 var arg_assignee = "foo"; 878 var arg_assignee = "foo";
879 var arg_customField = buildUnnamed229(); 879 var arg_customField = buildUnnamed461();
880 var arg_customerName = "foo"; 880 var arg_customerName = "foo";
881 var arg_customerPhoneNumber = "foo"; 881 var arg_customerPhoneNumber = "foo";
882 var arg_lat = 42.0; 882 var arg_lat = 42.0;
883 var arg_lng = 42.0; 883 var arg_lng = 42.0;
884 var arg_note = "foo"; 884 var arg_note = "foo";
885 var arg_progress = "foo"; 885 var arg_progress = "foo";
886 var arg_title = "foo"; 886 var arg_title = "foo";
887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 887 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
888 var obj = new api.Job.fromJson(json); 888 var obj = new api.Job.fromJson(json);
889 checkJob(obj); 889 checkJob(obj);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 936
937 unittest.test("method--update", () { 937 unittest.test("method--update", () {
938 938
939 var mock = new common_test.HttpServerMock(); 939 var mock = new common_test.HttpServerMock();
940 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; 940 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs;
941 var arg_request = buildJob(); 941 var arg_request = buildJob();
942 var arg_teamId = "foo"; 942 var arg_teamId = "foo";
943 var arg_jobId = "foo"; 943 var arg_jobId = "foo";
944 var arg_address = "foo"; 944 var arg_address = "foo";
945 var arg_assignee = "foo"; 945 var arg_assignee = "foo";
946 var arg_customField = buildUnnamed230(); 946 var arg_customField = buildUnnamed462();
947 var arg_customerName = "foo"; 947 var arg_customerName = "foo";
948 var arg_customerPhoneNumber = "foo"; 948 var arg_customerPhoneNumber = "foo";
949 var arg_lat = 42.0; 949 var arg_lat = 42.0;
950 var arg_lng = 42.0; 950 var arg_lng = 42.0;
951 var arg_note = "foo"; 951 var arg_note = "foo";
952 var arg_progress = "foo"; 952 var arg_progress = "foo";
953 var arg_title = "foo"; 953 var arg_title = "foo";
954 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 954 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
955 var obj = new api.Job.fromJson(json); 955 var obj = new api.Job.fromJson(json);
956 checkJob(obj); 956 checkJob(obj);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re sponse) { 1255 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re sponse) {
1256 checkWorkerListResponse(response); 1256 checkWorkerListResponse(response);
1257 }))); 1257 })));
1258 }); 1258 });
1259 1259
1260 }); 1260 });
1261 1261
1262 1262
1263 } 1263 }
1264 1264
OLDNEW
« no previous file with comments | « generated/googleapis/test/content/v2_test.dart ('k') | generated/googleapis/test/customsearch/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698