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

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

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 buildUnnamed679() { 54 buildUnnamed1615() {
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 checkUnnamed679(core.List<core.String> o) { 61 checkUnnamed1615(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 = buildUnnamed679(); 72 o.additionalRoles = buildUnnamed1615();
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 checkUnnamed679(o.additionalRoles); 82 checkUnnamed1615(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 buildUnnamed680() { 88 buildUnnamed1616() {
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 checkUnnamed680(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { 95 checkUnnamed1616(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 = buildUnnamed680(); 106 o.roleSets = buildUnnamed1616();
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 checkUnnamed680(o.roleSets); 116 checkUnnamed1616(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 buildUnnamed681() { 122 buildUnnamed1617() {
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 checkUnnamed681(core.List<api.AboutAdditionalRoleInfo> o) { 129 checkUnnamed1617(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 buildUnnamed682() { 135 buildUnnamed1618() {
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 checkUnnamed682(core.List<core.String> o) { 142 checkUnnamed1618(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 = buildUnnamed682(); 154 o.targets = buildUnnamed1618();
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 checkUnnamed682(o.targets); 164 checkUnnamed1618(o.targets);
165 } 165 }
166 buildCounterAboutExportFormats--; 166 buildCounterAboutExportFormats--;
167 } 167 }
168 168
169 buildUnnamed683() { 169 buildUnnamed1619() {
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 checkUnnamed683(core.List<api.AboutExportFormats> o) { 176 checkUnnamed1619(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 buildUnnamed684() { 203 buildUnnamed1620() {
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 checkUnnamed684(core.List<api.AboutFeatures> o) { 210 checkUnnamed1620(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 buildUnnamed685() { 216 buildUnnamed1621() {
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 checkUnnamed685(core.List<core.String> o) { 223 checkUnnamed1621(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 buildUnnamed686() { 229 buildUnnamed1622() {
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 checkUnnamed686(core.List<core.String> o) { 236 checkUnnamed1622(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 = buildUnnamed686(); 248 o.targets = buildUnnamed1622();
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 checkUnnamed686(o.targets); 258 checkUnnamed1622(o.targets);
259 } 259 }
260 buildCounterAboutImportFormats--; 260 buildCounterAboutImportFormats--;
261 } 261 }
262 262
263 buildUnnamed687() { 263 buildUnnamed1623() {
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 checkUnnamed687(core.List<api.AboutImportFormats> o) { 270 checkUnnamed1623(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 buildUnnamed688() { 297 buildUnnamed1624() {
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 checkUnnamed688(core.List<api.AboutMaxUploadSizes> o) { 304 checkUnnamed1624(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 buildUnnamed689() { 331 buildUnnamed1625() {
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 checkUnnamed689(core.List<api.AboutQuotaBytesByService> o) { 338 checkUnnamed1625(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 = buildUnnamed681(); 349 o.additionalRoleInfo = buildUnnamed1617();
350 o.domainSharingPolicy = "foo"; 350 o.domainSharingPolicy = "foo";
351 o.etag = "foo"; 351 o.etag = "foo";
352 o.exportFormats = buildUnnamed683(); 352 o.exportFormats = buildUnnamed1619();
353 o.features = buildUnnamed684(); 353 o.features = buildUnnamed1620();
354 o.folderColorPalette = buildUnnamed685(); 354 o.folderColorPalette = buildUnnamed1621();
355 o.importFormats = buildUnnamed687(); 355 o.importFormats = buildUnnamed1623();
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 = buildUnnamed688(); 360 o.maxUploadSizes = buildUnnamed1624();
361 o.name = "foo"; 361 o.name = "foo";
362 o.permissionId = "foo"; 362 o.permissionId = "foo";
363 o.quotaBytesByService = buildUnnamed689(); 363 o.quotaBytesByService = buildUnnamed1625();
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 checkUnnamed681(o.additionalRoleInfo); 381 checkUnnamed1617(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 checkUnnamed683(o.exportFormats); 384 checkUnnamed1619(o.exportFormats);
385 checkUnnamed684(o.features); 385 checkUnnamed1620(o.features);
386 checkUnnamed685(o.folderColorPalette); 386 checkUnnamed1621(o.folderColorPalette);
387 checkUnnamed687(o.importFormats); 387 checkUnnamed1623(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 checkUnnamed688(o.maxUploadSizes); 392 checkUnnamed1624(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 checkUnnamed689(o.quotaBytesByService); 395 checkUnnamed1625(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 buildUnnamed690() { 432 buildUnnamed1626() {
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 checkUnnamed690(core.List<api.AppIcons> o) { 439 checkUnnamed1626(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 buildUnnamed691() { 445 buildUnnamed1627() {
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 checkUnnamed691(core.List<core.String> o) { 452 checkUnnamed1627(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 buildUnnamed692() { 458 buildUnnamed1628() {
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 checkUnnamed692(core.List<core.String> o) { 465 checkUnnamed1628(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 buildUnnamed693() { 471 buildUnnamed1629() {
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 checkUnnamed693(core.List<core.String> o) { 478 checkUnnamed1629(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 buildUnnamed694() { 484 buildUnnamed1630() {
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 checkUnnamed694(core.List<core.String> o) { 491 checkUnnamed1630(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 = buildUnnamed690(); 506 o.icons = buildUnnamed1626();
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 = buildUnnamed691(); 514 o.primaryFileExtensions = buildUnnamed1627();
515 o.primaryMimeTypes = buildUnnamed692(); 515 o.primaryMimeTypes = buildUnnamed1628();
516 o.productId = "foo"; 516 o.productId = "foo";
517 o.productUrl = "foo"; 517 o.productUrl = "foo";
518 o.secondaryFileExtensions = buildUnnamed693(); 518 o.secondaryFileExtensions = buildUnnamed1629();
519 o.secondaryMimeTypes = buildUnnamed694(); 519 o.secondaryMimeTypes = buildUnnamed1630();
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 checkUnnamed690(o.icons); 538 checkUnnamed1626(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 checkUnnamed691(o.primaryFileExtensions); 546 checkUnnamed1627(o.primaryFileExtensions);
547 checkUnnamed692(o.primaryMimeTypes); 547 checkUnnamed1628(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 checkUnnamed693(o.secondaryFileExtensions); 550 checkUnnamed1629(o.secondaryFileExtensions);
551 checkUnnamed694(o.secondaryMimeTypes); 551 checkUnnamed1630(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 buildUnnamed695() { 562 buildUnnamed1631() {
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 checkUnnamed695(core.List<core.String> o) { 569 checkUnnamed1631(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 buildUnnamed696() { 575 buildUnnamed1632() {
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 checkUnnamed696(core.List<api.App> o) { 582 checkUnnamed1632(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 = buildUnnamed695(); 593 o.defaultAppIds = buildUnnamed1631();
594 o.etag = "foo"; 594 o.etag = "foo";
595 o.items = buildUnnamed696(); 595 o.items = buildUnnamed1632();
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 checkUnnamed695(o.defaultAppIds); 606 checkUnnamed1631(o.defaultAppIds);
607 unittest.expect(o.etag, unittest.equals('foo')); 607 unittest.expect(o.etag, unittest.equals('foo'));
608 checkUnnamed696(o.items); 608 checkUnnamed1632(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 buildUnnamed697() { 646 buildUnnamed1633() {
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 checkUnnamed697(core.List<api.Change> o) { 653 checkUnnamed1633(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 = buildUnnamed697(); 665 o.items = buildUnnamed1633();
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 checkUnnamed697(o.items); 680 checkUnnamed1633(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 buildUnnamed698() { 690 buildUnnamed1634() {
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 checkUnnamed698(core.Map<core.String, core.String> o) { 697 checkUnnamed1634(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 = buildUnnamed698(); 712 o.params = buildUnnamed1634();
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 checkUnnamed698(o.params); 730 checkUnnamed1634(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 buildUnnamed699() { 740 buildUnnamed1635() {
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 checkUnnamed699(core.List<api.ChildReference> o) { 747 checkUnnamed1635(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 = buildUnnamed699(); 759 o.items = buildUnnamed1635();
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 checkUnnamed699(o.items); 773 checkUnnamed1635(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 buildUnnamed700() { 828 buildUnnamed1636() {
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 checkUnnamed700(core.List<api.CommentReply> o) { 835 checkUnnamed1636(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 = buildUnnamed700(); 858 o.replies = buildUnnamed1636();
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 checkUnnamed700(o.replies); 881 checkUnnamed1636(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 buildUnnamed701() { 888 buildUnnamed1637() {
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 checkUnnamed701(core.List<api.Comment> o) { 895 checkUnnamed1637(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 = buildUnnamed701(); 906 o.items = buildUnnamed1637();
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 checkUnnamed701(o.items); 919 checkUnnamed1637(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 buildUnnamed702() { 963 buildUnnamed1638() {
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 checkUnnamed702(core.List<api.CommentReply> o) { 970 checkUnnamed1638(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 = buildUnnamed702(); 981 o.items = buildUnnamed1638();
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 checkUnnamed702(o.items); 994 checkUnnamed1638(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 buildUnnamed703() { 1003 buildUnnamed1639() {
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 checkUnnamed703(core.Map<core.String, core.String> o) { 1010 checkUnnamed1639(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 buildUnnamed704() { 1144 buildUnnamed1640() {
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 checkUnnamed704(core.Map<core.String, core.String> o) { 1151 checkUnnamed1640(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 buildUnnamed705() { 1157 buildUnnamed1641() {
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 checkUnnamed705(core.List<core.String> o) { 1164 checkUnnamed1641(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 buildUnnamed706() { 1170 buildUnnamed1642() {
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 checkUnnamed706(core.List<api.User> o) { 1177 checkUnnamed1642(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 buildUnnamed707() { 1183 buildUnnamed1643() {
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 checkUnnamed707(core.List<api.ParentReference> o) { 1190 checkUnnamed1643(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 buildUnnamed708() { 1196 buildUnnamed1644() {
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 checkUnnamed708(core.List<api.Permission> o) { 1203 checkUnnamed1644(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 buildUnnamed709() { 1209 buildUnnamed1645() {
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 checkUnnamed709(core.List<api.Property> o) { 1216 checkUnnamed1645(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 buildUnnamed710() { 1222 buildUnnamed1646() {
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 checkUnnamed710(core.List<core.String> o) { 1229 checkUnnamed1646(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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 o.canComment = true; 1286 o.canComment = true;
1287 o.copyable = true; 1287 o.copyable = true;
1288 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); 1288 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
1289 o.defaultOpenWithLink = "foo"; 1289 o.defaultOpenWithLink = "foo";
1290 o.description = "foo"; 1290 o.description = "foo";
1291 o.downloadUrl = "foo"; 1291 o.downloadUrl = "foo";
1292 o.editable = true; 1292 o.editable = true;
1293 o.embedLink = "foo"; 1293 o.embedLink = "foo";
1294 o.etag = "foo"; 1294 o.etag = "foo";
1295 o.explicitlyTrashed = true; 1295 o.explicitlyTrashed = true;
1296 o.exportLinks = buildUnnamed703(); 1296 o.exportLinks = buildUnnamed1639();
1297 o.fileExtension = "foo"; 1297 o.fileExtension = "foo";
1298 o.fileSize = "foo"; 1298 o.fileSize = "foo";
1299 o.folderColorRgb = "foo"; 1299 o.folderColorRgb = "foo";
1300 o.headRevisionId = "foo"; 1300 o.headRevisionId = "foo";
1301 o.iconLink = "foo"; 1301 o.iconLink = "foo";
1302 o.id = "foo"; 1302 o.id = "foo";
1303 o.imageMediaMetadata = buildFileImageMediaMetadata(); 1303 o.imageMediaMetadata = buildFileImageMediaMetadata();
1304 o.indexableText = buildFileIndexableText(); 1304 o.indexableText = buildFileIndexableText();
1305 o.kind = "foo"; 1305 o.kind = "foo";
1306 o.labels = buildFileLabels(); 1306 o.labels = buildFileLabels();
1307 o.lastModifyingUser = buildUser(); 1307 o.lastModifyingUser = buildUser();
1308 o.lastModifyingUserName = "foo"; 1308 o.lastModifyingUserName = "foo";
1309 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1309 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1310 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1310 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1311 o.md5Checksum = "foo"; 1311 o.md5Checksum = "foo";
1312 o.mimeType = "foo"; 1312 o.mimeType = "foo";
1313 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1313 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1314 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1314 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1315 o.openWithLinks = buildUnnamed704(); 1315 o.openWithLinks = buildUnnamed1640();
1316 o.originalFilename = "foo"; 1316 o.originalFilename = "foo";
1317 o.ownedByMe = true; 1317 o.ownedByMe = true;
1318 o.ownerNames = buildUnnamed705(); 1318 o.ownerNames = buildUnnamed1641();
1319 o.owners = buildUnnamed706(); 1319 o.owners = buildUnnamed1642();
1320 o.parents = buildUnnamed707(); 1320 o.parents = buildUnnamed1643();
1321 o.permissions = buildUnnamed708(); 1321 o.permissions = buildUnnamed1644();
1322 o.properties = buildUnnamed709(); 1322 o.properties = buildUnnamed1645();
1323 o.quotaBytesUsed = "foo"; 1323 o.quotaBytesUsed = "foo";
1324 o.selfLink = "foo"; 1324 o.selfLink = "foo";
1325 o.shareable = true; 1325 o.shareable = true;
1326 o.shared = true; 1326 o.shared = true;
1327 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1327 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1328 o.sharingUser = buildUser(); 1328 o.sharingUser = buildUser();
1329 o.spaces = buildUnnamed710(); 1329 o.spaces = buildUnnamed1646();
1330 o.thumbnail = buildFileThumbnail(); 1330 o.thumbnail = buildFileThumbnail();
1331 o.thumbnailLink = "foo"; 1331 o.thumbnailLink = "foo";
1332 o.title = "foo"; 1332 o.title = "foo";
1333 o.userPermission = buildPermission(); 1333 o.userPermission = buildPermission();
1334 o.version = "foo"; 1334 o.version = "foo";
1335 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 1335 o.videoMediaMetadata = buildFileVideoMediaMetadata();
1336 o.webContentLink = "foo"; 1336 o.webContentLink = "foo";
1337 o.webViewLink = "foo"; 1337 o.webViewLink = "foo";
1338 o.writersCanShare = true; 1338 o.writersCanShare = true;
1339 } 1339 }
1340 buildCounterFile--; 1340 buildCounterFile--;
1341 return o; 1341 return o;
1342 } 1342 }
1343 1343
1344 checkFile(api.File o) { 1344 checkFile(api.File o) {
1345 buildCounterFile++; 1345 buildCounterFile++;
1346 if (buildCounterFile < 3) { 1346 if (buildCounterFile < 3) {
1347 unittest.expect(o.alternateLink, unittest.equals('foo')); 1347 unittest.expect(o.alternateLink, unittest.equals('foo'));
1348 unittest.expect(o.appDataContents, unittest.isTrue); 1348 unittest.expect(o.appDataContents, unittest.isTrue);
1349 unittest.expect(o.canComment, unittest.isTrue); 1349 unittest.expect(o.canComment, unittest.isTrue);
1350 unittest.expect(o.copyable, unittest.isTrue); 1350 unittest.expect(o.copyable, unittest.isTrue);
1351 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 1351 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
1352 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); 1352 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
1353 unittest.expect(o.description, unittest.equals('foo')); 1353 unittest.expect(o.description, unittest.equals('foo'));
1354 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1354 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1355 unittest.expect(o.editable, unittest.isTrue); 1355 unittest.expect(o.editable, unittest.isTrue);
1356 unittest.expect(o.embedLink, unittest.equals('foo')); 1356 unittest.expect(o.embedLink, unittest.equals('foo'));
1357 unittest.expect(o.etag, unittest.equals('foo')); 1357 unittest.expect(o.etag, unittest.equals('foo'));
1358 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 1358 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
1359 checkUnnamed703(o.exportLinks); 1359 checkUnnamed1639(o.exportLinks);
1360 unittest.expect(o.fileExtension, unittest.equals('foo')); 1360 unittest.expect(o.fileExtension, unittest.equals('foo'));
1361 unittest.expect(o.fileSize, unittest.equals('foo')); 1361 unittest.expect(o.fileSize, unittest.equals('foo'));
1362 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 1362 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
1363 unittest.expect(o.headRevisionId, unittest.equals('foo')); 1363 unittest.expect(o.headRevisionId, unittest.equals('foo'));
1364 unittest.expect(o.iconLink, unittest.equals('foo')); 1364 unittest.expect(o.iconLink, unittest.equals('foo'));
1365 unittest.expect(o.id, unittest.equals('foo')); 1365 unittest.expect(o.id, unittest.equals('foo'));
1366 checkFileImageMediaMetadata(o.imageMediaMetadata); 1366 checkFileImageMediaMetadata(o.imageMediaMetadata);
1367 checkFileIndexableText(o.indexableText); 1367 checkFileIndexableText(o.indexableText);
1368 unittest.expect(o.kind, unittest.equals('foo')); 1368 unittest.expect(o.kind, unittest.equals('foo'));
1369 checkFileLabels(o.labels); 1369 checkFileLabels(o.labels);
1370 checkUser(o.lastModifyingUser); 1370 checkUser(o.lastModifyingUser);
1371 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1371 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1372 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 1372 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
1373 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02"))); 1373 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02")));
1374 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1374 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1375 unittest.expect(o.mimeType, unittest.equals('foo')); 1375 unittest.expect(o.mimeType, unittest.equals('foo'));
1376 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1376 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1377 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1377 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1378 checkUnnamed704(o.openWithLinks); 1378 checkUnnamed1640(o.openWithLinks);
1379 unittest.expect(o.originalFilename, unittest.equals('foo')); 1379 unittest.expect(o.originalFilename, unittest.equals('foo'));
1380 unittest.expect(o.ownedByMe, unittest.isTrue); 1380 unittest.expect(o.ownedByMe, unittest.isTrue);
1381 checkUnnamed705(o.ownerNames); 1381 checkUnnamed1641(o.ownerNames);
1382 checkUnnamed706(o.owners); 1382 checkUnnamed1642(o.owners);
1383 checkUnnamed707(o.parents); 1383 checkUnnamed1643(o.parents);
1384 checkUnnamed708(o.permissions); 1384 checkUnnamed1644(o.permissions);
1385 checkUnnamed709(o.properties); 1385 checkUnnamed1645(o.properties);
1386 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 1386 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
1387 unittest.expect(o.selfLink, unittest.equals('foo')); 1387 unittest.expect(o.selfLink, unittest.equals('foo'));
1388 unittest.expect(o.shareable, unittest.isTrue); 1388 unittest.expect(o.shareable, unittest.isTrue);
1389 unittest.expect(o.shared, unittest.isTrue); 1389 unittest.expect(o.shared, unittest.isTrue);
1390 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1390 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1391 checkUser(o.sharingUser); 1391 checkUser(o.sharingUser);
1392 checkUnnamed710(o.spaces); 1392 checkUnnamed1646(o.spaces);
1393 checkFileThumbnail(o.thumbnail); 1393 checkFileThumbnail(o.thumbnail);
1394 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 1394 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
1395 unittest.expect(o.title, unittest.equals('foo')); 1395 unittest.expect(o.title, unittest.equals('foo'));
1396 checkPermission(o.userPermission); 1396 checkPermission(o.userPermission);
1397 unittest.expect(o.version, unittest.equals('foo')); 1397 unittest.expect(o.version, unittest.equals('foo'));
1398 checkFileVideoMediaMetadata(o.videoMediaMetadata); 1398 checkFileVideoMediaMetadata(o.videoMediaMetadata);
1399 unittest.expect(o.webContentLink, unittest.equals('foo')); 1399 unittest.expect(o.webContentLink, unittest.equals('foo'));
1400 unittest.expect(o.webViewLink, unittest.equals('foo')); 1400 unittest.expect(o.webViewLink, unittest.equals('foo'));
1401 unittest.expect(o.writersCanShare, unittest.isTrue); 1401 unittest.expect(o.writersCanShare, unittest.isTrue);
1402 } 1402 }
1403 buildCounterFile--; 1403 buildCounterFile--;
1404 } 1404 }
1405 1405
1406 buildUnnamed711() { 1406 buildUnnamed1647() {
1407 var o = new core.List<api.File>(); 1407 var o = new core.List<api.File>();
1408 o.add(buildFile()); 1408 o.add(buildFile());
1409 o.add(buildFile()); 1409 o.add(buildFile());
1410 return o; 1410 return o;
1411 } 1411 }
1412 1412
1413 checkUnnamed711(core.List<api.File> o) { 1413 checkUnnamed1647(core.List<api.File> o) {
1414 unittest.expect(o, unittest.hasLength(2)); 1414 unittest.expect(o, unittest.hasLength(2));
1415 checkFile(o[0]); 1415 checkFile(o[0]);
1416 checkFile(o[1]); 1416 checkFile(o[1]);
1417 } 1417 }
1418 1418
1419 core.int buildCounterFileList = 0; 1419 core.int buildCounterFileList = 0;
1420 buildFileList() { 1420 buildFileList() {
1421 var o = new api.FileList(); 1421 var o = new api.FileList();
1422 buildCounterFileList++; 1422 buildCounterFileList++;
1423 if (buildCounterFileList < 3) { 1423 if (buildCounterFileList < 3) {
1424 o.etag = "foo"; 1424 o.etag = "foo";
1425 o.items = buildUnnamed711(); 1425 o.items = buildUnnamed1647();
1426 o.kind = "foo"; 1426 o.kind = "foo";
1427 o.nextLink = "foo"; 1427 o.nextLink = "foo";
1428 o.nextPageToken = "foo"; 1428 o.nextPageToken = "foo";
1429 o.selfLink = "foo"; 1429 o.selfLink = "foo";
1430 } 1430 }
1431 buildCounterFileList--; 1431 buildCounterFileList--;
1432 return o; 1432 return o;
1433 } 1433 }
1434 1434
1435 checkFileList(api.FileList o) { 1435 checkFileList(api.FileList o) {
1436 buildCounterFileList++; 1436 buildCounterFileList++;
1437 if (buildCounterFileList < 3) { 1437 if (buildCounterFileList < 3) {
1438 unittest.expect(o.etag, unittest.equals('foo')); 1438 unittest.expect(o.etag, unittest.equals('foo'));
1439 checkUnnamed711(o.items); 1439 checkUnnamed1647(o.items);
1440 unittest.expect(o.kind, unittest.equals('foo')); 1440 unittest.expect(o.kind, unittest.equals('foo'));
1441 unittest.expect(o.nextLink, unittest.equals('foo')); 1441 unittest.expect(o.nextLink, unittest.equals('foo'));
1442 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1442 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1443 unittest.expect(o.selfLink, unittest.equals('foo')); 1443 unittest.expect(o.selfLink, unittest.equals('foo'));
1444 } 1444 }
1445 buildCounterFileList--; 1445 buildCounterFileList--;
1446 } 1446 }
1447 1447
1448 buildUnnamed712() { 1448 buildUnnamed1648() {
1449 var o = new core.List<api.ParentReference>(); 1449 var o = new core.List<api.ParentReference>();
1450 o.add(buildParentReference()); 1450 o.add(buildParentReference());
1451 o.add(buildParentReference()); 1451 o.add(buildParentReference());
1452 return o; 1452 return o;
1453 } 1453 }
1454 1454
1455 checkUnnamed712(core.List<api.ParentReference> o) { 1455 checkUnnamed1648(core.List<api.ParentReference> o) {
1456 unittest.expect(o, unittest.hasLength(2)); 1456 unittest.expect(o, unittest.hasLength(2));
1457 checkParentReference(o[0]); 1457 checkParentReference(o[0]);
1458 checkParentReference(o[1]); 1458 checkParentReference(o[1]);
1459 } 1459 }
1460 1460
1461 core.int buildCounterParentList = 0; 1461 core.int buildCounterParentList = 0;
1462 buildParentList() { 1462 buildParentList() {
1463 var o = new api.ParentList(); 1463 var o = new api.ParentList();
1464 buildCounterParentList++; 1464 buildCounterParentList++;
1465 if (buildCounterParentList < 3) { 1465 if (buildCounterParentList < 3) {
1466 o.etag = "foo"; 1466 o.etag = "foo";
1467 o.items = buildUnnamed712(); 1467 o.items = buildUnnamed1648();
1468 o.kind = "foo"; 1468 o.kind = "foo";
1469 o.selfLink = "foo"; 1469 o.selfLink = "foo";
1470 } 1470 }
1471 buildCounterParentList--; 1471 buildCounterParentList--;
1472 return o; 1472 return o;
1473 } 1473 }
1474 1474
1475 checkParentList(api.ParentList o) { 1475 checkParentList(api.ParentList o) {
1476 buildCounterParentList++; 1476 buildCounterParentList++;
1477 if (buildCounterParentList < 3) { 1477 if (buildCounterParentList < 3) {
1478 unittest.expect(o.etag, unittest.equals('foo')); 1478 unittest.expect(o.etag, unittest.equals('foo'));
1479 checkUnnamed712(o.items); 1479 checkUnnamed1648(o.items);
1480 unittest.expect(o.kind, unittest.equals('foo')); 1480 unittest.expect(o.kind, unittest.equals('foo'));
1481 unittest.expect(o.selfLink, unittest.equals('foo')); 1481 unittest.expect(o.selfLink, unittest.equals('foo'));
1482 } 1482 }
1483 buildCounterParentList--; 1483 buildCounterParentList--;
1484 } 1484 }
1485 1485
1486 core.int buildCounterParentReference = 0; 1486 core.int buildCounterParentReference = 0;
1487 buildParentReference() { 1487 buildParentReference() {
1488 var o = new api.ParentReference(); 1488 var o = new api.ParentReference();
1489 buildCounterParentReference++; 1489 buildCounterParentReference++;
(...skipping 13 matching lines...) Expand all
1503 if (buildCounterParentReference < 3) { 1503 if (buildCounterParentReference < 3) {
1504 unittest.expect(o.id, unittest.equals('foo')); 1504 unittest.expect(o.id, unittest.equals('foo'));
1505 unittest.expect(o.isRoot, unittest.isTrue); 1505 unittest.expect(o.isRoot, unittest.isTrue);
1506 unittest.expect(o.kind, unittest.equals('foo')); 1506 unittest.expect(o.kind, unittest.equals('foo'));
1507 unittest.expect(o.parentLink, unittest.equals('foo')); 1507 unittest.expect(o.parentLink, unittest.equals('foo'));
1508 unittest.expect(o.selfLink, unittest.equals('foo')); 1508 unittest.expect(o.selfLink, unittest.equals('foo'));
1509 } 1509 }
1510 buildCounterParentReference--; 1510 buildCounterParentReference--;
1511 } 1511 }
1512 1512
1513 buildUnnamed713() { 1513 buildUnnamed1649() {
1514 var o = new core.List<core.String>(); 1514 var o = new core.List<core.String>();
1515 o.add("foo"); 1515 o.add("foo");
1516 o.add("foo"); 1516 o.add("foo");
1517 return o; 1517 return o;
1518 } 1518 }
1519 1519
1520 checkUnnamed713(core.List<core.String> o) { 1520 checkUnnamed1649(core.List<core.String> o) {
1521 unittest.expect(o, unittest.hasLength(2)); 1521 unittest.expect(o, unittest.hasLength(2));
1522 unittest.expect(o[0], unittest.equals('foo')); 1522 unittest.expect(o[0], unittest.equals('foo'));
1523 unittest.expect(o[1], unittest.equals('foo')); 1523 unittest.expect(o[1], unittest.equals('foo'));
1524 } 1524 }
1525 1525
1526 core.int buildCounterPermission = 0; 1526 core.int buildCounterPermission = 0;
1527 buildPermission() { 1527 buildPermission() {
1528 var o = new api.Permission(); 1528 var o = new api.Permission();
1529 buildCounterPermission++; 1529 buildCounterPermission++;
1530 if (buildCounterPermission < 3) { 1530 if (buildCounterPermission < 3) {
1531 o.additionalRoles = buildUnnamed713(); 1531 o.additionalRoles = buildUnnamed1649();
1532 o.authKey = "foo"; 1532 o.authKey = "foo";
1533 o.domain = "foo"; 1533 o.domain = "foo";
1534 o.emailAddress = "foo"; 1534 o.emailAddress = "foo";
1535 o.etag = "foo"; 1535 o.etag = "foo";
1536 o.id = "foo"; 1536 o.id = "foo";
1537 o.kind = "foo"; 1537 o.kind = "foo";
1538 o.name = "foo"; 1538 o.name = "foo";
1539 o.photoLink = "foo"; 1539 o.photoLink = "foo";
1540 o.role = "foo"; 1540 o.role = "foo";
1541 o.selfLink = "foo"; 1541 o.selfLink = "foo";
1542 o.type = "foo"; 1542 o.type = "foo";
1543 o.value = "foo"; 1543 o.value = "foo";
1544 o.withLink = true; 1544 o.withLink = true;
1545 } 1545 }
1546 buildCounterPermission--; 1546 buildCounterPermission--;
1547 return o; 1547 return o;
1548 } 1548 }
1549 1549
1550 checkPermission(api.Permission o) { 1550 checkPermission(api.Permission o) {
1551 buildCounterPermission++; 1551 buildCounterPermission++;
1552 if (buildCounterPermission < 3) { 1552 if (buildCounterPermission < 3) {
1553 checkUnnamed713(o.additionalRoles); 1553 checkUnnamed1649(o.additionalRoles);
1554 unittest.expect(o.authKey, unittest.equals('foo')); 1554 unittest.expect(o.authKey, unittest.equals('foo'));
1555 unittest.expect(o.domain, unittest.equals('foo')); 1555 unittest.expect(o.domain, unittest.equals('foo'));
1556 unittest.expect(o.emailAddress, unittest.equals('foo')); 1556 unittest.expect(o.emailAddress, unittest.equals('foo'));
1557 unittest.expect(o.etag, unittest.equals('foo')); 1557 unittest.expect(o.etag, unittest.equals('foo'));
1558 unittest.expect(o.id, unittest.equals('foo')); 1558 unittest.expect(o.id, unittest.equals('foo'));
1559 unittest.expect(o.kind, unittest.equals('foo')); 1559 unittest.expect(o.kind, unittest.equals('foo'));
1560 unittest.expect(o.name, unittest.equals('foo')); 1560 unittest.expect(o.name, unittest.equals('foo'));
1561 unittest.expect(o.photoLink, unittest.equals('foo')); 1561 unittest.expect(o.photoLink, unittest.equals('foo'));
1562 unittest.expect(o.role, unittest.equals('foo')); 1562 unittest.expect(o.role, unittest.equals('foo'));
1563 unittest.expect(o.selfLink, unittest.equals('foo')); 1563 unittest.expect(o.selfLink, unittest.equals('foo'));
(...skipping 18 matching lines...) Expand all
1582 1582
1583 checkPermissionId(api.PermissionId o) { 1583 checkPermissionId(api.PermissionId o) {
1584 buildCounterPermissionId++; 1584 buildCounterPermissionId++;
1585 if (buildCounterPermissionId < 3) { 1585 if (buildCounterPermissionId < 3) {
1586 unittest.expect(o.id, unittest.equals('foo')); 1586 unittest.expect(o.id, unittest.equals('foo'));
1587 unittest.expect(o.kind, unittest.equals('foo')); 1587 unittest.expect(o.kind, unittest.equals('foo'));
1588 } 1588 }
1589 buildCounterPermissionId--; 1589 buildCounterPermissionId--;
1590 } 1590 }
1591 1591
1592 buildUnnamed714() { 1592 buildUnnamed1650() {
1593 var o = new core.List<api.Permission>(); 1593 var o = new core.List<api.Permission>();
1594 o.add(buildPermission()); 1594 o.add(buildPermission());
1595 o.add(buildPermission()); 1595 o.add(buildPermission());
1596 return o; 1596 return o;
1597 } 1597 }
1598 1598
1599 checkUnnamed714(core.List<api.Permission> o) { 1599 checkUnnamed1650(core.List<api.Permission> o) {
1600 unittest.expect(o, unittest.hasLength(2)); 1600 unittest.expect(o, unittest.hasLength(2));
1601 checkPermission(o[0]); 1601 checkPermission(o[0]);
1602 checkPermission(o[1]); 1602 checkPermission(o[1]);
1603 } 1603 }
1604 1604
1605 core.int buildCounterPermissionList = 0; 1605 core.int buildCounterPermissionList = 0;
1606 buildPermissionList() { 1606 buildPermissionList() {
1607 var o = new api.PermissionList(); 1607 var o = new api.PermissionList();
1608 buildCounterPermissionList++; 1608 buildCounterPermissionList++;
1609 if (buildCounterPermissionList < 3) { 1609 if (buildCounterPermissionList < 3) {
1610 o.etag = "foo"; 1610 o.etag = "foo";
1611 o.items = buildUnnamed714(); 1611 o.items = buildUnnamed1650();
1612 o.kind = "foo"; 1612 o.kind = "foo";
1613 o.selfLink = "foo"; 1613 o.selfLink = "foo";
1614 } 1614 }
1615 buildCounterPermissionList--; 1615 buildCounterPermissionList--;
1616 return o; 1616 return o;
1617 } 1617 }
1618 1618
1619 checkPermissionList(api.PermissionList o) { 1619 checkPermissionList(api.PermissionList o) {
1620 buildCounterPermissionList++; 1620 buildCounterPermissionList++;
1621 if (buildCounterPermissionList < 3) { 1621 if (buildCounterPermissionList < 3) {
1622 unittest.expect(o.etag, unittest.equals('foo')); 1622 unittest.expect(o.etag, unittest.equals('foo'));
1623 checkUnnamed714(o.items); 1623 checkUnnamed1650(o.items);
1624 unittest.expect(o.kind, unittest.equals('foo')); 1624 unittest.expect(o.kind, unittest.equals('foo'));
1625 unittest.expect(o.selfLink, unittest.equals('foo')); 1625 unittest.expect(o.selfLink, unittest.equals('foo'));
1626 } 1626 }
1627 buildCounterPermissionList--; 1627 buildCounterPermissionList--;
1628 } 1628 }
1629 1629
1630 core.int buildCounterProperty = 0; 1630 core.int buildCounterProperty = 0;
1631 buildProperty() { 1631 buildProperty() {
1632 var o = new api.Property(); 1632 var o = new api.Property();
1633 buildCounterProperty++; 1633 buildCounterProperty++;
(...skipping 15 matching lines...) Expand all
1649 unittest.expect(o.etag, unittest.equals('foo')); 1649 unittest.expect(o.etag, unittest.equals('foo'));
1650 unittest.expect(o.key, unittest.equals('foo')); 1650 unittest.expect(o.key, unittest.equals('foo'));
1651 unittest.expect(o.kind, unittest.equals('foo')); 1651 unittest.expect(o.kind, unittest.equals('foo'));
1652 unittest.expect(o.selfLink, unittest.equals('foo')); 1652 unittest.expect(o.selfLink, unittest.equals('foo'));
1653 unittest.expect(o.value, unittest.equals('foo')); 1653 unittest.expect(o.value, unittest.equals('foo'));
1654 unittest.expect(o.visibility, unittest.equals('foo')); 1654 unittest.expect(o.visibility, unittest.equals('foo'));
1655 } 1655 }
1656 buildCounterProperty--; 1656 buildCounterProperty--;
1657 } 1657 }
1658 1658
1659 buildUnnamed715() { 1659 buildUnnamed1651() {
1660 var o = new core.List<api.Property>(); 1660 var o = new core.List<api.Property>();
1661 o.add(buildProperty()); 1661 o.add(buildProperty());
1662 o.add(buildProperty()); 1662 o.add(buildProperty());
1663 return o; 1663 return o;
1664 } 1664 }
1665 1665
1666 checkUnnamed715(core.List<api.Property> o) { 1666 checkUnnamed1651(core.List<api.Property> o) {
1667 unittest.expect(o, unittest.hasLength(2)); 1667 unittest.expect(o, unittest.hasLength(2));
1668 checkProperty(o[0]); 1668 checkProperty(o[0]);
1669 checkProperty(o[1]); 1669 checkProperty(o[1]);
1670 } 1670 }
1671 1671
1672 core.int buildCounterPropertyList = 0; 1672 core.int buildCounterPropertyList = 0;
1673 buildPropertyList() { 1673 buildPropertyList() {
1674 var o = new api.PropertyList(); 1674 var o = new api.PropertyList();
1675 buildCounterPropertyList++; 1675 buildCounterPropertyList++;
1676 if (buildCounterPropertyList < 3) { 1676 if (buildCounterPropertyList < 3) {
1677 o.etag = "foo"; 1677 o.etag = "foo";
1678 o.items = buildUnnamed715(); 1678 o.items = buildUnnamed1651();
1679 o.kind = "foo"; 1679 o.kind = "foo";
1680 o.selfLink = "foo"; 1680 o.selfLink = "foo";
1681 } 1681 }
1682 buildCounterPropertyList--; 1682 buildCounterPropertyList--;
1683 return o; 1683 return o;
1684 } 1684 }
1685 1685
1686 checkPropertyList(api.PropertyList o) { 1686 checkPropertyList(api.PropertyList o) {
1687 buildCounterPropertyList++; 1687 buildCounterPropertyList++;
1688 if (buildCounterPropertyList < 3) { 1688 if (buildCounterPropertyList < 3) {
1689 unittest.expect(o.etag, unittest.equals('foo')); 1689 unittest.expect(o.etag, unittest.equals('foo'));
1690 checkUnnamed715(o.items); 1690 checkUnnamed1651(o.items);
1691 unittest.expect(o.kind, unittest.equals('foo')); 1691 unittest.expect(o.kind, unittest.equals('foo'));
1692 unittest.expect(o.selfLink, unittest.equals('foo')); 1692 unittest.expect(o.selfLink, unittest.equals('foo'));
1693 } 1693 }
1694 buildCounterPropertyList--; 1694 buildCounterPropertyList--;
1695 } 1695 }
1696 1696
1697 buildUnnamed716() { 1697 buildUnnamed1652() {
1698 var o = new core.Map<core.String, core.String>(); 1698 var o = new core.Map<core.String, core.String>();
1699 o["x"] = "foo"; 1699 o["x"] = "foo";
1700 o["y"] = "foo"; 1700 o["y"] = "foo";
1701 return o; 1701 return o;
1702 } 1702 }
1703 1703
1704 checkUnnamed716(core.Map<core.String, core.String> o) { 1704 checkUnnamed1652(core.Map<core.String, core.String> o) {
1705 unittest.expect(o, unittest.hasLength(2)); 1705 unittest.expect(o, unittest.hasLength(2));
1706 unittest.expect(o["x"], unittest.equals('foo')); 1706 unittest.expect(o["x"], unittest.equals('foo'));
1707 unittest.expect(o["y"], unittest.equals('foo')); 1707 unittest.expect(o["y"], unittest.equals('foo'));
1708 } 1708 }
1709 1709
1710 core.int buildCounterRevision = 0; 1710 core.int buildCounterRevision = 0;
1711 buildRevision() { 1711 buildRevision() {
1712 var o = new api.Revision(); 1712 var o = new api.Revision();
1713 buildCounterRevision++; 1713 buildCounterRevision++;
1714 if (buildCounterRevision < 3) { 1714 if (buildCounterRevision < 3) {
1715 o.downloadUrl = "foo"; 1715 o.downloadUrl = "foo";
1716 o.etag = "foo"; 1716 o.etag = "foo";
1717 o.exportLinks = buildUnnamed716(); 1717 o.exportLinks = buildUnnamed1652();
1718 o.fileSize = "foo"; 1718 o.fileSize = "foo";
1719 o.id = "foo"; 1719 o.id = "foo";
1720 o.kind = "foo"; 1720 o.kind = "foo";
1721 o.lastModifyingUser = buildUser(); 1721 o.lastModifyingUser = buildUser();
1722 o.lastModifyingUserName = "foo"; 1722 o.lastModifyingUserName = "foo";
1723 o.md5Checksum = "foo"; 1723 o.md5Checksum = "foo";
1724 o.mimeType = "foo"; 1724 o.mimeType = "foo";
1725 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1725 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1726 o.originalFilename = "foo"; 1726 o.originalFilename = "foo";
1727 o.pinned = true; 1727 o.pinned = true;
1728 o.publishAuto = true; 1728 o.publishAuto = true;
1729 o.published = true; 1729 o.published = true;
1730 o.publishedLink = "foo"; 1730 o.publishedLink = "foo";
1731 o.publishedOutsideDomain = true; 1731 o.publishedOutsideDomain = true;
1732 o.selfLink = "foo"; 1732 o.selfLink = "foo";
1733 } 1733 }
1734 buildCounterRevision--; 1734 buildCounterRevision--;
1735 return o; 1735 return o;
1736 } 1736 }
1737 1737
1738 checkRevision(api.Revision o) { 1738 checkRevision(api.Revision o) {
1739 buildCounterRevision++; 1739 buildCounterRevision++;
1740 if (buildCounterRevision < 3) { 1740 if (buildCounterRevision < 3) {
1741 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1741 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1742 unittest.expect(o.etag, unittest.equals('foo')); 1742 unittest.expect(o.etag, unittest.equals('foo'));
1743 checkUnnamed716(o.exportLinks); 1743 checkUnnamed1652(o.exportLinks);
1744 unittest.expect(o.fileSize, unittest.equals('foo')); 1744 unittest.expect(o.fileSize, unittest.equals('foo'));
1745 unittest.expect(o.id, unittest.equals('foo')); 1745 unittest.expect(o.id, unittest.equals('foo'));
1746 unittest.expect(o.kind, unittest.equals('foo')); 1746 unittest.expect(o.kind, unittest.equals('foo'));
1747 checkUser(o.lastModifyingUser); 1747 checkUser(o.lastModifyingUser);
1748 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1748 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1749 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1749 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1750 unittest.expect(o.mimeType, unittest.equals('foo')); 1750 unittest.expect(o.mimeType, unittest.equals('foo'));
1751 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1751 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1752 unittest.expect(o.originalFilename, unittest.equals('foo')); 1752 unittest.expect(o.originalFilename, unittest.equals('foo'));
1753 unittest.expect(o.pinned, unittest.isTrue); 1753 unittest.expect(o.pinned, unittest.isTrue);
1754 unittest.expect(o.publishAuto, unittest.isTrue); 1754 unittest.expect(o.publishAuto, unittest.isTrue);
1755 unittest.expect(o.published, unittest.isTrue); 1755 unittest.expect(o.published, unittest.isTrue);
1756 unittest.expect(o.publishedLink, unittest.equals('foo')); 1756 unittest.expect(o.publishedLink, unittest.equals('foo'));
1757 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1757 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1758 unittest.expect(o.selfLink, unittest.equals('foo')); 1758 unittest.expect(o.selfLink, unittest.equals('foo'));
1759 } 1759 }
1760 buildCounterRevision--; 1760 buildCounterRevision--;
1761 } 1761 }
1762 1762
1763 buildUnnamed717() { 1763 buildUnnamed1653() {
1764 var o = new core.List<api.Revision>(); 1764 var o = new core.List<api.Revision>();
1765 o.add(buildRevision()); 1765 o.add(buildRevision());
1766 o.add(buildRevision()); 1766 o.add(buildRevision());
1767 return o; 1767 return o;
1768 } 1768 }
1769 1769
1770 checkUnnamed717(core.List<api.Revision> o) { 1770 checkUnnamed1653(core.List<api.Revision> o) {
1771 unittest.expect(o, unittest.hasLength(2)); 1771 unittest.expect(o, unittest.hasLength(2));
1772 checkRevision(o[0]); 1772 checkRevision(o[0]);
1773 checkRevision(o[1]); 1773 checkRevision(o[1]);
1774 } 1774 }
1775 1775
1776 core.int buildCounterRevisionList = 0; 1776 core.int buildCounterRevisionList = 0;
1777 buildRevisionList() { 1777 buildRevisionList() {
1778 var o = new api.RevisionList(); 1778 var o = new api.RevisionList();
1779 buildCounterRevisionList++; 1779 buildCounterRevisionList++;
1780 if (buildCounterRevisionList < 3) { 1780 if (buildCounterRevisionList < 3) {
1781 o.etag = "foo"; 1781 o.etag = "foo";
1782 o.items = buildUnnamed717(); 1782 o.items = buildUnnamed1653();
1783 o.kind = "foo"; 1783 o.kind = "foo";
1784 o.selfLink = "foo"; 1784 o.selfLink = "foo";
1785 } 1785 }
1786 buildCounterRevisionList--; 1786 buildCounterRevisionList--;
1787 return o; 1787 return o;
1788 } 1788 }
1789 1789
1790 checkRevisionList(api.RevisionList o) { 1790 checkRevisionList(api.RevisionList o) {
1791 buildCounterRevisionList++; 1791 buildCounterRevisionList++;
1792 if (buildCounterRevisionList < 3) { 1792 if (buildCounterRevisionList < 3) {
1793 unittest.expect(o.etag, unittest.equals('foo')); 1793 unittest.expect(o.etag, unittest.equals('foo'));
1794 checkUnnamed717(o.items); 1794 checkUnnamed1653(o.items);
1795 unittest.expect(o.kind, unittest.equals('foo')); 1795 unittest.expect(o.kind, unittest.equals('foo'));
1796 unittest.expect(o.selfLink, unittest.equals('foo')); 1796 unittest.expect(o.selfLink, unittest.equals('foo'));
1797 } 1797 }
1798 buildCounterRevisionList--; 1798 buildCounterRevisionList--;
1799 } 1799 }
1800 1800
1801 core.int buildCounterUserPicture = 0; 1801 core.int buildCounterUserPicture = 0;
1802 buildUserPicture() { 1802 buildUserPicture() {
1803 var o = new api.UserPicture(); 1803 var o = new api.UserPicture();
1804 buildCounterUserPicture++; 1804 buildCounterUserPicture++;
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3525 }); 3525 });
3526 3526
3527 unittest.test("method--patch", () { 3527 unittest.test("method--patch", () {
3528 3528
3529 var mock = new HttpServerMock(); 3529 var mock = new HttpServerMock();
3530 api.FilesResourceApi res = new api.DriveApi(mock).files; 3530 api.FilesResourceApi res = new api.DriveApi(mock).files;
3531 var arg_request = buildFile(); 3531 var arg_request = buildFile();
3532 var arg_fileId = "foo"; 3532 var arg_fileId = "foo";
3533 var arg_addParents = "foo"; 3533 var arg_addParents = "foo";
3534 var arg_convert = true; 3534 var arg_convert = true;
3535 var arg_modifiedDateBehavior = "foo";
3535 var arg_newRevision = true; 3536 var arg_newRevision = true;
3536 var arg_ocr = true; 3537 var arg_ocr = true;
3537 var arg_ocrLanguage = "foo"; 3538 var arg_ocrLanguage = "foo";
3538 var arg_pinned = true; 3539 var arg_pinned = true;
3539 var arg_removeParents = "foo"; 3540 var arg_removeParents = "foo";
3540 var arg_setModifiedDate = true; 3541 var arg_setModifiedDate = true;
3541 var arg_timedTextLanguage = "foo"; 3542 var arg_timedTextLanguage = "foo";
3542 var arg_timedTextTrackName = "foo"; 3543 var arg_timedTextTrackName = "foo";
3543 var arg_updateViewedDate = true; 3544 var arg_updateViewedDate = true;
3544 var arg_useContentAsIndexableText = true; 3545 var arg_useContentAsIndexableText = true;
(...skipping 26 matching lines...) Expand all
3571 throw new core.ArgumentError("Invalid boolean: $n"); 3572 throw new core.ArgumentError("Invalid boolean: $n");
3572 } 3573 }
3573 if (query.length > 0) { 3574 if (query.length > 0) {
3574 for (var part in query.split("&")) { 3575 for (var part in query.split("&")) {
3575 var keyvalue = part.split("="); 3576 var keyvalue = part.split("=");
3576 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3577 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3577 } 3578 }
3578 } 3579 }
3579 unittest.expect(queryMap["addParents"].first, unittest.equals(arg_addPar ents)); 3580 unittest.expect(queryMap["addParents"].first, unittest.equals(arg_addPar ents));
3580 unittest.expect(queryMap["convert"].first, unittest.equals("$arg_convert ")); 3581 unittest.expect(queryMap["convert"].first, unittest.equals("$arg_convert "));
3582 unittest.expect(queryMap["modifiedDateBehavior"].first, unittest.equals( arg_modifiedDateBehavior));
3581 unittest.expect(queryMap["newRevision"].first, unittest.equals("$arg_new Revision")); 3583 unittest.expect(queryMap["newRevision"].first, unittest.equals("$arg_new Revision"));
3582 unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr")); 3584 unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr"));
3583 unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLa nguage)); 3585 unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLa nguage));
3584 unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned") ); 3586 unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned") );
3585 unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_rem oveParents)); 3587 unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_rem oveParents));
3586 unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg _setModifiedDate")); 3588 unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg _setModifiedDate"));
3587 unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg _timedTextLanguage)); 3589 unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg _timedTextLanguage));
3588 unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(ar g_timedTextTrackName)); 3590 unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(ar g_timedTextTrackName));
3589 unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$ar g_updateViewedDate")); 3591 unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$ar g_updateViewedDate"));
3590 unittest.expect(queryMap["useContentAsIndexableText"].first, unittest.eq uals("$arg_useContentAsIndexableText")); 3592 unittest.expect(queryMap["useContentAsIndexableText"].first, unittest.eq uals("$arg_useContentAsIndexableText"));
3591 3593
3592 3594
3593 var h = { 3595 var h = {
3594 "content-type" : "application/json; charset=utf-8", 3596 "content-type" : "application/json; charset=utf-8",
3595 }; 3597 };
3596 var resp = convert.JSON.encode(buildFile()); 3598 var resp = convert.JSON.encode(buildFile());
3597 return new async.Future.value(stringResponse(200, h, resp)); 3599 return new async.Future.value(stringResponse(200, h, resp));
3598 }), true); 3600 }), true);
3599 res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: ar g_convert, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLangu age, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg_ setModifiedDate, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: a rg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsIndex ableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File re sponse) { 3601 res.patch(arg_request, arg_fileId, addParents: arg_addParents, convert: ar g_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newR evision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, removeP arents: arg_removeParents, setModifiedDate: arg_setModifiedDate, timedTextLangua ge: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateVie wedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndexa bleText).then(unittest.expectAsync(((api.File response) {
3600 checkFile(response); 3602 checkFile(response);
3601 }))); 3603 })));
3602 }); 3604 });
3603 3605
3604 unittest.test("method--touch", () { 3606 unittest.test("method--touch", () {
3605 3607
3606 var mock = new HttpServerMock(); 3608 var mock = new HttpServerMock();
3607 api.FilesResourceApi res = new api.DriveApi(mock).files; 3609 api.FilesResourceApi res = new api.DriveApi(mock).files;
3608 var arg_fileId = "foo"; 3610 var arg_fileId = "foo";
3609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3611 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
3763 unittest.test("method--update", () { 3765 unittest.test("method--update", () {
3764 // TODO: Implement tests for media upload; 3766 // TODO: Implement tests for media upload;
3765 // TODO: Implement tests for media download; 3767 // TODO: Implement tests for media download;
3766 3768
3767 var mock = new HttpServerMock(); 3769 var mock = new HttpServerMock();
3768 api.FilesResourceApi res = new api.DriveApi(mock).files; 3770 api.FilesResourceApi res = new api.DriveApi(mock).files;
3769 var arg_request = buildFile(); 3771 var arg_request = buildFile();
3770 var arg_fileId = "foo"; 3772 var arg_fileId = "foo";
3771 var arg_addParents = "foo"; 3773 var arg_addParents = "foo";
3772 var arg_convert = true; 3774 var arg_convert = true;
3775 var arg_modifiedDateBehavior = "foo";
3773 var arg_newRevision = true; 3776 var arg_newRevision = true;
3774 var arg_ocr = true; 3777 var arg_ocr = true;
3775 var arg_ocrLanguage = "foo"; 3778 var arg_ocrLanguage = "foo";
3776 var arg_pinned = true; 3779 var arg_pinned = true;
3777 var arg_removeParents = "foo"; 3780 var arg_removeParents = "foo";
3778 var arg_setModifiedDate = true; 3781 var arg_setModifiedDate = true;
3779 var arg_timedTextLanguage = "foo"; 3782 var arg_timedTextLanguage = "foo";
3780 var arg_timedTextTrackName = "foo"; 3783 var arg_timedTextTrackName = "foo";
3781 var arg_updateViewedDate = true; 3784 var arg_updateViewedDate = true;
3782 var arg_useContentAsIndexableText = true; 3785 var arg_useContentAsIndexableText = true;
(...skipping 26 matching lines...) Expand all
3809 throw new core.ArgumentError("Invalid boolean: $n"); 3812 throw new core.ArgumentError("Invalid boolean: $n");
3810 } 3813 }
3811 if (query.length > 0) { 3814 if (query.length > 0) {
3812 for (var part in query.split("&")) { 3815 for (var part in query.split("&")) {
3813 var keyvalue = part.split("="); 3816 var keyvalue = part.split("=");
3814 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3817 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3815 } 3818 }
3816 } 3819 }
3817 unittest.expect(queryMap["addParents"].first, unittest.equals(arg_addPar ents)); 3820 unittest.expect(queryMap["addParents"].first, unittest.equals(arg_addPar ents));
3818 unittest.expect(queryMap["convert"].first, unittest.equals("$arg_convert ")); 3821 unittest.expect(queryMap["convert"].first, unittest.equals("$arg_convert "));
3822 unittest.expect(queryMap["modifiedDateBehavior"].first, unittest.equals( arg_modifiedDateBehavior));
3819 unittest.expect(queryMap["newRevision"].first, unittest.equals("$arg_new Revision")); 3823 unittest.expect(queryMap["newRevision"].first, unittest.equals("$arg_new Revision"));
3820 unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr")); 3824 unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr"));
3821 unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLa nguage)); 3825 unittest.expect(queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLa nguage));
3822 unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned") ); 3826 unittest.expect(queryMap["pinned"].first, unittest.equals("$arg_pinned") );
3823 unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_rem oveParents)); 3827 unittest.expect(queryMap["removeParents"].first, unittest.equals(arg_rem oveParents));
3824 unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg _setModifiedDate")); 3828 unittest.expect(queryMap["setModifiedDate"].first, unittest.equals("$arg _setModifiedDate"));
3825 unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg _timedTextLanguage)); 3829 unittest.expect(queryMap["timedTextLanguage"].first, unittest.equals(arg _timedTextLanguage));
3826 unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(ar g_timedTextTrackName)); 3830 unittest.expect(queryMap["timedTextTrackName"].first, unittest.equals(ar g_timedTextTrackName));
3827 unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$ar g_updateViewedDate")); 3831 unittest.expect(queryMap["updateViewedDate"].first, unittest.equals("$ar g_updateViewedDate"));
3828 unittest.expect(queryMap["useContentAsIndexableText"].first, unittest.eq uals("$arg_useContentAsIndexableText")); 3832 unittest.expect(queryMap["useContentAsIndexableText"].first, unittest.eq uals("$arg_useContentAsIndexableText"));
3829 3833
3830 3834
3831 var h = { 3835 var h = {
3832 "content-type" : "application/json; charset=utf-8", 3836 "content-type" : "application/json; charset=utf-8",
3833 }; 3837 };
3834 var resp = convert.JSON.encode(buildFile()); 3838 var resp = convert.JSON.encode(buildFile());
3835 return new async.Future.value(stringResponse(200, h, resp)); 3839 return new async.Future.value(stringResponse(200, h, resp));
3836 }), true); 3840 }), true);
3837 res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: a rg_convert, newRevision: arg_newRevision, ocr: arg_ocr, ocrLanguage: arg_ocrLang uage, pinned: arg_pinned, removeParents: arg_removeParents, setModifiedDate: arg _setModifiedDate, timedTextLanguage: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateViewedDate: arg_updateViewedDate, useContentAsInde xableText: arg_useContentAsIndexableText).then(unittest.expectAsync(((api.File r esponse) { 3841 res.update(arg_request, arg_fileId, addParents: arg_addParents, convert: a rg_convert, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_new Revision, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, remove Parents: arg_removeParents, setModifiedDate: arg_setModifiedDate, timedTextLangu age: arg_timedTextLanguage, timedTextTrackName: arg_timedTextTrackName, updateVi ewedDate: arg_updateViewedDate, useContentAsIndexableText: arg_useContentAsIndex ableText).then(unittest.expectAsync(((api.File response) {
3838 checkFile(response); 3842 checkFile(response);
3839 }))); 3843 })));
3840 }); 3844 });
3841 3845
3842 unittest.test("method--watch", () { 3846 unittest.test("method--watch", () {
3843 // TODO: Implement tests for media upload; 3847 // TODO: Implement tests for media upload;
3844 // TODO: Implement tests for media download; 3848 // TODO: Implement tests for media download;
3845 3849
3846 var mock = new HttpServerMock(); 3850 var mock = new HttpServerMock();
3847 api.FilesResourceApi res = new api.DriveApi(mock).files; 3851 api.FilesResourceApi res = new api.DriveApi(mock).files;
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
5700 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 5704 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
5701 checkRevision(response); 5705 checkRevision(response);
5702 }))); 5706 })));
5703 }); 5707 });
5704 5708
5705 }); 5709 });
5706 5710
5707 5711
5708 } 5712 }
5709 5713
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698