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

Unified Diff: generated/googleapis/test/books/v1_test.dart

Issue 798373003: Api roll 8: 2014-12-15 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/test/books/v1_test.dart
diff --git a/generated/googleapis/test/books/v1_test.dart b/generated/googleapis/test/books/v1_test.dart
index 2e600b123c878e2a22bb7767960181f7240930f9..b370fcae63c02eb40bc5704cf338d2b11804af70 100644
--- a/generated/googleapis/test/books/v1_test.dart
+++ b/generated/googleapis/test/books/v1_test.dart
@@ -93,14 +93,14 @@ checkAnnotationLayerSummary(api.AnnotationLayerSummary o) {
buildCounterAnnotationLayerSummary--;
}
-buildUnnamed305() {
+buildUnnamed537() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed305(core.List<core.String> o) {
+checkUnnamed537(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -123,7 +123,7 @@ buildAnnotation() {
o.kind = "foo";
o.layerId = "foo";
o.layerSummary = buildAnnotationLayerSummary();
- o.pageIds = buildUnnamed305();
+ o.pageIds = buildUnnamed537();
o.selectedText = "foo";
o.selfLink = "foo";
o.updated = core.DateTime.parse("2002-02-27T14:01:02");
@@ -148,7 +148,7 @@ checkAnnotation(api.Annotation o) {
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.layerId, unittest.equals('foo'));
checkAnnotationLayerSummary(o.layerSummary);
- checkUnnamed305(o.pageIds);
+ checkUnnamed537(o.pageIds);
unittest.expect(o.selectedText, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
@@ -192,14 +192,14 @@ checkAnnotationdata(api.Annotationdata o) {
buildCounterAnnotationdata--;
}
-buildUnnamed306() {
+buildUnnamed538() {
var o = new core.List<api.Annotation>();
o.add(buildAnnotation());
o.add(buildAnnotation());
return o;
}
-checkUnnamed306(core.List<api.Annotation> o) {
+checkUnnamed538(core.List<api.Annotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkAnnotation(o[0]);
checkAnnotation(o[1]);
@@ -210,7 +210,7 @@ buildAnnotations() {
var o = new api.Annotations();
buildCounterAnnotations++;
if (buildCounterAnnotations < 3) {
- o.items = buildUnnamed306();
+ o.items = buildUnnamed538();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -222,7 +222,7 @@ buildAnnotations() {
checkAnnotations(api.Annotations o) {
buildCounterAnnotations++;
if (buildCounterAnnotations < 3) {
- checkUnnamed306(o.items);
+ checkUnnamed538(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
@@ -257,14 +257,14 @@ checkAnnotationsSummaryLayers(api.AnnotationsSummaryLayers o) {
buildCounterAnnotationsSummaryLayers--;
}
-buildUnnamed307() {
+buildUnnamed539() {
var o = new core.List<api.AnnotationsSummaryLayers>();
o.add(buildAnnotationsSummaryLayers());
o.add(buildAnnotationsSummaryLayers());
return o;
}
-checkUnnamed307(core.List<api.AnnotationsSummaryLayers> o) {
+checkUnnamed539(core.List<api.AnnotationsSummaryLayers> o) {
unittest.expect(o, unittest.hasLength(2));
checkAnnotationsSummaryLayers(o[0]);
checkAnnotationsSummaryLayers(o[1]);
@@ -276,7 +276,7 @@ buildAnnotationsSummary() {
buildCounterAnnotationsSummary++;
if (buildCounterAnnotationsSummary < 3) {
o.kind = "foo";
- o.layers = buildUnnamed307();
+ o.layers = buildUnnamed539();
}
buildCounterAnnotationsSummary--;
return o;
@@ -286,19 +286,19 @@ checkAnnotationsSummary(api.AnnotationsSummary o) {
buildCounterAnnotationsSummary++;
if (buildCounterAnnotationsSummary < 3) {
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed307(o.layers);
+ checkUnnamed539(o.layers);
}
buildCounterAnnotationsSummary--;
}
-buildUnnamed308() {
+buildUnnamed540() {
var o = new core.List<api.Annotationdata>();
o.add(buildAnnotationdata());
o.add(buildAnnotationdata());
return o;
}
-checkUnnamed308(core.List<api.Annotationdata> o) {
+checkUnnamed540(core.List<api.Annotationdata> o) {
unittest.expect(o, unittest.hasLength(2));
checkAnnotationdata(o[0]);
checkAnnotationdata(o[1]);
@@ -309,7 +309,7 @@ buildAnnotationsdata() {
var o = new api.Annotationsdata();
buildCounterAnnotationsdata++;
if (buildCounterAnnotationsdata < 3) {
- o.items = buildUnnamed308();
+ o.items = buildUnnamed540();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -321,7 +321,7 @@ buildAnnotationsdata() {
checkAnnotationsdata(api.Annotationsdata o) {
buildCounterAnnotationsdata++;
if (buildCounterAnnotationsdata < 3) {
- checkUnnamed308(o.items);
+ checkUnnamed540(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
@@ -435,14 +435,14 @@ checkBookshelf(api.Bookshelf o) {
buildCounterBookshelf--;
}
-buildUnnamed309() {
+buildUnnamed541() {
var o = new core.List<api.Bookshelf>();
o.add(buildBookshelf());
o.add(buildBookshelf());
return o;
}
-checkUnnamed309(core.List<api.Bookshelf> o) {
+checkUnnamed541(core.List<api.Bookshelf> o) {
unittest.expect(o, unittest.hasLength(2));
checkBookshelf(o[0]);
checkBookshelf(o[1]);
@@ -453,7 +453,7 @@ buildBookshelves() {
var o = new api.Bookshelves();
buildCounterBookshelves++;
if (buildCounterBookshelves < 3) {
- o.items = buildUnnamed309();
+ o.items = buildUnnamed541();
o.kind = "foo";
}
buildCounterBookshelves--;
@@ -463,12 +463,69 @@ buildBookshelves() {
checkBookshelves(api.Bookshelves o) {
buildCounterBookshelves++;
if (buildCounterBookshelves < 3) {
- checkUnnamed309(o.items);
+ checkUnnamed541(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterBookshelves--;
}
+core.int buildCounterCategoryItems = 0;
+buildCategoryItems() {
+ var o = new api.CategoryItems();
+ buildCounterCategoryItems++;
+ if (buildCounterCategoryItems < 3) {
+ o.badgeUrl = "foo";
+ o.categoryId = "foo";
+ o.name = "foo";
+ }
+ buildCounterCategoryItems--;
+ return o;
+}
+
+checkCategoryItems(api.CategoryItems o) {
+ buildCounterCategoryItems++;
+ if (buildCounterCategoryItems < 3) {
+ unittest.expect(o.badgeUrl, unittest.equals('foo'));
+ unittest.expect(o.categoryId, unittest.equals('foo'));
+ unittest.expect(o.name, unittest.equals('foo'));
+ }
+ buildCounterCategoryItems--;
+}
+
+buildUnnamed542() {
+ var o = new core.List<api.CategoryItems>();
+ o.add(buildCategoryItems());
+ o.add(buildCategoryItems());
+ return o;
+}
+
+checkUnnamed542(core.List<api.CategoryItems> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkCategoryItems(o[0]);
+ checkCategoryItems(o[1]);
+}
+
+core.int buildCounterCategory = 0;
+buildCategory() {
+ var o = new api.Category();
+ buildCounterCategory++;
+ if (buildCounterCategory < 3) {
+ o.items = buildUnnamed542();
+ o.kind = "foo";
+ }
+ buildCounterCategory--;
+ return o;
+}
+
+checkCategory(api.Category o) {
+ buildCounterCategory++;
+ if (buildCounterCategory < 3) {
+ checkUnnamed542(o.items);
+ unittest.expect(o.kind, unittest.equals('foo'));
+ }
+ buildCounterCategory--;
+}
+
core.int buildCounterConcurrentAccessRestriction = 0;
buildConcurrentAccessRestriction() {
var o = new api.ConcurrentAccessRestriction();
@@ -590,14 +647,14 @@ checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o)
buildCounterDictlayerdataDictWordsDerivatives--;
}
-buildUnnamed310() {
+buildUnnamed543() {
var o = new core.List<api.DictlayerdataDictWordsDerivatives>();
o.add(buildDictlayerdataDictWordsDerivatives());
o.add(buildDictlayerdataDictWordsDerivatives());
return o;
}
-checkUnnamed310(core.List<api.DictlayerdataDictWordsDerivatives> o) {
+checkUnnamed543(core.List<api.DictlayerdataDictWordsDerivatives> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsDerivatives(o[0]);
checkDictlayerdataDictWordsDerivatives(o[1]);
@@ -645,14 +702,14 @@ checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) {
buildCounterDictlayerdataDictWordsExamples--;
}
-buildUnnamed311() {
+buildUnnamed544() {
var o = new core.List<api.DictlayerdataDictWordsExamples>();
o.add(buildDictlayerdataDictWordsExamples());
o.add(buildDictlayerdataDictWordsExamples());
return o;
}
-checkUnnamed311(core.List<api.DictlayerdataDictWordsExamples> o) {
+checkUnnamed544(core.List<api.DictlayerdataDictWordsExamples> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsExamples(o[0]);
checkDictlayerdataDictWordsExamples(o[1]);
@@ -679,14 +736,14 @@ checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo
buildCounterDictlayerdataDictWordsSensesConjugations--;
}
-buildUnnamed312() {
+buildUnnamed545() {
var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>();
o.add(buildDictlayerdataDictWordsSensesConjugations());
o.add(buildDictlayerdataDictWordsSensesConjugations());
return o;
}
-checkUnnamed312(core.List<api.DictlayerdataDictWordsSensesConjugations> o) {
+checkUnnamed545(core.List<api.DictlayerdataDictWordsSensesConjugations> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsSensesConjugations(o[0]);
checkDictlayerdataDictWordsSensesConjugations(o[1]);
@@ -734,14 +791,14 @@ checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS
buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--;
}
-buildUnnamed313() {
+buildUnnamed546() {
var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>();
o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples());
o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples());
return o;
}
-checkUnnamed313(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) {
+checkUnnamed546(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]);
checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]);
@@ -753,7 +810,7 @@ buildDictlayerdataDictWordsSensesDefinitions() {
buildCounterDictlayerdataDictWordsSensesDefinitions++;
if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) {
o.definition = "foo";
- o.examples = buildUnnamed313();
+ o.examples = buildUnnamed546();
}
buildCounterDictlayerdataDictWordsSensesDefinitions--;
return o;
@@ -763,19 +820,19 @@ checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef
buildCounterDictlayerdataDictWordsSensesDefinitions++;
if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) {
unittest.expect(o.definition, unittest.equals('foo'));
- checkUnnamed313(o.examples);
+ checkUnnamed546(o.examples);
}
buildCounterDictlayerdataDictWordsSensesDefinitions--;
}
-buildUnnamed314() {
+buildUnnamed547() {
var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>();
o.add(buildDictlayerdataDictWordsSensesDefinitions());
o.add(buildDictlayerdataDictWordsSensesDefinitions());
return o;
}
-checkUnnamed314(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) {
+checkUnnamed547(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsSensesDefinitions(o[0]);
checkDictlayerdataDictWordsSensesDefinitions(o[1]);
@@ -844,14 +901,14 @@ checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony
buildCounterDictlayerdataDictWordsSensesSynonyms--;
}
-buildUnnamed315() {
+buildUnnamed548() {
var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>();
o.add(buildDictlayerdataDictWordsSensesSynonyms());
o.add(buildDictlayerdataDictWordsSensesSynonyms());
return o;
}
-checkUnnamed315(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) {
+checkUnnamed548(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsSensesSynonyms(o[0]);
checkDictlayerdataDictWordsSensesSynonyms(o[1]);
@@ -862,14 +919,14 @@ buildDictlayerdataDictWordsSenses() {
var o = new api.DictlayerdataDictWordsSenses();
buildCounterDictlayerdataDictWordsSenses++;
if (buildCounterDictlayerdataDictWordsSenses < 3) {
- o.conjugations = buildUnnamed312();
- o.definitions = buildUnnamed314();
+ o.conjugations = buildUnnamed545();
+ o.definitions = buildUnnamed547();
o.partOfSpeech = "foo";
o.pronunciation = "foo";
o.pronunciationUrl = "foo";
o.source = buildDictlayerdataDictWordsSensesSource();
o.syllabification = "foo";
- o.synonyms = buildUnnamed315();
+ o.synonyms = buildUnnamed548();
}
buildCounterDictlayerdataDictWordsSenses--;
return o;
@@ -878,26 +935,26 @@ buildDictlayerdataDictWordsSenses() {
checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) {
buildCounterDictlayerdataDictWordsSenses++;
if (buildCounterDictlayerdataDictWordsSenses < 3) {
- checkUnnamed312(o.conjugations);
- checkUnnamed314(o.definitions);
+ checkUnnamed545(o.conjugations);
+ checkUnnamed547(o.definitions);
unittest.expect(o.partOfSpeech, unittest.equals('foo'));
unittest.expect(o.pronunciation, unittest.equals('foo'));
unittest.expect(o.pronunciationUrl, unittest.equals('foo'));
checkDictlayerdataDictWordsSensesSource(o.source);
unittest.expect(o.syllabification, unittest.equals('foo'));
- checkUnnamed315(o.synonyms);
+ checkUnnamed548(o.synonyms);
}
buildCounterDictlayerdataDictWordsSenses--;
}
-buildUnnamed316() {
+buildUnnamed549() {
var o = new core.List<api.DictlayerdataDictWordsSenses>();
o.add(buildDictlayerdataDictWordsSenses());
o.add(buildDictlayerdataDictWordsSenses());
return o;
}
-checkUnnamed316(core.List<api.DictlayerdataDictWordsSenses> o) {
+checkUnnamed549(core.List<api.DictlayerdataDictWordsSenses> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWordsSenses(o[0]);
checkDictlayerdataDictWordsSenses(o[1]);
@@ -929,9 +986,9 @@ buildDictlayerdataDictWords() {
var o = new api.DictlayerdataDictWords();
buildCounterDictlayerdataDictWords++;
if (buildCounterDictlayerdataDictWords < 3) {
- o.derivatives = buildUnnamed310();
- o.examples = buildUnnamed311();
- o.senses = buildUnnamed316();
+ o.derivatives = buildUnnamed543();
+ o.examples = buildUnnamed544();
+ o.senses = buildUnnamed549();
o.source = buildDictlayerdataDictWordsSource();
}
buildCounterDictlayerdataDictWords--;
@@ -941,22 +998,22 @@ buildDictlayerdataDictWords() {
checkDictlayerdataDictWords(api.DictlayerdataDictWords o) {
buildCounterDictlayerdataDictWords++;
if (buildCounterDictlayerdataDictWords < 3) {
- checkUnnamed310(o.derivatives);
- checkUnnamed311(o.examples);
- checkUnnamed316(o.senses);
+ checkUnnamed543(o.derivatives);
+ checkUnnamed544(o.examples);
+ checkUnnamed549(o.senses);
checkDictlayerdataDictWordsSource(o.source);
}
buildCounterDictlayerdataDictWords--;
}
-buildUnnamed317() {
+buildUnnamed550() {
var o = new core.List<api.DictlayerdataDictWords>();
o.add(buildDictlayerdataDictWords());
o.add(buildDictlayerdataDictWords());
return o;
}
-checkUnnamed317(core.List<api.DictlayerdataDictWords> o) {
+checkUnnamed550(core.List<api.DictlayerdataDictWords> o) {
unittest.expect(o, unittest.hasLength(2));
checkDictlayerdataDictWords(o[0]);
checkDictlayerdataDictWords(o[1]);
@@ -968,7 +1025,7 @@ buildDictlayerdataDict() {
buildCounterDictlayerdataDict++;
if (buildCounterDictlayerdataDict < 3) {
o.source = buildDictlayerdataDictSource();
- o.words = buildUnnamed317();
+ o.words = buildUnnamed550();
}
buildCounterDictlayerdataDict--;
return o;
@@ -978,7 +1035,7 @@ checkDictlayerdataDict(api.DictlayerdataDict o) {
buildCounterDictlayerdataDict++;
if (buildCounterDictlayerdataDict < 3) {
checkDictlayerdataDictSource(o.source);
- checkUnnamed317(o.words);
+ checkUnnamed550(o.words);
}
buildCounterDictlayerdataDict--;
}
@@ -1047,14 +1104,14 @@ checkDownloadAccessRestriction(api.DownloadAccessRestriction o) {
buildCounterDownloadAccessRestriction--;
}
-buildUnnamed318() {
+buildUnnamed551() {
var o = new core.List<api.DownloadAccessRestriction>();
o.add(buildDownloadAccessRestriction());
o.add(buildDownloadAccessRestriction());
return o;
}
-checkUnnamed318(core.List<api.DownloadAccessRestriction> o) {
+checkUnnamed551(core.List<api.DownloadAccessRestriction> o) {
unittest.expect(o, unittest.hasLength(2));
checkDownloadAccessRestriction(o[0]);
checkDownloadAccessRestriction(o[1]);
@@ -1065,7 +1122,7 @@ buildDownloadAccesses() {
var o = new api.DownloadAccesses();
buildCounterDownloadAccesses++;
if (buildCounterDownloadAccesses < 3) {
- o.downloadAccessList = buildUnnamed318();
+ o.downloadAccessList = buildUnnamed551();
o.kind = "foo";
}
buildCounterDownloadAccesses--;
@@ -1075,7 +1132,7 @@ buildDownloadAccesses() {
checkDownloadAccesses(api.DownloadAccesses o) {
buildCounterDownloadAccesses++;
if (buildCounterDownloadAccesses < 3) {
- checkUnnamed318(o.downloadAccessList);
+ checkUnnamed551(o.downloadAccessList);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterDownloadAccesses--;
@@ -1129,30 +1186,30 @@ checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) {
buildCounterGeolayerdataGeoBoundary--;
}
-buildUnnamed319() {
+buildUnnamed552() {
var o = new core.List<api.GeolayerdataGeoBoundary>();
o.add(buildGeolayerdataGeoBoundary());
o.add(buildGeolayerdataGeoBoundary());
return o;
}
-checkUnnamed319(core.List<api.GeolayerdataGeoBoundary> o) {
+checkUnnamed552(core.List<api.GeolayerdataGeoBoundary> o) {
unittest.expect(o, unittest.hasLength(2));
checkGeolayerdataGeoBoundary(o[0]);
checkGeolayerdataGeoBoundary(o[1]);
}
-buildUnnamed320() {
+buildUnnamed553() {
var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>();
- o.add(buildUnnamed319());
- o.add(buildUnnamed319());
+ o.add(buildUnnamed552());
+ o.add(buildUnnamed552());
return o;
}
-checkUnnamed320(core.List<core.List<api.GeolayerdataGeoBoundary>> o) {
+checkUnnamed553(core.List<core.List<api.GeolayerdataGeoBoundary>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed319(o[0]);
- checkUnnamed319(o[1]);
+ checkUnnamed552(o[0]);
+ checkUnnamed552(o[1]);
}
core.int buildCounterGeolayerdataGeoViewportHi = 0;
@@ -1223,7 +1280,7 @@ buildGeolayerdataGeo() {
var o = new api.GeolayerdataGeo();
buildCounterGeolayerdataGeo++;
if (buildCounterGeolayerdataGeo < 3) {
- o.boundary = buildUnnamed320();
+ o.boundary = buildUnnamed553();
o.cachePolicy = "foo";
o.countryCode = "foo";
o.latitude = 42.0;
@@ -1239,7 +1296,7 @@ buildGeolayerdataGeo() {
checkGeolayerdataGeo(api.GeolayerdataGeo o) {
buildCounterGeolayerdataGeo++;
if (buildCounterGeolayerdataGeo < 3) {
- checkUnnamed320(o.boundary);
+ checkUnnamed553(o.boundary);
unittest.expect(o.cachePolicy, unittest.equals('foo'));
unittest.expect(o.countryCode, unittest.equals('foo'));
unittest.expect(o.latitude, unittest.equals(42.0));
@@ -1274,14 +1331,14 @@ checkGeolayerdata(api.Geolayerdata o) {
buildCounterGeolayerdata--;
}
-buildUnnamed321() {
+buildUnnamed554() {
var o = new core.List<api.Layersummary>();
o.add(buildLayersummary());
o.add(buildLayersummary());
return o;
}
-checkUnnamed321(core.List<api.Layersummary> o) {
+checkUnnamed554(core.List<api.Layersummary> o) {
unittest.expect(o, unittest.hasLength(2));
checkLayersummary(o[0]);
checkLayersummary(o[1]);
@@ -1292,7 +1349,7 @@ buildLayersummaries() {
var o = new api.Layersummaries();
buildCounterLayersummaries++;
if (buildCounterLayersummaries < 3) {
- o.items = buildUnnamed321();
+ o.items = buildUnnamed554();
o.kind = "foo";
o.totalItems = 42;
}
@@ -1303,21 +1360,21 @@ buildLayersummaries() {
checkLayersummaries(api.Layersummaries o) {
buildCounterLayersummaries++;
if (buildCounterLayersummaries < 3) {
- checkUnnamed321(o.items);
+ checkUnnamed554(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
}
buildCounterLayersummaries--;
}
-buildUnnamed322() {
+buildUnnamed555() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed322(core.List<core.String> o) {
+checkUnnamed555(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -1329,7 +1386,7 @@ buildLayersummary() {
buildCounterLayersummary++;
if (buildCounterLayersummary < 3) {
o.annotationCount = 42;
- o.annotationTypes = buildUnnamed322();
+ o.annotationTypes = buildUnnamed555();
o.annotationsDataLink = "foo";
o.annotationsLink = "foo";
o.contentVersion = "foo";
@@ -1350,7 +1407,7 @@ checkLayersummary(api.Layersummary o) {
buildCounterLayersummary++;
if (buildCounterLayersummary < 3) {
unittest.expect(o.annotationCount, unittest.equals(42));
- checkUnnamed322(o.annotationTypes);
+ checkUnnamed555(o.annotationTypes);
unittest.expect(o.annotationsDataLink, unittest.equals('foo'));
unittest.expect(o.annotationsLink, unittest.equals('foo'));
unittest.expect(o.contentVersion, unittest.equals('foo'));
@@ -1393,14 +1450,14 @@ checkMetadataItems(api.MetadataItems o) {
buildCounterMetadataItems--;
}
-buildUnnamed323() {
+buildUnnamed556() {
var o = new core.List<api.MetadataItems>();
o.add(buildMetadataItems());
o.add(buildMetadataItems());
return o;
}
-checkUnnamed323(core.List<api.MetadataItems> o) {
+checkUnnamed556(core.List<api.MetadataItems> o) {
unittest.expect(o, unittest.hasLength(2));
checkMetadataItems(o[0]);
checkMetadataItems(o[1]);
@@ -1411,7 +1468,7 @@ buildMetadata() {
var o = new api.Metadata();
buildCounterMetadata++;
if (buildCounterMetadata < 3) {
- o.items = buildUnnamed323();
+ o.items = buildUnnamed556();
o.kind = "foo";
}
buildCounterMetadata--;
@@ -1421,7 +1478,7 @@ buildMetadata() {
checkMetadata(api.Metadata o) {
buildCounterMetadata++;
if (buildCounterMetadata < 3) {
- checkUnnamed323(o.items);
+ checkUnnamed556(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterMetadata--;
@@ -1456,14 +1513,14 @@ checkOffersItemsItems(api.OffersItemsItems o) {
buildCounterOffersItemsItems--;
}
-buildUnnamed324() {
+buildUnnamed557() {
var o = new core.List<api.OffersItemsItems>();
o.add(buildOffersItemsItems());
o.add(buildOffersItemsItems());
return o;
}
-checkUnnamed324(core.List<api.OffersItemsItems> o) {
+checkUnnamed557(core.List<api.OffersItemsItems> o) {
unittest.expect(o, unittest.hasLength(2));
checkOffersItemsItems(o[0]);
checkOffersItemsItems(o[1]);
@@ -1476,7 +1533,7 @@ buildOffersItems() {
if (buildCounterOffersItems < 3) {
o.artUrl = "foo";
o.id = "foo";
- o.items = buildUnnamed324();
+ o.items = buildUnnamed557();
}
buildCounterOffersItems--;
return o;
@@ -1487,19 +1544,19 @@ checkOffersItems(api.OffersItems o) {
if (buildCounterOffersItems < 3) {
unittest.expect(o.artUrl, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
- checkUnnamed324(o.items);
+ checkUnnamed557(o.items);
}
buildCounterOffersItems--;
}
-buildUnnamed325() {
+buildUnnamed558() {
var o = new core.List<api.OffersItems>();
o.add(buildOffersItems());
o.add(buildOffersItems());
return o;
}
-checkUnnamed325(core.List<api.OffersItems> o) {
+checkUnnamed558(core.List<api.OffersItems> o) {
unittest.expect(o, unittest.hasLength(2));
checkOffersItems(o[0]);
checkOffersItems(o[1]);
@@ -1510,7 +1567,7 @@ buildOffers() {
var o = new api.Offers();
buildCounterOffers++;
if (buildCounterOffers < 3) {
- o.items = buildUnnamed325();
+ o.items = buildUnnamed558();
o.kind = "foo";
}
buildCounterOffers--;
@@ -1520,7 +1577,7 @@ buildOffers() {
checkOffers(api.Offers o) {
buildCounterOffers++;
if (buildCounterOffers < 3) {
- checkUnnamed325(o.items);
+ checkUnnamed558(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterOffers--;
@@ -1659,6 +1716,48 @@ checkReview(api.Review o) {
buildCounterReview--;
}
+core.int buildCounterUsersettingsNotesExport = 0;
+buildUsersettingsNotesExport() {
+ var o = new api.UsersettingsNotesExport();
+ buildCounterUsersettingsNotesExport++;
+ if (buildCounterUsersettingsNotesExport < 3) {
+ o.folderName = "foo";
+ o.isEnabled = true;
+ }
+ buildCounterUsersettingsNotesExport--;
+ return o;
+}
+
+checkUsersettingsNotesExport(api.UsersettingsNotesExport o) {
+ buildCounterUsersettingsNotesExport++;
+ if (buildCounterUsersettingsNotesExport < 3) {
+ unittest.expect(o.folderName, unittest.equals('foo'));
+ unittest.expect(o.isEnabled, unittest.isTrue);
+ }
+ buildCounterUsersettingsNotesExport--;
+}
+
+core.int buildCounterUsersettings = 0;
+buildUsersettings() {
+ var o = new api.Usersettings();
+ buildCounterUsersettings++;
+ if (buildCounterUsersettings < 3) {
+ o.kind = "foo";
+ o.notesExport = buildUsersettingsNotesExport();
+ }
+ buildCounterUsersettings--;
+ return o;
+}
+
+checkUsersettings(api.Usersettings o) {
+ buildCounterUsersettings++;
+ if (buildCounterUsersettings < 3) {
+ unittest.expect(o.kind, unittest.equals('foo'));
+ checkUsersettingsNotesExport(o.notesExport);
+ }
+ buildCounterUsersettings--;
+}
+
core.int buildCounterVolumeAccessInfoEpub = 0;
buildVolumeAccessInfoEpub() {
var o = new api.VolumeAccessInfoEpub();
@@ -1771,14 +1870,14 @@ checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) {
buildCounterVolumeLayerInfoLayers--;
}
-buildUnnamed326() {
+buildUnnamed559() {
var o = new core.List<api.VolumeLayerInfoLayers>();
o.add(buildVolumeLayerInfoLayers());
o.add(buildVolumeLayerInfoLayers());
return o;
}
-checkUnnamed326(core.List<api.VolumeLayerInfoLayers> o) {
+checkUnnamed559(core.List<api.VolumeLayerInfoLayers> o) {
unittest.expect(o, unittest.hasLength(2));
checkVolumeLayerInfoLayers(o[0]);
checkVolumeLayerInfoLayers(o[1]);
@@ -1789,7 +1888,7 @@ buildVolumeLayerInfo() {
var o = new api.VolumeLayerInfo();
buildCounterVolumeLayerInfo++;
if (buildCounterVolumeLayerInfo < 3) {
- o.layers = buildUnnamed326();
+ o.layers = buildUnnamed559();
}
buildCounterVolumeLayerInfo--;
return o;
@@ -1798,7 +1897,7 @@ buildVolumeLayerInfo() {
checkVolumeLayerInfo(api.VolumeLayerInfo o) {
buildCounterVolumeLayerInfo++;
if (buildCounterVolumeLayerInfo < 3) {
- checkUnnamed326(o.layers);
+ checkUnnamed559(o.layers);
}
buildCounterVolumeLayerInfo--;
}
@@ -1931,14 +2030,14 @@ checkVolumeSaleInfoOffers(api.VolumeSaleInfoOffers o) {
buildCounterVolumeSaleInfoOffers--;
}
-buildUnnamed327() {
+buildUnnamed560() {
var o = new core.List<api.VolumeSaleInfoOffers>();
o.add(buildVolumeSaleInfoOffers());
o.add(buildVolumeSaleInfoOffers());
return o;
}
-checkUnnamed327(core.List<api.VolumeSaleInfoOffers> o) {
+checkUnnamed560(core.List<api.VolumeSaleInfoOffers> o) {
unittest.expect(o, unittest.hasLength(2));
checkVolumeSaleInfoOffers(o[0]);
checkVolumeSaleInfoOffers(o[1]);
@@ -1974,7 +2073,7 @@ buildVolumeSaleInfo() {
o.country = "foo";
o.isEbook = true;
o.listPrice = buildVolumeSaleInfoListPrice();
- o.offers = buildUnnamed327();
+ o.offers = buildUnnamed560();
o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02");
o.retailPrice = buildVolumeSaleInfoRetailPrice();
o.saleability = "foo";
@@ -1990,7 +2089,7 @@ checkVolumeSaleInfo(api.VolumeSaleInfo o) {
unittest.expect(o.country, unittest.equals('foo'));
unittest.expect(o.isEbook, unittest.isTrue);
checkVolumeSaleInfoListPrice(o.listPrice);
- checkUnnamed327(o.offers);
+ checkUnnamed560(o.offers);
unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
checkVolumeSaleInfoRetailPrice(o.retailPrice);
unittest.expect(o.saleability, unittest.equals('foo'));
@@ -2121,27 +2220,27 @@ checkVolumeUserInfo(api.VolumeUserInfo o) {
buildCounterVolumeUserInfo--;
}
-buildUnnamed328() {
+buildUnnamed561() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed328(core.List<core.String> o) {
+checkUnnamed561(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed329() {
+buildUnnamed562() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed329(core.List<core.String> o) {
+checkUnnamed562(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -2220,14 +2319,14 @@ checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
buildCounterVolumeVolumeInfoIndustryIdentifiers--;
}
-buildUnnamed330() {
+buildUnnamed563() {
var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>();
o.add(buildVolumeVolumeInfoIndustryIdentifiers());
o.add(buildVolumeVolumeInfoIndustryIdentifiers());
return o;
}
-checkUnnamed330(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) {
+checkUnnamed563(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) {
unittest.expect(o, unittest.hasLength(2));
checkVolumeVolumeInfoIndustryIdentifiers(o[0]);
checkVolumeVolumeInfoIndustryIdentifiers(o[1]);
@@ -2238,15 +2337,15 @@ buildVolumeVolumeInfo() {
var o = new api.VolumeVolumeInfo();
buildCounterVolumeVolumeInfo++;
if (buildCounterVolumeVolumeInfo < 3) {
- o.authors = buildUnnamed328();
+ o.authors = buildUnnamed561();
o.averageRating = 42.0;
o.canonicalVolumeLink = "foo";
- o.categories = buildUnnamed329();
+ o.categories = buildUnnamed562();
o.contentVersion = "foo";
o.description = "foo";
o.dimensions = buildVolumeVolumeInfoDimensions();
o.imageLinks = buildVolumeVolumeInfoImageLinks();
- o.industryIdentifiers = buildUnnamed330();
+ o.industryIdentifiers = buildUnnamed563();
o.infoLink = "foo";
o.language = "foo";
o.mainCategory = "foo";
@@ -2268,15 +2367,15 @@ buildVolumeVolumeInfo() {
checkVolumeVolumeInfo(api.VolumeVolumeInfo o) {
buildCounterVolumeVolumeInfo++;
if (buildCounterVolumeVolumeInfo < 3) {
- checkUnnamed328(o.authors);
+ checkUnnamed561(o.authors);
unittest.expect(o.averageRating, unittest.equals(42.0));
unittest.expect(o.canonicalVolumeLink, unittest.equals('foo'));
- checkUnnamed329(o.categories);
+ checkUnnamed562(o.categories);
unittest.expect(o.contentVersion, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
checkVolumeVolumeInfoDimensions(o.dimensions);
checkVolumeVolumeInfoImageLinks(o.imageLinks);
- checkUnnamed330(o.industryIdentifiers);
+ checkUnnamed563(o.industryIdentifiers);
unittest.expect(o.infoLink, unittest.equals('foo'));
unittest.expect(o.language, unittest.equals('foo'));
unittest.expect(o.mainCategory, unittest.equals('foo'));
@@ -2333,6 +2432,42 @@ checkVolume(api.Volume o) {
buildCounterVolume--;
}
+buildUnnamed564() {
+ var o = new core.List<api.Volume>();
+ o.add(buildVolume());
+ o.add(buildVolume());
+ return o;
+}
+
+checkUnnamed564(core.List<api.Volume> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkVolume(o[0]);
+ checkVolume(o[1]);
+}
+
+core.int buildCounterVolume2 = 0;
+buildVolume2() {
+ var o = new api.Volume2();
+ buildCounterVolume2++;
+ if (buildCounterVolume2 < 3) {
+ o.items = buildUnnamed564();
+ o.kind = "foo";
+ o.nextPageToken = "foo";
+ }
+ buildCounterVolume2--;
+ return o;
+}
+
+checkVolume2(api.Volume2 o) {
+ buildCounterVolume2++;
+ if (buildCounterVolume2 < 3) {
+ checkUnnamed564(o.items);
+ unittest.expect(o.kind, unittest.equals('foo'));
+ unittest.expect(o.nextPageToken, unittest.equals('foo'));
+ }
+ buildCounterVolume2--;
+}
+
core.int buildCounterVolumeannotationContentRanges = 0;
buildVolumeannotationContentRanges() {
var o = new api.VolumeannotationContentRanges();
@@ -2358,14 +2493,14 @@ checkVolumeannotationContentRanges(api.VolumeannotationContentRanges o) {
buildCounterVolumeannotationContentRanges--;
}
-buildUnnamed331() {
+buildUnnamed565() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed331(core.List<core.String> o) {
+checkUnnamed565(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -2385,7 +2520,7 @@ buildVolumeannotation() {
o.id = "foo";
o.kind = "foo";
o.layerId = "foo";
- o.pageIds = buildUnnamed331();
+ o.pageIds = buildUnnamed565();
o.selectedText = "foo";
o.selfLink = "foo";
o.updated = core.DateTime.parse("2002-02-27T14:01:02");
@@ -2407,7 +2542,7 @@ checkVolumeannotation(api.Volumeannotation o) {
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.layerId, unittest.equals('foo'));
- checkUnnamed331(o.pageIds);
+ checkUnnamed565(o.pageIds);
unittest.expect(o.selectedText, unittest.equals('foo'));
unittest.expect(o.selfLink, unittest.equals('foo'));
unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
@@ -2416,14 +2551,14 @@ checkVolumeannotation(api.Volumeannotation o) {
buildCounterVolumeannotation--;
}
-buildUnnamed332() {
+buildUnnamed566() {
var o = new core.List<api.Volumeannotation>();
o.add(buildVolumeannotation());
o.add(buildVolumeannotation());
return o;
}
-checkUnnamed332(core.List<api.Volumeannotation> o) {
+checkUnnamed566(core.List<api.Volumeannotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkVolumeannotation(o[0]);
checkVolumeannotation(o[1]);
@@ -2434,7 +2569,7 @@ buildVolumeannotations() {
var o = new api.Volumeannotations();
buildCounterVolumeannotations++;
if (buildCounterVolumeannotations < 3) {
- o.items = buildUnnamed332();
+ o.items = buildUnnamed566();
o.kind = "foo";
o.nextPageToken = "foo";
o.totalItems = 42;
@@ -2447,7 +2582,7 @@ buildVolumeannotations() {
checkVolumeannotations(api.Volumeannotations o) {
buildCounterVolumeannotations++;
if (buildCounterVolumeannotations < 3) {
- checkUnnamed332(o.items);
+ checkUnnamed566(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
@@ -2456,14 +2591,14 @@ checkVolumeannotations(api.Volumeannotations o) {
buildCounterVolumeannotations--;
}
-buildUnnamed333() {
+buildUnnamed567() {
var o = new core.List<api.Volume>();
o.add(buildVolume());
o.add(buildVolume());
return o;
}
-checkUnnamed333(core.List<api.Volume> o) {
+checkUnnamed567(core.List<api.Volume> o) {
unittest.expect(o, unittest.hasLength(2));
checkVolume(o[0]);
checkVolume(o[1]);
@@ -2474,7 +2609,7 @@ buildVolumes() {
var o = new api.Volumes();
buildCounterVolumes++;
if (buildCounterVolumes < 3) {
- o.items = buildUnnamed333();
+ o.items = buildUnnamed567();
o.kind = "foo";
o.totalItems = 42;
}
@@ -2485,151 +2620,164 @@ buildVolumes() {
checkVolumes(api.Volumes o) {
buildCounterVolumes++;
if (buildCounterVolumes < 3) {
- checkUnnamed333(o.items);
+ checkUnnamed567(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.totalItems, unittest.equals(42));
}
buildCounterVolumes--;
}
-buildUnnamed334() {
+buildUnnamed568() {
+ var o = new core.List<core.String>();
+ o.add("foo");
+ o.add("foo");
+ return o;
+}
+
+checkUnnamed568(core.List<core.String> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ unittest.expect(o[0], unittest.equals('foo'));
+ unittest.expect(o[1], unittest.equals('foo'));
+}
+
+buildUnnamed569() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed334(core.List<core.String> o) {
+checkUnnamed569(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed335() {
+buildUnnamed570() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed335(core.List<core.String> o) {
+checkUnnamed570(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed336() {
+buildUnnamed571() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed336(core.List<core.String> o) {
+checkUnnamed571(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed337() {
+buildUnnamed572() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed337(core.List<core.String> o) {
+checkUnnamed572(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed338() {
+buildUnnamed573() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed338(core.List<core.String> o) {
+checkUnnamed573(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed339() {
+buildUnnamed574() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed339(core.List<core.String> o) {
+checkUnnamed574(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed340() {
+buildUnnamed575() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed340(core.List<core.String> o) {
+checkUnnamed575(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed341() {
+buildUnnamed576() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed341(core.List<core.String> o) {
+checkUnnamed576(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed342() {
+buildUnnamed577() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed342(core.List<core.String> o) {
+checkUnnamed577(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed343() {
+buildUnnamed578() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed343(core.List<core.String> o) {
+checkUnnamed578(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
}
-buildUnnamed344() {
+buildUnnamed579() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed344(core.List<core.String> o) {
+checkUnnamed579(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittest.expect(o[1], unittest.equals('foo'));
@@ -2763,6 +2911,24 @@ main() {
});
+ unittest.group("obj-schema-CategoryItems", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildCategoryItems();
+ var od = new api.CategoryItems.fromJson(o.toJson());
+ checkCategoryItems(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-Category", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildCategory();
+ var od = new api.Category.fromJson(o.toJson());
+ checkCategory(od);
+ });
+ });
+
+
unittest.group("obj-schema-ConcurrentAccessRestriction", () {
unittest.test("to-json--from-json", () {
var o = buildConcurrentAccessRestriction();
@@ -3123,6 +3289,24 @@ main() {
});
+ unittest.group("obj-schema-UsersettingsNotesExport", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildUsersettingsNotesExport();
+ var od = new api.UsersettingsNotesExport.fromJson(o.toJson());
+ checkUsersettingsNotesExport(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-Usersettings", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildUsersettings();
+ var od = new api.Usersettings.fromJson(o.toJson());
+ checkUsersettings(od);
+ });
+ });
+
+
unittest.group("obj-schema-VolumeAccessInfoEpub", () {
unittest.test("to-json--from-json", () {
var o = buildVolumeAccessInfoEpub();
@@ -3330,6 +3514,15 @@ main() {
});
+ unittest.group("obj-schema-Volume2", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildVolume2();
+ var od = new api.Volume2.fromJson(o.toJson());
+ checkVolume2(od);
+ });
+ });
+
+
unittest.group("obj-schema-VolumeannotationContentRanges", () {
unittest.test("to-json--from-json", () {
var o = buildVolumeannotationContentRanges();
@@ -3972,7 +4165,7 @@ main() {
var arg_volumeId = "foo";
var arg_layerId = "foo";
var arg_contentVersion = "foo";
- var arg_annotationDataId = buildUnnamed334();
+ var arg_annotationDataId = buildUnnamed568();
var arg_h = 42;
var arg_locale = "foo";
var arg_maxResults = 42;
@@ -4208,11 +4401,56 @@ main() {
unittest.group("resource-MyconfigResourceApi", () {
+ unittest.test("method--getUserSettings", () {
+
+ var mock = new common_test.HttpServerMock();
+ api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("books/v1/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("myconfig/getUserSettings"));
+ pathOffset += 24;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildUsersettings());
+ return new async.Future.value(common_test.stringResponse(200, h, resp));
+ }), true);
+ res.getUserSettings().then(unittest.expectAsync(((api.Usersettings response) {
+ checkUsersettings(response);
+ })));
+ });
+
unittest.test("method--releaseDownloadAccess", () {
var mock = new common_test.HttpServerMock();
api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
- var arg_volumeIds = buildUnnamed335();
+ var arg_volumeIds = buildUnnamed569();
var arg_cpksver = "foo";
var arg_locale = "foo";
var arg_source = "foo";
@@ -4325,10 +4563,10 @@ main() {
var arg_source = "foo";
var arg_nonce = "foo";
var arg_cpksver = "foo";
- var arg_features = buildUnnamed336();
+ var arg_features = buildUnnamed570();
var arg_locale = "foo";
var arg_showPreorders = true;
- var arg_volumeIds = buildUnnamed337();
+ var arg_volumeIds = buildUnnamed571();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -4377,6 +4615,55 @@ main() {
})));
});
+ unittest.test("method--updateUserSettings", () {
+
+ var mock = new common_test.HttpServerMock();
+ api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig;
+ var arg_request = buildUsersettings();
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var obj = new api.Usersettings.fromJson(json);
+ checkUsersettings(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("books/v1/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.equals("myconfig/updateUserSettings"));
+ pathOffset += 27;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildUsersettings());
+ return new async.Future.value(common_test.stringResponse(200, h, resp));
+ }), true);
+ res.updateUserSettings(arg_request).then(unittest.expectAsync(((api.Usersettings response) {
+ checkUsersettings(response);
+ })));
+ });
+
});
@@ -4542,9 +4829,9 @@ main() {
api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations;
var arg_contentVersion = "foo";
var arg_layerId = "foo";
- var arg_layerIds = buildUnnamed338();
+ var arg_layerIds = buildUnnamed572();
var arg_maxResults = 42;
- var arg_pageIds = buildUnnamed339();
+ var arg_pageIds = buildUnnamed573();
var arg_pageToken = "foo";
var arg_showDeleted = true;
var arg_source = "foo";
@@ -4607,7 +4894,7 @@ main() {
var mock = new common_test.HttpServerMock();
api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations;
- var arg_layerIds = buildUnnamed340();
+ var arg_layerIds = buildUnnamed574();
var arg_volumeId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -5223,6 +5510,110 @@ main() {
});
+ unittest.group("resource-OnboardingResourceApi", () {
+ unittest.test("method--listCategories", () {
+
+ var mock = new common_test.HttpServerMock();
+ api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding;
+ var arg_locale = "foo";
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("books/v1/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("onboarding/listCategories"));
+ pathOffset += 25;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildCategory());
+ return new async.Future.value(common_test.stringResponse(200, h, resp));
+ }), true);
+ res.listCategories(locale: arg_locale).then(unittest.expectAsync(((api.Category response) {
+ checkCategory(response);
+ })));
+ });
+
+ unittest.test("method--listCategoryVolumes", () {
+
+ var mock = new common_test.HttpServerMock();
+ api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding;
+ var arg_categoryId = buildUnnamed575();
+ var arg_locale = "foo";
+ var arg_pageSize = 42;
+ var arg_pageToken = "foo";
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("books/v1/"));
+ pathOffset += 9;
+ unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.equals("onboarding/listCategoryVolumes"));
+ pathOffset += 30;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["categoryId"], unittest.equals(arg_categoryId));
+ unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale));
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ var resp = convert.JSON.encode(buildVolume2());
+ return new async.Future.value(common_test.stringResponse(200, h, resp));
+ }), true);
+ res.listCategoryVolumes(categoryId: arg_categoryId, locale: arg_locale, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Volume2 response) {
+ checkVolume2(response);
+ })));
+ });
+
+ });
+
+
unittest.group("resource-PromoofferResourceApi", () {
unittest.test("method--accept", () {
@@ -5600,10 +5991,10 @@ main() {
var mock = new common_test.HttpServerMock();
api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks;
- var arg_acquireMethod = buildUnnamed341();
+ var arg_acquireMethod = buildUnnamed576();
var arg_locale = "foo";
var arg_maxResults = 42;
- var arg_processingState = buildUnnamed342();
+ var arg_processingState = buildUnnamed577();
var arg_source = "foo";
var arg_startIndex = 42;
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
@@ -5769,10 +6160,10 @@ main() {
api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.useruploaded;
var arg_locale = "foo";
var arg_maxResults = 42;
- var arg_processingState = buildUnnamed343();
+ var arg_processingState = buildUnnamed578();
var arg_source = "foo";
var arg_startIndex = 42;
- var arg_volumeId = buildUnnamed344();
+ var arg_volumeId = buildUnnamed579();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
« 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