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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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 buildUnnamed586() { 54 buildUnnamed593() {
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 checkUnnamed586(core.List<core.String> o) { 61 checkUnnamed593(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 = buildUnnamed586(); 72 o.additionalRoles = buildUnnamed593();
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 checkUnnamed586(o.additionalRoles); 82 checkUnnamed593(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 buildUnnamed587() { 88 buildUnnamed594() {
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 checkUnnamed587(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { 95 checkUnnamed594(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 = buildUnnamed587(); 106 o.roleSets = buildUnnamed594();
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 checkUnnamed587(o.roleSets); 116 checkUnnamed594(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 buildUnnamed588() { 122 buildUnnamed595() {
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 checkUnnamed588(core.List<api.AboutAdditionalRoleInfo> o) { 129 checkUnnamed595(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 buildUnnamed589() { 135 buildUnnamed596() {
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 checkUnnamed589(core.List<core.String> o) { 142 checkUnnamed596(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 = buildUnnamed589(); 154 o.targets = buildUnnamed596();
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 checkUnnamed589(o.targets); 164 checkUnnamed596(o.targets);
165 } 165 }
166 buildCounterAboutExportFormats--; 166 buildCounterAboutExportFormats--;
167 } 167 }
168 168
169 buildUnnamed590() { 169 buildUnnamed597() {
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 checkUnnamed590(core.List<api.AboutExportFormats> o) { 176 checkUnnamed597(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 buildUnnamed591() { 203 buildUnnamed598() {
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 checkUnnamed591(core.List<api.AboutFeatures> o) { 210 checkUnnamed598(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 buildUnnamed592() { 216 buildUnnamed599() {
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 checkUnnamed592(core.List<core.String> o) { 223 checkUnnamed599(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 buildUnnamed593() { 229 buildUnnamed600() {
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 checkUnnamed593(core.List<core.String> o) { 236 checkUnnamed600(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 = buildUnnamed593(); 248 o.targets = buildUnnamed600();
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 checkUnnamed593(o.targets); 258 checkUnnamed600(o.targets);
259 } 259 }
260 buildCounterAboutImportFormats--; 260 buildCounterAboutImportFormats--;
261 } 261 }
262 262
263 buildUnnamed594() { 263 buildUnnamed601() {
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 checkUnnamed594(core.List<api.AboutImportFormats> o) { 270 checkUnnamed601(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 buildUnnamed595() { 297 buildUnnamed602() {
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 checkUnnamed595(core.List<api.AboutMaxUploadSizes> o) { 304 checkUnnamed602(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 buildUnnamed596() { 331 buildUnnamed603() {
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 checkUnnamed596(core.List<api.AboutQuotaBytesByService> o) { 338 checkUnnamed603(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 = buildUnnamed588(); 349 o.additionalRoleInfo = buildUnnamed595();
350 o.domainSharingPolicy = "foo"; 350 o.domainSharingPolicy = "foo";
351 o.etag = "foo"; 351 o.etag = "foo";
352 o.exportFormats = buildUnnamed590(); 352 o.exportFormats = buildUnnamed597();
353 o.features = buildUnnamed591(); 353 o.features = buildUnnamed598();
354 o.folderColorPalette = buildUnnamed592(); 354 o.folderColorPalette = buildUnnamed599();
355 o.importFormats = buildUnnamed594(); 355 o.importFormats = buildUnnamed601();
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 = buildUnnamed595(); 360 o.maxUploadSizes = buildUnnamed602();
361 o.name = "foo"; 361 o.name = "foo";
362 o.permissionId = "foo"; 362 o.permissionId = "foo";
363 o.quotaBytesByService = buildUnnamed596(); 363 o.quotaBytesByService = buildUnnamed603();
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 checkUnnamed588(o.additionalRoleInfo); 381 checkUnnamed595(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 checkUnnamed590(o.exportFormats); 384 checkUnnamed597(o.exportFormats);
385 checkUnnamed591(o.features); 385 checkUnnamed598(o.features);
386 checkUnnamed592(o.folderColorPalette); 386 checkUnnamed599(o.folderColorPalette);
387 checkUnnamed594(o.importFormats); 387 checkUnnamed601(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 checkUnnamed595(o.maxUploadSizes); 392 checkUnnamed602(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 checkUnnamed596(o.quotaBytesByService); 395 checkUnnamed603(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 buildUnnamed597() { 432 buildUnnamed604() {
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 checkUnnamed597(core.List<api.AppIcons> o) { 439 checkUnnamed604(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 buildUnnamed598() { 445 buildUnnamed605() {
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 checkUnnamed598(core.List<core.String> o) { 452 checkUnnamed605(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 buildUnnamed599() { 458 buildUnnamed606() {
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 checkUnnamed599(core.List<core.String> o) { 465 checkUnnamed606(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 buildUnnamed600() { 471 buildUnnamed607() {
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 checkUnnamed600(core.List<core.String> o) { 478 checkUnnamed607(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 buildUnnamed601() { 484 buildUnnamed608() {
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 checkUnnamed601(core.List<core.String> o) { 491 checkUnnamed608(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 = buildUnnamed597(); 506 o.icons = buildUnnamed604();
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 = buildUnnamed598(); 514 o.primaryFileExtensions = buildUnnamed605();
515 o.primaryMimeTypes = buildUnnamed599(); 515 o.primaryMimeTypes = buildUnnamed606();
516 o.productId = "foo"; 516 o.productId = "foo";
517 o.productUrl = "foo"; 517 o.productUrl = "foo";
518 o.secondaryFileExtensions = buildUnnamed600(); 518 o.secondaryFileExtensions = buildUnnamed607();
519 o.secondaryMimeTypes = buildUnnamed601(); 519 o.secondaryMimeTypes = buildUnnamed608();
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 checkUnnamed597(o.icons); 538 checkUnnamed604(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 checkUnnamed598(o.primaryFileExtensions); 546 checkUnnamed605(o.primaryFileExtensions);
547 checkUnnamed599(o.primaryMimeTypes); 547 checkUnnamed606(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 checkUnnamed600(o.secondaryFileExtensions); 550 checkUnnamed607(o.secondaryFileExtensions);
551 checkUnnamed601(o.secondaryMimeTypes); 551 checkUnnamed608(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 buildUnnamed602() { 562 buildUnnamed609() {
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 checkUnnamed602(core.List<core.String> o) { 569 checkUnnamed609(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 buildUnnamed603() { 575 buildUnnamed610() {
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 checkUnnamed603(core.List<api.App> o) { 582 checkUnnamed610(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 = buildUnnamed602(); 593 o.defaultAppIds = buildUnnamed609();
594 o.etag = "foo"; 594 o.etag = "foo";
595 o.items = buildUnnamed603(); 595 o.items = buildUnnamed610();
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 checkUnnamed602(o.defaultAppIds); 606 checkUnnamed609(o.defaultAppIds);
607 unittest.expect(o.etag, unittest.equals('foo')); 607 unittest.expect(o.etag, unittest.equals('foo'));
608 checkUnnamed603(o.items); 608 checkUnnamed610(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 buildUnnamed604() { 646 buildUnnamed611() {
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 checkUnnamed604(core.List<api.Change> o) { 653 checkUnnamed611(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 = buildUnnamed604(); 665 o.items = buildUnnamed611();
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 checkUnnamed604(o.items); 680 checkUnnamed611(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 buildUnnamed605() { 690 buildUnnamed612() {
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 checkUnnamed605(core.Map<core.String, core.String> o) { 697 checkUnnamed612(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 = buildUnnamed605(); 712 o.params = buildUnnamed612();
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 checkUnnamed605(o.params); 730 checkUnnamed612(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 buildUnnamed606() { 740 buildUnnamed613() {
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 checkUnnamed606(core.List<api.ChildReference> o) { 747 checkUnnamed613(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 = buildUnnamed606(); 759 o.items = buildUnnamed613();
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 checkUnnamed606(o.items); 773 checkUnnamed613(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 buildUnnamed607() { 828 buildUnnamed614() {
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 checkUnnamed607(core.List<api.CommentReply> o) { 835 checkUnnamed614(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 = buildUnnamed607(); 858 o.replies = buildUnnamed614();
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 checkUnnamed607(o.replies); 881 checkUnnamed614(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 buildUnnamed608() { 888 buildUnnamed615() {
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 checkUnnamed608(core.List<api.Comment> o) { 895 checkUnnamed615(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 = buildUnnamed608(); 906 o.items = buildUnnamed615();
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 checkUnnamed608(o.items); 919 checkUnnamed615(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 buildUnnamed609() { 963 buildUnnamed616() {
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 checkUnnamed609(core.List<api.CommentReply> o) { 970 checkUnnamed616(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 = buildUnnamed609(); 981 o.items = buildUnnamed616();
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 checkUnnamed609(o.items); 994 checkUnnamed616(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 buildUnnamed610() { 1003 buildUnnamed617() {
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 checkUnnamed610(core.Map<core.String, core.String> o) { 1010 checkUnnamed617(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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 unittest.expect(o.hidden, unittest.isTrue); 1136 unittest.expect(o.hidden, unittest.isTrue);
1137 unittest.expect(o.modified, unittest.isTrue); 1137 unittest.expect(o.modified, unittest.isTrue);
1138 unittest.expect(o.restricted, unittest.isTrue); 1138 unittest.expect(o.restricted, unittest.isTrue);
1139 unittest.expect(o.starred, unittest.isTrue); 1139 unittest.expect(o.starred, unittest.isTrue);
1140 unittest.expect(o.trashed, unittest.isTrue); 1140 unittest.expect(o.trashed, unittest.isTrue);
1141 unittest.expect(o.viewed, unittest.isTrue); 1141 unittest.expect(o.viewed, unittest.isTrue);
1142 } 1142 }
1143 buildCounterFileLabels--; 1143 buildCounterFileLabels--;
1144 } 1144 }
1145 1145
1146 buildUnnamed611() { 1146 buildUnnamed618() {
1147 var o = new core.Map<core.String, core.String>(); 1147 var o = new core.Map<core.String, core.String>();
1148 o["x"] = "foo"; 1148 o["x"] = "foo";
1149 o["y"] = "foo"; 1149 o["y"] = "foo";
1150 return o; 1150 return o;
1151 } 1151 }
1152 1152
1153 checkUnnamed611(core.Map<core.String, core.String> o) { 1153 checkUnnamed618(core.Map<core.String, core.String> o) {
1154 unittest.expect(o, unittest.hasLength(2)); 1154 unittest.expect(o, unittest.hasLength(2));
1155 unittest.expect(o["x"], unittest.equals('foo')); 1155 unittest.expect(o["x"], unittest.equals('foo'));
1156 unittest.expect(o["y"], unittest.equals('foo')); 1156 unittest.expect(o["y"], unittest.equals('foo'));
1157 } 1157 }
1158 1158
1159 buildUnnamed612() { 1159 buildUnnamed619() {
1160 var o = new core.List<core.String>(); 1160 var o = new core.List<core.String>();
1161 o.add("foo"); 1161 o.add("foo");
1162 o.add("foo"); 1162 o.add("foo");
1163 return o; 1163 return o;
1164 } 1164 }
1165 1165
1166 checkUnnamed612(core.List<core.String> o) { 1166 checkUnnamed619(core.List<core.String> o) {
1167 unittest.expect(o, unittest.hasLength(2)); 1167 unittest.expect(o, unittest.hasLength(2));
1168 unittest.expect(o[0], unittest.equals('foo')); 1168 unittest.expect(o[0], unittest.equals('foo'));
1169 unittest.expect(o[1], unittest.equals('foo')); 1169 unittest.expect(o[1], unittest.equals('foo'));
1170 } 1170 }
1171 1171
1172 buildUnnamed613() { 1172 buildUnnamed620() {
1173 var o = new core.List<api.User>(); 1173 var o = new core.List<api.User>();
1174 o.add(buildUser()); 1174 o.add(buildUser());
1175 o.add(buildUser()); 1175 o.add(buildUser());
1176 return o; 1176 return o;
1177 } 1177 }
1178 1178
1179 checkUnnamed613(core.List<api.User> o) { 1179 checkUnnamed620(core.List<api.User> o) {
1180 unittest.expect(o, unittest.hasLength(2)); 1180 unittest.expect(o, unittest.hasLength(2));
1181 checkUser(o[0]); 1181 checkUser(o[0]);
1182 checkUser(o[1]); 1182 checkUser(o[1]);
1183 } 1183 }
1184 1184
1185 buildUnnamed614() { 1185 buildUnnamed621() {
1186 var o = new core.List<api.ParentReference>(); 1186 var o = new core.List<api.ParentReference>();
1187 o.add(buildParentReference()); 1187 o.add(buildParentReference());
1188 o.add(buildParentReference()); 1188 o.add(buildParentReference());
1189 return o; 1189 return o;
1190 } 1190 }
1191 1191
1192 checkUnnamed614(core.List<api.ParentReference> o) { 1192 checkUnnamed621(core.List<api.ParentReference> o) {
1193 unittest.expect(o, unittest.hasLength(2)); 1193 unittest.expect(o, unittest.hasLength(2));
1194 checkParentReference(o[0]); 1194 checkParentReference(o[0]);
1195 checkParentReference(o[1]); 1195 checkParentReference(o[1]);
1196 } 1196 }
1197 1197
1198 buildUnnamed615() { 1198 buildUnnamed622() {
1199 var o = new core.List<api.Permission>(); 1199 var o = new core.List<api.Permission>();
1200 o.add(buildPermission()); 1200 o.add(buildPermission());
1201 o.add(buildPermission()); 1201 o.add(buildPermission());
1202 return o; 1202 return o;
1203 } 1203 }
1204 1204
1205 checkUnnamed615(core.List<api.Permission> o) { 1205 checkUnnamed622(core.List<api.Permission> o) {
1206 unittest.expect(o, unittest.hasLength(2)); 1206 unittest.expect(o, unittest.hasLength(2));
1207 checkPermission(o[0]); 1207 checkPermission(o[0]);
1208 checkPermission(o[1]); 1208 checkPermission(o[1]);
1209 } 1209 }
1210 1210
1211 buildUnnamed616() { 1211 buildUnnamed623() {
1212 var o = new core.List<api.Property>(); 1212 var o = new core.List<api.Property>();
1213 o.add(buildProperty()); 1213 o.add(buildProperty());
1214 o.add(buildProperty()); 1214 o.add(buildProperty());
1215 return o; 1215 return o;
1216 } 1216 }
1217 1217
1218 checkUnnamed616(core.List<api.Property> o) { 1218 checkUnnamed623(core.List<api.Property> o) {
1219 unittest.expect(o, unittest.hasLength(2)); 1219 unittest.expect(o, unittest.hasLength(2));
1220 checkProperty(o[0]); 1220 checkProperty(o[0]);
1221 checkProperty(o[1]); 1221 checkProperty(o[1]);
1222 } 1222 }
1223 1223
1224 buildUnnamed617() { 1224 buildUnnamed624() {
1225 var o = new core.List<core.String>(); 1225 var o = new core.List<core.String>();
1226 o.add("foo"); 1226 o.add("foo");
1227 o.add("foo"); 1227 o.add("foo");
1228 return o; 1228 return o;
1229 } 1229 }
1230 1230
1231 checkUnnamed617(core.List<core.String> o) { 1231 checkUnnamed624(core.List<core.String> o) {
1232 unittest.expect(o, unittest.hasLength(2)); 1232 unittest.expect(o, unittest.hasLength(2));
1233 unittest.expect(o[0], unittest.equals('foo')); 1233 unittest.expect(o[0], unittest.equals('foo'));
1234 unittest.expect(o[1], unittest.equals('foo')); 1234 unittest.expect(o[1], unittest.equals('foo'));
1235 } 1235 }
1236 1236
1237 core.int buildCounterFileThumbnail = 0; 1237 core.int buildCounterFileThumbnail = 0;
1238 buildFileThumbnail() { 1238 buildFileThumbnail() {
1239 var o = new api.FileThumbnail(); 1239 var o = new api.FileThumbnail();
1240 buildCounterFileThumbnail++; 1240 buildCounterFileThumbnail++;
1241 if (buildCounterFileThumbnail < 3) { 1241 if (buildCounterFileThumbnail < 3) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 o.canReadRevisions = true; 1289 o.canReadRevisions = true;
1290 o.copyable = true; 1290 o.copyable = true;
1291 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); 1291 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
1292 o.defaultOpenWithLink = "foo"; 1292 o.defaultOpenWithLink = "foo";
1293 o.description = "foo"; 1293 o.description = "foo";
1294 o.downloadUrl = "foo"; 1294 o.downloadUrl = "foo";
1295 o.editable = true; 1295 o.editable = true;
1296 o.embedLink = "foo"; 1296 o.embedLink = "foo";
1297 o.etag = "foo"; 1297 o.etag = "foo";
1298 o.explicitlyTrashed = true; 1298 o.explicitlyTrashed = true;
1299 o.exportLinks = buildUnnamed610(); 1299 o.exportLinks = buildUnnamed617();
1300 o.fileExtension = "foo"; 1300 o.fileExtension = "foo";
1301 o.fileSize = "foo"; 1301 o.fileSize = "foo";
1302 o.folderColorRgb = "foo"; 1302 o.folderColorRgb = "foo";
1303 o.fullFileExtension = "foo"; 1303 o.fullFileExtension = "foo";
1304 o.hasThumbnail = true; 1304 o.hasThumbnail = true;
1305 o.headRevisionId = "foo"; 1305 o.headRevisionId = "foo";
1306 o.iconLink = "foo"; 1306 o.iconLink = "foo";
1307 o.id = "foo"; 1307 o.id = "foo";
1308 o.imageMediaMetadata = buildFileImageMediaMetadata(); 1308 o.imageMediaMetadata = buildFileImageMediaMetadata();
1309 o.indexableText = buildFileIndexableText(); 1309 o.indexableText = buildFileIndexableText();
1310 o.isAppAuthorized = true; 1310 o.isAppAuthorized = true;
1311 o.kind = "foo"; 1311 o.kind = "foo";
1312 o.labels = buildFileLabels(); 1312 o.labels = buildFileLabels();
1313 o.lastModifyingUser = buildUser(); 1313 o.lastModifyingUser = buildUser();
1314 o.lastModifyingUserName = "foo"; 1314 o.lastModifyingUserName = "foo";
1315 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1315 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1316 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1316 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1317 o.md5Checksum = "foo"; 1317 o.md5Checksum = "foo";
1318 o.mimeType = "foo"; 1318 o.mimeType = "foo";
1319 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1319 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1320 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1320 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1321 o.openWithLinks = buildUnnamed611(); 1321 o.openWithLinks = buildUnnamed618();
1322 o.originalFilename = "foo"; 1322 o.originalFilename = "foo";
1323 o.ownedByMe = true; 1323 o.ownedByMe = true;
1324 o.ownerNames = buildUnnamed612(); 1324 o.ownerNames = buildUnnamed619();
1325 o.owners = buildUnnamed613(); 1325 o.owners = buildUnnamed620();
1326 o.parents = buildUnnamed614(); 1326 o.parents = buildUnnamed621();
1327 o.permissions = buildUnnamed615(); 1327 o.permissions = buildUnnamed622();
1328 o.properties = buildUnnamed616(); 1328 o.properties = buildUnnamed623();
1329 o.quotaBytesUsed = "foo"; 1329 o.quotaBytesUsed = "foo";
1330 o.selfLink = "foo"; 1330 o.selfLink = "foo";
1331 o.shareable = true; 1331 o.shareable = true;
1332 o.shared = true; 1332 o.shared = true;
1333 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1333 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1334 o.sharingUser = buildUser(); 1334 o.sharingUser = buildUser();
1335 o.spaces = buildUnnamed617(); 1335 o.spaces = buildUnnamed624();
1336 o.thumbnail = buildFileThumbnail(); 1336 o.thumbnail = buildFileThumbnail();
1337 o.thumbnailLink = "foo"; 1337 o.thumbnailLink = "foo";
1338 o.thumbnailVersion = "foo"; 1338 o.thumbnailVersion = "foo";
1339 o.title = "foo"; 1339 o.title = "foo";
1340 o.userPermission = buildPermission(); 1340 o.userPermission = buildPermission();
1341 o.version = "foo"; 1341 o.version = "foo";
1342 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 1342 o.videoMediaMetadata = buildFileVideoMediaMetadata();
1343 o.webContentLink = "foo"; 1343 o.webContentLink = "foo";
1344 o.webViewLink = "foo"; 1344 o.webViewLink = "foo";
1345 o.writersCanShare = true; 1345 o.writersCanShare = true;
(...skipping 11 matching lines...) Expand all
1357 unittest.expect(o.canReadRevisions, unittest.isTrue); 1357 unittest.expect(o.canReadRevisions, unittest.isTrue);
1358 unittest.expect(o.copyable, unittest.isTrue); 1358 unittest.expect(o.copyable, unittest.isTrue);
1359 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 1359 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
1360 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); 1360 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
1361 unittest.expect(o.description, unittest.equals('foo')); 1361 unittest.expect(o.description, unittest.equals('foo'));
1362 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1362 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1363 unittest.expect(o.editable, unittest.isTrue); 1363 unittest.expect(o.editable, unittest.isTrue);
1364 unittest.expect(o.embedLink, unittest.equals('foo')); 1364 unittest.expect(o.embedLink, unittest.equals('foo'));
1365 unittest.expect(o.etag, unittest.equals('foo')); 1365 unittest.expect(o.etag, unittest.equals('foo'));
1366 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 1366 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
1367 checkUnnamed610(o.exportLinks); 1367 checkUnnamed617(o.exportLinks);
1368 unittest.expect(o.fileExtension, unittest.equals('foo')); 1368 unittest.expect(o.fileExtension, unittest.equals('foo'));
1369 unittest.expect(o.fileSize, unittest.equals('foo')); 1369 unittest.expect(o.fileSize, unittest.equals('foo'));
1370 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 1370 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
1371 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 1371 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
1372 unittest.expect(o.hasThumbnail, unittest.isTrue); 1372 unittest.expect(o.hasThumbnail, unittest.isTrue);
1373 unittest.expect(o.headRevisionId, unittest.equals('foo')); 1373 unittest.expect(o.headRevisionId, unittest.equals('foo'));
1374 unittest.expect(o.iconLink, unittest.equals('foo')); 1374 unittest.expect(o.iconLink, unittest.equals('foo'));
1375 unittest.expect(o.id, unittest.equals('foo')); 1375 unittest.expect(o.id, unittest.equals('foo'));
1376 checkFileImageMediaMetadata(o.imageMediaMetadata); 1376 checkFileImageMediaMetadata(o.imageMediaMetadata);
1377 checkFileIndexableText(o.indexableText); 1377 checkFileIndexableText(o.indexableText);
1378 unittest.expect(o.isAppAuthorized, unittest.isTrue); 1378 unittest.expect(o.isAppAuthorized, unittest.isTrue);
1379 unittest.expect(o.kind, unittest.equals('foo')); 1379 unittest.expect(o.kind, unittest.equals('foo'));
1380 checkFileLabels(o.labels); 1380 checkFileLabels(o.labels);
1381 checkUser(o.lastModifyingUser); 1381 checkUser(o.lastModifyingUser);
1382 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1382 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1383 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 1383 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
1384 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02"))); 1384 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02")));
1385 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1385 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1386 unittest.expect(o.mimeType, unittest.equals('foo')); 1386 unittest.expect(o.mimeType, unittest.equals('foo'));
1387 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1387 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1388 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1388 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1389 checkUnnamed611(o.openWithLinks); 1389 checkUnnamed618(o.openWithLinks);
1390 unittest.expect(o.originalFilename, unittest.equals('foo')); 1390 unittest.expect(o.originalFilename, unittest.equals('foo'));
1391 unittest.expect(o.ownedByMe, unittest.isTrue); 1391 unittest.expect(o.ownedByMe, unittest.isTrue);
1392 checkUnnamed612(o.ownerNames); 1392 checkUnnamed619(o.ownerNames);
1393 checkUnnamed613(o.owners); 1393 checkUnnamed620(o.owners);
1394 checkUnnamed614(o.parents); 1394 checkUnnamed621(o.parents);
1395 checkUnnamed615(o.permissions); 1395 checkUnnamed622(o.permissions);
1396 checkUnnamed616(o.properties); 1396 checkUnnamed623(o.properties);
1397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 1397 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
1398 unittest.expect(o.selfLink, unittest.equals('foo')); 1398 unittest.expect(o.selfLink, unittest.equals('foo'));
1399 unittest.expect(o.shareable, unittest.isTrue); 1399 unittest.expect(o.shareable, unittest.isTrue);
1400 unittest.expect(o.shared, unittest.isTrue); 1400 unittest.expect(o.shared, unittest.isTrue);
1401 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1401 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1402 checkUser(o.sharingUser); 1402 checkUser(o.sharingUser);
1403 checkUnnamed617(o.spaces); 1403 checkUnnamed624(o.spaces);
1404 checkFileThumbnail(o.thumbnail); 1404 checkFileThumbnail(o.thumbnail);
1405 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 1405 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
1406 unittest.expect(o.thumbnailVersion, unittest.equals('foo')); 1406 unittest.expect(o.thumbnailVersion, unittest.equals('foo'));
1407 unittest.expect(o.title, unittest.equals('foo')); 1407 unittest.expect(o.title, unittest.equals('foo'));
1408 checkPermission(o.userPermission); 1408 checkPermission(o.userPermission);
1409 unittest.expect(o.version, unittest.equals('foo')); 1409 unittest.expect(o.version, unittest.equals('foo'));
1410 checkFileVideoMediaMetadata(o.videoMediaMetadata); 1410 checkFileVideoMediaMetadata(o.videoMediaMetadata);
1411 unittest.expect(o.webContentLink, unittest.equals('foo')); 1411 unittest.expect(o.webContentLink, unittest.equals('foo'));
1412 unittest.expect(o.webViewLink, unittest.equals('foo')); 1412 unittest.expect(o.webViewLink, unittest.equals('foo'));
1413 unittest.expect(o.writersCanShare, unittest.isTrue); 1413 unittest.expect(o.writersCanShare, unittest.isTrue);
1414 } 1414 }
1415 buildCounterFile--; 1415 buildCounterFile--;
1416 } 1416 }
1417 1417
1418 buildUnnamed618() { 1418 buildUnnamed625() {
1419 var o = new core.List<api.File>(); 1419 var o = new core.List<api.File>();
1420 o.add(buildFile()); 1420 o.add(buildFile());
1421 o.add(buildFile()); 1421 o.add(buildFile());
1422 return o; 1422 return o;
1423 } 1423 }
1424 1424
1425 checkUnnamed618(core.List<api.File> o) { 1425 checkUnnamed625(core.List<api.File> o) {
1426 unittest.expect(o, unittest.hasLength(2)); 1426 unittest.expect(o, unittest.hasLength(2));
1427 checkFile(o[0]); 1427 checkFile(o[0]);
1428 checkFile(o[1]); 1428 checkFile(o[1]);
1429 } 1429 }
1430 1430
1431 core.int buildCounterFileList = 0; 1431 core.int buildCounterFileList = 0;
1432 buildFileList() { 1432 buildFileList() {
1433 var o = new api.FileList(); 1433 var o = new api.FileList();
1434 buildCounterFileList++; 1434 buildCounterFileList++;
1435 if (buildCounterFileList < 3) { 1435 if (buildCounterFileList < 3) {
1436 o.etag = "foo"; 1436 o.etag = "foo";
1437 o.items = buildUnnamed618(); 1437 o.items = buildUnnamed625();
1438 o.kind = "foo"; 1438 o.kind = "foo";
1439 o.nextLink = "foo"; 1439 o.nextLink = "foo";
1440 o.nextPageToken = "foo"; 1440 o.nextPageToken = "foo";
1441 o.selfLink = "foo"; 1441 o.selfLink = "foo";
1442 } 1442 }
1443 buildCounterFileList--; 1443 buildCounterFileList--;
1444 return o; 1444 return o;
1445 } 1445 }
1446 1446
1447 checkFileList(api.FileList o) { 1447 checkFileList(api.FileList o) {
1448 buildCounterFileList++; 1448 buildCounterFileList++;
1449 if (buildCounterFileList < 3) { 1449 if (buildCounterFileList < 3) {
1450 unittest.expect(o.etag, unittest.equals('foo')); 1450 unittest.expect(o.etag, unittest.equals('foo'));
1451 checkUnnamed618(o.items); 1451 checkUnnamed625(o.items);
1452 unittest.expect(o.kind, unittest.equals('foo')); 1452 unittest.expect(o.kind, unittest.equals('foo'));
1453 unittest.expect(o.nextLink, unittest.equals('foo')); 1453 unittest.expect(o.nextLink, unittest.equals('foo'));
1454 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1454 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1455 unittest.expect(o.selfLink, unittest.equals('foo')); 1455 unittest.expect(o.selfLink, unittest.equals('foo'));
1456 } 1456 }
1457 buildCounterFileList--; 1457 buildCounterFileList--;
1458 } 1458 }
1459 1459
1460 buildUnnamed619() { 1460 buildUnnamed626() {
1461 var o = new core.List<core.String>(); 1461 var o = new core.List<core.String>();
1462 o.add("foo"); 1462 o.add("foo");
1463 o.add("foo"); 1463 o.add("foo");
1464 return o; 1464 return o;
1465 } 1465 }
1466 1466
1467 checkUnnamed619(core.List<core.String> o) { 1467 checkUnnamed626(core.List<core.String> o) {
1468 unittest.expect(o, unittest.hasLength(2)); 1468 unittest.expect(o, unittest.hasLength(2));
1469 unittest.expect(o[0], unittest.equals('foo')); 1469 unittest.expect(o[0], unittest.equals('foo'));
1470 unittest.expect(o[1], unittest.equals('foo')); 1470 unittest.expect(o[1], unittest.equals('foo'));
1471 } 1471 }
1472 1472
1473 core.int buildCounterGeneratedIds = 0; 1473 core.int buildCounterGeneratedIds = 0;
1474 buildGeneratedIds() { 1474 buildGeneratedIds() {
1475 var o = new api.GeneratedIds(); 1475 var o = new api.GeneratedIds();
1476 buildCounterGeneratedIds++; 1476 buildCounterGeneratedIds++;
1477 if (buildCounterGeneratedIds < 3) { 1477 if (buildCounterGeneratedIds < 3) {
1478 o.ids = buildUnnamed619(); 1478 o.ids = buildUnnamed626();
1479 o.kind = "foo"; 1479 o.kind = "foo";
1480 o.space = "foo"; 1480 o.space = "foo";
1481 } 1481 }
1482 buildCounterGeneratedIds--; 1482 buildCounterGeneratedIds--;
1483 return o; 1483 return o;
1484 } 1484 }
1485 1485
1486 checkGeneratedIds(api.GeneratedIds o) { 1486 checkGeneratedIds(api.GeneratedIds o) {
1487 buildCounterGeneratedIds++; 1487 buildCounterGeneratedIds++;
1488 if (buildCounterGeneratedIds < 3) { 1488 if (buildCounterGeneratedIds < 3) {
1489 checkUnnamed619(o.ids); 1489 checkUnnamed626(o.ids);
1490 unittest.expect(o.kind, unittest.equals('foo')); 1490 unittest.expect(o.kind, unittest.equals('foo'));
1491 unittest.expect(o.space, unittest.equals('foo')); 1491 unittest.expect(o.space, unittest.equals('foo'));
1492 } 1492 }
1493 buildCounterGeneratedIds--; 1493 buildCounterGeneratedIds--;
1494 } 1494 }
1495 1495
1496 buildUnnamed620() { 1496 buildUnnamed627() {
1497 var o = new core.List<api.ParentReference>(); 1497 var o = new core.List<api.ParentReference>();
1498 o.add(buildParentReference()); 1498 o.add(buildParentReference());
1499 o.add(buildParentReference()); 1499 o.add(buildParentReference());
1500 return o; 1500 return o;
1501 } 1501 }
1502 1502
1503 checkUnnamed620(core.List<api.ParentReference> o) { 1503 checkUnnamed627(core.List<api.ParentReference> o) {
1504 unittest.expect(o, unittest.hasLength(2)); 1504 unittest.expect(o, unittest.hasLength(2));
1505 checkParentReference(o[0]); 1505 checkParentReference(o[0]);
1506 checkParentReference(o[1]); 1506 checkParentReference(o[1]);
1507 } 1507 }
1508 1508
1509 core.int buildCounterParentList = 0; 1509 core.int buildCounterParentList = 0;
1510 buildParentList() { 1510 buildParentList() {
1511 var o = new api.ParentList(); 1511 var o = new api.ParentList();
1512 buildCounterParentList++; 1512 buildCounterParentList++;
1513 if (buildCounterParentList < 3) { 1513 if (buildCounterParentList < 3) {
1514 o.etag = "foo"; 1514 o.etag = "foo";
1515 o.items = buildUnnamed620(); 1515 o.items = buildUnnamed627();
1516 o.kind = "foo"; 1516 o.kind = "foo";
1517 o.selfLink = "foo"; 1517 o.selfLink = "foo";
1518 } 1518 }
1519 buildCounterParentList--; 1519 buildCounterParentList--;
1520 return o; 1520 return o;
1521 } 1521 }
1522 1522
1523 checkParentList(api.ParentList o) { 1523 checkParentList(api.ParentList o) {
1524 buildCounterParentList++; 1524 buildCounterParentList++;
1525 if (buildCounterParentList < 3) { 1525 if (buildCounterParentList < 3) {
1526 unittest.expect(o.etag, unittest.equals('foo')); 1526 unittest.expect(o.etag, unittest.equals('foo'));
1527 checkUnnamed620(o.items); 1527 checkUnnamed627(o.items);
1528 unittest.expect(o.kind, unittest.equals('foo')); 1528 unittest.expect(o.kind, unittest.equals('foo'));
1529 unittest.expect(o.selfLink, unittest.equals('foo')); 1529 unittest.expect(o.selfLink, unittest.equals('foo'));
1530 } 1530 }
1531 buildCounterParentList--; 1531 buildCounterParentList--;
1532 } 1532 }
1533 1533
1534 core.int buildCounterParentReference = 0; 1534 core.int buildCounterParentReference = 0;
1535 buildParentReference() { 1535 buildParentReference() {
1536 var o = new api.ParentReference(); 1536 var o = new api.ParentReference();
1537 buildCounterParentReference++; 1537 buildCounterParentReference++;
(...skipping 13 matching lines...) Expand all
1551 if (buildCounterParentReference < 3) { 1551 if (buildCounterParentReference < 3) {
1552 unittest.expect(o.id, unittest.equals('foo')); 1552 unittest.expect(o.id, unittest.equals('foo'));
1553 unittest.expect(o.isRoot, unittest.isTrue); 1553 unittest.expect(o.isRoot, unittest.isTrue);
1554 unittest.expect(o.kind, unittest.equals('foo')); 1554 unittest.expect(o.kind, unittest.equals('foo'));
1555 unittest.expect(o.parentLink, unittest.equals('foo')); 1555 unittest.expect(o.parentLink, unittest.equals('foo'));
1556 unittest.expect(o.selfLink, unittest.equals('foo')); 1556 unittest.expect(o.selfLink, unittest.equals('foo'));
1557 } 1557 }
1558 buildCounterParentReference--; 1558 buildCounterParentReference--;
1559 } 1559 }
1560 1560
1561 buildUnnamed621() { 1561 buildUnnamed628() {
1562 var o = new core.List<core.String>(); 1562 var o = new core.List<core.String>();
1563 o.add("foo"); 1563 o.add("foo");
1564 o.add("foo"); 1564 o.add("foo");
1565 return o; 1565 return o;
1566 } 1566 }
1567 1567
1568 checkUnnamed621(core.List<core.String> o) { 1568 checkUnnamed628(core.List<core.String> o) {
1569 unittest.expect(o, unittest.hasLength(2)); 1569 unittest.expect(o, unittest.hasLength(2));
1570 unittest.expect(o[0], unittest.equals('foo')); 1570 unittest.expect(o[0], unittest.equals('foo'));
1571 unittest.expect(o[1], unittest.equals('foo')); 1571 unittest.expect(o[1], unittest.equals('foo'));
1572 } 1572 }
1573 1573
1574 core.int buildCounterPermission = 0; 1574 core.int buildCounterPermission = 0;
1575 buildPermission() { 1575 buildPermission() {
1576 var o = new api.Permission(); 1576 var o = new api.Permission();
1577 buildCounterPermission++; 1577 buildCounterPermission++;
1578 if (buildCounterPermission < 3) { 1578 if (buildCounterPermission < 3) {
1579 o.additionalRoles = buildUnnamed621(); 1579 o.additionalRoles = buildUnnamed628();
1580 o.authKey = "foo"; 1580 o.authKey = "foo";
1581 o.domain = "foo"; 1581 o.domain = "foo";
1582 o.emailAddress = "foo"; 1582 o.emailAddress = "foo";
1583 o.etag = "foo"; 1583 o.etag = "foo";
1584 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02"); 1584 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02");
1585 o.id = "foo"; 1585 o.id = "foo";
1586 o.kind = "foo"; 1586 o.kind = "foo";
1587 o.name = "foo"; 1587 o.name = "foo";
1588 o.photoLink = "foo"; 1588 o.photoLink = "foo";
1589 o.role = "foo"; 1589 o.role = "foo";
1590 o.selfLink = "foo"; 1590 o.selfLink = "foo";
1591 o.type = "foo"; 1591 o.type = "foo";
1592 o.value = "foo"; 1592 o.value = "foo";
1593 o.withLink = true; 1593 o.withLink = true;
1594 } 1594 }
1595 buildCounterPermission--; 1595 buildCounterPermission--;
1596 return o; 1596 return o;
1597 } 1597 }
1598 1598
1599 checkPermission(api.Permission o) { 1599 checkPermission(api.Permission o) {
1600 buildCounterPermission++; 1600 buildCounterPermission++;
1601 if (buildCounterPermission < 3) { 1601 if (buildCounterPermission < 3) {
1602 checkUnnamed621(o.additionalRoles); 1602 checkUnnamed628(o.additionalRoles);
1603 unittest.expect(o.authKey, unittest.equals('foo')); 1603 unittest.expect(o.authKey, unittest.equals('foo'));
1604 unittest.expect(o.domain, unittest.equals('foo')); 1604 unittest.expect(o.domain, unittest.equals('foo'));
1605 unittest.expect(o.emailAddress, unittest.equals('foo')); 1605 unittest.expect(o.emailAddress, unittest.equals('foo'));
1606 unittest.expect(o.etag, unittest.equals('foo')); 1606 unittest.expect(o.etag, unittest.equals('foo'));
1607 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02"))); 1607 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
1608 unittest.expect(o.id, unittest.equals('foo')); 1608 unittest.expect(o.id, unittest.equals('foo'));
1609 unittest.expect(o.kind, unittest.equals('foo')); 1609 unittest.expect(o.kind, unittest.equals('foo'));
1610 unittest.expect(o.name, unittest.equals('foo')); 1610 unittest.expect(o.name, unittest.equals('foo'));
1611 unittest.expect(o.photoLink, unittest.equals('foo')); 1611 unittest.expect(o.photoLink, unittest.equals('foo'));
1612 unittest.expect(o.role, unittest.equals('foo')); 1612 unittest.expect(o.role, unittest.equals('foo'));
(...skipping 19 matching lines...) Expand all
1632 1632
1633 checkPermissionId(api.PermissionId o) { 1633 checkPermissionId(api.PermissionId o) {
1634 buildCounterPermissionId++; 1634 buildCounterPermissionId++;
1635 if (buildCounterPermissionId < 3) { 1635 if (buildCounterPermissionId < 3) {
1636 unittest.expect(o.id, unittest.equals('foo')); 1636 unittest.expect(o.id, unittest.equals('foo'));
1637 unittest.expect(o.kind, unittest.equals('foo')); 1637 unittest.expect(o.kind, unittest.equals('foo'));
1638 } 1638 }
1639 buildCounterPermissionId--; 1639 buildCounterPermissionId--;
1640 } 1640 }
1641 1641
1642 buildUnnamed622() { 1642 buildUnnamed629() {
1643 var o = new core.List<api.Permission>(); 1643 var o = new core.List<api.Permission>();
1644 o.add(buildPermission()); 1644 o.add(buildPermission());
1645 o.add(buildPermission()); 1645 o.add(buildPermission());
1646 return o; 1646 return o;
1647 } 1647 }
1648 1648
1649 checkUnnamed622(core.List<api.Permission> o) { 1649 checkUnnamed629(core.List<api.Permission> o) {
1650 unittest.expect(o, unittest.hasLength(2)); 1650 unittest.expect(o, unittest.hasLength(2));
1651 checkPermission(o[0]); 1651 checkPermission(o[0]);
1652 checkPermission(o[1]); 1652 checkPermission(o[1]);
1653 } 1653 }
1654 1654
1655 core.int buildCounterPermissionList = 0; 1655 core.int buildCounterPermissionList = 0;
1656 buildPermissionList() { 1656 buildPermissionList() {
1657 var o = new api.PermissionList(); 1657 var o = new api.PermissionList();
1658 buildCounterPermissionList++; 1658 buildCounterPermissionList++;
1659 if (buildCounterPermissionList < 3) { 1659 if (buildCounterPermissionList < 3) {
1660 o.etag = "foo"; 1660 o.etag = "foo";
1661 o.items = buildUnnamed622(); 1661 o.items = buildUnnamed629();
1662 o.kind = "foo"; 1662 o.kind = "foo";
1663 o.selfLink = "foo"; 1663 o.selfLink = "foo";
1664 } 1664 }
1665 buildCounterPermissionList--; 1665 buildCounterPermissionList--;
1666 return o; 1666 return o;
1667 } 1667 }
1668 1668
1669 checkPermissionList(api.PermissionList o) { 1669 checkPermissionList(api.PermissionList o) {
1670 buildCounterPermissionList++; 1670 buildCounterPermissionList++;
1671 if (buildCounterPermissionList < 3) { 1671 if (buildCounterPermissionList < 3) {
1672 unittest.expect(o.etag, unittest.equals('foo')); 1672 unittest.expect(o.etag, unittest.equals('foo'));
1673 checkUnnamed622(o.items); 1673 checkUnnamed629(o.items);
1674 unittest.expect(o.kind, unittest.equals('foo')); 1674 unittest.expect(o.kind, unittest.equals('foo'));
1675 unittest.expect(o.selfLink, unittest.equals('foo')); 1675 unittest.expect(o.selfLink, unittest.equals('foo'));
1676 } 1676 }
1677 buildCounterPermissionList--; 1677 buildCounterPermissionList--;
1678 } 1678 }
1679 1679
1680 core.int buildCounterProperty = 0; 1680 core.int buildCounterProperty = 0;
1681 buildProperty() { 1681 buildProperty() {
1682 var o = new api.Property(); 1682 var o = new api.Property();
1683 buildCounterProperty++; 1683 buildCounterProperty++;
(...skipping 15 matching lines...) Expand all
1699 unittest.expect(o.etag, unittest.equals('foo')); 1699 unittest.expect(o.etag, unittest.equals('foo'));
1700 unittest.expect(o.key, unittest.equals('foo')); 1700 unittest.expect(o.key, unittest.equals('foo'));
1701 unittest.expect(o.kind, unittest.equals('foo')); 1701 unittest.expect(o.kind, unittest.equals('foo'));
1702 unittest.expect(o.selfLink, unittest.equals('foo')); 1702 unittest.expect(o.selfLink, unittest.equals('foo'));
1703 unittest.expect(o.value, unittest.equals('foo')); 1703 unittest.expect(o.value, unittest.equals('foo'));
1704 unittest.expect(o.visibility, unittest.equals('foo')); 1704 unittest.expect(o.visibility, unittest.equals('foo'));
1705 } 1705 }
1706 buildCounterProperty--; 1706 buildCounterProperty--;
1707 } 1707 }
1708 1708
1709 buildUnnamed623() { 1709 buildUnnamed630() {
1710 var o = new core.List<api.Property>(); 1710 var o = new core.List<api.Property>();
1711 o.add(buildProperty()); 1711 o.add(buildProperty());
1712 o.add(buildProperty()); 1712 o.add(buildProperty());
1713 return o; 1713 return o;
1714 } 1714 }
1715 1715
1716 checkUnnamed623(core.List<api.Property> o) { 1716 checkUnnamed630(core.List<api.Property> o) {
1717 unittest.expect(o, unittest.hasLength(2)); 1717 unittest.expect(o, unittest.hasLength(2));
1718 checkProperty(o[0]); 1718 checkProperty(o[0]);
1719 checkProperty(o[1]); 1719 checkProperty(o[1]);
1720 } 1720 }
1721 1721
1722 core.int buildCounterPropertyList = 0; 1722 core.int buildCounterPropertyList = 0;
1723 buildPropertyList() { 1723 buildPropertyList() {
1724 var o = new api.PropertyList(); 1724 var o = new api.PropertyList();
1725 buildCounterPropertyList++; 1725 buildCounterPropertyList++;
1726 if (buildCounterPropertyList < 3) { 1726 if (buildCounterPropertyList < 3) {
1727 o.etag = "foo"; 1727 o.etag = "foo";
1728 o.items = buildUnnamed623(); 1728 o.items = buildUnnamed630();
1729 o.kind = "foo"; 1729 o.kind = "foo";
1730 o.selfLink = "foo"; 1730 o.selfLink = "foo";
1731 } 1731 }
1732 buildCounterPropertyList--; 1732 buildCounterPropertyList--;
1733 return o; 1733 return o;
1734 } 1734 }
1735 1735
1736 checkPropertyList(api.PropertyList o) { 1736 checkPropertyList(api.PropertyList o) {
1737 buildCounterPropertyList++; 1737 buildCounterPropertyList++;
1738 if (buildCounterPropertyList < 3) { 1738 if (buildCounterPropertyList < 3) {
1739 unittest.expect(o.etag, unittest.equals('foo')); 1739 unittest.expect(o.etag, unittest.equals('foo'));
1740 checkUnnamed623(o.items); 1740 checkUnnamed630(o.items);
1741 unittest.expect(o.kind, unittest.equals('foo')); 1741 unittest.expect(o.kind, unittest.equals('foo'));
1742 unittest.expect(o.selfLink, unittest.equals('foo')); 1742 unittest.expect(o.selfLink, unittest.equals('foo'));
1743 } 1743 }
1744 buildCounterPropertyList--; 1744 buildCounterPropertyList--;
1745 } 1745 }
1746 1746
1747 buildUnnamed624() { 1747 buildUnnamed631() {
1748 var o = new core.Map<core.String, core.String>(); 1748 var o = new core.Map<core.String, core.String>();
1749 o["x"] = "foo"; 1749 o["x"] = "foo";
1750 o["y"] = "foo"; 1750 o["y"] = "foo";
1751 return o; 1751 return o;
1752 } 1752 }
1753 1753
1754 checkUnnamed624(core.Map<core.String, core.String> o) { 1754 checkUnnamed631(core.Map<core.String, core.String> o) {
1755 unittest.expect(o, unittest.hasLength(2)); 1755 unittest.expect(o, unittest.hasLength(2));
1756 unittest.expect(o["x"], unittest.equals('foo')); 1756 unittest.expect(o["x"], unittest.equals('foo'));
1757 unittest.expect(o["y"], unittest.equals('foo')); 1757 unittest.expect(o["y"], unittest.equals('foo'));
1758 } 1758 }
1759 1759
1760 core.int buildCounterRevision = 0; 1760 core.int buildCounterRevision = 0;
1761 buildRevision() { 1761 buildRevision() {
1762 var o = new api.Revision(); 1762 var o = new api.Revision();
1763 buildCounterRevision++; 1763 buildCounterRevision++;
1764 if (buildCounterRevision < 3) { 1764 if (buildCounterRevision < 3) {
1765 o.downloadUrl = "foo"; 1765 o.downloadUrl = "foo";
1766 o.etag = "foo"; 1766 o.etag = "foo";
1767 o.exportLinks = buildUnnamed624(); 1767 o.exportLinks = buildUnnamed631();
1768 o.fileSize = "foo"; 1768 o.fileSize = "foo";
1769 o.id = "foo"; 1769 o.id = "foo";
1770 o.kind = "foo"; 1770 o.kind = "foo";
1771 o.lastModifyingUser = buildUser(); 1771 o.lastModifyingUser = buildUser();
1772 o.lastModifyingUserName = "foo"; 1772 o.lastModifyingUserName = "foo";
1773 o.md5Checksum = "foo"; 1773 o.md5Checksum = "foo";
1774 o.mimeType = "foo"; 1774 o.mimeType = "foo";
1775 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1775 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1776 o.originalFilename = "foo"; 1776 o.originalFilename = "foo";
1777 o.pinned = true; 1777 o.pinned = true;
1778 o.publishAuto = true; 1778 o.publishAuto = true;
1779 o.published = true; 1779 o.published = true;
1780 o.publishedLink = "foo"; 1780 o.publishedLink = "foo";
1781 o.publishedOutsideDomain = true; 1781 o.publishedOutsideDomain = true;
1782 o.selfLink = "foo"; 1782 o.selfLink = "foo";
1783 } 1783 }
1784 buildCounterRevision--; 1784 buildCounterRevision--;
1785 return o; 1785 return o;
1786 } 1786 }
1787 1787
1788 checkRevision(api.Revision o) { 1788 checkRevision(api.Revision o) {
1789 buildCounterRevision++; 1789 buildCounterRevision++;
1790 if (buildCounterRevision < 3) { 1790 if (buildCounterRevision < 3) {
1791 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1791 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1792 unittest.expect(o.etag, unittest.equals('foo')); 1792 unittest.expect(o.etag, unittest.equals('foo'));
1793 checkUnnamed624(o.exportLinks); 1793 checkUnnamed631(o.exportLinks);
1794 unittest.expect(o.fileSize, unittest.equals('foo')); 1794 unittest.expect(o.fileSize, unittest.equals('foo'));
1795 unittest.expect(o.id, unittest.equals('foo')); 1795 unittest.expect(o.id, unittest.equals('foo'));
1796 unittest.expect(o.kind, unittest.equals('foo')); 1796 unittest.expect(o.kind, unittest.equals('foo'));
1797 checkUser(o.lastModifyingUser); 1797 checkUser(o.lastModifyingUser);
1798 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1798 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1799 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1799 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1800 unittest.expect(o.mimeType, unittest.equals('foo')); 1800 unittest.expect(o.mimeType, unittest.equals('foo'));
1801 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1801 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1802 unittest.expect(o.originalFilename, unittest.equals('foo')); 1802 unittest.expect(o.originalFilename, unittest.equals('foo'));
1803 unittest.expect(o.pinned, unittest.isTrue); 1803 unittest.expect(o.pinned, unittest.isTrue);
1804 unittest.expect(o.publishAuto, unittest.isTrue); 1804 unittest.expect(o.publishAuto, unittest.isTrue);
1805 unittest.expect(o.published, unittest.isTrue); 1805 unittest.expect(o.published, unittest.isTrue);
1806 unittest.expect(o.publishedLink, unittest.equals('foo')); 1806 unittest.expect(o.publishedLink, unittest.equals('foo'));
1807 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1807 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1808 unittest.expect(o.selfLink, unittest.equals('foo')); 1808 unittest.expect(o.selfLink, unittest.equals('foo'));
1809 } 1809 }
1810 buildCounterRevision--; 1810 buildCounterRevision--;
1811 } 1811 }
1812 1812
1813 buildUnnamed625() { 1813 buildUnnamed632() {
1814 var o = new core.List<api.Revision>(); 1814 var o = new core.List<api.Revision>();
1815 o.add(buildRevision()); 1815 o.add(buildRevision());
1816 o.add(buildRevision()); 1816 o.add(buildRevision());
1817 return o; 1817 return o;
1818 } 1818 }
1819 1819
1820 checkUnnamed625(core.List<api.Revision> o) { 1820 checkUnnamed632(core.List<api.Revision> o) {
1821 unittest.expect(o, unittest.hasLength(2)); 1821 unittest.expect(o, unittest.hasLength(2));
1822 checkRevision(o[0]); 1822 checkRevision(o[0]);
1823 checkRevision(o[1]); 1823 checkRevision(o[1]);
1824 } 1824 }
1825 1825
1826 core.int buildCounterRevisionList = 0; 1826 core.int buildCounterRevisionList = 0;
1827 buildRevisionList() { 1827 buildRevisionList() {
1828 var o = new api.RevisionList(); 1828 var o = new api.RevisionList();
1829 buildCounterRevisionList++; 1829 buildCounterRevisionList++;
1830 if (buildCounterRevisionList < 3) { 1830 if (buildCounterRevisionList < 3) {
1831 o.etag = "foo"; 1831 o.etag = "foo";
1832 o.items = buildUnnamed625(); 1832 o.items = buildUnnamed632();
1833 o.kind = "foo"; 1833 o.kind = "foo";
1834 o.nextPageToken = "foo"; 1834 o.nextPageToken = "foo";
1835 o.selfLink = "foo"; 1835 o.selfLink = "foo";
1836 } 1836 }
1837 buildCounterRevisionList--; 1837 buildCounterRevisionList--;
1838 return o; 1838 return o;
1839 } 1839 }
1840 1840
1841 checkRevisionList(api.RevisionList o) { 1841 checkRevisionList(api.RevisionList o) {
1842 buildCounterRevisionList++; 1842 buildCounterRevisionList++;
1843 if (buildCounterRevisionList < 3) { 1843 if (buildCounterRevisionList < 3) {
1844 unittest.expect(o.etag, unittest.equals('foo')); 1844 unittest.expect(o.etag, unittest.equals('foo'));
1845 checkUnnamed625(o.items); 1845 checkUnnamed632(o.items);
1846 unittest.expect(o.kind, unittest.equals('foo')); 1846 unittest.expect(o.kind, unittest.equals('foo'));
1847 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1847 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1848 unittest.expect(o.selfLink, unittest.equals('foo')); 1848 unittest.expect(o.selfLink, unittest.equals('foo'));
1849 } 1849 }
1850 buildCounterRevisionList--; 1850 buildCounterRevisionList--;
1851 } 1851 }
1852 1852
1853 core.int buildCounterStartPageToken = 0;
1854 buildStartPageToken() {
1855 var o = new api.StartPageToken();
1856 buildCounterStartPageToken++;
1857 if (buildCounterStartPageToken < 3) {
1858 o.kind = "foo";
1859 o.startPageToken = "foo";
1860 }
1861 buildCounterStartPageToken--;
1862 return o;
1863 }
1864
1865 checkStartPageToken(api.StartPageToken o) {
1866 buildCounterStartPageToken++;
1867 if (buildCounterStartPageToken < 3) {
1868 unittest.expect(o.kind, unittest.equals('foo'));
1869 unittest.expect(o.startPageToken, unittest.equals('foo'));
1870 }
1871 buildCounterStartPageToken--;
1872 }
1873
1853 core.int buildCounterUserPicture = 0; 1874 core.int buildCounterUserPicture = 0;
1854 buildUserPicture() { 1875 buildUserPicture() {
1855 var o = new api.UserPicture(); 1876 var o = new api.UserPicture();
1856 buildCounterUserPicture++; 1877 buildCounterUserPicture++;
1857 if (buildCounterUserPicture < 3) { 1878 if (buildCounterUserPicture < 3) {
1858 o.url = "foo"; 1879 o.url = "foo";
1859 } 1880 }
1860 buildCounterUserPicture--; 1881 buildCounterUserPicture--;
1861 return o; 1882 return o;
1862 } 1883 }
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 2265
2245 unittest.group("obj-schema-RevisionList", () { 2266 unittest.group("obj-schema-RevisionList", () {
2246 unittest.test("to-json--from-json", () { 2267 unittest.test("to-json--from-json", () {
2247 var o = buildRevisionList(); 2268 var o = buildRevisionList();
2248 var od = new api.RevisionList.fromJson(o.toJson()); 2269 var od = new api.RevisionList.fromJson(o.toJson());
2249 checkRevisionList(od); 2270 checkRevisionList(od);
2250 }); 2271 });
2251 }); 2272 });
2252 2273
2253 2274
2275 unittest.group("obj-schema-StartPageToken", () {
2276 unittest.test("to-json--from-json", () {
2277 var o = buildStartPageToken();
2278 var od = new api.StartPageToken.fromJson(o.toJson());
2279 checkStartPageToken(od);
2280 });
2281 });
2282
2283
2254 unittest.group("obj-schema-UserPicture", () { 2284 unittest.group("obj-schema-UserPicture", () {
2255 unittest.test("to-json--from-json", () { 2285 unittest.test("to-json--from-json", () {
2256 var o = buildUserPicture(); 2286 var o = buildUserPicture();
2257 var od = new api.UserPicture.fromJson(o.toJson()); 2287 var od = new api.UserPicture.fromJson(o.toJson());
2258 checkUserPicture(od); 2288 checkUserPicture(od);
2259 }); 2289 });
2260 }); 2290 });
2261 2291
2262 2292
2263 unittest.group("obj-schema-User", () { 2293 unittest.group("obj-schema-User", () {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 "content-type" : "application/json; charset=utf-8", 2501 "content-type" : "application/json; charset=utf-8",
2472 }; 2502 };
2473 var resp = convert.JSON.encode(buildChange()); 2503 var resp = convert.JSON.encode(buildChange());
2474 return new async.Future.value(stringResponse(200, h, resp)); 2504 return new async.Future.value(stringResponse(200, h, resp));
2475 }), true); 2505 }), true);
2476 res.get(arg_changeId).then(unittest.expectAsync(((api.Change response) { 2506 res.get(arg_changeId).then(unittest.expectAsync(((api.Change response) {
2477 checkChange(response); 2507 checkChange(response);
2478 }))); 2508 })));
2479 }); 2509 });
2480 2510
2511 unittest.test("method--getStartPageToken", () {
2512
2513 var mock = new HttpServerMock();
2514 api.ChangesResourceApi res = new api.DriveApi(mock).changes;
2515 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2516 var path = (req.url).path;
2517 var pathOffset = 0;
2518 var index;
2519 var subPart;
2520 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2521 pathOffset += 1;
2522 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("drive/v2/"));
2523 pathOffset += 9;
2524 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("changes/startPageToken"));
2525 pathOffset += 22;
2526
2527 var query = (req.url).query;
2528 var queryOffset = 0;
2529 var queryMap = {};
2530 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2531 parseBool(n) {
2532 if (n == "true") return true;
2533 if (n == "false") return false;
2534 if (n == null) return null;
2535 throw new core.ArgumentError("Invalid boolean: $n");
2536 }
2537 if (query.length > 0) {
2538 for (var part in query.split("&")) {
2539 var keyvalue = part.split("=");
2540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2541 }
2542 }
2543
2544
2545 var h = {
2546 "content-type" : "application/json; charset=utf-8",
2547 };
2548 var resp = convert.JSON.encode(buildStartPageToken());
2549 return new async.Future.value(stringResponse(200, h, resp));
2550 }), true);
2551 res.getStartPageToken().then(unittest.expectAsync(((api.StartPageToken res ponse) {
2552 checkStartPageToken(response);
2553 })));
2554 });
2555
2481 unittest.test("method--list", () { 2556 unittest.test("method--list", () {
2482 2557
2483 var mock = new HttpServerMock(); 2558 var mock = new HttpServerMock();
2484 api.ChangesResourceApi res = new api.DriveApi(mock).changes; 2559 api.ChangesResourceApi res = new api.DriveApi(mock).changes;
2485 var arg_includeDeleted = true; 2560 var arg_includeDeleted = true;
2486 var arg_includeSubscribed = true; 2561 var arg_includeSubscribed = true;
2487 var arg_maxResults = 42; 2562 var arg_maxResults = 42;
2488 var arg_pageToken = "foo"; 2563 var arg_pageToken = "foo";
2489 var arg_spaces = "foo"; 2564 var arg_spaces = "foo";
2490 var arg_startChangeId = "foo"; 2565 var arg_startChangeId = "foo";
(...skipping 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after
5881 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 5956 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
5882 checkRevision(response); 5957 checkRevision(response);
5883 }))); 5958 })));
5884 }); 5959 });
5885 5960
5886 }); 5961 });
5887 5962
5888 5963
5889 } 5964 }
5890 5965
OLDNEW
« no previous file with comments | « generated/googleapis/test/doubleclicksearch/v2_test.dart ('k') | generated/googleapis/test/drive/v3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698