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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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 buildUnnamed1801() { 54 buildUnnamed1816() {
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 checkUnnamed1801(core.List<core.String> o) { 61 checkUnnamed1816(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 buildUnnamed1802() { 67 buildUnnamed1817() {
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"] = buildUnnamed1801(); 69 o["x"] = buildUnnamed1816();
70 o["y"] = buildUnnamed1801(); 70 o["y"] = buildUnnamed1816();
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1802(core.Map<core.String, core.List<core.String>> o) { 74 checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 checkUnnamed1801(o["x"]); 76 checkUnnamed1816(o["x"]);
77 checkUnnamed1801(o["y"]); 77 checkUnnamed1816(o["y"]);
78 } 78 }
79 79
80 buildUnnamed1803() { 80 buildUnnamed1818() {
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 checkUnnamed1803(core.List<core.String> o) { 87 checkUnnamed1818(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 buildUnnamed1804() { 93 buildUnnamed1819() {
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 checkUnnamed1804(core.List<core.String> o) { 100 checkUnnamed1819(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 buildUnnamed1805() { 106 buildUnnamed1820() {
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"] = buildUnnamed1804(); 108 o["x"] = buildUnnamed1819();
109 o["y"] = buildUnnamed1804(); 109 o["y"] = buildUnnamed1819();
110 return o; 110 return o;
111 } 111 }
112 112
113 checkUnnamed1805(core.Map<core.String, core.List<core.String>> o) { 113 checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) {
114 unittest.expect(o, unittest.hasLength(2)); 114 unittest.expect(o, unittest.hasLength(2));
115 checkUnnamed1804(o["x"]); 115 checkUnnamed1819(o["x"]);
116 checkUnnamed1804(o["y"]); 116 checkUnnamed1819(o["y"]);
117 } 117 }
118 118
119 buildUnnamed1806() { 119 buildUnnamed1821() {
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 checkUnnamed1806(core.Map<core.String, core.String> o) { 126 checkUnnamed1821(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 = buildUnnamed1802(); 163 o.exportFormats = buildUnnamed1817();
164 o.folderColorPalette = buildUnnamed1803(); 164 o.folderColorPalette = buildUnnamed1818();
165 o.importFormats = buildUnnamed1805(); 165 o.importFormats = buildUnnamed1820();
166 o.kind = "foo"; 166 o.kind = "foo";
167 o.maxImportSizes = buildUnnamed1806(); 167 o.maxImportSizes = buildUnnamed1821();
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 checkUnnamed1802(o.exportFormats); 180 checkUnnamed1817(o.exportFormats);
181 checkUnnamed1803(o.folderColorPalette); 181 checkUnnamed1818(o.folderColorPalette);
182 checkUnnamed1805(o.importFormats); 182 checkUnnamed1820(o.importFormats);
183 unittest.expect(o.kind, unittest.equals('foo')); 183 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed1806(o.maxImportSizes); 184 checkUnnamed1821(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 buildUnnamed1807() { 219 buildUnnamed1822() {
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 checkUnnamed1807(core.List<api.Change> o) { 226 checkUnnamed1822(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 = buildUnnamed1807(); 237 o.changes = buildUnnamed1822();
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 checkUnnamed1807(o.changes); 249 checkUnnamed1822(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 buildUnnamed1808() { 257 buildUnnamed1823() {
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 checkUnnamed1808(core.Map<core.String, core.String> o) { 264 checkUnnamed1823(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 = buildUnnamed1808(); 279 o.params = buildUnnamed1823();
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 checkUnnamed1808(o.params); 297 checkUnnamed1823(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 buildUnnamed1809() { 328 buildUnnamed1824() {
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 checkUnnamed1809(core.List<api.Reply> o) { 335 checkUnnamed1824(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 = buildUnnamed1809(); 356 o.replies = buildUnnamed1824();
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 checkUnnamed1809(o.replies); 376 checkUnnamed1824(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 buildUnnamed1810() { 382 buildUnnamed1825() {
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 checkUnnamed1810(core.List<api.Comment> o) { 389 checkUnnamed1825(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 = buildUnnamed1810(); 400 o.comments = buildUnnamed1825();
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 checkUnnamed1810(o.comments); 411 checkUnnamed1825(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 buildUnnamed1811() { 418 buildUnnamed1826() {
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 checkUnnamed1811(core.Map<core.String, core.String> o) { 425 checkUnnamed1826(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 buildUnnamed1812() { 582 buildUnnamed1827() {
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 checkUnnamed1812(core.List<api.User> o) { 589 checkUnnamed1827(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 buildUnnamed1813() { 595 buildUnnamed1828() {
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 checkUnnamed1813(core.List<core.String> o) { 602 checkUnnamed1828(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 buildUnnamed1814() { 608 buildUnnamed1829() {
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 checkUnnamed1814(core.List<api.Permission> o) { 615 checkUnnamed1829(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 buildUnnamed1815() { 621 buildUnnamed1830() {
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 checkUnnamed1815(core.Map<core.String, core.String> o) { 628 checkUnnamed1830(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 buildUnnamed1816() { 634 buildUnnamed1831() {
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 checkUnnamed1816(core.List<core.String> o) { 641 checkUnnamed1831(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 = buildUnnamed1811(); 675 o.appProperties = buildUnnamed1826();
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.headRevisionId = "foo"; 684 o.headRevisionId = "foo";
685 o.iconLink = "foo"; 685 o.iconLink = "foo";
686 o.id = "foo"; 686 o.id = "foo";
687 o.imageMediaMetadata = buildFileImageMediaMetadata(); 687 o.imageMediaMetadata = buildFileImageMediaMetadata();
688 o.isAppAuthorized = true; 688 o.isAppAuthorized = true;
689 o.kind = "foo"; 689 o.kind = "foo";
690 o.lastModifyingUser = buildUser(); 690 o.lastModifyingUser = buildUser();
691 o.md5Checksum = "foo"; 691 o.md5Checksum = "foo";
692 o.mimeType = "foo"; 692 o.mimeType = "foo";
693 o.modifiedByMe = true;
693 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 694 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
694 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 695 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
695 o.name = "foo"; 696 o.name = "foo";
696 o.originalFilename = "foo"; 697 o.originalFilename = "foo";
697 o.ownedByMe = true; 698 o.ownedByMe = true;
698 o.owners = buildUnnamed1812(); 699 o.owners = buildUnnamed1827();
699 o.parents = buildUnnamed1813(); 700 o.parents = buildUnnamed1828();
700 o.permissions = buildUnnamed1814(); 701 o.permissions = buildUnnamed1829();
701 o.properties = buildUnnamed1815(); 702 o.properties = buildUnnamed1830();
702 o.quotaBytesUsed = "foo"; 703 o.quotaBytesUsed = "foo";
703 o.shared = true; 704 o.shared = true;
704 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 705 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
705 o.sharingUser = buildUser(); 706 o.sharingUser = buildUser();
706 o.size = "foo"; 707 o.size = "foo";
707 o.spaces = buildUnnamed1816(); 708 o.spaces = buildUnnamed1831();
708 o.starred = true; 709 o.starred = true;
709 o.thumbnailLink = "foo"; 710 o.thumbnailLink = "foo";
710 o.trashed = true; 711 o.trashed = true;
711 o.version = "foo"; 712 o.version = "foo";
712 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 713 o.videoMediaMetadata = buildFileVideoMediaMetadata();
713 o.viewedByMe = true; 714 o.viewedByMe = true;
714 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 715 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
715 o.viewersCanCopyContent = true; 716 o.viewersCanCopyContent = true;
716 o.webContentLink = "foo"; 717 o.webContentLink = "foo";
717 o.webViewLink = "foo"; 718 o.webViewLink = "foo";
718 o.writersCanShare = true; 719 o.writersCanShare = true;
719 } 720 }
720 buildCounterFile--; 721 buildCounterFile--;
721 return o; 722 return o;
722 } 723 }
723 724
724 checkFile(api.File o) { 725 checkFile(api.File o) {
725 buildCounterFile++; 726 buildCounterFile++;
726 if (buildCounterFile < 3) { 727 if (buildCounterFile < 3) {
727 checkUnnamed1811(o.appProperties); 728 checkUnnamed1826(o.appProperties);
728 checkFileCapabilities(o.capabilities); 729 checkFileCapabilities(o.capabilities);
729 checkFileContentHints(o.contentHints); 730 checkFileContentHints(o.contentHints);
730 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 731 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
731 unittest.expect(o.description, unittest.equals('foo')); 732 unittest.expect(o.description, unittest.equals('foo'));
732 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 733 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
733 unittest.expect(o.fileExtension, unittest.equals('foo')); 734 unittest.expect(o.fileExtension, unittest.equals('foo'));
734 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 735 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
735 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 736 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
736 unittest.expect(o.headRevisionId, unittest.equals('foo')); 737 unittest.expect(o.headRevisionId, unittest.equals('foo'));
737 unittest.expect(o.iconLink, unittest.equals('foo')); 738 unittest.expect(o.iconLink, unittest.equals('foo'));
738 unittest.expect(o.id, unittest.equals('foo')); 739 unittest.expect(o.id, unittest.equals('foo'));
739 checkFileImageMediaMetadata(o.imageMediaMetadata); 740 checkFileImageMediaMetadata(o.imageMediaMetadata);
740 unittest.expect(o.isAppAuthorized, unittest.isTrue); 741 unittest.expect(o.isAppAuthorized, unittest.isTrue);
741 unittest.expect(o.kind, unittest.equals('foo')); 742 unittest.expect(o.kind, unittest.equals('foo'));
742 checkUser(o.lastModifyingUser); 743 checkUser(o.lastModifyingUser);
743 unittest.expect(o.md5Checksum, unittest.equals('foo')); 744 unittest.expect(o.md5Checksum, unittest.equals('foo'));
744 unittest.expect(o.mimeType, unittest.equals('foo')); 745 unittest.expect(o.mimeType, unittest.equals('foo'));
746 unittest.expect(o.modifiedByMe, unittest.isTrue);
745 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 747 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
746 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 748 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
747 unittest.expect(o.name, unittest.equals('foo')); 749 unittest.expect(o.name, unittest.equals('foo'));
748 unittest.expect(o.originalFilename, unittest.equals('foo')); 750 unittest.expect(o.originalFilename, unittest.equals('foo'));
749 unittest.expect(o.ownedByMe, unittest.isTrue); 751 unittest.expect(o.ownedByMe, unittest.isTrue);
750 checkUnnamed1812(o.owners); 752 checkUnnamed1827(o.owners);
751 checkUnnamed1813(o.parents); 753 checkUnnamed1828(o.parents);
752 checkUnnamed1814(o.permissions); 754 checkUnnamed1829(o.permissions);
753 checkUnnamed1815(o.properties); 755 checkUnnamed1830(o.properties);
754 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 756 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
755 unittest.expect(o.shared, unittest.isTrue); 757 unittest.expect(o.shared, unittest.isTrue);
756 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 758 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
757 checkUser(o.sharingUser); 759 checkUser(o.sharingUser);
758 unittest.expect(o.size, unittest.equals('foo')); 760 unittest.expect(o.size, unittest.equals('foo'));
759 checkUnnamed1816(o.spaces); 761 checkUnnamed1831(o.spaces);
760 unittest.expect(o.starred, unittest.isTrue); 762 unittest.expect(o.starred, unittest.isTrue);
761 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 763 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
762 unittest.expect(o.trashed, unittest.isTrue); 764 unittest.expect(o.trashed, unittest.isTrue);
763 unittest.expect(o.version, unittest.equals('foo')); 765 unittest.expect(o.version, unittest.equals('foo'));
764 checkFileVideoMediaMetadata(o.videoMediaMetadata); 766 checkFileVideoMediaMetadata(o.videoMediaMetadata);
765 unittest.expect(o.viewedByMe, unittest.isTrue); 767 unittest.expect(o.viewedByMe, unittest.isTrue);
766 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 768 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
767 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); 769 unittest.expect(o.viewersCanCopyContent, unittest.isTrue);
768 unittest.expect(o.webContentLink, unittest.equals('foo')); 770 unittest.expect(o.webContentLink, unittest.equals('foo'));
769 unittest.expect(o.webViewLink, unittest.equals('foo')); 771 unittest.expect(o.webViewLink, unittest.equals('foo'));
770 unittest.expect(o.writersCanShare, unittest.isTrue); 772 unittest.expect(o.writersCanShare, unittest.isTrue);
771 } 773 }
772 buildCounterFile--; 774 buildCounterFile--;
773 } 775 }
774 776
775 buildUnnamed1817() { 777 buildUnnamed1832() {
776 var o = new core.List<api.File>(); 778 var o = new core.List<api.File>();
777 o.add(buildFile()); 779 o.add(buildFile());
778 o.add(buildFile()); 780 o.add(buildFile());
779 return o; 781 return o;
780 } 782 }
781 783
782 checkUnnamed1817(core.List<api.File> o) { 784 checkUnnamed1832(core.List<api.File> o) {
783 unittest.expect(o, unittest.hasLength(2)); 785 unittest.expect(o, unittest.hasLength(2));
784 checkFile(o[0]); 786 checkFile(o[0]);
785 checkFile(o[1]); 787 checkFile(o[1]);
786 } 788 }
787 789
788 core.int buildCounterFileList = 0; 790 core.int buildCounterFileList = 0;
789 buildFileList() { 791 buildFileList() {
790 var o = new api.FileList(); 792 var o = new api.FileList();
791 buildCounterFileList++; 793 buildCounterFileList++;
792 if (buildCounterFileList < 3) { 794 if (buildCounterFileList < 3) {
793 o.files = buildUnnamed1817(); 795 o.files = buildUnnamed1832();
794 o.kind = "foo"; 796 o.kind = "foo";
795 o.nextPageToken = "foo"; 797 o.nextPageToken = "foo";
796 } 798 }
797 buildCounterFileList--; 799 buildCounterFileList--;
798 return o; 800 return o;
799 } 801 }
800 802
801 checkFileList(api.FileList o) { 803 checkFileList(api.FileList o) {
802 buildCounterFileList++; 804 buildCounterFileList++;
803 if (buildCounterFileList < 3) { 805 if (buildCounterFileList < 3) {
804 checkUnnamed1817(o.files); 806 checkUnnamed1832(o.files);
805 unittest.expect(o.kind, unittest.equals('foo')); 807 unittest.expect(o.kind, unittest.equals('foo'));
806 unittest.expect(o.nextPageToken, unittest.equals('foo')); 808 unittest.expect(o.nextPageToken, unittest.equals('foo'));
807 } 809 }
808 buildCounterFileList--; 810 buildCounterFileList--;
809 } 811 }
810 812
811 buildUnnamed1818() { 813 buildUnnamed1833() {
812 var o = new core.List<core.String>(); 814 var o = new core.List<core.String>();
813 o.add("foo"); 815 o.add("foo");
814 o.add("foo"); 816 o.add("foo");
815 return o; 817 return o;
816 } 818 }
817 819
818 checkUnnamed1818(core.List<core.String> o) { 820 checkUnnamed1833(core.List<core.String> o) {
819 unittest.expect(o, unittest.hasLength(2)); 821 unittest.expect(o, unittest.hasLength(2));
820 unittest.expect(o[0], unittest.equals('foo')); 822 unittest.expect(o[0], unittest.equals('foo'));
821 unittest.expect(o[1], unittest.equals('foo')); 823 unittest.expect(o[1], unittest.equals('foo'));
822 } 824 }
823 825
824 core.int buildCounterGeneratedIds = 0; 826 core.int buildCounterGeneratedIds = 0;
825 buildGeneratedIds() { 827 buildGeneratedIds() {
826 var o = new api.GeneratedIds(); 828 var o = new api.GeneratedIds();
827 buildCounterGeneratedIds++; 829 buildCounterGeneratedIds++;
828 if (buildCounterGeneratedIds < 3) { 830 if (buildCounterGeneratedIds < 3) {
829 o.ids = buildUnnamed1818(); 831 o.ids = buildUnnamed1833();
830 o.kind = "foo"; 832 o.kind = "foo";
831 o.space = "foo"; 833 o.space = "foo";
832 } 834 }
833 buildCounterGeneratedIds--; 835 buildCounterGeneratedIds--;
834 return o; 836 return o;
835 } 837 }
836 838
837 checkGeneratedIds(api.GeneratedIds o) { 839 checkGeneratedIds(api.GeneratedIds o) {
838 buildCounterGeneratedIds++; 840 buildCounterGeneratedIds++;
839 if (buildCounterGeneratedIds < 3) { 841 if (buildCounterGeneratedIds < 3) {
840 checkUnnamed1818(o.ids); 842 checkUnnamed1833(o.ids);
841 unittest.expect(o.kind, unittest.equals('foo')); 843 unittest.expect(o.kind, unittest.equals('foo'));
842 unittest.expect(o.space, unittest.equals('foo')); 844 unittest.expect(o.space, unittest.equals('foo'));
843 } 845 }
844 buildCounterGeneratedIds--; 846 buildCounterGeneratedIds--;
845 } 847 }
846 848
847 core.int buildCounterPermission = 0; 849 core.int buildCounterPermission = 0;
848 buildPermission() { 850 buildPermission() {
849 var o = new api.Permission(); 851 var o = new api.Permission();
850 buildCounterPermission++; 852 buildCounterPermission++;
(...skipping 23 matching lines...) Expand all
874 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 876 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
875 unittest.expect(o.id, unittest.equals('foo')); 877 unittest.expect(o.id, unittest.equals('foo'));
876 unittest.expect(o.kind, unittest.equals('foo')); 878 unittest.expect(o.kind, unittest.equals('foo'));
877 unittest.expect(o.photoLink, unittest.equals('foo')); 879 unittest.expect(o.photoLink, unittest.equals('foo'));
878 unittest.expect(o.role, unittest.equals('foo')); 880 unittest.expect(o.role, unittest.equals('foo'));
879 unittest.expect(o.type, unittest.equals('foo')); 881 unittest.expect(o.type, unittest.equals('foo'));
880 } 882 }
881 buildCounterPermission--; 883 buildCounterPermission--;
882 } 884 }
883 885
884 buildUnnamed1819() { 886 buildUnnamed1834() {
885 var o = new core.List<api.Permission>(); 887 var o = new core.List<api.Permission>();
886 o.add(buildPermission()); 888 o.add(buildPermission());
887 o.add(buildPermission()); 889 o.add(buildPermission());
888 return o; 890 return o;
889 } 891 }
890 892
891 checkUnnamed1819(core.List<api.Permission> o) { 893 checkUnnamed1834(core.List<api.Permission> o) {
892 unittest.expect(o, unittest.hasLength(2)); 894 unittest.expect(o, unittest.hasLength(2));
893 checkPermission(o[0]); 895 checkPermission(o[0]);
894 checkPermission(o[1]); 896 checkPermission(o[1]);
895 } 897 }
896 898
897 core.int buildCounterPermissionList = 0; 899 core.int buildCounterPermissionList = 0;
898 buildPermissionList() { 900 buildPermissionList() {
899 var o = new api.PermissionList(); 901 var o = new api.PermissionList();
900 buildCounterPermissionList++; 902 buildCounterPermissionList++;
901 if (buildCounterPermissionList < 3) { 903 if (buildCounterPermissionList < 3) {
902 o.kind = "foo"; 904 o.kind = "foo";
903 o.permissions = buildUnnamed1819(); 905 o.permissions = buildUnnamed1834();
904 } 906 }
905 buildCounterPermissionList--; 907 buildCounterPermissionList--;
906 return o; 908 return o;
907 } 909 }
908 910
909 checkPermissionList(api.PermissionList o) { 911 checkPermissionList(api.PermissionList o) {
910 buildCounterPermissionList++; 912 buildCounterPermissionList++;
911 if (buildCounterPermissionList < 3) { 913 if (buildCounterPermissionList < 3) {
912 unittest.expect(o.kind, unittest.equals('foo')); 914 unittest.expect(o.kind, unittest.equals('foo'));
913 checkUnnamed1819(o.permissions); 915 checkUnnamed1834(o.permissions);
914 } 916 }
915 buildCounterPermissionList--; 917 buildCounterPermissionList--;
916 } 918 }
917 919
918 core.int buildCounterReply = 0; 920 core.int buildCounterReply = 0;
919 buildReply() { 921 buildReply() {
920 var o = new api.Reply(); 922 var o = new api.Reply();
921 buildCounterReply++; 923 buildCounterReply++;
922 if (buildCounterReply < 3) { 924 if (buildCounterReply < 3) {
923 o.action = "foo"; 925 o.action = "foo";
(...skipping 19 matching lines...) Expand all
943 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 945 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
944 unittest.expect(o.deleted, unittest.isTrue); 946 unittest.expect(o.deleted, unittest.isTrue);
945 unittest.expect(o.htmlContent, unittest.equals('foo')); 947 unittest.expect(o.htmlContent, unittest.equals('foo'));
946 unittest.expect(o.id, unittest.equals('foo')); 948 unittest.expect(o.id, unittest.equals('foo'));
947 unittest.expect(o.kind, unittest.equals('foo')); 949 unittest.expect(o.kind, unittest.equals('foo'));
948 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 950 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
949 } 951 }
950 buildCounterReply--; 952 buildCounterReply--;
951 } 953 }
952 954
953 buildUnnamed1820() { 955 buildUnnamed1835() {
954 var o = new core.List<api.Reply>(); 956 var o = new core.List<api.Reply>();
955 o.add(buildReply()); 957 o.add(buildReply());
956 o.add(buildReply()); 958 o.add(buildReply());
957 return o; 959 return o;
958 } 960 }
959 961
960 checkUnnamed1820(core.List<api.Reply> o) { 962 checkUnnamed1835(core.List<api.Reply> o) {
961 unittest.expect(o, unittest.hasLength(2)); 963 unittest.expect(o, unittest.hasLength(2));
962 checkReply(o[0]); 964 checkReply(o[0]);
963 checkReply(o[1]); 965 checkReply(o[1]);
964 } 966 }
965 967
966 core.int buildCounterReplyList = 0; 968 core.int buildCounterReplyList = 0;
967 buildReplyList() { 969 buildReplyList() {
968 var o = new api.ReplyList(); 970 var o = new api.ReplyList();
969 buildCounterReplyList++; 971 buildCounterReplyList++;
970 if (buildCounterReplyList < 3) { 972 if (buildCounterReplyList < 3) {
971 o.kind = "foo"; 973 o.kind = "foo";
972 o.nextPageToken = "foo"; 974 o.nextPageToken = "foo";
973 o.replies = buildUnnamed1820(); 975 o.replies = buildUnnamed1835();
974 } 976 }
975 buildCounterReplyList--; 977 buildCounterReplyList--;
976 return o; 978 return o;
977 } 979 }
978 980
979 checkReplyList(api.ReplyList o) { 981 checkReplyList(api.ReplyList o) {
980 buildCounterReplyList++; 982 buildCounterReplyList++;
981 if (buildCounterReplyList < 3) { 983 if (buildCounterReplyList < 3) {
982 unittest.expect(o.kind, unittest.equals('foo')); 984 unittest.expect(o.kind, unittest.equals('foo'));
983 unittest.expect(o.nextPageToken, unittest.equals('foo')); 985 unittest.expect(o.nextPageToken, unittest.equals('foo'));
984 checkUnnamed1820(o.replies); 986 checkUnnamed1835(o.replies);
985 } 987 }
986 buildCounterReplyList--; 988 buildCounterReplyList--;
987 } 989 }
988 990
989 core.int buildCounterRevision = 0; 991 core.int buildCounterRevision = 0;
990 buildRevision() { 992 buildRevision() {
991 var o = new api.Revision(); 993 var o = new api.Revision();
992 buildCounterRevision++; 994 buildCounterRevision++;
993 if (buildCounterRevision < 3) { 995 if (buildCounterRevision < 3) {
994 o.id = "foo"; 996 o.id = "foo";
(...skipping 25 matching lines...) Expand all
1020 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1022 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1021 unittest.expect(o.originalFilename, unittest.equals('foo')); 1023 unittest.expect(o.originalFilename, unittest.equals('foo'));
1022 unittest.expect(o.publishAuto, unittest.isTrue); 1024 unittest.expect(o.publishAuto, unittest.isTrue);
1023 unittest.expect(o.published, unittest.isTrue); 1025 unittest.expect(o.published, unittest.isTrue);
1024 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1026 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1025 unittest.expect(o.size, unittest.equals('foo')); 1027 unittest.expect(o.size, unittest.equals('foo'));
1026 } 1028 }
1027 buildCounterRevision--; 1029 buildCounterRevision--;
1028 } 1030 }
1029 1031
1030 buildUnnamed1821() { 1032 buildUnnamed1836() {
1031 var o = new core.List<api.Revision>(); 1033 var o = new core.List<api.Revision>();
1032 o.add(buildRevision()); 1034 o.add(buildRevision());
1033 o.add(buildRevision()); 1035 o.add(buildRevision());
1034 return o; 1036 return o;
1035 } 1037 }
1036 1038
1037 checkUnnamed1821(core.List<api.Revision> o) { 1039 checkUnnamed1836(core.List<api.Revision> o) {
1038 unittest.expect(o, unittest.hasLength(2)); 1040 unittest.expect(o, unittest.hasLength(2));
1039 checkRevision(o[0]); 1041 checkRevision(o[0]);
1040 checkRevision(o[1]); 1042 checkRevision(o[1]);
1041 } 1043 }
1042 1044
1043 core.int buildCounterRevisionList = 0; 1045 core.int buildCounterRevisionList = 0;
1044 buildRevisionList() { 1046 buildRevisionList() {
1045 var o = new api.RevisionList(); 1047 var o = new api.RevisionList();
1046 buildCounterRevisionList++; 1048 buildCounterRevisionList++;
1047 if (buildCounterRevisionList < 3) { 1049 if (buildCounterRevisionList < 3) {
1048 o.kind = "foo"; 1050 o.kind = "foo";
1049 o.revisions = buildUnnamed1821(); 1051 o.nextPageToken = "foo";
1052 o.revisions = buildUnnamed1836();
1050 } 1053 }
1051 buildCounterRevisionList--; 1054 buildCounterRevisionList--;
1052 return o; 1055 return o;
1053 } 1056 }
1054 1057
1055 checkRevisionList(api.RevisionList o) { 1058 checkRevisionList(api.RevisionList o) {
1056 buildCounterRevisionList++; 1059 buildCounterRevisionList++;
1057 if (buildCounterRevisionList < 3) { 1060 if (buildCounterRevisionList < 3) {
1058 unittest.expect(o.kind, unittest.equals('foo')); 1061 unittest.expect(o.kind, unittest.equals('foo'));
1059 checkUnnamed1821(o.revisions); 1062 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1063 checkUnnamed1836(o.revisions);
1060 } 1064 }
1061 buildCounterRevisionList--; 1065 buildCounterRevisionList--;
1062 } 1066 }
1063 1067
1064 core.int buildCounterStartPageToken = 0; 1068 core.int buildCounterStartPageToken = 0;
1065 buildStartPageToken() { 1069 buildStartPageToken() {
1066 var o = new api.StartPageToken(); 1070 var o = new api.StartPageToken();
1067 buildCounterStartPageToken++; 1071 buildCounterStartPageToken++;
1068 if (buildCounterStartPageToken < 3) { 1072 if (buildCounterStartPageToken < 3) {
1069 o.kind = "foo"; 1073 o.kind = "foo";
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
3201 res.get(arg_fileId, arg_revisionId, acknowledgeAbuse: arg_acknowledgeAbuse ).then(unittest.expectAsync(((api.Revision response) { 3205 res.get(arg_fileId, arg_revisionId, acknowledgeAbuse: arg_acknowledgeAbuse ).then(unittest.expectAsync(((api.Revision response) {
3202 checkRevision(response); 3206 checkRevision(response);
3203 }))); 3207 })));
3204 }); 3208 });
3205 3209
3206 unittest.test("method--list", () { 3210 unittest.test("method--list", () {
3207 3211
3208 var mock = new HttpServerMock(); 3212 var mock = new HttpServerMock();
3209 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; 3213 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions;
3210 var arg_fileId = "foo"; 3214 var arg_fileId = "foo";
3215 var arg_pageSize = 42;
3216 var arg_pageToken = "foo";
3211 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3217 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3212 var path = (req.url).path; 3218 var path = (req.url).path;
3213 var pathOffset = 0; 3219 var pathOffset = 0;
3214 var index; 3220 var index;
3215 var subPart; 3221 var subPart;
3216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3222 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3217 pathOffset += 1; 3223 pathOffset += 1;
3218 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("drive/v3/")); 3224 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("drive/v3/"));
3219 pathOffset += 9; 3225 pathOffset += 9;
3220 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("files/")); 3226 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("files/"));
(...skipping 15 matching lines...) Expand all
3236 if (n == "false") return false; 3242 if (n == "false") return false;
3237 if (n == null) return null; 3243 if (n == null) return null;
3238 throw new core.ArgumentError("Invalid boolean: $n"); 3244 throw new core.ArgumentError("Invalid boolean: $n");
3239 } 3245 }
3240 if (query.length > 0) { 3246 if (query.length > 0) {
3241 for (var part in query.split("&")) { 3247 for (var part in query.split("&")) {
3242 var keyvalue = part.split("="); 3248 var keyvalue = part.split("=");
3243 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3249 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3244 } 3250 }
3245 } 3251 }
3252 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3253 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3246 3254
3247 3255
3248 var h = { 3256 var h = {
3249 "content-type" : "application/json; charset=utf-8", 3257 "content-type" : "application/json; charset=utf-8",
3250 }; 3258 };
3251 var resp = convert.JSON.encode(buildRevisionList()); 3259 var resp = convert.JSON.encode(buildRevisionList());
3252 return new async.Future.value(stringResponse(200, h, resp)); 3260 return new async.Future.value(stringResponse(200, h, resp));
3253 }), true); 3261 }), true);
3254 res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response ) { 3262 res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.RevisionList response) {
3255 checkRevisionList(response); 3263 checkRevisionList(response);
3256 }))); 3264 })));
3257 }); 3265 });
3258 3266
3259 unittest.test("method--update", () { 3267 unittest.test("method--update", () {
3260 3268
3261 var mock = new HttpServerMock(); 3269 var mock = new HttpServerMock();
3262 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; 3270 api.RevisionsResourceApi res = new api.DriveApi(mock).revisions;
3263 var arg_request = buildRevision(); 3271 var arg_request = buildRevision();
3264 var arg_fileId = "foo"; 3272 var arg_fileId = "foo";
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3315 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 3323 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
3316 checkRevision(response); 3324 checkRevision(response);
3317 }))); 3325 })));
3318 }); 3326 });
3319 3327
3320 }); 3328 });
3321 3329
3322 3330
3323 } 3331 }
3324 3332
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