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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.vision.v1.test; 1 library googleapis.vision.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:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1289() { 54 buildUnnamed1306() {
55 var o = new core.List<api.Feature>(); 55 var o = new core.List<api.Feature>();
56 o.add(buildFeature()); 56 o.add(buildFeature());
57 o.add(buildFeature()); 57 o.add(buildFeature());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1289(core.List<api.Feature> o) { 61 checkUnnamed1306(core.List<api.Feature> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkFeature(o[0]); 63 checkFeature(o[0]);
64 checkFeature(o[1]); 64 checkFeature(o[1]);
65 } 65 }
66 66
67 core.int buildCounterAnnotateImageRequest = 0; 67 core.int buildCounterAnnotateImageRequest = 0;
68 buildAnnotateImageRequest() { 68 buildAnnotateImageRequest() {
69 var o = new api.AnnotateImageRequest(); 69 var o = new api.AnnotateImageRequest();
70 buildCounterAnnotateImageRequest++; 70 buildCounterAnnotateImageRequest++;
71 if (buildCounterAnnotateImageRequest < 3) { 71 if (buildCounterAnnotateImageRequest < 3) {
72 o.features = buildUnnamed1289(); 72 o.features = buildUnnamed1306();
73 o.image = buildImage(); 73 o.image = buildImage();
74 o.imageContext = buildImageContext(); 74 o.imageContext = buildImageContext();
75 } 75 }
76 buildCounterAnnotateImageRequest--; 76 buildCounterAnnotateImageRequest--;
77 return o; 77 return o;
78 } 78 }
79 79
80 checkAnnotateImageRequest(api.AnnotateImageRequest o) { 80 checkAnnotateImageRequest(api.AnnotateImageRequest o) {
81 buildCounterAnnotateImageRequest++; 81 buildCounterAnnotateImageRequest++;
82 if (buildCounterAnnotateImageRequest < 3) { 82 if (buildCounterAnnotateImageRequest < 3) {
83 checkUnnamed1289(o.features); 83 checkUnnamed1306(o.features);
84 checkImage(o.image); 84 checkImage(o.image);
85 checkImageContext(o.imageContext); 85 checkImageContext(o.imageContext);
86 } 86 }
87 buildCounterAnnotateImageRequest--; 87 buildCounterAnnotateImageRequest--;
88 } 88 }
89 89
90 buildUnnamed1290() { 90 buildUnnamed1307() {
91 var o = new core.List<api.FaceAnnotation>(); 91 var o = new core.List<api.FaceAnnotation>();
92 o.add(buildFaceAnnotation()); 92 o.add(buildFaceAnnotation());
93 o.add(buildFaceAnnotation()); 93 o.add(buildFaceAnnotation());
94 return o; 94 return o;
95 } 95 }
96 96
97 checkUnnamed1290(core.List<api.FaceAnnotation> o) { 97 checkUnnamed1307(core.List<api.FaceAnnotation> o) {
98 unittest.expect(o, unittest.hasLength(2)); 98 unittest.expect(o, unittest.hasLength(2));
99 checkFaceAnnotation(o[0]); 99 checkFaceAnnotation(o[0]);
100 checkFaceAnnotation(o[1]); 100 checkFaceAnnotation(o[1]);
101 } 101 }
102 102
103 buildUnnamed1291() { 103 buildUnnamed1308() {
104 var o = new core.List<api.EntityAnnotation>(); 104 var o = new core.List<api.EntityAnnotation>();
105 o.add(buildEntityAnnotation()); 105 o.add(buildEntityAnnotation());
106 o.add(buildEntityAnnotation()); 106 o.add(buildEntityAnnotation());
107 return o; 107 return o;
108 } 108 }
109 109
110 checkUnnamed1291(core.List<api.EntityAnnotation> o) { 110 checkUnnamed1308(core.List<api.EntityAnnotation> o) {
111 unittest.expect(o, unittest.hasLength(2)); 111 unittest.expect(o, unittest.hasLength(2));
112 checkEntityAnnotation(o[0]); 112 checkEntityAnnotation(o[0]);
113 checkEntityAnnotation(o[1]); 113 checkEntityAnnotation(o[1]);
114 } 114 }
115 115
116 buildUnnamed1292() { 116 buildUnnamed1309() {
117 var o = new core.List<api.EntityAnnotation>(); 117 var o = new core.List<api.EntityAnnotation>();
118 o.add(buildEntityAnnotation()); 118 o.add(buildEntityAnnotation());
119 o.add(buildEntityAnnotation()); 119 o.add(buildEntityAnnotation());
120 return o; 120 return o;
121 } 121 }
122 122
123 checkUnnamed1292(core.List<api.EntityAnnotation> o) { 123 checkUnnamed1309(core.List<api.EntityAnnotation> o) {
124 unittest.expect(o, unittest.hasLength(2)); 124 unittest.expect(o, unittest.hasLength(2));
125 checkEntityAnnotation(o[0]); 125 checkEntityAnnotation(o[0]);
126 checkEntityAnnotation(o[1]); 126 checkEntityAnnotation(o[1]);
127 } 127 }
128 128
129 buildUnnamed1293() { 129 buildUnnamed1310() {
130 var o = new core.List<api.EntityAnnotation>(); 130 var o = new core.List<api.EntityAnnotation>();
131 o.add(buildEntityAnnotation()); 131 o.add(buildEntityAnnotation());
132 o.add(buildEntityAnnotation()); 132 o.add(buildEntityAnnotation());
133 return o; 133 return o;
134 } 134 }
135 135
136 checkUnnamed1293(core.List<api.EntityAnnotation> o) { 136 checkUnnamed1310(core.List<api.EntityAnnotation> o) {
137 unittest.expect(o, unittest.hasLength(2)); 137 unittest.expect(o, unittest.hasLength(2));
138 checkEntityAnnotation(o[0]); 138 checkEntityAnnotation(o[0]);
139 checkEntityAnnotation(o[1]); 139 checkEntityAnnotation(o[1]);
140 } 140 }
141 141
142 buildUnnamed1294() { 142 buildUnnamed1311() {
143 var o = new core.List<api.EntityAnnotation>(); 143 var o = new core.List<api.EntityAnnotation>();
144 o.add(buildEntityAnnotation()); 144 o.add(buildEntityAnnotation());
145 o.add(buildEntityAnnotation()); 145 o.add(buildEntityAnnotation());
146 return o; 146 return o;
147 } 147 }
148 148
149 checkUnnamed1294(core.List<api.EntityAnnotation> o) { 149 checkUnnamed1311(core.List<api.EntityAnnotation> o) {
150 unittest.expect(o, unittest.hasLength(2)); 150 unittest.expect(o, unittest.hasLength(2));
151 checkEntityAnnotation(o[0]); 151 checkEntityAnnotation(o[0]);
152 checkEntityAnnotation(o[1]); 152 checkEntityAnnotation(o[1]);
153 } 153 }
154 154
155 core.int buildCounterAnnotateImageResponse = 0; 155 core.int buildCounterAnnotateImageResponse = 0;
156 buildAnnotateImageResponse() { 156 buildAnnotateImageResponse() {
157 var o = new api.AnnotateImageResponse(); 157 var o = new api.AnnotateImageResponse();
158 buildCounterAnnotateImageResponse++; 158 buildCounterAnnotateImageResponse++;
159 if (buildCounterAnnotateImageResponse < 3) { 159 if (buildCounterAnnotateImageResponse < 3) {
160 o.cropHintsAnnotation = buildCropHintsAnnotation(); 160 o.cropHintsAnnotation = buildCropHintsAnnotation();
161 o.error = buildStatus(); 161 o.error = buildStatus();
162 o.faceAnnotations = buildUnnamed1290(); 162 o.faceAnnotations = buildUnnamed1307();
163 o.fullTextAnnotation = buildTextAnnotation(); 163 o.fullTextAnnotation = buildTextAnnotation();
164 o.imagePropertiesAnnotation = buildImageProperties(); 164 o.imagePropertiesAnnotation = buildImageProperties();
165 o.labelAnnotations = buildUnnamed1291(); 165 o.labelAnnotations = buildUnnamed1308();
166 o.landmarkAnnotations = buildUnnamed1292(); 166 o.landmarkAnnotations = buildUnnamed1309();
167 o.logoAnnotations = buildUnnamed1293(); 167 o.logoAnnotations = buildUnnamed1310();
168 o.safeSearchAnnotation = buildSafeSearchAnnotation(); 168 o.safeSearchAnnotation = buildSafeSearchAnnotation();
169 o.textAnnotations = buildUnnamed1294(); 169 o.textAnnotations = buildUnnamed1311();
170 o.webDetection = buildWebDetection(); 170 o.webDetection = buildWebDetection();
171 } 171 }
172 buildCounterAnnotateImageResponse--; 172 buildCounterAnnotateImageResponse--;
173 return o; 173 return o;
174 } 174 }
175 175
176 checkAnnotateImageResponse(api.AnnotateImageResponse o) { 176 checkAnnotateImageResponse(api.AnnotateImageResponse o) {
177 buildCounterAnnotateImageResponse++; 177 buildCounterAnnotateImageResponse++;
178 if (buildCounterAnnotateImageResponse < 3) { 178 if (buildCounterAnnotateImageResponse < 3) {
179 checkCropHintsAnnotation(o.cropHintsAnnotation); 179 checkCropHintsAnnotation(o.cropHintsAnnotation);
180 checkStatus(o.error); 180 checkStatus(o.error);
181 checkUnnamed1290(o.faceAnnotations); 181 checkUnnamed1307(o.faceAnnotations);
182 checkTextAnnotation(o.fullTextAnnotation); 182 checkTextAnnotation(o.fullTextAnnotation);
183 checkImageProperties(o.imagePropertiesAnnotation); 183 checkImageProperties(o.imagePropertiesAnnotation);
184 checkUnnamed1291(o.labelAnnotations); 184 checkUnnamed1308(o.labelAnnotations);
185 checkUnnamed1292(o.landmarkAnnotations); 185 checkUnnamed1309(o.landmarkAnnotations);
186 checkUnnamed1293(o.logoAnnotations); 186 checkUnnamed1310(o.logoAnnotations);
187 checkSafeSearchAnnotation(o.safeSearchAnnotation); 187 checkSafeSearchAnnotation(o.safeSearchAnnotation);
188 checkUnnamed1294(o.textAnnotations); 188 checkUnnamed1311(o.textAnnotations);
189 checkWebDetection(o.webDetection); 189 checkWebDetection(o.webDetection);
190 } 190 }
191 buildCounterAnnotateImageResponse--; 191 buildCounterAnnotateImageResponse--;
192 } 192 }
193 193
194 buildUnnamed1295() { 194 buildUnnamed1312() {
195 var o = new core.List<api.AnnotateImageRequest>(); 195 var o = new core.List<api.AnnotateImageRequest>();
196 o.add(buildAnnotateImageRequest()); 196 o.add(buildAnnotateImageRequest());
197 o.add(buildAnnotateImageRequest()); 197 o.add(buildAnnotateImageRequest());
198 return o; 198 return o;
199 } 199 }
200 200
201 checkUnnamed1295(core.List<api.AnnotateImageRequest> o) { 201 checkUnnamed1312(core.List<api.AnnotateImageRequest> o) {
202 unittest.expect(o, unittest.hasLength(2)); 202 unittest.expect(o, unittest.hasLength(2));
203 checkAnnotateImageRequest(o[0]); 203 checkAnnotateImageRequest(o[0]);
204 checkAnnotateImageRequest(o[1]); 204 checkAnnotateImageRequest(o[1]);
205 } 205 }
206 206
207 core.int buildCounterBatchAnnotateImagesRequest = 0; 207 core.int buildCounterBatchAnnotateImagesRequest = 0;
208 buildBatchAnnotateImagesRequest() { 208 buildBatchAnnotateImagesRequest() {
209 var o = new api.BatchAnnotateImagesRequest(); 209 var o = new api.BatchAnnotateImagesRequest();
210 buildCounterBatchAnnotateImagesRequest++; 210 buildCounterBatchAnnotateImagesRequest++;
211 if (buildCounterBatchAnnotateImagesRequest < 3) { 211 if (buildCounterBatchAnnotateImagesRequest < 3) {
212 o.requests = buildUnnamed1295(); 212 o.requests = buildUnnamed1312();
213 } 213 }
214 buildCounterBatchAnnotateImagesRequest--; 214 buildCounterBatchAnnotateImagesRequest--;
215 return o; 215 return o;
216 } 216 }
217 217
218 checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { 218 checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) {
219 buildCounterBatchAnnotateImagesRequest++; 219 buildCounterBatchAnnotateImagesRequest++;
220 if (buildCounterBatchAnnotateImagesRequest < 3) { 220 if (buildCounterBatchAnnotateImagesRequest < 3) {
221 checkUnnamed1295(o.requests); 221 checkUnnamed1312(o.requests);
222 } 222 }
223 buildCounterBatchAnnotateImagesRequest--; 223 buildCounterBatchAnnotateImagesRequest--;
224 } 224 }
225 225
226 buildUnnamed1296() { 226 buildUnnamed1313() {
227 var o = new core.List<api.AnnotateImageResponse>(); 227 var o = new core.List<api.AnnotateImageResponse>();
228 o.add(buildAnnotateImageResponse()); 228 o.add(buildAnnotateImageResponse());
229 o.add(buildAnnotateImageResponse()); 229 o.add(buildAnnotateImageResponse());
230 return o; 230 return o;
231 } 231 }
232 232
233 checkUnnamed1296(core.List<api.AnnotateImageResponse> o) { 233 checkUnnamed1313(core.List<api.AnnotateImageResponse> o) {
234 unittest.expect(o, unittest.hasLength(2)); 234 unittest.expect(o, unittest.hasLength(2));
235 checkAnnotateImageResponse(o[0]); 235 checkAnnotateImageResponse(o[0]);
236 checkAnnotateImageResponse(o[1]); 236 checkAnnotateImageResponse(o[1]);
237 } 237 }
238 238
239 core.int buildCounterBatchAnnotateImagesResponse = 0; 239 core.int buildCounterBatchAnnotateImagesResponse = 0;
240 buildBatchAnnotateImagesResponse() { 240 buildBatchAnnotateImagesResponse() {
241 var o = new api.BatchAnnotateImagesResponse(); 241 var o = new api.BatchAnnotateImagesResponse();
242 buildCounterBatchAnnotateImagesResponse++; 242 buildCounterBatchAnnotateImagesResponse++;
243 if (buildCounterBatchAnnotateImagesResponse < 3) { 243 if (buildCounterBatchAnnotateImagesResponse < 3) {
244 o.responses = buildUnnamed1296(); 244 o.responses = buildUnnamed1313();
245 } 245 }
246 buildCounterBatchAnnotateImagesResponse--; 246 buildCounterBatchAnnotateImagesResponse--;
247 return o; 247 return o;
248 } 248 }
249 249
250 checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { 250 checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) {
251 buildCounterBatchAnnotateImagesResponse++; 251 buildCounterBatchAnnotateImagesResponse++;
252 if (buildCounterBatchAnnotateImagesResponse < 3) { 252 if (buildCounterBatchAnnotateImagesResponse < 3) {
253 checkUnnamed1296(o.responses); 253 checkUnnamed1313(o.responses);
254 } 254 }
255 buildCounterBatchAnnotateImagesResponse--; 255 buildCounterBatchAnnotateImagesResponse--;
256 } 256 }
257 257
258 buildUnnamed1297() { 258 buildUnnamed1314() {
259 var o = new core.List<api.Paragraph>(); 259 var o = new core.List<api.Paragraph>();
260 o.add(buildParagraph()); 260 o.add(buildParagraph());
261 o.add(buildParagraph()); 261 o.add(buildParagraph());
262 return o; 262 return o;
263 } 263 }
264 264
265 checkUnnamed1297(core.List<api.Paragraph> o) { 265 checkUnnamed1314(core.List<api.Paragraph> o) {
266 unittest.expect(o, unittest.hasLength(2)); 266 unittest.expect(o, unittest.hasLength(2));
267 checkParagraph(o[0]); 267 checkParagraph(o[0]);
268 checkParagraph(o[1]); 268 checkParagraph(o[1]);
269 } 269 }
270 270
271 core.int buildCounterBlock = 0; 271 core.int buildCounterBlock = 0;
272 buildBlock() { 272 buildBlock() {
273 var o = new api.Block(); 273 var o = new api.Block();
274 buildCounterBlock++; 274 buildCounterBlock++;
275 if (buildCounterBlock < 3) { 275 if (buildCounterBlock < 3) {
276 o.blockType = "foo"; 276 o.blockType = "foo";
277 o.boundingBox = buildBoundingPoly(); 277 o.boundingBox = buildBoundingPoly();
278 o.paragraphs = buildUnnamed1297(); 278 o.paragraphs = buildUnnamed1314();
279 o.property = buildTextProperty(); 279 o.property = buildTextProperty();
280 } 280 }
281 buildCounterBlock--; 281 buildCounterBlock--;
282 return o; 282 return o;
283 } 283 }
284 284
285 checkBlock(api.Block o) { 285 checkBlock(api.Block o) {
286 buildCounterBlock++; 286 buildCounterBlock++;
287 if (buildCounterBlock < 3) { 287 if (buildCounterBlock < 3) {
288 unittest.expect(o.blockType, unittest.equals('foo')); 288 unittest.expect(o.blockType, unittest.equals('foo'));
289 checkBoundingPoly(o.boundingBox); 289 checkBoundingPoly(o.boundingBox);
290 checkUnnamed1297(o.paragraphs); 290 checkUnnamed1314(o.paragraphs);
291 checkTextProperty(o.property); 291 checkTextProperty(o.property);
292 } 292 }
293 buildCounterBlock--; 293 buildCounterBlock--;
294 } 294 }
295 295
296 buildUnnamed1298() { 296 buildUnnamed1315() {
297 var o = new core.List<api.Vertex>(); 297 var o = new core.List<api.Vertex>();
298 o.add(buildVertex()); 298 o.add(buildVertex());
299 o.add(buildVertex()); 299 o.add(buildVertex());
300 return o; 300 return o;
301 } 301 }
302 302
303 checkUnnamed1298(core.List<api.Vertex> o) { 303 checkUnnamed1315(core.List<api.Vertex> o) {
304 unittest.expect(o, unittest.hasLength(2)); 304 unittest.expect(o, unittest.hasLength(2));
305 checkVertex(o[0]); 305 checkVertex(o[0]);
306 checkVertex(o[1]); 306 checkVertex(o[1]);
307 } 307 }
308 308
309 core.int buildCounterBoundingPoly = 0; 309 core.int buildCounterBoundingPoly = 0;
310 buildBoundingPoly() { 310 buildBoundingPoly() {
311 var o = new api.BoundingPoly(); 311 var o = new api.BoundingPoly();
312 buildCounterBoundingPoly++; 312 buildCounterBoundingPoly++;
313 if (buildCounterBoundingPoly < 3) { 313 if (buildCounterBoundingPoly < 3) {
314 o.vertices = buildUnnamed1298(); 314 o.vertices = buildUnnamed1315();
315 } 315 }
316 buildCounterBoundingPoly--; 316 buildCounterBoundingPoly--;
317 return o; 317 return o;
318 } 318 }
319 319
320 checkBoundingPoly(api.BoundingPoly o) { 320 checkBoundingPoly(api.BoundingPoly o) {
321 buildCounterBoundingPoly++; 321 buildCounterBoundingPoly++;
322 if (buildCounterBoundingPoly < 3) { 322 if (buildCounterBoundingPoly < 3) {
323 checkUnnamed1298(o.vertices); 323 checkUnnamed1315(o.vertices);
324 } 324 }
325 buildCounterBoundingPoly--; 325 buildCounterBoundingPoly--;
326 } 326 }
327 327
328 core.int buildCounterColor = 0; 328 core.int buildCounterColor = 0;
329 buildColor() { 329 buildColor() {
330 var o = new api.Color(); 330 var o = new api.Color();
331 buildCounterColor++; 331 buildCounterColor++;
332 if (buildCounterColor < 3) { 332 if (buildCounterColor < 3) {
333 o.alpha = 42.0; 333 o.alpha = 42.0;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 checkCropHint(api.CropHint o) { 389 checkCropHint(api.CropHint o) {
390 buildCounterCropHint++; 390 buildCounterCropHint++;
391 if (buildCounterCropHint < 3) { 391 if (buildCounterCropHint < 3) {
392 checkBoundingPoly(o.boundingPoly); 392 checkBoundingPoly(o.boundingPoly);
393 unittest.expect(o.confidence, unittest.equals(42.0)); 393 unittest.expect(o.confidence, unittest.equals(42.0));
394 unittest.expect(o.importanceFraction, unittest.equals(42.0)); 394 unittest.expect(o.importanceFraction, unittest.equals(42.0));
395 } 395 }
396 buildCounterCropHint--; 396 buildCounterCropHint--;
397 } 397 }
398 398
399 buildUnnamed1299() { 399 buildUnnamed1316() {
400 var o = new core.List<api.CropHint>(); 400 var o = new core.List<api.CropHint>();
401 o.add(buildCropHint()); 401 o.add(buildCropHint());
402 o.add(buildCropHint()); 402 o.add(buildCropHint());
403 return o; 403 return o;
404 } 404 }
405 405
406 checkUnnamed1299(core.List<api.CropHint> o) { 406 checkUnnamed1316(core.List<api.CropHint> o) {
407 unittest.expect(o, unittest.hasLength(2)); 407 unittest.expect(o, unittest.hasLength(2));
408 checkCropHint(o[0]); 408 checkCropHint(o[0]);
409 checkCropHint(o[1]); 409 checkCropHint(o[1]);
410 } 410 }
411 411
412 core.int buildCounterCropHintsAnnotation = 0; 412 core.int buildCounterCropHintsAnnotation = 0;
413 buildCropHintsAnnotation() { 413 buildCropHintsAnnotation() {
414 var o = new api.CropHintsAnnotation(); 414 var o = new api.CropHintsAnnotation();
415 buildCounterCropHintsAnnotation++; 415 buildCounterCropHintsAnnotation++;
416 if (buildCounterCropHintsAnnotation < 3) { 416 if (buildCounterCropHintsAnnotation < 3) {
417 o.cropHints = buildUnnamed1299(); 417 o.cropHints = buildUnnamed1316();
418 } 418 }
419 buildCounterCropHintsAnnotation--; 419 buildCounterCropHintsAnnotation--;
420 return o; 420 return o;
421 } 421 }
422 422
423 checkCropHintsAnnotation(api.CropHintsAnnotation o) { 423 checkCropHintsAnnotation(api.CropHintsAnnotation o) {
424 buildCounterCropHintsAnnotation++; 424 buildCounterCropHintsAnnotation++;
425 if (buildCounterCropHintsAnnotation < 3) { 425 if (buildCounterCropHintsAnnotation < 3) {
426 checkUnnamed1299(o.cropHints); 426 checkUnnamed1316(o.cropHints);
427 } 427 }
428 buildCounterCropHintsAnnotation--; 428 buildCounterCropHintsAnnotation--;
429 } 429 }
430 430
431 buildUnnamed1300() { 431 buildUnnamed1317() {
432 var o = new core.List<core.double>(); 432 var o = new core.List<core.double>();
433 o.add(42.0); 433 o.add(42.0);
434 o.add(42.0); 434 o.add(42.0);
435 return o; 435 return o;
436 } 436 }
437 437
438 checkUnnamed1300(core.List<core.double> o) { 438 checkUnnamed1317(core.List<core.double> o) {
439 unittest.expect(o, unittest.hasLength(2)); 439 unittest.expect(o, unittest.hasLength(2));
440 unittest.expect(o[0], unittest.equals(42.0)); 440 unittest.expect(o[0], unittest.equals(42.0));
441 unittest.expect(o[1], unittest.equals(42.0)); 441 unittest.expect(o[1], unittest.equals(42.0));
442 } 442 }
443 443
444 core.int buildCounterCropHintsParams = 0; 444 core.int buildCounterCropHintsParams = 0;
445 buildCropHintsParams() { 445 buildCropHintsParams() {
446 var o = new api.CropHintsParams(); 446 var o = new api.CropHintsParams();
447 buildCounterCropHintsParams++; 447 buildCounterCropHintsParams++;
448 if (buildCounterCropHintsParams < 3) { 448 if (buildCounterCropHintsParams < 3) {
449 o.aspectRatios = buildUnnamed1300(); 449 o.aspectRatios = buildUnnamed1317();
450 } 450 }
451 buildCounterCropHintsParams--; 451 buildCounterCropHintsParams--;
452 return o; 452 return o;
453 } 453 }
454 454
455 checkCropHintsParams(api.CropHintsParams o) { 455 checkCropHintsParams(api.CropHintsParams o) {
456 buildCounterCropHintsParams++; 456 buildCounterCropHintsParams++;
457 if (buildCounterCropHintsParams < 3) { 457 if (buildCounterCropHintsParams < 3) {
458 checkUnnamed1300(o.aspectRatios); 458 checkUnnamed1317(o.aspectRatios);
459 } 459 }
460 buildCounterCropHintsParams--; 460 buildCounterCropHintsParams--;
461 } 461 }
462 462
463 core.int buildCounterDetectedBreak = 0; 463 core.int buildCounterDetectedBreak = 0;
464 buildDetectedBreak() { 464 buildDetectedBreak() {
465 var o = new api.DetectedBreak(); 465 var o = new api.DetectedBreak();
466 buildCounterDetectedBreak++; 466 buildCounterDetectedBreak++;
467 if (buildCounterDetectedBreak < 3) { 467 if (buildCounterDetectedBreak < 3) {
468 o.isPrefix = true; 468 o.isPrefix = true;
(...skipping 26 matching lines...) Expand all
495 495
496 checkDetectedLanguage(api.DetectedLanguage o) { 496 checkDetectedLanguage(api.DetectedLanguage o) {
497 buildCounterDetectedLanguage++; 497 buildCounterDetectedLanguage++;
498 if (buildCounterDetectedLanguage < 3) { 498 if (buildCounterDetectedLanguage < 3) {
499 unittest.expect(o.confidence, unittest.equals(42.0)); 499 unittest.expect(o.confidence, unittest.equals(42.0));
500 unittest.expect(o.languageCode, unittest.equals('foo')); 500 unittest.expect(o.languageCode, unittest.equals('foo'));
501 } 501 }
502 buildCounterDetectedLanguage--; 502 buildCounterDetectedLanguage--;
503 } 503 }
504 504
505 buildUnnamed1301() { 505 buildUnnamed1318() {
506 var o = new core.List<api.ColorInfo>(); 506 var o = new core.List<api.ColorInfo>();
507 o.add(buildColorInfo()); 507 o.add(buildColorInfo());
508 o.add(buildColorInfo()); 508 o.add(buildColorInfo());
509 return o; 509 return o;
510 } 510 }
511 511
512 checkUnnamed1301(core.List<api.ColorInfo> o) { 512 checkUnnamed1318(core.List<api.ColorInfo> o) {
513 unittest.expect(o, unittest.hasLength(2)); 513 unittest.expect(o, unittest.hasLength(2));
514 checkColorInfo(o[0]); 514 checkColorInfo(o[0]);
515 checkColorInfo(o[1]); 515 checkColorInfo(o[1]);
516 } 516 }
517 517
518 core.int buildCounterDominantColorsAnnotation = 0; 518 core.int buildCounterDominantColorsAnnotation = 0;
519 buildDominantColorsAnnotation() { 519 buildDominantColorsAnnotation() {
520 var o = new api.DominantColorsAnnotation(); 520 var o = new api.DominantColorsAnnotation();
521 buildCounterDominantColorsAnnotation++; 521 buildCounterDominantColorsAnnotation++;
522 if (buildCounterDominantColorsAnnotation < 3) { 522 if (buildCounterDominantColorsAnnotation < 3) {
523 o.colors = buildUnnamed1301(); 523 o.colors = buildUnnamed1318();
524 } 524 }
525 buildCounterDominantColorsAnnotation--; 525 buildCounterDominantColorsAnnotation--;
526 return o; 526 return o;
527 } 527 }
528 528
529 checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { 529 checkDominantColorsAnnotation(api.DominantColorsAnnotation o) {
530 buildCounterDominantColorsAnnotation++; 530 buildCounterDominantColorsAnnotation++;
531 if (buildCounterDominantColorsAnnotation < 3) { 531 if (buildCounterDominantColorsAnnotation < 3) {
532 checkUnnamed1301(o.colors); 532 checkUnnamed1318(o.colors);
533 } 533 }
534 buildCounterDominantColorsAnnotation--; 534 buildCounterDominantColorsAnnotation--;
535 } 535 }
536 536
537 buildUnnamed1302() { 537 buildUnnamed1319() {
538 var o = new core.List<api.LocationInfo>(); 538 var o = new core.List<api.LocationInfo>();
539 o.add(buildLocationInfo()); 539 o.add(buildLocationInfo());
540 o.add(buildLocationInfo()); 540 o.add(buildLocationInfo());
541 return o; 541 return o;
542 } 542 }
543 543
544 checkUnnamed1302(core.List<api.LocationInfo> o) { 544 checkUnnamed1319(core.List<api.LocationInfo> o) {
545 unittest.expect(o, unittest.hasLength(2)); 545 unittest.expect(o, unittest.hasLength(2));
546 checkLocationInfo(o[0]); 546 checkLocationInfo(o[0]);
547 checkLocationInfo(o[1]); 547 checkLocationInfo(o[1]);
548 } 548 }
549 549
550 buildUnnamed1303() { 550 buildUnnamed1320() {
551 var o = new core.List<api.Property>(); 551 var o = new core.List<api.Property>();
552 o.add(buildProperty()); 552 o.add(buildProperty());
553 o.add(buildProperty()); 553 o.add(buildProperty());
554 return o; 554 return o;
555 } 555 }
556 556
557 checkUnnamed1303(core.List<api.Property> o) { 557 checkUnnamed1320(core.List<api.Property> o) {
558 unittest.expect(o, unittest.hasLength(2)); 558 unittest.expect(o, unittest.hasLength(2));
559 checkProperty(o[0]); 559 checkProperty(o[0]);
560 checkProperty(o[1]); 560 checkProperty(o[1]);
561 } 561 }
562 562
563 core.int buildCounterEntityAnnotation = 0; 563 core.int buildCounterEntityAnnotation = 0;
564 buildEntityAnnotation() { 564 buildEntityAnnotation() {
565 var o = new api.EntityAnnotation(); 565 var o = new api.EntityAnnotation();
566 buildCounterEntityAnnotation++; 566 buildCounterEntityAnnotation++;
567 if (buildCounterEntityAnnotation < 3) { 567 if (buildCounterEntityAnnotation < 3) {
568 o.boundingPoly = buildBoundingPoly(); 568 o.boundingPoly = buildBoundingPoly();
569 o.confidence = 42.0; 569 o.confidence = 42.0;
570 o.description = "foo"; 570 o.description = "foo";
571 o.locale = "foo"; 571 o.locale = "foo";
572 o.locations = buildUnnamed1302(); 572 o.locations = buildUnnamed1319();
573 o.mid = "foo"; 573 o.mid = "foo";
574 o.properties = buildUnnamed1303(); 574 o.properties = buildUnnamed1320();
575 o.score = 42.0; 575 o.score = 42.0;
576 o.topicality = 42.0; 576 o.topicality = 42.0;
577 } 577 }
578 buildCounterEntityAnnotation--; 578 buildCounterEntityAnnotation--;
579 return o; 579 return o;
580 } 580 }
581 581
582 checkEntityAnnotation(api.EntityAnnotation o) { 582 checkEntityAnnotation(api.EntityAnnotation o) {
583 buildCounterEntityAnnotation++; 583 buildCounterEntityAnnotation++;
584 if (buildCounterEntityAnnotation < 3) { 584 if (buildCounterEntityAnnotation < 3) {
585 checkBoundingPoly(o.boundingPoly); 585 checkBoundingPoly(o.boundingPoly);
586 unittest.expect(o.confidence, unittest.equals(42.0)); 586 unittest.expect(o.confidence, unittest.equals(42.0));
587 unittest.expect(o.description, unittest.equals('foo')); 587 unittest.expect(o.description, unittest.equals('foo'));
588 unittest.expect(o.locale, unittest.equals('foo')); 588 unittest.expect(o.locale, unittest.equals('foo'));
589 checkUnnamed1302(o.locations); 589 checkUnnamed1319(o.locations);
590 unittest.expect(o.mid, unittest.equals('foo')); 590 unittest.expect(o.mid, unittest.equals('foo'));
591 checkUnnamed1303(o.properties); 591 checkUnnamed1320(o.properties);
592 unittest.expect(o.score, unittest.equals(42.0)); 592 unittest.expect(o.score, unittest.equals(42.0));
593 unittest.expect(o.topicality, unittest.equals(42.0)); 593 unittest.expect(o.topicality, unittest.equals(42.0));
594 } 594 }
595 buildCounterEntityAnnotation--; 595 buildCounterEntityAnnotation--;
596 } 596 }
597 597
598 buildUnnamed1304() { 598 buildUnnamed1321() {
599 var o = new core.List<api.Landmark>(); 599 var o = new core.List<api.Landmark>();
600 o.add(buildLandmark()); 600 o.add(buildLandmark());
601 o.add(buildLandmark()); 601 o.add(buildLandmark());
602 return o; 602 return o;
603 } 603 }
604 604
605 checkUnnamed1304(core.List<api.Landmark> o) { 605 checkUnnamed1321(core.List<api.Landmark> o) {
606 unittest.expect(o, unittest.hasLength(2)); 606 unittest.expect(o, unittest.hasLength(2));
607 checkLandmark(o[0]); 607 checkLandmark(o[0]);
608 checkLandmark(o[1]); 608 checkLandmark(o[1]);
609 } 609 }
610 610
611 core.int buildCounterFaceAnnotation = 0; 611 core.int buildCounterFaceAnnotation = 0;
612 buildFaceAnnotation() { 612 buildFaceAnnotation() {
613 var o = new api.FaceAnnotation(); 613 var o = new api.FaceAnnotation();
614 buildCounterFaceAnnotation++; 614 buildCounterFaceAnnotation++;
615 if (buildCounterFaceAnnotation < 3) { 615 if (buildCounterFaceAnnotation < 3) {
616 o.angerLikelihood = "foo"; 616 o.angerLikelihood = "foo";
617 o.blurredLikelihood = "foo"; 617 o.blurredLikelihood = "foo";
618 o.boundingPoly = buildBoundingPoly(); 618 o.boundingPoly = buildBoundingPoly();
619 o.detectionConfidence = 42.0; 619 o.detectionConfidence = 42.0;
620 o.fdBoundingPoly = buildBoundingPoly(); 620 o.fdBoundingPoly = buildBoundingPoly();
621 o.headwearLikelihood = "foo"; 621 o.headwearLikelihood = "foo";
622 o.joyLikelihood = "foo"; 622 o.joyLikelihood = "foo";
623 o.landmarkingConfidence = 42.0; 623 o.landmarkingConfidence = 42.0;
624 o.landmarks = buildUnnamed1304(); 624 o.landmarks = buildUnnamed1321();
625 o.panAngle = 42.0; 625 o.panAngle = 42.0;
626 o.rollAngle = 42.0; 626 o.rollAngle = 42.0;
627 o.sorrowLikelihood = "foo"; 627 o.sorrowLikelihood = "foo";
628 o.surpriseLikelihood = "foo"; 628 o.surpriseLikelihood = "foo";
629 o.tiltAngle = 42.0; 629 o.tiltAngle = 42.0;
630 o.underExposedLikelihood = "foo"; 630 o.underExposedLikelihood = "foo";
631 } 631 }
632 buildCounterFaceAnnotation--; 632 buildCounterFaceAnnotation--;
633 return o; 633 return o;
634 } 634 }
635 635
636 checkFaceAnnotation(api.FaceAnnotation o) { 636 checkFaceAnnotation(api.FaceAnnotation o) {
637 buildCounterFaceAnnotation++; 637 buildCounterFaceAnnotation++;
638 if (buildCounterFaceAnnotation < 3) { 638 if (buildCounterFaceAnnotation < 3) {
639 unittest.expect(o.angerLikelihood, unittest.equals('foo')); 639 unittest.expect(o.angerLikelihood, unittest.equals('foo'));
640 unittest.expect(o.blurredLikelihood, unittest.equals('foo')); 640 unittest.expect(o.blurredLikelihood, unittest.equals('foo'));
641 checkBoundingPoly(o.boundingPoly); 641 checkBoundingPoly(o.boundingPoly);
642 unittest.expect(o.detectionConfidence, unittest.equals(42.0)); 642 unittest.expect(o.detectionConfidence, unittest.equals(42.0));
643 checkBoundingPoly(o.fdBoundingPoly); 643 checkBoundingPoly(o.fdBoundingPoly);
644 unittest.expect(o.headwearLikelihood, unittest.equals('foo')); 644 unittest.expect(o.headwearLikelihood, unittest.equals('foo'));
645 unittest.expect(o.joyLikelihood, unittest.equals('foo')); 645 unittest.expect(o.joyLikelihood, unittest.equals('foo'));
646 unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); 646 unittest.expect(o.landmarkingConfidence, unittest.equals(42.0));
647 checkUnnamed1304(o.landmarks); 647 checkUnnamed1321(o.landmarks);
648 unittest.expect(o.panAngle, unittest.equals(42.0)); 648 unittest.expect(o.panAngle, unittest.equals(42.0));
649 unittest.expect(o.rollAngle, unittest.equals(42.0)); 649 unittest.expect(o.rollAngle, unittest.equals(42.0));
650 unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); 650 unittest.expect(o.sorrowLikelihood, unittest.equals('foo'));
651 unittest.expect(o.surpriseLikelihood, unittest.equals('foo')); 651 unittest.expect(o.surpriseLikelihood, unittest.equals('foo'));
652 unittest.expect(o.tiltAngle, unittest.equals(42.0)); 652 unittest.expect(o.tiltAngle, unittest.equals(42.0));
653 unittest.expect(o.underExposedLikelihood, unittest.equals('foo')); 653 unittest.expect(o.underExposedLikelihood, unittest.equals('foo'));
654 } 654 }
655 buildCounterFaceAnnotation--; 655 buildCounterFaceAnnotation--;
656 } 656 }
657 657
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 690
691 checkImage(api.Image o) { 691 checkImage(api.Image o) {
692 buildCounterImage++; 692 buildCounterImage++;
693 if (buildCounterImage < 3) { 693 if (buildCounterImage < 3) {
694 unittest.expect(o.content, unittest.equals('foo')); 694 unittest.expect(o.content, unittest.equals('foo'));
695 checkImageSource(o.source); 695 checkImageSource(o.source);
696 } 696 }
697 buildCounterImage--; 697 buildCounterImage--;
698 } 698 }
699 699
700 buildUnnamed1305() { 700 buildUnnamed1322() {
701 var o = new core.List<core.String>(); 701 var o = new core.List<core.String>();
702 o.add("foo"); 702 o.add("foo");
703 o.add("foo"); 703 o.add("foo");
704 return o; 704 return o;
705 } 705 }
706 706
707 checkUnnamed1305(core.List<core.String> o) { 707 checkUnnamed1322(core.List<core.String> o) {
708 unittest.expect(o, unittest.hasLength(2)); 708 unittest.expect(o, unittest.hasLength(2));
709 unittest.expect(o[0], unittest.equals('foo')); 709 unittest.expect(o[0], unittest.equals('foo'));
710 unittest.expect(o[1], unittest.equals('foo')); 710 unittest.expect(o[1], unittest.equals('foo'));
711 } 711 }
712 712
713 core.int buildCounterImageContext = 0; 713 core.int buildCounterImageContext = 0;
714 buildImageContext() { 714 buildImageContext() {
715 var o = new api.ImageContext(); 715 var o = new api.ImageContext();
716 buildCounterImageContext++; 716 buildCounterImageContext++;
717 if (buildCounterImageContext < 3) { 717 if (buildCounterImageContext < 3) {
718 o.cropHintsParams = buildCropHintsParams(); 718 o.cropHintsParams = buildCropHintsParams();
719 o.languageHints = buildUnnamed1305(); 719 o.languageHints = buildUnnamed1322();
720 o.latLongRect = buildLatLongRect(); 720 o.latLongRect = buildLatLongRect();
721 } 721 }
722 buildCounterImageContext--; 722 buildCounterImageContext--;
723 return o; 723 return o;
724 } 724 }
725 725
726 checkImageContext(api.ImageContext o) { 726 checkImageContext(api.ImageContext o) {
727 buildCounterImageContext++; 727 buildCounterImageContext++;
728 if (buildCounterImageContext < 3) { 728 if (buildCounterImageContext < 3) {
729 checkCropHintsParams(o.cropHintsParams); 729 checkCropHintsParams(o.cropHintsParams);
730 checkUnnamed1305(o.languageHints); 730 checkUnnamed1322(o.languageHints);
731 checkLatLongRect(o.latLongRect); 731 checkLatLongRect(o.latLongRect);
732 } 732 }
733 buildCounterImageContext--; 733 buildCounterImageContext--;
734 } 734 }
735 735
736 core.int buildCounterImageProperties = 0; 736 core.int buildCounterImageProperties = 0;
737 buildImageProperties() { 737 buildImageProperties() {
738 var o = new api.ImageProperties(); 738 var o = new api.ImageProperties();
739 buildCounterImageProperties++; 739 buildCounterImageProperties++;
740 if (buildCounterImageProperties < 3) { 740 if (buildCounterImageProperties < 3) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 } 848 }
849 849
850 checkLocationInfo(api.LocationInfo o) { 850 checkLocationInfo(api.LocationInfo o) {
851 buildCounterLocationInfo++; 851 buildCounterLocationInfo++;
852 if (buildCounterLocationInfo < 3) { 852 if (buildCounterLocationInfo < 3) {
853 checkLatLng(o.latLng); 853 checkLatLng(o.latLng);
854 } 854 }
855 buildCounterLocationInfo--; 855 buildCounterLocationInfo--;
856 } 856 }
857 857
858 buildUnnamed1306() { 858 buildUnnamed1323() {
859 var o = new core.List<api.Block>(); 859 var o = new core.List<api.Block>();
860 o.add(buildBlock()); 860 o.add(buildBlock());
861 o.add(buildBlock()); 861 o.add(buildBlock());
862 return o; 862 return o;
863 } 863 }
864 864
865 checkUnnamed1306(core.List<api.Block> o) { 865 checkUnnamed1323(core.List<api.Block> o) {
866 unittest.expect(o, unittest.hasLength(2)); 866 unittest.expect(o, unittest.hasLength(2));
867 checkBlock(o[0]); 867 checkBlock(o[0]);
868 checkBlock(o[1]); 868 checkBlock(o[1]);
869 } 869 }
870 870
871 core.int buildCounterPage = 0; 871 core.int buildCounterPage = 0;
872 buildPage() { 872 buildPage() {
873 var o = new api.Page(); 873 var o = new api.Page();
874 buildCounterPage++; 874 buildCounterPage++;
875 if (buildCounterPage < 3) { 875 if (buildCounterPage < 3) {
876 o.blocks = buildUnnamed1306(); 876 o.blocks = buildUnnamed1323();
877 o.height = 42; 877 o.height = 42;
878 o.property = buildTextProperty(); 878 o.property = buildTextProperty();
879 o.width = 42; 879 o.width = 42;
880 } 880 }
881 buildCounterPage--; 881 buildCounterPage--;
882 return o; 882 return o;
883 } 883 }
884 884
885 checkPage(api.Page o) { 885 checkPage(api.Page o) {
886 buildCounterPage++; 886 buildCounterPage++;
887 if (buildCounterPage < 3) { 887 if (buildCounterPage < 3) {
888 checkUnnamed1306(o.blocks); 888 checkUnnamed1323(o.blocks);
889 unittest.expect(o.height, unittest.equals(42)); 889 unittest.expect(o.height, unittest.equals(42));
890 checkTextProperty(o.property); 890 checkTextProperty(o.property);
891 unittest.expect(o.width, unittest.equals(42)); 891 unittest.expect(o.width, unittest.equals(42));
892 } 892 }
893 buildCounterPage--; 893 buildCounterPage--;
894 } 894 }
895 895
896 buildUnnamed1307() { 896 buildUnnamed1324() {
897 var o = new core.List<api.Word>(); 897 var o = new core.List<api.Word>();
898 o.add(buildWord()); 898 o.add(buildWord());
899 o.add(buildWord()); 899 o.add(buildWord());
900 return o; 900 return o;
901 } 901 }
902 902
903 checkUnnamed1307(core.List<api.Word> o) { 903 checkUnnamed1324(core.List<api.Word> o) {
904 unittest.expect(o, unittest.hasLength(2)); 904 unittest.expect(o, unittest.hasLength(2));
905 checkWord(o[0]); 905 checkWord(o[0]);
906 checkWord(o[1]); 906 checkWord(o[1]);
907 } 907 }
908 908
909 core.int buildCounterParagraph = 0; 909 core.int buildCounterParagraph = 0;
910 buildParagraph() { 910 buildParagraph() {
911 var o = new api.Paragraph(); 911 var o = new api.Paragraph();
912 buildCounterParagraph++; 912 buildCounterParagraph++;
913 if (buildCounterParagraph < 3) { 913 if (buildCounterParagraph < 3) {
914 o.boundingBox = buildBoundingPoly(); 914 o.boundingBox = buildBoundingPoly();
915 o.property = buildTextProperty(); 915 o.property = buildTextProperty();
916 o.words = buildUnnamed1307(); 916 o.words = buildUnnamed1324();
917 } 917 }
918 buildCounterParagraph--; 918 buildCounterParagraph--;
919 return o; 919 return o;
920 } 920 }
921 921
922 checkParagraph(api.Paragraph o) { 922 checkParagraph(api.Paragraph o) {
923 buildCounterParagraph++; 923 buildCounterParagraph++;
924 if (buildCounterParagraph < 3) { 924 if (buildCounterParagraph < 3) {
925 checkBoundingPoly(o.boundingBox); 925 checkBoundingPoly(o.boundingBox);
926 checkTextProperty(o.property); 926 checkTextProperty(o.property);
927 checkUnnamed1307(o.words); 927 checkUnnamed1324(o.words);
928 } 928 }
929 buildCounterParagraph--; 929 buildCounterParagraph--;
930 } 930 }
931 931
932 core.int buildCounterPosition = 0; 932 core.int buildCounterPosition = 0;
933 buildPosition() { 933 buildPosition() {
934 var o = new api.Position(); 934 var o = new api.Position();
935 buildCounterPosition++; 935 buildCounterPosition++;
936 if (buildCounterPosition < 3) { 936 if (buildCounterPosition < 3) {
937 o.x = 42.0; 937 o.x = 42.0;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 buildCounterSafeSearchAnnotation++; 993 buildCounterSafeSearchAnnotation++;
994 if (buildCounterSafeSearchAnnotation < 3) { 994 if (buildCounterSafeSearchAnnotation < 3) {
995 unittest.expect(o.adult, unittest.equals('foo')); 995 unittest.expect(o.adult, unittest.equals('foo'));
996 unittest.expect(o.medical, unittest.equals('foo')); 996 unittest.expect(o.medical, unittest.equals('foo'));
997 unittest.expect(o.spoof, unittest.equals('foo')); 997 unittest.expect(o.spoof, unittest.equals('foo'));
998 unittest.expect(o.violence, unittest.equals('foo')); 998 unittest.expect(o.violence, unittest.equals('foo'));
999 } 999 }
1000 buildCounterSafeSearchAnnotation--; 1000 buildCounterSafeSearchAnnotation--;
1001 } 1001 }
1002 1002
1003 buildUnnamed1308() { 1003 buildUnnamed1325() {
1004 var o = new core.Map<core.String, core.Object>(); 1004 var o = new core.Map<core.String, core.Object>();
1005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1007 return o; 1007 return o;
1008 } 1008 }
1009 1009
1010 checkUnnamed1308(core.Map<core.String, core.Object> o) { 1010 checkUnnamed1325(core.Map<core.String, core.Object> o) {
1011 unittest.expect(o, unittest.hasLength(2)); 1011 unittest.expect(o, unittest.hasLength(2));
1012 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 1012 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
1013 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 1013 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
1014 } 1014 }
1015 1015
1016 buildUnnamed1309() { 1016 buildUnnamed1326() {
1017 var o = new core.List<core.Map<core.String, core.Object>>(); 1017 var o = new core.List<core.Map<core.String, core.Object>>();
1018 o.add(buildUnnamed1308()); 1018 o.add(buildUnnamed1325());
1019 o.add(buildUnnamed1308()); 1019 o.add(buildUnnamed1325());
1020 return o; 1020 return o;
1021 } 1021 }
1022 1022
1023 checkUnnamed1309(core.List<core.Map<core.String, core.Object>> o) { 1023 checkUnnamed1326(core.List<core.Map<core.String, core.Object>> o) {
1024 unittest.expect(o, unittest.hasLength(2)); 1024 unittest.expect(o, unittest.hasLength(2));
1025 checkUnnamed1308(o[0]); 1025 checkUnnamed1325(o[0]);
1026 checkUnnamed1308(o[1]); 1026 checkUnnamed1325(o[1]);
1027 } 1027 }
1028 1028
1029 core.int buildCounterStatus = 0; 1029 core.int buildCounterStatus = 0;
1030 buildStatus() { 1030 buildStatus() {
1031 var o = new api.Status(); 1031 var o = new api.Status();
1032 buildCounterStatus++; 1032 buildCounterStatus++;
1033 if (buildCounterStatus < 3) { 1033 if (buildCounterStatus < 3) {
1034 o.code = 42; 1034 o.code = 42;
1035 o.details = buildUnnamed1309(); 1035 o.details = buildUnnamed1326();
1036 o.message = "foo"; 1036 o.message = "foo";
1037 } 1037 }
1038 buildCounterStatus--; 1038 buildCounterStatus--;
1039 return o; 1039 return o;
1040 } 1040 }
1041 1041
1042 checkStatus(api.Status o) { 1042 checkStatus(api.Status o) {
1043 buildCounterStatus++; 1043 buildCounterStatus++;
1044 if (buildCounterStatus < 3) { 1044 if (buildCounterStatus < 3) {
1045 unittest.expect(o.code, unittest.equals(42)); 1045 unittest.expect(o.code, unittest.equals(42));
1046 checkUnnamed1309(o.details); 1046 checkUnnamed1326(o.details);
1047 unittest.expect(o.message, unittest.equals('foo')); 1047 unittest.expect(o.message, unittest.equals('foo'));
1048 } 1048 }
1049 buildCounterStatus--; 1049 buildCounterStatus--;
1050 } 1050 }
1051 1051
1052 core.int buildCounterSymbol = 0; 1052 core.int buildCounterSymbol = 0;
1053 buildSymbol() { 1053 buildSymbol() {
1054 var o = new api.Symbol(); 1054 var o = new api.Symbol();
1055 buildCounterSymbol++; 1055 buildCounterSymbol++;
1056 if (buildCounterSymbol < 3) { 1056 if (buildCounterSymbol < 3) {
1057 o.boundingBox = buildBoundingPoly(); 1057 o.boundingBox = buildBoundingPoly();
1058 o.property = buildTextProperty(); 1058 o.property = buildTextProperty();
1059 o.text = "foo"; 1059 o.text = "foo";
1060 } 1060 }
1061 buildCounterSymbol--; 1061 buildCounterSymbol--;
1062 return o; 1062 return o;
1063 } 1063 }
1064 1064
1065 checkSymbol(api.Symbol o) { 1065 checkSymbol(api.Symbol o) {
1066 buildCounterSymbol++; 1066 buildCounterSymbol++;
1067 if (buildCounterSymbol < 3) { 1067 if (buildCounterSymbol < 3) {
1068 checkBoundingPoly(o.boundingBox); 1068 checkBoundingPoly(o.boundingBox);
1069 checkTextProperty(o.property); 1069 checkTextProperty(o.property);
1070 unittest.expect(o.text, unittest.equals('foo')); 1070 unittest.expect(o.text, unittest.equals('foo'));
1071 } 1071 }
1072 buildCounterSymbol--; 1072 buildCounterSymbol--;
1073 } 1073 }
1074 1074
1075 buildUnnamed1310() { 1075 buildUnnamed1327() {
1076 var o = new core.List<api.Page>(); 1076 var o = new core.List<api.Page>();
1077 o.add(buildPage()); 1077 o.add(buildPage());
1078 o.add(buildPage()); 1078 o.add(buildPage());
1079 return o; 1079 return o;
1080 } 1080 }
1081 1081
1082 checkUnnamed1310(core.List<api.Page> o) { 1082 checkUnnamed1327(core.List<api.Page> o) {
1083 unittest.expect(o, unittest.hasLength(2)); 1083 unittest.expect(o, unittest.hasLength(2));
1084 checkPage(o[0]); 1084 checkPage(o[0]);
1085 checkPage(o[1]); 1085 checkPage(o[1]);
1086 } 1086 }
1087 1087
1088 core.int buildCounterTextAnnotation = 0; 1088 core.int buildCounterTextAnnotation = 0;
1089 buildTextAnnotation() { 1089 buildTextAnnotation() {
1090 var o = new api.TextAnnotation(); 1090 var o = new api.TextAnnotation();
1091 buildCounterTextAnnotation++; 1091 buildCounterTextAnnotation++;
1092 if (buildCounterTextAnnotation < 3) { 1092 if (buildCounterTextAnnotation < 3) {
1093 o.pages = buildUnnamed1310(); 1093 o.pages = buildUnnamed1327();
1094 o.text = "foo"; 1094 o.text = "foo";
1095 } 1095 }
1096 buildCounterTextAnnotation--; 1096 buildCounterTextAnnotation--;
1097 return o; 1097 return o;
1098 } 1098 }
1099 1099
1100 checkTextAnnotation(api.TextAnnotation o) { 1100 checkTextAnnotation(api.TextAnnotation o) {
1101 buildCounterTextAnnotation++; 1101 buildCounterTextAnnotation++;
1102 if (buildCounterTextAnnotation < 3) { 1102 if (buildCounterTextAnnotation < 3) {
1103 checkUnnamed1310(o.pages); 1103 checkUnnamed1327(o.pages);
1104 unittest.expect(o.text, unittest.equals('foo')); 1104 unittest.expect(o.text, unittest.equals('foo'));
1105 } 1105 }
1106 buildCounterTextAnnotation--; 1106 buildCounterTextAnnotation--;
1107 } 1107 }
1108 1108
1109 buildUnnamed1311() { 1109 buildUnnamed1328() {
1110 var o = new core.List<api.DetectedLanguage>(); 1110 var o = new core.List<api.DetectedLanguage>();
1111 o.add(buildDetectedLanguage()); 1111 o.add(buildDetectedLanguage());
1112 o.add(buildDetectedLanguage()); 1112 o.add(buildDetectedLanguage());
1113 return o; 1113 return o;
1114 } 1114 }
1115 1115
1116 checkUnnamed1311(core.List<api.DetectedLanguage> o) { 1116 checkUnnamed1328(core.List<api.DetectedLanguage> o) {
1117 unittest.expect(o, unittest.hasLength(2)); 1117 unittest.expect(o, unittest.hasLength(2));
1118 checkDetectedLanguage(o[0]); 1118 checkDetectedLanguage(o[0]);
1119 checkDetectedLanguage(o[1]); 1119 checkDetectedLanguage(o[1]);
1120 } 1120 }
1121 1121
1122 core.int buildCounterTextProperty = 0; 1122 core.int buildCounterTextProperty = 0;
1123 buildTextProperty() { 1123 buildTextProperty() {
1124 var o = new api.TextProperty(); 1124 var o = new api.TextProperty();
1125 buildCounterTextProperty++; 1125 buildCounterTextProperty++;
1126 if (buildCounterTextProperty < 3) { 1126 if (buildCounterTextProperty < 3) {
1127 o.detectedBreak = buildDetectedBreak(); 1127 o.detectedBreak = buildDetectedBreak();
1128 o.detectedLanguages = buildUnnamed1311(); 1128 o.detectedLanguages = buildUnnamed1328();
1129 } 1129 }
1130 buildCounterTextProperty--; 1130 buildCounterTextProperty--;
1131 return o; 1131 return o;
1132 } 1132 }
1133 1133
1134 checkTextProperty(api.TextProperty o) { 1134 checkTextProperty(api.TextProperty o) {
1135 buildCounterTextProperty++; 1135 buildCounterTextProperty++;
1136 if (buildCounterTextProperty < 3) { 1136 if (buildCounterTextProperty < 3) {
1137 checkDetectedBreak(o.detectedBreak); 1137 checkDetectedBreak(o.detectedBreak);
1138 checkUnnamed1311(o.detectedLanguages); 1138 checkUnnamed1328(o.detectedLanguages);
1139 } 1139 }
1140 buildCounterTextProperty--; 1140 buildCounterTextProperty--;
1141 } 1141 }
1142 1142
1143 core.int buildCounterVertex = 0; 1143 core.int buildCounterVertex = 0;
1144 buildVertex() { 1144 buildVertex() {
1145 var o = new api.Vertex(); 1145 var o = new api.Vertex();
1146 buildCounterVertex++; 1146 buildCounterVertex++;
1147 if (buildCounterVertex < 3) { 1147 if (buildCounterVertex < 3) {
1148 o.x = 42; 1148 o.x = 42;
1149 o.y = 42; 1149 o.y = 42;
1150 } 1150 }
1151 buildCounterVertex--; 1151 buildCounterVertex--;
1152 return o; 1152 return o;
1153 } 1153 }
1154 1154
1155 checkVertex(api.Vertex o) { 1155 checkVertex(api.Vertex o) {
1156 buildCounterVertex++; 1156 buildCounterVertex++;
1157 if (buildCounterVertex < 3) { 1157 if (buildCounterVertex < 3) {
1158 unittest.expect(o.x, unittest.equals(42)); 1158 unittest.expect(o.x, unittest.equals(42));
1159 unittest.expect(o.y, unittest.equals(42)); 1159 unittest.expect(o.y, unittest.equals(42));
1160 } 1160 }
1161 buildCounterVertex--; 1161 buildCounterVertex--;
1162 } 1162 }
1163 1163
1164 buildUnnamed1312() { 1164 buildUnnamed1329() {
1165 var o = new core.List<api.WebImage>(); 1165 var o = new core.List<api.WebImage>();
1166 o.add(buildWebImage()); 1166 o.add(buildWebImage());
1167 o.add(buildWebImage()); 1167 o.add(buildWebImage());
1168 return o; 1168 return o;
1169 } 1169 }
1170 1170
1171 checkUnnamed1312(core.List<api.WebImage> o) { 1171 checkUnnamed1329(core.List<api.WebImage> o) {
1172 unittest.expect(o, unittest.hasLength(2)); 1172 unittest.expect(o, unittest.hasLength(2));
1173 checkWebImage(o[0]); 1173 checkWebImage(o[0]);
1174 checkWebImage(o[1]); 1174 checkWebImage(o[1]);
1175 } 1175 }
1176 1176
1177 buildUnnamed1313() { 1177 buildUnnamed1330() {
1178 var o = new core.List<api.WebPage>(); 1178 var o = new core.List<api.WebPage>();
1179 o.add(buildWebPage()); 1179 o.add(buildWebPage());
1180 o.add(buildWebPage()); 1180 o.add(buildWebPage());
1181 return o; 1181 return o;
1182 } 1182 }
1183 1183
1184 checkUnnamed1313(core.List<api.WebPage> o) { 1184 checkUnnamed1330(core.List<api.WebPage> o) {
1185 unittest.expect(o, unittest.hasLength(2)); 1185 unittest.expect(o, unittest.hasLength(2));
1186 checkWebPage(o[0]); 1186 checkWebPage(o[0]);
1187 checkWebPage(o[1]); 1187 checkWebPage(o[1]);
1188 } 1188 }
1189 1189
1190 buildUnnamed1314() { 1190 buildUnnamed1331() {
1191 var o = new core.List<api.WebImage>(); 1191 var o = new core.List<api.WebImage>();
1192 o.add(buildWebImage()); 1192 o.add(buildWebImage());
1193 o.add(buildWebImage()); 1193 o.add(buildWebImage());
1194 return o; 1194 return o;
1195 } 1195 }
1196 1196
1197 checkUnnamed1314(core.List<api.WebImage> o) { 1197 checkUnnamed1331(core.List<api.WebImage> o) {
1198 unittest.expect(o, unittest.hasLength(2)); 1198 unittest.expect(o, unittest.hasLength(2));
1199 checkWebImage(o[0]); 1199 checkWebImage(o[0]);
1200 checkWebImage(o[1]); 1200 checkWebImage(o[1]);
1201 } 1201 }
1202 1202
1203 buildUnnamed1315() { 1203 buildUnnamed1332() {
1204 var o = new core.List<api.WebImage>(); 1204 var o = new core.List<api.WebImage>();
1205 o.add(buildWebImage()); 1205 o.add(buildWebImage());
1206 o.add(buildWebImage()); 1206 o.add(buildWebImage());
1207 return o; 1207 return o;
1208 } 1208 }
1209 1209
1210 checkUnnamed1315(core.List<api.WebImage> o) { 1210 checkUnnamed1332(core.List<api.WebImage> o) {
1211 unittest.expect(o, unittest.hasLength(2)); 1211 unittest.expect(o, unittest.hasLength(2));
1212 checkWebImage(o[0]); 1212 checkWebImage(o[0]);
1213 checkWebImage(o[1]); 1213 checkWebImage(o[1]);
1214 } 1214 }
1215 1215
1216 buildUnnamed1316() { 1216 buildUnnamed1333() {
1217 var o = new core.List<api.WebEntity>(); 1217 var o = new core.List<api.WebEntity>();
1218 o.add(buildWebEntity()); 1218 o.add(buildWebEntity());
1219 o.add(buildWebEntity()); 1219 o.add(buildWebEntity());
1220 return o; 1220 return o;
1221 } 1221 }
1222 1222
1223 checkUnnamed1316(core.List<api.WebEntity> o) { 1223 checkUnnamed1333(core.List<api.WebEntity> o) {
1224 unittest.expect(o, unittest.hasLength(2)); 1224 unittest.expect(o, unittest.hasLength(2));
1225 checkWebEntity(o[0]); 1225 checkWebEntity(o[0]);
1226 checkWebEntity(o[1]); 1226 checkWebEntity(o[1]);
1227 } 1227 }
1228 1228
1229 core.int buildCounterWebDetection = 0; 1229 core.int buildCounterWebDetection = 0;
1230 buildWebDetection() { 1230 buildWebDetection() {
1231 var o = new api.WebDetection(); 1231 var o = new api.WebDetection();
1232 buildCounterWebDetection++; 1232 buildCounterWebDetection++;
1233 if (buildCounterWebDetection < 3) { 1233 if (buildCounterWebDetection < 3) {
1234 o.fullMatchingImages = buildUnnamed1312(); 1234 o.fullMatchingImages = buildUnnamed1329();
1235 o.pagesWithMatchingImages = buildUnnamed1313(); 1235 o.pagesWithMatchingImages = buildUnnamed1330();
1236 o.partialMatchingImages = buildUnnamed1314(); 1236 o.partialMatchingImages = buildUnnamed1331();
1237 o.visuallySimilarImages = buildUnnamed1315(); 1237 o.visuallySimilarImages = buildUnnamed1332();
1238 o.webEntities = buildUnnamed1316(); 1238 o.webEntities = buildUnnamed1333();
1239 } 1239 }
1240 buildCounterWebDetection--; 1240 buildCounterWebDetection--;
1241 return o; 1241 return o;
1242 } 1242 }
1243 1243
1244 checkWebDetection(api.WebDetection o) { 1244 checkWebDetection(api.WebDetection o) {
1245 buildCounterWebDetection++; 1245 buildCounterWebDetection++;
1246 if (buildCounterWebDetection < 3) { 1246 if (buildCounterWebDetection < 3) {
1247 checkUnnamed1312(o.fullMatchingImages); 1247 checkUnnamed1329(o.fullMatchingImages);
1248 checkUnnamed1313(o.pagesWithMatchingImages); 1248 checkUnnamed1330(o.pagesWithMatchingImages);
1249 checkUnnamed1314(o.partialMatchingImages); 1249 checkUnnamed1331(o.partialMatchingImages);
1250 checkUnnamed1315(o.visuallySimilarImages); 1250 checkUnnamed1332(o.visuallySimilarImages);
1251 checkUnnamed1316(o.webEntities); 1251 checkUnnamed1333(o.webEntities);
1252 } 1252 }
1253 buildCounterWebDetection--; 1253 buildCounterWebDetection--;
1254 } 1254 }
1255 1255
1256 core.int buildCounterWebEntity = 0; 1256 core.int buildCounterWebEntity = 0;
1257 buildWebEntity() { 1257 buildWebEntity() {
1258 var o = new api.WebEntity(); 1258 var o = new api.WebEntity();
1259 buildCounterWebEntity++; 1259 buildCounterWebEntity++;
1260 if (buildCounterWebEntity < 3) { 1260 if (buildCounterWebEntity < 3) {
1261 o.description = "foo"; 1261 o.description = "foo";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 1311
1312 checkWebPage(api.WebPage o) { 1312 checkWebPage(api.WebPage o) {
1313 buildCounterWebPage++; 1313 buildCounterWebPage++;
1314 if (buildCounterWebPage < 3) { 1314 if (buildCounterWebPage < 3) {
1315 unittest.expect(o.score, unittest.equals(42.0)); 1315 unittest.expect(o.score, unittest.equals(42.0));
1316 unittest.expect(o.url, unittest.equals('foo')); 1316 unittest.expect(o.url, unittest.equals('foo'));
1317 } 1317 }
1318 buildCounterWebPage--; 1318 buildCounterWebPage--;
1319 } 1319 }
1320 1320
1321 buildUnnamed1317() { 1321 buildUnnamed1334() {
1322 var o = new core.List<api.Symbol>(); 1322 var o = new core.List<api.Symbol>();
1323 o.add(buildSymbol()); 1323 o.add(buildSymbol());
1324 o.add(buildSymbol()); 1324 o.add(buildSymbol());
1325 return o; 1325 return o;
1326 } 1326 }
1327 1327
1328 checkUnnamed1317(core.List<api.Symbol> o) { 1328 checkUnnamed1334(core.List<api.Symbol> o) {
1329 unittest.expect(o, unittest.hasLength(2)); 1329 unittest.expect(o, unittest.hasLength(2));
1330 checkSymbol(o[0]); 1330 checkSymbol(o[0]);
1331 checkSymbol(o[1]); 1331 checkSymbol(o[1]);
1332 } 1332 }
1333 1333
1334 core.int buildCounterWord = 0; 1334 core.int buildCounterWord = 0;
1335 buildWord() { 1335 buildWord() {
1336 var o = new api.Word(); 1336 var o = new api.Word();
1337 buildCounterWord++; 1337 buildCounterWord++;
1338 if (buildCounterWord < 3) { 1338 if (buildCounterWord < 3) {
1339 o.boundingBox = buildBoundingPoly(); 1339 o.boundingBox = buildBoundingPoly();
1340 o.property = buildTextProperty(); 1340 o.property = buildTextProperty();
1341 o.symbols = buildUnnamed1317(); 1341 o.symbols = buildUnnamed1334();
1342 } 1342 }
1343 buildCounterWord--; 1343 buildCounterWord--;
1344 return o; 1344 return o;
1345 } 1345 }
1346 1346
1347 checkWord(api.Word o) { 1347 checkWord(api.Word o) {
1348 buildCounterWord++; 1348 buildCounterWord++;
1349 if (buildCounterWord < 3) { 1349 if (buildCounterWord < 3) {
1350 checkBoundingPoly(o.boundingBox); 1350 checkBoundingPoly(o.boundingBox);
1351 checkTextProperty(o.property); 1351 checkTextProperty(o.property);
1352 checkUnnamed1317(o.symbols); 1352 checkUnnamed1334(o.symbols);
1353 } 1353 }
1354 buildCounterWord--; 1354 buildCounterWord--;
1355 } 1355 }
1356 1356
1357 1357
1358 main() { 1358 main() {
1359 unittest.group("obj-schema-AnnotateImageRequest", () { 1359 unittest.group("obj-schema-AnnotateImageRequest", () {
1360 unittest.test("to-json--from-json", () { 1360 unittest.test("to-json--from-json", () {
1361 var o = buildAnnotateImageRequest(); 1361 var o = buildAnnotateImageRequest();
1362 var od = new api.AnnotateImageRequest.fromJson(o.toJson()); 1362 var od = new api.AnnotateImageRequest.fromJson(o.toJson());
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 res.annotate(arg_request).then(unittest.expectAsync1(((api.BatchAnnotateIm agesResponse response) { 1762 res.annotate(arg_request).then(unittest.expectAsync1(((api.BatchAnnotateIm agesResponse response) {
1763 checkBatchAnnotateImagesResponse(response); 1763 checkBatchAnnotateImagesResponse(response);
1764 }))); 1764 })));
1765 }); 1765 });
1766 1766
1767 }); 1767 });
1768 1768
1769 1769
1770 } 1770 }
1771 1771
OLDNEW
« no previous file with comments | « generated/googleapis/test/vault/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