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

Side by Side Diff: generated/googleapis/test/drive/v3_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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.drive.v3.test; 1 library googleapis.drive.v3.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 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 headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
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 buildUnnamed1477() { 54 buildUnnamed1782() {
55 var o = new core.List<core.String>(); 55 var o = new core.List<core.String>();
56 o.add("foo"); 56 o.add("foo");
57 o.add("foo"); 57 o.add("foo");
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1477(core.List<core.String> o) { 61 checkUnnamed1782(core.List<core.String> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 unittest.expect(o[0], unittest.equals('foo')); 63 unittest.expect(o[0], unittest.equals('foo'));
64 unittest.expect(o[1], unittest.equals('foo')); 64 unittest.expect(o[1], unittest.equals('foo'));
65 } 65 }
66 66
67 buildUnnamed1478() { 67 buildUnnamed1783() {
68 var o = new core.Map<core.String, core.List<core.String>>(); 68 var o = new core.Map<core.String, core.List<core.String>>();
69 o["x"] = buildUnnamed1477(); 69 o["x"] = buildUnnamed1782();
70 o["y"] = buildUnnamed1477(); 70 o["y"] = buildUnnamed1782();
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1478(core.Map<core.String, core.List<core.String>> o) { 74 checkUnnamed1783(core.Map<core.String, core.List<core.String>> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 checkUnnamed1477(o["x"]); 76 checkUnnamed1782(o["x"]);
77 checkUnnamed1477(o["y"]); 77 checkUnnamed1782(o["y"]);
78 } 78 }
79 79
80 buildUnnamed1479() { 80 buildUnnamed1784() {
81 var o = new core.List<core.String>(); 81 var o = new core.List<core.String>();
82 o.add("foo"); 82 o.add("foo");
83 o.add("foo"); 83 o.add("foo");
84 return o; 84 return o;
85 } 85 }
86 86
87 checkUnnamed1479(core.List<core.String> o) { 87 checkUnnamed1784(core.List<core.String> o) {
88 unittest.expect(o, unittest.hasLength(2)); 88 unittest.expect(o, unittest.hasLength(2));
89 unittest.expect(o[0], unittest.equals('foo')); 89 unittest.expect(o[0], unittest.equals('foo'));
90 unittest.expect(o[1], unittest.equals('foo')); 90 unittest.expect(o[1], unittest.equals('foo'));
91 } 91 }
92 92
93 buildUnnamed1480() { 93 buildUnnamed1785() {
94 var o = new core.List<core.String>(); 94 var o = new core.List<core.String>();
95 o.add("foo"); 95 o.add("foo");
96 o.add("foo"); 96 o.add("foo");
97 return o; 97 return o;
98 } 98 }
99 99
100 checkUnnamed1480(core.List<core.String> o) { 100 checkUnnamed1785(core.List<core.String> o) {
101 unittest.expect(o, unittest.hasLength(2)); 101 unittest.expect(o, unittest.hasLength(2));
102 unittest.expect(o[0], unittest.equals('foo')); 102 unittest.expect(o[0], unittest.equals('foo'));
103 unittest.expect(o[1], unittest.equals('foo')); 103 unittest.expect(o[1], unittest.equals('foo'));
104 } 104 }
105 105
106 buildUnnamed1481() { 106 buildUnnamed1786() {
107 var o = new core.Map<core.String, core.List<core.String>>(); 107 var o = new core.Map<core.String, core.List<core.String>>();
108 o["x"] = buildUnnamed1480(); 108 o["x"] = buildUnnamed1785();
109 o["y"] = buildUnnamed1480(); 109 o["y"] = buildUnnamed1785();
110 return o; 110 return o;
111 } 111 }
112 112
113 checkUnnamed1481(core.Map<core.String, core.List<core.String>> o) { 113 checkUnnamed1786(core.Map<core.String, core.List<core.String>> o) {
114 unittest.expect(o, unittest.hasLength(2)); 114 unittest.expect(o, unittest.hasLength(2));
115 checkUnnamed1480(o["x"]); 115 checkUnnamed1785(o["x"]);
116 checkUnnamed1480(o["y"]); 116 checkUnnamed1785(o["y"]);
117 } 117 }
118 118
119 buildUnnamed1482() { 119 buildUnnamed1787() {
120 var o = new core.Map<core.String, core.String>(); 120 var o = new core.Map<core.String, core.String>();
121 o["x"] = "foo"; 121 o["x"] = "foo";
122 o["y"] = "foo"; 122 o["y"] = "foo";
123 return o; 123 return o;
124 } 124 }
125 125
126 checkUnnamed1482(core.Map<core.String, core.String> o) { 126 checkUnnamed1787(core.Map<core.String, core.String> o) {
127 unittest.expect(o, unittest.hasLength(2)); 127 unittest.expect(o, unittest.hasLength(2));
128 unittest.expect(o["x"], unittest.equals('foo')); 128 unittest.expect(o["x"], unittest.equals('foo'));
129 unittest.expect(o["y"], unittest.equals('foo')); 129 unittest.expect(o["y"], unittest.equals('foo'));
130 } 130 }
131 131
132 core.int buildCounterAboutStorageQuota = 0; 132 core.int buildCounterAboutStorageQuota = 0;
133 buildAboutStorageQuota() { 133 buildAboutStorageQuota() {
134 var o = new api.AboutStorageQuota(); 134 var o = new api.AboutStorageQuota();
135 buildCounterAboutStorageQuota++; 135 buildCounterAboutStorageQuota++;
136 if (buildCounterAboutStorageQuota < 3) { 136 if (buildCounterAboutStorageQuota < 3) {
(...skipping 16 matching lines...) Expand all
153 } 153 }
154 buildCounterAboutStorageQuota--; 154 buildCounterAboutStorageQuota--;
155 } 155 }
156 156
157 core.int buildCounterAbout = 0; 157 core.int buildCounterAbout = 0;
158 buildAbout() { 158 buildAbout() {
159 var o = new api.About(); 159 var o = new api.About();
160 buildCounterAbout++; 160 buildCounterAbout++;
161 if (buildCounterAbout < 3) { 161 if (buildCounterAbout < 3) {
162 o.appInstalled = true; 162 o.appInstalled = true;
163 o.exportFormats = buildUnnamed1478(); 163 o.exportFormats = buildUnnamed1783();
164 o.folderColorPalette = buildUnnamed1479(); 164 o.folderColorPalette = buildUnnamed1784();
165 o.importFormats = buildUnnamed1481(); 165 o.importFormats = buildUnnamed1786();
166 o.kind = "foo"; 166 o.kind = "foo";
167 o.maxImportSizes = buildUnnamed1482(); 167 o.maxImportSizes = buildUnnamed1787();
168 o.maxUploadSize = "foo"; 168 o.maxUploadSize = "foo";
169 o.storageQuota = buildAboutStorageQuota(); 169 o.storageQuota = buildAboutStorageQuota();
170 o.user = buildUser(); 170 o.user = buildUser();
171 } 171 }
172 buildCounterAbout--; 172 buildCounterAbout--;
173 return o; 173 return o;
174 } 174 }
175 175
176 checkAbout(api.About o) { 176 checkAbout(api.About o) {
177 buildCounterAbout++; 177 buildCounterAbout++;
178 if (buildCounterAbout < 3) { 178 if (buildCounterAbout < 3) {
179 unittest.expect(o.appInstalled, unittest.isTrue); 179 unittest.expect(o.appInstalled, unittest.isTrue);
180 checkUnnamed1478(o.exportFormats); 180 checkUnnamed1783(o.exportFormats);
181 checkUnnamed1479(o.folderColorPalette); 181 checkUnnamed1784(o.folderColorPalette);
182 checkUnnamed1481(o.importFormats); 182 checkUnnamed1786(o.importFormats);
183 unittest.expect(o.kind, unittest.equals('foo')); 183 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed1482(o.maxImportSizes); 184 checkUnnamed1787(o.maxImportSizes);
185 unittest.expect(o.maxUploadSize, unittest.equals('foo')); 185 unittest.expect(o.maxUploadSize, unittest.equals('foo'));
186 checkAboutStorageQuota(o.storageQuota); 186 checkAboutStorageQuota(o.storageQuota);
187 checkUser(o.user); 187 checkUser(o.user);
188 } 188 }
189 buildCounterAbout--; 189 buildCounterAbout--;
190 } 190 }
191 191
192 core.int buildCounterChange = 0; 192 core.int buildCounterChange = 0;
193 buildChange() { 193 buildChange() {
194 var o = new api.Change(); 194 var o = new api.Change();
(...skipping 14 matching lines...) Expand all
209 if (buildCounterChange < 3) { 209 if (buildCounterChange < 3) {
210 checkFile(o.file); 210 checkFile(o.file);
211 unittest.expect(o.fileId, unittest.equals('foo')); 211 unittest.expect(o.fileId, unittest.equals('foo'));
212 unittest.expect(o.kind, unittest.equals('foo')); 212 unittest.expect(o.kind, unittest.equals('foo'));
213 unittest.expect(o.removed, unittest.isTrue); 213 unittest.expect(o.removed, unittest.isTrue);
214 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0 1:02"))); 214 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0 1:02")));
215 } 215 }
216 buildCounterChange--; 216 buildCounterChange--;
217 } 217 }
218 218
219 buildUnnamed1483() { 219 buildUnnamed1788() {
220 var o = new core.List<api.Change>(); 220 var o = new core.List<api.Change>();
221 o.add(buildChange()); 221 o.add(buildChange());
222 o.add(buildChange()); 222 o.add(buildChange());
223 return o; 223 return o;
224 } 224 }
225 225
226 checkUnnamed1483(core.List<api.Change> o) { 226 checkUnnamed1788(core.List<api.Change> o) {
227 unittest.expect(o, unittest.hasLength(2)); 227 unittest.expect(o, unittest.hasLength(2));
228 checkChange(o[0]); 228 checkChange(o[0]);
229 checkChange(o[1]); 229 checkChange(o[1]);
230 } 230 }
231 231
232 core.int buildCounterChangeList = 0; 232 core.int buildCounterChangeList = 0;
233 buildChangeList() { 233 buildChangeList() {
234 var o = new api.ChangeList(); 234 var o = new api.ChangeList();
235 buildCounterChangeList++; 235 buildCounterChangeList++;
236 if (buildCounterChangeList < 3) { 236 if (buildCounterChangeList < 3) {
237 o.changes = buildUnnamed1483(); 237 o.changes = buildUnnamed1788();
238 o.kind = "foo"; 238 o.kind = "foo";
239 o.newStartPageToken = "foo"; 239 o.newStartPageToken = "foo";
240 o.nextPageToken = "foo"; 240 o.nextPageToken = "foo";
241 } 241 }
242 buildCounterChangeList--; 242 buildCounterChangeList--;
243 return o; 243 return o;
244 } 244 }
245 245
246 checkChangeList(api.ChangeList o) { 246 checkChangeList(api.ChangeList o) {
247 buildCounterChangeList++; 247 buildCounterChangeList++;
248 if (buildCounterChangeList < 3) { 248 if (buildCounterChangeList < 3) {
249 checkUnnamed1483(o.changes); 249 checkUnnamed1788(o.changes);
250 unittest.expect(o.kind, unittest.equals('foo')); 250 unittest.expect(o.kind, unittest.equals('foo'));
251 unittest.expect(o.newStartPageToken, unittest.equals('foo')); 251 unittest.expect(o.newStartPageToken, unittest.equals('foo'));
252 unittest.expect(o.nextPageToken, unittest.equals('foo')); 252 unittest.expect(o.nextPageToken, unittest.equals('foo'));
253 } 253 }
254 buildCounterChangeList--; 254 buildCounterChangeList--;
255 } 255 }
256 256
257 buildUnnamed1484() { 257 buildUnnamed1789() {
258 var o = new core.Map<core.String, core.String>(); 258 var o = new core.Map<core.String, core.String>();
259 o["x"] = "foo"; 259 o["x"] = "foo";
260 o["y"] = "foo"; 260 o["y"] = "foo";
261 return o; 261 return o;
262 } 262 }
263 263
264 checkUnnamed1484(core.Map<core.String, core.String> o) { 264 checkUnnamed1789(core.Map<core.String, core.String> o) {
265 unittest.expect(o, unittest.hasLength(2)); 265 unittest.expect(o, unittest.hasLength(2));
266 unittest.expect(o["x"], unittest.equals('foo')); 266 unittest.expect(o["x"], unittest.equals('foo'));
267 unittest.expect(o["y"], unittest.equals('foo')); 267 unittest.expect(o["y"], unittest.equals('foo'));
268 } 268 }
269 269
270 core.int buildCounterChannel = 0; 270 core.int buildCounterChannel = 0;
271 buildChannel() { 271 buildChannel() {
272 var o = new api.Channel(); 272 var o = new api.Channel();
273 buildCounterChannel++; 273 buildCounterChannel++;
274 if (buildCounterChannel < 3) { 274 if (buildCounterChannel < 3) {
275 o.address = "foo"; 275 o.address = "foo";
276 o.expiration = "foo"; 276 o.expiration = "foo";
277 o.id = "foo"; 277 o.id = "foo";
278 o.kind = "foo"; 278 o.kind = "foo";
279 o.params = buildUnnamed1484(); 279 o.params = buildUnnamed1789();
280 o.payload = true; 280 o.payload = true;
281 o.resourceId = "foo"; 281 o.resourceId = "foo";
282 o.resourceUri = "foo"; 282 o.resourceUri = "foo";
283 o.token = "foo"; 283 o.token = "foo";
284 o.type = "foo"; 284 o.type = "foo";
285 } 285 }
286 buildCounterChannel--; 286 buildCounterChannel--;
287 return o; 287 return o;
288 } 288 }
289 289
290 checkChannel(api.Channel o) { 290 checkChannel(api.Channel o) {
291 buildCounterChannel++; 291 buildCounterChannel++;
292 if (buildCounterChannel < 3) { 292 if (buildCounterChannel < 3) {
293 unittest.expect(o.address, unittest.equals('foo')); 293 unittest.expect(o.address, unittest.equals('foo'));
294 unittest.expect(o.expiration, unittest.equals('foo')); 294 unittest.expect(o.expiration, unittest.equals('foo'));
295 unittest.expect(o.id, unittest.equals('foo')); 295 unittest.expect(o.id, unittest.equals('foo'));
296 unittest.expect(o.kind, unittest.equals('foo')); 296 unittest.expect(o.kind, unittest.equals('foo'));
297 checkUnnamed1484(o.params); 297 checkUnnamed1789(o.params);
298 unittest.expect(o.payload, unittest.isTrue); 298 unittest.expect(o.payload, unittest.isTrue);
299 unittest.expect(o.resourceId, unittest.equals('foo')); 299 unittest.expect(o.resourceId, unittest.equals('foo'));
300 unittest.expect(o.resourceUri, unittest.equals('foo')); 300 unittest.expect(o.resourceUri, unittest.equals('foo'));
301 unittest.expect(o.token, unittest.equals('foo')); 301 unittest.expect(o.token, unittest.equals('foo'));
302 unittest.expect(o.type, unittest.equals('foo')); 302 unittest.expect(o.type, unittest.equals('foo'));
303 } 303 }
304 buildCounterChannel--; 304 buildCounterChannel--;
305 } 305 }
306 306
307 core.int buildCounterCommentQuotedFileContent = 0; 307 core.int buildCounterCommentQuotedFileContent = 0;
(...skipping 10 matching lines...) Expand all
318 318
319 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) { 319 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) {
320 buildCounterCommentQuotedFileContent++; 320 buildCounterCommentQuotedFileContent++;
321 if (buildCounterCommentQuotedFileContent < 3) { 321 if (buildCounterCommentQuotedFileContent < 3) {
322 unittest.expect(o.mimeType, unittest.equals('foo')); 322 unittest.expect(o.mimeType, unittest.equals('foo'));
323 unittest.expect(o.value, unittest.equals('foo')); 323 unittest.expect(o.value, unittest.equals('foo'));
324 } 324 }
325 buildCounterCommentQuotedFileContent--; 325 buildCounterCommentQuotedFileContent--;
326 } 326 }
327 327
328 buildUnnamed1485() { 328 buildUnnamed1790() {
329 var o = new core.List<api.Reply>(); 329 var o = new core.List<api.Reply>();
330 o.add(buildReply()); 330 o.add(buildReply());
331 o.add(buildReply()); 331 o.add(buildReply());
332 return o; 332 return o;
333 } 333 }
334 334
335 checkUnnamed1485(core.List<api.Reply> o) { 335 checkUnnamed1790(core.List<api.Reply> o) {
336 unittest.expect(o, unittest.hasLength(2)); 336 unittest.expect(o, unittest.hasLength(2));
337 checkReply(o[0]); 337 checkReply(o[0]);
338 checkReply(o[1]); 338 checkReply(o[1]);
339 } 339 }
340 340
341 core.int buildCounterComment = 0; 341 core.int buildCounterComment = 0;
342 buildComment() { 342 buildComment() {
343 var o = new api.Comment(); 343 var o = new api.Comment();
344 buildCounterComment++; 344 buildCounterComment++;
345 if (buildCounterComment < 3) { 345 if (buildCounterComment < 3) {
346 o.anchor = "foo"; 346 o.anchor = "foo";
347 o.author = buildUser(); 347 o.author = buildUser();
348 o.content = "foo"; 348 o.content = "foo";
349 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); 349 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
350 o.deleted = true; 350 o.deleted = true;
351 o.htmlContent = "foo"; 351 o.htmlContent = "foo";
352 o.id = "foo"; 352 o.id = "foo";
353 o.kind = "foo"; 353 o.kind = "foo";
354 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 354 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
355 o.quotedFileContent = buildCommentQuotedFileContent(); 355 o.quotedFileContent = buildCommentQuotedFileContent();
356 o.replies = buildUnnamed1485(); 356 o.replies = buildUnnamed1790();
357 o.resolved = true; 357 o.resolved = true;
358 } 358 }
359 buildCounterComment--; 359 buildCounterComment--;
360 return o; 360 return o;
361 } 361 }
362 362
363 checkComment(api.Comment o) { 363 checkComment(api.Comment o) {
364 buildCounterComment++; 364 buildCounterComment++;
365 if (buildCounterComment < 3) { 365 if (buildCounterComment < 3) {
366 unittest.expect(o.anchor, unittest.equals('foo')); 366 unittest.expect(o.anchor, unittest.equals('foo'));
367 checkUser(o.author); 367 checkUser(o.author);
368 unittest.expect(o.content, unittest.equals('foo')); 368 unittest.expect(o.content, unittest.equals('foo'));
369 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 369 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
370 unittest.expect(o.deleted, unittest.isTrue); 370 unittest.expect(o.deleted, unittest.isTrue);
371 unittest.expect(o.htmlContent, unittest.equals('foo')); 371 unittest.expect(o.htmlContent, unittest.equals('foo'));
372 unittest.expect(o.id, unittest.equals('foo')); 372 unittest.expect(o.id, unittest.equals('foo'));
373 unittest.expect(o.kind, unittest.equals('foo')); 373 unittest.expect(o.kind, unittest.equals('foo'));
374 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 374 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
375 checkCommentQuotedFileContent(o.quotedFileContent); 375 checkCommentQuotedFileContent(o.quotedFileContent);
376 checkUnnamed1485(o.replies); 376 checkUnnamed1790(o.replies);
377 unittest.expect(o.resolved, unittest.isTrue); 377 unittest.expect(o.resolved, unittest.isTrue);
378 } 378 }
379 buildCounterComment--; 379 buildCounterComment--;
380 } 380 }
381 381
382 buildUnnamed1486() { 382 buildUnnamed1791() {
383 var o = new core.List<api.Comment>(); 383 var o = new core.List<api.Comment>();
384 o.add(buildComment()); 384 o.add(buildComment());
385 o.add(buildComment()); 385 o.add(buildComment());
386 return o; 386 return o;
387 } 387 }
388 388
389 checkUnnamed1486(core.List<api.Comment> o) { 389 checkUnnamed1791(core.List<api.Comment> o) {
390 unittest.expect(o, unittest.hasLength(2)); 390 unittest.expect(o, unittest.hasLength(2));
391 checkComment(o[0]); 391 checkComment(o[0]);
392 checkComment(o[1]); 392 checkComment(o[1]);
393 } 393 }
394 394
395 core.int buildCounterCommentList = 0; 395 core.int buildCounterCommentList = 0;
396 buildCommentList() { 396 buildCommentList() {
397 var o = new api.CommentList(); 397 var o = new api.CommentList();
398 buildCounterCommentList++; 398 buildCounterCommentList++;
399 if (buildCounterCommentList < 3) { 399 if (buildCounterCommentList < 3) {
400 o.comments = buildUnnamed1486(); 400 o.comments = buildUnnamed1791();
401 o.kind = "foo"; 401 o.kind = "foo";
402 o.nextPageToken = "foo"; 402 o.nextPageToken = "foo";
403 } 403 }
404 buildCounterCommentList--; 404 buildCounterCommentList--;
405 return o; 405 return o;
406 } 406 }
407 407
408 checkCommentList(api.CommentList o) { 408 checkCommentList(api.CommentList o) {
409 buildCounterCommentList++; 409 buildCounterCommentList++;
410 if (buildCounterCommentList < 3) { 410 if (buildCounterCommentList < 3) {
411 checkUnnamed1486(o.comments); 411 checkUnnamed1791(o.comments);
412 unittest.expect(o.kind, unittest.equals('foo')); 412 unittest.expect(o.kind, unittest.equals('foo'));
413 unittest.expect(o.nextPageToken, unittest.equals('foo')); 413 unittest.expect(o.nextPageToken, unittest.equals('foo'));
414 } 414 }
415 buildCounterCommentList--; 415 buildCounterCommentList--;
416 } 416 }
417 417
418 buildUnnamed1487() { 418 buildUnnamed1792() {
419 var o = new core.Map<core.String, core.String>(); 419 var o = new core.Map<core.String, core.String>();
420 o["x"] = "foo"; 420 o["x"] = "foo";
421 o["y"] = "foo"; 421 o["y"] = "foo";
422 return o; 422 return o;
423 } 423 }
424 424
425 checkUnnamed1487(core.Map<core.String, core.String> o) { 425 checkUnnamed1792(core.Map<core.String, core.String> o) {
426 unittest.expect(o, unittest.hasLength(2)); 426 unittest.expect(o, unittest.hasLength(2));
427 unittest.expect(o["x"], unittest.equals('foo')); 427 unittest.expect(o["x"], unittest.equals('foo'));
428 unittest.expect(o["y"], unittest.equals('foo')); 428 unittest.expect(o["y"], unittest.equals('foo'));
429 } 429 }
430 430
431 core.int buildCounterFileCapabilities = 0; 431 core.int buildCounterFileCapabilities = 0;
432 buildFileCapabilities() { 432 buildFileCapabilities() {
433 var o = new api.FileCapabilities(); 433 var o = new api.FileCapabilities();
434 buildCounterFileCapabilities++; 434 buildCounterFileCapabilities++;
435 if (buildCounterFileCapabilities < 3) { 435 if (buildCounterFileCapabilities < 3) {
436 o.canComment = true; 436 o.canComment = true;
437 o.canCopy = true; 437 o.canCopy = true;
438 o.canEdit = true; 438 o.canEdit = true;
439 o.canReadRevisions = true;
439 o.canShare = true; 440 o.canShare = true;
440 } 441 }
441 buildCounterFileCapabilities--; 442 buildCounterFileCapabilities--;
442 return o; 443 return o;
443 } 444 }
444 445
445 checkFileCapabilities(api.FileCapabilities o) { 446 checkFileCapabilities(api.FileCapabilities o) {
446 buildCounterFileCapabilities++; 447 buildCounterFileCapabilities++;
447 if (buildCounterFileCapabilities < 3) { 448 if (buildCounterFileCapabilities < 3) {
448 unittest.expect(o.canComment, unittest.isTrue); 449 unittest.expect(o.canComment, unittest.isTrue);
449 unittest.expect(o.canCopy, unittest.isTrue); 450 unittest.expect(o.canCopy, unittest.isTrue);
450 unittest.expect(o.canEdit, unittest.isTrue); 451 unittest.expect(o.canEdit, unittest.isTrue);
452 unittest.expect(o.canReadRevisions, unittest.isTrue);
451 unittest.expect(o.canShare, unittest.isTrue); 453 unittest.expect(o.canShare, unittest.isTrue);
452 } 454 }
453 buildCounterFileCapabilities--; 455 buildCounterFileCapabilities--;
454 } 456 }
455 457
456 core.int buildCounterFileContentHintsThumbnail = 0; 458 core.int buildCounterFileContentHintsThumbnail = 0;
457 buildFileContentHintsThumbnail() { 459 buildFileContentHintsThumbnail() {
458 var o = new api.FileContentHintsThumbnail(); 460 var o = new api.FileContentHintsThumbnail();
459 buildCounterFileContentHintsThumbnail++; 461 buildCounterFileContentHintsThumbnail++;
460 if (buildCounterFileContentHintsThumbnail < 3) { 462 if (buildCounterFileContentHintsThumbnail < 3) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 unittest.expect(o.rotation, unittest.equals(42)); 572 unittest.expect(o.rotation, unittest.equals(42));
571 unittest.expect(o.sensor, unittest.equals('foo')); 573 unittest.expect(o.sensor, unittest.equals('foo'));
572 unittest.expect(o.subjectDistance, unittest.equals(42)); 574 unittest.expect(o.subjectDistance, unittest.equals(42));
573 unittest.expect(o.time, unittest.equals('foo')); 575 unittest.expect(o.time, unittest.equals('foo'));
574 unittest.expect(o.whiteBalance, unittest.equals('foo')); 576 unittest.expect(o.whiteBalance, unittest.equals('foo'));
575 unittest.expect(o.width, unittest.equals(42)); 577 unittest.expect(o.width, unittest.equals(42));
576 } 578 }
577 buildCounterFileImageMediaMetadata--; 579 buildCounterFileImageMediaMetadata--;
578 } 580 }
579 581
580 buildUnnamed1488() { 582 buildUnnamed1793() {
581 var o = new core.List<api.User>(); 583 var o = new core.List<api.User>();
582 o.add(buildUser()); 584 o.add(buildUser());
583 o.add(buildUser()); 585 o.add(buildUser());
584 return o; 586 return o;
585 } 587 }
586 588
587 checkUnnamed1488(core.List<api.User> o) { 589 checkUnnamed1793(core.List<api.User> o) {
588 unittest.expect(o, unittest.hasLength(2)); 590 unittest.expect(o, unittest.hasLength(2));
589 checkUser(o[0]); 591 checkUser(o[0]);
590 checkUser(o[1]); 592 checkUser(o[1]);
591 } 593 }
592 594
593 buildUnnamed1489() { 595 buildUnnamed1794() {
594 var o = new core.List<core.String>(); 596 var o = new core.List<core.String>();
595 o.add("foo"); 597 o.add("foo");
596 o.add("foo"); 598 o.add("foo");
597 return o; 599 return o;
598 } 600 }
599 601
600 checkUnnamed1489(core.List<core.String> o) { 602 checkUnnamed1794(core.List<core.String> o) {
601 unittest.expect(o, unittest.hasLength(2)); 603 unittest.expect(o, unittest.hasLength(2));
602 unittest.expect(o[0], unittest.equals('foo')); 604 unittest.expect(o[0], unittest.equals('foo'));
603 unittest.expect(o[1], unittest.equals('foo')); 605 unittest.expect(o[1], unittest.equals('foo'));
604 } 606 }
605 607
606 buildUnnamed1490() { 608 buildUnnamed1795() {
607 var o = new core.List<api.Permission>(); 609 var o = new core.List<api.Permission>();
608 o.add(buildPermission()); 610 o.add(buildPermission());
609 o.add(buildPermission()); 611 o.add(buildPermission());
610 return o; 612 return o;
611 } 613 }
612 614
613 checkUnnamed1490(core.List<api.Permission> o) { 615 checkUnnamed1795(core.List<api.Permission> o) {
614 unittest.expect(o, unittest.hasLength(2)); 616 unittest.expect(o, unittest.hasLength(2));
615 checkPermission(o[0]); 617 checkPermission(o[0]);
616 checkPermission(o[1]); 618 checkPermission(o[1]);
617 } 619 }
618 620
619 buildUnnamed1491() { 621 buildUnnamed1796() {
620 var o = new core.Map<core.String, core.String>(); 622 var o = new core.Map<core.String, core.String>();
621 o["x"] = "foo"; 623 o["x"] = "foo";
622 o["y"] = "foo"; 624 o["y"] = "foo";
623 return o; 625 return o;
624 } 626 }
625 627
626 checkUnnamed1491(core.Map<core.String, core.String> o) { 628 checkUnnamed1796(core.Map<core.String, core.String> o) {
627 unittest.expect(o, unittest.hasLength(2)); 629 unittest.expect(o, unittest.hasLength(2));
628 unittest.expect(o["x"], unittest.equals('foo')); 630 unittest.expect(o["x"], unittest.equals('foo'));
629 unittest.expect(o["y"], unittest.equals('foo')); 631 unittest.expect(o["y"], unittest.equals('foo'));
630 } 632 }
631 633
632 buildUnnamed1492() { 634 buildUnnamed1797() {
633 var o = new core.List<core.String>(); 635 var o = new core.List<core.String>();
634 o.add("foo"); 636 o.add("foo");
635 o.add("foo"); 637 o.add("foo");
636 return o; 638 return o;
637 } 639 }
638 640
639 checkUnnamed1492(core.List<core.String> o) { 641 checkUnnamed1797(core.List<core.String> o) {
640 unittest.expect(o, unittest.hasLength(2)); 642 unittest.expect(o, unittest.hasLength(2));
641 unittest.expect(o[0], unittest.equals('foo')); 643 unittest.expect(o[0], unittest.equals('foo'));
642 unittest.expect(o[1], unittest.equals('foo')); 644 unittest.expect(o[1], unittest.equals('foo'));
643 } 645 }
644 646
645 core.int buildCounterFileVideoMediaMetadata = 0; 647 core.int buildCounterFileVideoMediaMetadata = 0;
646 buildFileVideoMediaMetadata() { 648 buildFileVideoMediaMetadata() {
647 var o = new api.FileVideoMediaMetadata(); 649 var o = new api.FileVideoMediaMetadata();
648 buildCounterFileVideoMediaMetadata++; 650 buildCounterFileVideoMediaMetadata++;
649 if (buildCounterFileVideoMediaMetadata < 3) { 651 if (buildCounterFileVideoMediaMetadata < 3) {
(...skipping 13 matching lines...) Expand all
663 unittest.expect(o.width, unittest.equals(42)); 665 unittest.expect(o.width, unittest.equals(42));
664 } 666 }
665 buildCounterFileVideoMediaMetadata--; 667 buildCounterFileVideoMediaMetadata--;
666 } 668 }
667 669
668 core.int buildCounterFile = 0; 670 core.int buildCounterFile = 0;
669 buildFile() { 671 buildFile() {
670 var o = new api.File(); 672 var o = new api.File();
671 buildCounterFile++; 673 buildCounterFile++;
672 if (buildCounterFile < 3) { 674 if (buildCounterFile < 3) {
673 o.appProperties = buildUnnamed1487(); 675 o.appProperties = buildUnnamed1792();
674 o.capabilities = buildFileCapabilities(); 676 o.capabilities = buildFileCapabilities();
675 o.contentHints = buildFileContentHints(); 677 o.contentHints = buildFileContentHints();
676 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); 678 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
677 o.description = "foo"; 679 o.description = "foo";
678 o.explicitlyTrashed = true; 680 o.explicitlyTrashed = true;
679 o.fileExtension = "foo"; 681 o.fileExtension = "foo";
680 o.folderColorRgb = "foo"; 682 o.folderColorRgb = "foo";
681 o.fullFileExtension = "foo"; 683 o.fullFileExtension = "foo";
682 o.headRevisionId = "foo"; 684 o.headRevisionId = "foo";
683 o.iconLink = "foo"; 685 o.iconLink = "foo";
684 o.id = "foo"; 686 o.id = "foo";
685 o.imageMediaMetadata = buildFileImageMediaMetadata(); 687 o.imageMediaMetadata = buildFileImageMediaMetadata();
686 o.kind = "foo"; 688 o.kind = "foo";
687 o.lastModifyingUser = buildUser(); 689 o.lastModifyingUser = buildUser();
688 o.md5Checksum = "foo"; 690 o.md5Checksum = "foo";
689 o.mimeType = "foo"; 691 o.mimeType = "foo";
690 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 692 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
691 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 693 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
692 o.name = "foo"; 694 o.name = "foo";
693 o.originalFilename = "foo"; 695 o.originalFilename = "foo";
694 o.ownedByMe = true; 696 o.ownedByMe = true;
695 o.owners = buildUnnamed1488(); 697 o.owners = buildUnnamed1793();
696 o.parents = buildUnnamed1489(); 698 o.parents = buildUnnamed1794();
697 o.permissions = buildUnnamed1490(); 699 o.permissions = buildUnnamed1795();
698 o.properties = buildUnnamed1491(); 700 o.properties = buildUnnamed1796();
699 o.quotaBytesUsed = "foo"; 701 o.quotaBytesUsed = "foo";
700 o.shared = true; 702 o.shared = true;
701 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 703 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
702 o.sharingUser = buildUser(); 704 o.sharingUser = buildUser();
703 o.size = "foo"; 705 o.size = "foo";
704 o.spaces = buildUnnamed1492(); 706 o.spaces = buildUnnamed1797();
705 o.starred = true; 707 o.starred = true;
706 o.thumbnailLink = "foo"; 708 o.thumbnailLink = "foo";
707 o.trashed = true; 709 o.trashed = true;
708 o.version = "foo"; 710 o.version = "foo";
709 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 711 o.videoMediaMetadata = buildFileVideoMediaMetadata();
710 o.viewedByMe = true; 712 o.viewedByMe = true;
711 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 713 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
712 o.viewersCanCopyContent = true; 714 o.viewersCanCopyContent = true;
713 o.webContentLink = "foo"; 715 o.webContentLink = "foo";
714 o.webViewLink = "foo"; 716 o.webViewLink = "foo";
715 o.writersCanShare = true; 717 o.writersCanShare = true;
716 } 718 }
717 buildCounterFile--; 719 buildCounterFile--;
718 return o; 720 return o;
719 } 721 }
720 722
721 checkFile(api.File o) { 723 checkFile(api.File o) {
722 buildCounterFile++; 724 buildCounterFile++;
723 if (buildCounterFile < 3) { 725 if (buildCounterFile < 3) {
724 checkUnnamed1487(o.appProperties); 726 checkUnnamed1792(o.appProperties);
725 checkFileCapabilities(o.capabilities); 727 checkFileCapabilities(o.capabilities);
726 checkFileContentHints(o.contentHints); 728 checkFileContentHints(o.contentHints);
727 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 729 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
728 unittest.expect(o.description, unittest.equals('foo')); 730 unittest.expect(o.description, unittest.equals('foo'));
729 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 731 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
730 unittest.expect(o.fileExtension, unittest.equals('foo')); 732 unittest.expect(o.fileExtension, unittest.equals('foo'));
731 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 733 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
732 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 734 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
733 unittest.expect(o.headRevisionId, unittest.equals('foo')); 735 unittest.expect(o.headRevisionId, unittest.equals('foo'));
734 unittest.expect(o.iconLink, unittest.equals('foo')); 736 unittest.expect(o.iconLink, unittest.equals('foo'));
735 unittest.expect(o.id, unittest.equals('foo')); 737 unittest.expect(o.id, unittest.equals('foo'));
736 checkFileImageMediaMetadata(o.imageMediaMetadata); 738 checkFileImageMediaMetadata(o.imageMediaMetadata);
737 unittest.expect(o.kind, unittest.equals('foo')); 739 unittest.expect(o.kind, unittest.equals('foo'));
738 checkUser(o.lastModifyingUser); 740 checkUser(o.lastModifyingUser);
739 unittest.expect(o.md5Checksum, unittest.equals('foo')); 741 unittest.expect(o.md5Checksum, unittest.equals('foo'));
740 unittest.expect(o.mimeType, unittest.equals('foo')); 742 unittest.expect(o.mimeType, unittest.equals('foo'));
741 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 743 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
742 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 744 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
743 unittest.expect(o.name, unittest.equals('foo')); 745 unittest.expect(o.name, unittest.equals('foo'));
744 unittest.expect(o.originalFilename, unittest.equals('foo')); 746 unittest.expect(o.originalFilename, unittest.equals('foo'));
745 unittest.expect(o.ownedByMe, unittest.isTrue); 747 unittest.expect(o.ownedByMe, unittest.isTrue);
746 checkUnnamed1488(o.owners); 748 checkUnnamed1793(o.owners);
747 checkUnnamed1489(o.parents); 749 checkUnnamed1794(o.parents);
748 checkUnnamed1490(o.permissions); 750 checkUnnamed1795(o.permissions);
749 checkUnnamed1491(o.properties); 751 checkUnnamed1796(o.properties);
750 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 752 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
751 unittest.expect(o.shared, unittest.isTrue); 753 unittest.expect(o.shared, unittest.isTrue);
752 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 754 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
753 checkUser(o.sharingUser); 755 checkUser(o.sharingUser);
754 unittest.expect(o.size, unittest.equals('foo')); 756 unittest.expect(o.size, unittest.equals('foo'));
755 checkUnnamed1492(o.spaces); 757 checkUnnamed1797(o.spaces);
756 unittest.expect(o.starred, unittest.isTrue); 758 unittest.expect(o.starred, unittest.isTrue);
757 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 759 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
758 unittest.expect(o.trashed, unittest.isTrue); 760 unittest.expect(o.trashed, unittest.isTrue);
759 unittest.expect(o.version, unittest.equals('foo')); 761 unittest.expect(o.version, unittest.equals('foo'));
760 checkFileVideoMediaMetadata(o.videoMediaMetadata); 762 checkFileVideoMediaMetadata(o.videoMediaMetadata);
761 unittest.expect(o.viewedByMe, unittest.isTrue); 763 unittest.expect(o.viewedByMe, unittest.isTrue);
762 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 764 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
763 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); 765 unittest.expect(o.viewersCanCopyContent, unittest.isTrue);
764 unittest.expect(o.webContentLink, unittest.equals('foo')); 766 unittest.expect(o.webContentLink, unittest.equals('foo'));
765 unittest.expect(o.webViewLink, unittest.equals('foo')); 767 unittest.expect(o.webViewLink, unittest.equals('foo'));
766 unittest.expect(o.writersCanShare, unittest.isTrue); 768 unittest.expect(o.writersCanShare, unittest.isTrue);
767 } 769 }
768 buildCounterFile--; 770 buildCounterFile--;
769 } 771 }
770 772
771 buildUnnamed1493() { 773 buildUnnamed1798() {
772 var o = new core.List<api.File>(); 774 var o = new core.List<api.File>();
773 o.add(buildFile()); 775 o.add(buildFile());
774 o.add(buildFile()); 776 o.add(buildFile());
775 return o; 777 return o;
776 } 778 }
777 779
778 checkUnnamed1493(core.List<api.File> o) { 780 checkUnnamed1798(core.List<api.File> o) {
779 unittest.expect(o, unittest.hasLength(2)); 781 unittest.expect(o, unittest.hasLength(2));
780 checkFile(o[0]); 782 checkFile(o[0]);
781 checkFile(o[1]); 783 checkFile(o[1]);
782 } 784 }
783 785
784 core.int buildCounterFileList = 0; 786 core.int buildCounterFileList = 0;
785 buildFileList() { 787 buildFileList() {
786 var o = new api.FileList(); 788 var o = new api.FileList();
787 buildCounterFileList++; 789 buildCounterFileList++;
788 if (buildCounterFileList < 3) { 790 if (buildCounterFileList < 3) {
789 o.files = buildUnnamed1493(); 791 o.files = buildUnnamed1798();
790 o.kind = "foo"; 792 o.kind = "foo";
791 o.nextPageToken = "foo"; 793 o.nextPageToken = "foo";
792 } 794 }
793 buildCounterFileList--; 795 buildCounterFileList--;
794 return o; 796 return o;
795 } 797 }
796 798
797 checkFileList(api.FileList o) { 799 checkFileList(api.FileList o) {
798 buildCounterFileList++; 800 buildCounterFileList++;
799 if (buildCounterFileList < 3) { 801 if (buildCounterFileList < 3) {
800 checkUnnamed1493(o.files); 802 checkUnnamed1798(o.files);
801 unittest.expect(o.kind, unittest.equals('foo')); 803 unittest.expect(o.kind, unittest.equals('foo'));
802 unittest.expect(o.nextPageToken, unittest.equals('foo')); 804 unittest.expect(o.nextPageToken, unittest.equals('foo'));
803 } 805 }
804 buildCounterFileList--; 806 buildCounterFileList--;
805 } 807 }
806 808
807 buildUnnamed1494() { 809 buildUnnamed1799() {
808 var o = new core.List<core.String>(); 810 var o = new core.List<core.String>();
809 o.add("foo"); 811 o.add("foo");
810 o.add("foo"); 812 o.add("foo");
811 return o; 813 return o;
812 } 814 }
813 815
814 checkUnnamed1494(core.List<core.String> o) { 816 checkUnnamed1799(core.List<core.String> o) {
815 unittest.expect(o, unittest.hasLength(2)); 817 unittest.expect(o, unittest.hasLength(2));
816 unittest.expect(o[0], unittest.equals('foo')); 818 unittest.expect(o[0], unittest.equals('foo'));
817 unittest.expect(o[1], unittest.equals('foo')); 819 unittest.expect(o[1], unittest.equals('foo'));
818 } 820 }
819 821
820 core.int buildCounterGeneratedIds = 0; 822 core.int buildCounterGeneratedIds = 0;
821 buildGeneratedIds() { 823 buildGeneratedIds() {
822 var o = new api.GeneratedIds(); 824 var o = new api.GeneratedIds();
823 buildCounterGeneratedIds++; 825 buildCounterGeneratedIds++;
824 if (buildCounterGeneratedIds < 3) { 826 if (buildCounterGeneratedIds < 3) {
825 o.ids = buildUnnamed1494(); 827 o.ids = buildUnnamed1799();
826 o.kind = "foo"; 828 o.kind = "foo";
827 o.space = "foo"; 829 o.space = "foo";
828 } 830 }
829 buildCounterGeneratedIds--; 831 buildCounterGeneratedIds--;
830 return o; 832 return o;
831 } 833 }
832 834
833 checkGeneratedIds(api.GeneratedIds o) { 835 checkGeneratedIds(api.GeneratedIds o) {
834 buildCounterGeneratedIds++; 836 buildCounterGeneratedIds++;
835 if (buildCounterGeneratedIds < 3) { 837 if (buildCounterGeneratedIds < 3) {
836 checkUnnamed1494(o.ids); 838 checkUnnamed1799(o.ids);
837 unittest.expect(o.kind, unittest.equals('foo')); 839 unittest.expect(o.kind, unittest.equals('foo'));
838 unittest.expect(o.space, unittest.equals('foo')); 840 unittest.expect(o.space, unittest.equals('foo'));
839 } 841 }
840 buildCounterGeneratedIds--; 842 buildCounterGeneratedIds--;
841 } 843 }
842 844
843 core.int buildCounterPermission = 0; 845 core.int buildCounterPermission = 0;
844 buildPermission() { 846 buildPermission() {
845 var o = new api.Permission(); 847 var o = new api.Permission();
846 buildCounterPermission++; 848 buildCounterPermission++;
(...skipping 21 matching lines...) Expand all
868 unittest.expect(o.emailAddress, unittest.equals('foo')); 870 unittest.expect(o.emailAddress, unittest.equals('foo'));
869 unittest.expect(o.id, unittest.equals('foo')); 871 unittest.expect(o.id, unittest.equals('foo'));
870 unittest.expect(o.kind, unittest.equals('foo')); 872 unittest.expect(o.kind, unittest.equals('foo'));
871 unittest.expect(o.photoLink, unittest.equals('foo')); 873 unittest.expect(o.photoLink, unittest.equals('foo'));
872 unittest.expect(o.role, unittest.equals('foo')); 874 unittest.expect(o.role, unittest.equals('foo'));
873 unittest.expect(o.type, unittest.equals('foo')); 875 unittest.expect(o.type, unittest.equals('foo'));
874 } 876 }
875 buildCounterPermission--; 877 buildCounterPermission--;
876 } 878 }
877 879
878 buildUnnamed1495() { 880 buildUnnamed1800() {
879 var o = new core.List<api.Permission>(); 881 var o = new core.List<api.Permission>();
880 o.add(buildPermission()); 882 o.add(buildPermission());
881 o.add(buildPermission()); 883 o.add(buildPermission());
882 return o; 884 return o;
883 } 885 }
884 886
885 checkUnnamed1495(core.List<api.Permission> o) { 887 checkUnnamed1800(core.List<api.Permission> o) {
886 unittest.expect(o, unittest.hasLength(2)); 888 unittest.expect(o, unittest.hasLength(2));
887 checkPermission(o[0]); 889 checkPermission(o[0]);
888 checkPermission(o[1]); 890 checkPermission(o[1]);
889 } 891 }
890 892
891 core.int buildCounterPermissionList = 0; 893 core.int buildCounterPermissionList = 0;
892 buildPermissionList() { 894 buildPermissionList() {
893 var o = new api.PermissionList(); 895 var o = new api.PermissionList();
894 buildCounterPermissionList++; 896 buildCounterPermissionList++;
895 if (buildCounterPermissionList < 3) { 897 if (buildCounterPermissionList < 3) {
896 o.kind = "foo"; 898 o.kind = "foo";
897 o.permissions = buildUnnamed1495(); 899 o.permissions = buildUnnamed1800();
898 } 900 }
899 buildCounterPermissionList--; 901 buildCounterPermissionList--;
900 return o; 902 return o;
901 } 903 }
902 904
903 checkPermissionList(api.PermissionList o) { 905 checkPermissionList(api.PermissionList o) {
904 buildCounterPermissionList++; 906 buildCounterPermissionList++;
905 if (buildCounterPermissionList < 3) { 907 if (buildCounterPermissionList < 3) {
906 unittest.expect(o.kind, unittest.equals('foo')); 908 unittest.expect(o.kind, unittest.equals('foo'));
907 checkUnnamed1495(o.permissions); 909 checkUnnamed1800(o.permissions);
908 } 910 }
909 buildCounterPermissionList--; 911 buildCounterPermissionList--;
910 } 912 }
911 913
912 core.int buildCounterReply = 0; 914 core.int buildCounterReply = 0;
913 buildReply() { 915 buildReply() {
914 var o = new api.Reply(); 916 var o = new api.Reply();
915 buildCounterReply++; 917 buildCounterReply++;
916 if (buildCounterReply < 3) { 918 if (buildCounterReply < 3) {
917 o.action = "foo"; 919 o.action = "foo";
(...skipping 19 matching lines...) Expand all
937 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 939 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
938 unittest.expect(o.deleted, unittest.isTrue); 940 unittest.expect(o.deleted, unittest.isTrue);
939 unittest.expect(o.htmlContent, unittest.equals('foo')); 941 unittest.expect(o.htmlContent, unittest.equals('foo'));
940 unittest.expect(o.id, unittest.equals('foo')); 942 unittest.expect(o.id, unittest.equals('foo'));
941 unittest.expect(o.kind, unittest.equals('foo')); 943 unittest.expect(o.kind, unittest.equals('foo'));
942 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 944 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
943 } 945 }
944 buildCounterReply--; 946 buildCounterReply--;
945 } 947 }
946 948
947 buildUnnamed1496() { 949 buildUnnamed1801() {
948 var o = new core.List<api.Reply>(); 950 var o = new core.List<api.Reply>();
949 o.add(buildReply()); 951 o.add(buildReply());
950 o.add(buildReply()); 952 o.add(buildReply());
951 return o; 953 return o;
952 } 954 }
953 955
954 checkUnnamed1496(core.List<api.Reply> o) { 956 checkUnnamed1801(core.List<api.Reply> o) {
955 unittest.expect(o, unittest.hasLength(2)); 957 unittest.expect(o, unittest.hasLength(2));
956 checkReply(o[0]); 958 checkReply(o[0]);
957 checkReply(o[1]); 959 checkReply(o[1]);
958 } 960 }
959 961
960 core.int buildCounterReplyList = 0; 962 core.int buildCounterReplyList = 0;
961 buildReplyList() { 963 buildReplyList() {
962 var o = new api.ReplyList(); 964 var o = new api.ReplyList();
963 buildCounterReplyList++; 965 buildCounterReplyList++;
964 if (buildCounterReplyList < 3) { 966 if (buildCounterReplyList < 3) {
965 o.kind = "foo"; 967 o.kind = "foo";
966 o.nextPageToken = "foo"; 968 o.nextPageToken = "foo";
967 o.replies = buildUnnamed1496(); 969 o.replies = buildUnnamed1801();
968 } 970 }
969 buildCounterReplyList--; 971 buildCounterReplyList--;
970 return o; 972 return o;
971 } 973 }
972 974
973 checkReplyList(api.ReplyList o) { 975 checkReplyList(api.ReplyList o) {
974 buildCounterReplyList++; 976 buildCounterReplyList++;
975 if (buildCounterReplyList < 3) { 977 if (buildCounterReplyList < 3) {
976 unittest.expect(o.kind, unittest.equals('foo')); 978 unittest.expect(o.kind, unittest.equals('foo'));
977 unittest.expect(o.nextPageToken, unittest.equals('foo')); 979 unittest.expect(o.nextPageToken, unittest.equals('foo'));
978 checkUnnamed1496(o.replies); 980 checkUnnamed1801(o.replies);
979 } 981 }
980 buildCounterReplyList--; 982 buildCounterReplyList--;
981 } 983 }
982 984
983 core.int buildCounterRevision = 0; 985 core.int buildCounterRevision = 0;
984 buildRevision() { 986 buildRevision() {
985 var o = new api.Revision(); 987 var o = new api.Revision();
986 buildCounterRevision++; 988 buildCounterRevision++;
987 if (buildCounterRevision < 3) { 989 if (buildCounterRevision < 3) {
988 o.id = "foo"; 990 o.id = "foo";
(...skipping 25 matching lines...) Expand all
1014 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1016 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1015 unittest.expect(o.originalFilename, unittest.equals('foo')); 1017 unittest.expect(o.originalFilename, unittest.equals('foo'));
1016 unittest.expect(o.publishAuto, unittest.isTrue); 1018 unittest.expect(o.publishAuto, unittest.isTrue);
1017 unittest.expect(o.published, unittest.isTrue); 1019 unittest.expect(o.published, unittest.isTrue);
1018 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1020 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1019 unittest.expect(o.size, unittest.equals('foo')); 1021 unittest.expect(o.size, unittest.equals('foo'));
1020 } 1022 }
1021 buildCounterRevision--; 1023 buildCounterRevision--;
1022 } 1024 }
1023 1025
1024 buildUnnamed1497() { 1026 buildUnnamed1802() {
1025 var o = new core.List<api.Revision>(); 1027 var o = new core.List<api.Revision>();
1026 o.add(buildRevision()); 1028 o.add(buildRevision());
1027 o.add(buildRevision()); 1029 o.add(buildRevision());
1028 return o; 1030 return o;
1029 } 1031 }
1030 1032
1031 checkUnnamed1497(core.List<api.Revision> o) { 1033 checkUnnamed1802(core.List<api.Revision> o) {
1032 unittest.expect(o, unittest.hasLength(2)); 1034 unittest.expect(o, unittest.hasLength(2));
1033 checkRevision(o[0]); 1035 checkRevision(o[0]);
1034 checkRevision(o[1]); 1036 checkRevision(o[1]);
1035 } 1037 }
1036 1038
1037 core.int buildCounterRevisionList = 0; 1039 core.int buildCounterRevisionList = 0;
1038 buildRevisionList() { 1040 buildRevisionList() {
1039 var o = new api.RevisionList(); 1041 var o = new api.RevisionList();
1040 buildCounterRevisionList++; 1042 buildCounterRevisionList++;
1041 if (buildCounterRevisionList < 3) { 1043 if (buildCounterRevisionList < 3) {
1042 o.kind = "foo"; 1044 o.kind = "foo";
1043 o.revisions = buildUnnamed1497(); 1045 o.revisions = buildUnnamed1802();
1044 } 1046 }
1045 buildCounterRevisionList--; 1047 buildCounterRevisionList--;
1046 return o; 1048 return o;
1047 } 1049 }
1048 1050
1049 checkRevisionList(api.RevisionList o) { 1051 checkRevisionList(api.RevisionList o) {
1050 buildCounterRevisionList++; 1052 buildCounterRevisionList++;
1051 if (buildCounterRevisionList < 3) { 1053 if (buildCounterRevisionList < 3) {
1052 unittest.expect(o.kind, unittest.equals('foo')); 1054 unittest.expect(o.kind, unittest.equals('foo'));
1053 checkUnnamed1497(o.revisions); 1055 checkUnnamed1802(o.revisions);
1054 } 1056 }
1055 buildCounterRevisionList--; 1057 buildCounterRevisionList--;
1056 } 1058 }
1057 1059
1058 core.int buildCounterStartPageToken = 0; 1060 core.int buildCounterStartPageToken = 0;
1059 buildStartPageToken() { 1061 buildStartPageToken() {
1060 var o = new api.StartPageToken(); 1062 var o = new api.StartPageToken();
1061 buildCounterStartPageToken++; 1063 buildCounterStartPageToken++;
1062 if (buildCounterStartPageToken < 3) { 1064 if (buildCounterStartPageToken < 3) {
1063 o.kind = "foo"; 1065 o.kind = "foo";
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3307 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 3309 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
3308 checkRevision(response); 3310 checkRevision(response);
3309 }))); 3311 })));
3310 }); 3312 });
3311 3313
3312 }); 3314 });
3313 3315
3314 3316
3315 } 3317 }
3316 3318
OLDNEW
« no previous file with comments | « generated/googleapis/test/drive/v2_test.dart ('k') | generated/googleapis/test/fitness/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698