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

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

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View 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 buildUnnamed1816() { 54 buildUnnamed1569() {
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 checkUnnamed1816(core.List<core.String> o) { 61 checkUnnamed1569(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 buildUnnamed1817() { 67 buildUnnamed1570() {
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"] = buildUnnamed1816(); 69 o["x"] = buildUnnamed1569();
70 o["y"] = buildUnnamed1816(); 70 o["y"] = buildUnnamed1569();
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) { 74 checkUnnamed1570(core.Map<core.String, core.List<core.String>> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 checkUnnamed1816(o["x"]); 76 checkUnnamed1569(o["x"]);
77 checkUnnamed1816(o["y"]); 77 checkUnnamed1569(o["y"]);
78 } 78 }
79 79
80 buildUnnamed1818() { 80 buildUnnamed1571() {
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 checkUnnamed1818(core.List<core.String> o) { 87 checkUnnamed1571(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 buildUnnamed1819() { 93 buildUnnamed1572() {
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 checkUnnamed1819(core.List<core.String> o) { 100 checkUnnamed1572(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 buildUnnamed1820() { 106 buildUnnamed1573() {
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"] = buildUnnamed1819(); 108 o["x"] = buildUnnamed1572();
109 o["y"] = buildUnnamed1819(); 109 o["y"] = buildUnnamed1572();
110 return o; 110 return o;
111 } 111 }
112 112
113 checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) { 113 checkUnnamed1573(core.Map<core.String, core.List<core.String>> o) {
114 unittest.expect(o, unittest.hasLength(2)); 114 unittest.expect(o, unittest.hasLength(2));
115 checkUnnamed1819(o["x"]); 115 checkUnnamed1572(o["x"]);
116 checkUnnamed1819(o["y"]); 116 checkUnnamed1572(o["y"]);
117 } 117 }
118 118
119 buildUnnamed1821() { 119 buildUnnamed1574() {
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 checkUnnamed1821(core.Map<core.String, core.String> o) { 126 checkUnnamed1574(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 = buildUnnamed1817(); 163 o.exportFormats = buildUnnamed1570();
164 o.folderColorPalette = buildUnnamed1818(); 164 o.folderColorPalette = buildUnnamed1571();
165 o.importFormats = buildUnnamed1820(); 165 o.importFormats = buildUnnamed1573();
166 o.kind = "foo"; 166 o.kind = "foo";
167 o.maxImportSizes = buildUnnamed1821(); 167 o.maxImportSizes = buildUnnamed1574();
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 checkUnnamed1817(o.exportFormats); 180 checkUnnamed1570(o.exportFormats);
181 checkUnnamed1818(o.folderColorPalette); 181 checkUnnamed1571(o.folderColorPalette);
182 checkUnnamed1820(o.importFormats); 182 checkUnnamed1573(o.importFormats);
183 unittest.expect(o.kind, unittest.equals('foo')); 183 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed1821(o.maxImportSizes); 184 checkUnnamed1574(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 buildUnnamed1822() { 219 buildUnnamed1575() {
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 checkUnnamed1822(core.List<api.Change> o) { 226 checkUnnamed1575(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 = buildUnnamed1822(); 237 o.changes = buildUnnamed1575();
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 checkUnnamed1822(o.changes); 249 checkUnnamed1575(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 buildUnnamed1823() { 257 buildUnnamed1576() {
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 checkUnnamed1823(core.Map<core.String, core.String> o) { 264 checkUnnamed1576(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 = buildUnnamed1823(); 279 o.params = buildUnnamed1576();
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 checkUnnamed1823(o.params); 297 checkUnnamed1576(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 buildUnnamed1824() { 328 buildUnnamed1577() {
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 checkUnnamed1824(core.List<api.Reply> o) { 335 checkUnnamed1577(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 = buildUnnamed1824(); 356 o.replies = buildUnnamed1577();
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 checkUnnamed1824(o.replies); 376 checkUnnamed1577(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 buildUnnamed1825() { 382 buildUnnamed1578() {
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 checkUnnamed1825(core.List<api.Comment> o) { 389 checkUnnamed1578(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 = buildUnnamed1825(); 400 o.comments = buildUnnamed1578();
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 checkUnnamed1825(o.comments); 411 checkUnnamed1578(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 buildUnnamed1826() { 418 buildUnnamed1579() {
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 checkUnnamed1826(core.Map<core.String, core.String> o) { 425 checkUnnamed1579(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) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 unittest.expect(o.rotation, unittest.equals(42)); 572 unittest.expect(o.rotation, unittest.equals(42));
573 unittest.expect(o.sensor, unittest.equals('foo')); 573 unittest.expect(o.sensor, unittest.equals('foo'));
574 unittest.expect(o.subjectDistance, unittest.equals(42)); 574 unittest.expect(o.subjectDistance, unittest.equals(42));
575 unittest.expect(o.time, unittest.equals('foo')); 575 unittest.expect(o.time, unittest.equals('foo'));
576 unittest.expect(o.whiteBalance, unittest.equals('foo')); 576 unittest.expect(o.whiteBalance, unittest.equals('foo'));
577 unittest.expect(o.width, unittest.equals(42)); 577 unittest.expect(o.width, unittest.equals(42));
578 } 578 }
579 buildCounterFileImageMediaMetadata--; 579 buildCounterFileImageMediaMetadata--;
580 } 580 }
581 581
582 buildUnnamed1827() { 582 buildUnnamed1580() {
583 var o = new core.List<api.User>(); 583 var o = new core.List<api.User>();
584 o.add(buildUser()); 584 o.add(buildUser());
585 o.add(buildUser()); 585 o.add(buildUser());
586 return o; 586 return o;
587 } 587 }
588 588
589 checkUnnamed1827(core.List<api.User> o) { 589 checkUnnamed1580(core.List<api.User> o) {
590 unittest.expect(o, unittest.hasLength(2)); 590 unittest.expect(o, unittest.hasLength(2));
591 checkUser(o[0]); 591 checkUser(o[0]);
592 checkUser(o[1]); 592 checkUser(o[1]);
593 } 593 }
594 594
595 buildUnnamed1828() { 595 buildUnnamed1581() {
596 var o = new core.List<core.String>(); 596 var o = new core.List<core.String>();
597 o.add("foo"); 597 o.add("foo");
598 o.add("foo"); 598 o.add("foo");
599 return o; 599 return o;
600 } 600 }
601 601
602 checkUnnamed1828(core.List<core.String> o) { 602 checkUnnamed1581(core.List<core.String> o) {
603 unittest.expect(o, unittest.hasLength(2)); 603 unittest.expect(o, unittest.hasLength(2));
604 unittest.expect(o[0], unittest.equals('foo')); 604 unittest.expect(o[0], unittest.equals('foo'));
605 unittest.expect(o[1], unittest.equals('foo')); 605 unittest.expect(o[1], unittest.equals('foo'));
606 } 606 }
607 607
608 buildUnnamed1829() { 608 buildUnnamed1582() {
609 var o = new core.List<api.Permission>(); 609 var o = new core.List<api.Permission>();
610 o.add(buildPermission()); 610 o.add(buildPermission());
611 o.add(buildPermission()); 611 o.add(buildPermission());
612 return o; 612 return o;
613 } 613 }
614 614
615 checkUnnamed1829(core.List<api.Permission> o) { 615 checkUnnamed1582(core.List<api.Permission> o) {
616 unittest.expect(o, unittest.hasLength(2)); 616 unittest.expect(o, unittest.hasLength(2));
617 checkPermission(o[0]); 617 checkPermission(o[0]);
618 checkPermission(o[1]); 618 checkPermission(o[1]);
619 } 619 }
620 620
621 buildUnnamed1830() { 621 buildUnnamed1583() {
622 var o = new core.Map<core.String, core.String>(); 622 var o = new core.Map<core.String, core.String>();
623 o["x"] = "foo"; 623 o["x"] = "foo";
624 o["y"] = "foo"; 624 o["y"] = "foo";
625 return o; 625 return o;
626 } 626 }
627 627
628 checkUnnamed1830(core.Map<core.String, core.String> o) { 628 checkUnnamed1583(core.Map<core.String, core.String> o) {
629 unittest.expect(o, unittest.hasLength(2)); 629 unittest.expect(o, unittest.hasLength(2));
630 unittest.expect(o["x"], unittest.equals('foo')); 630 unittest.expect(o["x"], unittest.equals('foo'));
631 unittest.expect(o["y"], unittest.equals('foo')); 631 unittest.expect(o["y"], unittest.equals('foo'));
632 } 632 }
633 633
634 buildUnnamed1831() { 634 buildUnnamed1584() {
635 var o = new core.List<core.String>(); 635 var o = new core.List<core.String>();
636 o.add("foo"); 636 o.add("foo");
637 o.add("foo"); 637 o.add("foo");
638 return o; 638 return o;
639 } 639 }
640 640
641 checkUnnamed1831(core.List<core.String> o) { 641 checkUnnamed1584(core.List<core.String> o) {
642 unittest.expect(o, unittest.hasLength(2)); 642 unittest.expect(o, unittest.hasLength(2));
643 unittest.expect(o[0], unittest.equals('foo')); 643 unittest.expect(o[0], unittest.equals('foo'));
644 unittest.expect(o[1], unittest.equals('foo')); 644 unittest.expect(o[1], unittest.equals('foo'));
645 } 645 }
646 646
647 core.int buildCounterFileVideoMediaMetadata = 0; 647 core.int buildCounterFileVideoMediaMetadata = 0;
648 buildFileVideoMediaMetadata() { 648 buildFileVideoMediaMetadata() {
649 var o = new api.FileVideoMediaMetadata(); 649 var o = new api.FileVideoMediaMetadata();
650 buildCounterFileVideoMediaMetadata++; 650 buildCounterFileVideoMediaMetadata++;
651 if (buildCounterFileVideoMediaMetadata < 3) { 651 if (buildCounterFileVideoMediaMetadata < 3) {
(...skipping 13 matching lines...) Expand all
665 unittest.expect(o.width, unittest.equals(42)); 665 unittest.expect(o.width, unittest.equals(42));
666 } 666 }
667 buildCounterFileVideoMediaMetadata--; 667 buildCounterFileVideoMediaMetadata--;
668 } 668 }
669 669
670 core.int buildCounterFile = 0; 670 core.int buildCounterFile = 0;
671 buildFile() { 671 buildFile() {
672 var o = new api.File(); 672 var o = new api.File();
673 buildCounterFile++; 673 buildCounterFile++;
674 if (buildCounterFile < 3) { 674 if (buildCounterFile < 3) {
675 o.appProperties = buildUnnamed1826(); 675 o.appProperties = buildUnnamed1579();
676 o.capabilities = buildFileCapabilities(); 676 o.capabilities = buildFileCapabilities();
677 o.contentHints = buildFileContentHints(); 677 o.contentHints = buildFileContentHints();
678 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); 678 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
679 o.description = "foo"; 679 o.description = "foo";
680 o.explicitlyTrashed = true; 680 o.explicitlyTrashed = true;
681 o.fileExtension = "foo"; 681 o.fileExtension = "foo";
682 o.folderColorRgb = "foo"; 682 o.folderColorRgb = "foo";
683 o.fullFileExtension = "foo"; 683 o.fullFileExtension = "foo";
684 o.hasThumbnail = true;
684 o.headRevisionId = "foo"; 685 o.headRevisionId = "foo";
685 o.iconLink = "foo"; 686 o.iconLink = "foo";
686 o.id = "foo"; 687 o.id = "foo";
687 o.imageMediaMetadata = buildFileImageMediaMetadata(); 688 o.imageMediaMetadata = buildFileImageMediaMetadata();
688 o.isAppAuthorized = true; 689 o.isAppAuthorized = true;
689 o.kind = "foo"; 690 o.kind = "foo";
690 o.lastModifyingUser = buildUser(); 691 o.lastModifyingUser = buildUser();
691 o.md5Checksum = "foo"; 692 o.md5Checksum = "foo";
692 o.mimeType = "foo"; 693 o.mimeType = "foo";
693 o.modifiedByMe = true; 694 o.modifiedByMe = true;
694 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 695 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
695 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 696 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
696 o.name = "foo"; 697 o.name = "foo";
697 o.originalFilename = "foo"; 698 o.originalFilename = "foo";
698 o.ownedByMe = true; 699 o.ownedByMe = true;
699 o.owners = buildUnnamed1827(); 700 o.owners = buildUnnamed1580();
700 o.parents = buildUnnamed1828(); 701 o.parents = buildUnnamed1581();
701 o.permissions = buildUnnamed1829(); 702 o.permissions = buildUnnamed1582();
702 o.properties = buildUnnamed1830(); 703 o.properties = buildUnnamed1583();
703 o.quotaBytesUsed = "foo"; 704 o.quotaBytesUsed = "foo";
704 o.shared = true; 705 o.shared = true;
705 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 706 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
706 o.sharingUser = buildUser(); 707 o.sharingUser = buildUser();
707 o.size = "foo"; 708 o.size = "foo";
708 o.spaces = buildUnnamed1831(); 709 o.spaces = buildUnnamed1584();
709 o.starred = true; 710 o.starred = true;
710 o.thumbnailLink = "foo"; 711 o.thumbnailLink = "foo";
712 o.thumbnailVersion = "foo";
711 o.trashed = true; 713 o.trashed = true;
712 o.version = "foo"; 714 o.version = "foo";
713 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 715 o.videoMediaMetadata = buildFileVideoMediaMetadata();
714 o.viewedByMe = true; 716 o.viewedByMe = true;
715 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 717 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
716 o.viewersCanCopyContent = true; 718 o.viewersCanCopyContent = true;
717 o.webContentLink = "foo"; 719 o.webContentLink = "foo";
718 o.webViewLink = "foo"; 720 o.webViewLink = "foo";
719 o.writersCanShare = true; 721 o.writersCanShare = true;
720 } 722 }
721 buildCounterFile--; 723 buildCounterFile--;
722 return o; 724 return o;
723 } 725 }
724 726
725 checkFile(api.File o) { 727 checkFile(api.File o) {
726 buildCounterFile++; 728 buildCounterFile++;
727 if (buildCounterFile < 3) { 729 if (buildCounterFile < 3) {
728 checkUnnamed1826(o.appProperties); 730 checkUnnamed1579(o.appProperties);
729 checkFileCapabilities(o.capabilities); 731 checkFileCapabilities(o.capabilities);
730 checkFileContentHints(o.contentHints); 732 checkFileContentHints(o.contentHints);
731 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 733 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
732 unittest.expect(o.description, unittest.equals('foo')); 734 unittest.expect(o.description, unittest.equals('foo'));
733 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 735 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
734 unittest.expect(o.fileExtension, unittest.equals('foo')); 736 unittest.expect(o.fileExtension, unittest.equals('foo'));
735 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 737 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
736 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 738 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
739 unittest.expect(o.hasThumbnail, unittest.isTrue);
737 unittest.expect(o.headRevisionId, unittest.equals('foo')); 740 unittest.expect(o.headRevisionId, unittest.equals('foo'));
738 unittest.expect(o.iconLink, unittest.equals('foo')); 741 unittest.expect(o.iconLink, unittest.equals('foo'));
739 unittest.expect(o.id, unittest.equals('foo')); 742 unittest.expect(o.id, unittest.equals('foo'));
740 checkFileImageMediaMetadata(o.imageMediaMetadata); 743 checkFileImageMediaMetadata(o.imageMediaMetadata);
741 unittest.expect(o.isAppAuthorized, unittest.isTrue); 744 unittest.expect(o.isAppAuthorized, unittest.isTrue);
742 unittest.expect(o.kind, unittest.equals('foo')); 745 unittest.expect(o.kind, unittest.equals('foo'));
743 checkUser(o.lastModifyingUser); 746 checkUser(o.lastModifyingUser);
744 unittest.expect(o.md5Checksum, unittest.equals('foo')); 747 unittest.expect(o.md5Checksum, unittest.equals('foo'));
745 unittest.expect(o.mimeType, unittest.equals('foo')); 748 unittest.expect(o.mimeType, unittest.equals('foo'));
746 unittest.expect(o.modifiedByMe, unittest.isTrue); 749 unittest.expect(o.modifiedByMe, unittest.isTrue);
747 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 750 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
748 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 751 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
749 unittest.expect(o.name, unittest.equals('foo')); 752 unittest.expect(o.name, unittest.equals('foo'));
750 unittest.expect(o.originalFilename, unittest.equals('foo')); 753 unittest.expect(o.originalFilename, unittest.equals('foo'));
751 unittest.expect(o.ownedByMe, unittest.isTrue); 754 unittest.expect(o.ownedByMe, unittest.isTrue);
752 checkUnnamed1827(o.owners); 755 checkUnnamed1580(o.owners);
753 checkUnnamed1828(o.parents); 756 checkUnnamed1581(o.parents);
754 checkUnnamed1829(o.permissions); 757 checkUnnamed1582(o.permissions);
755 checkUnnamed1830(o.properties); 758 checkUnnamed1583(o.properties);
756 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 759 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
757 unittest.expect(o.shared, unittest.isTrue); 760 unittest.expect(o.shared, unittest.isTrue);
758 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 761 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
759 checkUser(o.sharingUser); 762 checkUser(o.sharingUser);
760 unittest.expect(o.size, unittest.equals('foo')); 763 unittest.expect(o.size, unittest.equals('foo'));
761 checkUnnamed1831(o.spaces); 764 checkUnnamed1584(o.spaces);
762 unittest.expect(o.starred, unittest.isTrue); 765 unittest.expect(o.starred, unittest.isTrue);
763 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 766 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
767 unittest.expect(o.thumbnailVersion, unittest.equals('foo'));
764 unittest.expect(o.trashed, unittest.isTrue); 768 unittest.expect(o.trashed, unittest.isTrue);
765 unittest.expect(o.version, unittest.equals('foo')); 769 unittest.expect(o.version, unittest.equals('foo'));
766 checkFileVideoMediaMetadata(o.videoMediaMetadata); 770 checkFileVideoMediaMetadata(o.videoMediaMetadata);
767 unittest.expect(o.viewedByMe, unittest.isTrue); 771 unittest.expect(o.viewedByMe, unittest.isTrue);
768 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 772 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
769 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); 773 unittest.expect(o.viewersCanCopyContent, unittest.isTrue);
770 unittest.expect(o.webContentLink, unittest.equals('foo')); 774 unittest.expect(o.webContentLink, unittest.equals('foo'));
771 unittest.expect(o.webViewLink, unittest.equals('foo')); 775 unittest.expect(o.webViewLink, unittest.equals('foo'));
772 unittest.expect(o.writersCanShare, unittest.isTrue); 776 unittest.expect(o.writersCanShare, unittest.isTrue);
773 } 777 }
774 buildCounterFile--; 778 buildCounterFile--;
775 } 779 }
776 780
777 buildUnnamed1832() { 781 buildUnnamed1585() {
778 var o = new core.List<api.File>(); 782 var o = new core.List<api.File>();
779 o.add(buildFile()); 783 o.add(buildFile());
780 o.add(buildFile()); 784 o.add(buildFile());
781 return o; 785 return o;
782 } 786 }
783 787
784 checkUnnamed1832(core.List<api.File> o) { 788 checkUnnamed1585(core.List<api.File> o) {
785 unittest.expect(o, unittest.hasLength(2)); 789 unittest.expect(o, unittest.hasLength(2));
786 checkFile(o[0]); 790 checkFile(o[0]);
787 checkFile(o[1]); 791 checkFile(o[1]);
788 } 792 }
789 793
790 core.int buildCounterFileList = 0; 794 core.int buildCounterFileList = 0;
791 buildFileList() { 795 buildFileList() {
792 var o = new api.FileList(); 796 var o = new api.FileList();
793 buildCounterFileList++; 797 buildCounterFileList++;
794 if (buildCounterFileList < 3) { 798 if (buildCounterFileList < 3) {
795 o.files = buildUnnamed1832(); 799 o.files = buildUnnamed1585();
796 o.kind = "foo"; 800 o.kind = "foo";
797 o.nextPageToken = "foo"; 801 o.nextPageToken = "foo";
798 } 802 }
799 buildCounterFileList--; 803 buildCounterFileList--;
800 return o; 804 return o;
801 } 805 }
802 806
803 checkFileList(api.FileList o) { 807 checkFileList(api.FileList o) {
804 buildCounterFileList++; 808 buildCounterFileList++;
805 if (buildCounterFileList < 3) { 809 if (buildCounterFileList < 3) {
806 checkUnnamed1832(o.files); 810 checkUnnamed1585(o.files);
807 unittest.expect(o.kind, unittest.equals('foo')); 811 unittest.expect(o.kind, unittest.equals('foo'));
808 unittest.expect(o.nextPageToken, unittest.equals('foo')); 812 unittest.expect(o.nextPageToken, unittest.equals('foo'));
809 } 813 }
810 buildCounterFileList--; 814 buildCounterFileList--;
811 } 815 }
812 816
813 buildUnnamed1833() { 817 buildUnnamed1586() {
814 var o = new core.List<core.String>(); 818 var o = new core.List<core.String>();
815 o.add("foo"); 819 o.add("foo");
816 o.add("foo"); 820 o.add("foo");
817 return o; 821 return o;
818 } 822 }
819 823
820 checkUnnamed1833(core.List<core.String> o) { 824 checkUnnamed1586(core.List<core.String> o) {
821 unittest.expect(o, unittest.hasLength(2)); 825 unittest.expect(o, unittest.hasLength(2));
822 unittest.expect(o[0], unittest.equals('foo')); 826 unittest.expect(o[0], unittest.equals('foo'));
823 unittest.expect(o[1], unittest.equals('foo')); 827 unittest.expect(o[1], unittest.equals('foo'));
824 } 828 }
825 829
826 core.int buildCounterGeneratedIds = 0; 830 core.int buildCounterGeneratedIds = 0;
827 buildGeneratedIds() { 831 buildGeneratedIds() {
828 var o = new api.GeneratedIds(); 832 var o = new api.GeneratedIds();
829 buildCounterGeneratedIds++; 833 buildCounterGeneratedIds++;
830 if (buildCounterGeneratedIds < 3) { 834 if (buildCounterGeneratedIds < 3) {
831 o.ids = buildUnnamed1833(); 835 o.ids = buildUnnamed1586();
832 o.kind = "foo"; 836 o.kind = "foo";
833 o.space = "foo"; 837 o.space = "foo";
834 } 838 }
835 buildCounterGeneratedIds--; 839 buildCounterGeneratedIds--;
836 return o; 840 return o;
837 } 841 }
838 842
839 checkGeneratedIds(api.GeneratedIds o) { 843 checkGeneratedIds(api.GeneratedIds o) {
840 buildCounterGeneratedIds++; 844 buildCounterGeneratedIds++;
841 if (buildCounterGeneratedIds < 3) { 845 if (buildCounterGeneratedIds < 3) {
842 checkUnnamed1833(o.ids); 846 checkUnnamed1586(o.ids);
843 unittest.expect(o.kind, unittest.equals('foo')); 847 unittest.expect(o.kind, unittest.equals('foo'));
844 unittest.expect(o.space, unittest.equals('foo')); 848 unittest.expect(o.space, unittest.equals('foo'));
845 } 849 }
846 buildCounterGeneratedIds--; 850 buildCounterGeneratedIds--;
847 } 851 }
848 852
849 core.int buildCounterPermission = 0; 853 core.int buildCounterPermission = 0;
850 buildPermission() { 854 buildPermission() {
851 var o = new api.Permission(); 855 var o = new api.Permission();
852 buildCounterPermission++; 856 buildCounterPermission++;
(...skipping 23 matching lines...) Expand all
876 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 880 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
877 unittest.expect(o.id, unittest.equals('foo')); 881 unittest.expect(o.id, unittest.equals('foo'));
878 unittest.expect(o.kind, unittest.equals('foo')); 882 unittest.expect(o.kind, unittest.equals('foo'));
879 unittest.expect(o.photoLink, unittest.equals('foo')); 883 unittest.expect(o.photoLink, unittest.equals('foo'));
880 unittest.expect(o.role, unittest.equals('foo')); 884 unittest.expect(o.role, unittest.equals('foo'));
881 unittest.expect(o.type, unittest.equals('foo')); 885 unittest.expect(o.type, unittest.equals('foo'));
882 } 886 }
883 buildCounterPermission--; 887 buildCounterPermission--;
884 } 888 }
885 889
886 buildUnnamed1834() { 890 buildUnnamed1587() {
887 var o = new core.List<api.Permission>(); 891 var o = new core.List<api.Permission>();
888 o.add(buildPermission()); 892 o.add(buildPermission());
889 o.add(buildPermission()); 893 o.add(buildPermission());
890 return o; 894 return o;
891 } 895 }
892 896
893 checkUnnamed1834(core.List<api.Permission> o) { 897 checkUnnamed1587(core.List<api.Permission> o) {
894 unittest.expect(o, unittest.hasLength(2)); 898 unittest.expect(o, unittest.hasLength(2));
895 checkPermission(o[0]); 899 checkPermission(o[0]);
896 checkPermission(o[1]); 900 checkPermission(o[1]);
897 } 901 }
898 902
899 core.int buildCounterPermissionList = 0; 903 core.int buildCounterPermissionList = 0;
900 buildPermissionList() { 904 buildPermissionList() {
901 var o = new api.PermissionList(); 905 var o = new api.PermissionList();
902 buildCounterPermissionList++; 906 buildCounterPermissionList++;
903 if (buildCounterPermissionList < 3) { 907 if (buildCounterPermissionList < 3) {
904 o.kind = "foo"; 908 o.kind = "foo";
905 o.permissions = buildUnnamed1834(); 909 o.permissions = buildUnnamed1587();
906 } 910 }
907 buildCounterPermissionList--; 911 buildCounterPermissionList--;
908 return o; 912 return o;
909 } 913 }
910 914
911 checkPermissionList(api.PermissionList o) { 915 checkPermissionList(api.PermissionList o) {
912 buildCounterPermissionList++; 916 buildCounterPermissionList++;
913 if (buildCounterPermissionList < 3) { 917 if (buildCounterPermissionList < 3) {
914 unittest.expect(o.kind, unittest.equals('foo')); 918 unittest.expect(o.kind, unittest.equals('foo'));
915 checkUnnamed1834(o.permissions); 919 checkUnnamed1587(o.permissions);
916 } 920 }
917 buildCounterPermissionList--; 921 buildCounterPermissionList--;
918 } 922 }
919 923
920 core.int buildCounterReply = 0; 924 core.int buildCounterReply = 0;
921 buildReply() { 925 buildReply() {
922 var o = new api.Reply(); 926 var o = new api.Reply();
923 buildCounterReply++; 927 buildCounterReply++;
924 if (buildCounterReply < 3) { 928 if (buildCounterReply < 3) {
925 o.action = "foo"; 929 o.action = "foo";
(...skipping 19 matching lines...) Expand all
945 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 949 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
946 unittest.expect(o.deleted, unittest.isTrue); 950 unittest.expect(o.deleted, unittest.isTrue);
947 unittest.expect(o.htmlContent, unittest.equals('foo')); 951 unittest.expect(o.htmlContent, unittest.equals('foo'));
948 unittest.expect(o.id, unittest.equals('foo')); 952 unittest.expect(o.id, unittest.equals('foo'));
949 unittest.expect(o.kind, unittest.equals('foo')); 953 unittest.expect(o.kind, unittest.equals('foo'));
950 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 954 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
951 } 955 }
952 buildCounterReply--; 956 buildCounterReply--;
953 } 957 }
954 958
955 buildUnnamed1835() { 959 buildUnnamed1588() {
956 var o = new core.List<api.Reply>(); 960 var o = new core.List<api.Reply>();
957 o.add(buildReply()); 961 o.add(buildReply());
958 o.add(buildReply()); 962 o.add(buildReply());
959 return o; 963 return o;
960 } 964 }
961 965
962 checkUnnamed1835(core.List<api.Reply> o) { 966 checkUnnamed1588(core.List<api.Reply> o) {
963 unittest.expect(o, unittest.hasLength(2)); 967 unittest.expect(o, unittest.hasLength(2));
964 checkReply(o[0]); 968 checkReply(o[0]);
965 checkReply(o[1]); 969 checkReply(o[1]);
966 } 970 }
967 971
968 core.int buildCounterReplyList = 0; 972 core.int buildCounterReplyList = 0;
969 buildReplyList() { 973 buildReplyList() {
970 var o = new api.ReplyList(); 974 var o = new api.ReplyList();
971 buildCounterReplyList++; 975 buildCounterReplyList++;
972 if (buildCounterReplyList < 3) { 976 if (buildCounterReplyList < 3) {
973 o.kind = "foo"; 977 o.kind = "foo";
974 o.nextPageToken = "foo"; 978 o.nextPageToken = "foo";
975 o.replies = buildUnnamed1835(); 979 o.replies = buildUnnamed1588();
976 } 980 }
977 buildCounterReplyList--; 981 buildCounterReplyList--;
978 return o; 982 return o;
979 } 983 }
980 984
981 checkReplyList(api.ReplyList o) { 985 checkReplyList(api.ReplyList o) {
982 buildCounterReplyList++; 986 buildCounterReplyList++;
983 if (buildCounterReplyList < 3) { 987 if (buildCounterReplyList < 3) {
984 unittest.expect(o.kind, unittest.equals('foo')); 988 unittest.expect(o.kind, unittest.equals('foo'));
985 unittest.expect(o.nextPageToken, unittest.equals('foo')); 989 unittest.expect(o.nextPageToken, unittest.equals('foo'));
986 checkUnnamed1835(o.replies); 990 checkUnnamed1588(o.replies);
987 } 991 }
988 buildCounterReplyList--; 992 buildCounterReplyList--;
989 } 993 }
990 994
991 core.int buildCounterRevision = 0; 995 core.int buildCounterRevision = 0;
992 buildRevision() { 996 buildRevision() {
993 var o = new api.Revision(); 997 var o = new api.Revision();
994 buildCounterRevision++; 998 buildCounterRevision++;
995 if (buildCounterRevision < 3) { 999 if (buildCounterRevision < 3) {
996 o.id = "foo"; 1000 o.id = "foo";
(...skipping 25 matching lines...) Expand all
1022 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1026 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1023 unittest.expect(o.originalFilename, unittest.equals('foo')); 1027 unittest.expect(o.originalFilename, unittest.equals('foo'));
1024 unittest.expect(o.publishAuto, unittest.isTrue); 1028 unittest.expect(o.publishAuto, unittest.isTrue);
1025 unittest.expect(o.published, unittest.isTrue); 1029 unittest.expect(o.published, unittest.isTrue);
1026 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1030 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1027 unittest.expect(o.size, unittest.equals('foo')); 1031 unittest.expect(o.size, unittest.equals('foo'));
1028 } 1032 }
1029 buildCounterRevision--; 1033 buildCounterRevision--;
1030 } 1034 }
1031 1035
1032 buildUnnamed1836() { 1036 buildUnnamed1589() {
1033 var o = new core.List<api.Revision>(); 1037 var o = new core.List<api.Revision>();
1034 o.add(buildRevision()); 1038 o.add(buildRevision());
1035 o.add(buildRevision()); 1039 o.add(buildRevision());
1036 return o; 1040 return o;
1037 } 1041 }
1038 1042
1039 checkUnnamed1836(core.List<api.Revision> o) { 1043 checkUnnamed1589(core.List<api.Revision> o) {
1040 unittest.expect(o, unittest.hasLength(2)); 1044 unittest.expect(o, unittest.hasLength(2));
1041 checkRevision(o[0]); 1045 checkRevision(o[0]);
1042 checkRevision(o[1]); 1046 checkRevision(o[1]);
1043 } 1047 }
1044 1048
1045 core.int buildCounterRevisionList = 0; 1049 core.int buildCounterRevisionList = 0;
1046 buildRevisionList() { 1050 buildRevisionList() {
1047 var o = new api.RevisionList(); 1051 var o = new api.RevisionList();
1048 buildCounterRevisionList++; 1052 buildCounterRevisionList++;
1049 if (buildCounterRevisionList < 3) { 1053 if (buildCounterRevisionList < 3) {
1050 o.kind = "foo"; 1054 o.kind = "foo";
1051 o.nextPageToken = "foo"; 1055 o.nextPageToken = "foo";
1052 o.revisions = buildUnnamed1836(); 1056 o.revisions = buildUnnamed1589();
1053 } 1057 }
1054 buildCounterRevisionList--; 1058 buildCounterRevisionList--;
1055 return o; 1059 return o;
1056 } 1060 }
1057 1061
1058 checkRevisionList(api.RevisionList o) { 1062 checkRevisionList(api.RevisionList o) {
1059 buildCounterRevisionList++; 1063 buildCounterRevisionList++;
1060 if (buildCounterRevisionList < 3) { 1064 if (buildCounterRevisionList < 3) {
1061 unittest.expect(o.kind, unittest.equals('foo')); 1065 unittest.expect(o.kind, unittest.equals('foo'));
1062 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1066 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1063 checkUnnamed1836(o.revisions); 1067 checkUnnamed1589(o.revisions);
1064 } 1068 }
1065 buildCounterRevisionList--; 1069 buildCounterRevisionList--;
1066 } 1070 }
1067 1071
1068 core.int buildCounterStartPageToken = 0; 1072 core.int buildCounterStartPageToken = 0;
1069 buildStartPageToken() { 1073 buildStartPageToken() {
1070 var o = new api.StartPageToken(); 1074 var o = new api.StartPageToken();
1071 buildCounterStartPageToken++; 1075 buildCounterStartPageToken++;
1072 if (buildCounterStartPageToken < 3) { 1076 if (buildCounterStartPageToken < 3) {
1073 o.kind = "foo"; 1077 o.kind = "foo";
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3323 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 3327 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
3324 checkRevision(response); 3328 checkRevision(response);
3325 }))); 3329 })));
3326 }); 3330 });
3327 3331
3328 }); 3332 });
3329 3333
3330 3334
3331 } 3335 }
3332 3336
OLDNEW
« no previous file with comments | « generated/googleapis/test/drive/v2_test.dart ('k') | generated/googleapis/test/firebasedynamiclinks/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698