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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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 buildUnnamed1403() { 54 buildUnnamed1399() {
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 checkUnnamed1403(core.List<core.String> o) { 61 checkUnnamed1399(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 buildUnnamed1404() { 67 buildUnnamed1400() {
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"] = buildUnnamed1403(); 69 o["x"] = buildUnnamed1399();
70 o["y"] = buildUnnamed1403(); 70 o["y"] = buildUnnamed1399();
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1404(core.Map<core.String, core.List<core.String>> o) { 74 checkUnnamed1400(core.Map<core.String, core.List<core.String>> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 checkUnnamed1403(o["x"]); 76 checkUnnamed1399(o["x"]);
77 checkUnnamed1403(o["y"]); 77 checkUnnamed1399(o["y"]);
78 } 78 }
79 79
80 buildUnnamed1405() { 80 buildUnnamed1401() {
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 checkUnnamed1405(core.List<core.String> o) { 87 checkUnnamed1401(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 buildUnnamed1406() { 93 buildUnnamed1402() {
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 checkUnnamed1406(core.List<core.String> o) { 100 checkUnnamed1402(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 buildUnnamed1407() { 106 buildUnnamed1403() {
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"] = buildUnnamed1406(); 108 o["x"] = buildUnnamed1402();
109 o["y"] = buildUnnamed1406(); 109 o["y"] = buildUnnamed1402();
110 return o; 110 return o;
111 } 111 }
112 112
113 checkUnnamed1407(core.Map<core.String, core.List<core.String>> o) { 113 checkUnnamed1403(core.Map<core.String, core.List<core.String>> o) {
114 unittest.expect(o, unittest.hasLength(2)); 114 unittest.expect(o, unittest.hasLength(2));
115 checkUnnamed1406(o["x"]); 115 checkUnnamed1402(o["x"]);
116 checkUnnamed1406(o["y"]); 116 checkUnnamed1402(o["y"]);
117 } 117 }
118 118
119 buildUnnamed1408() { 119 buildUnnamed1404() {
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 checkUnnamed1408(core.Map<core.String, core.String> o) { 126 checkUnnamed1404(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 10 matching lines...) Expand all
147 buildCounterAboutStorageQuota++; 147 buildCounterAboutStorageQuota++;
148 if (buildCounterAboutStorageQuota < 3) { 148 if (buildCounterAboutStorageQuota < 3) {
149 unittest.expect(o.limit, unittest.equals('foo')); 149 unittest.expect(o.limit, unittest.equals('foo'));
150 unittest.expect(o.usage, unittest.equals('foo')); 150 unittest.expect(o.usage, unittest.equals('foo'));
151 unittest.expect(o.usageInDrive, unittest.equals('foo')); 151 unittest.expect(o.usageInDrive, unittest.equals('foo'));
152 unittest.expect(o.usageInDriveTrash, unittest.equals('foo')); 152 unittest.expect(o.usageInDriveTrash, unittest.equals('foo'));
153 } 153 }
154 buildCounterAboutStorageQuota--; 154 buildCounterAboutStorageQuota--;
155 } 155 }
156 156
157 core.int buildCounterAboutTeamDriveThemes = 0;
158 buildAboutTeamDriveThemes() {
159 var o = new api.AboutTeamDriveThemes();
160 buildCounterAboutTeamDriveThemes++;
161 if (buildCounterAboutTeamDriveThemes < 3) {
162 o.backgroundImageLink = "foo";
163 o.colorRgb = "foo";
164 o.id = "foo";
165 }
166 buildCounterAboutTeamDriveThemes--;
167 return o;
168 }
169
170 checkAboutTeamDriveThemes(api.AboutTeamDriveThemes o) {
171 buildCounterAboutTeamDriveThemes++;
172 if (buildCounterAboutTeamDriveThemes < 3) {
173 unittest.expect(o.backgroundImageLink, unittest.equals('foo'));
174 unittest.expect(o.colorRgb, unittest.equals('foo'));
175 unittest.expect(o.id, unittest.equals('foo'));
176 }
177 buildCounterAboutTeamDriveThemes--;
178 }
179
180 buildUnnamed1405() {
181 var o = new core.List<api.AboutTeamDriveThemes>();
182 o.add(buildAboutTeamDriveThemes());
183 o.add(buildAboutTeamDriveThemes());
184 return o;
185 }
186
187 checkUnnamed1405(core.List<api.AboutTeamDriveThemes> o) {
188 unittest.expect(o, unittest.hasLength(2));
189 checkAboutTeamDriveThemes(o[0]);
190 checkAboutTeamDriveThemes(o[1]);
191 }
192
157 core.int buildCounterAbout = 0; 193 core.int buildCounterAbout = 0;
158 buildAbout() { 194 buildAbout() {
159 var o = new api.About(); 195 var o = new api.About();
160 buildCounterAbout++; 196 buildCounterAbout++;
161 if (buildCounterAbout < 3) { 197 if (buildCounterAbout < 3) {
162 o.appInstalled = true; 198 o.appInstalled = true;
163 o.exportFormats = buildUnnamed1404(); 199 o.exportFormats = buildUnnamed1400();
164 o.folderColorPalette = buildUnnamed1405(); 200 o.folderColorPalette = buildUnnamed1401();
165 o.importFormats = buildUnnamed1407(); 201 o.importFormats = buildUnnamed1403();
166 o.kind = "foo"; 202 o.kind = "foo";
167 o.maxImportSizes = buildUnnamed1408(); 203 o.maxImportSizes = buildUnnamed1404();
168 o.maxUploadSize = "foo"; 204 o.maxUploadSize = "foo";
169 o.storageQuota = buildAboutStorageQuota(); 205 o.storageQuota = buildAboutStorageQuota();
206 o.teamDriveThemes = buildUnnamed1405();
170 o.user = buildUser(); 207 o.user = buildUser();
171 } 208 }
172 buildCounterAbout--; 209 buildCounterAbout--;
173 return o; 210 return o;
174 } 211 }
175 212
176 checkAbout(api.About o) { 213 checkAbout(api.About o) {
177 buildCounterAbout++; 214 buildCounterAbout++;
178 if (buildCounterAbout < 3) { 215 if (buildCounterAbout < 3) {
179 unittest.expect(o.appInstalled, unittest.isTrue); 216 unittest.expect(o.appInstalled, unittest.isTrue);
180 checkUnnamed1404(o.exportFormats); 217 checkUnnamed1400(o.exportFormats);
181 checkUnnamed1405(o.folderColorPalette); 218 checkUnnamed1401(o.folderColorPalette);
182 checkUnnamed1407(o.importFormats); 219 checkUnnamed1403(o.importFormats);
183 unittest.expect(o.kind, unittest.equals('foo')); 220 unittest.expect(o.kind, unittest.equals('foo'));
184 checkUnnamed1408(o.maxImportSizes); 221 checkUnnamed1404(o.maxImportSizes);
185 unittest.expect(o.maxUploadSize, unittest.equals('foo')); 222 unittest.expect(o.maxUploadSize, unittest.equals('foo'));
186 checkAboutStorageQuota(o.storageQuota); 223 checkAboutStorageQuota(o.storageQuota);
224 checkUnnamed1405(o.teamDriveThemes);
187 checkUser(o.user); 225 checkUser(o.user);
188 } 226 }
189 buildCounterAbout--; 227 buildCounterAbout--;
190 } 228 }
191 229
192 core.int buildCounterChange = 0; 230 core.int buildCounterChange = 0;
193 buildChange() { 231 buildChange() {
194 var o = new api.Change(); 232 var o = new api.Change();
195 buildCounterChange++; 233 buildCounterChange++;
196 if (buildCounterChange < 3) { 234 if (buildCounterChange < 3) {
(...skipping 18 matching lines...) Expand all
215 unittest.expect(o.kind, unittest.equals('foo')); 253 unittest.expect(o.kind, unittest.equals('foo'));
216 unittest.expect(o.removed, unittest.isTrue); 254 unittest.expect(o.removed, unittest.isTrue);
217 checkTeamDrive(o.teamDrive); 255 checkTeamDrive(o.teamDrive);
218 unittest.expect(o.teamDriveId, unittest.equals('foo')); 256 unittest.expect(o.teamDriveId, unittest.equals('foo'));
219 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0 1:02"))); 257 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0 1:02")));
220 unittest.expect(o.type, unittest.equals('foo')); 258 unittest.expect(o.type, unittest.equals('foo'));
221 } 259 }
222 buildCounterChange--; 260 buildCounterChange--;
223 } 261 }
224 262
225 buildUnnamed1409() { 263 buildUnnamed1406() {
226 var o = new core.List<api.Change>(); 264 var o = new core.List<api.Change>();
227 o.add(buildChange()); 265 o.add(buildChange());
228 o.add(buildChange()); 266 o.add(buildChange());
229 return o; 267 return o;
230 } 268 }
231 269
232 checkUnnamed1409(core.List<api.Change> o) { 270 checkUnnamed1406(core.List<api.Change> o) {
233 unittest.expect(o, unittest.hasLength(2)); 271 unittest.expect(o, unittest.hasLength(2));
234 checkChange(o[0]); 272 checkChange(o[0]);
235 checkChange(o[1]); 273 checkChange(o[1]);
236 } 274 }
237 275
238 core.int buildCounterChangeList = 0; 276 core.int buildCounterChangeList = 0;
239 buildChangeList() { 277 buildChangeList() {
240 var o = new api.ChangeList(); 278 var o = new api.ChangeList();
241 buildCounterChangeList++; 279 buildCounterChangeList++;
242 if (buildCounterChangeList < 3) { 280 if (buildCounterChangeList < 3) {
243 o.changes = buildUnnamed1409(); 281 o.changes = buildUnnamed1406();
244 o.kind = "foo"; 282 o.kind = "foo";
245 o.newStartPageToken = "foo"; 283 o.newStartPageToken = "foo";
246 o.nextPageToken = "foo"; 284 o.nextPageToken = "foo";
247 } 285 }
248 buildCounterChangeList--; 286 buildCounterChangeList--;
249 return o; 287 return o;
250 } 288 }
251 289
252 checkChangeList(api.ChangeList o) { 290 checkChangeList(api.ChangeList o) {
253 buildCounterChangeList++; 291 buildCounterChangeList++;
254 if (buildCounterChangeList < 3) { 292 if (buildCounterChangeList < 3) {
255 checkUnnamed1409(o.changes); 293 checkUnnamed1406(o.changes);
256 unittest.expect(o.kind, unittest.equals('foo')); 294 unittest.expect(o.kind, unittest.equals('foo'));
257 unittest.expect(o.newStartPageToken, unittest.equals('foo')); 295 unittest.expect(o.newStartPageToken, unittest.equals('foo'));
258 unittest.expect(o.nextPageToken, unittest.equals('foo')); 296 unittest.expect(o.nextPageToken, unittest.equals('foo'));
259 } 297 }
260 buildCounterChangeList--; 298 buildCounterChangeList--;
261 } 299 }
262 300
263 buildUnnamed1410() { 301 buildUnnamed1407() {
264 var o = new core.Map<core.String, core.String>(); 302 var o = new core.Map<core.String, core.String>();
265 o["x"] = "foo"; 303 o["x"] = "foo";
266 o["y"] = "foo"; 304 o["y"] = "foo";
267 return o; 305 return o;
268 } 306 }
269 307
270 checkUnnamed1410(core.Map<core.String, core.String> o) { 308 checkUnnamed1407(core.Map<core.String, core.String> o) {
271 unittest.expect(o, unittest.hasLength(2)); 309 unittest.expect(o, unittest.hasLength(2));
272 unittest.expect(o["x"], unittest.equals('foo')); 310 unittest.expect(o["x"], unittest.equals('foo'));
273 unittest.expect(o["y"], unittest.equals('foo')); 311 unittest.expect(o["y"], unittest.equals('foo'));
274 } 312 }
275 313
276 core.int buildCounterChannel = 0; 314 core.int buildCounterChannel = 0;
277 buildChannel() { 315 buildChannel() {
278 var o = new api.Channel(); 316 var o = new api.Channel();
279 buildCounterChannel++; 317 buildCounterChannel++;
280 if (buildCounterChannel < 3) { 318 if (buildCounterChannel < 3) {
281 o.address = "foo"; 319 o.address = "foo";
282 o.expiration = "foo"; 320 o.expiration = "foo";
283 o.id = "foo"; 321 o.id = "foo";
284 o.kind = "foo"; 322 o.kind = "foo";
285 o.params = buildUnnamed1410(); 323 o.params = buildUnnamed1407();
286 o.payload = true; 324 o.payload = true;
287 o.resourceId = "foo"; 325 o.resourceId = "foo";
288 o.resourceUri = "foo"; 326 o.resourceUri = "foo";
289 o.token = "foo"; 327 o.token = "foo";
290 o.type = "foo"; 328 o.type = "foo";
291 } 329 }
292 buildCounterChannel--; 330 buildCounterChannel--;
293 return o; 331 return o;
294 } 332 }
295 333
296 checkChannel(api.Channel o) { 334 checkChannel(api.Channel o) {
297 buildCounterChannel++; 335 buildCounterChannel++;
298 if (buildCounterChannel < 3) { 336 if (buildCounterChannel < 3) {
299 unittest.expect(o.address, unittest.equals('foo')); 337 unittest.expect(o.address, unittest.equals('foo'));
300 unittest.expect(o.expiration, unittest.equals('foo')); 338 unittest.expect(o.expiration, unittest.equals('foo'));
301 unittest.expect(o.id, unittest.equals('foo')); 339 unittest.expect(o.id, unittest.equals('foo'));
302 unittest.expect(o.kind, unittest.equals('foo')); 340 unittest.expect(o.kind, unittest.equals('foo'));
303 checkUnnamed1410(o.params); 341 checkUnnamed1407(o.params);
304 unittest.expect(o.payload, unittest.isTrue); 342 unittest.expect(o.payload, unittest.isTrue);
305 unittest.expect(o.resourceId, unittest.equals('foo')); 343 unittest.expect(o.resourceId, unittest.equals('foo'));
306 unittest.expect(o.resourceUri, unittest.equals('foo')); 344 unittest.expect(o.resourceUri, unittest.equals('foo'));
307 unittest.expect(o.token, unittest.equals('foo')); 345 unittest.expect(o.token, unittest.equals('foo'));
308 unittest.expect(o.type, unittest.equals('foo')); 346 unittest.expect(o.type, unittest.equals('foo'));
309 } 347 }
310 buildCounterChannel--; 348 buildCounterChannel--;
311 } 349 }
312 350
313 core.int buildCounterCommentQuotedFileContent = 0; 351 core.int buildCounterCommentQuotedFileContent = 0;
(...skipping 10 matching lines...) Expand all
324 362
325 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) { 363 checkCommentQuotedFileContent(api.CommentQuotedFileContent o) {
326 buildCounterCommentQuotedFileContent++; 364 buildCounterCommentQuotedFileContent++;
327 if (buildCounterCommentQuotedFileContent < 3) { 365 if (buildCounterCommentQuotedFileContent < 3) {
328 unittest.expect(o.mimeType, unittest.equals('foo')); 366 unittest.expect(o.mimeType, unittest.equals('foo'));
329 unittest.expect(o.value, unittest.equals('foo')); 367 unittest.expect(o.value, unittest.equals('foo'));
330 } 368 }
331 buildCounterCommentQuotedFileContent--; 369 buildCounterCommentQuotedFileContent--;
332 } 370 }
333 371
334 buildUnnamed1411() { 372 buildUnnamed1408() {
335 var o = new core.List<api.Reply>(); 373 var o = new core.List<api.Reply>();
336 o.add(buildReply()); 374 o.add(buildReply());
337 o.add(buildReply()); 375 o.add(buildReply());
338 return o; 376 return o;
339 } 377 }
340 378
341 checkUnnamed1411(core.List<api.Reply> o) { 379 checkUnnamed1408(core.List<api.Reply> o) {
342 unittest.expect(o, unittest.hasLength(2)); 380 unittest.expect(o, unittest.hasLength(2));
343 checkReply(o[0]); 381 checkReply(o[0]);
344 checkReply(o[1]); 382 checkReply(o[1]);
345 } 383 }
346 384
347 core.int buildCounterComment = 0; 385 core.int buildCounterComment = 0;
348 buildComment() { 386 buildComment() {
349 var o = new api.Comment(); 387 var o = new api.Comment();
350 buildCounterComment++; 388 buildCounterComment++;
351 if (buildCounterComment < 3) { 389 if (buildCounterComment < 3) {
352 o.anchor = "foo"; 390 o.anchor = "foo";
353 o.author = buildUser(); 391 o.author = buildUser();
354 o.content = "foo"; 392 o.content = "foo";
355 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); 393 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
356 o.deleted = true; 394 o.deleted = true;
357 o.htmlContent = "foo"; 395 o.htmlContent = "foo";
358 o.id = "foo"; 396 o.id = "foo";
359 o.kind = "foo"; 397 o.kind = "foo";
360 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 398 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
361 o.quotedFileContent = buildCommentQuotedFileContent(); 399 o.quotedFileContent = buildCommentQuotedFileContent();
362 o.replies = buildUnnamed1411(); 400 o.replies = buildUnnamed1408();
363 o.resolved = true; 401 o.resolved = true;
364 } 402 }
365 buildCounterComment--; 403 buildCounterComment--;
366 return o; 404 return o;
367 } 405 }
368 406
369 checkComment(api.Comment o) { 407 checkComment(api.Comment o) {
370 buildCounterComment++; 408 buildCounterComment++;
371 if (buildCounterComment < 3) { 409 if (buildCounterComment < 3) {
372 unittest.expect(o.anchor, unittest.equals('foo')); 410 unittest.expect(o.anchor, unittest.equals('foo'));
373 checkUser(o.author); 411 checkUser(o.author);
374 unittest.expect(o.content, unittest.equals('foo')); 412 unittest.expect(o.content, unittest.equals('foo'));
375 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 413 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
376 unittest.expect(o.deleted, unittest.isTrue); 414 unittest.expect(o.deleted, unittest.isTrue);
377 unittest.expect(o.htmlContent, unittest.equals('foo')); 415 unittest.expect(o.htmlContent, unittest.equals('foo'));
378 unittest.expect(o.id, unittest.equals('foo')); 416 unittest.expect(o.id, unittest.equals('foo'));
379 unittest.expect(o.kind, unittest.equals('foo')); 417 unittest.expect(o.kind, unittest.equals('foo'));
380 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 418 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
381 checkCommentQuotedFileContent(o.quotedFileContent); 419 checkCommentQuotedFileContent(o.quotedFileContent);
382 checkUnnamed1411(o.replies); 420 checkUnnamed1408(o.replies);
383 unittest.expect(o.resolved, unittest.isTrue); 421 unittest.expect(o.resolved, unittest.isTrue);
384 } 422 }
385 buildCounterComment--; 423 buildCounterComment--;
386 } 424 }
387 425
388 buildUnnamed1412() { 426 buildUnnamed1409() {
389 var o = new core.List<api.Comment>(); 427 var o = new core.List<api.Comment>();
390 o.add(buildComment()); 428 o.add(buildComment());
391 o.add(buildComment()); 429 o.add(buildComment());
392 return o; 430 return o;
393 } 431 }
394 432
395 checkUnnamed1412(core.List<api.Comment> o) { 433 checkUnnamed1409(core.List<api.Comment> o) {
396 unittest.expect(o, unittest.hasLength(2)); 434 unittest.expect(o, unittest.hasLength(2));
397 checkComment(o[0]); 435 checkComment(o[0]);
398 checkComment(o[1]); 436 checkComment(o[1]);
399 } 437 }
400 438
401 core.int buildCounterCommentList = 0; 439 core.int buildCounterCommentList = 0;
402 buildCommentList() { 440 buildCommentList() {
403 var o = new api.CommentList(); 441 var o = new api.CommentList();
404 buildCounterCommentList++; 442 buildCounterCommentList++;
405 if (buildCounterCommentList < 3) { 443 if (buildCounterCommentList < 3) {
406 o.comments = buildUnnamed1412(); 444 o.comments = buildUnnamed1409();
407 o.kind = "foo"; 445 o.kind = "foo";
408 o.nextPageToken = "foo"; 446 o.nextPageToken = "foo";
409 } 447 }
410 buildCounterCommentList--; 448 buildCounterCommentList--;
411 return o; 449 return o;
412 } 450 }
413 451
414 checkCommentList(api.CommentList o) { 452 checkCommentList(api.CommentList o) {
415 buildCounterCommentList++; 453 buildCounterCommentList++;
416 if (buildCounterCommentList < 3) { 454 if (buildCounterCommentList < 3) {
417 checkUnnamed1412(o.comments); 455 checkUnnamed1409(o.comments);
418 unittest.expect(o.kind, unittest.equals('foo')); 456 unittest.expect(o.kind, unittest.equals('foo'));
419 unittest.expect(o.nextPageToken, unittest.equals('foo')); 457 unittest.expect(o.nextPageToken, unittest.equals('foo'));
420 } 458 }
421 buildCounterCommentList--; 459 buildCounterCommentList--;
422 } 460 }
423 461
424 buildUnnamed1413() { 462 buildUnnamed1410() {
425 var o = new core.Map<core.String, core.String>(); 463 var o = new core.Map<core.String, core.String>();
426 o["x"] = "foo"; 464 o["x"] = "foo";
427 o["y"] = "foo"; 465 o["y"] = "foo";
428 return o; 466 return o;
429 } 467 }
430 468
431 checkUnnamed1413(core.Map<core.String, core.String> o) { 469 checkUnnamed1410(core.Map<core.String, core.String> o) {
432 unittest.expect(o, unittest.hasLength(2)); 470 unittest.expect(o, unittest.hasLength(2));
433 unittest.expect(o["x"], unittest.equals('foo')); 471 unittest.expect(o["x"], unittest.equals('foo'));
434 unittest.expect(o["y"], unittest.equals('foo')); 472 unittest.expect(o["y"], unittest.equals('foo'));
435 } 473 }
436 474
437 core.int buildCounterFileCapabilities = 0; 475 core.int buildCounterFileCapabilities = 0;
438 buildFileCapabilities() { 476 buildFileCapabilities() {
439 var o = new api.FileCapabilities(); 477 var o = new api.FileCapabilities();
440 buildCounterFileCapabilities++; 478 buildCounterFileCapabilities++;
441 if (buildCounterFileCapabilities < 3) { 479 if (buildCounterFileCapabilities < 3) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 unittest.expect(o.rotation, unittest.equals(42)); 638 unittest.expect(o.rotation, unittest.equals(42));
601 unittest.expect(o.sensor, unittest.equals('foo')); 639 unittest.expect(o.sensor, unittest.equals('foo'));
602 unittest.expect(o.subjectDistance, unittest.equals(42)); 640 unittest.expect(o.subjectDistance, unittest.equals(42));
603 unittest.expect(o.time, unittest.equals('foo')); 641 unittest.expect(o.time, unittest.equals('foo'));
604 unittest.expect(o.whiteBalance, unittest.equals('foo')); 642 unittest.expect(o.whiteBalance, unittest.equals('foo'));
605 unittest.expect(o.width, unittest.equals(42)); 643 unittest.expect(o.width, unittest.equals(42));
606 } 644 }
607 buildCounterFileImageMediaMetadata--; 645 buildCounterFileImageMediaMetadata--;
608 } 646 }
609 647
610 buildUnnamed1414() { 648 buildUnnamed1411() {
611 var o = new core.List<api.User>(); 649 var o = new core.List<api.User>();
612 o.add(buildUser()); 650 o.add(buildUser());
613 o.add(buildUser()); 651 o.add(buildUser());
614 return o; 652 return o;
615 } 653 }
616 654
617 checkUnnamed1414(core.List<api.User> o) { 655 checkUnnamed1411(core.List<api.User> o) {
618 unittest.expect(o, unittest.hasLength(2)); 656 unittest.expect(o, unittest.hasLength(2));
619 checkUser(o[0]); 657 checkUser(o[0]);
620 checkUser(o[1]); 658 checkUser(o[1]);
621 } 659 }
622 660
661 buildUnnamed1412() {
662 var o = new core.List<core.String>();
663 o.add("foo");
664 o.add("foo");
665 return o;
666 }
667
668 checkUnnamed1412(core.List<core.String> o) {
669 unittest.expect(o, unittest.hasLength(2));
670 unittest.expect(o[0], unittest.equals('foo'));
671 unittest.expect(o[1], unittest.equals('foo'));
672 }
673
674 buildUnnamed1413() {
675 var o = new core.List<api.Permission>();
676 o.add(buildPermission());
677 o.add(buildPermission());
678 return o;
679 }
680
681 checkUnnamed1413(core.List<api.Permission> o) {
682 unittest.expect(o, unittest.hasLength(2));
683 checkPermission(o[0]);
684 checkPermission(o[1]);
685 }
686
687 buildUnnamed1414() {
688 var o = new core.Map<core.String, core.String>();
689 o["x"] = "foo";
690 o["y"] = "foo";
691 return o;
692 }
693
694 checkUnnamed1414(core.Map<core.String, core.String> o) {
695 unittest.expect(o, unittest.hasLength(2));
696 unittest.expect(o["x"], unittest.equals('foo'));
697 unittest.expect(o["y"], unittest.equals('foo'));
698 }
699
623 buildUnnamed1415() { 700 buildUnnamed1415() {
624 var o = new core.List<core.String>(); 701 var o = new core.List<core.String>();
625 o.add("foo"); 702 o.add("foo");
626 o.add("foo"); 703 o.add("foo");
627 return o; 704 return o;
628 } 705 }
629 706
630 checkUnnamed1415(core.List<core.String> o) { 707 checkUnnamed1415(core.List<core.String> o) {
631 unittest.expect(o, unittest.hasLength(2)); 708 unittest.expect(o, unittest.hasLength(2));
632 unittest.expect(o[0], unittest.equals('foo')); 709 unittest.expect(o[0], unittest.equals('foo'));
633 unittest.expect(o[1], unittest.equals('foo')); 710 unittest.expect(o[1], unittest.equals('foo'));
634 }
635
636 buildUnnamed1416() {
637 var o = new core.List<api.Permission>();
638 o.add(buildPermission());
639 o.add(buildPermission());
640 return o;
641 }
642
643 checkUnnamed1416(core.List<api.Permission> o) {
644 unittest.expect(o, unittest.hasLength(2));
645 checkPermission(o[0]);
646 checkPermission(o[1]);
647 }
648
649 buildUnnamed1417() {
650 var o = new core.Map<core.String, core.String>();
651 o["x"] = "foo";
652 o["y"] = "foo";
653 return o;
654 }
655
656 checkUnnamed1417(core.Map<core.String, core.String> o) {
657 unittest.expect(o, unittest.hasLength(2));
658 unittest.expect(o["x"], unittest.equals('foo'));
659 unittest.expect(o["y"], unittest.equals('foo'));
660 }
661
662 buildUnnamed1418() {
663 var o = new core.List<core.String>();
664 o.add("foo");
665 o.add("foo");
666 return o;
667 }
668
669 checkUnnamed1418(core.List<core.String> o) {
670 unittest.expect(o, unittest.hasLength(2));
671 unittest.expect(o[0], unittest.equals('foo'));
672 unittest.expect(o[1], unittest.equals('foo'));
673 } 711 }
674 712
675 core.int buildCounterFileVideoMediaMetadata = 0; 713 core.int buildCounterFileVideoMediaMetadata = 0;
676 buildFileVideoMediaMetadata() { 714 buildFileVideoMediaMetadata() {
677 var o = new api.FileVideoMediaMetadata(); 715 var o = new api.FileVideoMediaMetadata();
678 buildCounterFileVideoMediaMetadata++; 716 buildCounterFileVideoMediaMetadata++;
679 if (buildCounterFileVideoMediaMetadata < 3) { 717 if (buildCounterFileVideoMediaMetadata < 3) {
680 o.durationMillis = "foo"; 718 o.durationMillis = "foo";
681 o.height = 42; 719 o.height = 42;
682 o.width = 42; 720 o.width = 42;
(...skipping 10 matching lines...) Expand all
693 unittest.expect(o.width, unittest.equals(42)); 731 unittest.expect(o.width, unittest.equals(42));
694 } 732 }
695 buildCounterFileVideoMediaMetadata--; 733 buildCounterFileVideoMediaMetadata--;
696 } 734 }
697 735
698 core.int buildCounterFile = 0; 736 core.int buildCounterFile = 0;
699 buildFile() { 737 buildFile() {
700 var o = new api.File(); 738 var o = new api.File();
701 buildCounterFile++; 739 buildCounterFile++;
702 if (buildCounterFile < 3) { 740 if (buildCounterFile < 3) {
703 o.appProperties = buildUnnamed1413(); 741 o.appProperties = buildUnnamed1410();
704 o.capabilities = buildFileCapabilities(); 742 o.capabilities = buildFileCapabilities();
705 o.contentHints = buildFileContentHints(); 743 o.contentHints = buildFileContentHints();
706 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); 744 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
707 o.description = "foo"; 745 o.description = "foo";
708 o.explicitlyTrashed = true; 746 o.explicitlyTrashed = true;
709 o.fileExtension = "foo"; 747 o.fileExtension = "foo";
710 o.folderColorRgb = "foo"; 748 o.folderColorRgb = "foo";
711 o.fullFileExtension = "foo"; 749 o.fullFileExtension = "foo";
712 o.hasAugmentedPermissions = true; 750 o.hasAugmentedPermissions = true;
713 o.hasThumbnail = true; 751 o.hasThumbnail = true;
714 o.headRevisionId = "foo"; 752 o.headRevisionId = "foo";
715 o.iconLink = "foo"; 753 o.iconLink = "foo";
716 o.id = "foo"; 754 o.id = "foo";
717 o.imageMediaMetadata = buildFileImageMediaMetadata(); 755 o.imageMediaMetadata = buildFileImageMediaMetadata();
718 o.isAppAuthorized = true; 756 o.isAppAuthorized = true;
719 o.kind = "foo"; 757 o.kind = "foo";
720 o.lastModifyingUser = buildUser(); 758 o.lastModifyingUser = buildUser();
721 o.md5Checksum = "foo"; 759 o.md5Checksum = "foo";
722 o.mimeType = "foo"; 760 o.mimeType = "foo";
723 o.modifiedByMe = true; 761 o.modifiedByMe = true;
724 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 762 o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
725 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); 763 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
726 o.name = "foo"; 764 o.name = "foo";
727 o.originalFilename = "foo"; 765 o.originalFilename = "foo";
728 o.ownedByMe = true; 766 o.ownedByMe = true;
729 o.owners = buildUnnamed1414(); 767 o.owners = buildUnnamed1411();
730 o.parents = buildUnnamed1415(); 768 o.parents = buildUnnamed1412();
731 o.permissions = buildUnnamed1416(); 769 o.permissions = buildUnnamed1413();
732 o.properties = buildUnnamed1417(); 770 o.properties = buildUnnamed1414();
733 o.quotaBytesUsed = "foo"; 771 o.quotaBytesUsed = "foo";
734 o.shared = true; 772 o.shared = true;
735 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 773 o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02");
736 o.sharingUser = buildUser(); 774 o.sharingUser = buildUser();
737 o.size = "foo"; 775 o.size = "foo";
738 o.spaces = buildUnnamed1418(); 776 o.spaces = buildUnnamed1415();
739 o.starred = true; 777 o.starred = true;
740 o.teamDriveId = "foo"; 778 o.teamDriveId = "foo";
741 o.thumbnailLink = "foo"; 779 o.thumbnailLink = "foo";
742 o.thumbnailVersion = "foo"; 780 o.thumbnailVersion = "foo";
743 o.trashed = true; 781 o.trashed = true;
744 o.trashedTime = core.DateTime.parse("2002-02-27T14:01:02"); 782 o.trashedTime = core.DateTime.parse("2002-02-27T14:01:02");
745 o.trashingUser = buildUser(); 783 o.trashingUser = buildUser();
746 o.version = "foo"; 784 o.version = "foo";
747 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 785 o.videoMediaMetadata = buildFileVideoMediaMetadata();
748 o.viewedByMe = true; 786 o.viewedByMe = true;
749 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); 787 o.viewedByMeTime = core.DateTime.parse("2002-02-27T14:01:02");
750 o.viewersCanCopyContent = true; 788 o.viewersCanCopyContent = true;
751 o.webContentLink = "foo"; 789 o.webContentLink = "foo";
752 o.webViewLink = "foo"; 790 o.webViewLink = "foo";
753 o.writersCanShare = true; 791 o.writersCanShare = true;
754 } 792 }
755 buildCounterFile--; 793 buildCounterFile--;
756 return o; 794 return o;
757 } 795 }
758 796
759 checkFile(api.File o) { 797 checkFile(api.File o) {
760 buildCounterFile++; 798 buildCounterFile++;
761 if (buildCounterFile < 3) { 799 if (buildCounterFile < 3) {
762 checkUnnamed1413(o.appProperties); 800 checkUnnamed1410(o.appProperties);
763 checkFileCapabilities(o.capabilities); 801 checkFileCapabilities(o.capabilities);
764 checkFileContentHints(o.contentHints); 802 checkFileContentHints(o.contentHints);
765 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 803 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
766 unittest.expect(o.description, unittest.equals('foo')); 804 unittest.expect(o.description, unittest.equals('foo'));
767 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 805 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
768 unittest.expect(o.fileExtension, unittest.equals('foo')); 806 unittest.expect(o.fileExtension, unittest.equals('foo'));
769 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 807 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
770 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 808 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
771 unittest.expect(o.hasAugmentedPermissions, unittest.isTrue); 809 unittest.expect(o.hasAugmentedPermissions, unittest.isTrue);
772 unittest.expect(o.hasThumbnail, unittest.isTrue); 810 unittest.expect(o.hasThumbnail, unittest.isTrue);
773 unittest.expect(o.headRevisionId, unittest.equals('foo')); 811 unittest.expect(o.headRevisionId, unittest.equals('foo'));
774 unittest.expect(o.iconLink, unittest.equals('foo')); 812 unittest.expect(o.iconLink, unittest.equals('foo'));
775 unittest.expect(o.id, unittest.equals('foo')); 813 unittest.expect(o.id, unittest.equals('foo'));
776 checkFileImageMediaMetadata(o.imageMediaMetadata); 814 checkFileImageMediaMetadata(o.imageMediaMetadata);
777 unittest.expect(o.isAppAuthorized, unittest.isTrue); 815 unittest.expect(o.isAppAuthorized, unittest.isTrue);
778 unittest.expect(o.kind, unittest.equals('foo')); 816 unittest.expect(o.kind, unittest.equals('foo'));
779 checkUser(o.lastModifyingUser); 817 checkUser(o.lastModifyingUser);
780 unittest.expect(o.md5Checksum, unittest.equals('foo')); 818 unittest.expect(o.md5Checksum, unittest.equals('foo'));
781 unittest.expect(o.mimeType, unittest.equals('foo')); 819 unittest.expect(o.mimeType, unittest.equals('foo'));
782 unittest.expect(o.modifiedByMe, unittest.isTrue); 820 unittest.expect(o.modifiedByMe, unittest.isTrue);
783 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 821 unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
784 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 822 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
785 unittest.expect(o.name, unittest.equals('foo')); 823 unittest.expect(o.name, unittest.equals('foo'));
786 unittest.expect(o.originalFilename, unittest.equals('foo')); 824 unittest.expect(o.originalFilename, unittest.equals('foo'));
787 unittest.expect(o.ownedByMe, unittest.isTrue); 825 unittest.expect(o.ownedByMe, unittest.isTrue);
788 checkUnnamed1414(o.owners); 826 checkUnnamed1411(o.owners);
789 checkUnnamed1415(o.parents); 827 checkUnnamed1412(o.parents);
790 checkUnnamed1416(o.permissions); 828 checkUnnamed1413(o.permissions);
791 checkUnnamed1417(o.properties); 829 checkUnnamed1414(o.properties);
792 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 830 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
793 unittest.expect(o.shared, unittest.isTrue); 831 unittest.expect(o.shared, unittest.isTrue);
794 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 832 unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
795 checkUser(o.sharingUser); 833 checkUser(o.sharingUser);
796 unittest.expect(o.size, unittest.equals('foo')); 834 unittest.expect(o.size, unittest.equals('foo'));
797 checkUnnamed1418(o.spaces); 835 checkUnnamed1415(o.spaces);
798 unittest.expect(o.starred, unittest.isTrue); 836 unittest.expect(o.starred, unittest.isTrue);
799 unittest.expect(o.teamDriveId, unittest.equals('foo')); 837 unittest.expect(o.teamDriveId, unittest.equals('foo'));
800 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 838 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
801 unittest.expect(o.thumbnailVersion, unittest.equals('foo')); 839 unittest.expect(o.thumbnailVersion, unittest.equals('foo'));
802 unittest.expect(o.trashed, unittest.isTrue); 840 unittest.expect(o.trashed, unittest.isTrue);
803 unittest.expect(o.trashedTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 841 unittest.expect(o.trashedTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
804 checkUser(o.trashingUser); 842 checkUser(o.trashingUser);
805 unittest.expect(o.version, unittest.equals('foo')); 843 unittest.expect(o.version, unittest.equals('foo'));
806 checkFileVideoMediaMetadata(o.videoMediaMetadata); 844 checkFileVideoMediaMetadata(o.videoMediaMetadata);
807 unittest.expect(o.viewedByMe, unittest.isTrue); 845 unittest.expect(o.viewedByMe, unittest.isTrue);
808 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 846 unittest.expect(o.viewedByMeTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
809 unittest.expect(o.viewersCanCopyContent, unittest.isTrue); 847 unittest.expect(o.viewersCanCopyContent, unittest.isTrue);
810 unittest.expect(o.webContentLink, unittest.equals('foo')); 848 unittest.expect(o.webContentLink, unittest.equals('foo'));
811 unittest.expect(o.webViewLink, unittest.equals('foo')); 849 unittest.expect(o.webViewLink, unittest.equals('foo'));
812 unittest.expect(o.writersCanShare, unittest.isTrue); 850 unittest.expect(o.writersCanShare, unittest.isTrue);
813 } 851 }
814 buildCounterFile--; 852 buildCounterFile--;
815 } 853 }
816 854
817 buildUnnamed1419() { 855 buildUnnamed1416() {
818 var o = new core.List<api.File>(); 856 var o = new core.List<api.File>();
819 o.add(buildFile()); 857 o.add(buildFile());
820 o.add(buildFile()); 858 o.add(buildFile());
821 return o; 859 return o;
822 } 860 }
823 861
824 checkUnnamed1419(core.List<api.File> o) { 862 checkUnnamed1416(core.List<api.File> o) {
825 unittest.expect(o, unittest.hasLength(2)); 863 unittest.expect(o, unittest.hasLength(2));
826 checkFile(o[0]); 864 checkFile(o[0]);
827 checkFile(o[1]); 865 checkFile(o[1]);
828 } 866 }
829 867
830 core.int buildCounterFileList = 0; 868 core.int buildCounterFileList = 0;
831 buildFileList() { 869 buildFileList() {
832 var o = new api.FileList(); 870 var o = new api.FileList();
833 buildCounterFileList++; 871 buildCounterFileList++;
834 if (buildCounterFileList < 3) { 872 if (buildCounterFileList < 3) {
835 o.files = buildUnnamed1419(); 873 o.files = buildUnnamed1416();
836 o.incompleteSearch = true; 874 o.incompleteSearch = true;
837 o.kind = "foo"; 875 o.kind = "foo";
838 o.nextPageToken = "foo"; 876 o.nextPageToken = "foo";
839 } 877 }
840 buildCounterFileList--; 878 buildCounterFileList--;
841 return o; 879 return o;
842 } 880 }
843 881
844 checkFileList(api.FileList o) { 882 checkFileList(api.FileList o) {
845 buildCounterFileList++; 883 buildCounterFileList++;
846 if (buildCounterFileList < 3) { 884 if (buildCounterFileList < 3) {
847 checkUnnamed1419(o.files); 885 checkUnnamed1416(o.files);
848 unittest.expect(o.incompleteSearch, unittest.isTrue); 886 unittest.expect(o.incompleteSearch, unittest.isTrue);
849 unittest.expect(o.kind, unittest.equals('foo')); 887 unittest.expect(o.kind, unittest.equals('foo'));
850 unittest.expect(o.nextPageToken, unittest.equals('foo')); 888 unittest.expect(o.nextPageToken, unittest.equals('foo'));
851 } 889 }
852 buildCounterFileList--; 890 buildCounterFileList--;
853 } 891 }
854 892
855 buildUnnamed1420() { 893 buildUnnamed1417() {
856 var o = new core.List<core.String>(); 894 var o = new core.List<core.String>();
857 o.add("foo"); 895 o.add("foo");
858 o.add("foo"); 896 o.add("foo");
859 return o; 897 return o;
860 } 898 }
861 899
862 checkUnnamed1420(core.List<core.String> o) { 900 checkUnnamed1417(core.List<core.String> o) {
863 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
864 unittest.expect(o[0], unittest.equals('foo')); 902 unittest.expect(o[0], unittest.equals('foo'));
865 unittest.expect(o[1], unittest.equals('foo')); 903 unittest.expect(o[1], unittest.equals('foo'));
866 } 904 }
867 905
868 core.int buildCounterGeneratedIds = 0; 906 core.int buildCounterGeneratedIds = 0;
869 buildGeneratedIds() { 907 buildGeneratedIds() {
870 var o = new api.GeneratedIds(); 908 var o = new api.GeneratedIds();
871 buildCounterGeneratedIds++; 909 buildCounterGeneratedIds++;
872 if (buildCounterGeneratedIds < 3) { 910 if (buildCounterGeneratedIds < 3) {
873 o.ids = buildUnnamed1420(); 911 o.ids = buildUnnamed1417();
874 o.kind = "foo"; 912 o.kind = "foo";
875 o.space = "foo"; 913 o.space = "foo";
876 } 914 }
877 buildCounterGeneratedIds--; 915 buildCounterGeneratedIds--;
878 return o; 916 return o;
879 } 917 }
880 918
881 checkGeneratedIds(api.GeneratedIds o) { 919 checkGeneratedIds(api.GeneratedIds o) {
882 buildCounterGeneratedIds++; 920 buildCounterGeneratedIds++;
883 if (buildCounterGeneratedIds < 3) { 921 if (buildCounterGeneratedIds < 3) {
884 checkUnnamed1420(o.ids); 922 checkUnnamed1417(o.ids);
885 unittest.expect(o.kind, unittest.equals('foo')); 923 unittest.expect(o.kind, unittest.equals('foo'));
886 unittest.expect(o.space, unittest.equals('foo')); 924 unittest.expect(o.space, unittest.equals('foo'));
887 } 925 }
888 buildCounterGeneratedIds--; 926 buildCounterGeneratedIds--;
889 } 927 }
890 928
891 core.int buildCounterPermissionTeamDrivePermissionDetails = 0; 929 core.int buildCounterPermissionTeamDrivePermissionDetails = 0;
892 buildPermissionTeamDrivePermissionDetails() { 930 buildPermissionTeamDrivePermissionDetails() {
893 var o = new api.PermissionTeamDrivePermissionDetails(); 931 var o = new api.PermissionTeamDrivePermissionDetails();
894 buildCounterPermissionTeamDrivePermissionDetails++; 932 buildCounterPermissionTeamDrivePermissionDetails++;
(...skipping 11 matching lines...) Expand all
906 buildCounterPermissionTeamDrivePermissionDetails++; 944 buildCounterPermissionTeamDrivePermissionDetails++;
907 if (buildCounterPermissionTeamDrivePermissionDetails < 3) { 945 if (buildCounterPermissionTeamDrivePermissionDetails < 3) {
908 unittest.expect(o.inherited, unittest.isTrue); 946 unittest.expect(o.inherited, unittest.isTrue);
909 unittest.expect(o.inheritedFrom, unittest.equals('foo')); 947 unittest.expect(o.inheritedFrom, unittest.equals('foo'));
910 unittest.expect(o.role, unittest.equals('foo')); 948 unittest.expect(o.role, unittest.equals('foo'));
911 unittest.expect(o.teamDrivePermissionType, unittest.equals('foo')); 949 unittest.expect(o.teamDrivePermissionType, unittest.equals('foo'));
912 } 950 }
913 buildCounterPermissionTeamDrivePermissionDetails--; 951 buildCounterPermissionTeamDrivePermissionDetails--;
914 } 952 }
915 953
916 buildUnnamed1421() { 954 buildUnnamed1418() {
917 var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); 955 var o = new core.List<api.PermissionTeamDrivePermissionDetails>();
918 o.add(buildPermissionTeamDrivePermissionDetails()); 956 o.add(buildPermissionTeamDrivePermissionDetails());
919 o.add(buildPermissionTeamDrivePermissionDetails()); 957 o.add(buildPermissionTeamDrivePermissionDetails());
920 return o; 958 return o;
921 } 959 }
922 960
923 checkUnnamed1421(core.List<api.PermissionTeamDrivePermissionDetails> o) { 961 checkUnnamed1418(core.List<api.PermissionTeamDrivePermissionDetails> o) {
924 unittest.expect(o, unittest.hasLength(2)); 962 unittest.expect(o, unittest.hasLength(2));
925 checkPermissionTeamDrivePermissionDetails(o[0]); 963 checkPermissionTeamDrivePermissionDetails(o[0]);
926 checkPermissionTeamDrivePermissionDetails(o[1]); 964 checkPermissionTeamDrivePermissionDetails(o[1]);
927 } 965 }
928 966
929 core.int buildCounterPermission = 0; 967 core.int buildCounterPermission = 0;
930 buildPermission() { 968 buildPermission() {
931 var o = new api.Permission(); 969 var o = new api.Permission();
932 buildCounterPermission++; 970 buildCounterPermission++;
933 if (buildCounterPermission < 3) { 971 if (buildCounterPermission < 3) {
934 o.allowFileDiscovery = true; 972 o.allowFileDiscovery = true;
973 o.deleted = true;
935 o.displayName = "foo"; 974 o.displayName = "foo";
936 o.domain = "foo"; 975 o.domain = "foo";
937 o.emailAddress = "foo"; 976 o.emailAddress = "foo";
938 o.expirationTime = core.DateTime.parse("2002-02-27T14:01:02"); 977 o.expirationTime = core.DateTime.parse("2002-02-27T14:01:02");
939 o.id = "foo"; 978 o.id = "foo";
940 o.kind = "foo"; 979 o.kind = "foo";
941 o.photoLink = "foo"; 980 o.photoLink = "foo";
942 o.role = "foo"; 981 o.role = "foo";
943 o.teamDrivePermissionDetails = buildUnnamed1421(); 982 o.teamDrivePermissionDetails = buildUnnamed1418();
944 o.type = "foo"; 983 o.type = "foo";
945 } 984 }
946 buildCounterPermission--; 985 buildCounterPermission--;
947 return o; 986 return o;
948 } 987 }
949 988
950 checkPermission(api.Permission o) { 989 checkPermission(api.Permission o) {
951 buildCounterPermission++; 990 buildCounterPermission++;
952 if (buildCounterPermission < 3) { 991 if (buildCounterPermission < 3) {
953 unittest.expect(o.allowFileDiscovery, unittest.isTrue); 992 unittest.expect(o.allowFileDiscovery, unittest.isTrue);
993 unittest.expect(o.deleted, unittest.isTrue);
954 unittest.expect(o.displayName, unittest.equals('foo')); 994 unittest.expect(o.displayName, unittest.equals('foo'));
955 unittest.expect(o.domain, unittest.equals('foo')); 995 unittest.expect(o.domain, unittest.equals('foo'));
956 unittest.expect(o.emailAddress, unittest.equals('foo')); 996 unittest.expect(o.emailAddress, unittest.equals('foo'));
957 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 997 unittest.expect(o.expirationTime, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
958 unittest.expect(o.id, unittest.equals('foo')); 998 unittest.expect(o.id, unittest.equals('foo'));
959 unittest.expect(o.kind, unittest.equals('foo')); 999 unittest.expect(o.kind, unittest.equals('foo'));
960 unittest.expect(o.photoLink, unittest.equals('foo')); 1000 unittest.expect(o.photoLink, unittest.equals('foo'));
961 unittest.expect(o.role, unittest.equals('foo')); 1001 unittest.expect(o.role, unittest.equals('foo'));
962 checkUnnamed1421(o.teamDrivePermissionDetails); 1002 checkUnnamed1418(o.teamDrivePermissionDetails);
963 unittest.expect(o.type, unittest.equals('foo')); 1003 unittest.expect(o.type, unittest.equals('foo'));
964 } 1004 }
965 buildCounterPermission--; 1005 buildCounterPermission--;
966 } 1006 }
967 1007
968 buildUnnamed1422() { 1008 buildUnnamed1419() {
969 var o = new core.List<api.Permission>(); 1009 var o = new core.List<api.Permission>();
970 o.add(buildPermission()); 1010 o.add(buildPermission());
971 o.add(buildPermission()); 1011 o.add(buildPermission());
972 return o; 1012 return o;
973 } 1013 }
974 1014
975 checkUnnamed1422(core.List<api.Permission> o) { 1015 checkUnnamed1419(core.List<api.Permission> o) {
976 unittest.expect(o, unittest.hasLength(2)); 1016 unittest.expect(o, unittest.hasLength(2));
977 checkPermission(o[0]); 1017 checkPermission(o[0]);
978 checkPermission(o[1]); 1018 checkPermission(o[1]);
979 } 1019 }
980 1020
981 core.int buildCounterPermissionList = 0; 1021 core.int buildCounterPermissionList = 0;
982 buildPermissionList() { 1022 buildPermissionList() {
983 var o = new api.PermissionList(); 1023 var o = new api.PermissionList();
984 buildCounterPermissionList++; 1024 buildCounterPermissionList++;
985 if (buildCounterPermissionList < 3) { 1025 if (buildCounterPermissionList < 3) {
986 o.kind = "foo"; 1026 o.kind = "foo";
987 o.nextPageToken = "foo"; 1027 o.nextPageToken = "foo";
988 o.permissions = buildUnnamed1422(); 1028 o.permissions = buildUnnamed1419();
989 } 1029 }
990 buildCounterPermissionList--; 1030 buildCounterPermissionList--;
991 return o; 1031 return o;
992 } 1032 }
993 1033
994 checkPermissionList(api.PermissionList o) { 1034 checkPermissionList(api.PermissionList o) {
995 buildCounterPermissionList++; 1035 buildCounterPermissionList++;
996 if (buildCounterPermissionList < 3) { 1036 if (buildCounterPermissionList < 3) {
997 unittest.expect(o.kind, unittest.equals('foo')); 1037 unittest.expect(o.kind, unittest.equals('foo'));
998 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1038 unittest.expect(o.nextPageToken, unittest.equals('foo'));
999 checkUnnamed1422(o.permissions); 1039 checkUnnamed1419(o.permissions);
1000 } 1040 }
1001 buildCounterPermissionList--; 1041 buildCounterPermissionList--;
1002 } 1042 }
1003 1043
1004 core.int buildCounterReply = 0; 1044 core.int buildCounterReply = 0;
1005 buildReply() { 1045 buildReply() {
1006 var o = new api.Reply(); 1046 var o = new api.Reply();
1007 buildCounterReply++; 1047 buildCounterReply++;
1008 if (buildCounterReply < 3) { 1048 if (buildCounterReply < 3) {
1009 o.action = "foo"; 1049 o.action = "foo";
(...skipping 19 matching lines...) Expand all
1029 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 1069 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
1030 unittest.expect(o.deleted, unittest.isTrue); 1070 unittest.expect(o.deleted, unittest.isTrue);
1031 unittest.expect(o.htmlContent, unittest.equals('foo')); 1071 unittest.expect(o.htmlContent, unittest.equals('foo'));
1032 unittest.expect(o.id, unittest.equals('foo')); 1072 unittest.expect(o.id, unittest.equals('foo'));
1033 unittest.expect(o.kind, unittest.equals('foo')); 1073 unittest.expect(o.kind, unittest.equals('foo'));
1034 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1074 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1035 } 1075 }
1036 buildCounterReply--; 1076 buildCounterReply--;
1037 } 1077 }
1038 1078
1039 buildUnnamed1423() { 1079 buildUnnamed1420() {
1040 var o = new core.List<api.Reply>(); 1080 var o = new core.List<api.Reply>();
1041 o.add(buildReply()); 1081 o.add(buildReply());
1042 o.add(buildReply()); 1082 o.add(buildReply());
1043 return o; 1083 return o;
1044 } 1084 }
1045 1085
1046 checkUnnamed1423(core.List<api.Reply> o) { 1086 checkUnnamed1420(core.List<api.Reply> o) {
1047 unittest.expect(o, unittest.hasLength(2)); 1087 unittest.expect(o, unittest.hasLength(2));
1048 checkReply(o[0]); 1088 checkReply(o[0]);
1049 checkReply(o[1]); 1089 checkReply(o[1]);
1050 } 1090 }
1051 1091
1052 core.int buildCounterReplyList = 0; 1092 core.int buildCounterReplyList = 0;
1053 buildReplyList() { 1093 buildReplyList() {
1054 var o = new api.ReplyList(); 1094 var o = new api.ReplyList();
1055 buildCounterReplyList++; 1095 buildCounterReplyList++;
1056 if (buildCounterReplyList < 3) { 1096 if (buildCounterReplyList < 3) {
1057 o.kind = "foo"; 1097 o.kind = "foo";
1058 o.nextPageToken = "foo"; 1098 o.nextPageToken = "foo";
1059 o.replies = buildUnnamed1423(); 1099 o.replies = buildUnnamed1420();
1060 } 1100 }
1061 buildCounterReplyList--; 1101 buildCounterReplyList--;
1062 return o; 1102 return o;
1063 } 1103 }
1064 1104
1065 checkReplyList(api.ReplyList o) { 1105 checkReplyList(api.ReplyList o) {
1066 buildCounterReplyList++; 1106 buildCounterReplyList++;
1067 if (buildCounterReplyList < 3) { 1107 if (buildCounterReplyList < 3) {
1068 unittest.expect(o.kind, unittest.equals('foo')); 1108 unittest.expect(o.kind, unittest.equals('foo'));
1069 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1109 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1070 checkUnnamed1423(o.replies); 1110 checkUnnamed1420(o.replies);
1071 } 1111 }
1072 buildCounterReplyList--; 1112 buildCounterReplyList--;
1073 } 1113 }
1074 1114
1075 core.int buildCounterRevision = 0; 1115 core.int buildCounterRevision = 0;
1076 buildRevision() { 1116 buildRevision() {
1077 var o = new api.Revision(); 1117 var o = new api.Revision();
1078 buildCounterRevision++; 1118 buildCounterRevision++;
1079 if (buildCounterRevision < 3) { 1119 if (buildCounterRevision < 3) {
1080 o.id = "foo"; 1120 o.id = "foo";
(...skipping 25 matching lines...) Expand all
1106 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1146 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1107 unittest.expect(o.originalFilename, unittest.equals('foo')); 1147 unittest.expect(o.originalFilename, unittest.equals('foo'));
1108 unittest.expect(o.publishAuto, unittest.isTrue); 1148 unittest.expect(o.publishAuto, unittest.isTrue);
1109 unittest.expect(o.published, unittest.isTrue); 1149 unittest.expect(o.published, unittest.isTrue);
1110 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1150 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1111 unittest.expect(o.size, unittest.equals('foo')); 1151 unittest.expect(o.size, unittest.equals('foo'));
1112 } 1152 }
1113 buildCounterRevision--; 1153 buildCounterRevision--;
1114 } 1154 }
1115 1155
1116 buildUnnamed1424() { 1156 buildUnnamed1421() {
1117 var o = new core.List<api.Revision>(); 1157 var o = new core.List<api.Revision>();
1118 o.add(buildRevision()); 1158 o.add(buildRevision());
1119 o.add(buildRevision()); 1159 o.add(buildRevision());
1120 return o; 1160 return o;
1121 } 1161 }
1122 1162
1123 checkUnnamed1424(core.List<api.Revision> o) { 1163 checkUnnamed1421(core.List<api.Revision> o) {
1124 unittest.expect(o, unittest.hasLength(2)); 1164 unittest.expect(o, unittest.hasLength(2));
1125 checkRevision(o[0]); 1165 checkRevision(o[0]);
1126 checkRevision(o[1]); 1166 checkRevision(o[1]);
1127 } 1167 }
1128 1168
1129 core.int buildCounterRevisionList = 0; 1169 core.int buildCounterRevisionList = 0;
1130 buildRevisionList() { 1170 buildRevisionList() {
1131 var o = new api.RevisionList(); 1171 var o = new api.RevisionList();
1132 buildCounterRevisionList++; 1172 buildCounterRevisionList++;
1133 if (buildCounterRevisionList < 3) { 1173 if (buildCounterRevisionList < 3) {
1134 o.kind = "foo"; 1174 o.kind = "foo";
1135 o.nextPageToken = "foo"; 1175 o.nextPageToken = "foo";
1136 o.revisions = buildUnnamed1424(); 1176 o.revisions = buildUnnamed1421();
1137 } 1177 }
1138 buildCounterRevisionList--; 1178 buildCounterRevisionList--;
1139 return o; 1179 return o;
1140 } 1180 }
1141 1181
1142 checkRevisionList(api.RevisionList o) { 1182 checkRevisionList(api.RevisionList o) {
1143 buildCounterRevisionList++; 1183 buildCounterRevisionList++;
1144 if (buildCounterRevisionList < 3) { 1184 if (buildCounterRevisionList < 3) {
1145 unittest.expect(o.kind, unittest.equals('foo')); 1185 unittest.expect(o.kind, unittest.equals('foo'));
1146 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1186 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1147 checkUnnamed1424(o.revisions); 1187 checkUnnamed1421(o.revisions);
1148 } 1188 }
1149 buildCounterRevisionList--; 1189 buildCounterRevisionList--;
1150 } 1190 }
1151 1191
1152 core.int buildCounterStartPageToken = 0; 1192 core.int buildCounterStartPageToken = 0;
1153 buildStartPageToken() { 1193 buildStartPageToken() {
1154 var o = new api.StartPageToken(); 1194 var o = new api.StartPageToken();
1155 buildCounterStartPageToken++; 1195 buildCounterStartPageToken++;
1156 if (buildCounterStartPageToken < 3) { 1196 if (buildCounterStartPageToken < 3) {
1157 o.kind = "foo"; 1197 o.kind = "foo";
1158 o.startPageToken = "foo"; 1198 o.startPageToken = "foo";
1159 } 1199 }
1160 buildCounterStartPageToken--; 1200 buildCounterStartPageToken--;
1161 return o; 1201 return o;
1162 } 1202 }
1163 1203
1164 checkStartPageToken(api.StartPageToken o) { 1204 checkStartPageToken(api.StartPageToken o) {
1165 buildCounterStartPageToken++; 1205 buildCounterStartPageToken++;
1166 if (buildCounterStartPageToken < 3) { 1206 if (buildCounterStartPageToken < 3) {
1167 unittest.expect(o.kind, unittest.equals('foo')); 1207 unittest.expect(o.kind, unittest.equals('foo'));
1168 unittest.expect(o.startPageToken, unittest.equals('foo')); 1208 unittest.expect(o.startPageToken, unittest.equals('foo'));
1169 } 1209 }
1170 buildCounterStartPageToken--; 1210 buildCounterStartPageToken--;
1171 } 1211 }
1172 1212
1213 core.int buildCounterTeamDriveBackgroundImageFile = 0;
1214 buildTeamDriveBackgroundImageFile() {
1215 var o = new api.TeamDriveBackgroundImageFile();
1216 buildCounterTeamDriveBackgroundImageFile++;
1217 if (buildCounterTeamDriveBackgroundImageFile < 3) {
1218 o.id = "foo";
1219 o.width = 42.0;
1220 o.xCoordinate = 42.0;
1221 o.yCoordinate = 42.0;
1222 }
1223 buildCounterTeamDriveBackgroundImageFile--;
1224 return o;
1225 }
1226
1227 checkTeamDriveBackgroundImageFile(api.TeamDriveBackgroundImageFile o) {
1228 buildCounterTeamDriveBackgroundImageFile++;
1229 if (buildCounterTeamDriveBackgroundImageFile < 3) {
1230 unittest.expect(o.id, unittest.equals('foo'));
1231 unittest.expect(o.width, unittest.equals(42.0));
1232 unittest.expect(o.xCoordinate, unittest.equals(42.0));
1233 unittest.expect(o.yCoordinate, unittest.equals(42.0));
1234 }
1235 buildCounterTeamDriveBackgroundImageFile--;
1236 }
1237
1173 core.int buildCounterTeamDriveCapabilities = 0; 1238 core.int buildCounterTeamDriveCapabilities = 0;
1174 buildTeamDriveCapabilities() { 1239 buildTeamDriveCapabilities() {
1175 var o = new api.TeamDriveCapabilities(); 1240 var o = new api.TeamDriveCapabilities();
1176 buildCounterTeamDriveCapabilities++; 1241 buildCounterTeamDriveCapabilities++;
1177 if (buildCounterTeamDriveCapabilities < 3) { 1242 if (buildCounterTeamDriveCapabilities < 3) {
1178 o.canAddChildren = true; 1243 o.canAddChildren = true;
1244 o.canChangeTeamDriveBackground = true;
1179 o.canComment = true; 1245 o.canComment = true;
1180 o.canCopy = true; 1246 o.canCopy = true;
1181 o.canDeleteTeamDrive = true; 1247 o.canDeleteTeamDrive = true;
1182 o.canDownload = true; 1248 o.canDownload = true;
1183 o.canEdit = true; 1249 o.canEdit = true;
1184 o.canListChildren = true; 1250 o.canListChildren = true;
1185 o.canManageMembers = true; 1251 o.canManageMembers = true;
1186 o.canReadRevisions = true; 1252 o.canReadRevisions = true;
1187 o.canRemoveChildren = true; 1253 o.canRemoveChildren = true;
1188 o.canRename = true; 1254 o.canRename = true;
1189 o.canRenameTeamDrive = true; 1255 o.canRenameTeamDrive = true;
1190 o.canShare = true; 1256 o.canShare = true;
1191 } 1257 }
1192 buildCounterTeamDriveCapabilities--; 1258 buildCounterTeamDriveCapabilities--;
1193 return o; 1259 return o;
1194 } 1260 }
1195 1261
1196 checkTeamDriveCapabilities(api.TeamDriveCapabilities o) { 1262 checkTeamDriveCapabilities(api.TeamDriveCapabilities o) {
1197 buildCounterTeamDriveCapabilities++; 1263 buildCounterTeamDriveCapabilities++;
1198 if (buildCounterTeamDriveCapabilities < 3) { 1264 if (buildCounterTeamDriveCapabilities < 3) {
1199 unittest.expect(o.canAddChildren, unittest.isTrue); 1265 unittest.expect(o.canAddChildren, unittest.isTrue);
1266 unittest.expect(o.canChangeTeamDriveBackground, unittest.isTrue);
1200 unittest.expect(o.canComment, unittest.isTrue); 1267 unittest.expect(o.canComment, unittest.isTrue);
1201 unittest.expect(o.canCopy, unittest.isTrue); 1268 unittest.expect(o.canCopy, unittest.isTrue);
1202 unittest.expect(o.canDeleteTeamDrive, unittest.isTrue); 1269 unittest.expect(o.canDeleteTeamDrive, unittest.isTrue);
1203 unittest.expect(o.canDownload, unittest.isTrue); 1270 unittest.expect(o.canDownload, unittest.isTrue);
1204 unittest.expect(o.canEdit, unittest.isTrue); 1271 unittest.expect(o.canEdit, unittest.isTrue);
1205 unittest.expect(o.canListChildren, unittest.isTrue); 1272 unittest.expect(o.canListChildren, unittest.isTrue);
1206 unittest.expect(o.canManageMembers, unittest.isTrue); 1273 unittest.expect(o.canManageMembers, unittest.isTrue);
1207 unittest.expect(o.canReadRevisions, unittest.isTrue); 1274 unittest.expect(o.canReadRevisions, unittest.isTrue);
1208 unittest.expect(o.canRemoveChildren, unittest.isTrue); 1275 unittest.expect(o.canRemoveChildren, unittest.isTrue);
1209 unittest.expect(o.canRename, unittest.isTrue); 1276 unittest.expect(o.canRename, unittest.isTrue);
1210 unittest.expect(o.canRenameTeamDrive, unittest.isTrue); 1277 unittest.expect(o.canRenameTeamDrive, unittest.isTrue);
1211 unittest.expect(o.canShare, unittest.isTrue); 1278 unittest.expect(o.canShare, unittest.isTrue);
1212 } 1279 }
1213 buildCounterTeamDriveCapabilities--; 1280 buildCounterTeamDriveCapabilities--;
1214 } 1281 }
1215 1282
1216 core.int buildCounterTeamDrive = 0; 1283 core.int buildCounterTeamDrive = 0;
1217 buildTeamDrive() { 1284 buildTeamDrive() {
1218 var o = new api.TeamDrive(); 1285 var o = new api.TeamDrive();
1219 buildCounterTeamDrive++; 1286 buildCounterTeamDrive++;
1220 if (buildCounterTeamDrive < 3) { 1287 if (buildCounterTeamDrive < 3) {
1288 o.backgroundImageFile = buildTeamDriveBackgroundImageFile();
1289 o.backgroundImageLink = "foo";
1221 o.capabilities = buildTeamDriveCapabilities(); 1290 o.capabilities = buildTeamDriveCapabilities();
1291 o.colorRgb = "foo";
1222 o.id = "foo"; 1292 o.id = "foo";
1223 o.kind = "foo"; 1293 o.kind = "foo";
1224 o.name = "foo"; 1294 o.name = "foo";
1295 o.themeId = "foo";
1225 } 1296 }
1226 buildCounterTeamDrive--; 1297 buildCounterTeamDrive--;
1227 return o; 1298 return o;
1228 } 1299 }
1229 1300
1230 checkTeamDrive(api.TeamDrive o) { 1301 checkTeamDrive(api.TeamDrive o) {
1231 buildCounterTeamDrive++; 1302 buildCounterTeamDrive++;
1232 if (buildCounterTeamDrive < 3) { 1303 if (buildCounterTeamDrive < 3) {
1304 checkTeamDriveBackgroundImageFile(o.backgroundImageFile);
1305 unittest.expect(o.backgroundImageLink, unittest.equals('foo'));
1233 checkTeamDriveCapabilities(o.capabilities); 1306 checkTeamDriveCapabilities(o.capabilities);
1307 unittest.expect(o.colorRgb, unittest.equals('foo'));
1234 unittest.expect(o.id, unittest.equals('foo')); 1308 unittest.expect(o.id, unittest.equals('foo'));
1235 unittest.expect(o.kind, unittest.equals('foo')); 1309 unittest.expect(o.kind, unittest.equals('foo'));
1236 unittest.expect(o.name, unittest.equals('foo')); 1310 unittest.expect(o.name, unittest.equals('foo'));
1311 unittest.expect(o.themeId, unittest.equals('foo'));
1237 } 1312 }
1238 buildCounterTeamDrive--; 1313 buildCounterTeamDrive--;
1239 } 1314 }
1240 1315
1241 buildUnnamed1425() { 1316 buildUnnamed1422() {
1242 var o = new core.List<api.TeamDrive>(); 1317 var o = new core.List<api.TeamDrive>();
1243 o.add(buildTeamDrive()); 1318 o.add(buildTeamDrive());
1244 o.add(buildTeamDrive()); 1319 o.add(buildTeamDrive());
1245 return o; 1320 return o;
1246 } 1321 }
1247 1322
1248 checkUnnamed1425(core.List<api.TeamDrive> o) { 1323 checkUnnamed1422(core.List<api.TeamDrive> o) {
1249 unittest.expect(o, unittest.hasLength(2)); 1324 unittest.expect(o, unittest.hasLength(2));
1250 checkTeamDrive(o[0]); 1325 checkTeamDrive(o[0]);
1251 checkTeamDrive(o[1]); 1326 checkTeamDrive(o[1]);
1252 } 1327 }
1253 1328
1254 core.int buildCounterTeamDriveList = 0; 1329 core.int buildCounterTeamDriveList = 0;
1255 buildTeamDriveList() { 1330 buildTeamDriveList() {
1256 var o = new api.TeamDriveList(); 1331 var o = new api.TeamDriveList();
1257 buildCounterTeamDriveList++; 1332 buildCounterTeamDriveList++;
1258 if (buildCounterTeamDriveList < 3) { 1333 if (buildCounterTeamDriveList < 3) {
1259 o.kind = "foo"; 1334 o.kind = "foo";
1260 o.nextPageToken = "foo"; 1335 o.nextPageToken = "foo";
1261 o.teamDrives = buildUnnamed1425(); 1336 o.teamDrives = buildUnnamed1422();
1262 } 1337 }
1263 buildCounterTeamDriveList--; 1338 buildCounterTeamDriveList--;
1264 return o; 1339 return o;
1265 } 1340 }
1266 1341
1267 checkTeamDriveList(api.TeamDriveList o) { 1342 checkTeamDriveList(api.TeamDriveList o) {
1268 buildCounterTeamDriveList++; 1343 buildCounterTeamDriveList++;
1269 if (buildCounterTeamDriveList < 3) { 1344 if (buildCounterTeamDriveList < 3) {
1270 unittest.expect(o.kind, unittest.equals('foo')); 1345 unittest.expect(o.kind, unittest.equals('foo'));
1271 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1346 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1272 checkUnnamed1425(o.teamDrives); 1347 checkUnnamed1422(o.teamDrives);
1273 } 1348 }
1274 buildCounterTeamDriveList--; 1349 buildCounterTeamDriveList--;
1275 } 1350 }
1276 1351
1277 core.int buildCounterUser = 0; 1352 core.int buildCounterUser = 0;
1278 buildUser() { 1353 buildUser() {
1279 var o = new api.User(); 1354 var o = new api.User();
1280 buildCounterUser++; 1355 buildCounterUser++;
1281 if (buildCounterUser < 3) { 1356 if (buildCounterUser < 3) {
1282 o.displayName = "foo"; 1357 o.displayName = "foo";
(...skipping 24 matching lines...) Expand all
1307 main() { 1382 main() {
1308 unittest.group("obj-schema-AboutStorageQuota", () { 1383 unittest.group("obj-schema-AboutStorageQuota", () {
1309 unittest.test("to-json--from-json", () { 1384 unittest.test("to-json--from-json", () {
1310 var o = buildAboutStorageQuota(); 1385 var o = buildAboutStorageQuota();
1311 var od = new api.AboutStorageQuota.fromJson(o.toJson()); 1386 var od = new api.AboutStorageQuota.fromJson(o.toJson());
1312 checkAboutStorageQuota(od); 1387 checkAboutStorageQuota(od);
1313 }); 1388 });
1314 }); 1389 });
1315 1390
1316 1391
1392 unittest.group("obj-schema-AboutTeamDriveThemes", () {
1393 unittest.test("to-json--from-json", () {
1394 var o = buildAboutTeamDriveThemes();
1395 var od = new api.AboutTeamDriveThemes.fromJson(o.toJson());
1396 checkAboutTeamDriveThemes(od);
1397 });
1398 });
1399
1400
1317 unittest.group("obj-schema-About", () { 1401 unittest.group("obj-schema-About", () {
1318 unittest.test("to-json--from-json", () { 1402 unittest.test("to-json--from-json", () {
1319 var o = buildAbout(); 1403 var o = buildAbout();
1320 var od = new api.About.fromJson(o.toJson()); 1404 var od = new api.About.fromJson(o.toJson());
1321 checkAbout(od); 1405 checkAbout(od);
1322 }); 1406 });
1323 }); 1407 });
1324 1408
1325 1409
1326 unittest.group("obj-schema-Change", () { 1410 unittest.group("obj-schema-Change", () {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 1607
1524 unittest.group("obj-schema-StartPageToken", () { 1608 unittest.group("obj-schema-StartPageToken", () {
1525 unittest.test("to-json--from-json", () { 1609 unittest.test("to-json--from-json", () {
1526 var o = buildStartPageToken(); 1610 var o = buildStartPageToken();
1527 var od = new api.StartPageToken.fromJson(o.toJson()); 1611 var od = new api.StartPageToken.fromJson(o.toJson());
1528 checkStartPageToken(od); 1612 checkStartPageToken(od);
1529 }); 1613 });
1530 }); 1614 });
1531 1615
1532 1616
1617 unittest.group("obj-schema-TeamDriveBackgroundImageFile", () {
1618 unittest.test("to-json--from-json", () {
1619 var o = buildTeamDriveBackgroundImageFile();
1620 var od = new api.TeamDriveBackgroundImageFile.fromJson(o.toJson());
1621 checkTeamDriveBackgroundImageFile(od);
1622 });
1623 });
1624
1625
1533 unittest.group("obj-schema-TeamDriveCapabilities", () { 1626 unittest.group("obj-schema-TeamDriveCapabilities", () {
1534 unittest.test("to-json--from-json", () { 1627 unittest.test("to-json--from-json", () {
1535 var o = buildTeamDriveCapabilities(); 1628 var o = buildTeamDriveCapabilities();
1536 var od = new api.TeamDriveCapabilities.fromJson(o.toJson()); 1629 var od = new api.TeamDriveCapabilities.fromJson(o.toJson());
1537 checkTeamDriveCapabilities(od); 1630 checkTeamDriveCapabilities(od);
1538 }); 1631 });
1539 }); 1632 });
1540 1633
1541 1634
1542 unittest.group("obj-schema-TeamDrive", () { 1635 unittest.group("obj-schema-TeamDrive", () {
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3854 res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync(((api.T eamDrive response) { 3947 res.update(arg_request, arg_teamDriveId).then(unittest.expectAsync(((api.T eamDrive response) {
3855 checkTeamDrive(response); 3948 checkTeamDrive(response);
3856 }))); 3949 })));
3857 }); 3950 });
3858 3951
3859 }); 3952 });
3860 3953
3861 3954
3862 } 3955 }
3863 3956
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