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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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.books.v1.test; 1 library googleapis.books.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;
11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test;
14 11
15 import 'package:googleapis/books/v1.dart' as api; 12 import 'package:googleapis/books/v1.dart' as api;
16 13
14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback;
16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback;
20 _expectJson = expectJson;
21 }
22
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) {
25 return request.finalize()
26 .transform(convert.UTF8.decoder)
27 .join('')
28 .then((core.String jsonString) {
29 if (jsonString.isEmpty) {
30 return _callback(request, null);
31 } else {
32 return _callback(request, convert.JSON.decode(jsonString));
33 }
34 });
35 } else {
36 var stream = request.finalize();
37 if (stream == null) {
38 return _callback(request, []);
39 } else {
40 return stream.toBytes().then((data) {
41 return _callback(request, data);
42 });
43 }
44 }
45 }
46 }
47
48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers);
52 }
18 53
19 core.int buildCounterAnnotationClientVersionRanges = 0; 54 core.int buildCounterAnnotationClientVersionRanges = 0;
20 buildAnnotationClientVersionRanges() { 55 buildAnnotationClientVersionRanges() {
21 var o = new api.AnnotationClientVersionRanges(); 56 var o = new api.AnnotationClientVersionRanges();
22 buildCounterAnnotationClientVersionRanges++; 57 buildCounterAnnotationClientVersionRanges++;
23 if (buildCounterAnnotationClientVersionRanges < 3) { 58 if (buildCounterAnnotationClientVersionRanges < 3) {
24 o.cfiRange = buildBooksAnnotationsRange(); 59 o.cfiRange = buildBooksAnnotationsRange();
25 o.contentVersion = "foo"; 60 o.contentVersion = "foo";
26 o.gbImageRange = buildBooksAnnotationsRange(); 61 o.gbImageRange = buildBooksAnnotationsRange();
27 o.gbTextRange = buildBooksAnnotationsRange(); 62 o.gbTextRange = buildBooksAnnotationsRange();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 checkAnnotationLayerSummary(api.AnnotationLayerSummary o) { 121 checkAnnotationLayerSummary(api.AnnotationLayerSummary o) {
87 buildCounterAnnotationLayerSummary++; 122 buildCounterAnnotationLayerSummary++;
88 if (buildCounterAnnotationLayerSummary < 3) { 123 if (buildCounterAnnotationLayerSummary < 3) {
89 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); 124 unittest.expect(o.allowedCharacterCount, unittest.equals(42));
90 unittest.expect(o.limitType, unittest.equals('foo')); 125 unittest.expect(o.limitType, unittest.equals('foo'));
91 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); 126 unittest.expect(o.remainingCharacterCount, unittest.equals(42));
92 } 127 }
93 buildCounterAnnotationLayerSummary--; 128 buildCounterAnnotationLayerSummary--;
94 } 129 }
95 130
96 buildUnnamed806() { 131 buildUnnamed328() {
97 var o = new core.List<core.String>(); 132 var o = new core.List<core.String>();
98 o.add("foo"); 133 o.add("foo");
99 o.add("foo"); 134 o.add("foo");
100 return o; 135 return o;
101 } 136 }
102 137
103 checkUnnamed806(core.List<core.String> o) { 138 checkUnnamed328(core.List<core.String> o) {
104 unittest.expect(o, unittest.hasLength(2)); 139 unittest.expect(o, unittest.hasLength(2));
105 unittest.expect(o[0], unittest.equals('foo')); 140 unittest.expect(o[0], unittest.equals('foo'));
106 unittest.expect(o[1], unittest.equals('foo')); 141 unittest.expect(o[1], unittest.equals('foo'));
107 } 142 }
108 143
109 core.int buildCounterAnnotation = 0; 144 core.int buildCounterAnnotation = 0;
110 buildAnnotation() { 145 buildAnnotation() {
111 var o = new api.Annotation(); 146 var o = new api.Annotation();
112 buildCounterAnnotation++; 147 buildCounterAnnotation++;
113 if (buildCounterAnnotation < 3) { 148 if (buildCounterAnnotation < 3) {
114 o.afterSelectedText = "foo"; 149 o.afterSelectedText = "foo";
115 o.beforeSelectedText = "foo"; 150 o.beforeSelectedText = "foo";
116 o.clientVersionRanges = buildAnnotationClientVersionRanges(); 151 o.clientVersionRanges = buildAnnotationClientVersionRanges();
117 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 152 o.created = core.DateTime.parse("2002-02-27T14:01:02");
118 o.currentVersionRanges = buildAnnotationCurrentVersionRanges(); 153 o.currentVersionRanges = buildAnnotationCurrentVersionRanges();
119 o.data = "foo"; 154 o.data = "foo";
120 o.deleted = true; 155 o.deleted = true;
121 o.highlightStyle = "foo"; 156 o.highlightStyle = "foo";
122 o.id = "foo"; 157 o.id = "foo";
123 o.kind = "foo"; 158 o.kind = "foo";
124 o.layerId = "foo"; 159 o.layerId = "foo";
125 o.layerSummary = buildAnnotationLayerSummary(); 160 o.layerSummary = buildAnnotationLayerSummary();
126 o.pageIds = buildUnnamed806(); 161 o.pageIds = buildUnnamed328();
127 o.selectedText = "foo"; 162 o.selectedText = "foo";
128 o.selfLink = "foo"; 163 o.selfLink = "foo";
129 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 164 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
130 o.volumeId = "foo"; 165 o.volumeId = "foo";
131 } 166 }
132 buildCounterAnnotation--; 167 buildCounterAnnotation--;
133 return o; 168 return o;
134 } 169 }
135 170
136 checkAnnotation(api.Annotation o) { 171 checkAnnotation(api.Annotation o) {
137 buildCounterAnnotation++; 172 buildCounterAnnotation++;
138 if (buildCounterAnnotation < 3) { 173 if (buildCounterAnnotation < 3) {
139 unittest.expect(o.afterSelectedText, unittest.equals('foo')); 174 unittest.expect(o.afterSelectedText, unittest.equals('foo'));
140 unittest.expect(o.beforeSelectedText, unittest.equals('foo')); 175 unittest.expect(o.beforeSelectedText, unittest.equals('foo'));
141 checkAnnotationClientVersionRanges(o.clientVersionRanges); 176 checkAnnotationClientVersionRanges(o.clientVersionRanges);
142 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 177 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
143 checkAnnotationCurrentVersionRanges(o.currentVersionRanges); 178 checkAnnotationCurrentVersionRanges(o.currentVersionRanges);
144 unittest.expect(o.data, unittest.equals('foo')); 179 unittest.expect(o.data, unittest.equals('foo'));
145 unittest.expect(o.deleted, unittest.isTrue); 180 unittest.expect(o.deleted, unittest.isTrue);
146 unittest.expect(o.highlightStyle, unittest.equals('foo')); 181 unittest.expect(o.highlightStyle, unittest.equals('foo'));
147 unittest.expect(o.id, unittest.equals('foo')); 182 unittest.expect(o.id, unittest.equals('foo'));
148 unittest.expect(o.kind, unittest.equals('foo')); 183 unittest.expect(o.kind, unittest.equals('foo'));
149 unittest.expect(o.layerId, unittest.equals('foo')); 184 unittest.expect(o.layerId, unittest.equals('foo'));
150 checkAnnotationLayerSummary(o.layerSummary); 185 checkAnnotationLayerSummary(o.layerSummary);
151 checkUnnamed806(o.pageIds); 186 checkUnnamed328(o.pageIds);
152 unittest.expect(o.selectedText, unittest.equals('foo')); 187 unittest.expect(o.selectedText, unittest.equals('foo'));
153 unittest.expect(o.selfLink, unittest.equals('foo')); 188 unittest.expect(o.selfLink, unittest.equals('foo'));
154 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 189 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
155 unittest.expect(o.volumeId, unittest.equals('foo')); 190 unittest.expect(o.volumeId, unittest.equals('foo'));
156 } 191 }
157 buildCounterAnnotation--; 192 buildCounterAnnotation--;
158 } 193 }
159 194
160 core.int buildCounterAnnotationdata = 0; 195 core.int buildCounterAnnotationdata = 0;
161 buildAnnotationdata() { 196 buildAnnotationdata() {
(...skipping 23 matching lines...) Expand all
185 unittest.expect(o.id, unittest.equals('foo')); 220 unittest.expect(o.id, unittest.equals('foo'));
186 unittest.expect(o.kind, unittest.equals('foo')); 221 unittest.expect(o.kind, unittest.equals('foo'));
187 unittest.expect(o.layerId, unittest.equals('foo')); 222 unittest.expect(o.layerId, unittest.equals('foo'));
188 unittest.expect(o.selfLink, unittest.equals('foo')); 223 unittest.expect(o.selfLink, unittest.equals('foo'));
189 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 224 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
190 unittest.expect(o.volumeId, unittest.equals('foo')); 225 unittest.expect(o.volumeId, unittest.equals('foo'));
191 } 226 }
192 buildCounterAnnotationdata--; 227 buildCounterAnnotationdata--;
193 } 228 }
194 229
195 buildUnnamed807() { 230 buildUnnamed329() {
196 var o = new core.List<api.Annotation>(); 231 var o = new core.List<api.Annotation>();
197 o.add(buildAnnotation()); 232 o.add(buildAnnotation());
198 o.add(buildAnnotation()); 233 o.add(buildAnnotation());
199 return o; 234 return o;
200 } 235 }
201 236
202 checkUnnamed807(core.List<api.Annotation> o) { 237 checkUnnamed329(core.List<api.Annotation> o) {
203 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
204 checkAnnotation(o[0]); 239 checkAnnotation(o[0]);
205 checkAnnotation(o[1]); 240 checkAnnotation(o[1]);
206 } 241 }
207 242
208 core.int buildCounterAnnotations = 0; 243 core.int buildCounterAnnotations = 0;
209 buildAnnotations() { 244 buildAnnotations() {
210 var o = new api.Annotations(); 245 var o = new api.Annotations();
211 buildCounterAnnotations++; 246 buildCounterAnnotations++;
212 if (buildCounterAnnotations < 3) { 247 if (buildCounterAnnotations < 3) {
213 o.items = buildUnnamed807(); 248 o.items = buildUnnamed329();
214 o.kind = "foo"; 249 o.kind = "foo";
215 o.nextPageToken = "foo"; 250 o.nextPageToken = "foo";
216 o.totalItems = 42; 251 o.totalItems = 42;
217 } 252 }
218 buildCounterAnnotations--; 253 buildCounterAnnotations--;
219 return o; 254 return o;
220 } 255 }
221 256
222 checkAnnotations(api.Annotations o) { 257 checkAnnotations(api.Annotations o) {
223 buildCounterAnnotations++; 258 buildCounterAnnotations++;
224 if (buildCounterAnnotations < 3) { 259 if (buildCounterAnnotations < 3) {
225 checkUnnamed807(o.items); 260 checkUnnamed329(o.items);
226 unittest.expect(o.kind, unittest.equals('foo')); 261 unittest.expect(o.kind, unittest.equals('foo'));
227 unittest.expect(o.nextPageToken, unittest.equals('foo')); 262 unittest.expect(o.nextPageToken, unittest.equals('foo'));
228 unittest.expect(o.totalItems, unittest.equals(42)); 263 unittest.expect(o.totalItems, unittest.equals(42));
229 } 264 }
230 buildCounterAnnotations--; 265 buildCounterAnnotations--;
231 } 266 }
232 267
233 core.int buildCounterAnnotationsSummaryLayers = 0; 268 core.int buildCounterAnnotationsSummaryLayers = 0;
234 buildAnnotationsSummaryLayers() { 269 buildAnnotationsSummaryLayers() {
235 var o = new api.AnnotationsSummaryLayers(); 270 var o = new api.AnnotationsSummaryLayers();
(...skipping 14 matching lines...) Expand all
250 if (buildCounterAnnotationsSummaryLayers < 3) { 285 if (buildCounterAnnotationsSummaryLayers < 3) {
251 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); 286 unittest.expect(o.allowedCharacterCount, unittest.equals(42));
252 unittest.expect(o.layerId, unittest.equals('foo')); 287 unittest.expect(o.layerId, unittest.equals('foo'));
253 unittest.expect(o.limitType, unittest.equals('foo')); 288 unittest.expect(o.limitType, unittest.equals('foo'));
254 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); 289 unittest.expect(o.remainingCharacterCount, unittest.equals(42));
255 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 290 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
256 } 291 }
257 buildCounterAnnotationsSummaryLayers--; 292 buildCounterAnnotationsSummaryLayers--;
258 } 293 }
259 294
260 buildUnnamed808() { 295 buildUnnamed330() {
261 var o = new core.List<api.AnnotationsSummaryLayers>(); 296 var o = new core.List<api.AnnotationsSummaryLayers>();
262 o.add(buildAnnotationsSummaryLayers()); 297 o.add(buildAnnotationsSummaryLayers());
263 o.add(buildAnnotationsSummaryLayers()); 298 o.add(buildAnnotationsSummaryLayers());
264 return o; 299 return o;
265 } 300 }
266 301
267 checkUnnamed808(core.List<api.AnnotationsSummaryLayers> o) { 302 checkUnnamed330(core.List<api.AnnotationsSummaryLayers> o) {
268 unittest.expect(o, unittest.hasLength(2)); 303 unittest.expect(o, unittest.hasLength(2));
269 checkAnnotationsSummaryLayers(o[0]); 304 checkAnnotationsSummaryLayers(o[0]);
270 checkAnnotationsSummaryLayers(o[1]); 305 checkAnnotationsSummaryLayers(o[1]);
271 } 306 }
272 307
273 core.int buildCounterAnnotationsSummary = 0; 308 core.int buildCounterAnnotationsSummary = 0;
274 buildAnnotationsSummary() { 309 buildAnnotationsSummary() {
275 var o = new api.AnnotationsSummary(); 310 var o = new api.AnnotationsSummary();
276 buildCounterAnnotationsSummary++; 311 buildCounterAnnotationsSummary++;
277 if (buildCounterAnnotationsSummary < 3) { 312 if (buildCounterAnnotationsSummary < 3) {
278 o.kind = "foo"; 313 o.kind = "foo";
279 o.layers = buildUnnamed808(); 314 o.layers = buildUnnamed330();
280 } 315 }
281 buildCounterAnnotationsSummary--; 316 buildCounterAnnotationsSummary--;
282 return o; 317 return o;
283 } 318 }
284 319
285 checkAnnotationsSummary(api.AnnotationsSummary o) { 320 checkAnnotationsSummary(api.AnnotationsSummary o) {
286 buildCounterAnnotationsSummary++; 321 buildCounterAnnotationsSummary++;
287 if (buildCounterAnnotationsSummary < 3) { 322 if (buildCounterAnnotationsSummary < 3) {
288 unittest.expect(o.kind, unittest.equals('foo')); 323 unittest.expect(o.kind, unittest.equals('foo'));
289 checkUnnamed808(o.layers); 324 checkUnnamed330(o.layers);
290 } 325 }
291 buildCounterAnnotationsSummary--; 326 buildCounterAnnotationsSummary--;
292 } 327 }
293 328
294 buildUnnamed809() { 329 buildUnnamed331() {
295 var o = new core.List<api.Annotationdata>(); 330 var o = new core.List<api.Annotationdata>();
296 o.add(buildAnnotationdata()); 331 o.add(buildAnnotationdata());
297 o.add(buildAnnotationdata()); 332 o.add(buildAnnotationdata());
298 return o; 333 return o;
299 } 334 }
300 335
301 checkUnnamed809(core.List<api.Annotationdata> o) { 336 checkUnnamed331(core.List<api.Annotationdata> o) {
302 unittest.expect(o, unittest.hasLength(2)); 337 unittest.expect(o, unittest.hasLength(2));
303 checkAnnotationdata(o[0]); 338 checkAnnotationdata(o[0]);
304 checkAnnotationdata(o[1]); 339 checkAnnotationdata(o[1]);
305 } 340 }
306 341
307 core.int buildCounterAnnotationsdata = 0; 342 core.int buildCounterAnnotationsdata = 0;
308 buildAnnotationsdata() { 343 buildAnnotationsdata() {
309 var o = new api.Annotationsdata(); 344 var o = new api.Annotationsdata();
310 buildCounterAnnotationsdata++; 345 buildCounterAnnotationsdata++;
311 if (buildCounterAnnotationsdata < 3) { 346 if (buildCounterAnnotationsdata < 3) {
312 o.items = buildUnnamed809(); 347 o.items = buildUnnamed331();
313 o.kind = "foo"; 348 o.kind = "foo";
314 o.nextPageToken = "foo"; 349 o.nextPageToken = "foo";
315 o.totalItems = 42; 350 o.totalItems = 42;
316 } 351 }
317 buildCounterAnnotationsdata--; 352 buildCounterAnnotationsdata--;
318 return o; 353 return o;
319 } 354 }
320 355
321 checkAnnotationsdata(api.Annotationsdata o) { 356 checkAnnotationsdata(api.Annotationsdata o) {
322 buildCounterAnnotationsdata++; 357 buildCounterAnnotationsdata++;
323 if (buildCounterAnnotationsdata < 3) { 358 if (buildCounterAnnotationsdata < 3) {
324 checkUnnamed809(o.items); 359 checkUnnamed331(o.items);
325 unittest.expect(o.kind, unittest.equals('foo')); 360 unittest.expect(o.kind, unittest.equals('foo'));
326 unittest.expect(o.nextPageToken, unittest.equals('foo')); 361 unittest.expect(o.nextPageToken, unittest.equals('foo'));
327 unittest.expect(o.totalItems, unittest.equals(42)); 362 unittest.expect(o.totalItems, unittest.equals(42));
328 } 363 }
329 buildCounterAnnotationsdata--; 364 buildCounterAnnotationsdata--;
330 } 365 }
331 366
332 core.int buildCounterBooksAnnotationsRange = 0; 367 core.int buildCounterBooksAnnotationsRange = 0;
333 buildBooksAnnotationsRange() { 368 buildBooksAnnotationsRange() {
334 var o = new api.BooksAnnotationsRange(); 369 var o = new api.BooksAnnotationsRange();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 unittest.expect(o.kind, unittest.equals('foo')); 463 unittest.expect(o.kind, unittest.equals('foo'));
429 unittest.expect(o.selfLink, unittest.equals('foo')); 464 unittest.expect(o.selfLink, unittest.equals('foo'));
430 unittest.expect(o.title, unittest.equals('foo')); 465 unittest.expect(o.title, unittest.equals('foo'));
431 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 466 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
432 unittest.expect(o.volumeCount, unittest.equals(42)); 467 unittest.expect(o.volumeCount, unittest.equals(42));
433 unittest.expect(o.volumesLastUpdated, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 468 unittest.expect(o.volumesLastUpdated, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
434 } 469 }
435 buildCounterBookshelf--; 470 buildCounterBookshelf--;
436 } 471 }
437 472
438 buildUnnamed810() { 473 buildUnnamed332() {
439 var o = new core.List<api.Bookshelf>(); 474 var o = new core.List<api.Bookshelf>();
440 o.add(buildBookshelf()); 475 o.add(buildBookshelf());
441 o.add(buildBookshelf()); 476 o.add(buildBookshelf());
442 return o; 477 return o;
443 } 478 }
444 479
445 checkUnnamed810(core.List<api.Bookshelf> o) { 480 checkUnnamed332(core.List<api.Bookshelf> o) {
446 unittest.expect(o, unittest.hasLength(2)); 481 unittest.expect(o, unittest.hasLength(2));
447 checkBookshelf(o[0]); 482 checkBookshelf(o[0]);
448 checkBookshelf(o[1]); 483 checkBookshelf(o[1]);
449 } 484 }
450 485
451 core.int buildCounterBookshelves = 0; 486 core.int buildCounterBookshelves = 0;
452 buildBookshelves() { 487 buildBookshelves() {
453 var o = new api.Bookshelves(); 488 var o = new api.Bookshelves();
454 buildCounterBookshelves++; 489 buildCounterBookshelves++;
455 if (buildCounterBookshelves < 3) { 490 if (buildCounterBookshelves < 3) {
456 o.items = buildUnnamed810(); 491 o.items = buildUnnamed332();
457 o.kind = "foo"; 492 o.kind = "foo";
458 } 493 }
459 buildCounterBookshelves--; 494 buildCounterBookshelves--;
460 return o; 495 return o;
461 } 496 }
462 497
463 checkBookshelves(api.Bookshelves o) { 498 checkBookshelves(api.Bookshelves o) {
464 buildCounterBookshelves++; 499 buildCounterBookshelves++;
465 if (buildCounterBookshelves < 3) { 500 if (buildCounterBookshelves < 3) {
466 checkUnnamed810(o.items); 501 checkUnnamed332(o.items);
467 unittest.expect(o.kind, unittest.equals('foo')); 502 unittest.expect(o.kind, unittest.equals('foo'));
468 } 503 }
469 buildCounterBookshelves--; 504 buildCounterBookshelves--;
470 } 505 }
471 506
472 core.int buildCounterCategoryItems = 0; 507 core.int buildCounterCategoryItems = 0;
473 buildCategoryItems() { 508 buildCategoryItems() {
474 var o = new api.CategoryItems(); 509 var o = new api.CategoryItems();
475 buildCounterCategoryItems++; 510 buildCounterCategoryItems++;
476 if (buildCounterCategoryItems < 3) { 511 if (buildCounterCategoryItems < 3) {
477 o.badgeUrl = "foo"; 512 o.badgeUrl = "foo";
478 o.categoryId = "foo"; 513 o.categoryId = "foo";
479 o.name = "foo"; 514 o.name = "foo";
480 } 515 }
481 buildCounterCategoryItems--; 516 buildCounterCategoryItems--;
482 return o; 517 return o;
483 } 518 }
484 519
485 checkCategoryItems(api.CategoryItems o) { 520 checkCategoryItems(api.CategoryItems o) {
486 buildCounterCategoryItems++; 521 buildCounterCategoryItems++;
487 if (buildCounterCategoryItems < 3) { 522 if (buildCounterCategoryItems < 3) {
488 unittest.expect(o.badgeUrl, unittest.equals('foo')); 523 unittest.expect(o.badgeUrl, unittest.equals('foo'));
489 unittest.expect(o.categoryId, unittest.equals('foo')); 524 unittest.expect(o.categoryId, unittest.equals('foo'));
490 unittest.expect(o.name, unittest.equals('foo')); 525 unittest.expect(o.name, unittest.equals('foo'));
491 } 526 }
492 buildCounterCategoryItems--; 527 buildCounterCategoryItems--;
493 } 528 }
494 529
495 buildUnnamed811() { 530 buildUnnamed333() {
496 var o = new core.List<api.CategoryItems>(); 531 var o = new core.List<api.CategoryItems>();
497 o.add(buildCategoryItems()); 532 o.add(buildCategoryItems());
498 o.add(buildCategoryItems()); 533 o.add(buildCategoryItems());
499 return o; 534 return o;
500 } 535 }
501 536
502 checkUnnamed811(core.List<api.CategoryItems> o) { 537 checkUnnamed333(core.List<api.CategoryItems> o) {
503 unittest.expect(o, unittest.hasLength(2)); 538 unittest.expect(o, unittest.hasLength(2));
504 checkCategoryItems(o[0]); 539 checkCategoryItems(o[0]);
505 checkCategoryItems(o[1]); 540 checkCategoryItems(o[1]);
506 } 541 }
507 542
508 core.int buildCounterCategory = 0; 543 core.int buildCounterCategory = 0;
509 buildCategory() { 544 buildCategory() {
510 var o = new api.Category(); 545 var o = new api.Category();
511 buildCounterCategory++; 546 buildCounterCategory++;
512 if (buildCounterCategory < 3) { 547 if (buildCounterCategory < 3) {
513 o.items = buildUnnamed811(); 548 o.items = buildUnnamed333();
514 o.kind = "foo"; 549 o.kind = "foo";
515 } 550 }
516 buildCounterCategory--; 551 buildCounterCategory--;
517 return o; 552 return o;
518 } 553 }
519 554
520 checkCategory(api.Category o) { 555 checkCategory(api.Category o) {
521 buildCounterCategory++; 556 buildCounterCategory++;
522 if (buildCounterCategory < 3) { 557 if (buildCounterCategory < 3) {
523 checkUnnamed811(o.items); 558 checkUnnamed333(o.items);
524 unittest.expect(o.kind, unittest.equals('foo')); 559 unittest.expect(o.kind, unittest.equals('foo'));
525 } 560 }
526 buildCounterCategory--; 561 buildCounterCategory--;
527 } 562 }
528 563
529 core.int buildCounterConcurrentAccessRestriction = 0; 564 core.int buildCounterConcurrentAccessRestriction = 0;
530 buildConcurrentAccessRestriction() { 565 buildConcurrentAccessRestriction() {
531 var o = new api.ConcurrentAccessRestriction(); 566 var o = new api.ConcurrentAccessRestriction();
532 buildCounterConcurrentAccessRestriction++; 567 buildCounterConcurrentAccessRestriction++;
533 if (buildCounterConcurrentAccessRestriction < 3) { 568 if (buildCounterConcurrentAccessRestriction < 3) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 675
641 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o) { 676 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o) {
642 buildCounterDictlayerdataDictWordsDerivatives++; 677 buildCounterDictlayerdataDictWordsDerivatives++;
643 if (buildCounterDictlayerdataDictWordsDerivatives < 3) { 678 if (buildCounterDictlayerdataDictWordsDerivatives < 3) {
644 checkDictlayerdataDictWordsDerivativesSource(o.source); 679 checkDictlayerdataDictWordsDerivativesSource(o.source);
645 unittest.expect(o.text, unittest.equals('foo')); 680 unittest.expect(o.text, unittest.equals('foo'));
646 } 681 }
647 buildCounterDictlayerdataDictWordsDerivatives--; 682 buildCounterDictlayerdataDictWordsDerivatives--;
648 } 683 }
649 684
650 buildUnnamed812() { 685 buildUnnamed334() {
651 var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); 686 var o = new core.List<api.DictlayerdataDictWordsDerivatives>();
652 o.add(buildDictlayerdataDictWordsDerivatives()); 687 o.add(buildDictlayerdataDictWordsDerivatives());
653 o.add(buildDictlayerdataDictWordsDerivatives()); 688 o.add(buildDictlayerdataDictWordsDerivatives());
654 return o; 689 return o;
655 } 690 }
656 691
657 checkUnnamed812(core.List<api.DictlayerdataDictWordsDerivatives> o) { 692 checkUnnamed334(core.List<api.DictlayerdataDictWordsDerivatives> o) {
658 unittest.expect(o, unittest.hasLength(2)); 693 unittest.expect(o, unittest.hasLength(2));
659 checkDictlayerdataDictWordsDerivatives(o[0]); 694 checkDictlayerdataDictWordsDerivatives(o[0]);
660 checkDictlayerdataDictWordsDerivatives(o[1]); 695 checkDictlayerdataDictWordsDerivatives(o[1]);
661 } 696 }
662 697
663 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0; 698 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0;
664 buildDictlayerdataDictWordsExamplesSource() { 699 buildDictlayerdataDictWordsExamplesSource() {
665 var o = new api.DictlayerdataDictWordsExamplesSource(); 700 var o = new api.DictlayerdataDictWordsExamplesSource();
666 buildCounterDictlayerdataDictWordsExamplesSource++; 701 buildCounterDictlayerdataDictWordsExamplesSource++;
667 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) { 702 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) {
(...skipping 27 matching lines...) Expand all
695 730
696 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) { 731 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) {
697 buildCounterDictlayerdataDictWordsExamples++; 732 buildCounterDictlayerdataDictWordsExamples++;
698 if (buildCounterDictlayerdataDictWordsExamples < 3) { 733 if (buildCounterDictlayerdataDictWordsExamples < 3) {
699 checkDictlayerdataDictWordsExamplesSource(o.source); 734 checkDictlayerdataDictWordsExamplesSource(o.source);
700 unittest.expect(o.text, unittest.equals('foo')); 735 unittest.expect(o.text, unittest.equals('foo'));
701 } 736 }
702 buildCounterDictlayerdataDictWordsExamples--; 737 buildCounterDictlayerdataDictWordsExamples--;
703 } 738 }
704 739
705 buildUnnamed813() { 740 buildUnnamed335() {
706 var o = new core.List<api.DictlayerdataDictWordsExamples>(); 741 var o = new core.List<api.DictlayerdataDictWordsExamples>();
707 o.add(buildDictlayerdataDictWordsExamples()); 742 o.add(buildDictlayerdataDictWordsExamples());
708 o.add(buildDictlayerdataDictWordsExamples()); 743 o.add(buildDictlayerdataDictWordsExamples());
709 return o; 744 return o;
710 } 745 }
711 746
712 checkUnnamed813(core.List<api.DictlayerdataDictWordsExamples> o) { 747 checkUnnamed335(core.List<api.DictlayerdataDictWordsExamples> o) {
713 unittest.expect(o, unittest.hasLength(2)); 748 unittest.expect(o, unittest.hasLength(2));
714 checkDictlayerdataDictWordsExamples(o[0]); 749 checkDictlayerdataDictWordsExamples(o[0]);
715 checkDictlayerdataDictWordsExamples(o[1]); 750 checkDictlayerdataDictWordsExamples(o[1]);
716 } 751 }
717 752
718 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0; 753 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0;
719 buildDictlayerdataDictWordsSensesConjugations() { 754 buildDictlayerdataDictWordsSensesConjugations() {
720 var o = new api.DictlayerdataDictWordsSensesConjugations(); 755 var o = new api.DictlayerdataDictWordsSensesConjugations();
721 buildCounterDictlayerdataDictWordsSensesConjugations++; 756 buildCounterDictlayerdataDictWordsSensesConjugations++;
722 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { 757 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) {
723 o.type = "foo"; 758 o.type = "foo";
724 o.value = "foo"; 759 o.value = "foo";
725 } 760 }
726 buildCounterDictlayerdataDictWordsSensesConjugations--; 761 buildCounterDictlayerdataDictWordsSensesConjugations--;
727 return o; 762 return o;
728 } 763 }
729 764
730 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo njugations o) { 765 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo njugations o) {
731 buildCounterDictlayerdataDictWordsSensesConjugations++; 766 buildCounterDictlayerdataDictWordsSensesConjugations++;
732 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { 767 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) {
733 unittest.expect(o.type, unittest.equals('foo')); 768 unittest.expect(o.type, unittest.equals('foo'));
734 unittest.expect(o.value, unittest.equals('foo')); 769 unittest.expect(o.value, unittest.equals('foo'));
735 } 770 }
736 buildCounterDictlayerdataDictWordsSensesConjugations--; 771 buildCounterDictlayerdataDictWordsSensesConjugations--;
737 } 772 }
738 773
739 buildUnnamed814() { 774 buildUnnamed336() {
740 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); 775 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>();
741 o.add(buildDictlayerdataDictWordsSensesConjugations()); 776 o.add(buildDictlayerdataDictWordsSensesConjugations());
742 o.add(buildDictlayerdataDictWordsSensesConjugations()); 777 o.add(buildDictlayerdataDictWordsSensesConjugations());
743 return o; 778 return o;
744 } 779 }
745 780
746 checkUnnamed814(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { 781 checkUnnamed336(core.List<api.DictlayerdataDictWordsSensesConjugations> o) {
747 unittest.expect(o, unittest.hasLength(2)); 782 unittest.expect(o, unittest.hasLength(2));
748 checkDictlayerdataDictWordsSensesConjugations(o[0]); 783 checkDictlayerdataDictWordsSensesConjugations(o[0]);
749 checkDictlayerdataDictWordsSensesConjugations(o[1]); 784 checkDictlayerdataDictWordsSensesConjugations(o[1]);
750 } 785 }
751 786
752 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0; 787 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0;
753 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() { 788 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() {
754 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource(); 789 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource();
755 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++; 790 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++;
756 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) { 791 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) {
(...skipping 27 matching lines...) Expand all
784 819
785 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS ensesDefinitionsExamples o) { 820 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS ensesDefinitionsExamples o) {
786 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++; 821 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++;
787 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) { 822 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) {
788 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source); 823 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source);
789 unittest.expect(o.text, unittest.equals('foo')); 824 unittest.expect(o.text, unittest.equals('foo'));
790 } 825 }
791 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; 826 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--;
792 } 827 }
793 828
794 buildUnnamed815() { 829 buildUnnamed337() {
795 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); 830 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>();
796 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); 831 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples());
797 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); 832 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples());
798 return o; 833 return o;
799 } 834 }
800 835
801 checkUnnamed815(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o ) { 836 checkUnnamed337(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o ) {
802 unittest.expect(o, unittest.hasLength(2)); 837 unittest.expect(o, unittest.hasLength(2));
803 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); 838 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]);
804 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); 839 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]);
805 } 840 }
806 841
807 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0; 842 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0;
808 buildDictlayerdataDictWordsSensesDefinitions() { 843 buildDictlayerdataDictWordsSensesDefinitions() {
809 var o = new api.DictlayerdataDictWordsSensesDefinitions(); 844 var o = new api.DictlayerdataDictWordsSensesDefinitions();
810 buildCounterDictlayerdataDictWordsSensesDefinitions++; 845 buildCounterDictlayerdataDictWordsSensesDefinitions++;
811 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { 846 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) {
812 o.definition = "foo"; 847 o.definition = "foo";
813 o.examples = buildUnnamed815(); 848 o.examples = buildUnnamed337();
814 } 849 }
815 buildCounterDictlayerdataDictWordsSensesDefinitions--; 850 buildCounterDictlayerdataDictWordsSensesDefinitions--;
816 return o; 851 return o;
817 } 852 }
818 853
819 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef initions o) { 854 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef initions o) {
820 buildCounterDictlayerdataDictWordsSensesDefinitions++; 855 buildCounterDictlayerdataDictWordsSensesDefinitions++;
821 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { 856 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) {
822 unittest.expect(o.definition, unittest.equals('foo')); 857 unittest.expect(o.definition, unittest.equals('foo'));
823 checkUnnamed815(o.examples); 858 checkUnnamed337(o.examples);
824 } 859 }
825 buildCounterDictlayerdataDictWordsSensesDefinitions--; 860 buildCounterDictlayerdataDictWordsSensesDefinitions--;
826 } 861 }
827 862
828 buildUnnamed816() { 863 buildUnnamed338() {
829 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); 864 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>();
830 o.add(buildDictlayerdataDictWordsSensesDefinitions()); 865 o.add(buildDictlayerdataDictWordsSensesDefinitions());
831 o.add(buildDictlayerdataDictWordsSensesDefinitions()); 866 o.add(buildDictlayerdataDictWordsSensesDefinitions());
832 return o; 867 return o;
833 } 868 }
834 869
835 checkUnnamed816(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { 870 checkUnnamed338(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) {
836 unittest.expect(o, unittest.hasLength(2)); 871 unittest.expect(o, unittest.hasLength(2));
837 checkDictlayerdataDictWordsSensesDefinitions(o[0]); 872 checkDictlayerdataDictWordsSensesDefinitions(o[0]);
838 checkDictlayerdataDictWordsSensesDefinitions(o[1]); 873 checkDictlayerdataDictWordsSensesDefinitions(o[1]);
839 } 874 }
840 875
841 core.int buildCounterDictlayerdataDictWordsSensesSource = 0; 876 core.int buildCounterDictlayerdataDictWordsSensesSource = 0;
842 buildDictlayerdataDictWordsSensesSource() { 877 buildDictlayerdataDictWordsSensesSource() {
843 var o = new api.DictlayerdataDictWordsSensesSource(); 878 var o = new api.DictlayerdataDictWordsSensesSource();
844 buildCounterDictlayerdataDictWordsSensesSource++; 879 buildCounterDictlayerdataDictWordsSensesSource++;
845 if (buildCounterDictlayerdataDictWordsSensesSource < 3) { 880 if (buildCounterDictlayerdataDictWordsSensesSource < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 929
895 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony ms o) { 930 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony ms o) {
896 buildCounterDictlayerdataDictWordsSensesSynonyms++; 931 buildCounterDictlayerdataDictWordsSensesSynonyms++;
897 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) { 932 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) {
898 checkDictlayerdataDictWordsSensesSynonymsSource(o.source); 933 checkDictlayerdataDictWordsSensesSynonymsSource(o.source);
899 unittest.expect(o.text, unittest.equals('foo')); 934 unittest.expect(o.text, unittest.equals('foo'));
900 } 935 }
901 buildCounterDictlayerdataDictWordsSensesSynonyms--; 936 buildCounterDictlayerdataDictWordsSensesSynonyms--;
902 } 937 }
903 938
904 buildUnnamed817() { 939 buildUnnamed339() {
905 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); 940 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>();
906 o.add(buildDictlayerdataDictWordsSensesSynonyms()); 941 o.add(buildDictlayerdataDictWordsSensesSynonyms());
907 o.add(buildDictlayerdataDictWordsSensesSynonyms()); 942 o.add(buildDictlayerdataDictWordsSensesSynonyms());
908 return o; 943 return o;
909 } 944 }
910 945
911 checkUnnamed817(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { 946 checkUnnamed339(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) {
912 unittest.expect(o, unittest.hasLength(2)); 947 unittest.expect(o, unittest.hasLength(2));
913 checkDictlayerdataDictWordsSensesSynonyms(o[0]); 948 checkDictlayerdataDictWordsSensesSynonyms(o[0]);
914 checkDictlayerdataDictWordsSensesSynonyms(o[1]); 949 checkDictlayerdataDictWordsSensesSynonyms(o[1]);
915 } 950 }
916 951
917 core.int buildCounterDictlayerdataDictWordsSenses = 0; 952 core.int buildCounterDictlayerdataDictWordsSenses = 0;
918 buildDictlayerdataDictWordsSenses() { 953 buildDictlayerdataDictWordsSenses() {
919 var o = new api.DictlayerdataDictWordsSenses(); 954 var o = new api.DictlayerdataDictWordsSenses();
920 buildCounterDictlayerdataDictWordsSenses++; 955 buildCounterDictlayerdataDictWordsSenses++;
921 if (buildCounterDictlayerdataDictWordsSenses < 3) { 956 if (buildCounterDictlayerdataDictWordsSenses < 3) {
922 o.conjugations = buildUnnamed814(); 957 o.conjugations = buildUnnamed336();
923 o.definitions = buildUnnamed816(); 958 o.definitions = buildUnnamed338();
924 o.partOfSpeech = "foo"; 959 o.partOfSpeech = "foo";
925 o.pronunciation = "foo"; 960 o.pronunciation = "foo";
926 o.pronunciationUrl = "foo"; 961 o.pronunciationUrl = "foo";
927 o.source = buildDictlayerdataDictWordsSensesSource(); 962 o.source = buildDictlayerdataDictWordsSensesSource();
928 o.syllabification = "foo"; 963 o.syllabification = "foo";
929 o.synonyms = buildUnnamed817(); 964 o.synonyms = buildUnnamed339();
930 } 965 }
931 buildCounterDictlayerdataDictWordsSenses--; 966 buildCounterDictlayerdataDictWordsSenses--;
932 return o; 967 return o;
933 } 968 }
934 969
935 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { 970 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) {
936 buildCounterDictlayerdataDictWordsSenses++; 971 buildCounterDictlayerdataDictWordsSenses++;
937 if (buildCounterDictlayerdataDictWordsSenses < 3) { 972 if (buildCounterDictlayerdataDictWordsSenses < 3) {
938 checkUnnamed814(o.conjugations); 973 checkUnnamed336(o.conjugations);
939 checkUnnamed816(o.definitions); 974 checkUnnamed338(o.definitions);
940 unittest.expect(o.partOfSpeech, unittest.equals('foo')); 975 unittest.expect(o.partOfSpeech, unittest.equals('foo'));
941 unittest.expect(o.pronunciation, unittest.equals('foo')); 976 unittest.expect(o.pronunciation, unittest.equals('foo'));
942 unittest.expect(o.pronunciationUrl, unittest.equals('foo')); 977 unittest.expect(o.pronunciationUrl, unittest.equals('foo'));
943 checkDictlayerdataDictWordsSensesSource(o.source); 978 checkDictlayerdataDictWordsSensesSource(o.source);
944 unittest.expect(o.syllabification, unittest.equals('foo')); 979 unittest.expect(o.syllabification, unittest.equals('foo'));
945 checkUnnamed817(o.synonyms); 980 checkUnnamed339(o.synonyms);
946 } 981 }
947 buildCounterDictlayerdataDictWordsSenses--; 982 buildCounterDictlayerdataDictWordsSenses--;
948 } 983 }
949 984
950 buildUnnamed818() { 985 buildUnnamed340() {
951 var o = new core.List<api.DictlayerdataDictWordsSenses>(); 986 var o = new core.List<api.DictlayerdataDictWordsSenses>();
952 o.add(buildDictlayerdataDictWordsSenses()); 987 o.add(buildDictlayerdataDictWordsSenses());
953 o.add(buildDictlayerdataDictWordsSenses()); 988 o.add(buildDictlayerdataDictWordsSenses());
954 return o; 989 return o;
955 } 990 }
956 991
957 checkUnnamed818(core.List<api.DictlayerdataDictWordsSenses> o) { 992 checkUnnamed340(core.List<api.DictlayerdataDictWordsSenses> o) {
958 unittest.expect(o, unittest.hasLength(2)); 993 unittest.expect(o, unittest.hasLength(2));
959 checkDictlayerdataDictWordsSenses(o[0]); 994 checkDictlayerdataDictWordsSenses(o[0]);
960 checkDictlayerdataDictWordsSenses(o[1]); 995 checkDictlayerdataDictWordsSenses(o[1]);
961 } 996 }
962 997
963 core.int buildCounterDictlayerdataDictWordsSource = 0; 998 core.int buildCounterDictlayerdataDictWordsSource = 0;
964 buildDictlayerdataDictWordsSource() { 999 buildDictlayerdataDictWordsSource() {
965 var o = new api.DictlayerdataDictWordsSource(); 1000 var o = new api.DictlayerdataDictWordsSource();
966 buildCounterDictlayerdataDictWordsSource++; 1001 buildCounterDictlayerdataDictWordsSource++;
967 if (buildCounterDictlayerdataDictWordsSource < 3) { 1002 if (buildCounterDictlayerdataDictWordsSource < 3) {
(...skipping 11 matching lines...) Expand all
979 unittest.expect(o.url, unittest.equals('foo')); 1014 unittest.expect(o.url, unittest.equals('foo'));
980 } 1015 }
981 buildCounterDictlayerdataDictWordsSource--; 1016 buildCounterDictlayerdataDictWordsSource--;
982 } 1017 }
983 1018
984 core.int buildCounterDictlayerdataDictWords = 0; 1019 core.int buildCounterDictlayerdataDictWords = 0;
985 buildDictlayerdataDictWords() { 1020 buildDictlayerdataDictWords() {
986 var o = new api.DictlayerdataDictWords(); 1021 var o = new api.DictlayerdataDictWords();
987 buildCounterDictlayerdataDictWords++; 1022 buildCounterDictlayerdataDictWords++;
988 if (buildCounterDictlayerdataDictWords < 3) { 1023 if (buildCounterDictlayerdataDictWords < 3) {
989 o.derivatives = buildUnnamed812(); 1024 o.derivatives = buildUnnamed334();
990 o.examples = buildUnnamed813(); 1025 o.examples = buildUnnamed335();
991 o.senses = buildUnnamed818(); 1026 o.senses = buildUnnamed340();
992 o.source = buildDictlayerdataDictWordsSource(); 1027 o.source = buildDictlayerdataDictWordsSource();
993 } 1028 }
994 buildCounterDictlayerdataDictWords--; 1029 buildCounterDictlayerdataDictWords--;
995 return o; 1030 return o;
996 } 1031 }
997 1032
998 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { 1033 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) {
999 buildCounterDictlayerdataDictWords++; 1034 buildCounterDictlayerdataDictWords++;
1000 if (buildCounterDictlayerdataDictWords < 3) { 1035 if (buildCounterDictlayerdataDictWords < 3) {
1001 checkUnnamed812(o.derivatives); 1036 checkUnnamed334(o.derivatives);
1002 checkUnnamed813(o.examples); 1037 checkUnnamed335(o.examples);
1003 checkUnnamed818(o.senses); 1038 checkUnnamed340(o.senses);
1004 checkDictlayerdataDictWordsSource(o.source); 1039 checkDictlayerdataDictWordsSource(o.source);
1005 } 1040 }
1006 buildCounterDictlayerdataDictWords--; 1041 buildCounterDictlayerdataDictWords--;
1007 } 1042 }
1008 1043
1009 buildUnnamed819() { 1044 buildUnnamed341() {
1010 var o = new core.List<api.DictlayerdataDictWords>(); 1045 var o = new core.List<api.DictlayerdataDictWords>();
1011 o.add(buildDictlayerdataDictWords()); 1046 o.add(buildDictlayerdataDictWords());
1012 o.add(buildDictlayerdataDictWords()); 1047 o.add(buildDictlayerdataDictWords());
1013 return o; 1048 return o;
1014 } 1049 }
1015 1050
1016 checkUnnamed819(core.List<api.DictlayerdataDictWords> o) { 1051 checkUnnamed341(core.List<api.DictlayerdataDictWords> o) {
1017 unittest.expect(o, unittest.hasLength(2)); 1052 unittest.expect(o, unittest.hasLength(2));
1018 checkDictlayerdataDictWords(o[0]); 1053 checkDictlayerdataDictWords(o[0]);
1019 checkDictlayerdataDictWords(o[1]); 1054 checkDictlayerdataDictWords(o[1]);
1020 } 1055 }
1021 1056
1022 core.int buildCounterDictlayerdataDict = 0; 1057 core.int buildCounterDictlayerdataDict = 0;
1023 buildDictlayerdataDict() { 1058 buildDictlayerdataDict() {
1024 var o = new api.DictlayerdataDict(); 1059 var o = new api.DictlayerdataDict();
1025 buildCounterDictlayerdataDict++; 1060 buildCounterDictlayerdataDict++;
1026 if (buildCounterDictlayerdataDict < 3) { 1061 if (buildCounterDictlayerdataDict < 3) {
1027 o.source = buildDictlayerdataDictSource(); 1062 o.source = buildDictlayerdataDictSource();
1028 o.words = buildUnnamed819(); 1063 o.words = buildUnnamed341();
1029 } 1064 }
1030 buildCounterDictlayerdataDict--; 1065 buildCounterDictlayerdataDict--;
1031 return o; 1066 return o;
1032 } 1067 }
1033 1068
1034 checkDictlayerdataDict(api.DictlayerdataDict o) { 1069 checkDictlayerdataDict(api.DictlayerdataDict o) {
1035 buildCounterDictlayerdataDict++; 1070 buildCounterDictlayerdataDict++;
1036 if (buildCounterDictlayerdataDict < 3) { 1071 if (buildCounterDictlayerdataDict < 3) {
1037 checkDictlayerdataDictSource(o.source); 1072 checkDictlayerdataDictSource(o.source);
1038 checkUnnamed819(o.words); 1073 checkUnnamed341(o.words);
1039 } 1074 }
1040 buildCounterDictlayerdataDict--; 1075 buildCounterDictlayerdataDict--;
1041 } 1076 }
1042 1077
1043 core.int buildCounterDictlayerdata = 0; 1078 core.int buildCounterDictlayerdata = 0;
1044 buildDictlayerdata() { 1079 buildDictlayerdata() {
1045 var o = new api.Dictlayerdata(); 1080 var o = new api.Dictlayerdata();
1046 buildCounterDictlayerdata++; 1081 buildCounterDictlayerdata++;
1047 if (buildCounterDictlayerdata < 3) { 1082 if (buildCounterDictlayerdata < 3) {
1048 o.common = buildDictlayerdataCommon(); 1083 o.common = buildDictlayerdataCommon();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 unittest.expect(o.nonce, unittest.equals('foo')); 1132 unittest.expect(o.nonce, unittest.equals('foo'));
1098 unittest.expect(o.reasonCode, unittest.equals('foo')); 1133 unittest.expect(o.reasonCode, unittest.equals('foo'));
1099 unittest.expect(o.restricted, unittest.isTrue); 1134 unittest.expect(o.restricted, unittest.isTrue);
1100 unittest.expect(o.signature, unittest.equals('foo')); 1135 unittest.expect(o.signature, unittest.equals('foo'));
1101 unittest.expect(o.source, unittest.equals('foo')); 1136 unittest.expect(o.source, unittest.equals('foo'));
1102 unittest.expect(o.volumeId, unittest.equals('foo')); 1137 unittest.expect(o.volumeId, unittest.equals('foo'));
1103 } 1138 }
1104 buildCounterDownloadAccessRestriction--; 1139 buildCounterDownloadAccessRestriction--;
1105 } 1140 }
1106 1141
1107 buildUnnamed820() { 1142 buildUnnamed342() {
1108 var o = new core.List<api.DownloadAccessRestriction>(); 1143 var o = new core.List<api.DownloadAccessRestriction>();
1109 o.add(buildDownloadAccessRestriction()); 1144 o.add(buildDownloadAccessRestriction());
1110 o.add(buildDownloadAccessRestriction()); 1145 o.add(buildDownloadAccessRestriction());
1111 return o; 1146 return o;
1112 } 1147 }
1113 1148
1114 checkUnnamed820(core.List<api.DownloadAccessRestriction> o) { 1149 checkUnnamed342(core.List<api.DownloadAccessRestriction> o) {
1115 unittest.expect(o, unittest.hasLength(2)); 1150 unittest.expect(o, unittest.hasLength(2));
1116 checkDownloadAccessRestriction(o[0]); 1151 checkDownloadAccessRestriction(o[0]);
1117 checkDownloadAccessRestriction(o[1]); 1152 checkDownloadAccessRestriction(o[1]);
1118 } 1153 }
1119 1154
1120 core.int buildCounterDownloadAccesses = 0; 1155 core.int buildCounterDownloadAccesses = 0;
1121 buildDownloadAccesses() { 1156 buildDownloadAccesses() {
1122 var o = new api.DownloadAccesses(); 1157 var o = new api.DownloadAccesses();
1123 buildCounterDownloadAccesses++; 1158 buildCounterDownloadAccesses++;
1124 if (buildCounterDownloadAccesses < 3) { 1159 if (buildCounterDownloadAccesses < 3) {
1125 o.downloadAccessList = buildUnnamed820(); 1160 o.downloadAccessList = buildUnnamed342();
1126 o.kind = "foo"; 1161 o.kind = "foo";
1127 } 1162 }
1128 buildCounterDownloadAccesses--; 1163 buildCounterDownloadAccesses--;
1129 return o; 1164 return o;
1130 } 1165 }
1131 1166
1132 checkDownloadAccesses(api.DownloadAccesses o) { 1167 checkDownloadAccesses(api.DownloadAccesses o) {
1133 buildCounterDownloadAccesses++; 1168 buildCounterDownloadAccesses++;
1134 if (buildCounterDownloadAccesses < 3) { 1169 if (buildCounterDownloadAccesses < 3) {
1135 checkUnnamed820(o.downloadAccessList); 1170 checkUnnamed342(o.downloadAccessList);
1136 unittest.expect(o.kind, unittest.equals('foo')); 1171 unittest.expect(o.kind, unittest.equals('foo'));
1137 } 1172 }
1138 buildCounterDownloadAccesses--; 1173 buildCounterDownloadAccesses--;
1139 } 1174 }
1140 1175
1141 core.int buildCounterGeolayerdataCommon = 0; 1176 core.int buildCounterGeolayerdataCommon = 0;
1142 buildGeolayerdataCommon() { 1177 buildGeolayerdataCommon() {
1143 var o = new api.GeolayerdataCommon(); 1178 var o = new api.GeolayerdataCommon();
1144 buildCounterGeolayerdataCommon++; 1179 buildCounterGeolayerdataCommon++;
1145 if (buildCounterGeolayerdataCommon < 3) { 1180 if (buildCounterGeolayerdataCommon < 3) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1214
1180 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { 1215 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) {
1181 buildCounterGeolayerdataGeoBoundary++; 1216 buildCounterGeolayerdataGeoBoundary++;
1182 if (buildCounterGeolayerdataGeoBoundary < 3) { 1217 if (buildCounterGeolayerdataGeoBoundary < 3) {
1183 unittest.expect(o.latitude, unittest.equals(42)); 1218 unittest.expect(o.latitude, unittest.equals(42));
1184 unittest.expect(o.longitude, unittest.equals(42)); 1219 unittest.expect(o.longitude, unittest.equals(42));
1185 } 1220 }
1186 buildCounterGeolayerdataGeoBoundary--; 1221 buildCounterGeolayerdataGeoBoundary--;
1187 } 1222 }
1188 1223
1189 buildUnnamed821() { 1224 buildUnnamed343() {
1190 var o = new core.List<api.GeolayerdataGeoBoundary>(); 1225 var o = new core.List<api.GeolayerdataGeoBoundary>();
1191 o.add(buildGeolayerdataGeoBoundary()); 1226 o.add(buildGeolayerdataGeoBoundary());
1192 o.add(buildGeolayerdataGeoBoundary()); 1227 o.add(buildGeolayerdataGeoBoundary());
1193 return o; 1228 return o;
1194 } 1229 }
1195 1230
1196 checkUnnamed821(core.List<api.GeolayerdataGeoBoundary> o) { 1231 checkUnnamed343(core.List<api.GeolayerdataGeoBoundary> o) {
1197 unittest.expect(o, unittest.hasLength(2)); 1232 unittest.expect(o, unittest.hasLength(2));
1198 checkGeolayerdataGeoBoundary(o[0]); 1233 checkGeolayerdataGeoBoundary(o[0]);
1199 checkGeolayerdataGeoBoundary(o[1]); 1234 checkGeolayerdataGeoBoundary(o[1]);
1200 } 1235 }
1201 1236
1202 buildUnnamed822() { 1237 buildUnnamed344() {
1203 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); 1238 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>();
1204 o.add(buildUnnamed821()); 1239 o.add(buildUnnamed343());
1205 o.add(buildUnnamed821()); 1240 o.add(buildUnnamed343());
1206 return o; 1241 return o;
1207 } 1242 }
1208 1243
1209 checkUnnamed822(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { 1244 checkUnnamed344(core.List<core.List<api.GeolayerdataGeoBoundary>> o) {
1210 unittest.expect(o, unittest.hasLength(2)); 1245 unittest.expect(o, unittest.hasLength(2));
1211 checkUnnamed821(o[0]); 1246 checkUnnamed343(o[0]);
1212 checkUnnamed821(o[1]); 1247 checkUnnamed343(o[1]);
1213 } 1248 }
1214 1249
1215 core.int buildCounterGeolayerdataGeoViewportHi = 0; 1250 core.int buildCounterGeolayerdataGeoViewportHi = 0;
1216 buildGeolayerdataGeoViewportHi() { 1251 buildGeolayerdataGeoViewportHi() {
1217 var o = new api.GeolayerdataGeoViewportHi(); 1252 var o = new api.GeolayerdataGeoViewportHi();
1218 buildCounterGeolayerdataGeoViewportHi++; 1253 buildCounterGeolayerdataGeoViewportHi++;
1219 if (buildCounterGeolayerdataGeoViewportHi < 3) { 1254 if (buildCounterGeolayerdataGeoViewportHi < 3) {
1220 o.latitude = 42.0; 1255 o.latitude = 42.0;
1221 o.longitude = 42.0; 1256 o.longitude = 42.0;
1222 } 1257 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 checkGeolayerdataGeoViewportLo(o.lo); 1308 checkGeolayerdataGeoViewportLo(o.lo);
1274 } 1309 }
1275 buildCounterGeolayerdataGeoViewport--; 1310 buildCounterGeolayerdataGeoViewport--;
1276 } 1311 }
1277 1312
1278 core.int buildCounterGeolayerdataGeo = 0; 1313 core.int buildCounterGeolayerdataGeo = 0;
1279 buildGeolayerdataGeo() { 1314 buildGeolayerdataGeo() {
1280 var o = new api.GeolayerdataGeo(); 1315 var o = new api.GeolayerdataGeo();
1281 buildCounterGeolayerdataGeo++; 1316 buildCounterGeolayerdataGeo++;
1282 if (buildCounterGeolayerdataGeo < 3) { 1317 if (buildCounterGeolayerdataGeo < 3) {
1283 o.boundary = buildUnnamed822(); 1318 o.boundary = buildUnnamed344();
1284 o.cachePolicy = "foo"; 1319 o.cachePolicy = "foo";
1285 o.countryCode = "foo"; 1320 o.countryCode = "foo";
1286 o.latitude = 42.0; 1321 o.latitude = 42.0;
1287 o.longitude = 42.0; 1322 o.longitude = 42.0;
1288 o.mapType = "foo"; 1323 o.mapType = "foo";
1289 o.viewport = buildGeolayerdataGeoViewport(); 1324 o.viewport = buildGeolayerdataGeoViewport();
1290 o.zoom = 42; 1325 o.zoom = 42;
1291 } 1326 }
1292 buildCounterGeolayerdataGeo--; 1327 buildCounterGeolayerdataGeo--;
1293 return o; 1328 return o;
1294 } 1329 }
1295 1330
1296 checkGeolayerdataGeo(api.GeolayerdataGeo o) { 1331 checkGeolayerdataGeo(api.GeolayerdataGeo o) {
1297 buildCounterGeolayerdataGeo++; 1332 buildCounterGeolayerdataGeo++;
1298 if (buildCounterGeolayerdataGeo < 3) { 1333 if (buildCounterGeolayerdataGeo < 3) {
1299 checkUnnamed822(o.boundary); 1334 checkUnnamed344(o.boundary);
1300 unittest.expect(o.cachePolicy, unittest.equals('foo')); 1335 unittest.expect(o.cachePolicy, unittest.equals('foo'));
1301 unittest.expect(o.countryCode, unittest.equals('foo')); 1336 unittest.expect(o.countryCode, unittest.equals('foo'));
1302 unittest.expect(o.latitude, unittest.equals(42.0)); 1337 unittest.expect(o.latitude, unittest.equals(42.0));
1303 unittest.expect(o.longitude, unittest.equals(42.0)); 1338 unittest.expect(o.longitude, unittest.equals(42.0));
1304 unittest.expect(o.mapType, unittest.equals('foo')); 1339 unittest.expect(o.mapType, unittest.equals('foo'));
1305 checkGeolayerdataGeoViewport(o.viewport); 1340 checkGeolayerdataGeoViewport(o.viewport);
1306 unittest.expect(o.zoom, unittest.equals(42)); 1341 unittest.expect(o.zoom, unittest.equals(42));
1307 } 1342 }
1308 buildCounterGeolayerdataGeo--; 1343 buildCounterGeolayerdataGeo--;
1309 } 1344 }
(...skipping 14 matching lines...) Expand all
1324 checkGeolayerdata(api.Geolayerdata o) { 1359 checkGeolayerdata(api.Geolayerdata o) {
1325 buildCounterGeolayerdata++; 1360 buildCounterGeolayerdata++;
1326 if (buildCounterGeolayerdata < 3) { 1361 if (buildCounterGeolayerdata < 3) {
1327 checkGeolayerdataCommon(o.common); 1362 checkGeolayerdataCommon(o.common);
1328 checkGeolayerdataGeo(o.geo); 1363 checkGeolayerdataGeo(o.geo);
1329 unittest.expect(o.kind, unittest.equals('foo')); 1364 unittest.expect(o.kind, unittest.equals('foo'));
1330 } 1365 }
1331 buildCounterGeolayerdata--; 1366 buildCounterGeolayerdata--;
1332 } 1367 }
1333 1368
1334 buildUnnamed823() { 1369 buildUnnamed345() {
1335 var o = new core.List<api.Layersummary>(); 1370 var o = new core.List<api.Layersummary>();
1336 o.add(buildLayersummary()); 1371 o.add(buildLayersummary());
1337 o.add(buildLayersummary()); 1372 o.add(buildLayersummary());
1338 return o; 1373 return o;
1339 } 1374 }
1340 1375
1341 checkUnnamed823(core.List<api.Layersummary> o) { 1376 checkUnnamed345(core.List<api.Layersummary> o) {
1342 unittest.expect(o, unittest.hasLength(2)); 1377 unittest.expect(o, unittest.hasLength(2));
1343 checkLayersummary(o[0]); 1378 checkLayersummary(o[0]);
1344 checkLayersummary(o[1]); 1379 checkLayersummary(o[1]);
1345 } 1380 }
1346 1381
1347 core.int buildCounterLayersummaries = 0; 1382 core.int buildCounterLayersummaries = 0;
1348 buildLayersummaries() { 1383 buildLayersummaries() {
1349 var o = new api.Layersummaries(); 1384 var o = new api.Layersummaries();
1350 buildCounterLayersummaries++; 1385 buildCounterLayersummaries++;
1351 if (buildCounterLayersummaries < 3) { 1386 if (buildCounterLayersummaries < 3) {
1352 o.items = buildUnnamed823(); 1387 o.items = buildUnnamed345();
1353 o.kind = "foo"; 1388 o.kind = "foo";
1354 o.totalItems = 42; 1389 o.totalItems = 42;
1355 } 1390 }
1356 buildCounterLayersummaries--; 1391 buildCounterLayersummaries--;
1357 return o; 1392 return o;
1358 } 1393 }
1359 1394
1360 checkLayersummaries(api.Layersummaries o) { 1395 checkLayersummaries(api.Layersummaries o) {
1361 buildCounterLayersummaries++; 1396 buildCounterLayersummaries++;
1362 if (buildCounterLayersummaries < 3) { 1397 if (buildCounterLayersummaries < 3) {
1363 checkUnnamed823(o.items); 1398 checkUnnamed345(o.items);
1364 unittest.expect(o.kind, unittest.equals('foo')); 1399 unittest.expect(o.kind, unittest.equals('foo'));
1365 unittest.expect(o.totalItems, unittest.equals(42)); 1400 unittest.expect(o.totalItems, unittest.equals(42));
1366 } 1401 }
1367 buildCounterLayersummaries--; 1402 buildCounterLayersummaries--;
1368 } 1403 }
1369 1404
1370 buildUnnamed824() { 1405 buildUnnamed346() {
1371 var o = new core.List<core.String>(); 1406 var o = new core.List<core.String>();
1372 o.add("foo"); 1407 o.add("foo");
1373 o.add("foo"); 1408 o.add("foo");
1374 return o; 1409 return o;
1375 } 1410 }
1376 1411
1377 checkUnnamed824(core.List<core.String> o) { 1412 checkUnnamed346(core.List<core.String> o) {
1378 unittest.expect(o, unittest.hasLength(2)); 1413 unittest.expect(o, unittest.hasLength(2));
1379 unittest.expect(o[0], unittest.equals('foo')); 1414 unittest.expect(o[0], unittest.equals('foo'));
1380 unittest.expect(o[1], unittest.equals('foo')); 1415 unittest.expect(o[1], unittest.equals('foo'));
1381 } 1416 }
1382 1417
1383 core.int buildCounterLayersummary = 0; 1418 core.int buildCounterLayersummary = 0;
1384 buildLayersummary() { 1419 buildLayersummary() {
1385 var o = new api.Layersummary(); 1420 var o = new api.Layersummary();
1386 buildCounterLayersummary++; 1421 buildCounterLayersummary++;
1387 if (buildCounterLayersummary < 3) { 1422 if (buildCounterLayersummary < 3) {
1388 o.annotationCount = 42; 1423 o.annotationCount = 42;
1389 o.annotationTypes = buildUnnamed824(); 1424 o.annotationTypes = buildUnnamed346();
1390 o.annotationsDataLink = "foo"; 1425 o.annotationsDataLink = "foo";
1391 o.annotationsLink = "foo"; 1426 o.annotationsLink = "foo";
1392 o.contentVersion = "foo"; 1427 o.contentVersion = "foo";
1393 o.dataCount = 42; 1428 o.dataCount = 42;
1394 o.id = "foo"; 1429 o.id = "foo";
1395 o.kind = "foo"; 1430 o.kind = "foo";
1396 o.layerId = "foo"; 1431 o.layerId = "foo";
1397 o.selfLink = "foo"; 1432 o.selfLink = "foo";
1398 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 1433 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
1399 o.volumeAnnotationsVersion = "foo"; 1434 o.volumeAnnotationsVersion = "foo";
1400 o.volumeId = "foo"; 1435 o.volumeId = "foo";
1401 } 1436 }
1402 buildCounterLayersummary--; 1437 buildCounterLayersummary--;
1403 return o; 1438 return o;
1404 } 1439 }
1405 1440
1406 checkLayersummary(api.Layersummary o) { 1441 checkLayersummary(api.Layersummary o) {
1407 buildCounterLayersummary++; 1442 buildCounterLayersummary++;
1408 if (buildCounterLayersummary < 3) { 1443 if (buildCounterLayersummary < 3) {
1409 unittest.expect(o.annotationCount, unittest.equals(42)); 1444 unittest.expect(o.annotationCount, unittest.equals(42));
1410 checkUnnamed824(o.annotationTypes); 1445 checkUnnamed346(o.annotationTypes);
1411 unittest.expect(o.annotationsDataLink, unittest.equals('foo')); 1446 unittest.expect(o.annotationsDataLink, unittest.equals('foo'));
1412 unittest.expect(o.annotationsLink, unittest.equals('foo')); 1447 unittest.expect(o.annotationsLink, unittest.equals('foo'));
1413 unittest.expect(o.contentVersion, unittest.equals('foo')); 1448 unittest.expect(o.contentVersion, unittest.equals('foo'));
1414 unittest.expect(o.dataCount, unittest.equals(42)); 1449 unittest.expect(o.dataCount, unittest.equals(42));
1415 unittest.expect(o.id, unittest.equals('foo')); 1450 unittest.expect(o.id, unittest.equals('foo'));
1416 unittest.expect(o.kind, unittest.equals('foo')); 1451 unittest.expect(o.kind, unittest.equals('foo'));
1417 unittest.expect(o.layerId, unittest.equals('foo')); 1452 unittest.expect(o.layerId, unittest.equals('foo'));
1418 unittest.expect(o.selfLink, unittest.equals('foo')); 1453 unittest.expect(o.selfLink, unittest.equals('foo'));
1419 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1454 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1420 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); 1455 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo'));
(...skipping 22 matching lines...) Expand all
1443 if (buildCounterMetadataItems < 3) { 1478 if (buildCounterMetadataItems < 3) {
1444 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1479 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1445 unittest.expect(o.encryptedKey, unittest.equals('foo')); 1480 unittest.expect(o.encryptedKey, unittest.equals('foo'));
1446 unittest.expect(o.language, unittest.equals('foo')); 1481 unittest.expect(o.language, unittest.equals('foo'));
1447 unittest.expect(o.size, unittest.equals('foo')); 1482 unittest.expect(o.size, unittest.equals('foo'));
1448 unittest.expect(o.version, unittest.equals('foo')); 1483 unittest.expect(o.version, unittest.equals('foo'));
1449 } 1484 }
1450 buildCounterMetadataItems--; 1485 buildCounterMetadataItems--;
1451 } 1486 }
1452 1487
1453 buildUnnamed825() { 1488 buildUnnamed347() {
1454 var o = new core.List<api.MetadataItems>(); 1489 var o = new core.List<api.MetadataItems>();
1455 o.add(buildMetadataItems()); 1490 o.add(buildMetadataItems());
1456 o.add(buildMetadataItems()); 1491 o.add(buildMetadataItems());
1457 return o; 1492 return o;
1458 } 1493 }
1459 1494
1460 checkUnnamed825(core.List<api.MetadataItems> o) { 1495 checkUnnamed347(core.List<api.MetadataItems> o) {
1461 unittest.expect(o, unittest.hasLength(2)); 1496 unittest.expect(o, unittest.hasLength(2));
1462 checkMetadataItems(o[0]); 1497 checkMetadataItems(o[0]);
1463 checkMetadataItems(o[1]); 1498 checkMetadataItems(o[1]);
1464 } 1499 }
1465 1500
1466 core.int buildCounterMetadata = 0; 1501 core.int buildCounterMetadata = 0;
1467 buildMetadata() { 1502 buildMetadata() {
1468 var o = new api.Metadata(); 1503 var o = new api.Metadata();
1469 buildCounterMetadata++; 1504 buildCounterMetadata++;
1470 if (buildCounterMetadata < 3) { 1505 if (buildCounterMetadata < 3) {
1471 o.items = buildUnnamed825(); 1506 o.items = buildUnnamed347();
1472 o.kind = "foo"; 1507 o.kind = "foo";
1473 } 1508 }
1474 buildCounterMetadata--; 1509 buildCounterMetadata--;
1475 return o; 1510 return o;
1476 } 1511 }
1477 1512
1478 checkMetadata(api.Metadata o) { 1513 checkMetadata(api.Metadata o) {
1479 buildCounterMetadata++; 1514 buildCounterMetadata++;
1480 if (buildCounterMetadata < 3) { 1515 if (buildCounterMetadata < 3) {
1481 checkUnnamed825(o.items); 1516 checkUnnamed347(o.items);
1482 unittest.expect(o.kind, unittest.equals('foo')); 1517 unittest.expect(o.kind, unittest.equals('foo'));
1483 } 1518 }
1484 buildCounterMetadata--; 1519 buildCounterMetadata--;
1485 } 1520 }
1486 1521
1487 core.int buildCounterOffersItemsItems = 0; 1522 core.int buildCounterOffersItemsItems = 0;
1488 buildOffersItemsItems() { 1523 buildOffersItemsItems() {
1489 var o = new api.OffersItemsItems(); 1524 var o = new api.OffersItemsItems();
1490 buildCounterOffersItemsItems++; 1525 buildCounterOffersItemsItems++;
1491 if (buildCounterOffersItemsItems < 3) { 1526 if (buildCounterOffersItemsItems < 3) {
(...skipping 14 matching lines...) Expand all
1506 unittest.expect(o.author, unittest.equals('foo')); 1541 unittest.expect(o.author, unittest.equals('foo'));
1507 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); 1542 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo'));
1508 unittest.expect(o.coverUrl, unittest.equals('foo')); 1543 unittest.expect(o.coverUrl, unittest.equals('foo'));
1509 unittest.expect(o.description, unittest.equals('foo')); 1544 unittest.expect(o.description, unittest.equals('foo'));
1510 unittest.expect(o.title, unittest.equals('foo')); 1545 unittest.expect(o.title, unittest.equals('foo'));
1511 unittest.expect(o.volumeId, unittest.equals('foo')); 1546 unittest.expect(o.volumeId, unittest.equals('foo'));
1512 } 1547 }
1513 buildCounterOffersItemsItems--; 1548 buildCounterOffersItemsItems--;
1514 } 1549 }
1515 1550
1516 buildUnnamed826() { 1551 buildUnnamed348() {
1517 var o = new core.List<api.OffersItemsItems>(); 1552 var o = new core.List<api.OffersItemsItems>();
1518 o.add(buildOffersItemsItems()); 1553 o.add(buildOffersItemsItems());
1519 o.add(buildOffersItemsItems()); 1554 o.add(buildOffersItemsItems());
1520 return o; 1555 return o;
1521 } 1556 }
1522 1557
1523 checkUnnamed826(core.List<api.OffersItemsItems> o) { 1558 checkUnnamed348(core.List<api.OffersItemsItems> o) {
1524 unittest.expect(o, unittest.hasLength(2)); 1559 unittest.expect(o, unittest.hasLength(2));
1525 checkOffersItemsItems(o[0]); 1560 checkOffersItemsItems(o[0]);
1526 checkOffersItemsItems(o[1]); 1561 checkOffersItemsItems(o[1]);
1527 } 1562 }
1528 1563
1529 core.int buildCounterOffersItems = 0; 1564 core.int buildCounterOffersItems = 0;
1530 buildOffersItems() { 1565 buildOffersItems() {
1531 var o = new api.OffersItems(); 1566 var o = new api.OffersItems();
1532 buildCounterOffersItems++; 1567 buildCounterOffersItems++;
1533 if (buildCounterOffersItems < 3) { 1568 if (buildCounterOffersItems < 3) {
1534 o.artUrl = "foo"; 1569 o.artUrl = "foo";
1535 o.gservicesKey = "foo"; 1570 o.gservicesKey = "foo";
1536 o.id = "foo"; 1571 o.id = "foo";
1537 o.items = buildUnnamed826(); 1572 o.items = buildUnnamed348();
1538 } 1573 }
1539 buildCounterOffersItems--; 1574 buildCounterOffersItems--;
1540 return o; 1575 return o;
1541 } 1576 }
1542 1577
1543 checkOffersItems(api.OffersItems o) { 1578 checkOffersItems(api.OffersItems o) {
1544 buildCounterOffersItems++; 1579 buildCounterOffersItems++;
1545 if (buildCounterOffersItems < 3) { 1580 if (buildCounterOffersItems < 3) {
1546 unittest.expect(o.artUrl, unittest.equals('foo')); 1581 unittest.expect(o.artUrl, unittest.equals('foo'));
1547 unittest.expect(o.gservicesKey, unittest.equals('foo')); 1582 unittest.expect(o.gservicesKey, unittest.equals('foo'));
1548 unittest.expect(o.id, unittest.equals('foo')); 1583 unittest.expect(o.id, unittest.equals('foo'));
1549 checkUnnamed826(o.items); 1584 checkUnnamed348(o.items);
1550 } 1585 }
1551 buildCounterOffersItems--; 1586 buildCounterOffersItems--;
1552 } 1587 }
1553 1588
1554 buildUnnamed827() { 1589 buildUnnamed349() {
1555 var o = new core.List<api.OffersItems>(); 1590 var o = new core.List<api.OffersItems>();
1556 o.add(buildOffersItems()); 1591 o.add(buildOffersItems());
1557 o.add(buildOffersItems()); 1592 o.add(buildOffersItems());
1558 return o; 1593 return o;
1559 } 1594 }
1560 1595
1561 checkUnnamed827(core.List<api.OffersItems> o) { 1596 checkUnnamed349(core.List<api.OffersItems> o) {
1562 unittest.expect(o, unittest.hasLength(2)); 1597 unittest.expect(o, unittest.hasLength(2));
1563 checkOffersItems(o[0]); 1598 checkOffersItems(o[0]);
1564 checkOffersItems(o[1]); 1599 checkOffersItems(o[1]);
1565 } 1600 }
1566 1601
1567 core.int buildCounterOffers = 0; 1602 core.int buildCounterOffers = 0;
1568 buildOffers() { 1603 buildOffers() {
1569 var o = new api.Offers(); 1604 var o = new api.Offers();
1570 buildCounterOffers++; 1605 buildCounterOffers++;
1571 if (buildCounterOffers < 3) { 1606 if (buildCounterOffers < 3) {
1572 o.items = buildUnnamed827(); 1607 o.items = buildUnnamed349();
1573 o.kind = "foo"; 1608 o.kind = "foo";
1574 } 1609 }
1575 buildCounterOffers--; 1610 buildCounterOffers--;
1576 return o; 1611 return o;
1577 } 1612 }
1578 1613
1579 checkOffers(api.Offers o) { 1614 checkOffers(api.Offers o) {
1580 buildCounterOffers++; 1615 buildCounterOffers++;
1581 if (buildCounterOffers < 3) { 1616 if (buildCounterOffers < 3) {
1582 checkUnnamed827(o.items); 1617 checkUnnamed349(o.items);
1583 unittest.expect(o.kind, unittest.equals('foo')); 1618 unittest.expect(o.kind, unittest.equals('foo'));
1584 } 1619 }
1585 buildCounterOffers--; 1620 buildCounterOffers--;
1586 } 1621 }
1587 1622
1588 core.int buildCounterReadingPosition = 0; 1623 core.int buildCounterReadingPosition = 0;
1589 buildReadingPosition() { 1624 buildReadingPosition() {
1590 var o = new api.ReadingPosition(); 1625 var o = new api.ReadingPosition();
1591 buildCounterReadingPosition++; 1626 buildCounterReadingPosition++;
1592 if (buildCounterReadingPosition < 3) { 1627 if (buildCounterReadingPosition < 3) {
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 1900
1866 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { 1901 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) {
1867 buildCounterVolumeLayerInfoLayers++; 1902 buildCounterVolumeLayerInfoLayers++;
1868 if (buildCounterVolumeLayerInfoLayers < 3) { 1903 if (buildCounterVolumeLayerInfoLayers < 3) {
1869 unittest.expect(o.layerId, unittest.equals('foo')); 1904 unittest.expect(o.layerId, unittest.equals('foo'));
1870 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); 1905 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo'));
1871 } 1906 }
1872 buildCounterVolumeLayerInfoLayers--; 1907 buildCounterVolumeLayerInfoLayers--;
1873 } 1908 }
1874 1909
1875 buildUnnamed828() { 1910 buildUnnamed350() {
1876 var o = new core.List<api.VolumeLayerInfoLayers>(); 1911 var o = new core.List<api.VolumeLayerInfoLayers>();
1877 o.add(buildVolumeLayerInfoLayers()); 1912 o.add(buildVolumeLayerInfoLayers());
1878 o.add(buildVolumeLayerInfoLayers()); 1913 o.add(buildVolumeLayerInfoLayers());
1879 return o; 1914 return o;
1880 } 1915 }
1881 1916
1882 checkUnnamed828(core.List<api.VolumeLayerInfoLayers> o) { 1917 checkUnnamed350(core.List<api.VolumeLayerInfoLayers> o) {
1883 unittest.expect(o, unittest.hasLength(2)); 1918 unittest.expect(o, unittest.hasLength(2));
1884 checkVolumeLayerInfoLayers(o[0]); 1919 checkVolumeLayerInfoLayers(o[0]);
1885 checkVolumeLayerInfoLayers(o[1]); 1920 checkVolumeLayerInfoLayers(o[1]);
1886 } 1921 }
1887 1922
1888 core.int buildCounterVolumeLayerInfo = 0; 1923 core.int buildCounterVolumeLayerInfo = 0;
1889 buildVolumeLayerInfo() { 1924 buildVolumeLayerInfo() {
1890 var o = new api.VolumeLayerInfo(); 1925 var o = new api.VolumeLayerInfo();
1891 buildCounterVolumeLayerInfo++; 1926 buildCounterVolumeLayerInfo++;
1892 if (buildCounterVolumeLayerInfo < 3) { 1927 if (buildCounterVolumeLayerInfo < 3) {
1893 o.layers = buildUnnamed828(); 1928 o.layers = buildUnnamed350();
1894 } 1929 }
1895 buildCounterVolumeLayerInfo--; 1930 buildCounterVolumeLayerInfo--;
1896 return o; 1931 return o;
1897 } 1932 }
1898 1933
1899 checkVolumeLayerInfo(api.VolumeLayerInfo o) { 1934 checkVolumeLayerInfo(api.VolumeLayerInfo o) {
1900 buildCounterVolumeLayerInfo++; 1935 buildCounterVolumeLayerInfo++;
1901 if (buildCounterVolumeLayerInfo < 3) { 1936 if (buildCounterVolumeLayerInfo < 3) {
1902 checkUnnamed828(o.layers); 1937 checkUnnamed350(o.layers);
1903 } 1938 }
1904 buildCounterVolumeLayerInfo--; 1939 buildCounterVolumeLayerInfo--;
1905 } 1940 }
1906 1941
1907 core.int buildCounterVolumeRecommendedInfo = 0; 1942 core.int buildCounterVolumeRecommendedInfo = 0;
1908 buildVolumeRecommendedInfo() { 1943 buildVolumeRecommendedInfo() {
1909 var o = new api.VolumeRecommendedInfo(); 1944 var o = new api.VolumeRecommendedInfo();
1910 buildCounterVolumeRecommendedInfo++; 1945 buildCounterVolumeRecommendedInfo++;
1911 if (buildCounterVolumeRecommendedInfo < 3) { 1946 if (buildCounterVolumeRecommendedInfo < 3) {
1912 o.explanation = "foo"; 1947 o.explanation = "foo";
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 buildCounterVolumeSaleInfoOffers++; 2060 buildCounterVolumeSaleInfoOffers++;
2026 if (buildCounterVolumeSaleInfoOffers < 3) { 2061 if (buildCounterVolumeSaleInfoOffers < 3) {
2027 unittest.expect(o.finskyOfferType, unittest.equals(42)); 2062 unittest.expect(o.finskyOfferType, unittest.equals(42));
2028 checkVolumeSaleInfoOffersListPrice(o.listPrice); 2063 checkVolumeSaleInfoOffersListPrice(o.listPrice);
2029 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); 2064 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration);
2030 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); 2065 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice);
2031 } 2066 }
2032 buildCounterVolumeSaleInfoOffers--; 2067 buildCounterVolumeSaleInfoOffers--;
2033 } 2068 }
2034 2069
2035 buildUnnamed829() { 2070 buildUnnamed351() {
2036 var o = new core.List<api.VolumeSaleInfoOffers>(); 2071 var o = new core.List<api.VolumeSaleInfoOffers>();
2037 o.add(buildVolumeSaleInfoOffers()); 2072 o.add(buildVolumeSaleInfoOffers());
2038 o.add(buildVolumeSaleInfoOffers()); 2073 o.add(buildVolumeSaleInfoOffers());
2039 return o; 2074 return o;
2040 } 2075 }
2041 2076
2042 checkUnnamed829(core.List<api.VolumeSaleInfoOffers> o) { 2077 checkUnnamed351(core.List<api.VolumeSaleInfoOffers> o) {
2043 unittest.expect(o, unittest.hasLength(2)); 2078 unittest.expect(o, unittest.hasLength(2));
2044 checkVolumeSaleInfoOffers(o[0]); 2079 checkVolumeSaleInfoOffers(o[0]);
2045 checkVolumeSaleInfoOffers(o[1]); 2080 checkVolumeSaleInfoOffers(o[1]);
2046 } 2081 }
2047 2082
2048 core.int buildCounterVolumeSaleInfoRetailPrice = 0; 2083 core.int buildCounterVolumeSaleInfoRetailPrice = 0;
2049 buildVolumeSaleInfoRetailPrice() { 2084 buildVolumeSaleInfoRetailPrice() {
2050 var o = new api.VolumeSaleInfoRetailPrice(); 2085 var o = new api.VolumeSaleInfoRetailPrice();
2051 buildCounterVolumeSaleInfoRetailPrice++; 2086 buildCounterVolumeSaleInfoRetailPrice++;
2052 if (buildCounterVolumeSaleInfoRetailPrice < 3) { 2087 if (buildCounterVolumeSaleInfoRetailPrice < 3) {
(...skipping 15 matching lines...) Expand all
2068 2103
2069 core.int buildCounterVolumeSaleInfo = 0; 2104 core.int buildCounterVolumeSaleInfo = 0;
2070 buildVolumeSaleInfo() { 2105 buildVolumeSaleInfo() {
2071 var o = new api.VolumeSaleInfo(); 2106 var o = new api.VolumeSaleInfo();
2072 buildCounterVolumeSaleInfo++; 2107 buildCounterVolumeSaleInfo++;
2073 if (buildCounterVolumeSaleInfo < 3) { 2108 if (buildCounterVolumeSaleInfo < 3) {
2074 o.buyLink = "foo"; 2109 o.buyLink = "foo";
2075 o.country = "foo"; 2110 o.country = "foo";
2076 o.isEbook = true; 2111 o.isEbook = true;
2077 o.listPrice = buildVolumeSaleInfoListPrice(); 2112 o.listPrice = buildVolumeSaleInfoListPrice();
2078 o.offers = buildUnnamed829(); 2113 o.offers = buildUnnamed351();
2079 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); 2114 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02");
2080 o.retailPrice = buildVolumeSaleInfoRetailPrice(); 2115 o.retailPrice = buildVolumeSaleInfoRetailPrice();
2081 o.saleability = "foo"; 2116 o.saleability = "foo";
2082 } 2117 }
2083 buildCounterVolumeSaleInfo--; 2118 buildCounterVolumeSaleInfo--;
2084 return o; 2119 return o;
2085 } 2120 }
2086 2121
2087 checkVolumeSaleInfo(api.VolumeSaleInfo o) { 2122 checkVolumeSaleInfo(api.VolumeSaleInfo o) {
2088 buildCounterVolumeSaleInfo++; 2123 buildCounterVolumeSaleInfo++;
2089 if (buildCounterVolumeSaleInfo < 3) { 2124 if (buildCounterVolumeSaleInfo < 3) {
2090 unittest.expect(o.buyLink, unittest.equals('foo')); 2125 unittest.expect(o.buyLink, unittest.equals('foo'));
2091 unittest.expect(o.country, unittest.equals('foo')); 2126 unittest.expect(o.country, unittest.equals('foo'));
2092 unittest.expect(o.isEbook, unittest.isTrue); 2127 unittest.expect(o.isEbook, unittest.isTrue);
2093 checkVolumeSaleInfoListPrice(o.listPrice); 2128 checkVolumeSaleInfoListPrice(o.listPrice);
2094 checkUnnamed829(o.offers); 2129 checkUnnamed351(o.offers);
2095 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2 7T14:01:02"))); 2130 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2 7T14:01:02")));
2096 checkVolumeSaleInfoRetailPrice(o.retailPrice); 2131 checkVolumeSaleInfoRetailPrice(o.retailPrice);
2097 unittest.expect(o.saleability, unittest.equals('foo')); 2132 unittest.expect(o.saleability, unittest.equals('foo'));
2098 } 2133 }
2099 buildCounterVolumeSaleInfo--; 2134 buildCounterVolumeSaleInfo--;
2100 } 2135 }
2101 2136
2102 core.int buildCounterVolumeSearchInfo = 0; 2137 core.int buildCounterVolumeSearchInfo = 0;
2103 buildVolumeSearchInfo() { 2138 buildVolumeSearchInfo() {
2104 var o = new api.VolumeSearchInfo(); 2139 var o = new api.VolumeSearchInfo();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 checkReadingPosition(o.readingPosition); 2250 checkReadingPosition(o.readingPosition);
2216 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); 2251 checkVolumeUserInfoRentalPeriod(o.rentalPeriod);
2217 unittest.expect(o.rentalState, unittest.equals('foo')); 2252 unittest.expect(o.rentalState, unittest.equals('foo'));
2218 checkReview(o.review); 2253 checkReview(o.review);
2219 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 2254 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
2220 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); 2255 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo);
2221 } 2256 }
2222 buildCounterVolumeUserInfo--; 2257 buildCounterVolumeUserInfo--;
2223 } 2258 }
2224 2259
2225 buildUnnamed830() { 2260 buildUnnamed352() {
2226 var o = new core.List<core.String>(); 2261 var o = new core.List<core.String>();
2227 o.add("foo"); 2262 o.add("foo");
2228 o.add("foo"); 2263 o.add("foo");
2229 return o; 2264 return o;
2230 } 2265 }
2231 2266
2232 checkUnnamed830(core.List<core.String> o) { 2267 checkUnnamed352(core.List<core.String> o) {
2233 unittest.expect(o, unittest.hasLength(2)); 2268 unittest.expect(o, unittest.hasLength(2));
2234 unittest.expect(o[0], unittest.equals('foo')); 2269 unittest.expect(o[0], unittest.equals('foo'));
2235 unittest.expect(o[1], unittest.equals('foo')); 2270 unittest.expect(o[1], unittest.equals('foo'));
2236 } 2271 }
2237 2272
2238 buildUnnamed831() { 2273 buildUnnamed353() {
2239 var o = new core.List<core.String>(); 2274 var o = new core.List<core.String>();
2240 o.add("foo"); 2275 o.add("foo");
2241 o.add("foo"); 2276 o.add("foo");
2242 return o; 2277 return o;
2243 } 2278 }
2244 2279
2245 checkUnnamed831(core.List<core.String> o) { 2280 checkUnnamed353(core.List<core.String> o) {
2246 unittest.expect(o, unittest.hasLength(2)); 2281 unittest.expect(o, unittest.hasLength(2));
2247 unittest.expect(o[0], unittest.equals('foo')); 2282 unittest.expect(o[0], unittest.equals('foo'));
2248 unittest.expect(o[1], unittest.equals('foo')); 2283 unittest.expect(o[1], unittest.equals('foo'));
2249 } 2284 }
2250 2285
2251 core.int buildCounterVolumeVolumeInfoDimensions = 0; 2286 core.int buildCounterVolumeVolumeInfoDimensions = 0;
2252 buildVolumeVolumeInfoDimensions() { 2287 buildVolumeVolumeInfoDimensions() {
2253 var o = new api.VolumeVolumeInfoDimensions(); 2288 var o = new api.VolumeVolumeInfoDimensions();
2254 buildCounterVolumeVolumeInfoDimensions++; 2289 buildCounterVolumeVolumeInfoDimensions++;
2255 if (buildCounterVolumeVolumeInfoDimensions < 3) { 2290 if (buildCounterVolumeVolumeInfoDimensions < 3) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 2349
2315 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers o) { 2350 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers o) {
2316 buildCounterVolumeVolumeInfoIndustryIdentifiers++; 2351 buildCounterVolumeVolumeInfoIndustryIdentifiers++;
2317 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { 2352 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) {
2318 unittest.expect(o.identifier, unittest.equals('foo')); 2353 unittest.expect(o.identifier, unittest.equals('foo'));
2319 unittest.expect(o.type, unittest.equals('foo')); 2354 unittest.expect(o.type, unittest.equals('foo'));
2320 } 2355 }
2321 buildCounterVolumeVolumeInfoIndustryIdentifiers--; 2356 buildCounterVolumeVolumeInfoIndustryIdentifiers--;
2322 } 2357 }
2323 2358
2324 buildUnnamed832() { 2359 buildUnnamed354() {
2325 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); 2360 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>();
2326 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); 2361 o.add(buildVolumeVolumeInfoIndustryIdentifiers());
2327 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); 2362 o.add(buildVolumeVolumeInfoIndustryIdentifiers());
2328 return o; 2363 return o;
2329 } 2364 }
2330 2365
2331 checkUnnamed832(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { 2366 checkUnnamed354(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) {
2332 unittest.expect(o, unittest.hasLength(2)); 2367 unittest.expect(o, unittest.hasLength(2));
2333 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); 2368 checkVolumeVolumeInfoIndustryIdentifiers(o[0]);
2334 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); 2369 checkVolumeVolumeInfoIndustryIdentifiers(o[1]);
2335 } 2370 }
2336 2371
2337 core.int buildCounterVolumeVolumeInfo = 0; 2372 core.int buildCounterVolumeVolumeInfo = 0;
2338 buildVolumeVolumeInfo() { 2373 buildVolumeVolumeInfo() {
2339 var o = new api.VolumeVolumeInfo(); 2374 var o = new api.VolumeVolumeInfo();
2340 buildCounterVolumeVolumeInfo++; 2375 buildCounterVolumeVolumeInfo++;
2341 if (buildCounterVolumeVolumeInfo < 3) { 2376 if (buildCounterVolumeVolumeInfo < 3) {
2342 o.authors = buildUnnamed830(); 2377 o.authors = buildUnnamed352();
2343 o.averageRating = 42.0; 2378 o.averageRating = 42.0;
2344 o.canonicalVolumeLink = "foo"; 2379 o.canonicalVolumeLink = "foo";
2345 o.categories = buildUnnamed831(); 2380 o.categories = buildUnnamed353();
2346 o.contentVersion = "foo"; 2381 o.contentVersion = "foo";
2347 o.description = "foo"; 2382 o.description = "foo";
2348 o.dimensions = buildVolumeVolumeInfoDimensions(); 2383 o.dimensions = buildVolumeVolumeInfoDimensions();
2349 o.imageLinks = buildVolumeVolumeInfoImageLinks(); 2384 o.imageLinks = buildVolumeVolumeInfoImageLinks();
2350 o.industryIdentifiers = buildUnnamed832(); 2385 o.industryIdentifiers = buildUnnamed354();
2351 o.infoLink = "foo"; 2386 o.infoLink = "foo";
2352 o.language = "foo"; 2387 o.language = "foo";
2353 o.mainCategory = "foo"; 2388 o.mainCategory = "foo";
2354 o.pageCount = 42; 2389 o.pageCount = 42;
2355 o.previewLink = "foo"; 2390 o.previewLink = "foo";
2356 o.printType = "foo"; 2391 o.printType = "foo";
2357 o.printedPageCount = 42; 2392 o.printedPageCount = 42;
2358 o.publishedDate = "foo"; 2393 o.publishedDate = "foo";
2359 o.publisher = "foo"; 2394 o.publisher = "foo";
2360 o.ratingsCount = 42; 2395 o.ratingsCount = 42;
2361 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2396 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2362 o.samplePageCount = 42; 2397 o.samplePageCount = 42;
2363 o.subtitle = "foo"; 2398 o.subtitle = "foo";
2364 o.title = "foo"; 2399 o.title = "foo";
2365 } 2400 }
2366 buildCounterVolumeVolumeInfo--; 2401 buildCounterVolumeVolumeInfo--;
2367 return o; 2402 return o;
2368 } 2403 }
2369 2404
2370 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { 2405 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) {
2371 buildCounterVolumeVolumeInfo++; 2406 buildCounterVolumeVolumeInfo++;
2372 if (buildCounterVolumeVolumeInfo < 3) { 2407 if (buildCounterVolumeVolumeInfo < 3) {
2373 checkUnnamed830(o.authors); 2408 checkUnnamed352(o.authors);
2374 unittest.expect(o.averageRating, unittest.equals(42.0)); 2409 unittest.expect(o.averageRating, unittest.equals(42.0));
2375 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); 2410 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo'));
2376 checkUnnamed831(o.categories); 2411 checkUnnamed353(o.categories);
2377 unittest.expect(o.contentVersion, unittest.equals('foo')); 2412 unittest.expect(o.contentVersion, unittest.equals('foo'));
2378 unittest.expect(o.description, unittest.equals('foo')); 2413 unittest.expect(o.description, unittest.equals('foo'));
2379 checkVolumeVolumeInfoDimensions(o.dimensions); 2414 checkVolumeVolumeInfoDimensions(o.dimensions);
2380 checkVolumeVolumeInfoImageLinks(o.imageLinks); 2415 checkVolumeVolumeInfoImageLinks(o.imageLinks);
2381 checkUnnamed832(o.industryIdentifiers); 2416 checkUnnamed354(o.industryIdentifiers);
2382 unittest.expect(o.infoLink, unittest.equals('foo')); 2417 unittest.expect(o.infoLink, unittest.equals('foo'));
2383 unittest.expect(o.language, unittest.equals('foo')); 2418 unittest.expect(o.language, unittest.equals('foo'));
2384 unittest.expect(o.mainCategory, unittest.equals('foo')); 2419 unittest.expect(o.mainCategory, unittest.equals('foo'));
2385 unittest.expect(o.pageCount, unittest.equals(42)); 2420 unittest.expect(o.pageCount, unittest.equals(42));
2386 unittest.expect(o.previewLink, unittest.equals('foo')); 2421 unittest.expect(o.previewLink, unittest.equals('foo'));
2387 unittest.expect(o.printType, unittest.equals('foo')); 2422 unittest.expect(o.printType, unittest.equals('foo'));
2388 unittest.expect(o.printedPageCount, unittest.equals(42)); 2423 unittest.expect(o.printedPageCount, unittest.equals(42));
2389 unittest.expect(o.publishedDate, unittest.equals('foo')); 2424 unittest.expect(o.publishedDate, unittest.equals('foo'));
2390 unittest.expect(o.publisher, unittest.equals('foo')); 2425 unittest.expect(o.publisher, unittest.equals('foo'));
2391 unittest.expect(o.ratingsCount, unittest.equals(42)); 2426 unittest.expect(o.ratingsCount, unittest.equals(42));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 checkVolumeRecommendedInfo(o.recommendedInfo); 2464 checkVolumeRecommendedInfo(o.recommendedInfo);
2430 checkVolumeSaleInfo(o.saleInfo); 2465 checkVolumeSaleInfo(o.saleInfo);
2431 checkVolumeSearchInfo(o.searchInfo); 2466 checkVolumeSearchInfo(o.searchInfo);
2432 unittest.expect(o.selfLink, unittest.equals('foo')); 2467 unittest.expect(o.selfLink, unittest.equals('foo'));
2433 checkVolumeUserInfo(o.userInfo); 2468 checkVolumeUserInfo(o.userInfo);
2434 checkVolumeVolumeInfo(o.volumeInfo); 2469 checkVolumeVolumeInfo(o.volumeInfo);
2435 } 2470 }
2436 buildCounterVolume--; 2471 buildCounterVolume--;
2437 } 2472 }
2438 2473
2439 buildUnnamed833() { 2474 buildUnnamed355() {
2440 var o = new core.List<api.Volume>(); 2475 var o = new core.List<api.Volume>();
2441 o.add(buildVolume()); 2476 o.add(buildVolume());
2442 o.add(buildVolume()); 2477 o.add(buildVolume());
2443 return o; 2478 return o;
2444 } 2479 }
2445 2480
2446 checkUnnamed833(core.List<api.Volume> o) { 2481 checkUnnamed355(core.List<api.Volume> o) {
2447 unittest.expect(o, unittest.hasLength(2)); 2482 unittest.expect(o, unittest.hasLength(2));
2448 checkVolume(o[0]); 2483 checkVolume(o[0]);
2449 checkVolume(o[1]); 2484 checkVolume(o[1]);
2450 } 2485 }
2451 2486
2452 core.int buildCounterVolume2 = 0; 2487 core.int buildCounterVolume2 = 0;
2453 buildVolume2() { 2488 buildVolume2() {
2454 var o = new api.Volume2(); 2489 var o = new api.Volume2();
2455 buildCounterVolume2++; 2490 buildCounterVolume2++;
2456 if (buildCounterVolume2 < 3) { 2491 if (buildCounterVolume2 < 3) {
2457 o.items = buildUnnamed833(); 2492 o.items = buildUnnamed355();
2458 o.kind = "foo"; 2493 o.kind = "foo";
2459 o.nextPageToken = "foo"; 2494 o.nextPageToken = "foo";
2460 } 2495 }
2461 buildCounterVolume2--; 2496 buildCounterVolume2--;
2462 return o; 2497 return o;
2463 } 2498 }
2464 2499
2465 checkVolume2(api.Volume2 o) { 2500 checkVolume2(api.Volume2 o) {
2466 buildCounterVolume2++; 2501 buildCounterVolume2++;
2467 if (buildCounterVolume2 < 3) { 2502 if (buildCounterVolume2 < 3) {
2468 checkUnnamed833(o.items); 2503 checkUnnamed355(o.items);
2469 unittest.expect(o.kind, unittest.equals('foo')); 2504 unittest.expect(o.kind, unittest.equals('foo'));
2470 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2505 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2471 } 2506 }
2472 buildCounterVolume2--; 2507 buildCounterVolume2--;
2473 } 2508 }
2474 2509
2475 core.int buildCounterVolumeannotationContentRanges = 0; 2510 core.int buildCounterVolumeannotationContentRanges = 0;
2476 buildVolumeannotationContentRanges() { 2511 buildVolumeannotationContentRanges() {
2477 var o = new api.VolumeannotationContentRanges(); 2512 var o = new api.VolumeannotationContentRanges();
2478 buildCounterVolumeannotationContentRanges++; 2513 buildCounterVolumeannotationContentRanges++;
(...skipping 11 matching lines...) Expand all
2490 buildCounterVolumeannotationContentRanges++; 2525 buildCounterVolumeannotationContentRanges++;
2491 if (buildCounterVolumeannotationContentRanges < 3) { 2526 if (buildCounterVolumeannotationContentRanges < 3) {
2492 checkBooksAnnotationsRange(o.cfiRange); 2527 checkBooksAnnotationsRange(o.cfiRange);
2493 unittest.expect(o.contentVersion, unittest.equals('foo')); 2528 unittest.expect(o.contentVersion, unittest.equals('foo'));
2494 checkBooksAnnotationsRange(o.gbImageRange); 2529 checkBooksAnnotationsRange(o.gbImageRange);
2495 checkBooksAnnotationsRange(o.gbTextRange); 2530 checkBooksAnnotationsRange(o.gbTextRange);
2496 } 2531 }
2497 buildCounterVolumeannotationContentRanges--; 2532 buildCounterVolumeannotationContentRanges--;
2498 } 2533 }
2499 2534
2500 buildUnnamed834() { 2535 buildUnnamed356() {
2501 var o = new core.List<core.String>(); 2536 var o = new core.List<core.String>();
2502 o.add("foo"); 2537 o.add("foo");
2503 o.add("foo"); 2538 o.add("foo");
2504 return o; 2539 return o;
2505 } 2540 }
2506 2541
2507 checkUnnamed834(core.List<core.String> o) { 2542 checkUnnamed356(core.List<core.String> o) {
2508 unittest.expect(o, unittest.hasLength(2)); 2543 unittest.expect(o, unittest.hasLength(2));
2509 unittest.expect(o[0], unittest.equals('foo')); 2544 unittest.expect(o[0], unittest.equals('foo'));
2510 unittest.expect(o[1], unittest.equals('foo')); 2545 unittest.expect(o[1], unittest.equals('foo'));
2511 } 2546 }
2512 2547
2513 core.int buildCounterVolumeannotation = 0; 2548 core.int buildCounterVolumeannotation = 0;
2514 buildVolumeannotation() { 2549 buildVolumeannotation() {
2515 var o = new api.Volumeannotation(); 2550 var o = new api.Volumeannotation();
2516 buildCounterVolumeannotation++; 2551 buildCounterVolumeannotation++;
2517 if (buildCounterVolumeannotation < 3) { 2552 if (buildCounterVolumeannotation < 3) {
2518 o.annotationDataId = "foo"; 2553 o.annotationDataId = "foo";
2519 o.annotationDataLink = "foo"; 2554 o.annotationDataLink = "foo";
2520 o.annotationType = "foo"; 2555 o.annotationType = "foo";
2521 o.contentRanges = buildVolumeannotationContentRanges(); 2556 o.contentRanges = buildVolumeannotationContentRanges();
2522 o.data = "foo"; 2557 o.data = "foo";
2523 o.deleted = true; 2558 o.deleted = true;
2524 o.id = "foo"; 2559 o.id = "foo";
2525 o.kind = "foo"; 2560 o.kind = "foo";
2526 o.layerId = "foo"; 2561 o.layerId = "foo";
2527 o.pageIds = buildUnnamed834(); 2562 o.pageIds = buildUnnamed356();
2528 o.selectedText = "foo"; 2563 o.selectedText = "foo";
2529 o.selfLink = "foo"; 2564 o.selfLink = "foo";
2530 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 2565 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
2531 o.volumeId = "foo"; 2566 o.volumeId = "foo";
2532 } 2567 }
2533 buildCounterVolumeannotation--; 2568 buildCounterVolumeannotation--;
2534 return o; 2569 return o;
2535 } 2570 }
2536 2571
2537 checkVolumeannotation(api.Volumeannotation o) { 2572 checkVolumeannotation(api.Volumeannotation o) {
2538 buildCounterVolumeannotation++; 2573 buildCounterVolumeannotation++;
2539 if (buildCounterVolumeannotation < 3) { 2574 if (buildCounterVolumeannotation < 3) {
2540 unittest.expect(o.annotationDataId, unittest.equals('foo')); 2575 unittest.expect(o.annotationDataId, unittest.equals('foo'));
2541 unittest.expect(o.annotationDataLink, unittest.equals('foo')); 2576 unittest.expect(o.annotationDataLink, unittest.equals('foo'));
2542 unittest.expect(o.annotationType, unittest.equals('foo')); 2577 unittest.expect(o.annotationType, unittest.equals('foo'));
2543 checkVolumeannotationContentRanges(o.contentRanges); 2578 checkVolumeannotationContentRanges(o.contentRanges);
2544 unittest.expect(o.data, unittest.equals('foo')); 2579 unittest.expect(o.data, unittest.equals('foo'));
2545 unittest.expect(o.deleted, unittest.isTrue); 2580 unittest.expect(o.deleted, unittest.isTrue);
2546 unittest.expect(o.id, unittest.equals('foo')); 2581 unittest.expect(o.id, unittest.equals('foo'));
2547 unittest.expect(o.kind, unittest.equals('foo')); 2582 unittest.expect(o.kind, unittest.equals('foo'));
2548 unittest.expect(o.layerId, unittest.equals('foo')); 2583 unittest.expect(o.layerId, unittest.equals('foo'));
2549 checkUnnamed834(o.pageIds); 2584 checkUnnamed356(o.pageIds);
2550 unittest.expect(o.selectedText, unittest.equals('foo')); 2585 unittest.expect(o.selectedText, unittest.equals('foo'));
2551 unittest.expect(o.selfLink, unittest.equals('foo')); 2586 unittest.expect(o.selfLink, unittest.equals('foo'));
2552 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 2587 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
2553 unittest.expect(o.volumeId, unittest.equals('foo')); 2588 unittest.expect(o.volumeId, unittest.equals('foo'));
2554 } 2589 }
2555 buildCounterVolumeannotation--; 2590 buildCounterVolumeannotation--;
2556 } 2591 }
2557 2592
2558 buildUnnamed835() { 2593 buildUnnamed357() {
2559 var o = new core.List<api.Volumeannotation>(); 2594 var o = new core.List<api.Volumeannotation>();
2560 o.add(buildVolumeannotation()); 2595 o.add(buildVolumeannotation());
2561 o.add(buildVolumeannotation()); 2596 o.add(buildVolumeannotation());
2562 return o; 2597 return o;
2563 } 2598 }
2564 2599
2565 checkUnnamed835(core.List<api.Volumeannotation> o) { 2600 checkUnnamed357(core.List<api.Volumeannotation> o) {
2566 unittest.expect(o, unittest.hasLength(2)); 2601 unittest.expect(o, unittest.hasLength(2));
2567 checkVolumeannotation(o[0]); 2602 checkVolumeannotation(o[0]);
2568 checkVolumeannotation(o[1]); 2603 checkVolumeannotation(o[1]);
2569 } 2604 }
2570 2605
2571 core.int buildCounterVolumeannotations = 0; 2606 core.int buildCounterVolumeannotations = 0;
2572 buildVolumeannotations() { 2607 buildVolumeannotations() {
2573 var o = new api.Volumeannotations(); 2608 var o = new api.Volumeannotations();
2574 buildCounterVolumeannotations++; 2609 buildCounterVolumeannotations++;
2575 if (buildCounterVolumeannotations < 3) { 2610 if (buildCounterVolumeannotations < 3) {
2576 o.items = buildUnnamed835(); 2611 o.items = buildUnnamed357();
2577 o.kind = "foo"; 2612 o.kind = "foo";
2578 o.nextPageToken = "foo"; 2613 o.nextPageToken = "foo";
2579 o.totalItems = 42; 2614 o.totalItems = 42;
2580 o.version = "foo"; 2615 o.version = "foo";
2581 } 2616 }
2582 buildCounterVolumeannotations--; 2617 buildCounterVolumeannotations--;
2583 return o; 2618 return o;
2584 } 2619 }
2585 2620
2586 checkVolumeannotations(api.Volumeannotations o) { 2621 checkVolumeannotations(api.Volumeannotations o) {
2587 buildCounterVolumeannotations++; 2622 buildCounterVolumeannotations++;
2588 if (buildCounterVolumeannotations < 3) { 2623 if (buildCounterVolumeannotations < 3) {
2589 checkUnnamed835(o.items); 2624 checkUnnamed357(o.items);
2590 unittest.expect(o.kind, unittest.equals('foo')); 2625 unittest.expect(o.kind, unittest.equals('foo'));
2591 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2626 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2592 unittest.expect(o.totalItems, unittest.equals(42)); 2627 unittest.expect(o.totalItems, unittest.equals(42));
2593 unittest.expect(o.version, unittest.equals('foo')); 2628 unittest.expect(o.version, unittest.equals('foo'));
2594 } 2629 }
2595 buildCounterVolumeannotations--; 2630 buildCounterVolumeannotations--;
2596 } 2631 }
2597 2632
2598 buildUnnamed836() { 2633 buildUnnamed358() {
2599 var o = new core.List<api.Volume>(); 2634 var o = new core.List<api.Volume>();
2600 o.add(buildVolume()); 2635 o.add(buildVolume());
2601 o.add(buildVolume()); 2636 o.add(buildVolume());
2602 return o; 2637 return o;
2603 } 2638 }
2604 2639
2605 checkUnnamed836(core.List<api.Volume> o) { 2640 checkUnnamed358(core.List<api.Volume> o) {
2606 unittest.expect(o, unittest.hasLength(2)); 2641 unittest.expect(o, unittest.hasLength(2));
2607 checkVolume(o[0]); 2642 checkVolume(o[0]);
2608 checkVolume(o[1]); 2643 checkVolume(o[1]);
2609 } 2644 }
2610 2645
2611 core.int buildCounterVolumes = 0; 2646 core.int buildCounterVolumes = 0;
2612 buildVolumes() { 2647 buildVolumes() {
2613 var o = new api.Volumes(); 2648 var o = new api.Volumes();
2614 buildCounterVolumes++; 2649 buildCounterVolumes++;
2615 if (buildCounterVolumes < 3) { 2650 if (buildCounterVolumes < 3) {
2616 o.items = buildUnnamed836(); 2651 o.items = buildUnnamed358();
2617 o.kind = "foo"; 2652 o.kind = "foo";
2618 o.totalItems = 42; 2653 o.totalItems = 42;
2619 } 2654 }
2620 buildCounterVolumes--; 2655 buildCounterVolumes--;
2621 return o; 2656 return o;
2622 } 2657 }
2623 2658
2624 checkVolumes(api.Volumes o) { 2659 checkVolumes(api.Volumes o) {
2625 buildCounterVolumes++; 2660 buildCounterVolumes++;
2626 if (buildCounterVolumes < 3) { 2661 if (buildCounterVolumes < 3) {
2627 checkUnnamed836(o.items); 2662 checkUnnamed358(o.items);
2628 unittest.expect(o.kind, unittest.equals('foo')); 2663 unittest.expect(o.kind, unittest.equals('foo'));
2629 unittest.expect(o.totalItems, unittest.equals(42)); 2664 unittest.expect(o.totalItems, unittest.equals(42));
2630 } 2665 }
2631 buildCounterVolumes--; 2666 buildCounterVolumes--;
2632 } 2667 }
2633 2668
2634 buildUnnamed837() { 2669 buildUnnamed359() {
2635 var o = new core.List<core.String>(); 2670 var o = new core.List<core.String>();
2636 o.add("foo"); 2671 o.add("foo");
2637 o.add("foo"); 2672 o.add("foo");
2638 return o; 2673 return o;
2639 } 2674 }
2640 2675
2641 checkUnnamed837(core.List<core.String> o) { 2676 checkUnnamed359(core.List<core.String> o) {
2642 unittest.expect(o, unittest.hasLength(2)); 2677 unittest.expect(o, unittest.hasLength(2));
2643 unittest.expect(o[0], unittest.equals('foo')); 2678 unittest.expect(o[0], unittest.equals('foo'));
2644 unittest.expect(o[1], unittest.equals('foo')); 2679 unittest.expect(o[1], unittest.equals('foo'));
2645 } 2680 }
2646 2681
2647 buildUnnamed838() { 2682 buildUnnamed360() {
2648 var o = new core.List<core.String>(); 2683 var o = new core.List<core.String>();
2649 o.add("foo"); 2684 o.add("foo");
2650 o.add("foo"); 2685 o.add("foo");
2651 return o; 2686 return o;
2652 } 2687 }
2653 2688
2654 checkUnnamed838(core.List<core.String> o) { 2689 checkUnnamed360(core.List<core.String> o) {
2655 unittest.expect(o, unittest.hasLength(2)); 2690 unittest.expect(o, unittest.hasLength(2));
2656 unittest.expect(o[0], unittest.equals('foo')); 2691 unittest.expect(o[0], unittest.equals('foo'));
2657 unittest.expect(o[1], unittest.equals('foo')); 2692 unittest.expect(o[1], unittest.equals('foo'));
2658 } 2693 }
2659 2694
2660 buildUnnamed839() { 2695 buildUnnamed361() {
2661 var o = new core.List<core.String>(); 2696 var o = new core.List<core.String>();
2662 o.add("foo"); 2697 o.add("foo");
2663 o.add("foo"); 2698 o.add("foo");
2664 return o; 2699 return o;
2665 } 2700 }
2666 2701
2667 checkUnnamed839(core.List<core.String> o) { 2702 checkUnnamed361(core.List<core.String> o) {
2668 unittest.expect(o, unittest.hasLength(2)); 2703 unittest.expect(o, unittest.hasLength(2));
2669 unittest.expect(o[0], unittest.equals('foo')); 2704 unittest.expect(o[0], unittest.equals('foo'));
2670 unittest.expect(o[1], unittest.equals('foo')); 2705 unittest.expect(o[1], unittest.equals('foo'));
2671 } 2706 }
2672 2707
2673 buildUnnamed840() { 2708 buildUnnamed362() {
2674 var o = new core.List<core.String>(); 2709 var o = new core.List<core.String>();
2675 o.add("foo"); 2710 o.add("foo");
2676 o.add("foo"); 2711 o.add("foo");
2677 return o; 2712 return o;
2678 } 2713 }
2679 2714
2680 checkUnnamed840(core.List<core.String> o) { 2715 checkUnnamed362(core.List<core.String> o) {
2681 unittest.expect(o, unittest.hasLength(2)); 2716 unittest.expect(o, unittest.hasLength(2));
2682 unittest.expect(o[0], unittest.equals('foo')); 2717 unittest.expect(o[0], unittest.equals('foo'));
2683 unittest.expect(o[1], unittest.equals('foo')); 2718 unittest.expect(o[1], unittest.equals('foo'));
2684 } 2719 }
2685 2720
2686 buildUnnamed841() { 2721 buildUnnamed363() {
2687 var o = new core.List<core.String>(); 2722 var o = new core.List<core.String>();
2688 o.add("foo"); 2723 o.add("foo");
2689 o.add("foo"); 2724 o.add("foo");
2690 return o; 2725 return o;
2691 } 2726 }
2692 2727
2693 checkUnnamed841(core.List<core.String> o) { 2728 checkUnnamed363(core.List<core.String> o) {
2694 unittest.expect(o, unittest.hasLength(2)); 2729 unittest.expect(o, unittest.hasLength(2));
2695 unittest.expect(o[0], unittest.equals('foo')); 2730 unittest.expect(o[0], unittest.equals('foo'));
2696 unittest.expect(o[1], unittest.equals('foo')); 2731 unittest.expect(o[1], unittest.equals('foo'));
2697 } 2732 }
2698 2733
2699 buildUnnamed842() { 2734 buildUnnamed364() {
2700 var o = new core.List<core.String>(); 2735 var o = new core.List<core.String>();
2701 o.add("foo"); 2736 o.add("foo");
2702 o.add("foo"); 2737 o.add("foo");
2703 return o; 2738 return o;
2704 } 2739 }
2705 2740
2706 checkUnnamed842(core.List<core.String> o) { 2741 checkUnnamed364(core.List<core.String> o) {
2707 unittest.expect(o, unittest.hasLength(2)); 2742 unittest.expect(o, unittest.hasLength(2));
2708 unittest.expect(o[0], unittest.equals('foo')); 2743 unittest.expect(o[0], unittest.equals('foo'));
2709 unittest.expect(o[1], unittest.equals('foo')); 2744 unittest.expect(o[1], unittest.equals('foo'));
2710 } 2745 }
2711 2746
2712 buildUnnamed843() { 2747 buildUnnamed365() {
2713 var o = new core.List<core.String>(); 2748 var o = new core.List<core.String>();
2714 o.add("foo"); 2749 o.add("foo");
2715 o.add("foo"); 2750 o.add("foo");
2716 return o; 2751 return o;
2717 } 2752 }
2718 2753
2719 checkUnnamed843(core.List<core.String> o) { 2754 checkUnnamed365(core.List<core.String> o) {
2720 unittest.expect(o, unittest.hasLength(2)); 2755 unittest.expect(o, unittest.hasLength(2));
2721 unittest.expect(o[0], unittest.equals('foo')); 2756 unittest.expect(o[0], unittest.equals('foo'));
2722 unittest.expect(o[1], unittest.equals('foo')); 2757 unittest.expect(o[1], unittest.equals('foo'));
2723 } 2758 }
2724 2759
2725 buildUnnamed844() { 2760 buildUnnamed366() {
2726 var o = new core.List<core.String>(); 2761 var o = new core.List<core.String>();
2727 o.add("foo"); 2762 o.add("foo");
2728 o.add("foo"); 2763 o.add("foo");
2729 return o; 2764 return o;
2730 } 2765 }
2731 2766
2732 checkUnnamed844(core.List<core.String> o) { 2767 checkUnnamed366(core.List<core.String> o) {
2733 unittest.expect(o, unittest.hasLength(2)); 2768 unittest.expect(o, unittest.hasLength(2));
2734 unittest.expect(o[0], unittest.equals('foo')); 2769 unittest.expect(o[0], unittest.equals('foo'));
2735 unittest.expect(o[1], unittest.equals('foo')); 2770 unittest.expect(o[1], unittest.equals('foo'));
2736 } 2771 }
2737 2772
2738 buildUnnamed845() { 2773 buildUnnamed367() {
2739 var o = new core.List<core.String>(); 2774 var o = new core.List<core.String>();
2740 o.add("foo"); 2775 o.add("foo");
2741 o.add("foo"); 2776 o.add("foo");
2742 return o; 2777 return o;
2743 } 2778 }
2744 2779
2745 checkUnnamed845(core.List<core.String> o) { 2780 checkUnnamed367(core.List<core.String> o) {
2746 unittest.expect(o, unittest.hasLength(2)); 2781 unittest.expect(o, unittest.hasLength(2));
2747 unittest.expect(o[0], unittest.equals('foo')); 2782 unittest.expect(o[0], unittest.equals('foo'));
2748 unittest.expect(o[1], unittest.equals('foo')); 2783 unittest.expect(o[1], unittest.equals('foo'));
2749 } 2784 }
2750 2785
2751 buildUnnamed846() { 2786 buildUnnamed368() {
2752 var o = new core.List<core.String>(); 2787 var o = new core.List<core.String>();
2753 o.add("foo"); 2788 o.add("foo");
2754 o.add("foo"); 2789 o.add("foo");
2755 return o; 2790 return o;
2756 } 2791 }
2757 2792
2758 checkUnnamed846(core.List<core.String> o) { 2793 checkUnnamed368(core.List<core.String> o) {
2759 unittest.expect(o, unittest.hasLength(2)); 2794 unittest.expect(o, unittest.hasLength(2));
2760 unittest.expect(o[0], unittest.equals('foo')); 2795 unittest.expect(o[0], unittest.equals('foo'));
2761 unittest.expect(o[1], unittest.equals('foo')); 2796 unittest.expect(o[1], unittest.equals('foo'));
2762 } 2797 }
2763 2798
2764 buildUnnamed847() { 2799 buildUnnamed369() {
2765 var o = new core.List<core.String>(); 2800 var o = new core.List<core.String>();
2766 o.add("foo"); 2801 o.add("foo");
2767 o.add("foo"); 2802 o.add("foo");
2768 return o; 2803 return o;
2769 } 2804 }
2770 2805
2771 checkUnnamed847(core.List<core.String> o) { 2806 checkUnnamed369(core.List<core.String> o) {
2772 unittest.expect(o, unittest.hasLength(2)); 2807 unittest.expect(o, unittest.hasLength(2));
2773 unittest.expect(o[0], unittest.equals('foo')); 2808 unittest.expect(o[0], unittest.equals('foo'));
2774 unittest.expect(o[1], unittest.equals('foo')); 2809 unittest.expect(o[1], unittest.equals('foo'));
2775 }
2776
2777 buildUnnamed848() {
2778 var o = new core.List<core.String>();
2779 o.add("foo");
2780 o.add("foo");
2781 return o;
2782 }
2783
2784 checkUnnamed848(core.List<core.String> o) {
2785 unittest.expect(o, unittest.hasLength(2));
2786 unittest.expect(o[0], unittest.equals('foo'));
2787 unittest.expect(o[1], unittest.equals('foo'));
2788 } 2810 }
2789 2811
2790 2812
2791 main() { 2813 main() {
2792 unittest.group("obj-schema-AnnotationClientVersionRanges", () { 2814 unittest.group("obj-schema-AnnotationClientVersionRanges", () {
2793 unittest.test("to-json--from-json", () { 2815 unittest.test("to-json--from-json", () {
2794 var o = buildAnnotationClientVersionRanges(); 2816 var o = buildAnnotationClientVersionRanges();
2795 var od = new api.AnnotationClientVersionRanges.fromJson(o.toJson()); 2817 var od = new api.AnnotationClientVersionRanges.fromJson(o.toJson());
2796 checkAnnotationClientVersionRanges(od); 2818 checkAnnotationClientVersionRanges(od);
2797 }); 2819 });
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
3559 var o = buildVolumes(); 3581 var o = buildVolumes();
3560 var od = new api.Volumes.fromJson(o.toJson()); 3582 var od = new api.Volumes.fromJson(o.toJson());
3561 checkVolumes(od); 3583 checkVolumes(od);
3562 }); 3584 });
3563 }); 3585 });
3564 3586
3565 3587
3566 unittest.group("resource-BookshelvesResourceApi", () { 3588 unittest.group("resource-BookshelvesResourceApi", () {
3567 unittest.test("method--get", () { 3589 unittest.test("method--get", () {
3568 3590
3569 var mock = new common_test.HttpServerMock(); 3591 var mock = new HttpServerMock();
3570 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; 3592 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves;
3571 var arg_userId = "foo"; 3593 var arg_userId = "foo";
3572 var arg_shelf = "foo"; 3594 var arg_shelf = "foo";
3573 var arg_source = "foo"; 3595 var arg_source = "foo";
3574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3596 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3575 var path = (req.url).path; 3597 var path = (req.url).path;
3576 var pathOffset = 0; 3598 var pathOffset = 0;
3577 var index; 3599 var index;
3578 var subPart; 3600 var subPart;
3579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 29 matching lines...) Expand all
3609 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3631 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3610 } 3632 }
3611 } 3633 }
3612 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 3634 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
3613 3635
3614 3636
3615 var h = { 3637 var h = {
3616 "content-type" : "application/json; charset=utf-8", 3638 "content-type" : "application/json; charset=utf-8",
3617 }; 3639 };
3618 var resp = convert.JSON.encode(buildBookshelf()); 3640 var resp = convert.JSON.encode(buildBookshelf());
3619 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3641 return new async.Future.value(stringResponse(200, h, resp));
3620 }), true); 3642 }), true);
3621 res.get(arg_userId, arg_shelf, source: arg_source).then(unittest.expectAsy nc(((api.Bookshelf response) { 3643 res.get(arg_userId, arg_shelf, source: arg_source).then(unittest.expectAsy nc(((api.Bookshelf response) {
3622 checkBookshelf(response); 3644 checkBookshelf(response);
3623 }))); 3645 })));
3624 }); 3646 });
3625 3647
3626 unittest.test("method--list", () { 3648 unittest.test("method--list", () {
3627 3649
3628 var mock = new common_test.HttpServerMock(); 3650 var mock = new HttpServerMock();
3629 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; 3651 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves;
3630 var arg_userId = "foo"; 3652 var arg_userId = "foo";
3631 var arg_source = "foo"; 3653 var arg_source = "foo";
3632 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3654 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3633 var path = (req.url).path; 3655 var path = (req.url).path;
3634 var pathOffset = 0; 3656 var pathOffset = 0;
3635 var index; 3657 var index;
3636 var subPart; 3658 var subPart;
3637 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3659 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3638 pathOffset += 1; 3660 pathOffset += 1;
(...skipping 25 matching lines...) Expand all
3664 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3665 } 3687 }
3666 } 3688 }
3667 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 3689 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
3668 3690
3669 3691
3670 var h = { 3692 var h = {
3671 "content-type" : "application/json; charset=utf-8", 3693 "content-type" : "application/json; charset=utf-8",
3672 }; 3694 };
3673 var resp = convert.JSON.encode(buildBookshelves()); 3695 var resp = convert.JSON.encode(buildBookshelves());
3674 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3696 return new async.Future.value(stringResponse(200, h, resp));
3675 }), true); 3697 }), true);
3676 res.list(arg_userId, source: arg_source).then(unittest.expectAsync(((api.B ookshelves response) { 3698 res.list(arg_userId, source: arg_source).then(unittest.expectAsync(((api.B ookshelves response) {
3677 checkBookshelves(response); 3699 checkBookshelves(response);
3678 }))); 3700 })));
3679 }); 3701 });
3680 3702
3681 }); 3703 });
3682 3704
3683 3705
3684 unittest.group("resource-BookshelvesVolumesResourceApi", () { 3706 unittest.group("resource-BookshelvesVolumesResourceApi", () {
3685 unittest.test("method--list", () { 3707 unittest.test("method--list", () {
3686 3708
3687 var mock = new common_test.HttpServerMock(); 3709 var mock = new HttpServerMock();
3688 api.BookshelvesVolumesResourceApi res = new api.BooksApi(mock).bookshelves .volumes; 3710 api.BookshelvesVolumesResourceApi res = new api.BooksApi(mock).bookshelves .volumes;
3689 var arg_userId = "foo"; 3711 var arg_userId = "foo";
3690 var arg_shelf = "foo"; 3712 var arg_shelf = "foo";
3691 var arg_maxResults = 42; 3713 var arg_maxResults = 42;
3692 var arg_showPreorders = true; 3714 var arg_showPreorders = true;
3693 var arg_source = "foo"; 3715 var arg_source = "foo";
3694 var arg_startIndex = 42; 3716 var arg_startIndex = 42;
3695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3717 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3696 var path = (req.url).path; 3718 var path = (req.url).path;
3697 var pathOffset = 0; 3719 var pathOffset = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
3737 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 3759 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
3738 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders")); 3760 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders"));
3739 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 3761 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
3740 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 3762 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
3741 3763
3742 3764
3743 var h = { 3765 var h = {
3744 "content-type" : "application/json; charset=utf-8", 3766 "content-type" : "application/json; charset=utf-8",
3745 }; 3767 };
3746 var resp = convert.JSON.encode(buildVolumes()); 3768 var resp = convert.JSON.encode(buildVolumes());
3747 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3769 return new async.Future.value(stringResponse(200, h, resp));
3748 }), true); 3770 }), true);
3749 res.list(arg_userId, arg_shelf, maxResults: arg_maxResults, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittes t.expectAsync(((api.Volumes response) { 3771 res.list(arg_userId, arg_shelf, maxResults: arg_maxResults, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittes t.expectAsync(((api.Volumes response) {
3750 checkVolumes(response); 3772 checkVolumes(response);
3751 }))); 3773 })));
3752 }); 3774 });
3753 3775
3754 }); 3776 });
3755 3777
3756 3778
3757 unittest.group("resource-CloudloadingResourceApi", () { 3779 unittest.group("resource-CloudloadingResourceApi", () {
3758 unittest.test("method--addBook", () { 3780 unittest.test("method--addBook", () {
3759 3781
3760 var mock = new common_test.HttpServerMock(); 3782 var mock = new HttpServerMock();
3761 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; 3783 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading;
3762 var arg_driveDocumentId = "foo"; 3784 var arg_driveDocumentId = "foo";
3763 var arg_mimeType = "foo"; 3785 var arg_mimeType = "foo";
3764 var arg_name = "foo"; 3786 var arg_name = "foo";
3765 var arg_uploadClientToken = "foo"; 3787 var arg_uploadClientToken = "foo";
3766 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3788 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3767 var path = (req.url).path; 3789 var path = (req.url).path;
3768 var pathOffset = 0; 3790 var pathOffset = 0;
3769 var index; 3791 var index;
3770 var subPart; 3792 var subPart;
(...skipping 23 matching lines...) Expand all
3794 unittest.expect(queryMap["drive_document_id"].first, unittest.equals(arg _driveDocumentId)); 3816 unittest.expect(queryMap["drive_document_id"].first, unittest.equals(arg _driveDocumentId));
3795 unittest.expect(queryMap["mime_type"].first, unittest.equals(arg_mimeTyp e)); 3817 unittest.expect(queryMap["mime_type"].first, unittest.equals(arg_mimeTyp e));
3796 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); 3818 unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
3797 unittest.expect(queryMap["upload_client_token"].first, unittest.equals(a rg_uploadClientToken)); 3819 unittest.expect(queryMap["upload_client_token"].first, unittest.equals(a rg_uploadClientToken));
3798 3820
3799 3821
3800 var h = { 3822 var h = {
3801 "content-type" : "application/json; charset=utf-8", 3823 "content-type" : "application/json; charset=utf-8",
3802 }; 3824 };
3803 var resp = convert.JSON.encode(buildBooksCloudloadingResource()); 3825 var resp = convert.JSON.encode(buildBooksCloudloadingResource());
3804 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3826 return new async.Future.value(stringResponse(200, h, resp));
3805 }), true); 3827 }), true);
3806 res.addBook(driveDocumentId: arg_driveDocumentId, mimeType: arg_mimeType, name: arg_name, uploadClientToken: arg_uploadClientToken).then(unittest.expectAs ync(((api.BooksCloudloadingResource response) { 3828 res.addBook(driveDocumentId: arg_driveDocumentId, mimeType: arg_mimeType, name: arg_name, uploadClientToken: arg_uploadClientToken).then(unittest.expectAs ync(((api.BooksCloudloadingResource response) {
3807 checkBooksCloudloadingResource(response); 3829 checkBooksCloudloadingResource(response);
3808 }))); 3830 })));
3809 }); 3831 });
3810 3832
3811 unittest.test("method--deleteBook", () { 3833 unittest.test("method--deleteBook", () {
3812 3834
3813 var mock = new common_test.HttpServerMock(); 3835 var mock = new HttpServerMock();
3814 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; 3836 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading;
3815 var arg_volumeId = "foo"; 3837 var arg_volumeId = "foo";
3816 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3838 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3817 var path = (req.url).path; 3839 var path = (req.url).path;
3818 var pathOffset = 0; 3840 var pathOffset = 0;
3819 var index; 3841 var index;
3820 var subPart; 3842 var subPart;
3821 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3843 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3822 pathOffset += 1; 3844 pathOffset += 1;
3823 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 3845 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
(...skipping 17 matching lines...) Expand all
3841 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3863 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3842 } 3864 }
3843 } 3865 }
3844 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 3866 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
3845 3867
3846 3868
3847 var h = { 3869 var h = {
3848 "content-type" : "application/json; charset=utf-8", 3870 "content-type" : "application/json; charset=utf-8",
3849 }; 3871 };
3850 var resp = ""; 3872 var resp = "";
3851 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3873 return new async.Future.value(stringResponse(200, h, resp));
3852 }), true); 3874 }), true);
3853 res.deleteBook(arg_volumeId).then(unittest.expectAsync((_) {})); 3875 res.deleteBook(arg_volumeId).then(unittest.expectAsync((_) {}));
3854 }); 3876 });
3855 3877
3856 unittest.test("method--updateBook", () { 3878 unittest.test("method--updateBook", () {
3857 3879
3858 var mock = new common_test.HttpServerMock(); 3880 var mock = new HttpServerMock();
3859 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; 3881 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading;
3860 var arg_request = buildBooksCloudloadingResource(); 3882 var arg_request = buildBooksCloudloadingResource();
3861 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3862 var obj = new api.BooksCloudloadingResource.fromJson(json); 3884 var obj = new api.BooksCloudloadingResource.fromJson(json);
3863 checkBooksCloudloadingResource(obj); 3885 checkBooksCloudloadingResource(obj);
3864 3886
3865 var path = (req.url).path; 3887 var path = (req.url).path;
3866 var pathOffset = 0; 3888 var pathOffset = 0;
3867 var index; 3889 var index;
3868 var subPart; 3890 var subPart;
(...skipping 19 matching lines...) Expand all
3888 var keyvalue = part.split("="); 3910 var keyvalue = part.split("=");
3889 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3911 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3890 } 3912 }
3891 } 3913 }
3892 3914
3893 3915
3894 var h = { 3916 var h = {
3895 "content-type" : "application/json; charset=utf-8", 3917 "content-type" : "application/json; charset=utf-8",
3896 }; 3918 };
3897 var resp = convert.JSON.encode(buildBooksCloudloadingResource()); 3919 var resp = convert.JSON.encode(buildBooksCloudloadingResource());
3898 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3920 return new async.Future.value(stringResponse(200, h, resp));
3899 }), true); 3921 }), true);
3900 res.updateBook(arg_request).then(unittest.expectAsync(((api.BooksCloudload ingResource response) { 3922 res.updateBook(arg_request).then(unittest.expectAsync(((api.BooksCloudload ingResource response) {
3901 checkBooksCloudloadingResource(response); 3923 checkBooksCloudloadingResource(response);
3902 }))); 3924 })));
3903 }); 3925 });
3904 3926
3905 }); 3927 });
3906 3928
3907 3929
3908 unittest.group("resource-DictionaryResourceApi", () { 3930 unittest.group("resource-DictionaryResourceApi", () {
3909 unittest.test("method--listOfflineMetadata", () { 3931 unittest.test("method--listOfflineMetadata", () {
3910 3932
3911 var mock = new common_test.HttpServerMock(); 3933 var mock = new HttpServerMock();
3912 api.DictionaryResourceApi res = new api.BooksApi(mock).dictionary; 3934 api.DictionaryResourceApi res = new api.BooksApi(mock).dictionary;
3913 var arg_cpksver = "foo"; 3935 var arg_cpksver = "foo";
3914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3936 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3915 var path = (req.url).path; 3937 var path = (req.url).path;
3916 var pathOffset = 0; 3938 var pathOffset = 0;
3917 var index; 3939 var index;
3918 var subPart; 3940 var subPart;
3919 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3941 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3920 pathOffset += 1; 3942 pathOffset += 1;
3921 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 3943 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
(...skipping 17 matching lines...) Expand all
3939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3961 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3940 } 3962 }
3941 } 3963 }
3942 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ; 3964 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ;
3943 3965
3944 3966
3945 var h = { 3967 var h = {
3946 "content-type" : "application/json; charset=utf-8", 3968 "content-type" : "application/json; charset=utf-8",
3947 }; 3969 };
3948 var resp = convert.JSON.encode(buildMetadata()); 3970 var resp = convert.JSON.encode(buildMetadata());
3949 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3971 return new async.Future.value(stringResponse(200, h, resp));
3950 }), true); 3972 }), true);
3951 res.listOfflineMetadata(arg_cpksver).then(unittest.expectAsync(((api.Metad ata response) { 3973 res.listOfflineMetadata(arg_cpksver).then(unittest.expectAsync(((api.Metad ata response) {
3952 checkMetadata(response); 3974 checkMetadata(response);
3953 }))); 3975 })));
3954 }); 3976 });
3955 3977
3956 }); 3978 });
3957 3979
3958 3980
3959 unittest.group("resource-LayersResourceApi", () { 3981 unittest.group("resource-LayersResourceApi", () {
3960 unittest.test("method--get", () { 3982 unittest.test("method--get", () {
3961 3983
3962 var mock = new common_test.HttpServerMock(); 3984 var mock = new HttpServerMock();
3963 api.LayersResourceApi res = new api.BooksApi(mock).layers; 3985 api.LayersResourceApi res = new api.BooksApi(mock).layers;
3964 var arg_volumeId = "foo"; 3986 var arg_volumeId = "foo";
3965 var arg_summaryId = "foo"; 3987 var arg_summaryId = "foo";
3966 var arg_contentVersion = "foo"; 3988 var arg_contentVersion = "foo";
3967 var arg_source = "foo"; 3989 var arg_source = "foo";
3968 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3990 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3969 var path = (req.url).path; 3991 var path = (req.url).path;
3970 var pathOffset = 0; 3992 var pathOffset = 0;
3971 var index; 3993 var index;
3972 var subPart; 3994 var subPart;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
4004 } 4026 }
4005 } 4027 }
4006 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion)); 4028 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion));
4007 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4029 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4008 4030
4009 4031
4010 var h = { 4032 var h = {
4011 "content-type" : "application/json; charset=utf-8", 4033 "content-type" : "application/json; charset=utf-8",
4012 }; 4034 };
4013 var resp = convert.JSON.encode(buildLayersummary()); 4035 var resp = convert.JSON.encode(buildLayersummary());
4014 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4036 return new async.Future.value(stringResponse(200, h, resp));
4015 }), true); 4037 }), true);
4016 res.get(arg_volumeId, arg_summaryId, contentVersion: arg_contentVersion, s ource: arg_source).then(unittest.expectAsync(((api.Layersummary response) { 4038 res.get(arg_volumeId, arg_summaryId, contentVersion: arg_contentVersion, s ource: arg_source).then(unittest.expectAsync(((api.Layersummary response) {
4017 checkLayersummary(response); 4039 checkLayersummary(response);
4018 }))); 4040 })));
4019 }); 4041 });
4020 4042
4021 unittest.test("method--list", () { 4043 unittest.test("method--list", () {
4022 4044
4023 var mock = new common_test.HttpServerMock(); 4045 var mock = new HttpServerMock();
4024 api.LayersResourceApi res = new api.BooksApi(mock).layers; 4046 api.LayersResourceApi res = new api.BooksApi(mock).layers;
4025 var arg_volumeId = "foo"; 4047 var arg_volumeId = "foo";
4026 var arg_contentVersion = "foo"; 4048 var arg_contentVersion = "foo";
4027 var arg_maxResults = 42; 4049 var arg_maxResults = 42;
4028 var arg_pageToken = "foo"; 4050 var arg_pageToken = "foo";
4029 var arg_source = "foo"; 4051 var arg_source = "foo";
4030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4052 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4031 var path = (req.url).path; 4053 var path = (req.url).path;
4032 var pathOffset = 0; 4054 var pathOffset = 0;
4033 var index; 4055 var index;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
4065 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion)); 4087 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion));
4066 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 4088 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
4067 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4089 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4068 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4090 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4069 4091
4070 4092
4071 var h = { 4093 var h = {
4072 "content-type" : "application/json; charset=utf-8", 4094 "content-type" : "application/json; charset=utf-8",
4073 }; 4095 };
4074 var resp = convert.JSON.encode(buildLayersummaries()); 4096 var resp = convert.JSON.encode(buildLayersummaries());
4075 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4097 return new async.Future.value(stringResponse(200, h, resp));
4076 }), true); 4098 }), true);
4077 res.list(arg_volumeId, contentVersion: arg_contentVersion, maxResults: arg _maxResults, pageToken: arg_pageToken, source: arg_source).then(unittest.expectA sync(((api.Layersummaries response) { 4099 res.list(arg_volumeId, contentVersion: arg_contentVersion, maxResults: arg _maxResults, pageToken: arg_pageToken, source: arg_source).then(unittest.expectA sync(((api.Layersummaries response) {
4078 checkLayersummaries(response); 4100 checkLayersummaries(response);
4079 }))); 4101 })));
4080 }); 4102 });
4081 4103
4082 }); 4104 });
4083 4105
4084 4106
4085 unittest.group("resource-LayersAnnotationDataResourceApi", () { 4107 unittest.group("resource-LayersAnnotationDataResourceApi", () {
4086 unittest.test("method--get", () { 4108 unittest.test("method--get", () {
4087 4109
4088 var mock = new common_test.HttpServerMock(); 4110 var mock = new HttpServerMock();
4089 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an notationData; 4111 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an notationData;
4090 var arg_volumeId = "foo"; 4112 var arg_volumeId = "foo";
4091 var arg_layerId = "foo"; 4113 var arg_layerId = "foo";
4092 var arg_annotationDataId = "foo"; 4114 var arg_annotationDataId = "foo";
4093 var arg_contentVersion = "foo"; 4115 var arg_contentVersion = "foo";
4094 var arg_allowWebDefinitions = true; 4116 var arg_allowWebDefinitions = true;
4095 var arg_h = 42; 4117 var arg_h = 42;
4096 var arg_locale = "foo"; 4118 var arg_locale = "foo";
4097 var arg_scale = 42; 4119 var arg_scale = 42;
4098 var arg_source = "foo"; 4120 var arg_source = "foo";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
4148 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 4170 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
4149 unittest.expect(core.int.parse(queryMap["scale"].first), unittest.equals (arg_scale)); 4171 unittest.expect(core.int.parse(queryMap["scale"].first), unittest.equals (arg_scale));
4150 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4172 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4151 unittest.expect(core.int.parse(queryMap["w"].first), unittest.equals(arg _w)); 4173 unittest.expect(core.int.parse(queryMap["w"].first), unittest.equals(arg _w));
4152 4174
4153 4175
4154 var h = { 4176 var h = {
4155 "content-type" : "application/json; charset=utf-8", 4177 "content-type" : "application/json; charset=utf-8",
4156 }; 4178 };
4157 var resp = convert.JSON.encode(buildAnnotationdata()); 4179 var resp = convert.JSON.encode(buildAnnotationdata());
4158 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4180 return new async.Future.value(stringResponse(200, h, resp));
4159 }), true); 4181 }), true);
4160 res.get(arg_volumeId, arg_layerId, arg_annotationDataId, arg_contentVersio n, allowWebDefinitions: arg_allowWebDefinitions, h: arg_h, locale: arg_locale, s cale: arg_scale, source: arg_source, w: arg_w).then(unittest.expectAsync(((api.A nnotationdata response) { 4182 res.get(arg_volumeId, arg_layerId, arg_annotationDataId, arg_contentVersio n, allowWebDefinitions: arg_allowWebDefinitions, h: arg_h, locale: arg_locale, s cale: arg_scale, source: arg_source, w: arg_w).then(unittest.expectAsync(((api.A nnotationdata response) {
4161 checkAnnotationdata(response); 4183 checkAnnotationdata(response);
4162 }))); 4184 })));
4163 }); 4185 });
4164 4186
4165 unittest.test("method--list", () { 4187 unittest.test("method--list", () {
4166 4188
4167 var mock = new common_test.HttpServerMock(); 4189 var mock = new HttpServerMock();
4168 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an notationData; 4190 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an notationData;
4169 var arg_volumeId = "foo"; 4191 var arg_volumeId = "foo";
4170 var arg_layerId = "foo"; 4192 var arg_layerId = "foo";
4171 var arg_contentVersion = "foo"; 4193 var arg_contentVersion = "foo";
4172 var arg_annotationDataId = buildUnnamed837(); 4194 var arg_annotationDataId = buildUnnamed359();
4173 var arg_h = 42; 4195 var arg_h = 42;
4174 var arg_locale = "foo"; 4196 var arg_locale = "foo";
4175 var arg_maxResults = 42; 4197 var arg_maxResults = 42;
4176 var arg_pageToken = "foo"; 4198 var arg_pageToken = "foo";
4177 var arg_scale = 42; 4199 var arg_scale = 42;
4178 var arg_source = "foo"; 4200 var arg_source = "foo";
4179 var arg_updatedMax = "foo"; 4201 var arg_updatedMax = "foo";
4180 var arg_updatedMin = "foo"; 4202 var arg_updatedMin = "foo";
4181 var arg_w = 42; 4203 var arg_w = 42;
4182 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4204 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
4231 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4253 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4232 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax)); 4254 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax));
4233 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin)); 4255 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin));
4234 unittest.expect(core.int.parse(queryMap["w"].first), unittest.equals(arg _w)); 4256 unittest.expect(core.int.parse(queryMap["w"].first), unittest.equals(arg _w));
4235 4257
4236 4258
4237 var h = { 4259 var h = {
4238 "content-type" : "application/json; charset=utf-8", 4260 "content-type" : "application/json; charset=utf-8",
4239 }; 4261 };
4240 var resp = convert.JSON.encode(buildAnnotationsdata()); 4262 var resp = convert.JSON.encode(buildAnnotationsdata());
4241 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4263 return new async.Future.value(stringResponse(200, h, resp));
4242 }), true); 4264 }), true);
4243 res.list(arg_volumeId, arg_layerId, arg_contentVersion, annotationDataId: arg_annotationDataId, h: arg_h, locale: arg_locale, maxResults: arg_maxResults, pageToken: arg_pageToken, scale: arg_scale, source: arg_source, updatedMax: arg_ updatedMax, updatedMin: arg_updatedMin, w: arg_w).then(unittest.expectAsync(((ap i.Annotationsdata response) { 4265 res.list(arg_volumeId, arg_layerId, arg_contentVersion, annotationDataId: arg_annotationDataId, h: arg_h, locale: arg_locale, maxResults: arg_maxResults, pageToken: arg_pageToken, scale: arg_scale, source: arg_source, updatedMax: arg_ updatedMax, updatedMin: arg_updatedMin, w: arg_w).then(unittest.expectAsync(((ap i.Annotationsdata response) {
4244 checkAnnotationsdata(response); 4266 checkAnnotationsdata(response);
4245 }))); 4267 })));
4246 }); 4268 });
4247 4269
4248 }); 4270 });
4249 4271
4250 4272
4251 unittest.group("resource-LayersVolumeAnnotationsResourceApi", () { 4273 unittest.group("resource-LayersVolumeAnnotationsResourceApi", () {
4252 unittest.test("method--get", () { 4274 unittest.test("method--get", () {
4253 4275
4254 var mock = new common_test.HttpServerMock(); 4276 var mock = new HttpServerMock();
4255 api.LayersVolumeAnnotationsResourceApi res = new api.BooksApi(mock).layers .volumeAnnotations; 4277 api.LayersVolumeAnnotationsResourceApi res = new api.BooksApi(mock).layers .volumeAnnotations;
4256 var arg_volumeId = "foo"; 4278 var arg_volumeId = "foo";
4257 var arg_layerId = "foo"; 4279 var arg_layerId = "foo";
4258 var arg_annotationId = "foo"; 4280 var arg_annotationId = "foo";
4259 var arg_locale = "foo"; 4281 var arg_locale = "foo";
4260 var arg_source = "foo"; 4282 var arg_source = "foo";
4261 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4283 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4262 var path = (req.url).path; 4284 var path = (req.url).path;
4263 var pathOffset = 0; 4285 var pathOffset = 0;
4264 var index; 4286 var index;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4304 } 4326 }
4305 } 4327 }
4306 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 4328 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
4307 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4329 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4308 4330
4309 4331
4310 var h = { 4332 var h = {
4311 "content-type" : "application/json; charset=utf-8", 4333 "content-type" : "application/json; charset=utf-8",
4312 }; 4334 };
4313 var resp = convert.JSON.encode(buildVolumeannotation()); 4335 var resp = convert.JSON.encode(buildVolumeannotation());
4314 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4336 return new async.Future.value(stringResponse(200, h, resp));
4315 }), true); 4337 }), true);
4316 res.get(arg_volumeId, arg_layerId, arg_annotationId, locale: arg_locale, s ource: arg_source).then(unittest.expectAsync(((api.Volumeannotation response) { 4338 res.get(arg_volumeId, arg_layerId, arg_annotationId, locale: arg_locale, s ource: arg_source).then(unittest.expectAsync(((api.Volumeannotation response) {
4317 checkVolumeannotation(response); 4339 checkVolumeannotation(response);
4318 }))); 4340 })));
4319 }); 4341 });
4320 4342
4321 unittest.test("method--list", () { 4343 unittest.test("method--list", () {
4322 4344
4323 var mock = new common_test.HttpServerMock(); 4345 var mock = new HttpServerMock();
4324 api.LayersVolumeAnnotationsResourceApi res = new api.BooksApi(mock).layers .volumeAnnotations; 4346 api.LayersVolumeAnnotationsResourceApi res = new api.BooksApi(mock).layers .volumeAnnotations;
4325 var arg_volumeId = "foo"; 4347 var arg_volumeId = "foo";
4326 var arg_layerId = "foo"; 4348 var arg_layerId = "foo";
4327 var arg_contentVersion = "foo"; 4349 var arg_contentVersion = "foo";
4328 var arg_endOffset = "foo"; 4350 var arg_endOffset = "foo";
4329 var arg_endPosition = "foo"; 4351 var arg_endPosition = "foo";
4330 var arg_locale = "foo"; 4352 var arg_locale = "foo";
4331 var arg_maxResults = 42; 4353 var arg_maxResults = 42;
4332 var arg_pageToken = "foo"; 4354 var arg_pageToken = "foo";
4333 var arg_showDeleted = true; 4355 var arg_showDeleted = true;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
4387 unittest.expect(queryMap["startPosition"].first, unittest.equals(arg_sta rtPosition)); 4409 unittest.expect(queryMap["startPosition"].first, unittest.equals(arg_sta rtPosition));
4388 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax)); 4410 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax));
4389 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin)); 4411 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin));
4390 unittest.expect(queryMap["volumeAnnotationsVersion"].first, unittest.equ als(arg_volumeAnnotationsVersion)); 4412 unittest.expect(queryMap["volumeAnnotationsVersion"].first, unittest.equ als(arg_volumeAnnotationsVersion));
4391 4413
4392 4414
4393 var h = { 4415 var h = {
4394 "content-type" : "application/json; charset=utf-8", 4416 "content-type" : "application/json; charset=utf-8",
4395 }; 4417 };
4396 var resp = convert.JSON.encode(buildVolumeannotations()); 4418 var resp = convert.JSON.encode(buildVolumeannotations());
4397 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4419 return new async.Future.value(stringResponse(200, h, resp));
4398 }), true); 4420 }), true);
4399 res.list(arg_volumeId, arg_layerId, arg_contentVersion, endOffset: arg_end Offset, endPosition: arg_endPosition, locale: arg_locale, maxResults: arg_maxRes ults, pageToken: arg_pageToken, showDeleted: arg_showDeleted, source: arg_source , startOffset: arg_startOffset, startPosition: arg_startPosition, updatedMax: ar g_updatedMax, updatedMin: arg_updatedMin, volumeAnnotationsVersion: arg_volumeAn notationsVersion).then(unittest.expectAsync(((api.Volumeannotations response) { 4421 res.list(arg_volumeId, arg_layerId, arg_contentVersion, endOffset: arg_end Offset, endPosition: arg_endPosition, locale: arg_locale, maxResults: arg_maxRes ults, pageToken: arg_pageToken, showDeleted: arg_showDeleted, source: arg_source , startOffset: arg_startOffset, startPosition: arg_startPosition, updatedMax: ar g_updatedMax, updatedMin: arg_updatedMin, volumeAnnotationsVersion: arg_volumeAn notationsVersion).then(unittest.expectAsync(((api.Volumeannotations response) {
4400 checkVolumeannotations(response); 4422 checkVolumeannotations(response);
4401 }))); 4423 })));
4402 }); 4424 });
4403 4425
4404 }); 4426 });
4405 4427
4406 4428
4407 unittest.group("resource-MyconfigResourceApi", () { 4429 unittest.group("resource-MyconfigResourceApi", () {
4408 unittest.test("method--getUserSettings", () { 4430 unittest.test("method--getUserSettings", () {
4409 4431
4410 var mock = new common_test.HttpServerMock(); 4432 var mock = new HttpServerMock();
4411 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; 4433 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
4412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4434 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4413 var path = (req.url).path; 4435 var path = (req.url).path;
4414 var pathOffset = 0; 4436 var pathOffset = 0;
4415 var index; 4437 var index;
4416 var subPart; 4438 var subPart;
4417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4439 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4418 pathOffset += 1; 4440 pathOffset += 1;
4419 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 4441 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
4420 pathOffset += 9; 4442 pathOffset += 9;
(...skipping 15 matching lines...) Expand all
4436 var keyvalue = part.split("="); 4458 var keyvalue = part.split("=");
4437 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4459 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4438 } 4460 }
4439 } 4461 }
4440 4462
4441 4463
4442 var h = { 4464 var h = {
4443 "content-type" : "application/json; charset=utf-8", 4465 "content-type" : "application/json; charset=utf-8",
4444 }; 4466 };
4445 var resp = convert.JSON.encode(buildUsersettings()); 4467 var resp = convert.JSON.encode(buildUsersettings());
4446 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4468 return new async.Future.value(stringResponse(200, h, resp));
4447 }), true); 4469 }), true);
4448 res.getUserSettings().then(unittest.expectAsync(((api.Usersettings respons e) { 4470 res.getUserSettings().then(unittest.expectAsync(((api.Usersettings respons e) {
4449 checkUsersettings(response); 4471 checkUsersettings(response);
4450 }))); 4472 })));
4451 }); 4473 });
4452 4474
4453 unittest.test("method--releaseDownloadAccess", () { 4475 unittest.test("method--releaseDownloadAccess", () {
4454 4476
4455 var mock = new common_test.HttpServerMock(); 4477 var mock = new HttpServerMock();
4456 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; 4478 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
4457 var arg_volumeIds = buildUnnamed838(); 4479 var arg_volumeIds = buildUnnamed360();
4458 var arg_cpksver = "foo"; 4480 var arg_cpksver = "foo";
4459 var arg_locale = "foo"; 4481 var arg_locale = "foo";
4460 var arg_source = "foo"; 4482 var arg_source = "foo";
4461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4483 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4462 var path = (req.url).path; 4484 var path = (req.url).path;
4463 var pathOffset = 0; 4485 var pathOffset = 0;
4464 var index; 4486 var index;
4465 var subPart; 4487 var subPart;
4466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4467 pathOffset += 1; 4489 pathOffset += 1;
(...skipping 21 matching lines...) Expand all
4489 unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds)); 4511 unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds));
4490 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ; 4512 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ;
4491 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 4513 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
4492 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4514 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4493 4515
4494 4516
4495 var h = { 4517 var h = {
4496 "content-type" : "application/json; charset=utf-8", 4518 "content-type" : "application/json; charset=utf-8",
4497 }; 4519 };
4498 var resp = convert.JSON.encode(buildDownloadAccesses()); 4520 var resp = convert.JSON.encode(buildDownloadAccesses());
4499 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4521 return new async.Future.value(stringResponse(200, h, resp));
4500 }), true); 4522 }), true);
4501 res.releaseDownloadAccess(arg_volumeIds, arg_cpksver, locale: arg_locale, source: arg_source).then(unittest.expectAsync(((api.DownloadAccesses response) { 4523 res.releaseDownloadAccess(arg_volumeIds, arg_cpksver, locale: arg_locale, source: arg_source).then(unittest.expectAsync(((api.DownloadAccesses response) {
4502 checkDownloadAccesses(response); 4524 checkDownloadAccesses(response);
4503 }))); 4525 })));
4504 }); 4526 });
4505 4527
4506 unittest.test("method--requestAccess", () { 4528 unittest.test("method--requestAccess", () {
4507 4529
4508 var mock = new common_test.HttpServerMock(); 4530 var mock = new HttpServerMock();
4509 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; 4531 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
4510 var arg_source = "foo"; 4532 var arg_source = "foo";
4511 var arg_volumeId = "foo"; 4533 var arg_volumeId = "foo";
4512 var arg_nonce = "foo"; 4534 var arg_nonce = "foo";
4513 var arg_cpksver = "foo"; 4535 var arg_cpksver = "foo";
4514 var arg_licenseTypes = "foo"; 4536 var arg_licenseTypes = "foo";
4515 var arg_locale = "foo"; 4537 var arg_locale = "foo";
4516 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4538 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4517 var path = (req.url).path; 4539 var path = (req.url).path;
4518 var pathOffset = 0; 4540 var pathOffset = 0;
(...skipping 27 matching lines...) Expand all
4546 unittest.expect(queryMap["nonce"].first, unittest.equals(arg_nonce)); 4568 unittest.expect(queryMap["nonce"].first, unittest.equals(arg_nonce));
4547 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ; 4569 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver)) ;
4548 unittest.expect(queryMap["licenseTypes"].first, unittest.equals(arg_lice nseTypes)); 4570 unittest.expect(queryMap["licenseTypes"].first, unittest.equals(arg_lice nseTypes));
4549 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 4571 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
4550 4572
4551 4573
4552 var h = { 4574 var h = {
4553 "content-type" : "application/json; charset=utf-8", 4575 "content-type" : "application/json; charset=utf-8",
4554 }; 4576 };
4555 var resp = convert.JSON.encode(buildRequestAccess()); 4577 var resp = convert.JSON.encode(buildRequestAccess());
4556 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4578 return new async.Future.value(stringResponse(200, h, resp));
4557 }), true); 4579 }), true);
4558 res.requestAccess(arg_source, arg_volumeId, arg_nonce, arg_cpksver, licens eTypes: arg_licenseTypes, locale: arg_locale).then(unittest.expectAsync(((api.Re questAccess response) { 4580 res.requestAccess(arg_source, arg_volumeId, arg_nonce, arg_cpksver, licens eTypes: arg_licenseTypes, locale: arg_locale).then(unittest.expectAsync(((api.Re questAccess response) {
4559 checkRequestAccess(response); 4581 checkRequestAccess(response);
4560 }))); 4582 })));
4561 }); 4583 });
4562 4584
4563 unittest.test("method--syncVolumeLicenses", () { 4585 unittest.test("method--syncVolumeLicenses", () {
4564 4586
4565 var mock = new common_test.HttpServerMock(); 4587 var mock = new HttpServerMock();
4566 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; 4588 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
4567 var arg_source = "foo"; 4589 var arg_source = "foo";
4568 var arg_nonce = "foo"; 4590 var arg_nonce = "foo";
4569 var arg_cpksver = "foo"; 4591 var arg_cpksver = "foo";
4570 var arg_features = buildUnnamed839(); 4592 var arg_features = buildUnnamed361();
4571 var arg_locale = "foo"; 4593 var arg_locale = "foo";
4572 var arg_showPreorders = true; 4594 var arg_showPreorders = true;
4573 var arg_volumeIds = buildUnnamed840(); 4595 var arg_volumeIds = buildUnnamed362();
4574 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4596 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4575 var path = (req.url).path; 4597 var path = (req.url).path;
4576 var pathOffset = 0; 4598 var pathOffset = 0;
4577 var index; 4599 var index;
4578 var subPart; 4600 var subPart;
4579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4580 pathOffset += 1; 4602 pathOffset += 1;
4581 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 4603 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
4582 pathOffset += 9; 4604 pathOffset += 9;
4583 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq uals("myconfig/syncVolumeLicenses")); 4605 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq uals("myconfig/syncVolumeLicenses"));
(...skipping 21 matching lines...) Expand all
4605 unittest.expect(queryMap["features"], unittest.equals(arg_features)); 4627 unittest.expect(queryMap["features"], unittest.equals(arg_features));
4606 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 4628 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
4607 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders")); 4629 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders"));
4608 unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds)); 4630 unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds));
4609 4631
4610 4632
4611 var h = { 4633 var h = {
4612 "content-type" : "application/json; charset=utf-8", 4634 "content-type" : "application/json; charset=utf-8",
4613 }; 4635 };
4614 var resp = convert.JSON.encode(buildVolumes()); 4636 var resp = convert.JSON.encode(buildVolumes());
4615 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4637 return new async.Future.value(stringResponse(200, h, resp));
4616 }), true); 4638 }), true);
4617 res.syncVolumeLicenses(arg_source, arg_nonce, arg_cpksver, features: arg_f eatures, locale: arg_locale, showPreorders: arg_showPreorders, volumeIds: arg_vo lumeIds).then(unittest.expectAsync(((api.Volumes response) { 4639 res.syncVolumeLicenses(arg_source, arg_nonce, arg_cpksver, features: arg_f eatures, locale: arg_locale, showPreorders: arg_showPreorders, volumeIds: arg_vo lumeIds).then(unittest.expectAsync(((api.Volumes response) {
4618 checkVolumes(response); 4640 checkVolumes(response);
4619 }))); 4641 })));
4620 }); 4642 });
4621 4643
4622 unittest.test("method--updateUserSettings", () { 4644 unittest.test("method--updateUserSettings", () {
4623 4645
4624 var mock = new common_test.HttpServerMock(); 4646 var mock = new HttpServerMock();
4625 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; 4647 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
4626 var arg_request = buildUsersettings(); 4648 var arg_request = buildUsersettings();
4627 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4649 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4628 var obj = new api.Usersettings.fromJson(json); 4650 var obj = new api.Usersettings.fromJson(json);
4629 checkUsersettings(obj); 4651 checkUsersettings(obj);
4630 4652
4631 var path = (req.url).path; 4653 var path = (req.url).path;
4632 var pathOffset = 0; 4654 var pathOffset = 0;
4633 var index; 4655 var index;
4634 var subPart; 4656 var subPart;
(...skipping 19 matching lines...) Expand all
4654 var keyvalue = part.split("="); 4676 var keyvalue = part.split("=");
4655 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4677 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4656 } 4678 }
4657 } 4679 }
4658 4680
4659 4681
4660 var h = { 4682 var h = {
4661 "content-type" : "application/json; charset=utf-8", 4683 "content-type" : "application/json; charset=utf-8",
4662 }; 4684 };
4663 var resp = convert.JSON.encode(buildUsersettings()); 4685 var resp = convert.JSON.encode(buildUsersettings());
4664 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4686 return new async.Future.value(stringResponse(200, h, resp));
4665 }), true); 4687 }), true);
4666 res.updateUserSettings(arg_request).then(unittest.expectAsync(((api.Userse ttings response) { 4688 res.updateUserSettings(arg_request).then(unittest.expectAsync(((api.Userse ttings response) {
4667 checkUsersettings(response); 4689 checkUsersettings(response);
4668 }))); 4690 })));
4669 }); 4691 });
4670 4692
4671 }); 4693 });
4672 4694
4673 4695
4674 unittest.group("resource-MylibraryAnnotationsResourceApi", () { 4696 unittest.group("resource-MylibraryAnnotationsResourceApi", () {
4675 unittest.test("method--delete", () { 4697 unittest.test("method--delete", () {
4676 4698
4677 var mock = new common_test.HttpServerMock(); 4699 var mock = new HttpServerMock();
4678 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations; 4700 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4679 var arg_annotationId = "foo"; 4701 var arg_annotationId = "foo";
4680 var arg_source = "foo"; 4702 var arg_source = "foo";
4681 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4703 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4682 var path = (req.url).path; 4704 var path = (req.url).path;
4683 var pathOffset = 0; 4705 var pathOffset = 0;
4684 var index; 4706 var index;
4685 var subPart; 4707 var subPart;
4686 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4708 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4687 pathOffset += 1; 4709 pathOffset += 1;
(...skipping 21 matching lines...) Expand all
4709 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4731 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4710 } 4732 }
4711 } 4733 }
4712 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4734 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4713 4735
4714 4736
4715 var h = { 4737 var h = {
4716 "content-type" : "application/json; charset=utf-8", 4738 "content-type" : "application/json; charset=utf-8",
4717 }; 4739 };
4718 var resp = ""; 4740 var resp = "";
4719 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4741 return new async.Future.value(stringResponse(200, h, resp));
4720 }), true); 4742 }), true);
4721 res.delete(arg_annotationId, source: arg_source).then(unittest.expectAsync ((_) {})); 4743 res.delete(arg_annotationId, source: arg_source).then(unittest.expectAsync ((_) {}));
4722 }); 4744 });
4723 4745
4724 unittest.test("method--get", () {
4725
4726 var mock = new common_test.HttpServerMock();
4727 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4728 var arg_annotationId = "foo";
4729 var arg_source = "foo";
4730 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4731 var path = (req.url).path;
4732 var pathOffset = 0;
4733 var index;
4734 var subPart;
4735 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4736 pathOffset += 1;
4737 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
4738 pathOffset += 9;
4739 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("mylibrary/annotations/"));
4740 pathOffset += 22;
4741 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4742 pathOffset = path.length;
4743 unittest.expect(subPart, unittest.equals("$arg_annotationId"));
4744
4745 var query = (req.url).query;
4746 var queryOffset = 0;
4747 var queryMap = {};
4748 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4749 parseBool(n) {
4750 if (n == "true") return true;
4751 if (n == "false") return false;
4752 if (n == null) return null;
4753 throw new core.ArgumentError("Invalid boolean: $n");
4754 }
4755 if (query.length > 0) {
4756 for (var part in query.split("&")) {
4757 var keyvalue = part.split("=");
4758 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4759 }
4760 }
4761 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4762
4763
4764 var h = {
4765 "content-type" : "application/json; charset=utf-8",
4766 };
4767 var resp = convert.JSON.encode(buildAnnotation());
4768 return new async.Future.value(common_test.stringResponse(200, h, resp));
4769 }), true);
4770 res.get(arg_annotationId, source: arg_source).then(unittest.expectAsync((( api.Annotation response) {
4771 checkAnnotation(response);
4772 })));
4773 });
4774
4775 unittest.test("method--insert", () { 4746 unittest.test("method--insert", () {
4776 4747
4777 var mock = new common_test.HttpServerMock(); 4748 var mock = new HttpServerMock();
4778 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations; 4749 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4779 var arg_request = buildAnnotation(); 4750 var arg_request = buildAnnotation();
4780 var arg_country = "foo"; 4751 var arg_country = "foo";
4781 var arg_showOnlySummaryInResponse = true; 4752 var arg_showOnlySummaryInResponse = true;
4782 var arg_source = "foo"; 4753 var arg_source = "foo";
4783 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4754 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4784 var obj = new api.Annotation.fromJson(json); 4755 var obj = new api.Annotation.fromJson(json);
4785 checkAnnotation(obj); 4756 checkAnnotation(obj);
4786 4757
4787 var path = (req.url).path; 4758 var path = (req.url).path;
(...skipping 25 matching lines...) Expand all
4813 } 4784 }
4814 unittest.expect(queryMap["country"].first, unittest.equals(arg_country)) ; 4785 unittest.expect(queryMap["country"].first, unittest.equals(arg_country)) ;
4815 unittest.expect(queryMap["showOnlySummaryInResponse"].first, unittest.eq uals("$arg_showOnlySummaryInResponse")); 4786 unittest.expect(queryMap["showOnlySummaryInResponse"].first, unittest.eq uals("$arg_showOnlySummaryInResponse"));
4816 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4787 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4817 4788
4818 4789
4819 var h = { 4790 var h = {
4820 "content-type" : "application/json; charset=utf-8", 4791 "content-type" : "application/json; charset=utf-8",
4821 }; 4792 };
4822 var resp = convert.JSON.encode(buildAnnotation()); 4793 var resp = convert.JSON.encode(buildAnnotation());
4823 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4794 return new async.Future.value(stringResponse(200, h, resp));
4824 }), true); 4795 }), true);
4825 res.insert(arg_request, country: arg_country, showOnlySummaryInResponse: a rg_showOnlySummaryInResponse, source: arg_source).then(unittest.expectAsync(((ap i.Annotation response) { 4796 res.insert(arg_request, country: arg_country, showOnlySummaryInResponse: a rg_showOnlySummaryInResponse, source: arg_source).then(unittest.expectAsync(((ap i.Annotation response) {
4826 checkAnnotation(response); 4797 checkAnnotation(response);
4827 }))); 4798 })));
4828 }); 4799 });
4829 4800
4830 unittest.test("method--list", () { 4801 unittest.test("method--list", () {
4831 4802
4832 var mock = new common_test.HttpServerMock(); 4803 var mock = new HttpServerMock();
4833 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations; 4804 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4834 var arg_contentVersion = "foo"; 4805 var arg_contentVersion = "foo";
4835 var arg_layerId = "foo"; 4806 var arg_layerId = "foo";
4836 var arg_layerIds = buildUnnamed841(); 4807 var arg_layerIds = buildUnnamed363();
4837 var arg_maxResults = 42; 4808 var arg_maxResults = 42;
4838 var arg_pageIds = buildUnnamed842();
4839 var arg_pageToken = "foo"; 4809 var arg_pageToken = "foo";
4840 var arg_showDeleted = true; 4810 var arg_showDeleted = true;
4841 var arg_source = "foo"; 4811 var arg_source = "foo";
4842 var arg_updatedMax = "foo"; 4812 var arg_updatedMax = "foo";
4843 var arg_updatedMin = "foo"; 4813 var arg_updatedMin = "foo";
4844 var arg_volumeId = "foo"; 4814 var arg_volumeId = "foo";
4845 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4815 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4846 var path = (req.url).path; 4816 var path = (req.url).path;
4847 var pathOffset = 0; 4817 var pathOffset = 0;
4848 var index; 4818 var index;
(...skipping 18 matching lines...) Expand all
4867 if (query.length > 0) { 4837 if (query.length > 0) {
4868 for (var part in query.split("&")) { 4838 for (var part in query.split("&")) {
4869 var keyvalue = part.split("="); 4839 var keyvalue = part.split("=");
4870 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4840 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4871 } 4841 }
4872 } 4842 }
4873 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion)); 4843 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion));
4874 unittest.expect(queryMap["layerId"].first, unittest.equals(arg_layerId)) ; 4844 unittest.expect(queryMap["layerId"].first, unittest.equals(arg_layerId)) ;
4875 unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds)); 4845 unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds));
4876 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 4846 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
4877 unittest.expect(queryMap["pageIds"], unittest.equals(arg_pageIds));
4878 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4847 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4879 unittest.expect(queryMap["showDeleted"].first, unittest.equals("$arg_sho wDeleted")); 4848 unittest.expect(queryMap["showDeleted"].first, unittest.equals("$arg_sho wDeleted"));
4880 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4849 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4881 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax)); 4850 unittest.expect(queryMap["updatedMax"].first, unittest.equals(arg_update dMax));
4882 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin)); 4851 unittest.expect(queryMap["updatedMin"].first, unittest.equals(arg_update dMin));
4883 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 4852 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
4884 4853
4885 4854
4886 var h = { 4855 var h = {
4887 "content-type" : "application/json; charset=utf-8", 4856 "content-type" : "application/json; charset=utf-8",
4888 }; 4857 };
4889 var resp = convert.JSON.encode(buildAnnotations()); 4858 var resp = convert.JSON.encode(buildAnnotations());
4890 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4859 return new async.Future.value(stringResponse(200, h, resp));
4891 }), true); 4860 }), true);
4892 res.list(contentVersion: arg_contentVersion, layerId: arg_layerId, layerId s: arg_layerIds, maxResults: arg_maxResults, pageIds: arg_pageIds, pageToken: ar g_pageToken, showDeleted: arg_showDeleted, source: arg_source, updatedMax: arg_u pdatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId).then(unittest.exp ectAsync(((api.Annotations response) { 4861 res.list(contentVersion: arg_contentVersion, layerId: arg_layerId, layerId s: arg_layerIds, maxResults: arg_maxResults, pageToken: arg_pageToken, showDelet ed: arg_showDeleted, source: arg_source, updatedMax: arg_updatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId).then(unittest.expectAsync(((api.Annotat ions response) {
4893 checkAnnotations(response); 4862 checkAnnotations(response);
4894 }))); 4863 })));
4895 }); 4864 });
4896 4865
4897 unittest.test("method--summary", () { 4866 unittest.test("method--summary", () {
4898 4867
4899 var mock = new common_test.HttpServerMock(); 4868 var mock = new HttpServerMock();
4900 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations; 4869 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4901 var arg_layerIds = buildUnnamed843(); 4870 var arg_layerIds = buildUnnamed364();
4902 var arg_volumeId = "foo"; 4871 var arg_volumeId = "foo";
4903 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4872 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4904 var path = (req.url).path; 4873 var path = (req.url).path;
4905 var pathOffset = 0; 4874 var pathOffset = 0;
4906 var index; 4875 var index;
4907 var subPart; 4876 var subPart;
4908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4877 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4909 pathOffset += 1; 4878 pathOffset += 1;
4910 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 4879 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
4911 pathOffset += 9; 4880 pathOffset += 9;
(...skipping 17 matching lines...) Expand all
4929 } 4898 }
4930 } 4899 }
4931 unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds)); 4900 unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds));
4932 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 4901 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
4933 4902
4934 4903
4935 var h = { 4904 var h = {
4936 "content-type" : "application/json; charset=utf-8", 4905 "content-type" : "application/json; charset=utf-8",
4937 }; 4906 };
4938 var resp = convert.JSON.encode(buildAnnotationsSummary()); 4907 var resp = convert.JSON.encode(buildAnnotationsSummary());
4939 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4908 return new async.Future.value(stringResponse(200, h, resp));
4940 }), true); 4909 }), true);
4941 res.summary(arg_layerIds, arg_volumeId).then(unittest.expectAsync(((api.An notationsSummary response) { 4910 res.summary(arg_layerIds, arg_volumeId).then(unittest.expectAsync(((api.An notationsSummary response) {
4942 checkAnnotationsSummary(response); 4911 checkAnnotationsSummary(response);
4943 }))); 4912 })));
4944 }); 4913 });
4945 4914
4946 unittest.test("method--update", () { 4915 unittest.test("method--update", () {
4947 4916
4948 var mock = new common_test.HttpServerMock(); 4917 var mock = new HttpServerMock();
4949 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations; 4918 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary .annotations;
4950 var arg_request = buildAnnotation(); 4919 var arg_request = buildAnnotation();
4951 var arg_annotationId = "foo"; 4920 var arg_annotationId = "foo";
4952 var arg_source = "foo"; 4921 var arg_source = "foo";
4953 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4922 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4954 var obj = new api.Annotation.fromJson(json); 4923 var obj = new api.Annotation.fromJson(json);
4955 checkAnnotation(obj); 4924 checkAnnotation(obj);
4956 4925
4957 var path = (req.url).path; 4926 var path = (req.url).path;
4958 var pathOffset = 0; 4927 var pathOffset = 0;
(...skipping 25 matching lines...) Expand all
4984 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4953 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4985 } 4954 }
4986 } 4955 }
4987 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 4956 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
4988 4957
4989 4958
4990 var h = { 4959 var h = {
4991 "content-type" : "application/json; charset=utf-8", 4960 "content-type" : "application/json; charset=utf-8",
4992 }; 4961 };
4993 var resp = convert.JSON.encode(buildAnnotation()); 4962 var resp = convert.JSON.encode(buildAnnotation());
4994 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4963 return new async.Future.value(stringResponse(200, h, resp));
4995 }), true); 4964 }), true);
4996 res.update(arg_request, arg_annotationId, source: arg_source).then(unittes t.expectAsync(((api.Annotation response) { 4965 res.update(arg_request, arg_annotationId, source: arg_source).then(unittes t.expectAsync(((api.Annotation response) {
4997 checkAnnotation(response); 4966 checkAnnotation(response);
4998 }))); 4967 })));
4999 }); 4968 });
5000 4969
5001 }); 4970 });
5002 4971
5003 4972
5004 unittest.group("resource-MylibraryBookshelvesResourceApi", () { 4973 unittest.group("resource-MylibraryBookshelvesResourceApi", () {
5005 unittest.test("method--addVolume", () { 4974 unittest.test("method--addVolume", () {
5006 4975
5007 var mock = new common_test.HttpServerMock(); 4976 var mock = new HttpServerMock();
5008 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 4977 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5009 var arg_shelf = "foo"; 4978 var arg_shelf = "foo";
5010 var arg_volumeId = "foo"; 4979 var arg_volumeId = "foo";
5011 var arg_reason = "foo"; 4980 var arg_reason = "foo";
5012 var arg_source = "foo"; 4981 var arg_source = "foo";
5013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4982 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5014 var path = (req.url).path; 4983 var path = (req.url).path;
5015 var pathOffset = 0; 4984 var pathOffset = 0;
5016 var index; 4985 var index;
5017 var subPart; 4986 var subPart;
(...skipping 29 matching lines...) Expand all
5047 } 5016 }
5048 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 5017 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
5049 unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason)); 5018 unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason));
5050 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5019 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5051 5020
5052 5021
5053 var h = { 5022 var h = {
5054 "content-type" : "application/json; charset=utf-8", 5023 "content-type" : "application/json; charset=utf-8",
5055 }; 5024 };
5056 var resp = ""; 5025 var resp = "";
5057 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5026 return new async.Future.value(stringResponse(200, h, resp));
5058 }), true); 5027 }), true);
5059 res.addVolume(arg_shelf, arg_volumeId, reason: arg_reason, source: arg_sou rce).then(unittest.expectAsync((_) {})); 5028 res.addVolume(arg_shelf, arg_volumeId, reason: arg_reason, source: arg_sou rce).then(unittest.expectAsync((_) {}));
5060 }); 5029 });
5061 5030
5062 unittest.test("method--clearVolumes", () { 5031 unittest.test("method--clearVolumes", () {
5063 5032
5064 var mock = new common_test.HttpServerMock(); 5033 var mock = new HttpServerMock();
5065 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 5034 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5066 var arg_shelf = "foo"; 5035 var arg_shelf = "foo";
5067 var arg_source = "foo"; 5036 var arg_source = "foo";
5068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5037 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5069 var path = (req.url).path; 5038 var path = (req.url).path;
5070 var pathOffset = 0; 5039 var pathOffset = 0;
5071 var index; 5040 var index;
5072 var subPart; 5041 var subPart;
5073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5042 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5074 pathOffset += 1; 5043 pathOffset += 1;
(...skipping 25 matching lines...) Expand all
5100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5069 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5101 } 5070 }
5102 } 5071 }
5103 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5072 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5104 5073
5105 5074
5106 var h = { 5075 var h = {
5107 "content-type" : "application/json; charset=utf-8", 5076 "content-type" : "application/json; charset=utf-8",
5108 }; 5077 };
5109 var resp = ""; 5078 var resp = "";
5110 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5079 return new async.Future.value(stringResponse(200, h, resp));
5111 }), true); 5080 }), true);
5112 res.clearVolumes(arg_shelf, source: arg_source).then(unittest.expectAsync( (_) {})); 5081 res.clearVolumes(arg_shelf, source: arg_source).then(unittest.expectAsync( (_) {}));
5113 }); 5082 });
5114 5083
5115 unittest.test("method--get", () { 5084 unittest.test("method--get", () {
5116 5085
5117 var mock = new common_test.HttpServerMock(); 5086 var mock = new HttpServerMock();
5118 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 5087 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5119 var arg_shelf = "foo"; 5088 var arg_shelf = "foo";
5120 var arg_source = "foo"; 5089 var arg_source = "foo";
5121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5090 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5122 var path = (req.url).path; 5091 var path = (req.url).path;
5123 var pathOffset = 0; 5092 var pathOffset = 0;
5124 var index; 5093 var index;
5125 var subPart; 5094 var subPart;
5126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5095 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5127 pathOffset += 1; 5096 pathOffset += 1;
(...skipping 21 matching lines...) Expand all
5149 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5118 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5150 } 5119 }
5151 } 5120 }
5152 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5121 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5153 5122
5154 5123
5155 var h = { 5124 var h = {
5156 "content-type" : "application/json; charset=utf-8", 5125 "content-type" : "application/json; charset=utf-8",
5157 }; 5126 };
5158 var resp = convert.JSON.encode(buildBookshelf()); 5127 var resp = convert.JSON.encode(buildBookshelf());
5159 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5128 return new async.Future.value(stringResponse(200, h, resp));
5160 }), true); 5129 }), true);
5161 res.get(arg_shelf, source: arg_source).then(unittest.expectAsync(((api.Boo kshelf response) { 5130 res.get(arg_shelf, source: arg_source).then(unittest.expectAsync(((api.Boo kshelf response) {
5162 checkBookshelf(response); 5131 checkBookshelf(response);
5163 }))); 5132 })));
5164 }); 5133 });
5165 5134
5166 unittest.test("method--list", () { 5135 unittest.test("method--list", () {
5167 5136
5168 var mock = new common_test.HttpServerMock(); 5137 var mock = new HttpServerMock();
5169 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 5138 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5170 var arg_source = "foo"; 5139 var arg_source = "foo";
5171 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5140 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5172 var path = (req.url).path; 5141 var path = (req.url).path;
5173 var pathOffset = 0; 5142 var pathOffset = 0;
5174 var index; 5143 var index;
5175 var subPart; 5144 var subPart;
5176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5177 pathOffset += 1; 5146 pathOffset += 1;
5178 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 5147 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
(...skipping 17 matching lines...) Expand all
5196 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5165 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5197 } 5166 }
5198 } 5167 }
5199 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5168 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5200 5169
5201 5170
5202 var h = { 5171 var h = {
5203 "content-type" : "application/json; charset=utf-8", 5172 "content-type" : "application/json; charset=utf-8",
5204 }; 5173 };
5205 var resp = convert.JSON.encode(buildBookshelves()); 5174 var resp = convert.JSON.encode(buildBookshelves());
5206 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5175 return new async.Future.value(stringResponse(200, h, resp));
5207 }), true); 5176 }), true);
5208 res.list(source: arg_source).then(unittest.expectAsync(((api.Bookshelves r esponse) { 5177 res.list(source: arg_source).then(unittest.expectAsync(((api.Bookshelves r esponse) {
5209 checkBookshelves(response); 5178 checkBookshelves(response);
5210 }))); 5179 })));
5211 }); 5180 });
5212 5181
5213 unittest.test("method--moveVolume", () { 5182 unittest.test("method--moveVolume", () {
5214 5183
5215 var mock = new common_test.HttpServerMock(); 5184 var mock = new HttpServerMock();
5216 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 5185 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5217 var arg_shelf = "foo"; 5186 var arg_shelf = "foo";
5218 var arg_volumeId = "foo"; 5187 var arg_volumeId = "foo";
5219 var arg_volumePosition = 42; 5188 var arg_volumePosition = 42;
5220 var arg_source = "foo"; 5189 var arg_source = "foo";
5221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5190 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5222 var path = (req.url).path; 5191 var path = (req.url).path;
5223 var pathOffset = 0; 5192 var pathOffset = 0;
5224 var index; 5193 var index;
5225 var subPart; 5194 var subPart;
(...skipping 29 matching lines...) Expand all
5255 } 5224 }
5256 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 5225 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
5257 unittest.expect(core.int.parse(queryMap["volumePosition"].first), unitte st.equals(arg_volumePosition)); 5226 unittest.expect(core.int.parse(queryMap["volumePosition"].first), unitte st.equals(arg_volumePosition));
5258 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5227 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5259 5228
5260 5229
5261 var h = { 5230 var h = {
5262 "content-type" : "application/json; charset=utf-8", 5231 "content-type" : "application/json; charset=utf-8",
5263 }; 5232 };
5264 var resp = ""; 5233 var resp = "";
5265 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5234 return new async.Future.value(stringResponse(200, h, resp));
5266 }), true); 5235 }), true);
5267 res.moveVolume(arg_shelf, arg_volumeId, arg_volumePosition, source: arg_so urce).then(unittest.expectAsync((_) {})); 5236 res.moveVolume(arg_shelf, arg_volumeId, arg_volumePosition, source: arg_so urce).then(unittest.expectAsync((_) {}));
5268 }); 5237 });
5269 5238
5270 unittest.test("method--removeVolume", () { 5239 unittest.test("method--removeVolume", () {
5271 5240
5272 var mock = new common_test.HttpServerMock(); 5241 var mock = new HttpServerMock();
5273 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves; 5242 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary .bookshelves;
5274 var arg_shelf = "foo"; 5243 var arg_shelf = "foo";
5275 var arg_volumeId = "foo"; 5244 var arg_volumeId = "foo";
5276 var arg_reason = "foo"; 5245 var arg_reason = "foo";
5277 var arg_source = "foo"; 5246 var arg_source = "foo";
5278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5247 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5279 var path = (req.url).path; 5248 var path = (req.url).path;
5280 var pathOffset = 0; 5249 var pathOffset = 0;
5281 var index; 5250 var index;
5282 var subPart; 5251 var subPart;
(...skipping 29 matching lines...) Expand all
5312 } 5281 }
5313 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 5282 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
5314 unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason)); 5283 unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason));
5315 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5284 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5316 5285
5317 5286
5318 var h = { 5287 var h = {
5319 "content-type" : "application/json; charset=utf-8", 5288 "content-type" : "application/json; charset=utf-8",
5320 }; 5289 };
5321 var resp = ""; 5290 var resp = "";
5322 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5291 return new async.Future.value(stringResponse(200, h, resp));
5323 }), true); 5292 }), true);
5324 res.removeVolume(arg_shelf, arg_volumeId, reason: arg_reason, source: arg_ source).then(unittest.expectAsync((_) {})); 5293 res.removeVolume(arg_shelf, arg_volumeId, reason: arg_reason, source: arg_ source).then(unittest.expectAsync((_) {}));
5325 }); 5294 });
5326 5295
5327 }); 5296 });
5328 5297
5329 5298
5330 unittest.group("resource-MylibraryBookshelvesVolumesResourceApi", () { 5299 unittest.group("resource-MylibraryBookshelvesVolumesResourceApi", () {
5331 unittest.test("method--list", () { 5300 unittest.test("method--list", () {
5332 5301
5333 var mock = new common_test.HttpServerMock(); 5302 var mock = new HttpServerMock();
5334 api.MylibraryBookshelvesVolumesResourceApi res = new api.BooksApi(mock).my library.bookshelves.volumes; 5303 api.MylibraryBookshelvesVolumesResourceApi res = new api.BooksApi(mock).my library.bookshelves.volumes;
5335 var arg_shelf = "foo"; 5304 var arg_shelf = "foo";
5336 var arg_country = "foo"; 5305 var arg_country = "foo";
5337 var arg_maxResults = 42; 5306 var arg_maxResults = 42;
5338 var arg_projection = "foo"; 5307 var arg_projection = "foo";
5339 var arg_q = "foo"; 5308 var arg_q = "foo";
5340 var arg_showPreorders = true; 5309 var arg_showPreorders = true;
5341 var arg_source = "foo"; 5310 var arg_source = "foo";
5342 var arg_startIndex = 42; 5311 var arg_startIndex = 42;
5343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5312 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
5381 unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); 5350 unittest.expect(queryMap["q"].first, unittest.equals(arg_q));
5382 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders")); 5351 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders"));
5383 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5352 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5384 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 5353 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
5385 5354
5386 5355
5387 var h = { 5356 var h = {
5388 "content-type" : "application/json; charset=utf-8", 5357 "content-type" : "application/json; charset=utf-8",
5389 }; 5358 };
5390 var resp = convert.JSON.encode(buildVolumes()); 5359 var resp = convert.JSON.encode(buildVolumes());
5391 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5360 return new async.Future.value(stringResponse(200, h, resp));
5392 }), true); 5361 }), true);
5393 res.list(arg_shelf, country: arg_country, maxResults: arg_maxResults, proj ection: arg_projection, q: arg_q, showPreorders: arg_showPreorders, source: arg_ source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes resp onse) { 5362 res.list(arg_shelf, country: arg_country, maxResults: arg_maxResults, proj ection: arg_projection, q: arg_q, showPreorders: arg_showPreorders, source: arg_ source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes resp onse) {
5394 checkVolumes(response); 5363 checkVolumes(response);
5395 }))); 5364 })));
5396 }); 5365 });
5397 5366
5398 }); 5367 });
5399 5368
5400 5369
5401 unittest.group("resource-MylibraryReadingpositionsResourceApi", () { 5370 unittest.group("resource-MylibraryReadingpositionsResourceApi", () {
5402 unittest.test("method--get", () { 5371 unittest.test("method--get", () {
5403 5372
5404 var mock = new common_test.HttpServerMock(); 5373 var mock = new HttpServerMock();
5405 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli brary.readingpositions; 5374 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli brary.readingpositions;
5406 var arg_volumeId = "foo"; 5375 var arg_volumeId = "foo";
5407 var arg_contentVersion = "foo"; 5376 var arg_contentVersion = "foo";
5408 var arg_source = "foo"; 5377 var arg_source = "foo";
5409 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5378 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5410 var path = (req.url).path; 5379 var path = (req.url).path;
5411 var pathOffset = 0; 5380 var pathOffset = 0;
5412 var index; 5381 var index;
5413 var subPart; 5382 var subPart;
5414 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 23 matching lines...) Expand all
5438 } 5407 }
5439 } 5408 }
5440 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion)); 5409 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion));
5441 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5410 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5442 5411
5443 5412
5444 var h = { 5413 var h = {
5445 "content-type" : "application/json; charset=utf-8", 5414 "content-type" : "application/json; charset=utf-8",
5446 }; 5415 };
5447 var resp = convert.JSON.encode(buildReadingPosition()); 5416 var resp = convert.JSON.encode(buildReadingPosition());
5448 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5417 return new async.Future.value(stringResponse(200, h, resp));
5449 }), true); 5418 }), true);
5450 res.get(arg_volumeId, contentVersion: arg_contentVersion, source: arg_sour ce).then(unittest.expectAsync(((api.ReadingPosition response) { 5419 res.get(arg_volumeId, contentVersion: arg_contentVersion, source: arg_sour ce).then(unittest.expectAsync(((api.ReadingPosition response) {
5451 checkReadingPosition(response); 5420 checkReadingPosition(response);
5452 }))); 5421 })));
5453 }); 5422 });
5454 5423
5455 unittest.test("method--setPosition", () { 5424 unittest.test("method--setPosition", () {
5456 5425
5457 var mock = new common_test.HttpServerMock(); 5426 var mock = new HttpServerMock();
5458 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli brary.readingpositions; 5427 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli brary.readingpositions;
5459 var arg_volumeId = "foo"; 5428 var arg_volumeId = "foo";
5460 var arg_timestamp = "foo"; 5429 var arg_timestamp = "foo";
5461 var arg_position = "foo"; 5430 var arg_position = "foo";
5462 var arg_action = "foo"; 5431 var arg_action = "foo";
5463 var arg_contentVersion = "foo"; 5432 var arg_contentVersion = "foo";
5464 var arg_deviceCookie = "foo"; 5433 var arg_deviceCookie = "foo";
5465 var arg_source = "foo"; 5434 var arg_source = "foo";
5466 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5435 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5467 var path = (req.url).path; 5436 var path = (req.url).path;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5503 unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); 5472 unittest.expect(queryMap["action"].first, unittest.equals(arg_action));
5504 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion)); 5473 unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_co ntentVersion));
5505 unittest.expect(queryMap["deviceCookie"].first, unittest.equals(arg_devi ceCookie)); 5474 unittest.expect(queryMap["deviceCookie"].first, unittest.equals(arg_devi ceCookie));
5506 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5475 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5507 5476
5508 5477
5509 var h = { 5478 var h = {
5510 "content-type" : "application/json; charset=utf-8", 5479 "content-type" : "application/json; charset=utf-8",
5511 }; 5480 };
5512 var resp = ""; 5481 var resp = "";
5513 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5482 return new async.Future.value(stringResponse(200, h, resp));
5514 }), true); 5483 }), true);
5515 res.setPosition(arg_volumeId, arg_timestamp, arg_position, action: arg_act ion, contentVersion: arg_contentVersion, deviceCookie: arg_deviceCookie, source: arg_source).then(unittest.expectAsync((_) {})); 5484 res.setPosition(arg_volumeId, arg_timestamp, arg_position, action: arg_act ion, contentVersion: arg_contentVersion, deviceCookie: arg_deviceCookie, source: arg_source).then(unittest.expectAsync((_) {}));
5516 }); 5485 });
5517 5486
5518 }); 5487 });
5519 5488
5520 5489
5521 unittest.group("resource-OnboardingResourceApi", () { 5490 unittest.group("resource-OnboardingResourceApi", () {
5522 unittest.test("method--listCategories", () { 5491 unittest.test("method--listCategories", () {
5523 5492
5524 var mock = new common_test.HttpServerMock(); 5493 var mock = new HttpServerMock();
5525 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; 5494 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding;
5526 var arg_locale = "foo"; 5495 var arg_locale = "foo";
5527 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5496 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5528 var path = (req.url).path; 5497 var path = (req.url).path;
5529 var pathOffset = 0; 5498 var pathOffset = 0;
5530 var index; 5499 var index;
5531 var subPart; 5500 var subPart;
5532 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5533 pathOffset += 1; 5502 pathOffset += 1;
5534 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 5503 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
(...skipping 17 matching lines...) Expand all
5552 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5521 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5553 } 5522 }
5554 } 5523 }
5555 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 5524 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
5556 5525
5557 5526
5558 var h = { 5527 var h = {
5559 "content-type" : "application/json; charset=utf-8", 5528 "content-type" : "application/json; charset=utf-8",
5560 }; 5529 };
5561 var resp = convert.JSON.encode(buildCategory()); 5530 var resp = convert.JSON.encode(buildCategory());
5562 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5531 return new async.Future.value(stringResponse(200, h, resp));
5563 }), true); 5532 }), true);
5564 res.listCategories(locale: arg_locale).then(unittest.expectAsync(((api.Cat egory response) { 5533 res.listCategories(locale: arg_locale).then(unittest.expectAsync(((api.Cat egory response) {
5565 checkCategory(response); 5534 checkCategory(response);
5566 }))); 5535 })));
5567 }); 5536 });
5568 5537
5569 unittest.test("method--listCategoryVolumes", () { 5538 unittest.test("method--listCategoryVolumes", () {
5570 5539
5571 var mock = new common_test.HttpServerMock(); 5540 var mock = new HttpServerMock();
5572 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; 5541 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding;
5573 var arg_categoryId = buildUnnamed844(); 5542 var arg_categoryId = buildUnnamed365();
5574 var arg_locale = "foo"; 5543 var arg_locale = "foo";
5575 var arg_pageSize = 42; 5544 var arg_pageSize = 42;
5576 var arg_pageToken = "foo"; 5545 var arg_pageToken = "foo";
5577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5546 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5578 var path = (req.url).path; 5547 var path = (req.url).path;
5579 var pathOffset = 0; 5548 var pathOffset = 0;
5580 var index; 5549 var index;
5581 var subPart; 5550 var subPart;
5582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5551 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5583 pathOffset += 1; 5552 pathOffset += 1;
(...skipping 21 matching lines...) Expand all
5605 unittest.expect(queryMap["categoryId"], unittest.equals(arg_categoryId)) ; 5574 unittest.expect(queryMap["categoryId"], unittest.equals(arg_categoryId)) ;
5606 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 5575 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
5607 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 5576 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
5608 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 5577 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5609 5578
5610 5579
5611 var h = { 5580 var h = {
5612 "content-type" : "application/json; charset=utf-8", 5581 "content-type" : "application/json; charset=utf-8",
5613 }; 5582 };
5614 var resp = convert.JSON.encode(buildVolume2()); 5583 var resp = convert.JSON.encode(buildVolume2());
5615 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5584 return new async.Future.value(stringResponse(200, h, resp));
5616 }), true); 5585 }), true);
5617 res.listCategoryVolumes(categoryId: arg_categoryId, locale: arg_locale, pa geSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api. Volume2 response) { 5586 res.listCategoryVolumes(categoryId: arg_categoryId, locale: arg_locale, pa geSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api. Volume2 response) {
5618 checkVolume2(response); 5587 checkVolume2(response);
5619 }))); 5588 })));
5620 }); 5589 });
5621 5590
5622 }); 5591 });
5623 5592
5624 5593
5625 unittest.group("resource-PromoofferResourceApi", () { 5594 unittest.group("resource-PromoofferResourceApi", () {
5626 unittest.test("method--accept", () { 5595 unittest.test("method--accept", () {
5627 5596
5628 var mock = new common_test.HttpServerMock(); 5597 var mock = new HttpServerMock();
5629 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; 5598 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer;
5630 var arg_androidId = "foo"; 5599 var arg_androidId = "foo";
5631 var arg_device = "foo"; 5600 var arg_device = "foo";
5632 var arg_manufacturer = "foo"; 5601 var arg_manufacturer = "foo";
5633 var arg_model = "foo"; 5602 var arg_model = "foo";
5634 var arg_offerId = "foo"; 5603 var arg_offerId = "foo";
5635 var arg_product = "foo"; 5604 var arg_product = "foo";
5636 var arg_serial = "foo"; 5605 var arg_serial = "foo";
5637 var arg_volumeId = "foo"; 5606 var arg_volumeId = "foo";
5638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5607 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5670 unittest.expect(queryMap["offerId"].first, unittest.equals(arg_offerId)) ; 5639 unittest.expect(queryMap["offerId"].first, unittest.equals(arg_offerId)) ;
5671 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ; 5640 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ;
5672 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); 5641 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial));
5673 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 5642 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
5674 5643
5675 5644
5676 var h = { 5645 var h = {
5677 "content-type" : "application/json; charset=utf-8", 5646 "content-type" : "application/json; charset=utf-8",
5678 }; 5647 };
5679 var resp = ""; 5648 var resp = "";
5680 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5649 return new async.Future.value(stringResponse(200, h, resp));
5681 }), true); 5650 }), true);
5682 res.accept(androidId: arg_androidId, device: arg_device, manufacturer: arg _manufacturer, model: arg_model, offerId: arg_offerId, product: arg_product, ser ial: arg_serial, volumeId: arg_volumeId).then(unittest.expectAsync((_) {})); 5651 res.accept(androidId: arg_androidId, device: arg_device, manufacturer: arg _manufacturer, model: arg_model, offerId: arg_offerId, product: arg_product, ser ial: arg_serial, volumeId: arg_volumeId).then(unittest.expectAsync((_) {}));
5683 }); 5652 });
5684 5653
5685 unittest.test("method--dismiss", () { 5654 unittest.test("method--dismiss", () {
5686 5655
5687 var mock = new common_test.HttpServerMock(); 5656 var mock = new HttpServerMock();
5688 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; 5657 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer;
5689 var arg_androidId = "foo"; 5658 var arg_androidId = "foo";
5690 var arg_device = "foo"; 5659 var arg_device = "foo";
5691 var arg_manufacturer = "foo"; 5660 var arg_manufacturer = "foo";
5692 var arg_model = "foo"; 5661 var arg_model = "foo";
5693 var arg_offerId = "foo"; 5662 var arg_offerId = "foo";
5694 var arg_product = "foo"; 5663 var arg_product = "foo";
5695 var arg_serial = "foo"; 5664 var arg_serial = "foo";
5696 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5665 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5697 var path = (req.url).path; 5666 var path = (req.url).path;
(...skipping 29 matching lines...) Expand all
5727 unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); 5696 unittest.expect(queryMap["model"].first, unittest.equals(arg_model));
5728 unittest.expect(queryMap["offerId"].first, unittest.equals(arg_offerId)) ; 5697 unittest.expect(queryMap["offerId"].first, unittest.equals(arg_offerId)) ;
5729 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ; 5698 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ;
5730 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); 5699 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial));
5731 5700
5732 5701
5733 var h = { 5702 var h = {
5734 "content-type" : "application/json; charset=utf-8", 5703 "content-type" : "application/json; charset=utf-8",
5735 }; 5704 };
5736 var resp = ""; 5705 var resp = "";
5737 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5706 return new async.Future.value(stringResponse(200, h, resp));
5738 }), true); 5707 }), true);
5739 res.dismiss(androidId: arg_androidId, device: arg_device, manufacturer: ar g_manufacturer, model: arg_model, offerId: arg_offerId, product: arg_product, se rial: arg_serial).then(unittest.expectAsync((_) {})); 5708 res.dismiss(androidId: arg_androidId, device: arg_device, manufacturer: ar g_manufacturer, model: arg_model, offerId: arg_offerId, product: arg_product, se rial: arg_serial).then(unittest.expectAsync((_) {}));
5740 }); 5709 });
5741 5710
5742 unittest.test("method--get", () { 5711 unittest.test("method--get", () {
5743 5712
5744 var mock = new common_test.HttpServerMock(); 5713 var mock = new HttpServerMock();
5745 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; 5714 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer;
5746 var arg_androidId = "foo"; 5715 var arg_androidId = "foo";
5747 var arg_device = "foo"; 5716 var arg_device = "foo";
5748 var arg_manufacturer = "foo"; 5717 var arg_manufacturer = "foo";
5749 var arg_model = "foo"; 5718 var arg_model = "foo";
5750 var arg_product = "foo"; 5719 var arg_product = "foo";
5751 var arg_serial = "foo"; 5720 var arg_serial = "foo";
5752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5721 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5753 var path = (req.url).path; 5722 var path = (req.url).path;
5754 var pathOffset = 0; 5723 var pathOffset = 0;
(...skipping 27 matching lines...) Expand all
5782 unittest.expect(queryMap["manufacturer"].first, unittest.equals(arg_manu facturer)); 5751 unittest.expect(queryMap["manufacturer"].first, unittest.equals(arg_manu facturer));
5783 unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); 5752 unittest.expect(queryMap["model"].first, unittest.equals(arg_model));
5784 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ; 5753 unittest.expect(queryMap["product"].first, unittest.equals(arg_product)) ;
5785 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); 5754 unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial));
5786 5755
5787 5756
5788 var h = { 5757 var h = {
5789 "content-type" : "application/json; charset=utf-8", 5758 "content-type" : "application/json; charset=utf-8",
5790 }; 5759 };
5791 var resp = convert.JSON.encode(buildOffers()); 5760 var resp = convert.JSON.encode(buildOffers());
5792 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5761 return new async.Future.value(stringResponse(200, h, resp));
5793 }), true); 5762 }), true);
5794 res.get(androidId: arg_androidId, device: arg_device, manufacturer: arg_ma nufacturer, model: arg_model, product: arg_product, serial: arg_serial).then(uni ttest.expectAsync(((api.Offers response) { 5763 res.get(androidId: arg_androidId, device: arg_device, manufacturer: arg_ma nufacturer, model: arg_model, product: arg_product, serial: arg_serial).then(uni ttest.expectAsync(((api.Offers response) {
5795 checkOffers(response); 5764 checkOffers(response);
5796 }))); 5765 })));
5797 }); 5766 });
5798 5767
5799 }); 5768 });
5800 5769
5801 5770
5802 unittest.group("resource-VolumesResourceApi", () { 5771 unittest.group("resource-VolumesResourceApi", () {
5803 unittest.test("method--get", () { 5772 unittest.test("method--get", () {
5804 5773
5805 var mock = new common_test.HttpServerMock(); 5774 var mock = new HttpServerMock();
5806 api.VolumesResourceApi res = new api.BooksApi(mock).volumes; 5775 api.VolumesResourceApi res = new api.BooksApi(mock).volumes;
5807 var arg_volumeId = "foo"; 5776 var arg_volumeId = "foo";
5808 var arg_country = "foo"; 5777 var arg_country = "foo";
5809 var arg_partner = "foo"; 5778 var arg_partner = "foo";
5810 var arg_projection = "foo"; 5779 var arg_projection = "foo";
5811 var arg_source = "foo"; 5780 var arg_source = "foo";
5812 var arg_userLibraryConsistentRead = true; 5781 var arg_userLibraryConsistentRead = true;
5813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5782 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5814 var path = (req.url).path; 5783 var path = (req.url).path;
5815 var pathOffset = 0; 5784 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
5845 unittest.expect(queryMap["partner"].first, unittest.equals(arg_partner)) ; 5814 unittest.expect(queryMap["partner"].first, unittest.equals(arg_partner)) ;
5846 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion)); 5815 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion));
5847 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5816 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5848 unittest.expect(queryMap["user_library_consistent_read"].first, unittest .equals("$arg_userLibraryConsistentRead")); 5817 unittest.expect(queryMap["user_library_consistent_read"].first, unittest .equals("$arg_userLibraryConsistentRead"));
5849 5818
5850 5819
5851 var h = { 5820 var h = {
5852 "content-type" : "application/json; charset=utf-8", 5821 "content-type" : "application/json; charset=utf-8",
5853 }; 5822 };
5854 var resp = convert.JSON.encode(buildVolume()); 5823 var resp = convert.JSON.encode(buildVolume());
5855 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5824 return new async.Future.value(stringResponse(200, h, resp));
5856 }), true); 5825 }), true);
5857 res.get(arg_volumeId, country: arg_country, partner: arg_partner, projecti on: arg_projection, source: arg_source, userLibraryConsistentRead: arg_userLibra ryConsistentRead).then(unittest.expectAsync(((api.Volume response) { 5826 res.get(arg_volumeId, country: arg_country, partner: arg_partner, projecti on: arg_projection, source: arg_source, userLibraryConsistentRead: arg_userLibra ryConsistentRead).then(unittest.expectAsync(((api.Volume response) {
5858 checkVolume(response); 5827 checkVolume(response);
5859 }))); 5828 })));
5860 }); 5829 });
5861 5830
5862 unittest.test("method--list", () { 5831 unittest.test("method--list", () {
5863 5832
5864 var mock = new common_test.HttpServerMock(); 5833 var mock = new HttpServerMock();
5865 api.VolumesResourceApi res = new api.BooksApi(mock).volumes; 5834 api.VolumesResourceApi res = new api.BooksApi(mock).volumes;
5866 var arg_q = "foo"; 5835 var arg_q = "foo";
5867 var arg_download = "foo"; 5836 var arg_download = "foo";
5868 var arg_filter = "foo"; 5837 var arg_filter = "foo";
5869 var arg_langRestrict = "foo"; 5838 var arg_langRestrict = "foo";
5870 var arg_libraryRestrict = "foo"; 5839 var arg_libraryRestrict = "foo";
5871 var arg_maxResults = 42; 5840 var arg_maxResults = 42;
5872 var arg_orderBy = "foo"; 5841 var arg_orderBy = "foo";
5873 var arg_partner = "foo"; 5842 var arg_partner = "foo";
5874 var arg_printType = "foo"; 5843 var arg_printType = "foo";
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5916 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion)); 5885 unittest.expect(queryMap["projection"].first, unittest.equals(arg_projec tion));
5917 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders")); 5886 unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_s howPreorders"));
5918 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5887 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5919 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 5888 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
5920 5889
5921 5890
5922 var h = { 5891 var h = {
5923 "content-type" : "application/json; charset=utf-8", 5892 "content-type" : "application/json; charset=utf-8",
5924 }; 5893 };
5925 var resp = convert.JSON.encode(buildVolumes()); 5894 var resp = convert.JSON.encode(buildVolumes());
5926 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5895 return new async.Future.value(stringResponse(200, h, resp));
5927 }), true); 5896 }), true);
5928 res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxResults: arg_maxResul ts, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projec tion: arg_projection, showPreorders: arg_showPreorders, source: arg_source, star tIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { 5897 res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxResults: arg_maxResul ts, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projec tion: arg_projection, showPreorders: arg_showPreorders, source: arg_source, star tIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) {
5929 checkVolumes(response); 5898 checkVolumes(response);
5930 }))); 5899 })));
5931 }); 5900 });
5932 5901
5933 }); 5902 });
5934 5903
5935 5904
5936 unittest.group("resource-VolumesAssociatedResourceApi", () { 5905 unittest.group("resource-VolumesAssociatedResourceApi", () {
5937 unittest.test("method--list", () { 5906 unittest.test("method--list", () {
5938 5907
5939 var mock = new common_test.HttpServerMock(); 5908 var mock = new HttpServerMock();
5940 api.VolumesAssociatedResourceApi res = new api.BooksApi(mock).volumes.asso ciated; 5909 api.VolumesAssociatedResourceApi res = new api.BooksApi(mock).volumes.asso ciated;
5941 var arg_volumeId = "foo"; 5910 var arg_volumeId = "foo";
5942 var arg_association = "foo"; 5911 var arg_association = "foo";
5943 var arg_locale = "foo"; 5912 var arg_locale = "foo";
5944 var arg_source = "foo"; 5913 var arg_source = "foo";
5945 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5914 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5946 var path = (req.url).path; 5915 var path = (req.url).path;
5947 var pathOffset = 0; 5916 var pathOffset = 0;
5948 var index; 5917 var index;
5949 var subPart; 5918 var subPart;
(...skipping 29 matching lines...) Expand all
5979 } 5948 }
5980 unittest.expect(queryMap["association"].first, unittest.equals(arg_assoc iation)); 5949 unittest.expect(queryMap["association"].first, unittest.equals(arg_assoc iation));
5981 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 5950 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
5982 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 5951 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
5983 5952
5984 5953
5985 var h = { 5954 var h = {
5986 "content-type" : "application/json; charset=utf-8", 5955 "content-type" : "application/json; charset=utf-8",
5987 }; 5956 };
5988 var resp = convert.JSON.encode(buildVolumes()); 5957 var resp = convert.JSON.encode(buildVolumes());
5989 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5958 return new async.Future.value(stringResponse(200, h, resp));
5990 }), true); 5959 }), true);
5991 res.list(arg_volumeId, association: arg_association, locale: arg_locale, s ource: arg_source).then(unittest.expectAsync(((api.Volumes response) { 5960 res.list(arg_volumeId, association: arg_association, locale: arg_locale, s ource: arg_source).then(unittest.expectAsync(((api.Volumes response) {
5992 checkVolumes(response); 5961 checkVolumes(response);
5993 }))); 5962 })));
5994 }); 5963 });
5995 5964
5996 }); 5965 });
5997 5966
5998 5967
5999 unittest.group("resource-VolumesMybooksResourceApi", () { 5968 unittest.group("resource-VolumesMybooksResourceApi", () {
6000 unittest.test("method--list", () { 5969 unittest.test("method--list", () {
6001 5970
6002 var mock = new common_test.HttpServerMock(); 5971 var mock = new HttpServerMock();
6003 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks ; 5972 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks ;
6004 var arg_acquireMethod = buildUnnamed845(); 5973 var arg_acquireMethod = buildUnnamed366();
6005 var arg_locale = "foo"; 5974 var arg_locale = "foo";
6006 var arg_maxResults = 42; 5975 var arg_maxResults = 42;
6007 var arg_processingState = buildUnnamed846(); 5976 var arg_processingState = buildUnnamed367();
6008 var arg_source = "foo"; 5977 var arg_source = "foo";
6009 var arg_startIndex = 42; 5978 var arg_startIndex = 42;
6010 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5979 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6011 var path = (req.url).path; 5980 var path = (req.url).path;
6012 var pathOffset = 0; 5981 var pathOffset = 0;
6013 var index; 5982 var index;
6014 var subPart; 5983 var subPart;
6015 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6016 pathOffset += 1; 5985 pathOffset += 1;
6017 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 5986 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
(...skipping 22 matching lines...) Expand all
6040 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 6009 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
6041 unittest.expect(queryMap["processingState"], unittest.equals(arg_process ingState)); 6010 unittest.expect(queryMap["processingState"], unittest.equals(arg_process ingState));
6042 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 6011 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
6043 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 6012 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
6044 6013
6045 6014
6046 var h = { 6015 var h = {
6047 "content-type" : "application/json; charset=utf-8", 6016 "content-type" : "application/json; charset=utf-8",
6048 }; 6017 };
6049 var resp = convert.JSON.encode(buildVolumes()); 6018 var resp = convert.JSON.encode(buildVolumes());
6050 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6019 return new async.Future.value(stringResponse(200, h, resp));
6051 }), true); 6020 }), true);
6052 res.list(acquireMethod: arg_acquireMethod, locale: arg_locale, maxResults: arg_maxResults, processingState: arg_processingState, source: arg_source, start Index: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { 6021 res.list(acquireMethod: arg_acquireMethod, locale: arg_locale, maxResults: arg_maxResults, processingState: arg_processingState, source: arg_source, start Index: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) {
6053 checkVolumes(response); 6022 checkVolumes(response);
6054 }))); 6023 })));
6055 }); 6024 });
6056 6025
6057 }); 6026 });
6058 6027
6059 6028
6060 unittest.group("resource-VolumesRecommendedResourceApi", () { 6029 unittest.group("resource-VolumesRecommendedResourceApi", () {
6061 unittest.test("method--list", () { 6030 unittest.test("method--list", () {
6062 6031
6063 var mock = new common_test.HttpServerMock(); 6032 var mock = new HttpServerMock();
6064 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec ommended; 6033 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec ommended;
6065 var arg_locale = "foo"; 6034 var arg_locale = "foo";
6066 var arg_source = "foo"; 6035 var arg_source = "foo";
6067 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6036 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6068 var path = (req.url).path; 6037 var path = (req.url).path;
6069 var pathOffset = 0; 6038 var pathOffset = 0;
6070 var index; 6039 var index;
6071 var subPart; 6040 var subPart;
6072 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6041 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6073 pathOffset += 1; 6042 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
6093 } 6062 }
6094 } 6063 }
6095 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 6064 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
6096 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 6065 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
6097 6066
6098 6067
6099 var h = { 6068 var h = {
6100 "content-type" : "application/json; charset=utf-8", 6069 "content-type" : "application/json; charset=utf-8",
6101 }; 6070 };
6102 var resp = convert.JSON.encode(buildVolumes()); 6071 var resp = convert.JSON.encode(buildVolumes());
6103 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6072 return new async.Future.value(stringResponse(200, h, resp));
6104 }), true); 6073 }), true);
6105 res.list(locale: arg_locale, source: arg_source).then(unittest.expectAsync (((api.Volumes response) { 6074 res.list(locale: arg_locale, source: arg_source).then(unittest.expectAsync (((api.Volumes response) {
6106 checkVolumes(response); 6075 checkVolumes(response);
6107 }))); 6076 })));
6108 }); 6077 });
6109 6078
6110 unittest.test("method--rate", () { 6079 unittest.test("method--rate", () {
6111 6080
6112 var mock = new common_test.HttpServerMock(); 6081 var mock = new HttpServerMock();
6113 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec ommended; 6082 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec ommended;
6114 var arg_rating = "foo"; 6083 var arg_rating = "foo";
6115 var arg_volumeId = "foo"; 6084 var arg_volumeId = "foo";
6116 var arg_locale = "foo"; 6085 var arg_locale = "foo";
6117 var arg_source = "foo"; 6086 var arg_source = "foo";
6118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6087 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6119 var path = (req.url).path; 6088 var path = (req.url).path;
6120 var pathOffset = 0; 6089 var pathOffset = 0;
6121 var index; 6090 var index;
6122 var subPart; 6091 var subPart;
(...skipping 23 matching lines...) Expand all
6146 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); 6115 unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating));
6147 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId )); 6116 unittest.expect(queryMap["volumeId"].first, unittest.equals(arg_volumeId ));
6148 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); 6117 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
6149 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 6118 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
6150 6119
6151 6120
6152 var h = { 6121 var h = {
6153 "content-type" : "application/json; charset=utf-8", 6122 "content-type" : "application/json; charset=utf-8",
6154 }; 6123 };
6155 var resp = convert.JSON.encode(buildBooksVolumesRecommendedRateResponse( )); 6124 var resp = convert.JSON.encode(buildBooksVolumesRecommendedRateResponse( ));
6156 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6125 return new async.Future.value(stringResponse(200, h, resp));
6157 }), true); 6126 }), true);
6158 res.rate(arg_rating, arg_volumeId, locale: arg_locale, source: arg_source) .then(unittest.expectAsync(((api.BooksVolumesRecommendedRateResponse response) { 6127 res.rate(arg_rating, arg_volumeId, locale: arg_locale, source: arg_source) .then(unittest.expectAsync(((api.BooksVolumesRecommendedRateResponse response) {
6159 checkBooksVolumesRecommendedRateResponse(response); 6128 checkBooksVolumesRecommendedRateResponse(response);
6160 }))); 6129 })));
6161 }); 6130 });
6162 6131
6163 }); 6132 });
6164 6133
6165 6134
6166 unittest.group("resource-VolumesUseruploadedResourceApi", () { 6135 unittest.group("resource-VolumesUseruploadedResourceApi", () {
6167 unittest.test("method--list", () { 6136 unittest.test("method--list", () {
6168 6137
6169 var mock = new common_test.HttpServerMock(); 6138 var mock = new HttpServerMock();
6170 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us eruploaded; 6139 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us eruploaded;
6171 var arg_locale = "foo"; 6140 var arg_locale = "foo";
6172 var arg_maxResults = 42; 6141 var arg_maxResults = 42;
6173 var arg_processingState = buildUnnamed847(); 6142 var arg_processingState = buildUnnamed368();
6174 var arg_source = "foo"; 6143 var arg_source = "foo";
6175 var arg_startIndex = 42; 6144 var arg_startIndex = 42;
6176 var arg_volumeId = buildUnnamed848(); 6145 var arg_volumeId = buildUnnamed369();
6177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6146 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6178 var path = (req.url).path; 6147 var path = (req.url).path;
6179 var pathOffset = 0; 6148 var pathOffset = 0;
6180 var index; 6149 var index;
6181 var subPart; 6150 var subPart;
6182 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6151 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6183 pathOffset += 1; 6152 pathOffset += 1;
6184 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/")); 6153 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("books/v1/"));
6185 pathOffset += 9; 6154 pathOffset += 9;
6186 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("volumes/useruploaded")); 6155 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("volumes/useruploaded"));
(...skipping 20 matching lines...) Expand all
6207 unittest.expect(queryMap["processingState"], unittest.equals(arg_process ingState)); 6176 unittest.expect(queryMap["processingState"], unittest.equals(arg_process ingState));
6208 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); 6177 unittest.expect(queryMap["source"].first, unittest.equals(arg_source));
6209 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex)); 6178 unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.e quals(arg_startIndex));
6210 unittest.expect(queryMap["volumeId"], unittest.equals(arg_volumeId)); 6179 unittest.expect(queryMap["volumeId"], unittest.equals(arg_volumeId));
6211 6180
6212 6181
6213 var h = { 6182 var h = {
6214 "content-type" : "application/json; charset=utf-8", 6183 "content-type" : "application/json; charset=utf-8",
6215 }; 6184 };
6216 var resp = convert.JSON.encode(buildVolumes()); 6185 var resp = convert.JSON.encode(buildVolumes());
6217 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6186 return new async.Future.value(stringResponse(200, h, resp));
6218 }), true); 6187 }), true);
6219 res.list(locale: arg_locale, maxResults: arg_maxResults, processingState: arg_processingState, source: arg_source, startIndex: arg_startIndex, volumeId: a rg_volumeId).then(unittest.expectAsync(((api.Volumes response) { 6188 res.list(locale: arg_locale, maxResults: arg_maxResults, processingState: arg_processingState, source: arg_source, startIndex: arg_startIndex, volumeId: a rg_volumeId).then(unittest.expectAsync(((api.Volumes response) {
6220 checkVolumes(response); 6189 checkVolumes(response);
6221 }))); 6190 })));
6222 }); 6191 });
6223 6192
6224 }); 6193 });
6225 6194
6226 6195
6227 } 6196 }
6228 6197
OLDNEW
« no previous file with comments | « generated/googleapis/test/blogger/v3_test.dart ('k') | generated/googleapis/test/calendar/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698