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

Side by Side Diff: generated/googleapis/test/discovery/v1_test.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.discovery.v1.test; 1 library googleapis.discovery.v1.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) { 66 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) {
67 buildCounterDirectoryListItemsIcons++; 67 buildCounterDirectoryListItemsIcons++;
68 if (buildCounterDirectoryListItemsIcons < 3) { 68 if (buildCounterDirectoryListItemsIcons < 3) {
69 unittest.expect(o.x16, unittest.equals('foo')); 69 unittest.expect(o.x16, unittest.equals('foo'));
70 unittest.expect(o.x32, unittest.equals('foo')); 70 unittest.expect(o.x32, unittest.equals('foo'));
71 } 71 }
72 buildCounterDirectoryListItemsIcons--; 72 buildCounterDirectoryListItemsIcons--;
73 } 73 }
74 74
75 buildUnnamed493() { 75 buildUnnamed1566() {
76 var o = new core.List<core.String>(); 76 var o = new core.List<core.String>();
77 o.add("foo"); 77 o.add("foo");
78 o.add("foo"); 78 o.add("foo");
79 return o; 79 return o;
80 } 80 }
81 81
82 checkUnnamed493(core.List<core.String> o) { 82 checkUnnamed1566(core.List<core.String> o) {
83 unittest.expect(o, unittest.hasLength(2)); 83 unittest.expect(o, unittest.hasLength(2));
84 unittest.expect(o[0], unittest.equals('foo')); 84 unittest.expect(o[0], unittest.equals('foo'));
85 unittest.expect(o[1], unittest.equals('foo')); 85 unittest.expect(o[1], unittest.equals('foo'));
86 } 86 }
87 87
88 core.int buildCounterDirectoryListItems = 0; 88 core.int buildCounterDirectoryListItems = 0;
89 buildDirectoryListItems() { 89 buildDirectoryListItems() {
90 var o = new api.DirectoryListItems(); 90 var o = new api.DirectoryListItems();
91 buildCounterDirectoryListItems++; 91 buildCounterDirectoryListItems++;
92 if (buildCounterDirectoryListItems < 3) { 92 if (buildCounterDirectoryListItems < 3) {
93 o.description = "foo"; 93 o.description = "foo";
94 o.discoveryLink = "foo"; 94 o.discoveryLink = "foo";
95 o.discoveryRestUrl = "foo"; 95 o.discoveryRestUrl = "foo";
96 o.documentationLink = "foo"; 96 o.documentationLink = "foo";
97 o.icons = buildDirectoryListItemsIcons(); 97 o.icons = buildDirectoryListItemsIcons();
98 o.id = "foo"; 98 o.id = "foo";
99 o.kind = "foo"; 99 o.kind = "foo";
100 o.labels = buildUnnamed493(); 100 o.labels = buildUnnamed1566();
101 o.name = "foo"; 101 o.name = "foo";
102 o.preferred = true; 102 o.preferred = true;
103 o.title = "foo"; 103 o.title = "foo";
104 o.version = "foo"; 104 o.version = "foo";
105 } 105 }
106 buildCounterDirectoryListItems--; 106 buildCounterDirectoryListItems--;
107 return o; 107 return o;
108 } 108 }
109 109
110 checkDirectoryListItems(api.DirectoryListItems o) { 110 checkDirectoryListItems(api.DirectoryListItems o) {
111 buildCounterDirectoryListItems++; 111 buildCounterDirectoryListItems++;
112 if (buildCounterDirectoryListItems < 3) { 112 if (buildCounterDirectoryListItems < 3) {
113 unittest.expect(o.description, unittest.equals('foo')); 113 unittest.expect(o.description, unittest.equals('foo'));
114 unittest.expect(o.discoveryLink, unittest.equals('foo')); 114 unittest.expect(o.discoveryLink, unittest.equals('foo'));
115 unittest.expect(o.discoveryRestUrl, unittest.equals('foo')); 115 unittest.expect(o.discoveryRestUrl, unittest.equals('foo'));
116 unittest.expect(o.documentationLink, unittest.equals('foo')); 116 unittest.expect(o.documentationLink, unittest.equals('foo'));
117 checkDirectoryListItemsIcons(o.icons); 117 checkDirectoryListItemsIcons(o.icons);
118 unittest.expect(o.id, unittest.equals('foo')); 118 unittest.expect(o.id, unittest.equals('foo'));
119 unittest.expect(o.kind, unittest.equals('foo')); 119 unittest.expect(o.kind, unittest.equals('foo'));
120 checkUnnamed493(o.labels); 120 checkUnnamed1566(o.labels);
121 unittest.expect(o.name, unittest.equals('foo')); 121 unittest.expect(o.name, unittest.equals('foo'));
122 unittest.expect(o.preferred, unittest.isTrue); 122 unittest.expect(o.preferred, unittest.isTrue);
123 unittest.expect(o.title, unittest.equals('foo')); 123 unittest.expect(o.title, unittest.equals('foo'));
124 unittest.expect(o.version, unittest.equals('foo')); 124 unittest.expect(o.version, unittest.equals('foo'));
125 } 125 }
126 buildCounterDirectoryListItems--; 126 buildCounterDirectoryListItems--;
127 } 127 }
128 128
129 buildUnnamed494() { 129 buildUnnamed1567() {
130 var o = new core.List<api.DirectoryListItems>(); 130 var o = new core.List<api.DirectoryListItems>();
131 o.add(buildDirectoryListItems()); 131 o.add(buildDirectoryListItems());
132 o.add(buildDirectoryListItems()); 132 o.add(buildDirectoryListItems());
133 return o; 133 return o;
134 } 134 }
135 135
136 checkUnnamed494(core.List<api.DirectoryListItems> o) { 136 checkUnnamed1567(core.List<api.DirectoryListItems> o) {
137 unittest.expect(o, unittest.hasLength(2)); 137 unittest.expect(o, unittest.hasLength(2));
138 checkDirectoryListItems(o[0]); 138 checkDirectoryListItems(o[0]);
139 checkDirectoryListItems(o[1]); 139 checkDirectoryListItems(o[1]);
140 } 140 }
141 141
142 core.int buildCounterDirectoryList = 0; 142 core.int buildCounterDirectoryList = 0;
143 buildDirectoryList() { 143 buildDirectoryList() {
144 var o = new api.DirectoryList(); 144 var o = new api.DirectoryList();
145 buildCounterDirectoryList++; 145 buildCounterDirectoryList++;
146 if (buildCounterDirectoryList < 3) { 146 if (buildCounterDirectoryList < 3) {
147 o.discoveryVersion = "foo"; 147 o.discoveryVersion = "foo";
148 o.items = buildUnnamed494(); 148 o.items = buildUnnamed1567();
149 o.kind = "foo"; 149 o.kind = "foo";
150 } 150 }
151 buildCounterDirectoryList--; 151 buildCounterDirectoryList--;
152 return o; 152 return o;
153 } 153 }
154 154
155 checkDirectoryList(api.DirectoryList o) { 155 checkDirectoryList(api.DirectoryList o) {
156 buildCounterDirectoryList++; 156 buildCounterDirectoryList++;
157 if (buildCounterDirectoryList < 3) { 157 if (buildCounterDirectoryList < 3) {
158 unittest.expect(o.discoveryVersion, unittest.equals('foo')); 158 unittest.expect(o.discoveryVersion, unittest.equals('foo'));
159 checkUnnamed494(o.items); 159 checkUnnamed1567(o.items);
160 unittest.expect(o.kind, unittest.equals('foo')); 160 unittest.expect(o.kind, unittest.equals('foo'));
161 } 161 }
162 buildCounterDirectoryList--; 162 buildCounterDirectoryList--;
163 } 163 }
164 164
165 buildUnnamed495() { 165 buildUnnamed1568() {
166 var o = new core.List<core.String>(); 166 var o = new core.List<core.String>();
167 o.add("foo"); 167 o.add("foo");
168 o.add("foo"); 168 o.add("foo");
169 return o; 169 return o;
170 } 170 }
171 171
172 checkUnnamed495(core.List<core.String> o) { 172 checkUnnamed1568(core.List<core.String> o) {
173 unittest.expect(o, unittest.hasLength(2)); 173 unittest.expect(o, unittest.hasLength(2));
174 unittest.expect(o[0], unittest.equals('foo')); 174 unittest.expect(o[0], unittest.equals('foo'));
175 unittest.expect(o[1], unittest.equals('foo')); 175 unittest.expect(o[1], unittest.equals('foo'));
176 } 176 }
177 177
178 core.int buildCounterJsonSchemaAnnotations = 0; 178 core.int buildCounterJsonSchemaAnnotations = 0;
179 buildJsonSchemaAnnotations() { 179 buildJsonSchemaAnnotations() {
180 var o = new api.JsonSchemaAnnotations(); 180 var o = new api.JsonSchemaAnnotations();
181 buildCounterJsonSchemaAnnotations++; 181 buildCounterJsonSchemaAnnotations++;
182 if (buildCounterJsonSchemaAnnotations < 3) { 182 if (buildCounterJsonSchemaAnnotations < 3) {
183 o.required = buildUnnamed495(); 183 o.required = buildUnnamed1568();
184 } 184 }
185 buildCounterJsonSchemaAnnotations--; 185 buildCounterJsonSchemaAnnotations--;
186 return o; 186 return o;
187 } 187 }
188 188
189 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { 189 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) {
190 buildCounterJsonSchemaAnnotations++; 190 buildCounterJsonSchemaAnnotations++;
191 if (buildCounterJsonSchemaAnnotations < 3) { 191 if (buildCounterJsonSchemaAnnotations < 3) {
192 checkUnnamed495(o.required); 192 checkUnnamed1568(o.required);
193 } 193 }
194 buildCounterJsonSchemaAnnotations--; 194 buildCounterJsonSchemaAnnotations--;
195 } 195 }
196 196
197 buildUnnamed496() { 197 buildUnnamed1569() {
198 var o = new core.List<core.String>(); 198 var o = new core.List<core.String>();
199 o.add("foo"); 199 o.add("foo");
200 o.add("foo"); 200 o.add("foo");
201 return o; 201 return o;
202 } 202 }
203 203
204 checkUnnamed496(core.List<core.String> o) { 204 checkUnnamed1569(core.List<core.String> o) {
205 unittest.expect(o, unittest.hasLength(2)); 205 unittest.expect(o, unittest.hasLength(2));
206 unittest.expect(o[0], unittest.equals('foo')); 206 unittest.expect(o[0], unittest.equals('foo'));
207 unittest.expect(o[1], unittest.equals('foo')); 207 unittest.expect(o[1], unittest.equals('foo'));
208 } 208 }
209 209
210 buildUnnamed497() { 210 buildUnnamed1570() {
211 var o = new core.List<core.String>(); 211 var o = new core.List<core.String>();
212 o.add("foo"); 212 o.add("foo");
213 o.add("foo"); 213 o.add("foo");
214 return o; 214 return o;
215 } 215 }
216 216
217 checkUnnamed497(core.List<core.String> o) { 217 checkUnnamed1570(core.List<core.String> o) {
218 unittest.expect(o, unittest.hasLength(2)); 218 unittest.expect(o, unittest.hasLength(2));
219 unittest.expect(o[0], unittest.equals('foo')); 219 unittest.expect(o[0], unittest.equals('foo'));
220 unittest.expect(o[1], unittest.equals('foo')); 220 unittest.expect(o[1], unittest.equals('foo'));
221 } 221 }
222 222
223 buildUnnamed498() { 223 buildUnnamed1571() {
224 var o = new core.Map<core.String, api.JsonSchema>(); 224 var o = new core.Map<core.String, api.JsonSchema>();
225 o["x"] = buildJsonSchema(); 225 o["x"] = buildJsonSchema();
226 o["y"] = buildJsonSchema(); 226 o["y"] = buildJsonSchema();
227 return o; 227 return o;
228 } 228 }
229 229
230 checkUnnamed498(core.Map<core.String, api.JsonSchema> o) { 230 checkUnnamed1571(core.Map<core.String, api.JsonSchema> o) {
231 unittest.expect(o, unittest.hasLength(2)); 231 unittest.expect(o, unittest.hasLength(2));
232 checkJsonSchema(o["x"]); 232 checkJsonSchema(o["x"]);
233 checkJsonSchema(o["y"]); 233 checkJsonSchema(o["y"]);
234 } 234 }
235 235
236 core.int buildCounterJsonSchemaVariantMap = 0; 236 core.int buildCounterJsonSchemaVariantMap = 0;
237 buildJsonSchemaVariantMap() { 237 buildJsonSchemaVariantMap() {
238 var o = new api.JsonSchemaVariantMap(); 238 var o = new api.JsonSchemaVariantMap();
239 buildCounterJsonSchemaVariantMap++; 239 buildCounterJsonSchemaVariantMap++;
240 if (buildCounterJsonSchemaVariantMap < 3) { 240 if (buildCounterJsonSchemaVariantMap < 3) {
241 o.P_ref = "foo"; 241 o.P_ref = "foo";
242 o.typeValue = "foo"; 242 o.typeValue = "foo";
243 } 243 }
244 buildCounterJsonSchemaVariantMap--; 244 buildCounterJsonSchemaVariantMap--;
245 return o; 245 return o;
246 } 246 }
247 247
248 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) { 248 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) {
249 buildCounterJsonSchemaVariantMap++; 249 buildCounterJsonSchemaVariantMap++;
250 if (buildCounterJsonSchemaVariantMap < 3) { 250 if (buildCounterJsonSchemaVariantMap < 3) {
251 unittest.expect(o.P_ref, unittest.equals('foo')); 251 unittest.expect(o.P_ref, unittest.equals('foo'));
252 unittest.expect(o.typeValue, unittest.equals('foo')); 252 unittest.expect(o.typeValue, unittest.equals('foo'));
253 } 253 }
254 buildCounterJsonSchemaVariantMap--; 254 buildCounterJsonSchemaVariantMap--;
255 } 255 }
256 256
257 buildUnnamed499() { 257 buildUnnamed1572() {
258 var o = new core.List<api.JsonSchemaVariantMap>(); 258 var o = new core.List<api.JsonSchemaVariantMap>();
259 o.add(buildJsonSchemaVariantMap()); 259 o.add(buildJsonSchemaVariantMap());
260 o.add(buildJsonSchemaVariantMap()); 260 o.add(buildJsonSchemaVariantMap());
261 return o; 261 return o;
262 } 262 }
263 263
264 checkUnnamed499(core.List<api.JsonSchemaVariantMap> o) { 264 checkUnnamed1572(core.List<api.JsonSchemaVariantMap> o) {
265 unittest.expect(o, unittest.hasLength(2)); 265 unittest.expect(o, unittest.hasLength(2));
266 checkJsonSchemaVariantMap(o[0]); 266 checkJsonSchemaVariantMap(o[0]);
267 checkJsonSchemaVariantMap(o[1]); 267 checkJsonSchemaVariantMap(o[1]);
268 } 268 }
269 269
270 core.int buildCounterJsonSchemaVariant = 0; 270 core.int buildCounterJsonSchemaVariant = 0;
271 buildJsonSchemaVariant() { 271 buildJsonSchemaVariant() {
272 var o = new api.JsonSchemaVariant(); 272 var o = new api.JsonSchemaVariant();
273 buildCounterJsonSchemaVariant++; 273 buildCounterJsonSchemaVariant++;
274 if (buildCounterJsonSchemaVariant < 3) { 274 if (buildCounterJsonSchemaVariant < 3) {
275 o.discriminant = "foo"; 275 o.discriminant = "foo";
276 o.map = buildUnnamed499(); 276 o.map = buildUnnamed1572();
277 } 277 }
278 buildCounterJsonSchemaVariant--; 278 buildCounterJsonSchemaVariant--;
279 return o; 279 return o;
280 } 280 }
281 281
282 checkJsonSchemaVariant(api.JsonSchemaVariant o) { 282 checkJsonSchemaVariant(api.JsonSchemaVariant o) {
283 buildCounterJsonSchemaVariant++; 283 buildCounterJsonSchemaVariant++;
284 if (buildCounterJsonSchemaVariant < 3) { 284 if (buildCounterJsonSchemaVariant < 3) {
285 unittest.expect(o.discriminant, unittest.equals('foo')); 285 unittest.expect(o.discriminant, unittest.equals('foo'));
286 checkUnnamed499(o.map); 286 checkUnnamed1572(o.map);
287 } 287 }
288 buildCounterJsonSchemaVariant--; 288 buildCounterJsonSchemaVariant--;
289 } 289 }
290 290
291 core.int buildCounterJsonSchema = 0; 291 core.int buildCounterJsonSchema = 0;
292 buildJsonSchema() { 292 buildJsonSchema() {
293 var o = new api.JsonSchema(); 293 var o = new api.JsonSchema();
294 buildCounterJsonSchema++; 294 buildCounterJsonSchema++;
295 if (buildCounterJsonSchema < 3) { 295 if (buildCounterJsonSchema < 3) {
296 o.P_ref = "foo"; 296 o.P_ref = "foo";
297 o.additionalProperties = buildJsonSchema(); 297 o.additionalProperties = buildJsonSchema();
298 o.annotations = buildJsonSchemaAnnotations(); 298 o.annotations = buildJsonSchemaAnnotations();
299 o.default_ = "foo"; 299 o.default_ = "foo";
300 o.description = "foo"; 300 o.description = "foo";
301 o.enum_ = buildUnnamed496(); 301 o.enum_ = buildUnnamed1569();
302 o.enumDescriptions = buildUnnamed497(); 302 o.enumDescriptions = buildUnnamed1570();
303 o.format = "foo"; 303 o.format = "foo";
304 o.id = "foo"; 304 o.id = "foo";
305 o.items = buildJsonSchema(); 305 o.items = buildJsonSchema();
306 o.location = "foo"; 306 o.location = "foo";
307 o.maximum = "foo"; 307 o.maximum = "foo";
308 o.minimum = "foo"; 308 o.minimum = "foo";
309 o.pattern = "foo"; 309 o.pattern = "foo";
310 o.properties = buildUnnamed498(); 310 o.properties = buildUnnamed1571();
311 o.readOnly = true; 311 o.readOnly = true;
312 o.repeated = true; 312 o.repeated = true;
313 o.required = true; 313 o.required = true;
314 o.type = "foo"; 314 o.type = "foo";
315 o.variant = buildJsonSchemaVariant(); 315 o.variant = buildJsonSchemaVariant();
316 } 316 }
317 buildCounterJsonSchema--; 317 buildCounterJsonSchema--;
318 return o; 318 return o;
319 } 319 }
320 320
321 checkJsonSchema(api.JsonSchema o) { 321 checkJsonSchema(api.JsonSchema o) {
322 buildCounterJsonSchema++; 322 buildCounterJsonSchema++;
323 if (buildCounterJsonSchema < 3) { 323 if (buildCounterJsonSchema < 3) {
324 unittest.expect(o.P_ref, unittest.equals('foo')); 324 unittest.expect(o.P_ref, unittest.equals('foo'));
325 checkJsonSchema(o.additionalProperties); 325 checkJsonSchema(o.additionalProperties);
326 checkJsonSchemaAnnotations(o.annotations); 326 checkJsonSchemaAnnotations(o.annotations);
327 unittest.expect(o.default_, unittest.equals('foo')); 327 unittest.expect(o.default_, unittest.equals('foo'));
328 unittest.expect(o.description, unittest.equals('foo')); 328 unittest.expect(o.description, unittest.equals('foo'));
329 checkUnnamed496(o.enum_); 329 checkUnnamed1569(o.enum_);
330 checkUnnamed497(o.enumDescriptions); 330 checkUnnamed1570(o.enumDescriptions);
331 unittest.expect(o.format, unittest.equals('foo')); 331 unittest.expect(o.format, unittest.equals('foo'));
332 unittest.expect(o.id, unittest.equals('foo')); 332 unittest.expect(o.id, unittest.equals('foo'));
333 checkJsonSchema(o.items); 333 checkJsonSchema(o.items);
334 unittest.expect(o.location, unittest.equals('foo')); 334 unittest.expect(o.location, unittest.equals('foo'));
335 unittest.expect(o.maximum, unittest.equals('foo')); 335 unittest.expect(o.maximum, unittest.equals('foo'));
336 unittest.expect(o.minimum, unittest.equals('foo')); 336 unittest.expect(o.minimum, unittest.equals('foo'));
337 unittest.expect(o.pattern, unittest.equals('foo')); 337 unittest.expect(o.pattern, unittest.equals('foo'));
338 checkUnnamed498(o.properties); 338 checkUnnamed1571(o.properties);
339 unittest.expect(o.readOnly, unittest.isTrue); 339 unittest.expect(o.readOnly, unittest.isTrue);
340 unittest.expect(o.repeated, unittest.isTrue); 340 unittest.expect(o.repeated, unittest.isTrue);
341 unittest.expect(o.required, unittest.isTrue); 341 unittest.expect(o.required, unittest.isTrue);
342 unittest.expect(o.type, unittest.equals('foo')); 342 unittest.expect(o.type, unittest.equals('foo'));
343 checkJsonSchemaVariant(o.variant); 343 checkJsonSchemaVariant(o.variant);
344 } 344 }
345 buildCounterJsonSchema--; 345 buildCounterJsonSchema--;
346 } 346 }
347 347
348 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0; 348 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0;
349 buildRestDescriptionAuthOauth2ScopesValue() { 349 buildRestDescriptionAuthOauth2ScopesValue() {
350 var o = new api.RestDescriptionAuthOauth2ScopesValue(); 350 var o = new api.RestDescriptionAuthOauth2ScopesValue();
351 buildCounterRestDescriptionAuthOauth2ScopesValue++; 351 buildCounterRestDescriptionAuthOauth2ScopesValue++;
352 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { 352 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) {
353 o.description = "foo"; 353 o.description = "foo";
354 } 354 }
355 buildCounterRestDescriptionAuthOauth2ScopesValue--; 355 buildCounterRestDescriptionAuthOauth2ScopesValue--;
356 return o; 356 return o;
357 } 357 }
358 358
359 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal ue o) { 359 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal ue o) {
360 buildCounterRestDescriptionAuthOauth2ScopesValue++; 360 buildCounterRestDescriptionAuthOauth2ScopesValue++;
361 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { 361 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) {
362 unittest.expect(o.description, unittest.equals('foo')); 362 unittest.expect(o.description, unittest.equals('foo'));
363 } 363 }
364 buildCounterRestDescriptionAuthOauth2ScopesValue--; 364 buildCounterRestDescriptionAuthOauth2ScopesValue--;
365 } 365 }
366 366
367 buildUnnamed500() { 367 buildUnnamed1573() {
368 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); 368 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>();
369 o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); 369 o["x"] = buildRestDescriptionAuthOauth2ScopesValue();
370 o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); 370 o["y"] = buildRestDescriptionAuthOauth2ScopesValue();
371 return o; 371 return o;
372 } 372 }
373 373
374 checkUnnamed500(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { 374 checkUnnamed1573(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) {
375 unittest.expect(o, unittest.hasLength(2)); 375 unittest.expect(o, unittest.hasLength(2));
376 checkRestDescriptionAuthOauth2ScopesValue(o["x"]); 376 checkRestDescriptionAuthOauth2ScopesValue(o["x"]);
377 checkRestDescriptionAuthOauth2ScopesValue(o["y"]); 377 checkRestDescriptionAuthOauth2ScopesValue(o["y"]);
378 } 378 }
379 379
380 core.int buildCounterRestDescriptionAuthOauth2 = 0; 380 core.int buildCounterRestDescriptionAuthOauth2 = 0;
381 buildRestDescriptionAuthOauth2() { 381 buildRestDescriptionAuthOauth2() {
382 var o = new api.RestDescriptionAuthOauth2(); 382 var o = new api.RestDescriptionAuthOauth2();
383 buildCounterRestDescriptionAuthOauth2++; 383 buildCounterRestDescriptionAuthOauth2++;
384 if (buildCounterRestDescriptionAuthOauth2 < 3) { 384 if (buildCounterRestDescriptionAuthOauth2 < 3) {
385 o.scopes = buildUnnamed500(); 385 o.scopes = buildUnnamed1573();
386 } 386 }
387 buildCounterRestDescriptionAuthOauth2--; 387 buildCounterRestDescriptionAuthOauth2--;
388 return o; 388 return o;
389 } 389 }
390 390
391 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { 391 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) {
392 buildCounterRestDescriptionAuthOauth2++; 392 buildCounterRestDescriptionAuthOauth2++;
393 if (buildCounterRestDescriptionAuthOauth2 < 3) { 393 if (buildCounterRestDescriptionAuthOauth2 < 3) {
394 checkUnnamed500(o.scopes); 394 checkUnnamed1573(o.scopes);
395 } 395 }
396 buildCounterRestDescriptionAuthOauth2--; 396 buildCounterRestDescriptionAuthOauth2--;
397 } 397 }
398 398
399 core.int buildCounterRestDescriptionAuth = 0; 399 core.int buildCounterRestDescriptionAuth = 0;
400 buildRestDescriptionAuth() { 400 buildRestDescriptionAuth() {
401 var o = new api.RestDescriptionAuth(); 401 var o = new api.RestDescriptionAuth();
402 buildCounterRestDescriptionAuth++; 402 buildCounterRestDescriptionAuth++;
403 if (buildCounterRestDescriptionAuth < 3) { 403 if (buildCounterRestDescriptionAuth < 3) {
404 o.oauth2 = buildRestDescriptionAuthOauth2(); 404 o.oauth2 = buildRestDescriptionAuthOauth2();
405 } 405 }
406 buildCounterRestDescriptionAuth--; 406 buildCounterRestDescriptionAuth--;
407 return o; 407 return o;
408 } 408 }
409 409
410 checkRestDescriptionAuth(api.RestDescriptionAuth o) { 410 checkRestDescriptionAuth(api.RestDescriptionAuth o) {
411 buildCounterRestDescriptionAuth++; 411 buildCounterRestDescriptionAuth++;
412 if (buildCounterRestDescriptionAuth < 3) { 412 if (buildCounterRestDescriptionAuth < 3) {
413 checkRestDescriptionAuthOauth2(o.oauth2); 413 checkRestDescriptionAuthOauth2(o.oauth2);
414 } 414 }
415 buildCounterRestDescriptionAuth--; 415 buildCounterRestDescriptionAuth--;
416 } 416 }
417 417
418 buildUnnamed501() { 418 buildUnnamed1574() {
419 var o = new core.List<core.String>(); 419 var o = new core.List<core.String>();
420 o.add("foo"); 420 o.add("foo");
421 o.add("foo"); 421 o.add("foo");
422 return o; 422 return o;
423 } 423 }
424 424
425 checkUnnamed501(core.List<core.String> o) { 425 checkUnnamed1574(core.List<core.String> o) {
426 unittest.expect(o, unittest.hasLength(2)); 426 unittest.expect(o, unittest.hasLength(2));
427 unittest.expect(o[0], unittest.equals('foo')); 427 unittest.expect(o[0], unittest.equals('foo'));
428 unittest.expect(o[1], unittest.equals('foo')); 428 unittest.expect(o[1], unittest.equals('foo'));
429 } 429 }
430 430
431 core.int buildCounterRestDescriptionIcons = 0; 431 core.int buildCounterRestDescriptionIcons = 0;
432 buildRestDescriptionIcons() { 432 buildRestDescriptionIcons() {
433 var o = new api.RestDescriptionIcons(); 433 var o = new api.RestDescriptionIcons();
434 buildCounterRestDescriptionIcons++; 434 buildCounterRestDescriptionIcons++;
435 if (buildCounterRestDescriptionIcons < 3) { 435 if (buildCounterRestDescriptionIcons < 3) {
436 o.x16 = "foo"; 436 o.x16 = "foo";
437 o.x32 = "foo"; 437 o.x32 = "foo";
438 } 438 }
439 buildCounterRestDescriptionIcons--; 439 buildCounterRestDescriptionIcons--;
440 return o; 440 return o;
441 } 441 }
442 442
443 checkRestDescriptionIcons(api.RestDescriptionIcons o) { 443 checkRestDescriptionIcons(api.RestDescriptionIcons o) {
444 buildCounterRestDescriptionIcons++; 444 buildCounterRestDescriptionIcons++;
445 if (buildCounterRestDescriptionIcons < 3) { 445 if (buildCounterRestDescriptionIcons < 3) {
446 unittest.expect(o.x16, unittest.equals('foo')); 446 unittest.expect(o.x16, unittest.equals('foo'));
447 unittest.expect(o.x32, unittest.equals('foo')); 447 unittest.expect(o.x32, unittest.equals('foo'));
448 } 448 }
449 buildCounterRestDescriptionIcons--; 449 buildCounterRestDescriptionIcons--;
450 } 450 }
451 451
452 buildUnnamed502() { 452 buildUnnamed1575() {
453 var o = new core.List<core.String>(); 453 var o = new core.List<core.String>();
454 o.add("foo"); 454 o.add("foo");
455 o.add("foo"); 455 o.add("foo");
456 return o; 456 return o;
457 } 457 }
458 458
459 checkUnnamed502(core.List<core.String> o) { 459 checkUnnamed1575(core.List<core.String> o) {
460 unittest.expect(o, unittest.hasLength(2)); 460 unittest.expect(o, unittest.hasLength(2));
461 unittest.expect(o[0], unittest.equals('foo')); 461 unittest.expect(o[0], unittest.equals('foo'));
462 unittest.expect(o[1], unittest.equals('foo')); 462 unittest.expect(o[1], unittest.equals('foo'));
463 } 463 }
464 464
465 buildUnnamed503() { 465 buildUnnamed1576() {
466 var o = new core.Map<core.String, api.RestMethod>(); 466 var o = new core.Map<core.String, api.RestMethod>();
467 o["x"] = buildRestMethod(); 467 o["x"] = buildRestMethod();
468 o["y"] = buildRestMethod(); 468 o["y"] = buildRestMethod();
469 return o; 469 return o;
470 } 470 }
471 471
472 checkUnnamed503(core.Map<core.String, api.RestMethod> o) { 472 checkUnnamed1576(core.Map<core.String, api.RestMethod> o) {
473 unittest.expect(o, unittest.hasLength(2)); 473 unittest.expect(o, unittest.hasLength(2));
474 checkRestMethod(o["x"]); 474 checkRestMethod(o["x"]);
475 checkRestMethod(o["y"]); 475 checkRestMethod(o["y"]);
476 } 476 }
477 477
478 buildUnnamed504() { 478 buildUnnamed1577() {
479 var o = new core.Map<core.String, api.JsonSchema>(); 479 var o = new core.Map<core.String, api.JsonSchema>();
480 o["x"] = buildJsonSchema(); 480 o["x"] = buildJsonSchema();
481 o["y"] = buildJsonSchema(); 481 o["y"] = buildJsonSchema();
482 return o; 482 return o;
483 } 483 }
484 484
485 checkUnnamed504(core.Map<core.String, api.JsonSchema> o) { 485 checkUnnamed1577(core.Map<core.String, api.JsonSchema> o) {
486 unittest.expect(o, unittest.hasLength(2)); 486 unittest.expect(o, unittest.hasLength(2));
487 checkJsonSchema(o["x"]); 487 checkJsonSchema(o["x"]);
488 checkJsonSchema(o["y"]); 488 checkJsonSchema(o["y"]);
489 } 489 }
490 490
491 buildUnnamed505() { 491 buildUnnamed1578() {
492 var o = new core.Map<core.String, api.RestResource>(); 492 var o = new core.Map<core.String, api.RestResource>();
493 o["x"] = buildRestResource(); 493 o["x"] = buildRestResource();
494 o["y"] = buildRestResource(); 494 o["y"] = buildRestResource();
495 return o; 495 return o;
496 } 496 }
497 497
498 checkUnnamed505(core.Map<core.String, api.RestResource> o) { 498 checkUnnamed1578(core.Map<core.String, api.RestResource> o) {
499 unittest.expect(o, unittest.hasLength(2)); 499 unittest.expect(o, unittest.hasLength(2));
500 checkRestResource(o["x"]); 500 checkRestResource(o["x"]);
501 checkRestResource(o["y"]); 501 checkRestResource(o["y"]);
502 } 502 }
503 503
504 buildUnnamed506() { 504 buildUnnamed1579() {
505 var o = new core.Map<core.String, api.JsonSchema>(); 505 var o = new core.Map<core.String, api.JsonSchema>();
506 o["x"] = buildJsonSchema(); 506 o["x"] = buildJsonSchema();
507 o["y"] = buildJsonSchema(); 507 o["y"] = buildJsonSchema();
508 return o; 508 return o;
509 } 509 }
510 510
511 checkUnnamed506(core.Map<core.String, api.JsonSchema> o) { 511 checkUnnamed1579(core.Map<core.String, api.JsonSchema> o) {
512 unittest.expect(o, unittest.hasLength(2)); 512 unittest.expect(o, unittest.hasLength(2));
513 checkJsonSchema(o["x"]); 513 checkJsonSchema(o["x"]);
514 checkJsonSchema(o["y"]); 514 checkJsonSchema(o["y"]);
515 } 515 }
516 516
517 core.int buildCounterRestDescription = 0; 517 core.int buildCounterRestDescription = 0;
518 buildRestDescription() { 518 buildRestDescription() {
519 var o = new api.RestDescription(); 519 var o = new api.RestDescription();
520 buildCounterRestDescription++; 520 buildCounterRestDescription++;
521 if (buildCounterRestDescription < 3) { 521 if (buildCounterRestDescription < 3) {
522 o.auth = buildRestDescriptionAuth(); 522 o.auth = buildRestDescriptionAuth();
523 o.basePath = "foo"; 523 o.basePath = "foo";
524 o.baseUrl = "foo"; 524 o.baseUrl = "foo";
525 o.batchPath = "foo"; 525 o.batchPath = "foo";
526 o.canonicalName = "foo"; 526 o.canonicalName = "foo";
527 o.description = "foo"; 527 o.description = "foo";
528 o.discoveryVersion = "foo"; 528 o.discoveryVersion = "foo";
529 o.documentationLink = "foo"; 529 o.documentationLink = "foo";
530 o.etag = "foo"; 530 o.etag = "foo";
531 o.features = buildUnnamed501(); 531 o.exponentialBackoffDefault = true;
532 o.features = buildUnnamed1574();
532 o.icons = buildRestDescriptionIcons(); 533 o.icons = buildRestDescriptionIcons();
533 o.id = "foo"; 534 o.id = "foo";
534 o.kind = "foo"; 535 o.kind = "foo";
535 o.labels = buildUnnamed502(); 536 o.labels = buildUnnamed1575();
536 o.methods = buildUnnamed503(); 537 o.methods = buildUnnamed1576();
537 o.name = "foo"; 538 o.name = "foo";
538 o.ownerDomain = "foo"; 539 o.ownerDomain = "foo";
539 o.ownerName = "foo"; 540 o.ownerName = "foo";
540 o.packagePath = "foo"; 541 o.packagePath = "foo";
541 o.parameters = buildUnnamed504(); 542 o.parameters = buildUnnamed1577();
542 o.protocol = "foo"; 543 o.protocol = "foo";
543 o.resources = buildUnnamed505(); 544 o.resources = buildUnnamed1578();
544 o.revision = "foo"; 545 o.revision = "foo";
545 o.rootUrl = "foo"; 546 o.rootUrl = "foo";
546 o.schemas = buildUnnamed506(); 547 o.schemas = buildUnnamed1579();
547 o.servicePath = "foo"; 548 o.servicePath = "foo";
548 o.title = "foo"; 549 o.title = "foo";
549 o.version = "foo"; 550 o.version = "foo";
550 } 551 }
551 buildCounterRestDescription--; 552 buildCounterRestDescription--;
552 return o; 553 return o;
553 } 554 }
554 555
555 checkRestDescription(api.RestDescription o) { 556 checkRestDescription(api.RestDescription o) {
556 buildCounterRestDescription++; 557 buildCounterRestDescription++;
557 if (buildCounterRestDescription < 3) { 558 if (buildCounterRestDescription < 3) {
558 checkRestDescriptionAuth(o.auth); 559 checkRestDescriptionAuth(o.auth);
559 unittest.expect(o.basePath, unittest.equals('foo')); 560 unittest.expect(o.basePath, unittest.equals('foo'));
560 unittest.expect(o.baseUrl, unittest.equals('foo')); 561 unittest.expect(o.baseUrl, unittest.equals('foo'));
561 unittest.expect(o.batchPath, unittest.equals('foo')); 562 unittest.expect(o.batchPath, unittest.equals('foo'));
562 unittest.expect(o.canonicalName, unittest.equals('foo')); 563 unittest.expect(o.canonicalName, unittest.equals('foo'));
563 unittest.expect(o.description, unittest.equals('foo')); 564 unittest.expect(o.description, unittest.equals('foo'));
564 unittest.expect(o.discoveryVersion, unittest.equals('foo')); 565 unittest.expect(o.discoveryVersion, unittest.equals('foo'));
565 unittest.expect(o.documentationLink, unittest.equals('foo')); 566 unittest.expect(o.documentationLink, unittest.equals('foo'));
566 unittest.expect(o.etag, unittest.equals('foo')); 567 unittest.expect(o.etag, unittest.equals('foo'));
567 checkUnnamed501(o.features); 568 unittest.expect(o.exponentialBackoffDefault, unittest.isTrue);
569 checkUnnamed1574(o.features);
568 checkRestDescriptionIcons(o.icons); 570 checkRestDescriptionIcons(o.icons);
569 unittest.expect(o.id, unittest.equals('foo')); 571 unittest.expect(o.id, unittest.equals('foo'));
570 unittest.expect(o.kind, unittest.equals('foo')); 572 unittest.expect(o.kind, unittest.equals('foo'));
571 checkUnnamed502(o.labels); 573 checkUnnamed1575(o.labels);
572 checkUnnamed503(o.methods); 574 checkUnnamed1576(o.methods);
573 unittest.expect(o.name, unittest.equals('foo')); 575 unittest.expect(o.name, unittest.equals('foo'));
574 unittest.expect(o.ownerDomain, unittest.equals('foo')); 576 unittest.expect(o.ownerDomain, unittest.equals('foo'));
575 unittest.expect(o.ownerName, unittest.equals('foo')); 577 unittest.expect(o.ownerName, unittest.equals('foo'));
576 unittest.expect(o.packagePath, unittest.equals('foo')); 578 unittest.expect(o.packagePath, unittest.equals('foo'));
577 checkUnnamed504(o.parameters); 579 checkUnnamed1577(o.parameters);
578 unittest.expect(o.protocol, unittest.equals('foo')); 580 unittest.expect(o.protocol, unittest.equals('foo'));
579 checkUnnamed505(o.resources); 581 checkUnnamed1578(o.resources);
580 unittest.expect(o.revision, unittest.equals('foo')); 582 unittest.expect(o.revision, unittest.equals('foo'));
581 unittest.expect(o.rootUrl, unittest.equals('foo')); 583 unittest.expect(o.rootUrl, unittest.equals('foo'));
582 checkUnnamed506(o.schemas); 584 checkUnnamed1579(o.schemas);
583 unittest.expect(o.servicePath, unittest.equals('foo')); 585 unittest.expect(o.servicePath, unittest.equals('foo'));
584 unittest.expect(o.title, unittest.equals('foo')); 586 unittest.expect(o.title, unittest.equals('foo'));
585 unittest.expect(o.version, unittest.equals('foo')); 587 unittest.expect(o.version, unittest.equals('foo'));
586 } 588 }
587 buildCounterRestDescription--; 589 buildCounterRestDescription--;
588 } 590 }
589 591
590 buildUnnamed507() { 592 buildUnnamed1580() {
591 var o = new core.List<core.String>(); 593 var o = new core.List<core.String>();
592 o.add("foo"); 594 o.add("foo");
593 o.add("foo"); 595 o.add("foo");
594 return o; 596 return o;
595 } 597 }
596 598
597 checkUnnamed507(core.List<core.String> o) { 599 checkUnnamed1580(core.List<core.String> o) {
598 unittest.expect(o, unittest.hasLength(2)); 600 unittest.expect(o, unittest.hasLength(2));
599 unittest.expect(o[0], unittest.equals('foo')); 601 unittest.expect(o[0], unittest.equals('foo'));
600 unittest.expect(o[1], unittest.equals('foo')); 602 unittest.expect(o[1], unittest.equals('foo'));
601 } 603 }
602 604
603 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; 605 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0;
604 buildRestMethodMediaUploadProtocolsResumable() { 606 buildRestMethodMediaUploadProtocolsResumable() {
605 var o = new api.RestMethodMediaUploadProtocolsResumable(); 607 var o = new api.RestMethodMediaUploadProtocolsResumable();
606 buildCounterRestMethodMediaUploadProtocolsResumable++; 608 buildCounterRestMethodMediaUploadProtocolsResumable++;
607 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { 609 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 checkRestMethodMediaUploadProtocolsSimple(o.simple); 663 checkRestMethodMediaUploadProtocolsSimple(o.simple);
662 } 664 }
663 buildCounterRestMethodMediaUploadProtocols--; 665 buildCounterRestMethodMediaUploadProtocols--;
664 } 666 }
665 667
666 core.int buildCounterRestMethodMediaUpload = 0; 668 core.int buildCounterRestMethodMediaUpload = 0;
667 buildRestMethodMediaUpload() { 669 buildRestMethodMediaUpload() {
668 var o = new api.RestMethodMediaUpload(); 670 var o = new api.RestMethodMediaUpload();
669 buildCounterRestMethodMediaUpload++; 671 buildCounterRestMethodMediaUpload++;
670 if (buildCounterRestMethodMediaUpload < 3) { 672 if (buildCounterRestMethodMediaUpload < 3) {
671 o.accept = buildUnnamed507(); 673 o.accept = buildUnnamed1580();
672 o.maxSize = "foo"; 674 o.maxSize = "foo";
673 o.protocols = buildRestMethodMediaUploadProtocols(); 675 o.protocols = buildRestMethodMediaUploadProtocols();
674 } 676 }
675 buildCounterRestMethodMediaUpload--; 677 buildCounterRestMethodMediaUpload--;
676 return o; 678 return o;
677 } 679 }
678 680
679 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { 681 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) {
680 buildCounterRestMethodMediaUpload++; 682 buildCounterRestMethodMediaUpload++;
681 if (buildCounterRestMethodMediaUpload < 3) { 683 if (buildCounterRestMethodMediaUpload < 3) {
682 checkUnnamed507(o.accept); 684 checkUnnamed1580(o.accept);
683 unittest.expect(o.maxSize, unittest.equals('foo')); 685 unittest.expect(o.maxSize, unittest.equals('foo'));
684 checkRestMethodMediaUploadProtocols(o.protocols); 686 checkRestMethodMediaUploadProtocols(o.protocols);
685 } 687 }
686 buildCounterRestMethodMediaUpload--; 688 buildCounterRestMethodMediaUpload--;
687 } 689 }
688 690
689 buildUnnamed508() { 691 buildUnnamed1581() {
690 var o = new core.List<core.String>(); 692 var o = new core.List<core.String>();
691 o.add("foo"); 693 o.add("foo");
692 o.add("foo"); 694 o.add("foo");
693 return o; 695 return o;
694 } 696 }
695 697
696 checkUnnamed508(core.List<core.String> o) { 698 checkUnnamed1581(core.List<core.String> o) {
697 unittest.expect(o, unittest.hasLength(2)); 699 unittest.expect(o, unittest.hasLength(2));
698 unittest.expect(o[0], unittest.equals('foo')); 700 unittest.expect(o[0], unittest.equals('foo'));
699 unittest.expect(o[1], unittest.equals('foo')); 701 unittest.expect(o[1], unittest.equals('foo'));
700 } 702 }
701 703
702 buildUnnamed509() { 704 buildUnnamed1582() {
703 var o = new core.Map<core.String, api.JsonSchema>(); 705 var o = new core.Map<core.String, api.JsonSchema>();
704 o["x"] = buildJsonSchema(); 706 o["x"] = buildJsonSchema();
705 o["y"] = buildJsonSchema(); 707 o["y"] = buildJsonSchema();
706 return o; 708 return o;
707 } 709 }
708 710
709 checkUnnamed509(core.Map<core.String, api.JsonSchema> o) { 711 checkUnnamed1582(core.Map<core.String, api.JsonSchema> o) {
710 unittest.expect(o, unittest.hasLength(2)); 712 unittest.expect(o, unittest.hasLength(2));
711 checkJsonSchema(o["x"]); 713 checkJsonSchema(o["x"]);
712 checkJsonSchema(o["y"]); 714 checkJsonSchema(o["y"]);
713 } 715 }
714 716
715 core.int buildCounterRestMethodRequest = 0; 717 core.int buildCounterRestMethodRequest = 0;
716 buildRestMethodRequest() { 718 buildRestMethodRequest() {
717 var o = new api.RestMethodRequest(); 719 var o = new api.RestMethodRequest();
718 buildCounterRestMethodRequest++; 720 buildCounterRestMethodRequest++;
719 if (buildCounterRestMethodRequest < 3) { 721 if (buildCounterRestMethodRequest < 3) {
(...skipping 25 matching lines...) Expand all
745 } 747 }
746 748
747 checkRestMethodResponse(api.RestMethodResponse o) { 749 checkRestMethodResponse(api.RestMethodResponse o) {
748 buildCounterRestMethodResponse++; 750 buildCounterRestMethodResponse++;
749 if (buildCounterRestMethodResponse < 3) { 751 if (buildCounterRestMethodResponse < 3) {
750 unittest.expect(o.P_ref, unittest.equals('foo')); 752 unittest.expect(o.P_ref, unittest.equals('foo'));
751 } 753 }
752 buildCounterRestMethodResponse--; 754 buildCounterRestMethodResponse--;
753 } 755 }
754 756
755 buildUnnamed510() { 757 buildUnnamed1583() {
756 var o = new core.List<core.String>(); 758 var o = new core.List<core.String>();
757 o.add("foo"); 759 o.add("foo");
758 o.add("foo"); 760 o.add("foo");
759 return o; 761 return o;
760 } 762 }
761 763
762 checkUnnamed510(core.List<core.String> o) { 764 checkUnnamed1583(core.List<core.String> o) {
763 unittest.expect(o, unittest.hasLength(2)); 765 unittest.expect(o, unittest.hasLength(2));
764 unittest.expect(o[0], unittest.equals('foo')); 766 unittest.expect(o[0], unittest.equals('foo'));
765 unittest.expect(o[1], unittest.equals('foo')); 767 unittest.expect(o[1], unittest.equals('foo'));
766 } 768 }
767 769
768 core.int buildCounterRestMethod = 0; 770 core.int buildCounterRestMethod = 0;
769 buildRestMethod() { 771 buildRestMethod() {
770 var o = new api.RestMethod(); 772 var o = new api.RestMethod();
771 buildCounterRestMethod++; 773 buildCounterRestMethod++;
772 if (buildCounterRestMethod < 3) { 774 if (buildCounterRestMethod < 3) {
773 o.description = "foo"; 775 o.description = "foo";
774 o.etagRequired = true; 776 o.etagRequired = true;
775 o.httpMethod = "foo"; 777 o.httpMethod = "foo";
776 o.id = "foo"; 778 o.id = "foo";
777 o.mediaUpload = buildRestMethodMediaUpload(); 779 o.mediaUpload = buildRestMethodMediaUpload();
778 o.parameterOrder = buildUnnamed508(); 780 o.parameterOrder = buildUnnamed1581();
779 o.parameters = buildUnnamed509(); 781 o.parameters = buildUnnamed1582();
780 o.path = "foo"; 782 o.path = "foo";
781 o.request = buildRestMethodRequest(); 783 o.request = buildRestMethodRequest();
782 o.response = buildRestMethodResponse(); 784 o.response = buildRestMethodResponse();
783 o.scopes = buildUnnamed510(); 785 o.scopes = buildUnnamed1583();
784 o.supportsMediaDownload = true; 786 o.supportsMediaDownload = true;
785 o.supportsMediaUpload = true; 787 o.supportsMediaUpload = true;
786 o.supportsSubscription = true; 788 o.supportsSubscription = true;
787 o.useMediaDownloadService = true; 789 o.useMediaDownloadService = true;
788 } 790 }
789 buildCounterRestMethod--; 791 buildCounterRestMethod--;
790 return o; 792 return o;
791 } 793 }
792 794
793 checkRestMethod(api.RestMethod o) { 795 checkRestMethod(api.RestMethod o) {
794 buildCounterRestMethod++; 796 buildCounterRestMethod++;
795 if (buildCounterRestMethod < 3) { 797 if (buildCounterRestMethod < 3) {
796 unittest.expect(o.description, unittest.equals('foo')); 798 unittest.expect(o.description, unittest.equals('foo'));
797 unittest.expect(o.etagRequired, unittest.isTrue); 799 unittest.expect(o.etagRequired, unittest.isTrue);
798 unittest.expect(o.httpMethod, unittest.equals('foo')); 800 unittest.expect(o.httpMethod, unittest.equals('foo'));
799 unittest.expect(o.id, unittest.equals('foo')); 801 unittest.expect(o.id, unittest.equals('foo'));
800 checkRestMethodMediaUpload(o.mediaUpload); 802 checkRestMethodMediaUpload(o.mediaUpload);
801 checkUnnamed508(o.parameterOrder); 803 checkUnnamed1581(o.parameterOrder);
802 checkUnnamed509(o.parameters); 804 checkUnnamed1582(o.parameters);
803 unittest.expect(o.path, unittest.equals('foo')); 805 unittest.expect(o.path, unittest.equals('foo'));
804 checkRestMethodRequest(o.request); 806 checkRestMethodRequest(o.request);
805 checkRestMethodResponse(o.response); 807 checkRestMethodResponse(o.response);
806 checkUnnamed510(o.scopes); 808 checkUnnamed1583(o.scopes);
807 unittest.expect(o.supportsMediaDownload, unittest.isTrue); 809 unittest.expect(o.supportsMediaDownload, unittest.isTrue);
808 unittest.expect(o.supportsMediaUpload, unittest.isTrue); 810 unittest.expect(o.supportsMediaUpload, unittest.isTrue);
809 unittest.expect(o.supportsSubscription, unittest.isTrue); 811 unittest.expect(o.supportsSubscription, unittest.isTrue);
810 unittest.expect(o.useMediaDownloadService, unittest.isTrue); 812 unittest.expect(o.useMediaDownloadService, unittest.isTrue);
811 } 813 }
812 buildCounterRestMethod--; 814 buildCounterRestMethod--;
813 } 815 }
814 816
815 buildUnnamed511() { 817 buildUnnamed1584() {
816 var o = new core.Map<core.String, api.RestMethod>(); 818 var o = new core.Map<core.String, api.RestMethod>();
817 o["x"] = buildRestMethod(); 819 o["x"] = buildRestMethod();
818 o["y"] = buildRestMethod(); 820 o["y"] = buildRestMethod();
819 return o; 821 return o;
820 } 822 }
821 823
822 checkUnnamed511(core.Map<core.String, api.RestMethod> o) { 824 checkUnnamed1584(core.Map<core.String, api.RestMethod> o) {
823 unittest.expect(o, unittest.hasLength(2)); 825 unittest.expect(o, unittest.hasLength(2));
824 checkRestMethod(o["x"]); 826 checkRestMethod(o["x"]);
825 checkRestMethod(o["y"]); 827 checkRestMethod(o["y"]);
826 } 828 }
827 829
828 buildUnnamed512() { 830 buildUnnamed1585() {
829 var o = new core.Map<core.String, api.RestResource>(); 831 var o = new core.Map<core.String, api.RestResource>();
830 o["x"] = buildRestResource(); 832 o["x"] = buildRestResource();
831 o["y"] = buildRestResource(); 833 o["y"] = buildRestResource();
832 return o; 834 return o;
833 } 835 }
834 836
835 checkUnnamed512(core.Map<core.String, api.RestResource> o) { 837 checkUnnamed1585(core.Map<core.String, api.RestResource> o) {
836 unittest.expect(o, unittest.hasLength(2)); 838 unittest.expect(o, unittest.hasLength(2));
837 checkRestResource(o["x"]); 839 checkRestResource(o["x"]);
838 checkRestResource(o["y"]); 840 checkRestResource(o["y"]);
839 } 841 }
840 842
841 core.int buildCounterRestResource = 0; 843 core.int buildCounterRestResource = 0;
842 buildRestResource() { 844 buildRestResource() {
843 var o = new api.RestResource(); 845 var o = new api.RestResource();
844 buildCounterRestResource++; 846 buildCounterRestResource++;
845 if (buildCounterRestResource < 3) { 847 if (buildCounterRestResource < 3) {
846 o.methods = buildUnnamed511(); 848 o.methods = buildUnnamed1584();
847 o.resources = buildUnnamed512(); 849 o.resources = buildUnnamed1585();
848 } 850 }
849 buildCounterRestResource--; 851 buildCounterRestResource--;
850 return o; 852 return o;
851 } 853 }
852 854
853 checkRestResource(api.RestResource o) { 855 checkRestResource(api.RestResource o) {
854 buildCounterRestResource++; 856 buildCounterRestResource++;
855 if (buildCounterRestResource < 3) { 857 if (buildCounterRestResource < 3) {
856 checkUnnamed511(o.methods); 858 checkUnnamed1584(o.methods);
857 checkUnnamed512(o.resources); 859 checkUnnamed1585(o.resources);
858 } 860 }
859 buildCounterRestResource--; 861 buildCounterRestResource--;
860 } 862 }
861 863
862 864
863 main() { 865 main() {
864 unittest.group("obj-schema-DirectoryListItemsIcons", () { 866 unittest.group("obj-schema-DirectoryListItemsIcons", () {
865 unittest.test("to-json--from-json", () { 867 unittest.test("to-json--from-json", () {
866 var o = buildDirectoryListItemsIcons(); 868 var o = buildDirectoryListItemsIcons();
867 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); 869 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson());
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy nc(((api.DirectoryList response) { 1152 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy nc(((api.DirectoryList response) {
1151 checkDirectoryList(response); 1153 checkDirectoryList(response);
1152 }))); 1154 })));
1153 }); 1155 });
1154 1156
1155 }); 1157 });
1156 1158
1157 1159
1158 } 1160 }
1159 1161
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698