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

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

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.drive.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 buildUnnamed2135() { 54 buildUnnamed777() {
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 checkUnnamed2135(core.List<core.String> o) { 61 checkUnnamed777(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 = buildUnnamed2135(); 72 o.additionalRoles = buildUnnamed777();
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 checkUnnamed2135(o.additionalRoles); 82 checkUnnamed777(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 buildUnnamed2136() { 88 buildUnnamed778() {
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 checkUnnamed2136(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { 95 checkUnnamed778(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 = buildUnnamed2136(); 106 o.roleSets = buildUnnamed778();
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 checkUnnamed2136(o.roleSets); 116 checkUnnamed778(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 buildUnnamed2137() { 122 buildUnnamed779() {
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 checkUnnamed2137(core.List<api.AboutAdditionalRoleInfo> o) { 129 checkUnnamed779(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 buildUnnamed2138() { 135 buildUnnamed780() {
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 checkUnnamed2138(core.List<core.String> o) { 142 checkUnnamed780(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 = buildUnnamed2138(); 154 o.targets = buildUnnamed780();
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 checkUnnamed2138(o.targets); 164 checkUnnamed780(o.targets);
165 } 165 }
166 buildCounterAboutExportFormats--; 166 buildCounterAboutExportFormats--;
167 } 167 }
168 168
169 buildUnnamed2139() { 169 buildUnnamed781() {
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 checkUnnamed2139(core.List<api.AboutExportFormats> o) { 176 checkUnnamed781(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 buildUnnamed2140() { 203 buildUnnamed782() {
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 checkUnnamed2140(core.List<api.AboutFeatures> o) { 210 checkUnnamed782(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 buildUnnamed2141() { 216 buildUnnamed783() {
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 checkUnnamed2141(core.List<core.String> o) { 223 checkUnnamed783(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 buildUnnamed2142() { 229 buildUnnamed784() {
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 checkUnnamed2142(core.List<core.String> o) { 236 checkUnnamed784(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 = buildUnnamed2142(); 248 o.targets = buildUnnamed784();
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 checkUnnamed2142(o.targets); 258 checkUnnamed784(o.targets);
259 } 259 }
260 buildCounterAboutImportFormats--; 260 buildCounterAboutImportFormats--;
261 } 261 }
262 262
263 buildUnnamed2143() { 263 buildUnnamed785() {
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 checkUnnamed2143(core.List<api.AboutImportFormats> o) { 270 checkUnnamed785(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 buildUnnamed2144() { 297 buildUnnamed786() {
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 checkUnnamed2144(core.List<api.AboutMaxUploadSizes> o) { 304 checkUnnamed786(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 buildUnnamed2145() { 331 buildUnnamed787() {
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 checkUnnamed2145(core.List<api.AboutQuotaBytesByService> o) { 338 checkUnnamed787(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 = buildUnnamed2137(); 349 o.additionalRoleInfo = buildUnnamed779();
350 o.domainSharingPolicy = "foo"; 350 o.domainSharingPolicy = "foo";
351 o.etag = "foo"; 351 o.etag = "foo";
352 o.exportFormats = buildUnnamed2139(); 352 o.exportFormats = buildUnnamed781();
353 o.features = buildUnnamed2140(); 353 o.features = buildUnnamed782();
354 o.folderColorPalette = buildUnnamed2141(); 354 o.folderColorPalette = buildUnnamed783();
355 o.importFormats = buildUnnamed2143(); 355 o.importFormats = buildUnnamed785();
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 = buildUnnamed2144(); 360 o.maxUploadSizes = buildUnnamed786();
361 o.name = "foo"; 361 o.name = "foo";
362 o.permissionId = "foo"; 362 o.permissionId = "foo";
363 o.quotaBytesByService = buildUnnamed2145(); 363 o.quotaBytesByService = buildUnnamed787();
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 checkUnnamed2137(o.additionalRoleInfo); 381 checkUnnamed779(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 checkUnnamed2139(o.exportFormats); 384 checkUnnamed781(o.exportFormats);
385 checkUnnamed2140(o.features); 385 checkUnnamed782(o.features);
386 checkUnnamed2141(o.folderColorPalette); 386 checkUnnamed783(o.folderColorPalette);
387 checkUnnamed2143(o.importFormats); 387 checkUnnamed785(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 checkUnnamed2144(o.maxUploadSizes); 392 checkUnnamed786(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 checkUnnamed2145(o.quotaBytesByService); 395 checkUnnamed787(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 buildUnnamed2146() { 432 buildUnnamed788() {
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 checkUnnamed2146(core.List<api.AppIcons> o) { 439 checkUnnamed788(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 buildUnnamed2147() { 445 buildUnnamed789() {
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 checkUnnamed2147(core.List<core.String> o) { 452 checkUnnamed789(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 buildUnnamed2148() { 458 buildUnnamed790() {
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 checkUnnamed2148(core.List<core.String> o) { 465 checkUnnamed790(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 buildUnnamed2149() { 471 buildUnnamed791() {
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 checkUnnamed2149(core.List<core.String> o) { 478 checkUnnamed791(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 buildUnnamed2150() { 484 buildUnnamed792() {
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 checkUnnamed2150(core.List<core.String> o) { 491 checkUnnamed792(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 = buildUnnamed2146(); 506 o.icons = buildUnnamed788();
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 = buildUnnamed2147(); 514 o.primaryFileExtensions = buildUnnamed789();
515 o.primaryMimeTypes = buildUnnamed2148(); 515 o.primaryMimeTypes = buildUnnamed790();
516 o.productId = "foo"; 516 o.productId = "foo";
517 o.productUrl = "foo"; 517 o.productUrl = "foo";
518 o.secondaryFileExtensions = buildUnnamed2149(); 518 o.secondaryFileExtensions = buildUnnamed791();
519 o.secondaryMimeTypes = buildUnnamed2150(); 519 o.secondaryMimeTypes = buildUnnamed792();
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 checkUnnamed2146(o.icons); 538 checkUnnamed788(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 checkUnnamed2147(o.primaryFileExtensions); 546 checkUnnamed789(o.primaryFileExtensions);
547 checkUnnamed2148(o.primaryMimeTypes); 547 checkUnnamed790(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 checkUnnamed2149(o.secondaryFileExtensions); 550 checkUnnamed791(o.secondaryFileExtensions);
551 checkUnnamed2150(o.secondaryMimeTypes); 551 checkUnnamed792(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 buildUnnamed2151() { 562 buildUnnamed793() {
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 checkUnnamed2151(core.List<core.String> o) { 569 checkUnnamed793(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 buildUnnamed2152() { 575 buildUnnamed794() {
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 checkUnnamed2152(core.List<api.App> o) { 582 checkUnnamed794(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 = buildUnnamed2151(); 593 o.defaultAppIds = buildUnnamed793();
594 o.etag = "foo"; 594 o.etag = "foo";
595 o.items = buildUnnamed2152(); 595 o.items = buildUnnamed794();
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 checkUnnamed2151(o.defaultAppIds); 606 checkUnnamed793(o.defaultAppIds);
607 unittest.expect(o.etag, unittest.equals('foo')); 607 unittest.expect(o.etag, unittest.equals('foo'));
608 checkUnnamed2152(o.items); 608 checkUnnamed794(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 buildUnnamed2153() { 646 buildUnnamed795() {
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 checkUnnamed2153(core.List<api.Change> o) { 653 checkUnnamed795(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 = buildUnnamed2153(); 665 o.items = buildUnnamed795();
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 checkUnnamed2153(o.items); 680 checkUnnamed795(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 buildUnnamed2154() { 690 buildUnnamed796() {
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 checkUnnamed2154(core.Map<core.String, core.String> o) { 697 checkUnnamed796(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 = buildUnnamed2154(); 712 o.params = buildUnnamed796();
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 checkUnnamed2154(o.params); 730 checkUnnamed796(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 buildUnnamed2155() { 740 buildUnnamed797() {
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 checkUnnamed2155(core.List<api.ChildReference> o) { 747 checkUnnamed797(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 = buildUnnamed2155(); 759 o.items = buildUnnamed797();
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 checkUnnamed2155(o.items); 773 checkUnnamed797(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 buildUnnamed2156() { 828 buildUnnamed798() {
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 checkUnnamed2156(core.List<api.CommentReply> o) { 835 checkUnnamed798(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 = buildUnnamed2156(); 858 o.replies = buildUnnamed798();
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 checkUnnamed2156(o.replies); 881 checkUnnamed798(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 buildUnnamed2157() { 888 buildUnnamed799() {
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 checkUnnamed2157(core.List<api.Comment> o) { 895 checkUnnamed799(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 = buildUnnamed2157(); 906 o.items = buildUnnamed799();
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 checkUnnamed2157(o.items); 919 checkUnnamed799(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 buildUnnamed2158() { 963 buildUnnamed800() {
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 checkUnnamed2158(core.List<api.CommentReply> o) { 970 checkUnnamed800(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 = buildUnnamed2158(); 981 o.items = buildUnnamed800();
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 checkUnnamed2158(o.items); 994 checkUnnamed800(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 buildUnnamed2159() { 1003 buildUnnamed801() {
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 checkUnnamed2159(core.Map<core.String, core.String> o) { 1010 checkUnnamed801(core.Map<core.String, core.String> o) {
1011 unittest.expect(o, unittest.hasLength(2)); 1011 unittest.expect(o, unittest.hasLength(2));
1012 unittest.expect(o["x"], unittest.equals('foo')); 1012 unittest.expect(o["x"], unittest.equals('foo'));
1013 unittest.expect(o["y"], unittest.equals('foo')); 1013 unittest.expect(o["y"], unittest.equals('foo'));
1014 } 1014 }
1015 1015
1016 core.int buildCounterFileImageMediaMetadataLocation = 0; 1016 core.int buildCounterFileImageMediaMetadataLocation = 0;
1017 buildFileImageMediaMetadataLocation() { 1017 buildFileImageMediaMetadataLocation() {
1018 var o = new api.FileImageMediaMetadataLocation(); 1018 var o = new api.FileImageMediaMetadataLocation();
1019 buildCounterFileImageMediaMetadataLocation++; 1019 buildCounterFileImageMediaMetadataLocation++;
1020 if (buildCounterFileImageMediaMetadataLocation < 3) { 1020 if (buildCounterFileImageMediaMetadataLocation < 3) {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 if (buildCounterFileLabels < 3) { 1134 if (buildCounterFileLabels < 3) {
1135 unittest.expect(o.hidden, unittest.isTrue); 1135 unittest.expect(o.hidden, unittest.isTrue);
1136 unittest.expect(o.restricted, unittest.isTrue); 1136 unittest.expect(o.restricted, unittest.isTrue);
1137 unittest.expect(o.starred, unittest.isTrue); 1137 unittest.expect(o.starred, unittest.isTrue);
1138 unittest.expect(o.trashed, unittest.isTrue); 1138 unittest.expect(o.trashed, unittest.isTrue);
1139 unittest.expect(o.viewed, unittest.isTrue); 1139 unittest.expect(o.viewed, unittest.isTrue);
1140 } 1140 }
1141 buildCounterFileLabels--; 1141 buildCounterFileLabels--;
1142 } 1142 }
1143 1143
1144 buildUnnamed2160() { 1144 buildUnnamed802() {
1145 var o = new core.Map<core.String, core.String>(); 1145 var o = new core.Map<core.String, core.String>();
1146 o["x"] = "foo"; 1146 o["x"] = "foo";
1147 o["y"] = "foo"; 1147 o["y"] = "foo";
1148 return o; 1148 return o;
1149 } 1149 }
1150 1150
1151 checkUnnamed2160(core.Map<core.String, core.String> o) { 1151 checkUnnamed802(core.Map<core.String, core.String> o) {
1152 unittest.expect(o, unittest.hasLength(2)); 1152 unittest.expect(o, unittest.hasLength(2));
1153 unittest.expect(o["x"], unittest.equals('foo')); 1153 unittest.expect(o["x"], unittest.equals('foo'));
1154 unittest.expect(o["y"], unittest.equals('foo')); 1154 unittest.expect(o["y"], unittest.equals('foo'));
1155 } 1155 }
1156 1156
1157 buildUnnamed2161() { 1157 buildUnnamed803() {
1158 var o = new core.List<core.String>(); 1158 var o = new core.List<core.String>();
1159 o.add("foo"); 1159 o.add("foo");
1160 o.add("foo"); 1160 o.add("foo");
1161 return o; 1161 return o;
1162 } 1162 }
1163 1163
1164 checkUnnamed2161(core.List<core.String> o) { 1164 checkUnnamed803(core.List<core.String> o) {
1165 unittest.expect(o, unittest.hasLength(2)); 1165 unittest.expect(o, unittest.hasLength(2));
1166 unittest.expect(o[0], unittest.equals('foo')); 1166 unittest.expect(o[0], unittest.equals('foo'));
1167 unittest.expect(o[1], unittest.equals('foo')); 1167 unittest.expect(o[1], unittest.equals('foo'));
1168 } 1168 }
1169 1169
1170 buildUnnamed2162() { 1170 buildUnnamed804() {
1171 var o = new core.List<api.User>(); 1171 var o = new core.List<api.User>();
1172 o.add(buildUser()); 1172 o.add(buildUser());
1173 o.add(buildUser()); 1173 o.add(buildUser());
1174 return o; 1174 return o;
1175 } 1175 }
1176 1176
1177 checkUnnamed2162(core.List<api.User> o) { 1177 checkUnnamed804(core.List<api.User> o) {
1178 unittest.expect(o, unittest.hasLength(2)); 1178 unittest.expect(o, unittest.hasLength(2));
1179 checkUser(o[0]); 1179 checkUser(o[0]);
1180 checkUser(o[1]); 1180 checkUser(o[1]);
1181 } 1181 }
1182 1182
1183 buildUnnamed2163() { 1183 buildUnnamed805() {
1184 var o = new core.List<api.ParentReference>(); 1184 var o = new core.List<api.ParentReference>();
1185 o.add(buildParentReference()); 1185 o.add(buildParentReference());
1186 o.add(buildParentReference()); 1186 o.add(buildParentReference());
1187 return o; 1187 return o;
1188 } 1188 }
1189 1189
1190 checkUnnamed2163(core.List<api.ParentReference> o) { 1190 checkUnnamed805(core.List<api.ParentReference> o) {
1191 unittest.expect(o, unittest.hasLength(2)); 1191 unittest.expect(o, unittest.hasLength(2));
1192 checkParentReference(o[0]); 1192 checkParentReference(o[0]);
1193 checkParentReference(o[1]); 1193 checkParentReference(o[1]);
1194 } 1194 }
1195 1195
1196 buildUnnamed2164() { 1196 buildUnnamed806() {
1197 var o = new core.List<api.Permission>(); 1197 var o = new core.List<api.Permission>();
1198 o.add(buildPermission()); 1198 o.add(buildPermission());
1199 o.add(buildPermission()); 1199 o.add(buildPermission());
1200 return o; 1200 return o;
1201 } 1201 }
1202 1202
1203 checkUnnamed2164(core.List<api.Permission> o) { 1203 checkUnnamed806(core.List<api.Permission> o) {
1204 unittest.expect(o, unittest.hasLength(2)); 1204 unittest.expect(o, unittest.hasLength(2));
1205 checkPermission(o[0]); 1205 checkPermission(o[0]);
1206 checkPermission(o[1]); 1206 checkPermission(o[1]);
1207 } 1207 }
1208 1208
1209 buildUnnamed2165() { 1209 buildUnnamed807() {
1210 var o = new core.List<api.Property>(); 1210 var o = new core.List<api.Property>();
1211 o.add(buildProperty()); 1211 o.add(buildProperty());
1212 o.add(buildProperty()); 1212 o.add(buildProperty());
1213 return o; 1213 return o;
1214 } 1214 }
1215 1215
1216 checkUnnamed2165(core.List<api.Property> o) { 1216 checkUnnamed807(core.List<api.Property> o) {
1217 unittest.expect(o, unittest.hasLength(2)); 1217 unittest.expect(o, unittest.hasLength(2));
1218 checkProperty(o[0]); 1218 checkProperty(o[0]);
1219 checkProperty(o[1]); 1219 checkProperty(o[1]);
1220 } 1220 }
1221 1221
1222 buildUnnamed2166() { 1222 buildUnnamed808() {
1223 var o = new core.List<core.String>(); 1223 var o = new core.List<core.String>();
1224 o.add("foo"); 1224 o.add("foo");
1225 o.add("foo"); 1225 o.add("foo");
1226 return o; 1226 return o;
1227 } 1227 }
1228 1228
1229 checkUnnamed2166(core.List<core.String> o) { 1229 checkUnnamed808(core.List<core.String> o) {
1230 unittest.expect(o, unittest.hasLength(2)); 1230 unittest.expect(o, unittest.hasLength(2));
1231 unittest.expect(o[0], unittest.equals('foo')); 1231 unittest.expect(o[0], unittest.equals('foo'));
1232 unittest.expect(o[1], unittest.equals('foo')); 1232 unittest.expect(o[1], unittest.equals('foo'));
1233 } 1233 }
1234 1234
1235 core.int buildCounterFileThumbnail = 0; 1235 core.int buildCounterFileThumbnail = 0;
1236 buildFileThumbnail() { 1236 buildFileThumbnail() {
1237 var o = new api.FileThumbnail(); 1237 var o = new api.FileThumbnail();
1238 buildCounterFileThumbnail++; 1238 buildCounterFileThumbnail++;
1239 if (buildCounterFileThumbnail < 3) { 1239 if (buildCounterFileThumbnail < 3) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 o.canReadRevisions = true; 1287 o.canReadRevisions = true;
1288 o.copyable = true; 1288 o.copyable = true;
1289 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); 1289 o.createdDate = core.DateTime.parse("2002-02-27T14:01:02");
1290 o.defaultOpenWithLink = "foo"; 1290 o.defaultOpenWithLink = "foo";
1291 o.description = "foo"; 1291 o.description = "foo";
1292 o.downloadUrl = "foo"; 1292 o.downloadUrl = "foo";
1293 o.editable = true; 1293 o.editable = true;
1294 o.embedLink = "foo"; 1294 o.embedLink = "foo";
1295 o.etag = "foo"; 1295 o.etag = "foo";
1296 o.explicitlyTrashed = true; 1296 o.explicitlyTrashed = true;
1297 o.exportLinks = buildUnnamed2159(); 1297 o.exportLinks = buildUnnamed801();
1298 o.fileExtension = "foo"; 1298 o.fileExtension = "foo";
1299 o.fileSize = "foo"; 1299 o.fileSize = "foo";
1300 o.folderColorRgb = "foo"; 1300 o.folderColorRgb = "foo";
1301 o.fullFileExtension = "foo"; 1301 o.fullFileExtension = "foo";
1302 o.headRevisionId = "foo"; 1302 o.headRevisionId = "foo";
1303 o.iconLink = "foo"; 1303 o.iconLink = "foo";
1304 o.id = "foo"; 1304 o.id = "foo";
1305 o.imageMediaMetadata = buildFileImageMediaMetadata(); 1305 o.imageMediaMetadata = buildFileImageMediaMetadata();
1306 o.indexableText = buildFileIndexableText(); 1306 o.indexableText = buildFileIndexableText();
1307 o.isAppAuthorized = true; 1307 o.isAppAuthorized = true;
1308 o.kind = "foo"; 1308 o.kind = "foo";
1309 o.labels = buildFileLabels(); 1309 o.labels = buildFileLabels();
1310 o.lastModifyingUser = buildUser(); 1310 o.lastModifyingUser = buildUser();
1311 o.lastModifyingUserName = "foo"; 1311 o.lastModifyingUserName = "foo";
1312 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1312 o.lastViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1313 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1313 o.markedViewedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1314 o.md5Checksum = "foo"; 1314 o.md5Checksum = "foo";
1315 o.mimeType = "foo"; 1315 o.mimeType = "foo";
1316 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1316 o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1317 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1317 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1318 o.openWithLinks = buildUnnamed2160(); 1318 o.openWithLinks = buildUnnamed802();
1319 o.originalFilename = "foo"; 1319 o.originalFilename = "foo";
1320 o.ownedByMe = true; 1320 o.ownedByMe = true;
1321 o.ownerNames = buildUnnamed2161(); 1321 o.ownerNames = buildUnnamed803();
1322 o.owners = buildUnnamed2162(); 1322 o.owners = buildUnnamed804();
1323 o.parents = buildUnnamed2163(); 1323 o.parents = buildUnnamed805();
1324 o.permissions = buildUnnamed2164(); 1324 o.permissions = buildUnnamed806();
1325 o.properties = buildUnnamed2165(); 1325 o.properties = buildUnnamed807();
1326 o.quotaBytesUsed = "foo"; 1326 o.quotaBytesUsed = "foo";
1327 o.selfLink = "foo"; 1327 o.selfLink = "foo";
1328 o.shareable = true; 1328 o.shareable = true;
1329 o.shared = true; 1329 o.shared = true;
1330 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); 1330 o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02");
1331 o.sharingUser = buildUser(); 1331 o.sharingUser = buildUser();
1332 o.spaces = buildUnnamed2166(); 1332 o.spaces = buildUnnamed808();
1333 o.thumbnail = buildFileThumbnail(); 1333 o.thumbnail = buildFileThumbnail();
1334 o.thumbnailLink = "foo"; 1334 o.thumbnailLink = "foo";
1335 o.title = "foo"; 1335 o.title = "foo";
1336 o.userPermission = buildPermission(); 1336 o.userPermission = buildPermission();
1337 o.version = "foo"; 1337 o.version = "foo";
1338 o.videoMediaMetadata = buildFileVideoMediaMetadata(); 1338 o.videoMediaMetadata = buildFileVideoMediaMetadata();
1339 o.webContentLink = "foo"; 1339 o.webContentLink = "foo";
1340 o.webViewLink = "foo"; 1340 o.webViewLink = "foo";
1341 o.writersCanShare = true; 1341 o.writersCanShare = true;
1342 } 1342 }
(...skipping 10 matching lines...) Expand all
1353 unittest.expect(o.canReadRevisions, unittest.isTrue); 1353 unittest.expect(o.canReadRevisions, unittest.isTrue);
1354 unittest.expect(o.copyable, unittest.isTrue); 1354 unittest.expect(o.copyable, unittest.isTrue);
1355 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02"))); 1355 unittest.expect(o.createdDate, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
1356 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo')); 1356 unittest.expect(o.defaultOpenWithLink, unittest.equals('foo'));
1357 unittest.expect(o.description, unittest.equals('foo')); 1357 unittest.expect(o.description, unittest.equals('foo'));
1358 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1358 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1359 unittest.expect(o.editable, unittest.isTrue); 1359 unittest.expect(o.editable, unittest.isTrue);
1360 unittest.expect(o.embedLink, unittest.equals('foo')); 1360 unittest.expect(o.embedLink, unittest.equals('foo'));
1361 unittest.expect(o.etag, unittest.equals('foo')); 1361 unittest.expect(o.etag, unittest.equals('foo'));
1362 unittest.expect(o.explicitlyTrashed, unittest.isTrue); 1362 unittest.expect(o.explicitlyTrashed, unittest.isTrue);
1363 checkUnnamed2159(o.exportLinks); 1363 checkUnnamed801(o.exportLinks);
1364 unittest.expect(o.fileExtension, unittest.equals('foo')); 1364 unittest.expect(o.fileExtension, unittest.equals('foo'));
1365 unittest.expect(o.fileSize, unittest.equals('foo')); 1365 unittest.expect(o.fileSize, unittest.equals('foo'));
1366 unittest.expect(o.folderColorRgb, unittest.equals('foo')); 1366 unittest.expect(o.folderColorRgb, unittest.equals('foo'));
1367 unittest.expect(o.fullFileExtension, unittest.equals('foo')); 1367 unittest.expect(o.fullFileExtension, unittest.equals('foo'));
1368 unittest.expect(o.headRevisionId, unittest.equals('foo')); 1368 unittest.expect(o.headRevisionId, unittest.equals('foo'));
1369 unittest.expect(o.iconLink, unittest.equals('foo')); 1369 unittest.expect(o.iconLink, unittest.equals('foo'));
1370 unittest.expect(o.id, unittest.equals('foo')); 1370 unittest.expect(o.id, unittest.equals('foo'));
1371 checkFileImageMediaMetadata(o.imageMediaMetadata); 1371 checkFileImageMediaMetadata(o.imageMediaMetadata);
1372 checkFileIndexableText(o.indexableText); 1372 checkFileIndexableText(o.indexableText);
1373 unittest.expect(o.isAppAuthorized, unittest.isTrue); 1373 unittest.expect(o.isAppAuthorized, unittest.isTrue);
1374 unittest.expect(o.kind, unittest.equals('foo')); 1374 unittest.expect(o.kind, unittest.equals('foo'));
1375 checkFileLabels(o.labels); 1375 checkFileLabels(o.labels);
1376 checkUser(o.lastModifyingUser); 1376 checkUser(o.lastModifyingUser);
1377 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1377 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1378 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02"))); 1378 unittest.expect(o.lastViewedByMeDate, unittest.equals(core.DateTime.parse("2 002-02-27T14:01:02")));
1379 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02"))); 1379 unittest.expect(o.markedViewedByMeDate, unittest.equals(core.DateTime.parse( "2002-02-27T14:01:02")));
1380 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1380 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1381 unittest.expect(o.mimeType, unittest.equals('foo')); 1381 unittest.expect(o.mimeType, unittest.equals('foo'));
1382 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1382 unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1383 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1383 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1384 checkUnnamed2160(o.openWithLinks); 1384 checkUnnamed802(o.openWithLinks);
1385 unittest.expect(o.originalFilename, unittest.equals('foo')); 1385 unittest.expect(o.originalFilename, unittest.equals('foo'));
1386 unittest.expect(o.ownedByMe, unittest.isTrue); 1386 unittest.expect(o.ownedByMe, unittest.isTrue);
1387 checkUnnamed2161(o.ownerNames); 1387 checkUnnamed803(o.ownerNames);
1388 checkUnnamed2162(o.owners); 1388 checkUnnamed804(o.owners);
1389 checkUnnamed2163(o.parents); 1389 checkUnnamed805(o.parents);
1390 checkUnnamed2164(o.permissions); 1390 checkUnnamed806(o.permissions);
1391 checkUnnamed2165(o.properties); 1391 checkUnnamed807(o.properties);
1392 unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); 1392 unittest.expect(o.quotaBytesUsed, unittest.equals('foo'));
1393 unittest.expect(o.selfLink, unittest.equals('foo')); 1393 unittest.expect(o.selfLink, unittest.equals('foo'));
1394 unittest.expect(o.shareable, unittest.isTrue); 1394 unittest.expect(o.shareable, unittest.isTrue);
1395 unittest.expect(o.shared, unittest.isTrue); 1395 unittest.expect(o.shared, unittest.isTrue);
1396 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02"))); 1396 unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("200 2-02-27T14:01:02")));
1397 checkUser(o.sharingUser); 1397 checkUser(o.sharingUser);
1398 checkUnnamed2166(o.spaces); 1398 checkUnnamed808(o.spaces);
1399 checkFileThumbnail(o.thumbnail); 1399 checkFileThumbnail(o.thumbnail);
1400 unittest.expect(o.thumbnailLink, unittest.equals('foo')); 1400 unittest.expect(o.thumbnailLink, unittest.equals('foo'));
1401 unittest.expect(o.title, unittest.equals('foo')); 1401 unittest.expect(o.title, unittest.equals('foo'));
1402 checkPermission(o.userPermission); 1402 checkPermission(o.userPermission);
1403 unittest.expect(o.version, unittest.equals('foo')); 1403 unittest.expect(o.version, unittest.equals('foo'));
1404 checkFileVideoMediaMetadata(o.videoMediaMetadata); 1404 checkFileVideoMediaMetadata(o.videoMediaMetadata);
1405 unittest.expect(o.webContentLink, unittest.equals('foo')); 1405 unittest.expect(o.webContentLink, unittest.equals('foo'));
1406 unittest.expect(o.webViewLink, unittest.equals('foo')); 1406 unittest.expect(o.webViewLink, unittest.equals('foo'));
1407 unittest.expect(o.writersCanShare, unittest.isTrue); 1407 unittest.expect(o.writersCanShare, unittest.isTrue);
1408 } 1408 }
1409 buildCounterFile--; 1409 buildCounterFile--;
1410 } 1410 }
1411 1411
1412 buildUnnamed2167() { 1412 buildUnnamed809() {
1413 var o = new core.List<api.File>(); 1413 var o = new core.List<api.File>();
1414 o.add(buildFile()); 1414 o.add(buildFile());
1415 o.add(buildFile()); 1415 o.add(buildFile());
1416 return o; 1416 return o;
1417 } 1417 }
1418 1418
1419 checkUnnamed2167(core.List<api.File> o) { 1419 checkUnnamed809(core.List<api.File> o) {
1420 unittest.expect(o, unittest.hasLength(2)); 1420 unittest.expect(o, unittest.hasLength(2));
1421 checkFile(o[0]); 1421 checkFile(o[0]);
1422 checkFile(o[1]); 1422 checkFile(o[1]);
1423 } 1423 }
1424 1424
1425 core.int buildCounterFileList = 0; 1425 core.int buildCounterFileList = 0;
1426 buildFileList() { 1426 buildFileList() {
1427 var o = new api.FileList(); 1427 var o = new api.FileList();
1428 buildCounterFileList++; 1428 buildCounterFileList++;
1429 if (buildCounterFileList < 3) { 1429 if (buildCounterFileList < 3) {
1430 o.etag = "foo"; 1430 o.etag = "foo";
1431 o.items = buildUnnamed2167(); 1431 o.items = buildUnnamed809();
1432 o.kind = "foo"; 1432 o.kind = "foo";
1433 o.nextLink = "foo"; 1433 o.nextLink = "foo";
1434 o.nextPageToken = "foo"; 1434 o.nextPageToken = "foo";
1435 o.selfLink = "foo"; 1435 o.selfLink = "foo";
1436 } 1436 }
1437 buildCounterFileList--; 1437 buildCounterFileList--;
1438 return o; 1438 return o;
1439 } 1439 }
1440 1440
1441 checkFileList(api.FileList o) { 1441 checkFileList(api.FileList o) {
1442 buildCounterFileList++; 1442 buildCounterFileList++;
1443 if (buildCounterFileList < 3) { 1443 if (buildCounterFileList < 3) {
1444 unittest.expect(o.etag, unittest.equals('foo')); 1444 unittest.expect(o.etag, unittest.equals('foo'));
1445 checkUnnamed2167(o.items); 1445 checkUnnamed809(o.items);
1446 unittest.expect(o.kind, unittest.equals('foo')); 1446 unittest.expect(o.kind, unittest.equals('foo'));
1447 unittest.expect(o.nextLink, unittest.equals('foo')); 1447 unittest.expect(o.nextLink, unittest.equals('foo'));
1448 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1448 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1449 unittest.expect(o.selfLink, unittest.equals('foo')); 1449 unittest.expect(o.selfLink, unittest.equals('foo'));
1450 } 1450 }
1451 buildCounterFileList--; 1451 buildCounterFileList--;
1452 } 1452 }
1453 1453
1454 buildUnnamed2168() { 1454 buildUnnamed810() {
1455 var o = new core.List<core.String>(); 1455 var o = new core.List<core.String>();
1456 o.add("foo"); 1456 o.add("foo");
1457 o.add("foo"); 1457 o.add("foo");
1458 return o; 1458 return o;
1459 } 1459 }
1460 1460
1461 checkUnnamed2168(core.List<core.String> o) { 1461 checkUnnamed810(core.List<core.String> o) {
1462 unittest.expect(o, unittest.hasLength(2)); 1462 unittest.expect(o, unittest.hasLength(2));
1463 unittest.expect(o[0], unittest.equals('foo')); 1463 unittest.expect(o[0], unittest.equals('foo'));
1464 unittest.expect(o[1], unittest.equals('foo')); 1464 unittest.expect(o[1], unittest.equals('foo'));
1465 } 1465 }
1466 1466
1467 core.int buildCounterGeneratedIds = 0; 1467 core.int buildCounterGeneratedIds = 0;
1468 buildGeneratedIds() { 1468 buildGeneratedIds() {
1469 var o = new api.GeneratedIds(); 1469 var o = new api.GeneratedIds();
1470 buildCounterGeneratedIds++; 1470 buildCounterGeneratedIds++;
1471 if (buildCounterGeneratedIds < 3) { 1471 if (buildCounterGeneratedIds < 3) {
1472 o.ids = buildUnnamed2168(); 1472 o.ids = buildUnnamed810();
1473 o.kind = "foo"; 1473 o.kind = "foo";
1474 o.space = "foo"; 1474 o.space = "foo";
1475 } 1475 }
1476 buildCounterGeneratedIds--; 1476 buildCounterGeneratedIds--;
1477 return o; 1477 return o;
1478 } 1478 }
1479 1479
1480 checkGeneratedIds(api.GeneratedIds o) { 1480 checkGeneratedIds(api.GeneratedIds o) {
1481 buildCounterGeneratedIds++; 1481 buildCounterGeneratedIds++;
1482 if (buildCounterGeneratedIds < 3) { 1482 if (buildCounterGeneratedIds < 3) {
1483 checkUnnamed2168(o.ids); 1483 checkUnnamed810(o.ids);
1484 unittest.expect(o.kind, unittest.equals('foo')); 1484 unittest.expect(o.kind, unittest.equals('foo'));
1485 unittest.expect(o.space, unittest.equals('foo')); 1485 unittest.expect(o.space, unittest.equals('foo'));
1486 } 1486 }
1487 buildCounterGeneratedIds--; 1487 buildCounterGeneratedIds--;
1488 } 1488 }
1489 1489
1490 buildUnnamed2169() { 1490 buildUnnamed811() {
1491 var o = new core.List<api.ParentReference>(); 1491 var o = new core.List<api.ParentReference>();
1492 o.add(buildParentReference()); 1492 o.add(buildParentReference());
1493 o.add(buildParentReference()); 1493 o.add(buildParentReference());
1494 return o; 1494 return o;
1495 } 1495 }
1496 1496
1497 checkUnnamed2169(core.List<api.ParentReference> o) { 1497 checkUnnamed811(core.List<api.ParentReference> o) {
1498 unittest.expect(o, unittest.hasLength(2)); 1498 unittest.expect(o, unittest.hasLength(2));
1499 checkParentReference(o[0]); 1499 checkParentReference(o[0]);
1500 checkParentReference(o[1]); 1500 checkParentReference(o[1]);
1501 } 1501 }
1502 1502
1503 core.int buildCounterParentList = 0; 1503 core.int buildCounterParentList = 0;
1504 buildParentList() { 1504 buildParentList() {
1505 var o = new api.ParentList(); 1505 var o = new api.ParentList();
1506 buildCounterParentList++; 1506 buildCounterParentList++;
1507 if (buildCounterParentList < 3) { 1507 if (buildCounterParentList < 3) {
1508 o.etag = "foo"; 1508 o.etag = "foo";
1509 o.items = buildUnnamed2169(); 1509 o.items = buildUnnamed811();
1510 o.kind = "foo"; 1510 o.kind = "foo";
1511 o.selfLink = "foo"; 1511 o.selfLink = "foo";
1512 } 1512 }
1513 buildCounterParentList--; 1513 buildCounterParentList--;
1514 return o; 1514 return o;
1515 } 1515 }
1516 1516
1517 checkParentList(api.ParentList o) { 1517 checkParentList(api.ParentList o) {
1518 buildCounterParentList++; 1518 buildCounterParentList++;
1519 if (buildCounterParentList < 3) { 1519 if (buildCounterParentList < 3) {
1520 unittest.expect(o.etag, unittest.equals('foo')); 1520 unittest.expect(o.etag, unittest.equals('foo'));
1521 checkUnnamed2169(o.items); 1521 checkUnnamed811(o.items);
1522 unittest.expect(o.kind, unittest.equals('foo')); 1522 unittest.expect(o.kind, unittest.equals('foo'));
1523 unittest.expect(o.selfLink, unittest.equals('foo')); 1523 unittest.expect(o.selfLink, unittest.equals('foo'));
1524 } 1524 }
1525 buildCounterParentList--; 1525 buildCounterParentList--;
1526 } 1526 }
1527 1527
1528 core.int buildCounterParentReference = 0; 1528 core.int buildCounterParentReference = 0;
1529 buildParentReference() { 1529 buildParentReference() {
1530 var o = new api.ParentReference(); 1530 var o = new api.ParentReference();
1531 buildCounterParentReference++; 1531 buildCounterParentReference++;
(...skipping 13 matching lines...) Expand all
1545 if (buildCounterParentReference < 3) { 1545 if (buildCounterParentReference < 3) {
1546 unittest.expect(o.id, unittest.equals('foo')); 1546 unittest.expect(o.id, unittest.equals('foo'));
1547 unittest.expect(o.isRoot, unittest.isTrue); 1547 unittest.expect(o.isRoot, unittest.isTrue);
1548 unittest.expect(o.kind, unittest.equals('foo')); 1548 unittest.expect(o.kind, unittest.equals('foo'));
1549 unittest.expect(o.parentLink, unittest.equals('foo')); 1549 unittest.expect(o.parentLink, unittest.equals('foo'));
1550 unittest.expect(o.selfLink, unittest.equals('foo')); 1550 unittest.expect(o.selfLink, unittest.equals('foo'));
1551 } 1551 }
1552 buildCounterParentReference--; 1552 buildCounterParentReference--;
1553 } 1553 }
1554 1554
1555 buildUnnamed2170() { 1555 buildUnnamed812() {
1556 var o = new core.List<core.String>(); 1556 var o = new core.List<core.String>();
1557 o.add("foo"); 1557 o.add("foo");
1558 o.add("foo"); 1558 o.add("foo");
1559 return o; 1559 return o;
1560 } 1560 }
1561 1561
1562 checkUnnamed2170(core.List<core.String> o) { 1562 checkUnnamed812(core.List<core.String> o) {
1563 unittest.expect(o, unittest.hasLength(2)); 1563 unittest.expect(o, unittest.hasLength(2));
1564 unittest.expect(o[0], unittest.equals('foo')); 1564 unittest.expect(o[0], unittest.equals('foo'));
1565 unittest.expect(o[1], unittest.equals('foo')); 1565 unittest.expect(o[1], unittest.equals('foo'));
1566 } 1566 }
1567 1567
1568 core.int buildCounterPermission = 0; 1568 core.int buildCounterPermission = 0;
1569 buildPermission() { 1569 buildPermission() {
1570 var o = new api.Permission(); 1570 var o = new api.Permission();
1571 buildCounterPermission++; 1571 buildCounterPermission++;
1572 if (buildCounterPermission < 3) { 1572 if (buildCounterPermission < 3) {
1573 o.additionalRoles = buildUnnamed2170(); 1573 o.additionalRoles = buildUnnamed812();
1574 o.authKey = "foo"; 1574 o.authKey = "foo";
1575 o.domain = "foo"; 1575 o.domain = "foo";
1576 o.emailAddress = "foo"; 1576 o.emailAddress = "foo";
1577 o.etag = "foo"; 1577 o.etag = "foo";
1578 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02");
1578 o.id = "foo"; 1579 o.id = "foo";
1579 o.kind = "foo"; 1580 o.kind = "foo";
1580 o.name = "foo"; 1581 o.name = "foo";
1581 o.photoLink = "foo"; 1582 o.photoLink = "foo";
1582 o.role = "foo"; 1583 o.role = "foo";
1583 o.selfLink = "foo"; 1584 o.selfLink = "foo";
1584 o.type = "foo"; 1585 o.type = "foo";
1585 o.value = "foo"; 1586 o.value = "foo";
1586 o.withLink = true; 1587 o.withLink = true;
1587 } 1588 }
1588 buildCounterPermission--; 1589 buildCounterPermission--;
1589 return o; 1590 return o;
1590 } 1591 }
1591 1592
1592 checkPermission(api.Permission o) { 1593 checkPermission(api.Permission o) {
1593 buildCounterPermission++; 1594 buildCounterPermission++;
1594 if (buildCounterPermission < 3) { 1595 if (buildCounterPermission < 3) {
1595 checkUnnamed2170(o.additionalRoles); 1596 checkUnnamed812(o.additionalRoles);
1596 unittest.expect(o.authKey, unittest.equals('foo')); 1597 unittest.expect(o.authKey, unittest.equals('foo'));
1597 unittest.expect(o.domain, unittest.equals('foo')); 1598 unittest.expect(o.domain, unittest.equals('foo'));
1598 unittest.expect(o.emailAddress, unittest.equals('foo')); 1599 unittest.expect(o.emailAddress, unittest.equals('foo'));
1599 unittest.expect(o.etag, unittest.equals('foo')); 1600 unittest.expect(o.etag, unittest.equals('foo'));
1601 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002- 02-27T14:01:02")));
1600 unittest.expect(o.id, unittest.equals('foo')); 1602 unittest.expect(o.id, unittest.equals('foo'));
1601 unittest.expect(o.kind, unittest.equals('foo')); 1603 unittest.expect(o.kind, unittest.equals('foo'));
1602 unittest.expect(o.name, unittest.equals('foo')); 1604 unittest.expect(o.name, unittest.equals('foo'));
1603 unittest.expect(o.photoLink, unittest.equals('foo')); 1605 unittest.expect(o.photoLink, unittest.equals('foo'));
1604 unittest.expect(o.role, unittest.equals('foo')); 1606 unittest.expect(o.role, unittest.equals('foo'));
1605 unittest.expect(o.selfLink, unittest.equals('foo')); 1607 unittest.expect(o.selfLink, unittest.equals('foo'));
1606 unittest.expect(o.type, unittest.equals('foo')); 1608 unittest.expect(o.type, unittest.equals('foo'));
1607 unittest.expect(o.value, unittest.equals('foo')); 1609 unittest.expect(o.value, unittest.equals('foo'));
1608 unittest.expect(o.withLink, unittest.isTrue); 1610 unittest.expect(o.withLink, unittest.isTrue);
1609 } 1611 }
(...skipping 14 matching lines...) Expand all
1624 1626
1625 checkPermissionId(api.PermissionId o) { 1627 checkPermissionId(api.PermissionId o) {
1626 buildCounterPermissionId++; 1628 buildCounterPermissionId++;
1627 if (buildCounterPermissionId < 3) { 1629 if (buildCounterPermissionId < 3) {
1628 unittest.expect(o.id, unittest.equals('foo')); 1630 unittest.expect(o.id, unittest.equals('foo'));
1629 unittest.expect(o.kind, unittest.equals('foo')); 1631 unittest.expect(o.kind, unittest.equals('foo'));
1630 } 1632 }
1631 buildCounterPermissionId--; 1633 buildCounterPermissionId--;
1632 } 1634 }
1633 1635
1634 buildUnnamed2171() { 1636 buildUnnamed813() {
1635 var o = new core.List<api.Permission>(); 1637 var o = new core.List<api.Permission>();
1636 o.add(buildPermission()); 1638 o.add(buildPermission());
1637 o.add(buildPermission()); 1639 o.add(buildPermission());
1638 return o; 1640 return o;
1639 } 1641 }
1640 1642
1641 checkUnnamed2171(core.List<api.Permission> o) { 1643 checkUnnamed813(core.List<api.Permission> o) {
1642 unittest.expect(o, unittest.hasLength(2)); 1644 unittest.expect(o, unittest.hasLength(2));
1643 checkPermission(o[0]); 1645 checkPermission(o[0]);
1644 checkPermission(o[1]); 1646 checkPermission(o[1]);
1645 } 1647 }
1646 1648
1647 core.int buildCounterPermissionList = 0; 1649 core.int buildCounterPermissionList = 0;
1648 buildPermissionList() { 1650 buildPermissionList() {
1649 var o = new api.PermissionList(); 1651 var o = new api.PermissionList();
1650 buildCounterPermissionList++; 1652 buildCounterPermissionList++;
1651 if (buildCounterPermissionList < 3) { 1653 if (buildCounterPermissionList < 3) {
1652 o.etag = "foo"; 1654 o.etag = "foo";
1653 o.items = buildUnnamed2171(); 1655 o.items = buildUnnamed813();
1654 o.kind = "foo"; 1656 o.kind = "foo";
1655 o.selfLink = "foo"; 1657 o.selfLink = "foo";
1656 } 1658 }
1657 buildCounterPermissionList--; 1659 buildCounterPermissionList--;
1658 return o; 1660 return o;
1659 } 1661 }
1660 1662
1661 checkPermissionList(api.PermissionList o) { 1663 checkPermissionList(api.PermissionList o) {
1662 buildCounterPermissionList++; 1664 buildCounterPermissionList++;
1663 if (buildCounterPermissionList < 3) { 1665 if (buildCounterPermissionList < 3) {
1664 unittest.expect(o.etag, unittest.equals('foo')); 1666 unittest.expect(o.etag, unittest.equals('foo'));
1665 checkUnnamed2171(o.items); 1667 checkUnnamed813(o.items);
1666 unittest.expect(o.kind, unittest.equals('foo')); 1668 unittest.expect(o.kind, unittest.equals('foo'));
1667 unittest.expect(o.selfLink, unittest.equals('foo')); 1669 unittest.expect(o.selfLink, unittest.equals('foo'));
1668 } 1670 }
1669 buildCounterPermissionList--; 1671 buildCounterPermissionList--;
1670 } 1672 }
1671 1673
1672 core.int buildCounterProperty = 0; 1674 core.int buildCounterProperty = 0;
1673 buildProperty() { 1675 buildProperty() {
1674 var o = new api.Property(); 1676 var o = new api.Property();
1675 buildCounterProperty++; 1677 buildCounterProperty++;
(...skipping 15 matching lines...) Expand all
1691 unittest.expect(o.etag, unittest.equals('foo')); 1693 unittest.expect(o.etag, unittest.equals('foo'));
1692 unittest.expect(o.key, unittest.equals('foo')); 1694 unittest.expect(o.key, unittest.equals('foo'));
1693 unittest.expect(o.kind, unittest.equals('foo')); 1695 unittest.expect(o.kind, unittest.equals('foo'));
1694 unittest.expect(o.selfLink, unittest.equals('foo')); 1696 unittest.expect(o.selfLink, unittest.equals('foo'));
1695 unittest.expect(o.value, unittest.equals('foo')); 1697 unittest.expect(o.value, unittest.equals('foo'));
1696 unittest.expect(o.visibility, unittest.equals('foo')); 1698 unittest.expect(o.visibility, unittest.equals('foo'));
1697 } 1699 }
1698 buildCounterProperty--; 1700 buildCounterProperty--;
1699 } 1701 }
1700 1702
1701 buildUnnamed2172() { 1703 buildUnnamed814() {
1702 var o = new core.List<api.Property>(); 1704 var o = new core.List<api.Property>();
1703 o.add(buildProperty()); 1705 o.add(buildProperty());
1704 o.add(buildProperty()); 1706 o.add(buildProperty());
1705 return o; 1707 return o;
1706 } 1708 }
1707 1709
1708 checkUnnamed2172(core.List<api.Property> o) { 1710 checkUnnamed814(core.List<api.Property> o) {
1709 unittest.expect(o, unittest.hasLength(2)); 1711 unittest.expect(o, unittest.hasLength(2));
1710 checkProperty(o[0]); 1712 checkProperty(o[0]);
1711 checkProperty(o[1]); 1713 checkProperty(o[1]);
1712 } 1714 }
1713 1715
1714 core.int buildCounterPropertyList = 0; 1716 core.int buildCounterPropertyList = 0;
1715 buildPropertyList() { 1717 buildPropertyList() {
1716 var o = new api.PropertyList(); 1718 var o = new api.PropertyList();
1717 buildCounterPropertyList++; 1719 buildCounterPropertyList++;
1718 if (buildCounterPropertyList < 3) { 1720 if (buildCounterPropertyList < 3) {
1719 o.etag = "foo"; 1721 o.etag = "foo";
1720 o.items = buildUnnamed2172(); 1722 o.items = buildUnnamed814();
1721 o.kind = "foo"; 1723 o.kind = "foo";
1722 o.selfLink = "foo"; 1724 o.selfLink = "foo";
1723 } 1725 }
1724 buildCounterPropertyList--; 1726 buildCounterPropertyList--;
1725 return o; 1727 return o;
1726 } 1728 }
1727 1729
1728 checkPropertyList(api.PropertyList o) { 1730 checkPropertyList(api.PropertyList o) {
1729 buildCounterPropertyList++; 1731 buildCounterPropertyList++;
1730 if (buildCounterPropertyList < 3) { 1732 if (buildCounterPropertyList < 3) {
1731 unittest.expect(o.etag, unittest.equals('foo')); 1733 unittest.expect(o.etag, unittest.equals('foo'));
1732 checkUnnamed2172(o.items); 1734 checkUnnamed814(o.items);
1733 unittest.expect(o.kind, unittest.equals('foo')); 1735 unittest.expect(o.kind, unittest.equals('foo'));
1734 unittest.expect(o.selfLink, unittest.equals('foo')); 1736 unittest.expect(o.selfLink, unittest.equals('foo'));
1735 } 1737 }
1736 buildCounterPropertyList--; 1738 buildCounterPropertyList--;
1737 } 1739 }
1738 1740
1739 buildUnnamed2173() { 1741 buildUnnamed815() {
1740 var o = new core.Map<core.String, core.String>(); 1742 var o = new core.Map<core.String, core.String>();
1741 o["x"] = "foo"; 1743 o["x"] = "foo";
1742 o["y"] = "foo"; 1744 o["y"] = "foo";
1743 return o; 1745 return o;
1744 } 1746 }
1745 1747
1746 checkUnnamed2173(core.Map<core.String, core.String> o) { 1748 checkUnnamed815(core.Map<core.String, core.String> o) {
1747 unittest.expect(o, unittest.hasLength(2)); 1749 unittest.expect(o, unittest.hasLength(2));
1748 unittest.expect(o["x"], unittest.equals('foo')); 1750 unittest.expect(o["x"], unittest.equals('foo'));
1749 unittest.expect(o["y"], unittest.equals('foo')); 1751 unittest.expect(o["y"], unittest.equals('foo'));
1750 } 1752 }
1751 1753
1752 core.int buildCounterRevision = 0; 1754 core.int buildCounterRevision = 0;
1753 buildRevision() { 1755 buildRevision() {
1754 var o = new api.Revision(); 1756 var o = new api.Revision();
1755 buildCounterRevision++; 1757 buildCounterRevision++;
1756 if (buildCounterRevision < 3) { 1758 if (buildCounterRevision < 3) {
1757 o.downloadUrl = "foo"; 1759 o.downloadUrl = "foo";
1758 o.etag = "foo"; 1760 o.etag = "foo";
1759 o.exportLinks = buildUnnamed2173(); 1761 o.exportLinks = buildUnnamed815();
1760 o.fileSize = "foo"; 1762 o.fileSize = "foo";
1761 o.id = "foo"; 1763 o.id = "foo";
1762 o.kind = "foo"; 1764 o.kind = "foo";
1763 o.lastModifyingUser = buildUser(); 1765 o.lastModifyingUser = buildUser();
1764 o.lastModifyingUserName = "foo"; 1766 o.lastModifyingUserName = "foo";
1765 o.md5Checksum = "foo"; 1767 o.md5Checksum = "foo";
1766 o.mimeType = "foo"; 1768 o.mimeType = "foo";
1767 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); 1769 o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02");
1768 o.originalFilename = "foo"; 1770 o.originalFilename = "foo";
1769 o.pinned = true; 1771 o.pinned = true;
1770 o.publishAuto = true; 1772 o.publishAuto = true;
1771 o.published = true; 1773 o.published = true;
1772 o.publishedLink = "foo"; 1774 o.publishedLink = "foo";
1773 o.publishedOutsideDomain = true; 1775 o.publishedOutsideDomain = true;
1774 o.selfLink = "foo"; 1776 o.selfLink = "foo";
1775 } 1777 }
1776 buildCounterRevision--; 1778 buildCounterRevision--;
1777 return o; 1779 return o;
1778 } 1780 }
1779 1781
1780 checkRevision(api.Revision o) { 1782 checkRevision(api.Revision o) {
1781 buildCounterRevision++; 1783 buildCounterRevision++;
1782 if (buildCounterRevision < 3) { 1784 if (buildCounterRevision < 3) {
1783 unittest.expect(o.downloadUrl, unittest.equals('foo')); 1785 unittest.expect(o.downloadUrl, unittest.equals('foo'));
1784 unittest.expect(o.etag, unittest.equals('foo')); 1786 unittest.expect(o.etag, unittest.equals('foo'));
1785 checkUnnamed2173(o.exportLinks); 1787 checkUnnamed815(o.exportLinks);
1786 unittest.expect(o.fileSize, unittest.equals('foo')); 1788 unittest.expect(o.fileSize, unittest.equals('foo'));
1787 unittest.expect(o.id, unittest.equals('foo')); 1789 unittest.expect(o.id, unittest.equals('foo'));
1788 unittest.expect(o.kind, unittest.equals('foo')); 1790 unittest.expect(o.kind, unittest.equals('foo'));
1789 checkUser(o.lastModifyingUser); 1791 checkUser(o.lastModifyingUser);
1790 unittest.expect(o.lastModifyingUserName, unittest.equals('foo')); 1792 unittest.expect(o.lastModifyingUserName, unittest.equals('foo'));
1791 unittest.expect(o.md5Checksum, unittest.equals('foo')); 1793 unittest.expect(o.md5Checksum, unittest.equals('foo'));
1792 unittest.expect(o.mimeType, unittest.equals('foo')); 1794 unittest.expect(o.mimeType, unittest.equals('foo'));
1793 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02"))); 1795 unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
1794 unittest.expect(o.originalFilename, unittest.equals('foo')); 1796 unittest.expect(o.originalFilename, unittest.equals('foo'));
1795 unittest.expect(o.pinned, unittest.isTrue); 1797 unittest.expect(o.pinned, unittest.isTrue);
1796 unittest.expect(o.publishAuto, unittest.isTrue); 1798 unittest.expect(o.publishAuto, unittest.isTrue);
1797 unittest.expect(o.published, unittest.isTrue); 1799 unittest.expect(o.published, unittest.isTrue);
1798 unittest.expect(o.publishedLink, unittest.equals('foo')); 1800 unittest.expect(o.publishedLink, unittest.equals('foo'));
1799 unittest.expect(o.publishedOutsideDomain, unittest.isTrue); 1801 unittest.expect(o.publishedOutsideDomain, unittest.isTrue);
1800 unittest.expect(o.selfLink, unittest.equals('foo')); 1802 unittest.expect(o.selfLink, unittest.equals('foo'));
1801 } 1803 }
1802 buildCounterRevision--; 1804 buildCounterRevision--;
1803 } 1805 }
1804 1806
1805 buildUnnamed2174() { 1807 buildUnnamed816() {
1806 var o = new core.List<api.Revision>(); 1808 var o = new core.List<api.Revision>();
1807 o.add(buildRevision()); 1809 o.add(buildRevision());
1808 o.add(buildRevision()); 1810 o.add(buildRevision());
1809 return o; 1811 return o;
1810 } 1812 }
1811 1813
1812 checkUnnamed2174(core.List<api.Revision> o) { 1814 checkUnnamed816(core.List<api.Revision> o) {
1813 unittest.expect(o, unittest.hasLength(2)); 1815 unittest.expect(o, unittest.hasLength(2));
1814 checkRevision(o[0]); 1816 checkRevision(o[0]);
1815 checkRevision(o[1]); 1817 checkRevision(o[1]);
1816 } 1818 }
1817 1819
1818 core.int buildCounterRevisionList = 0; 1820 core.int buildCounterRevisionList = 0;
1819 buildRevisionList() { 1821 buildRevisionList() {
1820 var o = new api.RevisionList(); 1822 var o = new api.RevisionList();
1821 buildCounterRevisionList++; 1823 buildCounterRevisionList++;
1822 if (buildCounterRevisionList < 3) { 1824 if (buildCounterRevisionList < 3) {
1823 o.etag = "foo"; 1825 o.etag = "foo";
1824 o.items = buildUnnamed2174(); 1826 o.items = buildUnnamed816();
1825 o.kind = "foo"; 1827 o.kind = "foo";
1826 o.selfLink = "foo"; 1828 o.selfLink = "foo";
1827 } 1829 }
1828 buildCounterRevisionList--; 1830 buildCounterRevisionList--;
1829 return o; 1831 return o;
1830 } 1832 }
1831 1833
1832 checkRevisionList(api.RevisionList o) { 1834 checkRevisionList(api.RevisionList o) {
1833 buildCounterRevisionList++; 1835 buildCounterRevisionList++;
1834 if (buildCounterRevisionList < 3) { 1836 if (buildCounterRevisionList < 3) {
1835 unittest.expect(o.etag, unittest.equals('foo')); 1837 unittest.expect(o.etag, unittest.equals('foo'));
1836 checkUnnamed2174(o.items); 1838 checkUnnamed816(o.items);
1837 unittest.expect(o.kind, unittest.equals('foo')); 1839 unittest.expect(o.kind, unittest.equals('foo'));
1838 unittest.expect(o.selfLink, unittest.equals('foo')); 1840 unittest.expect(o.selfLink, unittest.equals('foo'));
1839 } 1841 }
1840 buildCounterRevisionList--; 1842 buildCounterRevisionList--;
1841 } 1843 }
1842 1844
1843 core.int buildCounterUserPicture = 0; 1845 core.int buildCounterUserPicture = 0;
1844 buildUserPicture() { 1846 buildUserPicture() {
1845 var o = new api.UserPicture(); 1847 var o = new api.UserPicture();
1846 buildCounterUserPicture++; 1848 buildCounterUserPicture++;
(...skipping 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after
4574 }))); 4576 })));
4575 }); 4577 });
4576 4578
4577 unittest.test("method--patch", () { 4579 unittest.test("method--patch", () {
4578 4580
4579 var mock = new HttpServerMock(); 4581 var mock = new HttpServerMock();
4580 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; 4582 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
4581 var arg_request = buildPermission(); 4583 var arg_request = buildPermission();
4582 var arg_fileId = "foo"; 4584 var arg_fileId = "foo";
4583 var arg_permissionId = "foo"; 4585 var arg_permissionId = "foo";
4586 var arg_removeExpiration = true;
4584 var arg_transferOwnership = true; 4587 var arg_transferOwnership = true;
4585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4588 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4586 var obj = new api.Permission.fromJson(json); 4589 var obj = new api.Permission.fromJson(json);
4587 checkPermission(obj); 4590 checkPermission(obj);
4588 4591
4589 var path = (req.url).path; 4592 var path = (req.url).path;
4590 var pathOffset = 0; 4593 var pathOffset = 0;
4591 var index; 4594 var index;
4592 var subPart; 4595 var subPart;
4593 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 22 matching lines...) Expand all
4616 if (n == "false") return false; 4619 if (n == "false") return false;
4617 if (n == null) return null; 4620 if (n == null) return null;
4618 throw new core.ArgumentError("Invalid boolean: $n"); 4621 throw new core.ArgumentError("Invalid boolean: $n");
4619 } 4622 }
4620 if (query.length > 0) { 4623 if (query.length > 0) {
4621 for (var part in query.split("&")) { 4624 for (var part in query.split("&")) {
4622 var keyvalue = part.split("="); 4625 var keyvalue = part.split("=");
4623 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4626 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4624 } 4627 }
4625 } 4628 }
4629 unittest.expect(queryMap["removeExpiration"].first, unittest.equals("$ar g_removeExpiration"));
4626 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership")); 4630 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership"));
4627 4631
4628 4632
4629 var h = { 4633 var h = {
4630 "content-type" : "application/json; charset=utf-8", 4634 "content-type" : "application/json; charset=utf-8",
4631 }; 4635 };
4632 var resp = convert.JSON.encode(buildPermission()); 4636 var resp = convert.JSON.encode(buildPermission());
4633 return new async.Future.value(stringResponse(200, h, resp)); 4637 return new async.Future.value(stringResponse(200, h, resp));
4634 }), true); 4638 }), true);
4635 res.patch(arg_request, arg_fileId, arg_permissionId, transferOwnership: ar g_transferOwnership).then(unittest.expectAsync(((api.Permission response) { 4639 res.patch(arg_request, arg_fileId, arg_permissionId, removeExpiration: arg _removeExpiration, transferOwnership: arg_transferOwnership).then(unittest.expec tAsync(((api.Permission response) {
4636 checkPermission(response); 4640 checkPermission(response);
4637 }))); 4641 })));
4638 }); 4642 });
4639 4643
4640 unittest.test("method--update", () { 4644 unittest.test("method--update", () {
4641 4645
4642 var mock = new HttpServerMock(); 4646 var mock = new HttpServerMock();
4643 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; 4647 api.PermissionsResourceApi res = new api.DriveApi(mock).permissions;
4644 var arg_request = buildPermission(); 4648 var arg_request = buildPermission();
4645 var arg_fileId = "foo"; 4649 var arg_fileId = "foo";
4646 var arg_permissionId = "foo"; 4650 var arg_permissionId = "foo";
4651 var arg_removeExpiration = true;
4647 var arg_transferOwnership = true; 4652 var arg_transferOwnership = true;
4648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4653 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4649 var obj = new api.Permission.fromJson(json); 4654 var obj = new api.Permission.fromJson(json);
4650 checkPermission(obj); 4655 checkPermission(obj);
4651 4656
4652 var path = (req.url).path; 4657 var path = (req.url).path;
4653 var pathOffset = 0; 4658 var pathOffset = 0;
4654 var index; 4659 var index;
4655 var subPart; 4660 var subPart;
4656 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 22 matching lines...) Expand all
4679 if (n == "false") return false; 4684 if (n == "false") return false;
4680 if (n == null) return null; 4685 if (n == null) return null;
4681 throw new core.ArgumentError("Invalid boolean: $n"); 4686 throw new core.ArgumentError("Invalid boolean: $n");
4682 } 4687 }
4683 if (query.length > 0) { 4688 if (query.length > 0) {
4684 for (var part in query.split("&")) { 4689 for (var part in query.split("&")) {
4685 var keyvalue = part.split("="); 4690 var keyvalue = part.split("=");
4686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4691 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4687 } 4692 }
4688 } 4693 }
4694 unittest.expect(queryMap["removeExpiration"].first, unittest.equals("$ar g_removeExpiration"));
4689 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership")); 4695 unittest.expect(queryMap["transferOwnership"].first, unittest.equals("$a rg_transferOwnership"));
4690 4696
4691 4697
4692 var h = { 4698 var h = {
4693 "content-type" : "application/json; charset=utf-8", 4699 "content-type" : "application/json; charset=utf-8",
4694 }; 4700 };
4695 var resp = convert.JSON.encode(buildPermission()); 4701 var resp = convert.JSON.encode(buildPermission());
4696 return new async.Future.value(stringResponse(200, h, resp)); 4702 return new async.Future.value(stringResponse(200, h, resp));
4697 }), true); 4703 }), true);
4698 res.update(arg_request, arg_fileId, arg_permissionId, transferOwnership: a rg_transferOwnership).then(unittest.expectAsync(((api.Permission response) { 4704 res.update(arg_request, arg_fileId, arg_permissionId, removeExpiration: ar g_removeExpiration, transferOwnership: arg_transferOwnership).then(unittest.expe ctAsync(((api.Permission response) {
4699 checkPermission(response); 4705 checkPermission(response);
4700 }))); 4706 })));
4701 }); 4707 });
4702 4708
4703 }); 4709 });
4704 4710
4705 4711
4706 unittest.group("resource-PropertiesResourceApi", () { 4712 unittest.group("resource-PropertiesResourceApi", () {
4707 unittest.test("method--delete", () { 4713 unittest.test("method--delete", () {
4708 4714
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
5863 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) { 5869 res.update(arg_request, arg_fileId, arg_revisionId).then(unittest.expectAs ync(((api.Revision response) {
5864 checkRevision(response); 5870 checkRevision(response);
5865 }))); 5871 })));
5866 }); 5872 });
5867 5873
5868 }); 5874 });
5869 5875
5870 5876
5871 } 5877 }
5872 5878
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