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

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

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.drive.v2.test; 1 library googleapis.drive.v2.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 buildUnnamed704() { 54 buildUnnamed963() {
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 checkUnnamed704(core.List<core.String> o) { 61 checkUnnamed963(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 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0; 67 core.int buildCounterAboutAdditionalRoleInfoRoleSets = 0;
68 buildAboutAdditionalRoleInfoRoleSets() { 68 buildAboutAdditionalRoleInfoRoleSets() {
69 var o = new api.AboutAdditionalRoleInfoRoleSets(); 69 var o = new api.AboutAdditionalRoleInfoRoleSets();
70 buildCounterAboutAdditionalRoleInfoRoleSets++; 70 buildCounterAboutAdditionalRoleInfoRoleSets++;
71 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { 71 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
72 o.additionalRoles = buildUnnamed704(); 72 o.additionalRoles = buildUnnamed963();
73 o.primaryRole = "foo"; 73 o.primaryRole = "foo";
74 } 74 }
75 buildCounterAboutAdditionalRoleInfoRoleSets--; 75 buildCounterAboutAdditionalRoleInfoRoleSets--;
76 return o; 76 return o;
77 } 77 }
78 78
79 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { 79 checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) {
80 buildCounterAboutAdditionalRoleInfoRoleSets++; 80 buildCounterAboutAdditionalRoleInfoRoleSets++;
81 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { 81 if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) {
82 checkUnnamed704(o.additionalRoles); 82 checkUnnamed963(o.additionalRoles);
83 unittest.expect(o.primaryRole, unittest.equals('foo')); 83 unittest.expect(o.primaryRole, unittest.equals('foo'));
84 } 84 }
85 buildCounterAboutAdditionalRoleInfoRoleSets--; 85 buildCounterAboutAdditionalRoleInfoRoleSets--;
86 } 86 }
87 87
88 buildUnnamed705() { 88 buildUnnamed964() {
89 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); 89 var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>();
90 o.add(buildAboutAdditionalRoleInfoRoleSets()); 90 o.add(buildAboutAdditionalRoleInfoRoleSets());
91 o.add(buildAboutAdditionalRoleInfoRoleSets()); 91 o.add(buildAboutAdditionalRoleInfoRoleSets());
92 return o; 92 return o;
93 } 93 }
94 94
95 checkUnnamed705(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { 95 checkUnnamed964(core.List<api.AboutAdditionalRoleInfoRoleSets> o) {
96 unittest.expect(o, unittest.hasLength(2)); 96 unittest.expect(o, unittest.hasLength(2));
97 checkAboutAdditionalRoleInfoRoleSets(o[0]); 97 checkAboutAdditionalRoleInfoRoleSets(o[0]);
98 checkAboutAdditionalRoleInfoRoleSets(o[1]); 98 checkAboutAdditionalRoleInfoRoleSets(o[1]);
99 } 99 }
100 100
101 core.int buildCounterAboutAdditionalRoleInfo = 0; 101 core.int buildCounterAboutAdditionalRoleInfo = 0;
102 buildAboutAdditionalRoleInfo() { 102 buildAboutAdditionalRoleInfo() {
103 var o = new api.AboutAdditionalRoleInfo(); 103 var o = new api.AboutAdditionalRoleInfo();
104 buildCounterAboutAdditionalRoleInfo++; 104 buildCounterAboutAdditionalRoleInfo++;
105 if (buildCounterAboutAdditionalRoleInfo < 3) { 105 if (buildCounterAboutAdditionalRoleInfo < 3) {
106 o.roleSets = buildUnnamed705(); 106 o.roleSets = buildUnnamed964();
107 o.type = "foo"; 107 o.type = "foo";
108 } 108 }
109 buildCounterAboutAdditionalRoleInfo--; 109 buildCounterAboutAdditionalRoleInfo--;
110 return o; 110 return o;
111 } 111 }
112 112
113 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { 113 checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) {
114 buildCounterAboutAdditionalRoleInfo++; 114 buildCounterAboutAdditionalRoleInfo++;
115 if (buildCounterAboutAdditionalRoleInfo < 3) { 115 if (buildCounterAboutAdditionalRoleInfo < 3) {
116 checkUnnamed705(o.roleSets); 116 checkUnnamed964(o.roleSets);
117 unittest.expect(o.type, unittest.equals('foo')); 117 unittest.expect(o.type, unittest.equals('foo'));
118 } 118 }
119 buildCounterAboutAdditionalRoleInfo--; 119 buildCounterAboutAdditionalRoleInfo--;
120 } 120 }
121 121
122 buildUnnamed706() { 122 buildUnnamed965() {
123 var o = new core.List<api.AboutAdditionalRoleInfo>(); 123 var o = new core.List<api.AboutAdditionalRoleInfo>();
124 o.add(buildAboutAdditionalRoleInfo()); 124 o.add(buildAboutAdditionalRoleInfo());
125 o.add(buildAboutAdditionalRoleInfo()); 125 o.add(buildAboutAdditionalRoleInfo());
126 return o; 126 return o;
127 } 127 }
128 128
129 checkUnnamed706(core.List<api.AboutAdditionalRoleInfo> o) { 129 checkUnnamed965(core.List<api.AboutAdditionalRoleInfo> o) {
130 unittest.expect(o, unittest.hasLength(2)); 130 unittest.expect(o, unittest.hasLength(2));
131 checkAboutAdditionalRoleInfo(o[0]); 131 checkAboutAdditionalRoleInfo(o[0]);
132 checkAboutAdditionalRoleInfo(o[1]); 132 checkAboutAdditionalRoleInfo(o[1]);
133 } 133 }
134 134
135 buildUnnamed707() { 135 buildUnnamed966() {
136 var o = new core.List<core.String>(); 136 var o = new core.List<core.String>();
137 o.add("foo"); 137 o.add("foo");
138 o.add("foo"); 138 o.add("foo");
139 return o; 139 return o;
140 } 140 }
141 141
142 checkUnnamed707(core.List<core.String> o) { 142 checkUnnamed966(core.List<core.String> o) {
143 unittest.expect(o, unittest.hasLength(2)); 143 unittest.expect(o, unittest.hasLength(2));
144 unittest.expect(o[0], unittest.equals('foo')); 144 unittest.expect(o[0], unittest.equals('foo'));
145 unittest.expect(o[1], unittest.equals('foo')); 145 unittest.expect(o[1], unittest.equals('foo'));
146 } 146 }
147 147
148 core.int buildCounterAboutExportFormats = 0; 148 core.int buildCounterAboutExportFormats = 0;
149 buildAboutExportFormats() { 149 buildAboutExportFormats() {
150 var o = new api.AboutExportFormats(); 150 var o = new api.AboutExportFormats();
151 buildCounterAboutExportFormats++; 151 buildCounterAboutExportFormats++;
152 if (buildCounterAboutExportFormats < 3) { 152 if (buildCounterAboutExportFormats < 3) {
153 o.source = "foo"; 153 o.source = "foo";
154 o.targets = buildUnnamed707(); 154 o.targets = buildUnnamed966();
155 } 155 }
156 buildCounterAboutExportFormats--; 156 buildCounterAboutExportFormats--;
157 return o; 157 return o;
158 } 158 }
159 159
160 checkAboutExportFormats(api.AboutExportFormats o) { 160 checkAboutExportFormats(api.AboutExportFormats o) {
161 buildCounterAboutExportFormats++; 161 buildCounterAboutExportFormats++;
162 if (buildCounterAboutExportFormats < 3) { 162 if (buildCounterAboutExportFormats < 3) {
163 unittest.expect(o.source, unittest.equals('foo')); 163 unittest.expect(o.source, unittest.equals('foo'));
164 checkUnnamed707(o.targets); 164 checkUnnamed966(o.targets);
165 } 165 }
166 buildCounterAboutExportFormats--; 166 buildCounterAboutExportFormats--;
167 } 167 }
168 168
169 buildUnnamed708() { 169 buildUnnamed967() {
170 var o = new core.List<api.AboutExportFormats>(); 170 var o = new core.List<api.AboutExportFormats>();
171 o.add(buildAboutExportFormats()); 171 o.add(buildAboutExportFormats());
172 o.add(buildAboutExportFormats()); 172 o.add(buildAboutExportFormats());
173 return o; 173 return o;
174 } 174 }
175 175
176 checkUnnamed708(core.List<api.AboutExportFormats> o) { 176 checkUnnamed967(core.List<api.AboutExportFormats> o) {
177 unittest.expect(o, unittest.hasLength(2)); 177 unittest.expect(o, unittest.hasLength(2));
178 checkAboutExportFormats(o[0]); 178 checkAboutExportFormats(o[0]);
179 checkAboutExportFormats(o[1]); 179 checkAboutExportFormats(o[1]);
180 } 180 }
181 181
182 core.int buildCounterAboutFeatures = 0; 182 core.int buildCounterAboutFeatures = 0;
183 buildAboutFeatures() { 183 buildAboutFeatures() {
184 var o = new api.AboutFeatures(); 184 var o = new api.AboutFeatures();
185 buildCounterAboutFeatures++; 185 buildCounterAboutFeatures++;
186 if (buildCounterAboutFeatures < 3) { 186 if (buildCounterAboutFeatures < 3) {
187 o.featureName = "foo"; 187 o.featureName = "foo";
188 o.featureRate = 42.0; 188 o.featureRate = 42.0;
189 } 189 }
190 buildCounterAboutFeatures--; 190 buildCounterAboutFeatures--;
191 return o; 191 return o;
192 } 192 }
193 193
194 checkAboutFeatures(api.AboutFeatures o) { 194 checkAboutFeatures(api.AboutFeatures o) {
195 buildCounterAboutFeatures++; 195 buildCounterAboutFeatures++;
196 if (buildCounterAboutFeatures < 3) { 196 if (buildCounterAboutFeatures < 3) {
197 unittest.expect(o.featureName, unittest.equals('foo')); 197 unittest.expect(o.featureName, unittest.equals('foo'));
198 unittest.expect(o.featureRate, unittest.equals(42.0)); 198 unittest.expect(o.featureRate, unittest.equals(42.0));
199 } 199 }
200 buildCounterAboutFeatures--; 200 buildCounterAboutFeatures--;
201 } 201 }
202 202
203 buildUnnamed709() { 203 buildUnnamed968() {
204 var o = new core.List<api.AboutFeatures>(); 204 var o = new core.List<api.AboutFeatures>();
205 o.add(buildAboutFeatures()); 205 o.add(buildAboutFeatures());
206 o.add(buildAboutFeatures()); 206 o.add(buildAboutFeatures());
207 return o; 207 return o;
208 } 208 }
209 209
210 checkUnnamed709(core.List<api.AboutFeatures> o) { 210 checkUnnamed968(core.List<api.AboutFeatures> o) {
211 unittest.expect(o, unittest.hasLength(2)); 211 unittest.expect(o, unittest.hasLength(2));
212 checkAboutFeatures(o[0]); 212 checkAboutFeatures(o[0]);
213 checkAboutFeatures(o[1]); 213 checkAboutFeatures(o[1]);
214 } 214 }
215 215
216 buildUnnamed710() { 216 buildUnnamed969() {
217 var o = new core.List<core.String>(); 217 var o = new core.List<core.String>();
218 o.add("foo"); 218 o.add("foo");
219 o.add("foo"); 219 o.add("foo");
220 return o; 220 return o;
221 } 221 }
222 222
223 checkUnnamed710(core.List<core.String> o) { 223 checkUnnamed969(core.List<core.String> o) {
224 unittest.expect(o, unittest.hasLength(2)); 224 unittest.expect(o, unittest.hasLength(2));
225 unittest.expect(o[0], unittest.equals('foo')); 225 unittest.expect(o[0], unittest.equals('foo'));
226 unittest.expect(o[1], unittest.equals('foo')); 226 unittest.expect(o[1], unittest.equals('foo'));
227 } 227 }
228 228
229 buildUnnamed711() { 229 buildUnnamed970() {
230 var o = new core.List<core.String>(); 230 var o = new core.List<core.String>();
231 o.add("foo"); 231 o.add("foo");
232 o.add("foo"); 232 o.add("foo");
233 return o; 233 return o;
234 } 234 }
235 235
236 checkUnnamed711(core.List<core.String> o) { 236 checkUnnamed970(core.List<core.String> o) {
237 unittest.expect(o, unittest.hasLength(2)); 237 unittest.expect(o, unittest.hasLength(2));
238 unittest.expect(o[0], unittest.equals('foo')); 238 unittest.expect(o[0], unittest.equals('foo'));
239 unittest.expect(o[1], unittest.equals('foo')); 239 unittest.expect(o[1], unittest.equals('foo'));
240 } 240 }
241 241
242 core.int buildCounterAboutImportFormats = 0; 242 core.int buildCounterAboutImportFormats = 0;
243 buildAboutImportFormats() { 243 buildAboutImportFormats() {
244 var o = new api.AboutImportFormats(); 244 var o = new api.AboutImportFormats();
245 buildCounterAboutImportFormats++; 245 buildCounterAboutImportFormats++;
246 if (buildCounterAboutImportFormats < 3) { 246 if (buildCounterAboutImportFormats < 3) {
247 o.source = "foo"; 247 o.source = "foo";
248 o.targets = buildUnnamed711(); 248 o.targets = buildUnnamed970();
249 } 249 }
250 buildCounterAboutImportFormats--; 250 buildCounterAboutImportFormats--;
251 return o; 251 return o;
252 } 252 }
253 253
254 checkAboutImportFormats(api.AboutImportFormats o) { 254 checkAboutImportFormats(api.AboutImportFormats o) {
255 buildCounterAboutImportFormats++; 255 buildCounterAboutImportFormats++;
256 if (buildCounterAboutImportFormats < 3) { 256 if (buildCounterAboutImportFormats < 3) {
257 unittest.expect(o.source, unittest.equals('foo')); 257 unittest.expect(o.source, unittest.equals('foo'));
258 checkUnnamed711(o.targets); 258 checkUnnamed970(o.targets);
259 } 259 }
260 buildCounterAboutImportFormats--; 260 buildCounterAboutImportFormats--;
261 } 261 }
262 262
263 buildUnnamed712() { 263 buildUnnamed971() {
264 var o = new core.List<api.AboutImportFormats>(); 264 var o = new core.List<api.AboutImportFormats>();
265 o.add(buildAboutImportFormats()); 265 o.add(buildAboutImportFormats());
266 o.add(buildAboutImportFormats()); 266 o.add(buildAboutImportFormats());
267 return o; 267 return o;
268 } 268 }
269 269
270 checkUnnamed712(core.List<api.AboutImportFormats> o) { 270 checkUnnamed971(core.List<api.AboutImportFormats> o) {
271 unittest.expect(o, unittest.hasLength(2)); 271 unittest.expect(o, unittest.hasLength(2));
272 checkAboutImportFormats(o[0]); 272 checkAboutImportFormats(o[0]);
273 checkAboutImportFormats(o[1]); 273 checkAboutImportFormats(o[1]);
274 } 274 }
275 275
276 core.int buildCounterAboutMaxUploadSizes = 0; 276 core.int buildCounterAboutMaxUploadSizes = 0;
277 buildAboutMaxUploadSizes() { 277 buildAboutMaxUploadSizes() {
278 var o = new api.AboutMaxUploadSizes(); 278 var o = new api.AboutMaxUploadSizes();
279 buildCounterAboutMaxUploadSizes++; 279 buildCounterAboutMaxUploadSizes++;
280 if (buildCounterAboutMaxUploadSizes < 3) { 280 if (buildCounterAboutMaxUploadSizes < 3) {
281 o.size = "foo"; 281 o.size = "foo";
282 o.type = "foo"; 282 o.type = "foo";
283 } 283 }
284 buildCounterAboutMaxUploadSizes--; 284 buildCounterAboutMaxUploadSizes--;
285 return o; 285 return o;
286 } 286 }
287 287
288 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { 288 checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) {
289 buildCounterAboutMaxUploadSizes++; 289 buildCounterAboutMaxUploadSizes++;
290 if (buildCounterAboutMaxUploadSizes < 3) { 290 if (buildCounterAboutMaxUploadSizes < 3) {
291 unittest.expect(o.size, unittest.equals('foo')); 291 unittest.expect(o.size, unittest.equals('foo'));
292 unittest.expect(o.type, unittest.equals('foo')); 292 unittest.expect(o.type, unittest.equals('foo'));
293 } 293 }
294 buildCounterAboutMaxUploadSizes--; 294 buildCounterAboutMaxUploadSizes--;
295 } 295 }
296 296
297 buildUnnamed713() { 297 buildUnnamed972() {
298 var o = new core.List<api.AboutMaxUploadSizes>(); 298 var o = new core.List<api.AboutMaxUploadSizes>();
299 o.add(buildAboutMaxUploadSizes()); 299 o.add(buildAboutMaxUploadSizes());
300 o.add(buildAboutMaxUploadSizes()); 300 o.add(buildAboutMaxUploadSizes());
301 return o; 301 return o;
302 } 302 }
303 303
304 checkUnnamed713(core.List<api.AboutMaxUploadSizes> o) { 304 checkUnnamed972(core.List<api.AboutMaxUploadSizes> o) {
305 unittest.expect(o, unittest.hasLength(2)); 305 unittest.expect(o, unittest.hasLength(2));
306 checkAboutMaxUploadSizes(o[0]); 306 checkAboutMaxUploadSizes(o[0]);
307 checkAboutMaxUploadSizes(o[1]); 307 checkAboutMaxUploadSizes(o[1]);
308 } 308 }
309 309
310 core.int buildCounterAboutQuotaBytesByService = 0; 310 core.int buildCounterAboutQuotaBytesByService = 0;
311 buildAboutQuotaBytesByService() { 311 buildAboutQuotaBytesByService() {
312 var o = new api.AboutQuotaBytesByService(); 312 var o = new api.AboutQuotaBytesByService();
313 buildCounterAboutQuotaBytesByService++; 313 buildCounterAboutQuotaBytesByService++;
314 if (buildCounterAboutQuotaBytesByService < 3) { 314 if (buildCounterAboutQuotaBytesByService < 3) {
315 o.bytesUsed = "foo"; 315 o.bytesUsed = "foo";
316 o.serviceName = "foo"; 316 o.serviceName = "foo";
317 } 317 }
318 buildCounterAboutQuotaBytesByService--; 318 buildCounterAboutQuotaBytesByService--;
319 return o; 319 return o;
320 } 320 }
321 321
322 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { 322 checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) {
323 buildCounterAboutQuotaBytesByService++; 323 buildCounterAboutQuotaBytesByService++;
324 if (buildCounterAboutQuotaBytesByService < 3) { 324 if (buildCounterAboutQuotaBytesByService < 3) {
325 unittest.expect(o.bytesUsed, unittest.equals('foo')); 325 unittest.expect(o.bytesUsed, unittest.equals('foo'));
326 unittest.expect(o.serviceName, unittest.equals('foo')); 326 unittest.expect(o.serviceName, unittest.equals('foo'));
327 } 327 }
328 buildCounterAboutQuotaBytesByService--; 328 buildCounterAboutQuotaBytesByService--;
329 } 329 }
330 330
331 buildUnnamed714() { 331 buildUnnamed973() {
332 var o = new core.List<api.AboutQuotaBytesByService>(); 332 var o = new core.List<api.AboutQuotaBytesByService>();
333 o.add(buildAboutQuotaBytesByService()); 333 o.add(buildAboutQuotaBytesByService());
334 o.add(buildAboutQuotaBytesByService()); 334 o.add(buildAboutQuotaBytesByService());
335 return o; 335 return o;
336 } 336 }
337 337
338 checkUnnamed714(core.List<api.AboutQuotaBytesByService> o) { 338 checkUnnamed973(core.List<api.AboutQuotaBytesByService> o) {
339 unittest.expect(o, unittest.hasLength(2)); 339 unittest.expect(o, unittest.hasLength(2));
340 checkAboutQuotaBytesByService(o[0]); 340 checkAboutQuotaBytesByService(o[0]);
341 checkAboutQuotaBytesByService(o[1]); 341 checkAboutQuotaBytesByService(o[1]);
342 } 342 }
343 343
344 core.int buildCounterAbout = 0; 344 core.int buildCounterAbout = 0;
345 buildAbout() { 345 buildAbout() {
346 var o = new api.About(); 346 var o = new api.About();
347 buildCounterAbout++; 347 buildCounterAbout++;
348 if (buildCounterAbout < 3) { 348 if (buildCounterAbout < 3) {
349 o.additionalRoleInfo = buildUnnamed706(); 349 o.additionalRoleInfo = buildUnnamed965();
350 o.domainSharingPolicy = "foo"; 350 o.domainSharingPolicy = "foo";
351 o.etag = "foo"; 351 o.etag = "foo";
352 o.exportFormats = buildUnnamed708(); 352 o.exportFormats = buildUnnamed967();
353 o.features = buildUnnamed709(); 353 o.features = buildUnnamed968();
354 o.folderColorPalette = buildUnnamed710(); 354 o.folderColorPalette = buildUnnamed969();
355 o.importFormats = buildUnnamed712(); 355 o.importFormats = buildUnnamed971();
356 o.isCurrentAppInstalled = true; 356 o.isCurrentAppInstalled = true;
357 o.kind = "foo"; 357 o.kind = "foo";
358 o.languageCode = "foo"; 358 o.languageCode = "foo";
359 o.largestChangeId = "foo"; 359 o.largestChangeId = "foo";
360 o.maxUploadSizes = buildUnnamed713(); 360 o.maxUploadSizes = buildUnnamed972();
361 o.name = "foo"; 361 o.name = "foo";
362 o.permissionId = "foo"; 362 o.permissionId = "foo";
363 o.quotaBytesByService = buildUnnamed714(); 363 o.quotaBytesByService = buildUnnamed973();
364 o.quotaBytesTotal = "foo"; 364 o.quotaBytesTotal = "foo";
365 o.quotaBytesUsed = "foo"; 365 o.quotaBytesUsed = "foo";
366 o.quotaBytesUsedAggregate = "foo"; 366 o.quotaBytesUsedAggregate = "foo";
367 o.quotaBytesUsedInTrash = "foo"; 367 o.quotaBytesUsedInTrash = "foo";
368 o.quotaType = "foo"; 368 o.quotaType = "foo";
369 o.remainingChangeIds = "foo"; 369 o.remainingChangeIds = "foo";
370 o.rootFolderId = "foo"; 370 o.rootFolderId = "foo";
371 o.selfLink = "foo"; 371 o.selfLink = "foo";
372 o.user = buildUser(); 372 o.user = buildUser();
373 } 373 }
374 buildCounterAbout--; 374 buildCounterAbout--;
375 return o; 375 return o;
376 } 376 }
377 377
378 checkAbout(api.About o) { 378 checkAbout(api.About o) {
379 buildCounterAbout++; 379 buildCounterAbout++;
380 if (buildCounterAbout < 3) { 380 if (buildCounterAbout < 3) {
381 checkUnnamed706(o.additionalRoleInfo); 381 checkUnnamed965(o.additionalRoleInfo);
382 unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); 382 unittest.expect(o.domainSharingPolicy, unittest.equals('foo'));
383 unittest.expect(o.etag, unittest.equals('foo')); 383 unittest.expect(o.etag, unittest.equals('foo'));
384 checkUnnamed708(o.exportFormats); 384 checkUnnamed967(o.exportFormats);
385 checkUnnamed709(o.features); 385 checkUnnamed968(o.features);
386 checkUnnamed710(o.folderColorPalette); 386 checkUnnamed969(o.folderColorPalette);
387 checkUnnamed712(o.importFormats); 387 checkUnnamed971(o.importFormats);
388 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); 388 unittest.expect(o.isCurrentAppInstalled, unittest.isTrue);
389 unittest.expect(o.kind, unittest.equals('foo')); 389 unittest.expect(o.kind, unittest.equals('foo'));
390 unittest.expect(o.languageCode, unittest.equals('foo')); 390 unittest.expect(o.languageCode, unittest.equals('foo'));
391 unittest.expect(o.largestChangeId, unittest.equals('foo')); 391 unittest.expect(o.largestChangeId, unittest.equals('foo'));
392 checkUnnamed713(o.maxUploadSizes); 392 checkUnnamed972(o.maxUploadSizes);
393 unittest.expect(o.name, unittest.equals('foo')); 393 unittest.expect(o.name, unittest.equals('foo'));
394 unittest.expect(o.permissionId, unittest.equals('foo')); 394 unittest.expect(o.permissionId, unittest.equals('foo'));
395 checkUnnamed714(o.quotaBytesByService); 395 checkUnnamed973(o.quotaBytesByService);
396 unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); 396 unittest.expect(o.quotaBytesTotal, unittest.equals('foo'));
397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
398 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); 398 unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo'));
399 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); 399 unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo'));
400 unittest.expect(o.quotaType, unittest.equals('foo')); 400 unittest.expect(o.quotaType, unittest.equals('foo'));
401 unittest.expect(o.remainingChangeIds, unittest.equals('foo')); 401 unittest.expect(o.remainingChangeIds, unittest.equals('foo'));
402 unittest.expect(o.rootFolderId, unittest.equals('foo')); 402 unittest.expect(o.rootFolderId, unittest.equals('foo'));
403 unittest.expect(o.selfLink, unittest.equals('foo')); 403 unittest.expect(o.selfLink, unittest.equals('foo'));
404 checkUser(o.user); 404 checkUser(o.user);
405 } 405 }
(...skipping 16 matching lines...) Expand all
422 checkAppIcons(api.AppIcons o) { 422 checkAppIcons(api.AppIcons o) {
423 buildCounterAppIcons++; 423 buildCounterAppIcons++;
424 if (buildCounterAppIcons < 3) { 424 if (buildCounterAppIcons < 3) {
425 unittest.expect(o.category, unittest.equals('foo')); 425 unittest.expect(o.category, unittest.equals('foo'));
426 unittest.expect(o.iconUrl, unittest.equals('foo')); 426 unittest.expect(o.iconUrl, unittest.equals('foo'));
427 unittest.expect(o.size, unittest.equals(42)); 427 unittest.expect(o.size, unittest.equals(42));
428 } 428 }
429 buildCounterAppIcons--; 429 buildCounterAppIcons--;
430 } 430 }
431 431
432 buildUnnamed715() { 432 buildUnnamed974() {
433 var o = new core.List<api.AppIcons>(); 433 var o = new core.List<api.AppIcons>();
434 o.add(buildAppIcons()); 434 o.add(buildAppIcons());
435 o.add(buildAppIcons()); 435 o.add(buildAppIcons());
436 return o; 436 return o;
437 } 437 }
438 438
439 checkUnnamed715(core.List<api.AppIcons> o) { 439 checkUnnamed974(core.List<api.AppIcons> o) {
440 unittest.expect(o, unittest.hasLength(2)); 440 unittest.expect(o, unittest.hasLength(2));
441 checkAppIcons(o[0]); 441 checkAppIcons(o[0]);
442 checkAppIcons(o[1]); 442 checkAppIcons(o[1]);
443 } 443 }
444 444
445 buildUnnamed716() { 445 buildUnnamed975() {
446 var o = new core.List<core.String>(); 446 var o = new core.List<core.String>();
447 o.add("foo"); 447 o.add("foo");
448 o.add("foo"); 448 o.add("foo");
449 return o; 449 return o;
450 } 450 }
451 451
452 checkUnnamed716(core.List<core.String> o) { 452 checkUnnamed975(core.List<core.String> o) {
453 unittest.expect(o, unittest.hasLength(2)); 453 unittest.expect(o, unittest.hasLength(2));
454 unittest.expect(o[0], unittest.equals('foo')); 454 unittest.expect(o[0], unittest.equals('foo'));
455 unittest.expect(o[1], unittest.equals('foo')); 455 unittest.expect(o[1], unittest.equals('foo'));
456 } 456 }
457 457
458 buildUnnamed717() { 458 buildUnnamed976() {
459 var o = new core.List<core.String>(); 459 var o = new core.List<core.String>();
460 o.add("foo"); 460 o.add("foo");
461 o.add("foo"); 461 o.add("foo");
462 return o; 462 return o;
463 } 463 }
464 464
465 checkUnnamed717(core.List<core.String> o) { 465 checkUnnamed976(core.List<core.String> o) {
466 unittest.expect(o, unittest.hasLength(2)); 466 unittest.expect(o, unittest.hasLength(2));
467 unittest.expect(o[0], unittest.equals('foo')); 467 unittest.expect(o[0], unittest.equals('foo'));
468 unittest.expect(o[1], unittest.equals('foo')); 468 unittest.expect(o[1], unittest.equals('foo'));
469 } 469 }
470 470
471 buildUnnamed718() { 471 buildUnnamed977() {
472 var o = new core.List<core.String>(); 472 var o = new core.List<core.String>();
473 o.add("foo"); 473 o.add("foo");
474 o.add("foo"); 474 o.add("foo");
475 return o; 475 return o;
476 } 476 }
477 477
478 checkUnnamed718(core.List<core.String> o) { 478 checkUnnamed977(core.List<core.String> o) {
479 unittest.expect(o, unittest.hasLength(2)); 479 unittest.expect(o, unittest.hasLength(2));
480 unittest.expect(o[0], unittest.equals('foo')); 480 unittest.expect(o[0], unittest.equals('foo'));
481 unittest.expect(o[1], unittest.equals('foo')); 481 unittest.expect(o[1], unittest.equals('foo'));
482 } 482 }
483 483
484 buildUnnamed719() { 484 buildUnnamed978() {
485 var o = new core.List<core.String>(); 485 var o = new core.List<core.String>();
486 o.add("foo"); 486 o.add("foo");
487 o.add("foo"); 487 o.add("foo");
488 return o; 488 return o;
489 } 489 }
490 490
491 checkUnnamed719(core.List<core.String> o) { 491 checkUnnamed978(core.List<core.String> o) {
492 unittest.expect(o, unittest.hasLength(2)); 492 unittest.expect(o, unittest.hasLength(2));
493 unittest.expect(o[0], unittest.equals('foo')); 493 unittest.expect(o[0], unittest.equals('foo'));
494 unittest.expect(o[1], unittest.equals('foo')); 494 unittest.expect(o[1], unittest.equals('foo'));
495 } 495 }
496 496
497 core.int buildCounterApp = 0; 497 core.int buildCounterApp = 0;
498 buildApp() { 498 buildApp() {
499 var o = new api.App(); 499 var o = new api.App();
500 buildCounterApp++; 500 buildCounterApp++;
501 if (buildCounterApp < 3) { 501 if (buildCounterApp < 3) {
502 o.authorized = true; 502 o.authorized = true;
503 o.createInFolderTemplate = "foo"; 503 o.createInFolderTemplate = "foo";
504 o.createUrl = "foo"; 504 o.createUrl = "foo";
505 o.hasDriveWideScope = true; 505 o.hasDriveWideScope = true;
506 o.icons = buildUnnamed715(); 506 o.icons = buildUnnamed974();
507 o.id = "foo"; 507 o.id = "foo";
508 o.installed = true; 508 o.installed = true;
509 o.kind = "foo"; 509 o.kind = "foo";
510 o.longDescription = "foo"; 510 o.longDescription = "foo";
511 o.name = "foo"; 511 o.name = "foo";
512 o.objectType = "foo"; 512 o.objectType = "foo";
513 o.openUrlTemplate = "foo"; 513 o.openUrlTemplate = "foo";
514 o.primaryFileExtensions = buildUnnamed716(); 514 o.primaryFileExtensions = buildUnnamed975();
515 o.primaryMimeTypes = buildUnnamed717(); 515 o.primaryMimeTypes = buildUnnamed976();
516 o.productId = "foo"; 516 o.productId = "foo";
517 o.productUrl = "foo"; 517 o.productUrl = "foo";
518 o.secondaryFileExtensions = buildUnnamed718(); 518 o.secondaryFileExtensions = buildUnnamed977();
519 o.secondaryMimeTypes = buildUnnamed719(); 519 o.secondaryMimeTypes = buildUnnamed978();
520 o.shortDescription = "foo"; 520 o.shortDescription = "foo";
521 o.supportsCreate = true; 521 o.supportsCreate = true;
522 o.supportsImport = true; 522 o.supportsImport = true;
523 o.supportsMultiOpen = true; 523 o.supportsMultiOpen = true;
524 o.supportsOfflineCreate = true; 524 o.supportsOfflineCreate = true;
525 o.useByDefault = true; 525 o.useByDefault = true;
526 } 526 }
527 buildCounterApp--; 527 buildCounterApp--;
528 return o; 528 return o;
529 } 529 }
530 530
531 checkApp(api.App o) { 531 checkApp(api.App o) {
532 buildCounterApp++; 532 buildCounterApp++;
533 if (buildCounterApp < 3) { 533 if (buildCounterApp < 3) {
534 unittest.expect(o.authorized, unittest.isTrue); 534 unittest.expect(o.authorized, unittest.isTrue);
535 unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); 535 unittest.expect(o.createInFolderTemplate, unittest.equals('foo'));
536 unittest.expect(o.createUrl, unittest.equals('foo')); 536 unittest.expect(o.createUrl, unittest.equals('foo'));
537 unittest.expect(o.hasDriveWideScope, unittest.isTrue); 537 unittest.expect(o.hasDriveWideScope, unittest.isTrue);
538 checkUnnamed715(o.icons); 538 checkUnnamed974(o.icons);
539 unittest.expect(o.id, unittest.equals('foo')); 539 unittest.expect(o.id, unittest.equals('foo'));
540 unittest.expect(o.installed, unittest.isTrue); 540 unittest.expect(o.installed, unittest.isTrue);
541 unittest.expect(o.kind, unittest.equals('foo')); 541 unittest.expect(o.kind, unittest.equals('foo'));
542 unittest.expect(o.longDescription, unittest.equals('foo')); 542 unittest.expect(o.longDescription, unittest.equals('foo'));
543 unittest.expect(o.name, unittest.equals('foo')); 543 unittest.expect(o.name, unittest.equals('foo'));
544 unittest.expect(o.objectType, unittest.equals('foo')); 544 unittest.expect(o.objectType, unittest.equals('foo'));
545 unittest.expect(o.openUrlTemplate, unittest.equals('foo')); 545 unittest.expect(o.openUrlTemplate, unittest.equals('foo'));
546 checkUnnamed716(o.primaryFileExtensions); 546 checkUnnamed975(o.primaryFileExtensions);
547 checkUnnamed717(o.primaryMimeTypes); 547 checkUnnamed976(o.primaryMimeTypes);
548 unittest.expect(o.productId, unittest.equals('foo')); 548 unittest.expect(o.productId, unittest.equals('foo'));
549 unittest.expect(o.productUrl, unittest.equals('foo')); 549 unittest.expect(o.productUrl, unittest.equals('foo'));
550 checkUnnamed718(o.secondaryFileExtensions); 550 checkUnnamed977(o.secondaryFileExtensions);
551 checkUnnamed719(o.secondaryMimeTypes); 551 checkUnnamed978(o.secondaryMimeTypes);
552 unittest.expect(o.shortDescription, unittest.equals('foo')); 552 unittest.expect(o.shortDescription, unittest.equals('foo'));
553 unittest.expect(o.supportsCreate, unittest.isTrue); 553 unittest.expect(o.supportsCreate, unittest.isTrue);
554 unittest.expect(o.supportsImport, unittest.isTrue); 554 unittest.expect(o.supportsImport, unittest.isTrue);
555 unittest.expect(o.supportsMultiOpen, unittest.isTrue); 555 unittest.expect(o.supportsMultiOpen, unittest.isTrue);
556 unittest.expect(o.supportsOfflineCreate, unittest.isTrue); 556 unittest.expect(o.supportsOfflineCreate, unittest.isTrue);
557 unittest.expect(o.useByDefault, unittest.isTrue); 557 unittest.expect(o.useByDefault, unittest.isTrue);
558 } 558 }
559 buildCounterApp--; 559 buildCounterApp--;
560 } 560 }
561 561
562 buildUnnamed720() { 562 buildUnnamed979() {
563 var o = new core.List<core.String>(); 563 var o = new core.List<core.String>();
564 o.add("foo"); 564 o.add("foo");
565 o.add("foo"); 565 o.add("foo");
566 return o; 566 return o;
567 } 567 }
568 568
569 checkUnnamed720(core.List<core.String> o) { 569 checkUnnamed979(core.List<core.String> o) {
570 unittest.expect(o, unittest.hasLength(2)); 570 unittest.expect(o, unittest.hasLength(2));
571 unittest.expect(o[0], unittest.equals('foo')); 571 unittest.expect(o[0], unittest.equals('foo'));
572 unittest.expect(o[1], unittest.equals('foo')); 572 unittest.expect(o[1], unittest.equals('foo'));
573 } 573 }
574 574
575 buildUnnamed721() { 575 buildUnnamed980() {
576 var o = new core.List<api.App>(); 576 var o = new core.List<api.App>();
577 o.add(buildApp()); 577 o.add(buildApp());
578 o.add(buildApp()); 578 o.add(buildApp());
579 return o; 579 return o;
580 } 580 }
581 581
582 checkUnnamed721(core.List<api.App> o) { 582 checkUnnamed980(core.List<api.App> o) {
583 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
584 checkApp(o[0]); 584 checkApp(o[0]);
585 checkApp(o[1]); 585 checkApp(o[1]);
586 } 586 }
587 587
588 core.int buildCounterAppList = 0; 588 core.int buildCounterAppList = 0;
589 buildAppList() { 589 buildAppList() {
590 var o = new api.AppList(); 590 var o = new api.AppList();
591 buildCounterAppList++; 591 buildCounterAppList++;
592 if (buildCounterAppList < 3) { 592 if (buildCounterAppList < 3) {
593 o.defaultAppIds = buildUnnamed720(); 593 o.defaultAppIds = buildUnnamed979();
594 o.etag = "foo"; 594 o.etag = "foo";
595 o.items = buildUnnamed721(); 595 o.items = buildUnnamed980();
596 o.kind = "foo"; 596 o.kind = "foo";
597 o.selfLink = "foo"; 597 o.selfLink = "foo";
598 } 598 }
599 buildCounterAppList--; 599 buildCounterAppList--;
600 return o; 600 return o;
601 } 601 }
602 602
603 checkAppList(api.AppList o) { 603 checkAppList(api.AppList o) {
604 buildCounterAppList++; 604 buildCounterAppList++;
605 if (buildCounterAppList < 3) { 605 if (buildCounterAppList < 3) {
606 checkUnnamed720(o.defaultAppIds); 606 checkUnnamed979(o.defaultAppIds);
607 unittest.expect(o.etag, unittest.equals('foo')); 607 unittest.expect(o.etag, unittest.equals('foo'));
608 checkUnnamed721(o.items); 608 checkUnnamed980(o.items);
609 unittest.expect(o.kind, unittest.equals('foo')); 609 unittest.expect(o.kind, unittest.equals('foo'));
610 unittest.expect(o.selfLink, unittest.equals('foo')); 610 unittest.expect(o.selfLink, unittest.equals('foo'));
611 } 611 }
612 buildCounterAppList--; 612 buildCounterAppList--;
613 } 613 }
614 614
615 core.int buildCounterChange = 0; 615 core.int buildCounterChange = 0;
616 buildChange() { 616 buildChange() {
617 var o = new api.Change(); 617 var o = new api.Change();
618 buildCounterChange++; 618 buildCounterChange++;
(...skipping 17 matching lines...) Expand all
636 checkFile(o.file); 636 checkFile(o.file);
637 unittest.expect(o.fileId, unittest.equals('foo')); 637 unittest.expect(o.fileId, unittest.equals('foo'));
638 unittest.expect(o.id, unittest.equals('foo')); 638 unittest.expect(o.id, unittest.equals('foo'));
639 unittest.expect(o.kind, unittest.equals('foo')); 639 unittest.expect(o.kind, unittest.equals('foo'));
640 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 640 unittest.expect(o.modificationDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
641 unittest.expect(o.selfLink, unittest.equals('foo')); 641 unittest.expect(o.selfLink, unittest.equals('foo'));
642 } 642 }
643 buildCounterChange--; 643 buildCounterChange--;
644 } 644 }
645 645
646 buildUnnamed722() { 646 buildUnnamed981() {
647 var o = new core.List<api.Change>(); 647 var o = new core.List<api.Change>();
648 o.add(buildChange()); 648 o.add(buildChange());
649 o.add(buildChange()); 649 o.add(buildChange());
650 return o; 650 return o;
651 } 651 }
652 652
653 checkUnnamed722(core.List<api.Change> o) { 653 checkUnnamed981(core.List<api.Change> o) {
654 unittest.expect(o, unittest.hasLength(2)); 654 unittest.expect(o, unittest.hasLength(2));
655 checkChange(o[0]); 655 checkChange(o[0]);
656 checkChange(o[1]); 656 checkChange(o[1]);
657 } 657 }
658 658
659 core.int buildCounterChangeList = 0; 659 core.int buildCounterChangeList = 0;
660 buildChangeList() { 660 buildChangeList() {
661 var o = new api.ChangeList(); 661 var o = new api.ChangeList();
662 buildCounterChangeList++; 662 buildCounterChangeList++;
663 if (buildCounterChangeList < 3) { 663 if (buildCounterChangeList < 3) {
664 o.etag = "foo"; 664 o.etag = "foo";
665 o.items = buildUnnamed722(); 665 o.items = buildUnnamed981();
666 o.kind = "foo"; 666 o.kind = "foo";
667 o.largestChangeId = "foo"; 667 o.largestChangeId = "foo";
668 o.nextLink = "foo"; 668 o.nextLink = "foo";
669 o.nextPageToken = "foo"; 669 o.nextPageToken = "foo";
670 o.selfLink = "foo"; 670 o.selfLink = "foo";
671 } 671 }
672 buildCounterChangeList--; 672 buildCounterChangeList--;
673 return o; 673 return o;
674 } 674 }
675 675
676 checkChangeList(api.ChangeList o) { 676 checkChangeList(api.ChangeList o) {
677 buildCounterChangeList++; 677 buildCounterChangeList++;
678 if (buildCounterChangeList < 3) { 678 if (buildCounterChangeList < 3) {
679 unittest.expect(o.etag, unittest.equals('foo')); 679 unittest.expect(o.etag, unittest.equals('foo'));
680 checkUnnamed722(o.items); 680 checkUnnamed981(o.items);
681 unittest.expect(o.kind, unittest.equals('foo')); 681 unittest.expect(o.kind, unittest.equals('foo'));
682 unittest.expect(o.largestChangeId, unittest.equals('foo')); 682 unittest.expect(o.largestChangeId, unittest.equals('foo'));
683 unittest.expect(o.nextLink, unittest.equals('foo')); 683 unittest.expect(o.nextLink, unittest.equals('foo'));
684 unittest.expect(o.nextPageToken, unittest.equals('foo')); 684 unittest.expect(o.nextPageToken, unittest.equals('foo'));
685 unittest.expect(o.selfLink, unittest.equals('foo')); 685 unittest.expect(o.selfLink, unittest.equals('foo'));
686 } 686 }
687 buildCounterChangeList--; 687 buildCounterChangeList--;
688 } 688 }
689 689
690 buildUnnamed723() { 690 buildUnnamed982() {
691 var o = new core.Map<core.String, core.String>(); 691 var o = new core.Map<core.String, core.String>();
692 o["x"] = "foo"; 692 o["x"] = "foo";
693 o["y"] = "foo"; 693 o["y"] = "foo";
694 return o; 694 return o;
695 } 695 }
696 696
697 checkUnnamed723(core.Map<core.String, core.String> o) { 697 checkUnnamed982(core.Map<core.String, core.String> o) {
698 unittest.expect(o, unittest.hasLength(2)); 698 unittest.expect(o, unittest.hasLength(2));
699 unittest.expect(o["x"], unittest.equals('foo')); 699 unittest.expect(o["x"], unittest.equals('foo'));
700 unittest.expect(o["y"], unittest.equals('foo')); 700 unittest.expect(o["y"], unittest.equals('foo'));
701 } 701 }
702 702
703 core.int buildCounterChannel = 0; 703 core.int buildCounterChannel = 0;
704 buildChannel() { 704 buildChannel() {
705 var o = new api.Channel(); 705 var o = new api.Channel();
706 buildCounterChannel++; 706 buildCounterChannel++;
707 if (buildCounterChannel < 3) { 707 if (buildCounterChannel < 3) {
708 o.address = "foo"; 708 o.address = "foo";
709 o.expiration = "foo"; 709 o.expiration = "foo";
710 o.id = "foo"; 710 o.id = "foo";
711 o.kind = "foo"; 711 o.kind = "foo";
712 o.params = buildUnnamed723(); 712 o.params = buildUnnamed982();
713 o.payload = true; 713 o.payload = true;
714 o.resourceId = "foo"; 714 o.resourceId = "foo";
715 o.resourceUri = "foo"; 715 o.resourceUri = "foo";
716 o.token = "foo"; 716 o.token = "foo";
717 o.type = "foo"; 717 o.type = "foo";
718 } 718 }
719 buildCounterChannel--; 719 buildCounterChannel--;
720 return o; 720 return o;
721 } 721 }
722 722
723 checkChannel(api.Channel o) { 723 checkChannel(api.Channel o) {
724 buildCounterChannel++; 724 buildCounterChannel++;
725 if (buildCounterChannel < 3) { 725 if (buildCounterChannel < 3) {
726 unittest.expect(o.address, unittest.equals('foo')); 726 unittest.expect(o.address, unittest.equals('foo'));
727 unittest.expect(o.expiration, unittest.equals('foo')); 727 unittest.expect(o.expiration, unittest.equals('foo'));
728 unittest.expect(o.id, unittest.equals('foo')); 728 unittest.expect(o.id, unittest.equals('foo'));
729 unittest.expect(o.kind, unittest.equals('foo')); 729 unittest.expect(o.kind, unittest.equals('foo'));
730 checkUnnamed723(o.params); 730 checkUnnamed982(o.params);
731 unittest.expect(o.payload, unittest.isTrue); 731 unittest.expect(o.payload, unittest.isTrue);
732 unittest.expect(o.resourceId, unittest.equals('foo')); 732 unittest.expect(o.resourceId, unittest.equals('foo'));
733 unittest.expect(o.resourceUri, unittest.equals('foo')); 733 unittest.expect(o.resourceUri, unittest.equals('foo'));
734 unittest.expect(o.token, unittest.equals('foo')); 734 unittest.expect(o.token, unittest.equals('foo'));
735 unittest.expect(o.type, unittest.equals('foo')); 735 unittest.expect(o.type, unittest.equals('foo'));
736 } 736 }
737 buildCounterChannel--; 737 buildCounterChannel--;
738 } 738 }
739 739
740 buildUnnamed724() { 740 buildUnnamed983() {
741 var o = new core.List<api.ChildReference>(); 741 var o = new core.List<api.ChildReference>();
742 o.add(buildChildReference()); 742 o.add(buildChildReference());
743 o.add(buildChildReference()); 743 o.add(buildChildReference());
744 return o; 744 return o;
745 } 745 }
746 746
747 checkUnnamed724(core.List<api.ChildReference> o) { 747 checkUnnamed983(core.List<api.ChildReference> o) {
748 unittest.expect(o, unittest.hasLength(2)); 748 unittest.expect(o, unittest.hasLength(2));
749 checkChildReference(o[0]); 749 checkChildReference(o[0]);
750 checkChildReference(o[1]); 750 checkChildReference(o[1]);
751 } 751 }
752 752
753 core.int buildCounterChildList = 0; 753 core.int buildCounterChildList = 0;
754 buildChildList() { 754 buildChildList() {
755 var o = new api.ChildList(); 755 var o = new api.ChildList();
756 buildCounterChildList++; 756 buildCounterChildList++;
757 if (buildCounterChildList < 3) { 757 if (buildCounterChildList < 3) {
758 o.etag = "foo"; 758 o.etag = "foo";
759 o.items = buildUnnamed724(); 759 o.items = buildUnnamed983();
760 o.kind = "foo"; 760 o.kind = "foo";
761 o.nextLink = "foo"; 761 o.nextLink = "foo";
762 o.nextPageToken = "foo"; 762 o.nextPageToken = "foo";
763 o.selfLink = "foo"; 763 o.selfLink = "foo";
764 } 764 }
765 buildCounterChildList--; 765 buildCounterChildList--;
766 return o; 766 return o;
767 } 767 }
768 768
769 checkChildList(api.ChildList o) { 769 checkChildList(api.ChildList o) {
770 buildCounterChildList++; 770 buildCounterChildList++;
771 if (buildCounterChildList < 3) { 771 if (buildCounterChildList < 3) {
772 unittest.expect(o.etag, unittest.equals('foo')); 772 unittest.expect(o.etag, unittest.equals('foo'));
773 checkUnnamed724(o.items); 773 checkUnnamed983(o.items);
774 unittest.expect(o.kind, unittest.equals('foo')); 774 unittest.expect(o.kind, unittest.equals('foo'));
775 unittest.expect(o.nextLink, unittest.equals('foo')); 775 unittest.expect(o.nextLink, unittest.equals('foo'));
776 unittest.expect(o.nextPageToken, unittest.equals('foo')); 776 unittest.expect(o.nextPageToken, unittest.equals('foo'));
777 unittest.expect(o.selfLink, unittest.equals('foo')); 777 unittest.expect(o.selfLink, unittest.equals('foo'));
778 } 778 }
779 buildCounterChildList--; 779 buildCounterChildList--;
780 } 780 }
781 781
782 core.int buildCounterChildReference = 0; 782 core.int buildCounterChildReference = 0;
783 buildChildReference() { 783 buildChildReference() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 818
819 checkCommentContext(api.CommentContext o) { 819 checkCommentContext(api.CommentContext o) {
820 buildCounterCommentContext++; 820 buildCounterCommentContext++;
821 if (buildCounterCommentContext < 3) { 821 if (buildCounterCommentContext < 3) {
822 unittest.expect(o.type, unittest.equals('foo')); 822 unittest.expect(o.type, unittest.equals('foo'));
823 unittest.expect(o.value, unittest.equals('foo')); 823 unittest.expect(o.value, unittest.equals('foo'));
824 } 824 }
825 buildCounterCommentContext--; 825 buildCounterCommentContext--;
826 } 826 }
827 827
828 buildUnnamed725() { 828 buildUnnamed984() {
829 var o = new core.List<api.CommentReply>(); 829 var o = new core.List<api.CommentReply>();
830 o.add(buildCommentReply()); 830 o.add(buildCommentReply());
831 o.add(buildCommentReply()); 831 o.add(buildCommentReply());
832 return o; 832 return o;
833 } 833 }
834 834
835 checkUnnamed725(core.List<api.CommentReply> o) { 835 checkUnnamed984(core.List<api.CommentReply> o) {
836 unittest.expect(o, unittest.hasLength(2)); 836 unittest.expect(o, unittest.hasLength(2));
837 checkCommentReply(o[0]); 837 checkCommentReply(o[0]);
838 checkCommentReply(o[1]); 838 checkCommentReply(o[1]);
839 } 839 }
840 840
841 core.int buildCounterComment = 0; 841 core.int buildCounterComment = 0;
842 buildComment() { 842 buildComment() {
843 var o = new api.Comment(); 843 var o = new api.Comment();
844 buildCounterComment++; 844 buildCounterComment++;
845 if (buildCounterComment < 3) { 845 if (buildCounterComment < 3) {
846 o.anchor = "foo"; 846 o.anchor = "foo";
847 o.author = buildUser(); 847 o.author = buildUser();
848 o.commentId = "foo"; 848 o.commentId = "foo";
849 o.content = "foo"; 849 o.content = "foo";
850 o.context = buildCommentContext(); 850 o.context = buildCommentContext();
851 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); 851 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
852 o.deleted = true; 852 o.deleted = true;
853 o.fileId = "foo"; 853 o.fileId = "foo";
854 o.fileTitle = "foo"; 854 o.fileTitle = "foo";
855 o.htmlContent = "foo"; 855 o.htmlContent = "foo";
856 o.kind = "foo"; 856 o.kind = "foo";
857 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 857 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
858 o.replies = buildUnnamed725(); 858 o.replies = buildUnnamed984();
859 o.selfLink = "foo"; 859 o.selfLink = "foo";
860 o.status = "foo"; 860 o.status = "foo";
861 } 861 }
862 buildCounterComment--; 862 buildCounterComment--;
863 return o; 863 return o;
864 } 864 }
865 865
866 checkComment(api.Comment o) { 866 checkComment(api.Comment o) {
867 buildCounterComment++; 867 buildCounterComment++;
868 if (buildCounterComment < 3) { 868 if (buildCounterComment < 3) {
869 unittest.expect(o.anchor, unittest.equals('foo')); 869 unittest.expect(o.anchor, unittest.equals('foo'));
870 checkUser(o.author); 870 checkUser(o.author);
871 unittest.expect(o.commentId, unittest.equals('foo')); 871 unittest.expect(o.commentId, unittest.equals('foo'));
872 unittest.expect(o.content, unittest.equals('foo')); 872 unittest.expect(o.content, unittest.equals('foo'));
873 checkCommentContext(o.context); 873 checkCommentContext(o.context);
874 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 874 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
875 unittest.expect(o.deleted, unittest.isTrue); 875 unittest.expect(o.deleted, unittest.isTrue);
876 unittest.expect(o.fileId, unittest.equals('foo')); 876 unittest.expect(o.fileId, unittest.equals('foo'));
877 unittest.expect(o.fileTitle, unittest.equals('foo')); 877 unittest.expect(o.fileTitle, unittest.equals('foo'));
878 unittest.expect(o.htmlContent, unittest.equals('foo')); 878 unittest.expect(o.htmlContent, unittest.equals('foo'));
879 unittest.expect(o.kind, unittest.equals('foo')); 879 unittest.expect(o.kind, unittest.equals('foo'));
880 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 880 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
881 checkUnnamed725(o.replies); 881 checkUnnamed984(o.replies);
882 unittest.expect(o.selfLink, unittest.equals('foo')); 882 unittest.expect(o.selfLink, unittest.equals('foo'));
883 unittest.expect(o.status, unittest.equals('foo')); 883 unittest.expect(o.status, unittest.equals('foo'));
884 } 884 }
885 buildCounterComment--; 885 buildCounterComment--;
886 } 886 }
887 887
888 buildUnnamed726() { 888 buildUnnamed985() {
889 var o = new core.List<api.Comment>(); 889 var o = new core.List<api.Comment>();
890 o.add(buildComment()); 890 o.add(buildComment());
891 o.add(buildComment()); 891 o.add(buildComment());
892 return o; 892 return o;
893 } 893 }
894 894
895 checkUnnamed726(core.List<api.Comment> o) { 895 checkUnnamed985(core.List<api.Comment> o) {
896 unittest.expect(o, unittest.hasLength(2)); 896 unittest.expect(o, unittest.hasLength(2));
897 checkComment(o[0]); 897 checkComment(o[0]);
898 checkComment(o[1]); 898 checkComment(o[1]);
899 } 899 }
900 900
901 core.int buildCounterCommentList = 0; 901 core.int buildCounterCommentList = 0;
902 buildCommentList() { 902 buildCommentList() {
903 var o = new api.CommentList(); 903 var o = new api.CommentList();
904 buildCounterCommentList++; 904 buildCounterCommentList++;
905 if (buildCounterCommentList < 3) { 905 if (buildCounterCommentList < 3) {
906 o.items = buildUnnamed726(); 906 o.items = buildUnnamed985();
907 o.kind = "foo"; 907 o.kind = "foo";
908 o.nextLink = "foo"; 908 o.nextLink = "foo";
909 o.nextPageToken = "foo"; 909 o.nextPageToken = "foo";
910 o.selfLink = "foo"; 910 o.selfLink = "foo";
911 } 911 }
912 buildCounterCommentList--; 912 buildCounterCommentList--;
913 return o; 913 return o;
914 } 914 }
915 915
916 checkCommentList(api.CommentList o) { 916 checkCommentList(api.CommentList o) {
917 buildCounterCommentList++; 917 buildCounterCommentList++;
918 if (buildCounterCommentList < 3) { 918 if (buildCounterCommentList < 3) {
919 checkUnnamed726(o.items); 919 checkUnnamed985(o.items);
920 unittest.expect(o.kind, unittest.equals('foo')); 920 unittest.expect(o.kind, unittest.equals('foo'));
921 unittest.expect(o.nextLink, unittest.equals('foo')); 921 unittest.expect(o.nextLink, unittest.equals('foo'));
922 unittest.expect(o.nextPageToken, unittest.equals('foo')); 922 unittest.expect(o.nextPageToken, unittest.equals('foo'));
923 unittest.expect(o.selfLink, unittest.equals('foo')); 923 unittest.expect(o.selfLink, unittest.equals('foo'));
924 } 924 }
925 buildCounterCommentList--; 925 buildCounterCommentList--;
926 } 926 }
927 927
928 core.int buildCounterCommentReply = 0; 928 core.int buildCounterCommentReply = 0;
929 buildCommentReply() { 929 buildCommentReply() {
(...skipping 23 matching lines...) Expand all
953 unittest.expect(o.deleted, unittest.isTrue); 953 unittest.expect(o.deleted, unittest.isTrue);
954 unittest.expect(o.htmlContent, unittest.equals('foo')); 954 unittest.expect(o.htmlContent, unittest.equals('foo'));
955 unittest.expect(o.kind, unittest.equals('foo')); 955 unittest.expect(o.kind, unittest.equals('foo'));
956 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 956 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
957 unittest.expect(o.replyId, unittest.equals('foo')); 957 unittest.expect(o.replyId, unittest.equals('foo'));
958 unittest.expect(o.verb, unittest.equals('foo')); 958 unittest.expect(o.verb, unittest.equals('foo'));
959 } 959 }
960 buildCounterCommentReply--; 960 buildCounterCommentReply--;
961 } 961 }
962 962
963 buildUnnamed727() { 963 buildUnnamed986() {
964 var o = new core.List<api.CommentReply>(); 964 var o = new core.List<api.CommentReply>();
965 o.add(buildCommentReply()); 965 o.add(buildCommentReply());
966 o.add(buildCommentReply()); 966 o.add(buildCommentReply());
967 return o; 967 return o;
968 } 968 }
969 969
970 checkUnnamed727(core.List<api.CommentReply> o) { 970 checkUnnamed986(core.List<api.CommentReply> o) {
971 unittest.expect(o, unittest.hasLength(2)); 971 unittest.expect(o, unittest.hasLength(2));
972 checkCommentReply(o[0]); 972 checkCommentReply(o[0]);
973 checkCommentReply(o[1]); 973 checkCommentReply(o[1]);
974 } 974 }
975 975
976 core.int buildCounterCommentReplyList = 0; 976 core.int buildCounterCommentReplyList = 0;
977 buildCommentReplyList() { 977 buildCommentReplyList() {
978 var o = new api.CommentReplyList(); 978 var o = new api.CommentReplyList();
979 buildCounterCommentReplyList++; 979 buildCounterCommentReplyList++;
980 if (buildCounterCommentReplyList < 3) { 980 if (buildCounterCommentReplyList < 3) {
981 o.items = buildUnnamed727(); 981 o.items = buildUnnamed986();
982 o.kind = "foo"; 982 o.kind = "foo";
983 o.nextLink = "foo"; 983 o.nextLink = "foo";
984 o.nextPageToken = "foo"; 984 o.nextPageToken = "foo";
985 o.selfLink = "foo"; 985 o.selfLink = "foo";
986 } 986 }
987 buildCounterCommentReplyList--; 987 buildCounterCommentReplyList--;
988 return o; 988 return o;
989 } 989 }
990 990
991 checkCommentReplyList(api.CommentReplyList o) { 991 checkCommentReplyList(api.CommentReplyList o) {
992 buildCounterCommentReplyList++; 992 buildCounterCommentReplyList++;
993 if (buildCounterCommentReplyList < 3) { 993 if (buildCounterCommentReplyList < 3) {
994 checkUnnamed727(o.items); 994 checkUnnamed986(o.items);
995 unittest.expect(o.kind, unittest.equals('foo')); 995 unittest.expect(o.kind, unittest.equals('foo'));
996 unittest.expect(o.nextLink, unittest.equals('foo')); 996 unittest.expect(o.nextLink, unittest.equals('foo'));
997 unittest.expect(o.nextPageToken, unittest.equals('foo')); 997 unittest.expect(o.nextPageToken, unittest.equals('foo'));
998 unittest.expect(o.selfLink, unittest.equals('foo')); 998 unittest.expect(o.selfLink, unittest.equals('foo'));
999 } 999 }
1000 buildCounterCommentReplyList--; 1000 buildCounterCommentReplyList--;
1001 } 1001 }
1002 1002
1003 buildUnnamed728() { 1003 buildUnnamed987() {
1004 var o = new core.Map<core.String, core.String>(); 1004 var o = new core.Map<core.String, core.String>();
1005 o["x"] = "foo"; 1005 o["x"] = "foo";
1006 o["y"] = "foo"; 1006 o["y"] = "foo";
1007 return o; 1007 return o;
1008 } 1008 }
1009 1009
1010 checkUnnamed728(core.Map<core.String, core.String> o) { 1010 checkUnnamed987(core.Map<core.String, core.String> o) {
1011 unittest.expect(o, unittest.hasLength(2)); 1011 unittest.expect(o, unittest.hasLength(2));
1012 unittest.expect(o["x"], unittest.equals('foo')); 1012 unittest.expect(o["x"], unittest.equals('foo'));
1013 unittest.expect(o["y"], unittest.equals('foo')); 1013 unittest.expect(o["y"], unittest.equals('foo'));
1014 } 1014 }
1015 1015
1016 core.int buildCounterFileImageMediaMetadataLocation = 0; 1016 core.int buildCounterFileImageMediaMetadataLocation = 0;
1017 buildFileImageMediaMetadataLocation() { 1017 buildFileImageMediaMetadataLocation() {
1018 var o = new api.FileImageMediaMetadataLocation(); 1018 var o = new api.FileImageMediaMetadataLocation();
1019 buildCounterFileImageMediaMetadataLocation++; 1019 buildCounterFileImageMediaMetadataLocation++;
1020 if (buildCounterFileImageMediaMetadataLocation < 3) { 1020 if (buildCounterFileImageMediaMetadataLocation < 3) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 if (buildCounterFileLabels < 3) { 1134 if (buildCounterFileLabels < 3) {
1135 unittest.expect(o.hidden, unittest.isTrue); 1135 unittest.expect(o.hidden, unittest.isTrue);
1136 unittest.expect(o.restricted, unittest.isTrue); 1136 unittest.expect(o.restricted, unittest.isTrue);
1137 unittest.expect(o.starred, unittest.isTrue); 1137 unittest.expect(o.starred, unittest.isTrue);
1138 unittest.expect(o.trashed, unittest.isTrue); 1138 unittest.expect(o.trashed, unittest.isTrue);
1139 unittest.expect(o.viewed, unittest.isTrue); 1139 unittest.expect(o.viewed, unittest.isTrue);
1140 } 1140 }
1141 buildCounterFileLabels--; 1141 buildCounterFileLabels--;
1142 } 1142 }
1143 1143
1144 buildUnnamed729() { 1144 buildUnnamed988() {
1145 var o = new core.Map<core.String, core.String>(); 1145 var o = new core.Map<core.String, core.String>();
1146 o["x"] = "foo"; 1146 o["x"] = "foo";
1147 o["y"] = "foo"; 1147 o["y"] = "foo";
1148 return o; 1148 return o;
1149 } 1149 }
1150 1150
1151 checkUnnamed729(core.Map<core.String, core.String> o) { 1151 checkUnnamed988(core.Map<core.String, core.String> o) {
1152 unittest.expect(o, unittest.hasLength(2)); 1152 unittest.expect(o, unittest.hasLength(2));
1153 unittest.expect(o["x"], unittest.equals('foo')); 1153 unittest.expect(o["x"], unittest.equals('foo'));
1154 unittest.expect(o["y"], unittest.equals('foo')); 1154 unittest.expect(o["y"], unittest.equals('foo'));
1155 } 1155 }
1156 1156
1157 buildUnnamed730() { 1157 buildUnnamed989() {
1158 var o = new core.List<core.String>(); 1158 var o = new core.List<core.String>();
1159 o.add("foo"); 1159 o.add("foo");
1160 o.add("foo"); 1160 o.add("foo");
1161 return o; 1161 return o;
1162 } 1162 }
1163 1163
1164 checkUnnamed730(core.List<core.String> o) { 1164 checkUnnamed989(core.List<core.String> o) {
1165 unittest.expect(o, unittest.hasLength(2)); 1165 unittest.expect(o, unittest.hasLength(2));
1166 unittest.expect(o[0], unittest.equals('foo')); 1166 unittest.expect(o[0], unittest.equals('foo'));
1167 unittest.expect(o[1], unittest.equals('foo')); 1167 unittest.expect(o[1], unittest.equals('foo'));
1168 } 1168 }
1169 1169
1170 buildUnnamed731() { 1170 buildUnnamed990() {
1171 var o = new core.List<api.User>(); 1171 var o = new core.List<api.User>();
1172 o.add(buildUser()); 1172 o.add(buildUser());
1173 o.add(buildUser()); 1173 o.add(buildUser());
1174 return o; 1174 return o;
1175 } 1175 }
1176 1176
1177 checkUnnamed731(core.List<api.User> o) { 1177 checkUnnamed990(core.List<api.User> o) {
1178 unittest.expect(o, unittest.hasLength(2)); 1178 unittest.expect(o, unittest.hasLength(2));
1179 checkUser(o[0]); 1179 checkUser(o[0]);
1180 checkUser(o[1]); 1180 checkUser(o[1]);
1181 } 1181 }
1182 1182
1183 buildUnnamed732() { 1183 buildUnnamed991() {
1184 var o = new core.List<api.ParentReference>(); 1184 var o = new core.List<api.ParentReference>();
1185 o.add(buildParentReference()); 1185 o.add(buildParentReference());
1186 o.add(buildParentReference()); 1186 o.add(buildParentReference());
1187 return o; 1187 return o;
1188 } 1188 }
1189 1189
1190 checkUnnamed732(core.List<api.ParentReference> o) { 1190 checkUnnamed991(core.List<api.ParentReference> o) {
1191 unittest.expect(o, unittest.hasLength(2)); 1191 unittest.expect(o, unittest.hasLength(2));
1192 checkParentReference(o[0]); 1192 checkParentReference(o[0]);
1193 checkParentReference(o[1]); 1193 checkParentReference(o[1]);
1194 } 1194 }
1195 1195
1196 buildUnnamed733() { 1196 buildUnnamed992() {
1197 var o = new core.List<api.Permission>(); 1197 var o = new core.List<api.Permission>();
1198 o.add(buildPermission()); 1198 o.add(buildPermission());
1199 o.add(buildPermission()); 1199 o.add(buildPermission());
1200 return o; 1200 return o;
1201 } 1201 }
1202 1202
1203 checkUnnamed733(core.List<api.Permission> o) { 1203 checkUnnamed992(core.List<api.Permission> o) {
1204 unittest.expect(o, unittest.hasLength(2)); 1204 unittest.expect(o, unittest.hasLength(2));
1205 checkPermission(o[0]); 1205 checkPermission(o[0]);
1206 checkPermission(o[1]); 1206 checkPermission(o[1]);
1207 } 1207 }
1208 1208
1209 buildUnnamed734() { 1209 buildUnnamed993() {
1210 var o = new core.List<api.Property>(); 1210 var o = new core.List<api.Property>();
1211 o.add(buildProperty()); 1211 o.add(buildProperty());
1212 o.add(buildProperty()); 1212 o.add(buildProperty());
1213 return o; 1213 return o;
1214 } 1214 }
1215 1215
1216 checkUnnamed734(core.List<api.Property> o) { 1216 checkUnnamed993(core.List<api.Property> o) {
1217 unittest.expect(o, unittest.hasLength(2)); 1217 unittest.expect(o, unittest.hasLength(2));
1218 checkProperty(o[0]); 1218 checkProperty(o[0]);
1219 checkProperty(o[1]); 1219 checkProperty(o[1]);
1220 } 1220 }
1221 1221
1222 buildUnnamed735() { 1222 buildUnnamed994() {
1223 var o = new core.List<core.String>(); 1223 var o = new core.List<core.String>();
1224 o.add("foo"); 1224 o.add("foo");
1225 o.add("foo"); 1225 o.add("foo");
1226 return o; 1226 return o;
1227 } 1227 }
1228 1228
1229 checkUnnamed735(core.List<core.String> o) { 1229 checkUnnamed994(core.List<core.String> o) {
1230 unittest.expect(o, unittest.hasLength(2)); 1230 unittest.expect(o, unittest.hasLength(2));
1231 unittest.expect(o[0], unittest.equals('foo')); 1231 unittest.expect(o[0], unittest.equals('foo'));
1232 unittest.expect(o[1], unittest.equals('foo')); 1232 unittest.expect(o[1], unittest.equals('foo'));
1233 } 1233 }
1234 1234
1235 core.int buildCounterFileThumbnail = 0; 1235 core.int buildCounterFileThumbnail = 0;
1236 buildFileThumbnail() { 1236 buildFileThumbnail() {
1237 var o = new api.FileThumbnail(); 1237 var o = new api.FileThumbnail();
1238 buildCounterFileThumbnail++; 1238 buildCounterFileThumbnail++;
1239 if (buildCounterFileThumbnail < 3) { 1239 if (buildCounterFileThumbnail < 3) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 } 1277 }
1278 1278
1279 core.int buildCounterFile = 0; 1279 core.int buildCounterFile = 0;
1280 buildFile() { 1280 buildFile() {
1281 var o = new api.File(); 1281 var o = new api.File();
1282 buildCounterFile++; 1282 buildCounterFile++;
1283 if (buildCounterFile < 3) { 1283 if (buildCounterFile < 3) {
1284 o.alternateLink = "foo"; 1284 o.alternateLink = "foo";
1285 o.appDataContents = true; 1285 o.appDataContents = true;
1286 o.canComment = true; 1286 o.canComment = true;
1287 o.canReadRevisions = true;
1287 o.copyable = true; 1288 o.copyable = true;
1288 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); 1289 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
1289 o.defaultOpenWithLink = "foo"; 1290 o.defaultOpenWithLink = "foo";
1290 o.description = "foo"; 1291 o.description = "foo";
1291 o.downloadUrl = "foo"; 1292 o.downloadUrl = "foo";
1292 o.editable = true; 1293 o.editable = true;
1293 o.embedLink = "foo"; 1294 o.embedLink = "foo";
1294 o.etag = "foo"; 1295 o.etag = "foo";
1295 o.explicitlyTrashed = true; 1296 o.explicitlyTrashed = true;
1296 o.exportLinks = buildUnnamed728(); 1297 o.exportLinks = buildUnnamed987();
1297 o.fileExtension = "foo"; 1298 o.fileExtension = "foo";
1298 o.fileSize = "foo"; 1299 o.fileSize = "foo";
1299 o.folderColorRgb = "foo"; 1300 o.folderColorRgb = "foo";
1300 o.fullFileExtension = "foo"; 1301 o.fullFileExtension = "foo";
1301 o.headRevisionId = "foo"; 1302 o.headRevisionId = "foo";
1302 o.iconLink = "foo"; 1303 o.iconLink = "foo";
1303 o.id = "foo"; 1304 o.id = "foo";
1304 o.imageMediaMetadata = buildFileImageMediaMetadata(); 1305 o.imageMediaMetadata = buildFileImageMediaMetadata();
1305 o.indexableText = buildFileIndexableText(); 1306 o.indexableText = buildFileIndexableText();
1306 o.kind = "foo"; 1307 o.kind = "foo";
1307 o.labels = buildFileLabels(); 1308 o.labels = buildFileLabels();
1308 o.lastModifyingUser = buildUser(); 1309 o.lastModifyingUser = buildUser();
1309 o.lastModifyingUserName = "foo"; 1310 o.lastModifyingUserName = "foo";
1310 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1311 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1311 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1312 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1312 o.md5Checksum = "foo"; 1313 o.md5Checksum = "foo";
1313 o.mimeType = "foo"; 1314 o.mimeType = "foo";
1314 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1315 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1315 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1316 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1316 o.openWithLinks = buildUnnamed729(); 1317 o.openWithLinks = buildUnnamed988();
1317 o.originalFilename = "foo"; 1318 o.originalFilename = "foo";
1318 o.ownedByMe = true; 1319 o.ownedByMe = true;
1319 o.ownerNames = buildUnnamed730(); 1320 o.ownerNames = buildUnnamed989();
1320 o.owners = buildUnnamed731(); 1321 o.owners = buildUnnamed990();
1321 o.parents = buildUnnamed732(); 1322 o.parents = buildUnnamed991();
1322 o.permissions = buildUnnamed733(); 1323 o.permissions = buildUnnamed992();
1323 o.properties = buildUnnamed734(); 1324 o.properties = buildUnnamed993();
1324 o.quotaBytesUsed = "foo"; 1325 o.quotaBytesUsed = "foo";
1325 o.selfLink = "foo"; 1326 o.selfLink = "foo";
1326 o.shareable = true; 1327 o.shareable = true;
1327 o.shared = true; 1328 o.shared = true;
1328 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1329 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1329 o.sharingUser = buildUser(); 1330 o.sharingUser = buildUser();
1330 o.spaces = buildUnnamed735(); 1331 o.spaces = buildUnnamed994();
1331 o.thumbnail = buildFileThumbnail(); 1332 o.thumbnail = buildFileThumbnail();
1332 o.thumbnailLink = "foo"; 1333 o.thumbnailLink = "foo";
1333 o.title = "foo"; 1334 o.title = "foo";
1334 o.userPermission = buildPermission(); 1335 o.userPermission = buildPermission();
1335 o.version = "foo"; 1336 o.version = "foo";
1336 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 1337 o.videoMediaMetadata = buildFileVideoMediaMetadata();
1337 o.webContentLink = "foo"; 1338 o.webContentLink = "foo";
1338 o.webViewLink = "foo"; 1339 o.webViewLink = "foo";
1339 o.writersCanShare = true; 1340 o.writersCanShare = true;
1340 } 1341 }
1341 buildCounterFile--; 1342 buildCounterFile--;
1342 return o; 1343 return o;
1343 } 1344 }
1344 1345
1345 checkFile(api.File o) { 1346 checkFile(api.File o) {
1346 buildCounterFile++; 1347 buildCounterFile++;
1347 if (buildCounterFile < 3) { 1348 if (buildCounterFile < 3) {
1348 unittest.expect(o.alternateLink, unittest.equals('foo')); 1349 unittest.expect(o.alternateLink, unittest.equals('foo'));
1349 unittest.expect(o.appDataContents, unittest.isTrue); 1350 unittest.expect(o.appDataContents, unittest.isTrue);
1350 unittest.expect(o.canComment, unittest.isTrue); 1351 unittest.expect(o.canComment, unittest.isTrue);
1352 unittest.expect(o.canReadRevisions, unittest.isTrue);
1351 unittest.expect(o.copyable, unittest.isTrue); 1353 unittest.expect(o.copyable, unittest.isTrue);
1352 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 1354 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
1353 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); 1355 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
1354 unittest.expect(o.description, unittest.equals('foo')); 1356 unittest.expect(o.description, unittest.equals('foo'));
1355 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1357 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1356 unittest.expect(o.editable, unittest.isTrue); 1358 unittest.expect(o.editable, unittest.isTrue);
1357 unittest.expect(o.embedLink, unittest.equals('foo')); 1359 unittest.expect(o.embedLink, unittest.equals('foo'));
1358 unittest.expect(o.etag, unittest.equals('foo')); 1360 unittest.expect(o.etag, unittest.equals('foo'));
1359 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 1361 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
1360 checkUnnamed728(o.exportLinks); 1362 checkUnnamed987(o.exportLinks);
1361 unittest.expect(o.fileExtension, unittest.equals('foo')); 1363 unittest.expect(o.fileExtension, unittest.equals('foo'));
1362 unittest.expect(o.fileSize, unittest.equals('foo')); 1364 unittest.expect(o.fileSize, unittest.equals('foo'));
1363 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 1365 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
1364 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 1366 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
1365 unittest.expect(o.headRevisionId, unittest.equals('foo')); 1367 unittest.expect(o.headRevisionId, unittest.equals('foo'));
1366 unittest.expect(o.iconLink, unittest.equals('foo')); 1368 unittest.expect(o.iconLink, unittest.equals('foo'));
1367 unittest.expect(o.id, unittest.equals('foo')); 1369 unittest.expect(o.id, unittest.equals('foo'));
1368 checkFileImageMediaMetadata(o.imageMediaMetadata); 1370 checkFileImageMediaMetadata(o.imageMediaMetadata);
1369 checkFileIndexableText(o.indexableText); 1371 checkFileIndexableText(o.indexableText);
1370 unittest.expect(o.kind, unittest.equals('foo')); 1372 unittest.expect(o.kind, unittest.equals('foo'));
1371 checkFileLabels(o.labels); 1373 checkFileLabels(o.labels);
1372 checkUser(o.lastModifyingUser); 1374 checkUser(o.lastModifyingUser);
1373 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1375 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1374 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 1376 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
1375 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02"))); 1377 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02")));
1376 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1378 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1377 unittest.expect(o.mimeType, unittest.equals('foo')); 1379 unittest.expect(o.mimeType, unittest.equals('foo'));
1378 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1380 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1379 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1381 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1380 checkUnnamed729(o.openWithLinks); 1382 checkUnnamed988(o.openWithLinks);
1381 unittest.expect(o.originalFilename, unittest.equals('foo')); 1383 unittest.expect(o.originalFilename, unittest.equals('foo'));
1382 unittest.expect(o.ownedByMe, unittest.isTrue); 1384 unittest.expect(o.ownedByMe, unittest.isTrue);
1383 checkUnnamed730(o.ownerNames); 1385 checkUnnamed989(o.ownerNames);
1384 checkUnnamed731(o.owners); 1386 checkUnnamed990(o.owners);
1385 checkUnnamed732(o.parents); 1387 checkUnnamed991(o.parents);
1386 checkUnnamed733(o.permissions); 1388 checkUnnamed992(o.permissions);
1387 checkUnnamed734(o.properties); 1389 checkUnnamed993(o.properties);
1388 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 1390 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
1389 unittest.expect(o.selfLink, unittest.equals('foo')); 1391 unittest.expect(o.selfLink, unittest.equals('foo'));
1390 unittest.expect(o.shareable, unittest.isTrue); 1392 unittest.expect(o.shareable, unittest.isTrue);
1391 unittest.expect(o.shared, unittest.isTrue); 1393 unittest.expect(o.shared, unittest.isTrue);
1392 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1394 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1393 checkUser(o.sharingUser); 1395 checkUser(o.sharingUser);
1394 checkUnnamed735(o.spaces); 1396 checkUnnamed994(o.spaces);
1395 checkFileThumbnail(o.thumbnail); 1397 checkFileThumbnail(o.thumbnail);
1396 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 1398 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
1397 unittest.expect(o.title, unittest.equals('foo')); 1399 unittest.expect(o.title, unittest.equals('foo'));
1398 checkPermission(o.userPermission); 1400 checkPermission(o.userPermission);
1399 unittest.expect(o.version, unittest.equals('foo')); 1401 unittest.expect(o.version, unittest.equals('foo'));
1400 checkFileVideoMediaMetadata(o.videoMediaMetadata); 1402 checkFileVideoMediaMetadata(o.videoMediaMetadata);
1401 unittest.expect(o.webContentLink, unittest.equals('foo')); 1403 unittest.expect(o.webContentLink, unittest.equals('foo'));
1402 unittest.expect(o.webViewLink, unittest.equals('foo')); 1404 unittest.expect(o.webViewLink, unittest.equals('foo'));
1403 unittest.expect(o.writersCanShare, unittest.isTrue); 1405 unittest.expect(o.writersCanShare, unittest.isTrue);
1404 } 1406 }
1405 buildCounterFile--; 1407 buildCounterFile--;
1406 } 1408 }
1407 1409
1408 buildUnnamed736() { 1410 buildUnnamed995() {
1409 var o = new core.List<api.File>(); 1411 var o = new core.List<api.File>();
1410 o.add(buildFile()); 1412 o.add(buildFile());
1411 o.add(buildFile()); 1413 o.add(buildFile());
1412 return o; 1414 return o;
1413 } 1415 }
1414 1416
1415 checkUnnamed736(core.List<api.File> o) { 1417 checkUnnamed995(core.List<api.File> o) {
1416 unittest.expect(o, unittest.hasLength(2)); 1418 unittest.expect(o, unittest.hasLength(2));
1417 checkFile(o[0]); 1419 checkFile(o[0]);
1418 checkFile(o[1]); 1420 checkFile(o[1]);
1419 } 1421 }
1420 1422
1421 core.int buildCounterFileList = 0; 1423 core.int buildCounterFileList = 0;
1422 buildFileList() { 1424 buildFileList() {
1423 var o = new api.FileList(); 1425 var o = new api.FileList();
1424 buildCounterFileList++; 1426 buildCounterFileList++;
1425 if (buildCounterFileList < 3) { 1427 if (buildCounterFileList < 3) {
1426 o.etag = "foo"; 1428 o.etag = "foo";
1427 o.items = buildUnnamed736(); 1429 o.items = buildUnnamed995();
1428 o.kind = "foo"; 1430 o.kind = "foo";
1429 o.nextLink = "foo"; 1431 o.nextLink = "foo";
1430 o.nextPageToken = "foo"; 1432 o.nextPageToken = "foo";
1431 o.selfLink = "foo"; 1433 o.selfLink = "foo";
1432 } 1434 }
1433 buildCounterFileList--; 1435 buildCounterFileList--;
1434 return o; 1436 return o;
1435 } 1437 }
1436 1438
1437 checkFileList(api.FileList o) { 1439 checkFileList(api.FileList o) {
1438 buildCounterFileList++; 1440 buildCounterFileList++;
1439 if (buildCounterFileList < 3) { 1441 if (buildCounterFileList < 3) {
1440 unittest.expect(o.etag, unittest.equals('foo')); 1442 unittest.expect(o.etag, unittest.equals('foo'));
1441 checkUnnamed736(o.items); 1443 checkUnnamed995(o.items);
1442 unittest.expect(o.kind, unittest.equals('foo')); 1444 unittest.expect(o.kind, unittest.equals('foo'));
1443 unittest.expect(o.nextLink, unittest.equals('foo')); 1445 unittest.expect(o.nextLink, unittest.equals('foo'));
1444 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1446 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1445 unittest.expect(o.selfLink, unittest.equals('foo')); 1447 unittest.expect(o.selfLink, unittest.equals('foo'));
1446 } 1448 }
1447 buildCounterFileList--; 1449 buildCounterFileList--;
1448 } 1450 }
1449 1451
1450 buildUnnamed737() { 1452 buildUnnamed996() {
1451 var o = new core.List<core.String>(); 1453 var o = new core.List<core.String>();
1452 o.add("foo"); 1454 o.add("foo");
1453 o.add("foo"); 1455 o.add("foo");
1454 return o; 1456 return o;
1455 } 1457 }
1456 1458
1457 checkUnnamed737(core.List<core.String> o) { 1459 checkUnnamed996(core.List<core.String> o) {
1458 unittest.expect(o, unittest.hasLength(2)); 1460 unittest.expect(o, unittest.hasLength(2));
1459 unittest.expect(o[0], unittest.equals('foo')); 1461 unittest.expect(o[0], unittest.equals('foo'));
1460 unittest.expect(o[1], unittest.equals('foo')); 1462 unittest.expect(o[1], unittest.equals('foo'));
1461 } 1463 }
1462 1464
1463 core.int buildCounterGeneratedIds = 0; 1465 core.int buildCounterGeneratedIds = 0;
1464 buildGeneratedIds() { 1466 buildGeneratedIds() {
1465 var o = new api.GeneratedIds(); 1467 var o = new api.GeneratedIds();
1466 buildCounterGeneratedIds++; 1468 buildCounterGeneratedIds++;
1467 if (buildCounterGeneratedIds < 3) { 1469 if (buildCounterGeneratedIds < 3) {
1468 o.ids = buildUnnamed737(); 1470 o.ids = buildUnnamed996();
1469 o.kind = "foo"; 1471 o.kind = "foo";
1470 o.space = "foo"; 1472 o.space = "foo";
1471 } 1473 }
1472 buildCounterGeneratedIds--; 1474 buildCounterGeneratedIds--;
1473 return o; 1475 return o;
1474 } 1476 }
1475 1477
1476 checkGeneratedIds(api.GeneratedIds o) { 1478 checkGeneratedIds(api.GeneratedIds o) {
1477 buildCounterGeneratedIds++; 1479 buildCounterGeneratedIds++;
1478 if (buildCounterGeneratedIds < 3) { 1480 if (buildCounterGeneratedIds < 3) {
1479 checkUnnamed737(o.ids); 1481 checkUnnamed996(o.ids);
1480 unittest.expect(o.kind, unittest.equals('foo')); 1482 unittest.expect(o.kind, unittest.equals('foo'));
1481 unittest.expect(o.space, unittest.equals('foo')); 1483 unittest.expect(o.space, unittest.equals('foo'));
1482 } 1484 }
1483 buildCounterGeneratedIds--; 1485 buildCounterGeneratedIds--;
1484 } 1486 }
1485 1487
1486 buildUnnamed738() { 1488 buildUnnamed997() {
1487 var o = new core.List<api.ParentReference>(); 1489 var o = new core.List<api.ParentReference>();
1488 o.add(buildParentReference()); 1490 o.add(buildParentReference());
1489 o.add(buildParentReference()); 1491 o.add(buildParentReference());
1490 return o; 1492 return o;
1491 } 1493 }
1492 1494
1493 checkUnnamed738(core.List<api.ParentReference> o) { 1495 checkUnnamed997(core.List<api.ParentReference> o) {
1494 unittest.expect(o, unittest.hasLength(2)); 1496 unittest.expect(o, unittest.hasLength(2));
1495 checkParentReference(o[0]); 1497 checkParentReference(o[0]);
1496 checkParentReference(o[1]); 1498 checkParentReference(o[1]);
1497 } 1499 }
1498 1500
1499 core.int buildCounterParentList = 0; 1501 core.int buildCounterParentList = 0;
1500 buildParentList() { 1502 buildParentList() {
1501 var o = new api.ParentList(); 1503 var o = new api.ParentList();
1502 buildCounterParentList++; 1504 buildCounterParentList++;
1503 if (buildCounterParentList < 3) { 1505 if (buildCounterParentList < 3) {
1504 o.etag = "foo"; 1506 o.etag = "foo";
1505 o.items = buildUnnamed738(); 1507 o.items = buildUnnamed997();
1506 o.kind = "foo"; 1508 o.kind = "foo";
1507 o.selfLink = "foo"; 1509 o.selfLink = "foo";
1508 } 1510 }
1509 buildCounterParentList--; 1511 buildCounterParentList--;
1510 return o; 1512 return o;
1511 } 1513 }
1512 1514
1513 checkParentList(api.ParentList o) { 1515 checkParentList(api.ParentList o) {
1514 buildCounterParentList++; 1516 buildCounterParentList++;
1515 if (buildCounterParentList < 3) { 1517 if (buildCounterParentList < 3) {
1516 unittest.expect(o.etag, unittest.equals('foo')); 1518 unittest.expect(o.etag, unittest.equals('foo'));
1517 checkUnnamed738(o.items); 1519 checkUnnamed997(o.items);
1518 unittest.expect(o.kind, unittest.equals('foo')); 1520 unittest.expect(o.kind, unittest.equals('foo'));
1519 unittest.expect(o.selfLink, unittest.equals('foo')); 1521 unittest.expect(o.selfLink, unittest.equals('foo'));
1520 } 1522 }
1521 buildCounterParentList--; 1523 buildCounterParentList--;
1522 } 1524 }
1523 1525
1524 core.int buildCounterParentReference = 0; 1526 core.int buildCounterParentReference = 0;
1525 buildParentReference() { 1527 buildParentReference() {
1526 var o = new api.ParentReference(); 1528 var o = new api.ParentReference();
1527 buildCounterParentReference++; 1529 buildCounterParentReference++;
(...skipping 13 matching lines...) Expand all
1541 if (buildCounterParentReference < 3) { 1543 if (buildCounterParentReference < 3) {
1542 unittest.expect(o.id, unittest.equals('foo')); 1544 unittest.expect(o.id, unittest.equals('foo'));
1543 unittest.expect(o.isRoot, unittest.isTrue); 1545 unittest.expect(o.isRoot, unittest.isTrue);
1544 unittest.expect(o.kind, unittest.equals('foo')); 1546 unittest.expect(o.kind, unittest.equals('foo'));
1545 unittest.expect(o.parentLink, unittest.equals('foo')); 1547 unittest.expect(o.parentLink, unittest.equals('foo'));
1546 unittest.expect(o.selfLink, unittest.equals('foo')); 1548 unittest.expect(o.selfLink, unittest.equals('foo'));
1547 } 1549 }
1548 buildCounterParentReference--; 1550 buildCounterParentReference--;
1549 } 1551 }
1550 1552
1551 buildUnnamed739() { 1553 buildUnnamed998() {
1552 var o = new core.List<core.String>(); 1554 var o = new core.List<core.String>();
1553 o.add("foo"); 1555 o.add("foo");
1554 o.add("foo"); 1556 o.add("foo");
1555 return o; 1557 return o;
1556 } 1558 }
1557 1559
1558 checkUnnamed739(core.List<core.String> o) { 1560 checkUnnamed998(core.List<core.String> o) {
1559 unittest.expect(o, unittest.hasLength(2)); 1561 unittest.expect(o, unittest.hasLength(2));
1560 unittest.expect(o[0], unittest.equals('foo')); 1562 unittest.expect(o[0], unittest.equals('foo'));
1561 unittest.expect(o[1], unittest.equals('foo')); 1563 unittest.expect(o[1], unittest.equals('foo'));
1562 } 1564 }
1563 1565
1564 core.int buildCounterPermission = 0; 1566 core.int buildCounterPermission = 0;
1565 buildPermission() { 1567 buildPermission() {
1566 var o = new api.Permission(); 1568 var o = new api.Permission();
1567 buildCounterPermission++; 1569 buildCounterPermission++;
1568 if (buildCounterPermission < 3) { 1570 if (buildCounterPermission < 3) {
1569 o.additionalRoles = buildUnnamed739(); 1571 o.additionalRoles = buildUnnamed998();
1570 o.authKey = "foo"; 1572 o.authKey = "foo";
1571 o.domain = "foo"; 1573 o.domain = "foo";
1572 o.emailAddress = "foo"; 1574 o.emailAddress = "foo";
1573 o.etag = "foo"; 1575 o.etag = "foo";
1574 o.id = "foo"; 1576 o.id = "foo";
1575 o.kind = "foo"; 1577 o.kind = "foo";
1576 o.name = "foo"; 1578 o.name = "foo";
1577 o.photoLink = "foo"; 1579 o.photoLink = "foo";
1578 o.role = "foo"; 1580 o.role = "foo";
1579 o.selfLink = "foo"; 1581 o.selfLink = "foo";
1580 o.type = "foo"; 1582 o.type = "foo";
1581 o.value = "foo"; 1583 o.value = "foo";
1582 o.withLink = true; 1584 o.withLink = true;
1583 } 1585 }
1584 buildCounterPermission--; 1586 buildCounterPermission--;
1585 return o; 1587 return o;
1586 } 1588 }
1587 1589
1588 checkPermission(api.Permission o) { 1590 checkPermission(api.Permission o) {
1589 buildCounterPermission++; 1591 buildCounterPermission++;
1590 if (buildCounterPermission < 3) { 1592 if (buildCounterPermission < 3) {
1591 checkUnnamed739(o.additionalRoles); 1593 checkUnnamed998(o.additionalRoles);
1592 unittest.expect(o.authKey, unittest.equals('foo')); 1594 unittest.expect(o.authKey, unittest.equals('foo'));
1593 unittest.expect(o.domain, unittest.equals('foo')); 1595 unittest.expect(o.domain, unittest.equals('foo'));
1594 unittest.expect(o.emailAddress, unittest.equals('foo')); 1596 unittest.expect(o.emailAddress, unittest.equals('foo'));
1595 unittest.expect(o.etag, unittest.equals('foo')); 1597 unittest.expect(o.etag, unittest.equals('foo'));
1596 unittest.expect(o.id, unittest.equals('foo')); 1598 unittest.expect(o.id, unittest.equals('foo'));
1597 unittest.expect(o.kind, unittest.equals('foo')); 1599 unittest.expect(o.kind, unittest.equals('foo'));
1598 unittest.expect(o.name, unittest.equals('foo')); 1600 unittest.expect(o.name, unittest.equals('foo'));
1599 unittest.expect(o.photoLink, unittest.equals('foo')); 1601 unittest.expect(o.photoLink, unittest.equals('foo'));
1600 unittest.expect(o.role, unittest.equals('foo')); 1602 unittest.expect(o.role, unittest.equals('foo'));
1601 unittest.expect(o.selfLink, unittest.equals('foo')); 1603 unittest.expect(o.selfLink, unittest.equals('foo'));
(...skipping 18 matching lines...) Expand all
1620 1622
1621 checkPermissionId(api.PermissionId o) { 1623 checkPermissionId(api.PermissionId o) {
1622 buildCounterPermissionId++; 1624 buildCounterPermissionId++;
1623 if (buildCounterPermissionId < 3) { 1625 if (buildCounterPermissionId < 3) {
1624 unittest.expect(o.id, unittest.equals('foo')); 1626 unittest.expect(o.id, unittest.equals('foo'));
1625 unittest.expect(o.kind, unittest.equals('foo')); 1627 unittest.expect(o.kind, unittest.equals('foo'));
1626 } 1628 }
1627 buildCounterPermissionId--; 1629 buildCounterPermissionId--;
1628 } 1630 }
1629 1631
1630 buildUnnamed740() { 1632 buildUnnamed999() {
1631 var o = new core.List<api.Permission>(); 1633 var o = new core.List<api.Permission>();
1632 o.add(buildPermission()); 1634 o.add(buildPermission());
1633 o.add(buildPermission()); 1635 o.add(buildPermission());
1634 return o; 1636 return o;
1635 } 1637 }
1636 1638
1637 checkUnnamed740(core.List<api.Permission> o) { 1639 checkUnnamed999(core.List<api.Permission> o) {
1638 unittest.expect(o, unittest.hasLength(2)); 1640 unittest.expect(o, unittest.hasLength(2));
1639 checkPermission(o[0]); 1641 checkPermission(o[0]);
1640 checkPermission(o[1]); 1642 checkPermission(o[1]);
1641 } 1643 }
1642 1644
1643 core.int buildCounterPermissionList = 0; 1645 core.int buildCounterPermissionList = 0;
1644 buildPermissionList() { 1646 buildPermissionList() {
1645 var o = new api.PermissionList(); 1647 var o = new api.PermissionList();
1646 buildCounterPermissionList++; 1648 buildCounterPermissionList++;
1647 if (buildCounterPermissionList < 3) { 1649 if (buildCounterPermissionList < 3) {
1648 o.etag = "foo"; 1650 o.etag = "foo";
1649 o.items = buildUnnamed740(); 1651 o.items = buildUnnamed999();
1650 o.kind = "foo"; 1652 o.kind = "foo";
1651 o.selfLink = "foo"; 1653 o.selfLink = "foo";
1652 } 1654 }
1653 buildCounterPermissionList--; 1655 buildCounterPermissionList--;
1654 return o; 1656 return o;
1655 } 1657 }
1656 1658
1657 checkPermissionList(api.PermissionList o) { 1659 checkPermissionList(api.PermissionList o) {
1658 buildCounterPermissionList++; 1660 buildCounterPermissionList++;
1659 if (buildCounterPermissionList < 3) { 1661 if (buildCounterPermissionList < 3) {
1660 unittest.expect(o.etag, unittest.equals('foo')); 1662 unittest.expect(o.etag, unittest.equals('foo'));
1661 checkUnnamed740(o.items); 1663 checkUnnamed999(o.items);
1662 unittest.expect(o.kind, unittest.equals('foo')); 1664 unittest.expect(o.kind, unittest.equals('foo'));
1663 unittest.expect(o.selfLink, unittest.equals('foo')); 1665 unittest.expect(o.selfLink, unittest.equals('foo'));
1664 } 1666 }
1665 buildCounterPermissionList--; 1667 buildCounterPermissionList--;
1666 } 1668 }
1667 1669
1668 core.int buildCounterProperty = 0; 1670 core.int buildCounterProperty = 0;
1669 buildProperty() { 1671 buildProperty() {
1670 var o = new api.Property(); 1672 var o = new api.Property();
1671 buildCounterProperty++; 1673 buildCounterProperty++;
(...skipping 15 matching lines...) Expand all
1687 unittest.expect(o.etag, unittest.equals('foo')); 1689 unittest.expect(o.etag, unittest.equals('foo'));
1688 unittest.expect(o.key, unittest.equals('foo')); 1690 unittest.expect(o.key, unittest.equals('foo'));
1689 unittest.expect(o.kind, unittest.equals('foo')); 1691 unittest.expect(o.kind, unittest.equals('foo'));
1690 unittest.expect(o.selfLink, unittest.equals('foo')); 1692 unittest.expect(o.selfLink, unittest.equals('foo'));
1691 unittest.expect(o.value, unittest.equals('foo')); 1693 unittest.expect(o.value, unittest.equals('foo'));
1692 unittest.expect(o.visibility, unittest.equals('foo')); 1694 unittest.expect(o.visibility, unittest.equals('foo'));
1693 } 1695 }
1694 buildCounterProperty--; 1696 buildCounterProperty--;
1695 } 1697 }
1696 1698
1697 buildUnnamed741() { 1699 buildUnnamed1000() {
1698 var o = new core.List<api.Property>(); 1700 var o = new core.List<api.Property>();
1699 o.add(buildProperty()); 1701 o.add(buildProperty());
1700 o.add(buildProperty()); 1702 o.add(buildProperty());
1701 return o; 1703 return o;
1702 } 1704 }
1703 1705
1704 checkUnnamed741(core.List<api.Property> o) { 1706 checkUnnamed1000(core.List<api.Property> o) {
1705 unittest.expect(o, unittest.hasLength(2)); 1707 unittest.expect(o, unittest.hasLength(2));
1706 checkProperty(o[0]); 1708 checkProperty(o[0]);
1707 checkProperty(o[1]); 1709 checkProperty(o[1]);
1708 } 1710 }
1709 1711
1710 core.int buildCounterPropertyList = 0; 1712 core.int buildCounterPropertyList = 0;
1711 buildPropertyList() { 1713 buildPropertyList() {
1712 var o = new api.PropertyList(); 1714 var o = new api.PropertyList();
1713 buildCounterPropertyList++; 1715 buildCounterPropertyList++;
1714 if (buildCounterPropertyList < 3) { 1716 if (buildCounterPropertyList < 3) {
1715 o.etag = "foo"; 1717 o.etag = "foo";
1716 o.items = buildUnnamed741(); 1718 o.items = buildUnnamed1000();
1717 o.kind = "foo"; 1719 o.kind = "foo";
1718 o.selfLink = "foo"; 1720 o.selfLink = "foo";
1719 } 1721 }
1720 buildCounterPropertyList--; 1722 buildCounterPropertyList--;
1721 return o; 1723 return o;
1722 } 1724 }
1723 1725
1724 checkPropertyList(api.PropertyList o) { 1726 checkPropertyList(api.PropertyList o) {
1725 buildCounterPropertyList++; 1727 buildCounterPropertyList++;
1726 if (buildCounterPropertyList < 3) { 1728 if (buildCounterPropertyList < 3) {
1727 unittest.expect(o.etag, unittest.equals('foo')); 1729 unittest.expect(o.etag, unittest.equals('foo'));
1728 checkUnnamed741(o.items); 1730 checkUnnamed1000(o.items);
1729 unittest.expect(o.kind, unittest.equals('foo')); 1731 unittest.expect(o.kind, unittest.equals('foo'));
1730 unittest.expect(o.selfLink, unittest.equals('foo')); 1732 unittest.expect(o.selfLink, unittest.equals('foo'));
1731 } 1733 }
1732 buildCounterPropertyList--; 1734 buildCounterPropertyList--;
1733 } 1735 }
1734 1736
1735 buildUnnamed742() { 1737 buildUnnamed1001() {
1736 var o = new core.Map<core.String, core.String>(); 1738 var o = new core.Map<core.String, core.String>();
1737 o["x"] = "foo"; 1739 o["x"] = "foo";
1738 o["y"] = "foo"; 1740 o["y"] = "foo";
1739 return o; 1741 return o;
1740 } 1742 }
1741 1743
1742 checkUnnamed742(core.Map<core.String, core.String> o) { 1744 checkUnnamed1001(core.Map<core.String, core.String> o) {
1743 unittest.expect(o, unittest.hasLength(2)); 1745 unittest.expect(o, unittest.hasLength(2));
1744 unittest.expect(o["x"], unittest.equals('foo')); 1746 unittest.expect(o["x"], unittest.equals('foo'));
1745 unittest.expect(o["y"], unittest.equals('foo')); 1747 unittest.expect(o["y"], unittest.equals('foo'));
1746 } 1748 }
1747 1749
1748 core.int buildCounterRevision = 0; 1750 core.int buildCounterRevision = 0;
1749 buildRevision() { 1751 buildRevision() {
1750 var o = new api.Revision(); 1752 var o = new api.Revision();
1751 buildCounterRevision++; 1753 buildCounterRevision++;
1752 if (buildCounterRevision < 3) { 1754 if (buildCounterRevision < 3) {
1753 o.downloadUrl = "foo"; 1755 o.downloadUrl = "foo";
1754 o.etag = "foo"; 1756 o.etag = "foo";
1755 o.exportLinks = buildUnnamed742(); 1757 o.exportLinks = buildUnnamed1001();
1756 o.fileSize = "foo"; 1758 o.fileSize = "foo";
1757 o.id = "foo"; 1759 o.id = "foo";
1758 o.kind = "foo"; 1760 o.kind = "foo";
1759 o.lastModifyingUser = buildUser(); 1761 o.lastModifyingUser = buildUser();
1760 o.lastModifyingUserName = "foo"; 1762 o.lastModifyingUserName = "foo";
1761 o.md5Checksum = "foo"; 1763 o.md5Checksum = "foo";
1762 o.mimeType = "foo"; 1764 o.mimeType = "foo";
1763 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1765 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1764 o.originalFilename = "foo"; 1766 o.originalFilename = "foo";
1765 o.pinned = true; 1767 o.pinned = true;
1766 o.publishAuto = true; 1768 o.publishAuto = true;
1767 o.published = true; 1769 o.published = true;
1768 o.publishedLink = "foo"; 1770 o.publishedLink = "foo";
1769 o.publishedOutsideDomain = true; 1771 o.publishedOutsideDomain = true;
1770 o.selfLink = "foo"; 1772 o.selfLink = "foo";
1771 } 1773 }
1772 buildCounterRevision--; 1774 buildCounterRevision--;
1773 return o; 1775 return o;
1774 } 1776 }
1775 1777
1776 checkRevision(api.Revision o) { 1778 checkRevision(api.Revision o) {
1777 buildCounterRevision++; 1779 buildCounterRevision++;
1778 if (buildCounterRevision < 3) { 1780 if (buildCounterRevision < 3) {
1779 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1781 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1780 unittest.expect(o.etag, unittest.equals('foo')); 1782 unittest.expect(o.etag, unittest.equals('foo'));
1781 checkUnnamed742(o.exportLinks); 1783 checkUnnamed1001(o.exportLinks);
1782 unittest.expect(o.fileSize, unittest.equals('foo')); 1784 unittest.expect(o.fileSize, unittest.equals('foo'));
1783 unittest.expect(o.id, unittest.equals('foo')); 1785 unittest.expect(o.id, unittest.equals('foo'));
1784 unittest.expect(o.kind, unittest.equals('foo')); 1786 unittest.expect(o.kind, unittest.equals('foo'));
1785 checkUser(o.lastModifyingUser); 1787 checkUser(o.lastModifyingUser);
1786 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1788 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1787 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1789 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1788 unittest.expect(o.mimeType, unittest.equals('foo')); 1790 unittest.expect(o.mimeType, unittest.equals('foo'));
1789 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1791 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1790 unittest.expect(o.originalFilename, unittest.equals('foo')); 1792 unittest.expect(o.originalFilename, unittest.equals('foo'));
1791 unittest.expect(o.pinned, unittest.isTrue); 1793 unittest.expect(o.pinned, unittest.isTrue);
1792 unittest.expect(o.publishAuto, unittest.isTrue); 1794 unittest.expect(o.publishAuto, unittest.isTrue);
1793 unittest.expect(o.published, unittest.isTrue); 1795 unittest.expect(o.published, unittest.isTrue);
1794 unittest.expect(o.publishedLink, unittest.equals('foo')); 1796 unittest.expect(o.publishedLink, unittest.equals('foo'));
1795 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1797 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1796 unittest.expect(o.selfLink, unittest.equals('foo')); 1798 unittest.expect(o.selfLink, unittest.equals('foo'));
1797 } 1799 }
1798 buildCounterRevision--; 1800 buildCounterRevision--;
1799 } 1801 }
1800 1802
1801 buildUnnamed743() { 1803 buildUnnamed1002() {
1802 var o = new core.List<api.Revision>(); 1804 var o = new core.List<api.Revision>();
1803 o.add(buildRevision()); 1805 o.add(buildRevision());
1804 o.add(buildRevision()); 1806 o.add(buildRevision());
1805 return o; 1807 return o;
1806 } 1808 }
1807 1809
1808 checkUnnamed743(core.List<api.Revision> o) { 1810 checkUnnamed1002(core.List<api.Revision> o) {
1809 unittest.expect(o, unittest.hasLength(2)); 1811 unittest.expect(o, unittest.hasLength(2));
1810 checkRevision(o[0]); 1812 checkRevision(o[0]);
1811 checkRevision(o[1]); 1813 checkRevision(o[1]);
1812 } 1814 }
1813 1815
1814 core.int buildCounterRevisionList = 0; 1816 core.int buildCounterRevisionList = 0;
1815 buildRevisionList() { 1817 buildRevisionList() {
1816 var o = new api.RevisionList(); 1818 var o = new api.RevisionList();
1817 buildCounterRevisionList++; 1819 buildCounterRevisionList++;
1818 if (buildCounterRevisionList < 3) { 1820 if (buildCounterRevisionList < 3) {
1819 o.etag = "foo"; 1821 o.etag = "foo";
1820 o.items = buildUnnamed743(); 1822 o.items = buildUnnamed1002();
1821 o.kind = "foo"; 1823 o.kind = "foo";
1822 o.selfLink = "foo"; 1824 o.selfLink = "foo";
1823 } 1825 }
1824 buildCounterRevisionList--; 1826 buildCounterRevisionList--;
1825 return o; 1827 return o;
1826 } 1828 }
1827 1829
1828 checkRevisionList(api.RevisionList o) { 1830 checkRevisionList(api.RevisionList o) {
1829 buildCounterRevisionList++; 1831 buildCounterRevisionList++;
1830 if (buildCounterRevisionList < 3) { 1832 if (buildCounterRevisionList < 3) {
1831 unittest.expect(o.etag, unittest.equals('foo')); 1833 unittest.expect(o.etag, unittest.equals('foo'));
1832 checkUnnamed743(o.items); 1834 checkUnnamed1002(o.items);
1833 unittest.expect(o.kind, unittest.equals('foo')); 1835 unittest.expect(o.kind, unittest.equals('foo'));
1834 unittest.expect(o.selfLink, unittest.equals('foo')); 1836 unittest.expect(o.selfLink, unittest.equals('foo'));
1835 } 1837 }
1836 buildCounterRevisionList--; 1838 buildCounterRevisionList--;
1837 } 1839 }
1838 1840
1839 core.int buildCounterUserPicture = 0; 1841 core.int buildCounterUserPicture = 0;
1840 buildUserPicture() { 1842 buildUserPicture() {
1841 var o = new api.UserPicture(); 1843 var o = new api.UserPicture();
1842 buildCounterUserPicture++; 1844 buildCounterUserPicture++;
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
3383 3385
3384 var h = { 3386 var h = {
3385 "content-type" : "application/json; charset=utf-8", 3387 "content-type" : "application/json; charset=utf-8",
3386 }; 3388 };
3387 var resp = ""; 3389 var resp = "";
3388 return new async.Future.value(stringResponse(200, h, resp)); 3390 return new async.Future.value(stringResponse(200, h, resp));
3389 }), true); 3391 }), true);
3390 res.emptyTrash().then(unittest.expectAsync((_) {})); 3392 res.emptyTrash().then(unittest.expectAsync((_) {}));
3391 }); 3393 });
3392 3394
3395 unittest.test("method--export", () {
3396 // TODO: Implement tests for media upload;
3397 // TODO: Implement tests for media download;
3398
3399 var mock = new HttpServerMock();
3400 api.FilesResourceApi res = new api.DriveApi(mock).files;
3401 var arg_fileId = "foo";
3402 var arg_mimeType = "foo";
3403 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3404 var path = (req.url).path;
3405 var pathOffset = 0;
3406 var index;
3407 var subPart;
3408 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3409 pathOffset += 1;
3410 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("drive/v2/"));
3411 pathOffset += 9;
3412 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("files/"));
3413 pathOffset += 6;
3414 index = path.indexOf("/export", pathOffset);
3415 unittest.expect(index >= 0, unittest.isTrue);
3416 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3417 pathOffset = index;
3418 unittest.expect(subPart, unittest.equals("$arg_fileId"));
3419 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/export"));
3420 pathOffset += 7;
3421
3422 var query = (req.url).query;
3423 var queryOffset = 0;
3424 var queryMap = {};
3425 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3426 parseBool(n) {
3427 if (n == "true") return true;
3428 if (n == "false") return false;
3429 if (n == null) return null;
3430 throw new core.ArgumentError("Invalid boolean: $n");
3431 }
3432 if (query.length > 0) {
3433 for (var part in query.split("&")) {
3434 var keyvalue = part.split("=");
3435 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3436 }
3437 }
3438 unittest.expect(queryMap["mimeType"].first, unittest.equals(arg_mimeType ));
3439
3440
3441 var h = {
3442 "content-type" : "application/json; charset=utf-8",
3443 };
3444 var resp = "";
3445 return new async.Future.value(stringResponse(200, h, resp));
3446 }), true);
3447 res.export(arg_fileId, arg_mimeType).then(unittest.expectAsync((_) {}));
3448 });
3449
3393 unittest.test("method--generateIds", () { 3450 unittest.test("method--generateIds", () {
3394 3451
3395 var mock = new HttpServerMock(); 3452 var mock = new HttpServerMock();
3396 api.FilesResourceApi res = new api.DriveApi(mock).files; 3453 api.FilesResourceApi res = new api.DriveApi(mock).files;
3397 var arg_maxResults = 42; 3454 var arg_maxResults = 42;
3398 var arg_space = "foo"; 3455 var arg_space = "foo";
3399 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3456 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3400 var path = (req.url).path; 3457 var path = (req.url).path;
3401 var pathOffset = 0; 3458 var pathOffset = 0;
3402 var index; 3459 var index;
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
5804 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 5861 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
5805 checkRevision(response); 5862 checkRevision(response);
5806 }))); 5863 })));
5807 }); 5864 });
5808 5865
5809 }); 5866 });
5810 5867
5811 5868
5812 } 5869 }
5813 5870
OLDNEW
« no previous file with comments | « generated/googleapis/test/doubleclicksearch/v2_test.dart ('k') | generated/googleapis/test/drive/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698