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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: generated/googleapis/test/vision/v1_test.dart
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart
index ae9b9a6e61011604f558e7b7c5e3f84de8d7a3f1..df2bea6dc7fe19ea8376b2be7d53adf313546f12 100644
--- a/generated/googleapis/test/vision/v1_test.dart
+++ b/generated/googleapis/test/vision/v1_test.dart
@@ -7,7 +7,7 @@ import "dart:convert" as convert;
import 'package:http/http.dart' as http;
import 'package:http/testing.dart' as http_testing;
-import 'package:unittest/unittest.dart' as unittest;
+import 'package:test/test.dart' as unittest;
import 'package:googleapis/vision/v1.dart' as api;
@@ -46,19 +46,19 @@ class HttpServerMock extends http.BaseClient {
}
http.StreamedResponse stringResponse(
- core.int status, core.Map headers, core.String body) {
+ core.int status, core.Map<core.String, core.String> headers, core.String body) {
var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed1220() {
+buildUnnamed1227() {
var o = new core.List<api.Feature>();
o.add(buildFeature());
o.add(buildFeature());
return o;
}
-checkUnnamed1220(core.List<api.Feature> o) {
+checkUnnamed1227(core.List<api.Feature> o) {
unittest.expect(o, unittest.hasLength(2));
checkFeature(o[0]);
checkFeature(o[1]);
@@ -69,7 +69,7 @@ buildAnnotateImageRequest() {
var o = new api.AnnotateImageRequest();
buildCounterAnnotateImageRequest++;
if (buildCounterAnnotateImageRequest < 3) {
- o.features = buildUnnamed1220();
+ o.features = buildUnnamed1227();
o.image = buildImage();
o.imageContext = buildImageContext();
}
@@ -80,73 +80,73 @@ buildAnnotateImageRequest() {
checkAnnotateImageRequest(api.AnnotateImageRequest o) {
buildCounterAnnotateImageRequest++;
if (buildCounterAnnotateImageRequest < 3) {
- checkUnnamed1220(o.features);
+ checkUnnamed1227(o.features);
checkImage(o.image);
checkImageContext(o.imageContext);
}
buildCounterAnnotateImageRequest--;
}
-buildUnnamed1221() {
+buildUnnamed1228() {
var o = new core.List<api.FaceAnnotation>();
o.add(buildFaceAnnotation());
o.add(buildFaceAnnotation());
return o;
}
-checkUnnamed1221(core.List<api.FaceAnnotation> o) {
+checkUnnamed1228(core.List<api.FaceAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkFaceAnnotation(o[0]);
checkFaceAnnotation(o[1]);
}
-buildUnnamed1222() {
+buildUnnamed1229() {
var o = new core.List<api.EntityAnnotation>();
o.add(buildEntityAnnotation());
o.add(buildEntityAnnotation());
return o;
}
-checkUnnamed1222(core.List<api.EntityAnnotation> o) {
+checkUnnamed1229(core.List<api.EntityAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityAnnotation(o[0]);
checkEntityAnnotation(o[1]);
}
-buildUnnamed1223() {
+buildUnnamed1230() {
var o = new core.List<api.EntityAnnotation>();
o.add(buildEntityAnnotation());
o.add(buildEntityAnnotation());
return o;
}
-checkUnnamed1223(core.List<api.EntityAnnotation> o) {
+checkUnnamed1230(core.List<api.EntityAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityAnnotation(o[0]);
checkEntityAnnotation(o[1]);
}
-buildUnnamed1224() {
+buildUnnamed1231() {
var o = new core.List<api.EntityAnnotation>();
o.add(buildEntityAnnotation());
o.add(buildEntityAnnotation());
return o;
}
-checkUnnamed1224(core.List<api.EntityAnnotation> o) {
+checkUnnamed1231(core.List<api.EntityAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityAnnotation(o[0]);
checkEntityAnnotation(o[1]);
}
-buildUnnamed1225() {
+buildUnnamed1232() {
var o = new core.List<api.EntityAnnotation>();
o.add(buildEntityAnnotation());
o.add(buildEntityAnnotation());
return o;
}
-checkUnnamed1225(core.List<api.EntityAnnotation> o) {
+checkUnnamed1232(core.List<api.EntityAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkEntityAnnotation(o[0]);
checkEntityAnnotation(o[1]);
@@ -159,14 +159,14 @@ buildAnnotateImageResponse() {
if (buildCounterAnnotateImageResponse < 3) {
o.cropHintsAnnotation = buildCropHintsAnnotation();
o.error = buildStatus();
- o.faceAnnotations = buildUnnamed1221();
+ o.faceAnnotations = buildUnnamed1228();
o.fullTextAnnotation = buildTextAnnotation();
o.imagePropertiesAnnotation = buildImageProperties();
- o.labelAnnotations = buildUnnamed1222();
- o.landmarkAnnotations = buildUnnamed1223();
- o.logoAnnotations = buildUnnamed1224();
+ o.labelAnnotations = buildUnnamed1229();
+ o.landmarkAnnotations = buildUnnamed1230();
+ o.logoAnnotations = buildUnnamed1231();
o.safeSearchAnnotation = buildSafeSearchAnnotation();
- o.textAnnotations = buildUnnamed1225();
+ o.textAnnotations = buildUnnamed1232();
o.webDetection = buildWebDetection();
}
buildCounterAnnotateImageResponse--;
@@ -178,27 +178,27 @@ checkAnnotateImageResponse(api.AnnotateImageResponse o) {
if (buildCounterAnnotateImageResponse < 3) {
checkCropHintsAnnotation(o.cropHintsAnnotation);
checkStatus(o.error);
- checkUnnamed1221(o.faceAnnotations);
+ checkUnnamed1228(o.faceAnnotations);
checkTextAnnotation(o.fullTextAnnotation);
checkImageProperties(o.imagePropertiesAnnotation);
- checkUnnamed1222(o.labelAnnotations);
- checkUnnamed1223(o.landmarkAnnotations);
- checkUnnamed1224(o.logoAnnotations);
+ checkUnnamed1229(o.labelAnnotations);
+ checkUnnamed1230(o.landmarkAnnotations);
+ checkUnnamed1231(o.logoAnnotations);
checkSafeSearchAnnotation(o.safeSearchAnnotation);
- checkUnnamed1225(o.textAnnotations);
+ checkUnnamed1232(o.textAnnotations);
checkWebDetection(o.webDetection);
}
buildCounterAnnotateImageResponse--;
}
-buildUnnamed1226() {
+buildUnnamed1233() {
var o = new core.List<api.AnnotateImageRequest>();
o.add(buildAnnotateImageRequest());
o.add(buildAnnotateImageRequest());
return o;
}
-checkUnnamed1226(core.List<api.AnnotateImageRequest> o) {
+checkUnnamed1233(core.List<api.AnnotateImageRequest> o) {
unittest.expect(o, unittest.hasLength(2));
checkAnnotateImageRequest(o[0]);
checkAnnotateImageRequest(o[1]);
@@ -209,7 +209,7 @@ buildBatchAnnotateImagesRequest() {
var o = new api.BatchAnnotateImagesRequest();
buildCounterBatchAnnotateImagesRequest++;
if (buildCounterBatchAnnotateImagesRequest < 3) {
- o.requests = buildUnnamed1226();
+ o.requests = buildUnnamed1233();
}
buildCounterBatchAnnotateImagesRequest--;
return o;
@@ -218,19 +218,19 @@ buildBatchAnnotateImagesRequest() {
checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) {
buildCounterBatchAnnotateImagesRequest++;
if (buildCounterBatchAnnotateImagesRequest < 3) {
- checkUnnamed1226(o.requests);
+ checkUnnamed1233(o.requests);
}
buildCounterBatchAnnotateImagesRequest--;
}
-buildUnnamed1227() {
+buildUnnamed1234() {
var o = new core.List<api.AnnotateImageResponse>();
o.add(buildAnnotateImageResponse());
o.add(buildAnnotateImageResponse());
return o;
}
-checkUnnamed1227(core.List<api.AnnotateImageResponse> o) {
+checkUnnamed1234(core.List<api.AnnotateImageResponse> o) {
unittest.expect(o, unittest.hasLength(2));
checkAnnotateImageResponse(o[0]);
checkAnnotateImageResponse(o[1]);
@@ -241,7 +241,7 @@ buildBatchAnnotateImagesResponse() {
var o = new api.BatchAnnotateImagesResponse();
buildCounterBatchAnnotateImagesResponse++;
if (buildCounterBatchAnnotateImagesResponse < 3) {
- o.responses = buildUnnamed1227();
+ o.responses = buildUnnamed1234();
}
buildCounterBatchAnnotateImagesResponse--;
return o;
@@ -250,19 +250,19 @@ buildBatchAnnotateImagesResponse() {
checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) {
buildCounterBatchAnnotateImagesResponse++;
if (buildCounterBatchAnnotateImagesResponse < 3) {
- checkUnnamed1227(o.responses);
+ checkUnnamed1234(o.responses);
}
buildCounterBatchAnnotateImagesResponse--;
}
-buildUnnamed1228() {
+buildUnnamed1235() {
var o = new core.List<api.Paragraph>();
o.add(buildParagraph());
o.add(buildParagraph());
return o;
}
-checkUnnamed1228(core.List<api.Paragraph> o) {
+checkUnnamed1235(core.List<api.Paragraph> o) {
unittest.expect(o, unittest.hasLength(2));
checkParagraph(o[0]);
checkParagraph(o[1]);
@@ -275,7 +275,7 @@ buildBlock() {
if (buildCounterBlock < 3) {
o.blockType = "foo";
o.boundingBox = buildBoundingPoly();
- o.paragraphs = buildUnnamed1228();
+ o.paragraphs = buildUnnamed1235();
o.property = buildTextProperty();
}
buildCounterBlock--;
@@ -287,20 +287,20 @@ checkBlock(api.Block o) {
if (buildCounterBlock < 3) {
unittest.expect(o.blockType, unittest.equals('foo'));
checkBoundingPoly(o.boundingBox);
- checkUnnamed1228(o.paragraphs);
+ checkUnnamed1235(o.paragraphs);
checkTextProperty(o.property);
}
buildCounterBlock--;
}
-buildUnnamed1229() {
+buildUnnamed1236() {
var o = new core.List<api.Vertex>();
o.add(buildVertex());
o.add(buildVertex());
return o;
}
-checkUnnamed1229(core.List<api.Vertex> o) {
+checkUnnamed1236(core.List<api.Vertex> o) {
unittest.expect(o, unittest.hasLength(2));
checkVertex(o[0]);
checkVertex(o[1]);
@@ -311,7 +311,7 @@ buildBoundingPoly() {
var o = new api.BoundingPoly();
buildCounterBoundingPoly++;
if (buildCounterBoundingPoly < 3) {
- o.vertices = buildUnnamed1229();
+ o.vertices = buildUnnamed1236();
}
buildCounterBoundingPoly--;
return o;
@@ -320,7 +320,7 @@ buildBoundingPoly() {
checkBoundingPoly(api.BoundingPoly o) {
buildCounterBoundingPoly++;
if (buildCounterBoundingPoly < 3) {
- checkUnnamed1229(o.vertices);
+ checkUnnamed1236(o.vertices);
}
buildCounterBoundingPoly--;
}
@@ -396,14 +396,14 @@ checkCropHint(api.CropHint o) {
buildCounterCropHint--;
}
-buildUnnamed1230() {
+buildUnnamed1237() {
var o = new core.List<api.CropHint>();
o.add(buildCropHint());
o.add(buildCropHint());
return o;
}
-checkUnnamed1230(core.List<api.CropHint> o) {
+checkUnnamed1237(core.List<api.CropHint> o) {
unittest.expect(o, unittest.hasLength(2));
checkCropHint(o[0]);
checkCropHint(o[1]);
@@ -414,7 +414,7 @@ buildCropHintsAnnotation() {
var o = new api.CropHintsAnnotation();
buildCounterCropHintsAnnotation++;
if (buildCounterCropHintsAnnotation < 3) {
- o.cropHints = buildUnnamed1230();
+ o.cropHints = buildUnnamed1237();
}
buildCounterCropHintsAnnotation--;
return o;
@@ -423,19 +423,19 @@ buildCropHintsAnnotation() {
checkCropHintsAnnotation(api.CropHintsAnnotation o) {
buildCounterCropHintsAnnotation++;
if (buildCounterCropHintsAnnotation < 3) {
- checkUnnamed1230(o.cropHints);
+ checkUnnamed1237(o.cropHints);
}
buildCounterCropHintsAnnotation--;
}
-buildUnnamed1231() {
+buildUnnamed1238() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed1231(core.List<core.double> o) {
+checkUnnamed1238(core.List<core.double> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals(42.0));
unittest.expect(o[1], unittest.equals(42.0));
@@ -446,7 +446,7 @@ buildCropHintsParams() {
var o = new api.CropHintsParams();
buildCounterCropHintsParams++;
if (buildCounterCropHintsParams < 3) {
- o.aspectRatios = buildUnnamed1231();
+ o.aspectRatios = buildUnnamed1238();
}
buildCounterCropHintsParams--;
return o;
@@ -455,7 +455,7 @@ buildCropHintsParams() {
checkCropHintsParams(api.CropHintsParams o) {
buildCounterCropHintsParams++;
if (buildCounterCropHintsParams < 3) {
- checkUnnamed1231(o.aspectRatios);
+ checkUnnamed1238(o.aspectRatios);
}
buildCounterCropHintsParams--;
}
@@ -502,14 +502,14 @@ checkDetectedLanguage(api.DetectedLanguage o) {
buildCounterDetectedLanguage--;
}
-buildUnnamed1232() {
+buildUnnamed1239() {
var o = new core.List<api.ColorInfo>();
o.add(buildColorInfo());
o.add(buildColorInfo());
return o;
}
-checkUnnamed1232(core.List<api.ColorInfo> o) {
+checkUnnamed1239(core.List<api.ColorInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkColorInfo(o[0]);
checkColorInfo(o[1]);
@@ -520,7 +520,7 @@ buildDominantColorsAnnotation() {
var o = new api.DominantColorsAnnotation();
buildCounterDominantColorsAnnotation++;
if (buildCounterDominantColorsAnnotation < 3) {
- o.colors = buildUnnamed1232();
+ o.colors = buildUnnamed1239();
}
buildCounterDominantColorsAnnotation--;
return o;
@@ -529,32 +529,32 @@ buildDominantColorsAnnotation() {
checkDominantColorsAnnotation(api.DominantColorsAnnotation o) {
buildCounterDominantColorsAnnotation++;
if (buildCounterDominantColorsAnnotation < 3) {
- checkUnnamed1232(o.colors);
+ checkUnnamed1239(o.colors);
}
buildCounterDominantColorsAnnotation--;
}
-buildUnnamed1233() {
+buildUnnamed1240() {
var o = new core.List<api.LocationInfo>();
o.add(buildLocationInfo());
o.add(buildLocationInfo());
return o;
}
-checkUnnamed1233(core.List<api.LocationInfo> o) {
+checkUnnamed1240(core.List<api.LocationInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkLocationInfo(o[0]);
checkLocationInfo(o[1]);
}
-buildUnnamed1234() {
+buildUnnamed1241() {
var o = new core.List<api.Property>();
o.add(buildProperty());
o.add(buildProperty());
return o;
}
-checkUnnamed1234(core.List<api.Property> o) {
+checkUnnamed1241(core.List<api.Property> o) {
unittest.expect(o, unittest.hasLength(2));
checkProperty(o[0]);
checkProperty(o[1]);
@@ -569,9 +569,9 @@ buildEntityAnnotation() {
o.confidence = 42.0;
o.description = "foo";
o.locale = "foo";
- o.locations = buildUnnamed1233();
+ o.locations = buildUnnamed1240();
o.mid = "foo";
- o.properties = buildUnnamed1234();
+ o.properties = buildUnnamed1241();
o.score = 42.0;
o.topicality = 42.0;
}
@@ -586,23 +586,23 @@ checkEntityAnnotation(api.EntityAnnotation o) {
unittest.expect(o.confidence, unittest.equals(42.0));
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.locale, unittest.equals('foo'));
- checkUnnamed1233(o.locations);
+ checkUnnamed1240(o.locations);
unittest.expect(o.mid, unittest.equals('foo'));
- checkUnnamed1234(o.properties);
+ checkUnnamed1241(o.properties);
unittest.expect(o.score, unittest.equals(42.0));
unittest.expect(o.topicality, unittest.equals(42.0));
}
buildCounterEntityAnnotation--;
}
-buildUnnamed1235() {
+buildUnnamed1242() {
var o = new core.List<api.Landmark>();
o.add(buildLandmark());
o.add(buildLandmark());
return o;
}
-checkUnnamed1235(core.List<api.Landmark> o) {
+checkUnnamed1242(core.List<api.Landmark> o) {
unittest.expect(o, unittest.hasLength(2));
checkLandmark(o[0]);
checkLandmark(o[1]);
@@ -621,7 +621,7 @@ buildFaceAnnotation() {
o.headwearLikelihood = "foo";
o.joyLikelihood = "foo";
o.landmarkingConfidence = 42.0;
- o.landmarks = buildUnnamed1235();
+ o.landmarks = buildUnnamed1242();
o.panAngle = 42.0;
o.rollAngle = 42.0;
o.sorrowLikelihood = "foo";
@@ -644,7 +644,7 @@ checkFaceAnnotation(api.FaceAnnotation o) {
unittest.expect(o.headwearLikelihood, unittest.equals('foo'));
unittest.expect(o.joyLikelihood, unittest.equals('foo'));
unittest.expect(o.landmarkingConfidence, unittest.equals(42.0));
- checkUnnamed1235(o.landmarks);
+ checkUnnamed1242(o.landmarks);
unittest.expect(o.panAngle, unittest.equals(42.0));
unittest.expect(o.rollAngle, unittest.equals(42.0));
unittest.expect(o.sorrowLikelihood, unittest.equals('foo'));
@@ -697,14 +697,14 @@ checkImage(api.Image o) {
buildCounterImage--;
}
-buildUnnamed1236() {
+buildUnnamed1243() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1236(core.List<core.String> o) {
+checkUnnamed1243(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'));
@@ -716,7 +716,7 @@ buildImageContext() {
buildCounterImageContext++;
if (buildCounterImageContext < 3) {
o.cropHintsParams = buildCropHintsParams();
- o.languageHints = buildUnnamed1236();
+ o.languageHints = buildUnnamed1243();
o.latLongRect = buildLatLongRect();
}
buildCounterImageContext--;
@@ -727,7 +727,7 @@ checkImageContext(api.ImageContext o) {
buildCounterImageContext++;
if (buildCounterImageContext < 3) {
checkCropHintsParams(o.cropHintsParams);
- checkUnnamed1236(o.languageHints);
+ checkUnnamed1243(o.languageHints);
checkLatLongRect(o.latLongRect);
}
buildCounterImageContext--;
@@ -855,14 +855,14 @@ checkLocationInfo(api.LocationInfo o) {
buildCounterLocationInfo--;
}
-buildUnnamed1237() {
+buildUnnamed1244() {
var o = new core.List<api.Block>();
o.add(buildBlock());
o.add(buildBlock());
return o;
}
-checkUnnamed1237(core.List<api.Block> o) {
+checkUnnamed1244(core.List<api.Block> o) {
unittest.expect(o, unittest.hasLength(2));
checkBlock(o[0]);
checkBlock(o[1]);
@@ -873,7 +873,7 @@ buildPage() {
var o = new api.Page();
buildCounterPage++;
if (buildCounterPage < 3) {
- o.blocks = buildUnnamed1237();
+ o.blocks = buildUnnamed1244();
o.height = 42;
o.property = buildTextProperty();
o.width = 42;
@@ -885,7 +885,7 @@ buildPage() {
checkPage(api.Page o) {
buildCounterPage++;
if (buildCounterPage < 3) {
- checkUnnamed1237(o.blocks);
+ checkUnnamed1244(o.blocks);
unittest.expect(o.height, unittest.equals(42));
checkTextProperty(o.property);
unittest.expect(o.width, unittest.equals(42));
@@ -893,14 +893,14 @@ checkPage(api.Page o) {
buildCounterPage--;
}
-buildUnnamed1238() {
+buildUnnamed1245() {
var o = new core.List<api.Word>();
o.add(buildWord());
o.add(buildWord());
return o;
}
-checkUnnamed1238(core.List<api.Word> o) {
+checkUnnamed1245(core.List<api.Word> o) {
unittest.expect(o, unittest.hasLength(2));
checkWord(o[0]);
checkWord(o[1]);
@@ -913,7 +913,7 @@ buildParagraph() {
if (buildCounterParagraph < 3) {
o.boundingBox = buildBoundingPoly();
o.property = buildTextProperty();
- o.words = buildUnnamed1238();
+ o.words = buildUnnamed1245();
}
buildCounterParagraph--;
return o;
@@ -924,7 +924,7 @@ checkParagraph(api.Paragraph o) {
if (buildCounterParagraph < 3) {
checkBoundingPoly(o.boundingBox);
checkTextProperty(o.property);
- checkUnnamed1238(o.words);
+ checkUnnamed1245(o.words);
}
buildCounterParagraph--;
}
@@ -1000,30 +1000,30 @@ checkSafeSearchAnnotation(api.SafeSearchAnnotation o) {
buildCounterSafeSearchAnnotation--;
}
-buildUnnamed1239() {
+buildUnnamed1246() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
return o;
}
-checkUnnamed1239(core.Map<core.String, core.Object> o) {
+checkUnnamed1246(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
}
-buildUnnamed1240() {
+buildUnnamed1247() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed1239());
- o.add(buildUnnamed1239());
+ o.add(buildUnnamed1246());
+ o.add(buildUnnamed1246());
return o;
}
-checkUnnamed1240(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed1247(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed1239(o[0]);
- checkUnnamed1239(o[1]);
+ checkUnnamed1246(o[0]);
+ checkUnnamed1246(o[1]);
}
core.int buildCounterStatus = 0;
@@ -1032,7 +1032,7 @@ buildStatus() {
buildCounterStatus++;
if (buildCounterStatus < 3) {
o.code = 42;
- o.details = buildUnnamed1240();
+ o.details = buildUnnamed1247();
o.message = "foo";
}
buildCounterStatus--;
@@ -1043,7 +1043,7 @@ checkStatus(api.Status o) {
buildCounterStatus++;
if (buildCounterStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed1240(o.details);
+ checkUnnamed1247(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterStatus--;
@@ -1072,14 +1072,14 @@ checkSymbol(api.Symbol o) {
buildCounterSymbol--;
}
-buildUnnamed1241() {
+buildUnnamed1248() {
var o = new core.List<api.Page>();
o.add(buildPage());
o.add(buildPage());
return o;
}
-checkUnnamed1241(core.List<api.Page> o) {
+checkUnnamed1248(core.List<api.Page> o) {
unittest.expect(o, unittest.hasLength(2));
checkPage(o[0]);
checkPage(o[1]);
@@ -1090,7 +1090,7 @@ buildTextAnnotation() {
var o = new api.TextAnnotation();
buildCounterTextAnnotation++;
if (buildCounterTextAnnotation < 3) {
- o.pages = buildUnnamed1241();
+ o.pages = buildUnnamed1248();
o.text = "foo";
}
buildCounterTextAnnotation--;
@@ -1100,20 +1100,20 @@ buildTextAnnotation() {
checkTextAnnotation(api.TextAnnotation o) {
buildCounterTextAnnotation++;
if (buildCounterTextAnnotation < 3) {
- checkUnnamed1241(o.pages);
+ checkUnnamed1248(o.pages);
unittest.expect(o.text, unittest.equals('foo'));
}
buildCounterTextAnnotation--;
}
-buildUnnamed1242() {
+buildUnnamed1249() {
var o = new core.List<api.DetectedLanguage>();
o.add(buildDetectedLanguage());
o.add(buildDetectedLanguage());
return o;
}
-checkUnnamed1242(core.List<api.DetectedLanguage> o) {
+checkUnnamed1249(core.List<api.DetectedLanguage> o) {
unittest.expect(o, unittest.hasLength(2));
checkDetectedLanguage(o[0]);
checkDetectedLanguage(o[1]);
@@ -1125,7 +1125,7 @@ buildTextProperty() {
buildCounterTextProperty++;
if (buildCounterTextProperty < 3) {
o.detectedBreak = buildDetectedBreak();
- o.detectedLanguages = buildUnnamed1242();
+ o.detectedLanguages = buildUnnamed1249();
}
buildCounterTextProperty--;
return o;
@@ -1135,7 +1135,7 @@ checkTextProperty(api.TextProperty o) {
buildCounterTextProperty++;
if (buildCounterTextProperty < 3) {
checkDetectedBreak(o.detectedBreak);
- checkUnnamed1242(o.detectedLanguages);
+ checkUnnamed1249(o.detectedLanguages);
}
buildCounterTextProperty--;
}
@@ -1161,66 +1161,66 @@ checkVertex(api.Vertex o) {
buildCounterVertex--;
}
-buildUnnamed1243() {
+buildUnnamed1250() {
var o = new core.List<api.WebImage>();
o.add(buildWebImage());
o.add(buildWebImage());
return o;
}
-checkUnnamed1243(core.List<api.WebImage> o) {
+checkUnnamed1250(core.List<api.WebImage> o) {
unittest.expect(o, unittest.hasLength(2));
checkWebImage(o[0]);
checkWebImage(o[1]);
}
-buildUnnamed1244() {
+buildUnnamed1251() {
var o = new core.List<api.WebPage>();
o.add(buildWebPage());
o.add(buildWebPage());
return o;
}
-checkUnnamed1244(core.List<api.WebPage> o) {
+checkUnnamed1251(core.List<api.WebPage> o) {
unittest.expect(o, unittest.hasLength(2));
checkWebPage(o[0]);
checkWebPage(o[1]);
}
-buildUnnamed1245() {
+buildUnnamed1252() {
var o = new core.List<api.WebImage>();
o.add(buildWebImage());
o.add(buildWebImage());
return o;
}
-checkUnnamed1245(core.List<api.WebImage> o) {
+checkUnnamed1252(core.List<api.WebImage> o) {
unittest.expect(o, unittest.hasLength(2));
checkWebImage(o[0]);
checkWebImage(o[1]);
}
-buildUnnamed1246() {
+buildUnnamed1253() {
var o = new core.List<api.WebImage>();
o.add(buildWebImage());
o.add(buildWebImage());
return o;
}
-checkUnnamed1246(core.List<api.WebImage> o) {
+checkUnnamed1253(core.List<api.WebImage> o) {
unittest.expect(o, unittest.hasLength(2));
checkWebImage(o[0]);
checkWebImage(o[1]);
}
-buildUnnamed1247() {
+buildUnnamed1254() {
var o = new core.List<api.WebEntity>();
o.add(buildWebEntity());
o.add(buildWebEntity());
return o;
}
-checkUnnamed1247(core.List<api.WebEntity> o) {
+checkUnnamed1254(core.List<api.WebEntity> o) {
unittest.expect(o, unittest.hasLength(2));
checkWebEntity(o[0]);
checkWebEntity(o[1]);
@@ -1231,11 +1231,11 @@ buildWebDetection() {
var o = new api.WebDetection();
buildCounterWebDetection++;
if (buildCounterWebDetection < 3) {
- o.fullMatchingImages = buildUnnamed1243();
- o.pagesWithMatchingImages = buildUnnamed1244();
- o.partialMatchingImages = buildUnnamed1245();
- o.visuallySimilarImages = buildUnnamed1246();
- o.webEntities = buildUnnamed1247();
+ o.fullMatchingImages = buildUnnamed1250();
+ o.pagesWithMatchingImages = buildUnnamed1251();
+ o.partialMatchingImages = buildUnnamed1252();
+ o.visuallySimilarImages = buildUnnamed1253();
+ o.webEntities = buildUnnamed1254();
}
buildCounterWebDetection--;
return o;
@@ -1244,11 +1244,11 @@ buildWebDetection() {
checkWebDetection(api.WebDetection o) {
buildCounterWebDetection++;
if (buildCounterWebDetection < 3) {
- checkUnnamed1243(o.fullMatchingImages);
- checkUnnamed1244(o.pagesWithMatchingImages);
- checkUnnamed1245(o.partialMatchingImages);
- checkUnnamed1246(o.visuallySimilarImages);
- checkUnnamed1247(o.webEntities);
+ checkUnnamed1250(o.fullMatchingImages);
+ checkUnnamed1251(o.pagesWithMatchingImages);
+ checkUnnamed1252(o.partialMatchingImages);
+ checkUnnamed1253(o.visuallySimilarImages);
+ checkUnnamed1254(o.webEntities);
}
buildCounterWebDetection--;
}
@@ -1318,14 +1318,14 @@ checkWebPage(api.WebPage o) {
buildCounterWebPage--;
}
-buildUnnamed1248() {
+buildUnnamed1255() {
var o = new core.List<api.Symbol>();
o.add(buildSymbol());
o.add(buildSymbol());
return o;
}
-checkUnnamed1248(core.List<api.Symbol> o) {
+checkUnnamed1255(core.List<api.Symbol> o) {
unittest.expect(o, unittest.hasLength(2));
checkSymbol(o[0]);
checkSymbol(o[1]);
@@ -1338,7 +1338,7 @@ buildWord() {
if (buildCounterWord < 3) {
o.boundingBox = buildBoundingPoly();
o.property = buildTextProperty();
- o.symbols = buildUnnamed1248();
+ o.symbols = buildUnnamed1255();
}
buildCounterWord--;
return o;
@@ -1349,7 +1349,7 @@ checkWord(api.Word o) {
if (buildCounterWord < 3) {
checkBoundingPoly(o.boundingBox);
checkTextProperty(o.property);
- checkUnnamed1248(o.symbols);
+ checkUnnamed1255(o.symbols);
}
buildCounterWord--;
}
@@ -1722,7 +1722,7 @@ main() {
var mock = new HttpServerMock();
api.ImagesResourceApi res = new api.VisionApi(mock).images;
var arg_request = buildBatchAnnotateImagesRequest();
- mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var obj = new api.BatchAnnotateImagesRequest.fromJson(json);
checkBatchAnnotateImagesRequest(obj);
@@ -1759,7 +1759,7 @@ main() {
var resp = convert.JSON.encode(buildBatchAnnotateImagesResponse());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.annotate(arg_request).then(unittest.expectAsync(((api.BatchAnnotateImagesResponse response) {
+ res.annotate(arg_request).then(unittest.expectAsync1(((api.BatchAnnotateImagesResponse response) {
checkBatchAnnotateImagesResponse(response);
})));
});
« no previous file with comments | « generated/googleapis/test/urlshortener/v1_test.dart ('k') | generated/googleapis/test/webfonts/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698