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

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

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View 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 buildUnnamed2175() { 54 buildUnnamed1665() {
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 checkUnnamed2175(core.List<core.String> o) { 61 checkUnnamed1665(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 buildUnnamed2176() { 67 buildUnnamed1666() {
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"] = buildUnnamed2175(); 69 o["x"] = buildUnnamed1665();
70 o["y"] = buildUnnamed2175(); 70 o["y"] = buildUnnamed1665();
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed2176(core.Map<core.String, core.List<core.String>> o) { 74 checkUnnamed1666(core.Map<core.String, core.List<core.String>> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 checkUnnamed2175(o["x"]); 76 checkUnnamed1665(o["x"]);
77 checkUnnamed2175(o["y"]); 77 checkUnnamed1665(o["y"]);
78 } 78 }
79 79
80 buildUnnamed2177() { 80 buildUnnamed1667() {
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 checkUnnamed2177(core.List<core.String> o) { 87 checkUnnamed1667(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 buildUnnamed2178() { 93 buildUnnamed1668() {
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 checkUnnamed2178(core.List<core.String> o) { 100 checkUnnamed1668(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 buildUnnamed2179() { 106 buildUnnamed1669() {
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"] = buildUnnamed2178(); 108 o["x"] = buildUnnamed1668();
109 o["y"] = buildUnnamed2178(); 109 o["y"] = buildUnnamed1668();
110 return o; 110 return o;
111 } 111 }
112 112
113 checkUnnamed2179(core.Map<core.String, core.List<core.String>> o) { 113 checkUnnamed1669(core.Map<core.String, core.List<core.String>> o) {
114 unittest.expect(o, unittest.hasLength(2)); 114 unittest.expect(o, unittest.hasLength(2));
115 checkUnnamed2178(o["x"]); 115 checkUnnamed1668(o["x"]);
116 checkUnnamed2178(o["y"]); 116 checkUnnamed1668(o["y"]);
117 } 117 }
118 118
119 buildUnnamed2180() { 119 buildUnnamed1670() {
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 checkUnnamed2180(core.Map<core.String, core.String> o) { 126 checkUnnamed1670(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 = buildUnnamed2176(); 163 o.exportFormats = buildUnnamed1666();
164 o.folderColorPalette = buildUnnamed2177(); 164 o.folderColorPalette = buildUnnamed1667();
165 o.importFormats = buildUnnamed2179(); 165 o.importFormats = buildUnnamed1669();
166 o.kind = "foo"; 166 o.kind = "foo";
167 o.maxImportSizes = buildUnnamed2180(); 167 o.maxImportSizes = buildUnnamed1670();
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 checkUnnamed2176(o.exportFormats); 180 checkUnnamed1666(o.exportFormats);
181 checkUnnamed2177(o.folderColorPalette); 181 checkUnnamed1667(o.folderColorPalette);
182 checkUnnamed2179(o.importFormats); 182 checkUnnamed1669(o.importFormats);
183 unittest.expect(o.kind, unittest.equals('foo')); 183 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed2180(o.maxImportSizes); 184 checkUnnamed1670(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 buildUnnamed2181() { 219 buildUnnamed1671() {
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 checkUnnamed2181(core.List<api.Change> o) { 226 checkUnnamed1671(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 = buildUnnamed2181(); 237 o.changes = buildUnnamed1671();
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 checkUnnamed2181(o.changes); 249 checkUnnamed1671(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 buildUnnamed2182() { 257 buildUnnamed1672() {
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 checkUnnamed2182(core.Map<core.String, core.String> o) { 264 checkUnnamed1672(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 = buildUnnamed2182(); 279 o.params = buildUnnamed1672();
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 checkUnnamed2182(o.params); 297 checkUnnamed1672(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 buildUnnamed2183() { 328 buildUnnamed1673() {
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 checkUnnamed2183(core.List<api.Reply> o) { 335 checkUnnamed1673(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 = buildUnnamed2183(); 356 o.replies = buildUnnamed1673();
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 checkUnnamed2183(o.replies); 376 checkUnnamed1673(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 buildUnnamed2184() { 382 buildUnnamed1674() {
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 checkUnnamed2184(core.List<api.Comment> o) { 389 checkUnnamed1674(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 = buildUnnamed2184(); 400 o.comments = buildUnnamed1674();
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 checkUnnamed2184(o.comments); 411 checkUnnamed1674(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 buildUnnamed2185() { 418 buildUnnamed1675() {
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 checkUnnamed2185(core.Map<core.String, core.String> o) { 425 checkUnnamed1675(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 buildUnnamed2186() { 582 buildUnnamed1676() {
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 checkUnnamed2186(core.List<api.User> o) { 589 checkUnnamed1676(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 buildUnnamed2187() { 595 buildUnnamed1677() {
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 checkUnnamed2187(core.List<core.String> o) { 602 checkUnnamed1677(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 buildUnnamed2188() { 608 buildUnnamed1678() {
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 checkUnnamed2188(core.List<api.Permission> o) { 615 checkUnnamed1678(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 buildUnnamed2189() { 621 buildUnnamed1679() {
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 checkUnnamed2189(core.Map<core.String, core.String> o) { 628 checkUnnamed1679(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 buildUnnamed2190() { 634 buildUnnamed1680() {
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 checkUnnamed2190(core.List<core.String> o) { 641 checkUnnamed1680(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 = buildUnnamed2185(); 675 o.appProperties = buildUnnamed1675();
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.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 693 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
694 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 694 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
695 o.name = "foo"; 695 o.name = "foo";
696 o.originalFilename = "foo"; 696 o.originalFilename = "foo";
697 o.ownedByMe = true; 697 o.ownedByMe = true;
698 o.owners = buildUnnamed2186(); 698 o.owners = buildUnnamed1676();
699 o.parents = buildUnnamed2187(); 699 o.parents = buildUnnamed1677();
700 o.permissions = buildUnnamed2188(); 700 o.permissions = buildUnnamed1678();
701 o.properties = buildUnnamed2189(); 701 o.properties = buildUnnamed1679();
702 o.quotaBytesUsed = "foo"; 702 o.quotaBytesUsed = "foo";
703 o.shared = true; 703 o.shared = true;
704 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 704 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
705 o.sharingUser = buildUser(); 705 o.sharingUser = buildUser();
706 o.size = "foo"; 706 o.size = "foo";
707 o.spaces = buildUnnamed2190(); 707 o.spaces = buildUnnamed1680();
708 o.starred = true; 708 o.starred = true;
709 o.thumbnailLink = "foo"; 709 o.thumbnailLink = "foo";
710 o.trashed = true; 710 o.trashed = true;
711 o.version = "foo"; 711 o.version = "foo";
712 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 712 o.videoMediaMetadata = buildFileVideoMediaMetadata();
713 o.viewedByMe = true; 713 o.viewedByMe = true;
714 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 714 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
715 o.viewersCanCopyContent = true; 715 o.viewersCanCopyContent = true;
716 o.webContentLink = "foo"; 716 o.webContentLink = "foo";
717 o.webViewLink = "foo"; 717 o.webViewLink = "foo";
718 o.writersCanShare = true; 718 o.writersCanShare = true;
719 } 719 }
720 buildCounterFile--; 720 buildCounterFile--;
721 return o; 721 return o;
722 } 722 }
723 723
724 checkFile(api.File o) { 724 checkFile(api.File o) {
725 buildCounterFile++; 725 buildCounterFile++;
726 if (buildCounterFile < 3) { 726 if (buildCounterFile < 3) {
727 checkUnnamed2185(o.appProperties); 727 checkUnnamed1675(o.appProperties);
728 checkFileCapabilities(o.capabilities); 728 checkFileCapabilities(o.capabilities);
729 checkFileContentHints(o.contentHints); 729 checkFileContentHints(o.contentHints);
730 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 730 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
731 unittest.expect(o.description, unittest.equals('foo')); 731 unittest.expect(o.description, unittest.equals('foo'));
732 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 732 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
733 unittest.expect(o.fileExtension, unittest.equals('foo')); 733 unittest.expect(o.fileExtension, unittest.equals('foo'));
734 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 734 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
735 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 735 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
736 unittest.expect(o.headRevisionId, unittest.equals('foo')); 736 unittest.expect(o.headRevisionId, unittest.equals('foo'));
737 unittest.expect(o.iconLink, unittest.equals('foo')); 737 unittest.expect(o.iconLink, unittest.equals('foo'));
738 unittest.expect(o.id, unittest.equals('foo')); 738 unittest.expect(o.id, unittest.equals('foo'));
739 checkFileImageMediaMetadata(o.imageMediaMetadata); 739 checkFileImageMediaMetadata(o.imageMediaMetadata);
740 unittest.expect(o.isAppAuthorized, unittest.isTrue); 740 unittest.expect(o.isAppAuthorized, unittest.isTrue);
741 unittest.expect(o.kind, unittest.equals('foo')); 741 unittest.expect(o.kind, unittest.equals('foo'));
742 checkUser(o.lastModifyingUser); 742 checkUser(o.lastModifyingUser);
743 unittest.expect(o.md5Checksum, unittest.equals('foo')); 743 unittest.expect(o.md5Checksum, unittest.equals('foo'));
744 unittest.expect(o.mimeType, unittest.equals('foo')); 744 unittest.expect(o.mimeType, unittest.equals('foo'));
745 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 745 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"))); 746 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
747 unittest.expect(o.name, unittest.equals('foo')); 747 unittest.expect(o.name, unittest.equals('foo'));
748 unittest.expect(o.originalFilename, unittest.equals('foo')); 748 unittest.expect(o.originalFilename, unittest.equals('foo'));
749 unittest.expect(o.ownedByMe, unittest.isTrue); 749 unittest.expect(o.ownedByMe, unittest.isTrue);
750 checkUnnamed2186(o.owners); 750 checkUnnamed1676(o.owners);
751 checkUnnamed2187(o.parents); 751 checkUnnamed1677(o.parents);
752 checkUnnamed2188(o.permissions); 752 checkUnnamed1678(o.permissions);
753 checkUnnamed2189(o.properties); 753 checkUnnamed1679(o.properties);
754 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 754 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
755 unittest.expect(o.shared, unittest.isTrue); 755 unittest.expect(o.shared, unittest.isTrue);
756 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 756 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
757 checkUser(o.sharingUser); 757 checkUser(o.sharingUser);
758 unittest.expect(o.size, unittest.equals('foo')); 758 unittest.expect(o.size, unittest.equals('foo'));
759 checkUnnamed2190(o.spaces); 759 checkUnnamed1680(o.spaces);
760 unittest.expect(o.starred, unittest.isTrue); 760 unittest.expect(o.starred, unittest.isTrue);
761 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 761 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
762 unittest.expect(o.trashed, unittest.isTrue); 762 unittest.expect(o.trashed, unittest.isTrue);
763 unittest.expect(o.version, unittest.equals('foo')); 763 unittest.expect(o.version, unittest.equals('foo'));
764 checkFileVideoMediaMetadata(o.videoMediaMetadata); 764 checkFileVideoMediaMetadata(o.videoMediaMetadata);
765 unittest.expect(o.viewedByMe, unittest.isTrue); 765 unittest.expect(o.viewedByMe, unittest.isTrue);
766 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 766 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
767 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); 767 unittest.expect(o.viewersCanCopyContent, unittest.isTrue);
768 unittest.expect(o.webContentLink, unittest.equals('foo')); 768 unittest.expect(o.webContentLink, unittest.equals('foo'));
769 unittest.expect(o.webViewLink, unittest.equals('foo')); 769 unittest.expect(o.webViewLink, unittest.equals('foo'));
770 unittest.expect(o.writersCanShare, unittest.isTrue); 770 unittest.expect(o.writersCanShare, unittest.isTrue);
771 } 771 }
772 buildCounterFile--; 772 buildCounterFile--;
773 } 773 }
774 774
775 buildUnnamed2191() { 775 buildUnnamed1681() {
776 var o = new core.List<api.File>(); 776 var o = new core.List<api.File>();
777 o.add(buildFile()); 777 o.add(buildFile());
778 o.add(buildFile()); 778 o.add(buildFile());
779 return o; 779 return o;
780 } 780 }
781 781
782 checkUnnamed2191(core.List<api.File> o) { 782 checkUnnamed1681(core.List<api.File> o) {
783 unittest.expect(o, unittest.hasLength(2)); 783 unittest.expect(o, unittest.hasLength(2));
784 checkFile(o[0]); 784 checkFile(o[0]);
785 checkFile(o[1]); 785 checkFile(o[1]);
786 } 786 }
787 787
788 core.int buildCounterFileList = 0; 788 core.int buildCounterFileList = 0;
789 buildFileList() { 789 buildFileList() {
790 var o = new api.FileList(); 790 var o = new api.FileList();
791 buildCounterFileList++; 791 buildCounterFileList++;
792 if (buildCounterFileList < 3) { 792 if (buildCounterFileList < 3) {
793 o.files = buildUnnamed2191(); 793 o.files = buildUnnamed1681();
794 o.kind = "foo"; 794 o.kind = "foo";
795 o.nextPageToken = "foo"; 795 o.nextPageToken = "foo";
796 } 796 }
797 buildCounterFileList--; 797 buildCounterFileList--;
798 return o; 798 return o;
799 } 799 }
800 800
801 checkFileList(api.FileList o) { 801 checkFileList(api.FileList o) {
802 buildCounterFileList++; 802 buildCounterFileList++;
803 if (buildCounterFileList < 3) { 803 if (buildCounterFileList < 3) {
804 checkUnnamed2191(o.files); 804 checkUnnamed1681(o.files);
805 unittest.expect(o.kind, unittest.equals('foo')); 805 unittest.expect(o.kind, unittest.equals('foo'));
806 unittest.expect(o.nextPageToken, unittest.equals('foo')); 806 unittest.expect(o.nextPageToken, unittest.equals('foo'));
807 } 807 }
808 buildCounterFileList--; 808 buildCounterFileList--;
809 } 809 }
810 810
811 buildUnnamed2192() { 811 buildUnnamed1682() {
812 var o = new core.List<core.String>(); 812 var o = new core.List<core.String>();
813 o.add("foo"); 813 o.add("foo");
814 o.add("foo"); 814 o.add("foo");
815 return o; 815 return o;
816 } 816 }
817 817
818 checkUnnamed2192(core.List<core.String> o) { 818 checkUnnamed1682(core.List<core.String> o) {
819 unittest.expect(o, unittest.hasLength(2)); 819 unittest.expect(o, unittest.hasLength(2));
820 unittest.expect(o[0], unittest.equals('foo')); 820 unittest.expect(o[0], unittest.equals('foo'));
821 unittest.expect(o[1], unittest.equals('foo')); 821 unittest.expect(o[1], unittest.equals('foo'));
822 } 822 }
823 823
824 core.int buildCounterGeneratedIds = 0; 824 core.int buildCounterGeneratedIds = 0;
825 buildGeneratedIds() { 825 buildGeneratedIds() {
826 var o = new api.GeneratedIds(); 826 var o = new api.GeneratedIds();
827 buildCounterGeneratedIds++; 827 buildCounterGeneratedIds++;
828 if (buildCounterGeneratedIds < 3) { 828 if (buildCounterGeneratedIds < 3) {
829 o.ids = buildUnnamed2192(); 829 o.ids = buildUnnamed1682();
830 o.kind = "foo"; 830 o.kind = "foo";
831 o.space = "foo"; 831 o.space = "foo";
832 } 832 }
833 buildCounterGeneratedIds--; 833 buildCounterGeneratedIds--;
834 return o; 834 return o;
835 } 835 }
836 836
837 checkGeneratedIds(api.GeneratedIds o) { 837 checkGeneratedIds(api.GeneratedIds o) {
838 buildCounterGeneratedIds++; 838 buildCounterGeneratedIds++;
839 if (buildCounterGeneratedIds < 3) { 839 if (buildCounterGeneratedIds < 3) {
840 checkUnnamed2192(o.ids); 840 checkUnnamed1682(o.ids);
841 unittest.expect(o.kind, unittest.equals('foo')); 841 unittest.expect(o.kind, unittest.equals('foo'));
842 unittest.expect(o.space, unittest.equals('foo')); 842 unittest.expect(o.space, unittest.equals('foo'));
843 } 843 }
844 buildCounterGeneratedIds--; 844 buildCounterGeneratedIds--;
845 } 845 }
846 846
847 core.int buildCounterPermission = 0; 847 core.int buildCounterPermission = 0;
848 buildPermission() { 848 buildPermission() {
849 var o = new api.Permission(); 849 var o = new api.Permission();
850 buildCounterPermission++; 850 buildCounterPermission++;
851 if (buildCounterPermission < 3) { 851 if (buildCounterPermission < 3) {
852 o.allowFileDiscovery = true; 852 o.allowFileDiscovery = true;
853 o.displayName = "foo"; 853 o.displayName = "foo";
854 o.domain = "foo"; 854 o.domain = "foo";
855 o.emailAddress = "foo"; 855 o.emailAddress = "foo";
856 o.expirationTime = core.DateTime.parse("2002-02-27T14:01:02");
856 o.id = "foo"; 857 o.id = "foo";
857 o.kind = "foo"; 858 o.kind = "foo";
858 o.photoLink = "foo"; 859 o.photoLink = "foo";
859 o.role = "foo"; 860 o.role = "foo";
860 o.type = "foo"; 861 o.type = "foo";
861 } 862 }
862 buildCounterPermission--; 863 buildCounterPermission--;
863 return o; 864 return o;
864 } 865 }
865 866
866 checkPermission(api.Permission o) { 867 checkPermission(api.Permission o) {
867 buildCounterPermission++; 868 buildCounterPermission++;
868 if (buildCounterPermission < 3) { 869 if (buildCounterPermission < 3) {
869 unittest.expect(o.allowFileDiscovery, unittest.isTrue); 870 unittest.expect(o.allowFileDiscovery, unittest.isTrue);
870 unittest.expect(o.displayName, unittest.equals('foo')); 871 unittest.expect(o.displayName, unittest.equals('foo'));
871 unittest.expect(o.domain, unittest.equals('foo')); 872 unittest.expect(o.domain, unittest.equals('foo'));
872 unittest.expect(o.emailAddress, unittest.equals('foo')); 873 unittest.expect(o.emailAddress, unittest.equals('foo'));
874 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
873 unittest.expect(o.id, unittest.equals('foo')); 875 unittest.expect(o.id, unittest.equals('foo'));
874 unittest.expect(o.kind, unittest.equals('foo')); 876 unittest.expect(o.kind, unittest.equals('foo'));
875 unittest.expect(o.photoLink, unittest.equals('foo')); 877 unittest.expect(o.photoLink, unittest.equals('foo'));
876 unittest.expect(o.role, unittest.equals('foo')); 878 unittest.expect(o.role, unittest.equals('foo'));
877 unittest.expect(o.type, unittest.equals('foo')); 879 unittest.expect(o.type, unittest.equals('foo'));
878 } 880 }
879 buildCounterPermission--; 881 buildCounterPermission--;
880 } 882 }
881 883
882 buildUnnamed2193() { 884 buildUnnamed1683() {
883 var o = new core.List<api.Permission>(); 885 var o = new core.List<api.Permission>();
884 o.add(buildPermission()); 886 o.add(buildPermission());
885 o.add(buildPermission()); 887 o.add(buildPermission());
886 return o; 888 return o;
887 } 889 }
888 890
889 checkUnnamed2193(core.List<api.Permission> o) { 891 checkUnnamed1683(core.List<api.Permission> o) {
890 unittest.expect(o, unittest.hasLength(2)); 892 unittest.expect(o, unittest.hasLength(2));
891 checkPermission(o[0]); 893 checkPermission(o[0]);
892 checkPermission(o[1]); 894 checkPermission(o[1]);
893 } 895 }
894 896
895 core.int buildCounterPermissionList = 0; 897 core.int buildCounterPermissionList = 0;
896 buildPermissionList() { 898 buildPermissionList() {
897 var o = new api.PermissionList(); 899 var o = new api.PermissionList();
898 buildCounterPermissionList++; 900 buildCounterPermissionList++;
899 if (buildCounterPermissionList < 3) { 901 if (buildCounterPermissionList < 3) {
900 o.kind = "foo"; 902 o.kind = "foo";
901 o.permissions = buildUnnamed2193(); 903 o.permissions = buildUnnamed1683();
902 } 904 }
903 buildCounterPermissionList--; 905 buildCounterPermissionList--;
904 return o; 906 return o;
905 } 907 }
906 908
907 checkPermissionList(api.PermissionList o) { 909 checkPermissionList(api.PermissionList o) {
908 buildCounterPermissionList++; 910 buildCounterPermissionList++;
909 if (buildCounterPermissionList < 3) { 911 if (buildCounterPermissionList < 3) {
910 unittest.expect(o.kind, unittest.equals('foo')); 912 unittest.expect(o.kind, unittest.equals('foo'));
911 checkUnnamed2193(o.permissions); 913 checkUnnamed1683(o.permissions);
912 } 914 }
913 buildCounterPermissionList--; 915 buildCounterPermissionList--;
914 } 916 }
915 917
916 core.int buildCounterReply = 0; 918 core.int buildCounterReply = 0;
917 buildReply() { 919 buildReply() {
918 var o = new api.Reply(); 920 var o = new api.Reply();
919 buildCounterReply++; 921 buildCounterReply++;
920 if (buildCounterReply < 3) { 922 if (buildCounterReply < 3) {
921 o.action = "foo"; 923 o.action = "foo";
(...skipping 19 matching lines...) Expand all
941 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 943 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
942 unittest.expect(o.deleted, unittest.isTrue); 944 unittest.expect(o.deleted, unittest.isTrue);
943 unittest.expect(o.htmlContent, unittest.equals('foo')); 945 unittest.expect(o.htmlContent, unittest.equals('foo'));
944 unittest.expect(o.id, unittest.equals('foo')); 946 unittest.expect(o.id, unittest.equals('foo'));
945 unittest.expect(o.kind, unittest.equals('foo')); 947 unittest.expect(o.kind, unittest.equals('foo'));
946 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 948 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
947 } 949 }
948 buildCounterReply--; 950 buildCounterReply--;
949 } 951 }
950 952
951 buildUnnamed2194() { 953 buildUnnamed1684() {
952 var o = new core.List<api.Reply>(); 954 var o = new core.List<api.Reply>();
953 o.add(buildReply()); 955 o.add(buildReply());
954 o.add(buildReply()); 956 o.add(buildReply());
955 return o; 957 return o;
956 } 958 }
957 959
958 checkUnnamed2194(core.List<api.Reply> o) { 960 checkUnnamed1684(core.List<api.Reply> o) {
959 unittest.expect(o, unittest.hasLength(2)); 961 unittest.expect(o, unittest.hasLength(2));
960 checkReply(o[0]); 962 checkReply(o[0]);
961 checkReply(o[1]); 963 checkReply(o[1]);
962 } 964 }
963 965
964 core.int buildCounterReplyList = 0; 966 core.int buildCounterReplyList = 0;
965 buildReplyList() { 967 buildReplyList() {
966 var o = new api.ReplyList(); 968 var o = new api.ReplyList();
967 buildCounterReplyList++; 969 buildCounterReplyList++;
968 if (buildCounterReplyList < 3) { 970 if (buildCounterReplyList < 3) {
969 o.kind = "foo"; 971 o.kind = "foo";
970 o.nextPageToken = "foo"; 972 o.nextPageToken = "foo";
971 o.replies = buildUnnamed2194(); 973 o.replies = buildUnnamed1684();
972 } 974 }
973 buildCounterReplyList--; 975 buildCounterReplyList--;
974 return o; 976 return o;
975 } 977 }
976 978
977 checkReplyList(api.ReplyList o) { 979 checkReplyList(api.ReplyList o) {
978 buildCounterReplyList++; 980 buildCounterReplyList++;
979 if (buildCounterReplyList < 3) { 981 if (buildCounterReplyList < 3) {
980 unittest.expect(o.kind, unittest.equals('foo')); 982 unittest.expect(o.kind, unittest.equals('foo'));
981 unittest.expect(o.nextPageToken, unittest.equals('foo')); 983 unittest.expect(o.nextPageToken, unittest.equals('foo'));
982 checkUnnamed2194(o.replies); 984 checkUnnamed1684(o.replies);
983 } 985 }
984 buildCounterReplyList--; 986 buildCounterReplyList--;
985 } 987 }
986 988
987 core.int buildCounterRevision = 0; 989 core.int buildCounterRevision = 0;
988 buildRevision() { 990 buildRevision() {
989 var o = new api.Revision(); 991 var o = new api.Revision();
990 buildCounterRevision++; 992 buildCounterRevision++;
991 if (buildCounterRevision < 3) { 993 if (buildCounterRevision < 3) {
992 o.id = "foo"; 994 o.id = "foo";
(...skipping 25 matching lines...) Expand all
1018 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1020 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1019 unittest.expect(o.originalFilename, unittest.equals('foo')); 1021 unittest.expect(o.originalFilename, unittest.equals('foo'));
1020 unittest.expect(o.publishAuto, unittest.isTrue); 1022 unittest.expect(o.publishAuto, unittest.isTrue);
1021 unittest.expect(o.published, unittest.isTrue); 1023 unittest.expect(o.published, unittest.isTrue);
1022 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1024 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1023 unittest.expect(o.size, unittest.equals('foo')); 1025 unittest.expect(o.size, unittest.equals('foo'));
1024 } 1026 }
1025 buildCounterRevision--; 1027 buildCounterRevision--;
1026 } 1028 }
1027 1029
1028 buildUnnamed2195() { 1030 buildUnnamed1685() {
1029 var o = new core.List<api.Revision>(); 1031 var o = new core.List<api.Revision>();
1030 o.add(buildRevision()); 1032 o.add(buildRevision());
1031 o.add(buildRevision()); 1033 o.add(buildRevision());
1032 return o; 1034 return o;
1033 } 1035 }
1034 1036
1035 checkUnnamed2195(core.List<api.Revision> o) { 1037 checkUnnamed1685(core.List<api.Revision> o) {
1036 unittest.expect(o, unittest.hasLength(2)); 1038 unittest.expect(o, unittest.hasLength(2));
1037 checkRevision(o[0]); 1039 checkRevision(o[0]);
1038 checkRevision(o[1]); 1040 checkRevision(o[1]);
1039 } 1041 }
1040 1042
1041 core.int buildCounterRevisionList = 0; 1043 core.int buildCounterRevisionList = 0;
1042 buildRevisionList() { 1044 buildRevisionList() {
1043 var o = new api.RevisionList(); 1045 var o = new api.RevisionList();
1044 buildCounterRevisionList++; 1046 buildCounterRevisionList++;
1045 if (buildCounterRevisionList < 3) { 1047 if (buildCounterRevisionList < 3) {
1046 o.kind = "foo"; 1048 o.kind = "foo";
1047 o.revisions = buildUnnamed2195(); 1049 o.revisions = buildUnnamed1685();
1048 } 1050 }
1049 buildCounterRevisionList--; 1051 buildCounterRevisionList--;
1050 return o; 1052 return o;
1051 } 1053 }
1052 1054
1053 checkRevisionList(api.RevisionList o) { 1055 checkRevisionList(api.RevisionList o) {
1054 buildCounterRevisionList++; 1056 buildCounterRevisionList++;
1055 if (buildCounterRevisionList < 3) { 1057 if (buildCounterRevisionList < 3) {
1056 unittest.expect(o.kind, unittest.equals('foo')); 1058 unittest.expect(o.kind, unittest.equals('foo'));
1057 checkUnnamed2195(o.revisions); 1059 checkUnnamed1685(o.revisions);
1058 } 1060 }
1059 buildCounterRevisionList--; 1061 buildCounterRevisionList--;
1060 } 1062 }
1061 1063
1062 core.int buildCounterStartPageToken = 0; 1064 core.int buildCounterStartPageToken = 0;
1063 buildStartPageToken() { 1065 buildStartPageToken() {
1064 var o = new api.StartPageToken(); 1066 var o = new api.StartPageToken();
1065 buildCounterStartPageToken++; 1067 buildCounterStartPageToken++;
1066 if (buildCounterStartPageToken < 3) { 1068 if (buildCounterStartPageToken < 3) {
1067 o.kind = "foo"; 1069 o.kind = "foo";
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 }))); 2683 })));
2682 }); 2684 });
2683 2685
2684 unittest.test("method--update", () { 2686 unittest.test("method--update", () {
2685 2687
2686 var mock = new HttpServerMock(); 2688 var mock = new HttpServerMock();
2687 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; 2689 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
2688 var arg_request = buildPermission(); 2690 var arg_request = buildPermission();
2689 var arg_fileId = "foo"; 2691 var arg_fileId = "foo";
2690 var arg_permissionId = "foo"; 2692 var arg_permissionId = "foo";
2693 var arg_removeExpiration = true;
2691 var arg_transferOwnership = true; 2694 var arg_transferOwnership = true;
2692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2695 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2693 var obj = new api.Permission.fromJson(json); 2696 var obj = new api.Permission.fromJson(json);
2694 checkPermission(obj); 2697 checkPermission(obj);
2695 2698
2696 var path = (req.url).path; 2699 var path = (req.url).path;
2697 var pathOffset = 0; 2700 var pathOffset = 0;
2698 var index; 2701 var index;
2699 var subPart; 2702 var subPart;
2700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 22 matching lines...) Expand all
2723 if (n == "false") return false; 2726 if (n == "false") return false;
2724 if (n == null) return null; 2727 if (n == null) return null;
2725 throw new core.ArgumentError("Invalid boolean: $n"); 2728 throw new core.ArgumentError("Invalid boolean: $n");
2726 } 2729 }
2727 if (query.length > 0) { 2730 if (query.length > 0) {
2728 for (var part in query.split("&")) { 2731 for (var part in query.split("&")) {
2729 var keyvalue = part.split("="); 2732 var keyvalue = part.split("=");
2730 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2733 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2731 } 2734 }
2732 } 2735 }
2736 unittest.expect(queryMap["removeExpiration"].first, unittest.equals("$ar g_removeExpiration"));
2733 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership")); 2737 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership"));
2734 2738
2735 2739
2736 var h = { 2740 var h = {
2737 "content-type" : "application/json; charset=utf-8", 2741 "content-type" : "application/json; charset=utf-8",
2738 }; 2742 };
2739 var resp = convert.JSON.encode(buildPermission()); 2743 var resp = convert.JSON.encode(buildPermission());
2740 return new async.Future.value(stringResponse(200, h, resp)); 2744 return new async.Future.value(stringResponse(200, h, resp));
2741 }), true); 2745 }), true);
2742 res.update(arg_request, arg_fileId, arg_permissionId, transferOwnership: a rg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { 2746 res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: ar g_removeExpiration, transferOwnership: arg_transferOwnership).then(unittest.expe ctAsync(((api.Permission response) {
2743 checkPermission(response); 2747 checkPermission(response);
2744 }))); 2748 })));
2745 }); 2749 });
2746 2750
2747 }); 2751 });
2748 2752
2749 2753
2750 unittest.group("resource-RepliesResourceApi", () { 2754 unittest.group("resource-RepliesResourceApi", () {
2751 unittest.test("method--create", () { 2755 unittest.test("method--create", () {
2752 2756
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3311 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 3315 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
3312 checkRevision(response); 3316 checkRevision(response);
3313 }))); 3317 })));
3314 }); 3318 });
3315 3319
3316 }); 3320 });
3317 3321
3318 3322
3319 } 3323 }
3320 3324
OLDNEW
« no previous file with comments | « generated/googleapis/test/drive/v2_test.dart ('k') | generated/googleapis/test/firebaserules/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698