OLD | NEW |
1 library googleapis.mirror.v1.test; | 1 library googleapis.mirror.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 buildUnnamed1234() { | 54 buildUnnamed1246() { |
55 var o = new core.List<api.AuthToken>(); | 55 var o = new core.List<api.AuthToken>(); |
56 o.add(buildAuthToken()); | 56 o.add(buildAuthToken()); |
57 o.add(buildAuthToken()); | 57 o.add(buildAuthToken()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1234(core.List<api.AuthToken> o) { | 61 checkUnnamed1246(core.List<api.AuthToken> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkAuthToken(o[0]); | 63 checkAuthToken(o[0]); |
64 checkAuthToken(o[1]); | 64 checkAuthToken(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed1235() { | 67 buildUnnamed1247() { |
68 var o = new core.List<core.String>(); | 68 var o = new core.List<core.String>(); |
69 o.add("foo"); | 69 o.add("foo"); |
70 o.add("foo"); | 70 o.add("foo"); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed1235(core.List<core.String> o) { | 74 checkUnnamed1247(core.List<core.String> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 unittest.expect(o[0], unittest.equals('foo')); | 76 unittest.expect(o[0], unittest.equals('foo')); |
77 unittest.expect(o[1], unittest.equals('foo')); | 77 unittest.expect(o[1], unittest.equals('foo')); |
78 } | 78 } |
79 | 79 |
80 buildUnnamed1236() { | 80 buildUnnamed1248() { |
81 var o = new core.List<api.UserData>(); | 81 var o = new core.List<api.UserData>(); |
82 o.add(buildUserData()); | 82 o.add(buildUserData()); |
83 o.add(buildUserData()); | 83 o.add(buildUserData()); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed1236(core.List<api.UserData> o) { | 87 checkUnnamed1248(core.List<api.UserData> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 checkUserData(o[0]); | 89 checkUserData(o[0]); |
90 checkUserData(o[1]); | 90 checkUserData(o[1]); |
91 } | 91 } |
92 | 92 |
93 core.int buildCounterAccount = 0; | 93 core.int buildCounterAccount = 0; |
94 buildAccount() { | 94 buildAccount() { |
95 var o = new api.Account(); | 95 var o = new api.Account(); |
96 buildCounterAccount++; | 96 buildCounterAccount++; |
97 if (buildCounterAccount < 3) { | 97 if (buildCounterAccount < 3) { |
98 o.authTokens = buildUnnamed1234(); | 98 o.authTokens = buildUnnamed1246(); |
99 o.features = buildUnnamed1235(); | 99 o.features = buildUnnamed1247(); |
100 o.password = "foo"; | 100 o.password = "foo"; |
101 o.userData = buildUnnamed1236(); | 101 o.userData = buildUnnamed1248(); |
102 } | 102 } |
103 buildCounterAccount--; | 103 buildCounterAccount--; |
104 return o; | 104 return o; |
105 } | 105 } |
106 | 106 |
107 checkAccount(api.Account o) { | 107 checkAccount(api.Account o) { |
108 buildCounterAccount++; | 108 buildCounterAccount++; |
109 if (buildCounterAccount < 3) { | 109 if (buildCounterAccount < 3) { |
110 checkUnnamed1234(o.authTokens); | 110 checkUnnamed1246(o.authTokens); |
111 checkUnnamed1235(o.features); | 111 checkUnnamed1247(o.features); |
112 unittest.expect(o.password, unittest.equals('foo')); | 112 unittest.expect(o.password, unittest.equals('foo')); |
113 checkUnnamed1236(o.userData); | 113 checkUnnamed1248(o.userData); |
114 } | 114 } |
115 buildCounterAccount--; | 115 buildCounterAccount--; |
116 } | 116 } |
117 | 117 |
118 core.int buildCounterAttachment = 0; | 118 core.int buildCounterAttachment = 0; |
119 buildAttachment() { | 119 buildAttachment() { |
120 var o = new api.Attachment(); | 120 var o = new api.Attachment(); |
121 buildCounterAttachment++; | 121 buildCounterAttachment++; |
122 if (buildCounterAttachment < 3) { | 122 if (buildCounterAttachment < 3) { |
123 o.contentType = "foo"; | 123 o.contentType = "foo"; |
124 o.contentUrl = "foo"; | 124 o.contentUrl = "foo"; |
125 o.id = "foo"; | 125 o.id = "foo"; |
126 o.isProcessingContent = true; | 126 o.isProcessingContent = true; |
127 } | 127 } |
128 buildCounterAttachment--; | 128 buildCounterAttachment--; |
129 return o; | 129 return o; |
130 } | 130 } |
131 | 131 |
132 checkAttachment(api.Attachment o) { | 132 checkAttachment(api.Attachment o) { |
133 buildCounterAttachment++; | 133 buildCounterAttachment++; |
134 if (buildCounterAttachment < 3) { | 134 if (buildCounterAttachment < 3) { |
135 unittest.expect(o.contentType, unittest.equals('foo')); | 135 unittest.expect(o.contentType, unittest.equals('foo')); |
136 unittest.expect(o.contentUrl, unittest.equals('foo')); | 136 unittest.expect(o.contentUrl, unittest.equals('foo')); |
137 unittest.expect(o.id, unittest.equals('foo')); | 137 unittest.expect(o.id, unittest.equals('foo')); |
138 unittest.expect(o.isProcessingContent, unittest.isTrue); | 138 unittest.expect(o.isProcessingContent, unittest.isTrue); |
139 } | 139 } |
140 buildCounterAttachment--; | 140 buildCounterAttachment--; |
141 } | 141 } |
142 | 142 |
143 buildUnnamed1237() { | 143 buildUnnamed1249() { |
144 var o = new core.List<api.Attachment>(); | 144 var o = new core.List<api.Attachment>(); |
145 o.add(buildAttachment()); | 145 o.add(buildAttachment()); |
146 o.add(buildAttachment()); | 146 o.add(buildAttachment()); |
147 return o; | 147 return o; |
148 } | 148 } |
149 | 149 |
150 checkUnnamed1237(core.List<api.Attachment> o) { | 150 checkUnnamed1249(core.List<api.Attachment> o) { |
151 unittest.expect(o, unittest.hasLength(2)); | 151 unittest.expect(o, unittest.hasLength(2)); |
152 checkAttachment(o[0]); | 152 checkAttachment(o[0]); |
153 checkAttachment(o[1]); | 153 checkAttachment(o[1]); |
154 } | 154 } |
155 | 155 |
156 core.int buildCounterAttachmentsListResponse = 0; | 156 core.int buildCounterAttachmentsListResponse = 0; |
157 buildAttachmentsListResponse() { | 157 buildAttachmentsListResponse() { |
158 var o = new api.AttachmentsListResponse(); | 158 var o = new api.AttachmentsListResponse(); |
159 buildCounterAttachmentsListResponse++; | 159 buildCounterAttachmentsListResponse++; |
160 if (buildCounterAttachmentsListResponse < 3) { | 160 if (buildCounterAttachmentsListResponse < 3) { |
161 o.items = buildUnnamed1237(); | 161 o.items = buildUnnamed1249(); |
162 o.kind = "foo"; | 162 o.kind = "foo"; |
163 } | 163 } |
164 buildCounterAttachmentsListResponse--; | 164 buildCounterAttachmentsListResponse--; |
165 return o; | 165 return o; |
166 } | 166 } |
167 | 167 |
168 checkAttachmentsListResponse(api.AttachmentsListResponse o) { | 168 checkAttachmentsListResponse(api.AttachmentsListResponse o) { |
169 buildCounterAttachmentsListResponse++; | 169 buildCounterAttachmentsListResponse++; |
170 if (buildCounterAttachmentsListResponse < 3) { | 170 if (buildCounterAttachmentsListResponse < 3) { |
171 checkUnnamed1237(o.items); | 171 checkUnnamed1249(o.items); |
172 unittest.expect(o.kind, unittest.equals('foo')); | 172 unittest.expect(o.kind, unittest.equals('foo')); |
173 } | 173 } |
174 buildCounterAttachmentsListResponse--; | 174 buildCounterAttachmentsListResponse--; |
175 } | 175 } |
176 | 176 |
177 core.int buildCounterAuthToken = 0; | 177 core.int buildCounterAuthToken = 0; |
178 buildAuthToken() { | 178 buildAuthToken() { |
179 var o = new api.AuthToken(); | 179 var o = new api.AuthToken(); |
180 buildCounterAuthToken++; | 180 buildCounterAuthToken++; |
181 if (buildCounterAuthToken < 3) { | 181 if (buildCounterAuthToken < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
207 } | 207 } |
208 | 208 |
209 checkCommand(api.Command o) { | 209 checkCommand(api.Command o) { |
210 buildCounterCommand++; | 210 buildCounterCommand++; |
211 if (buildCounterCommand < 3) { | 211 if (buildCounterCommand < 3) { |
212 unittest.expect(o.type, unittest.equals('foo')); | 212 unittest.expect(o.type, unittest.equals('foo')); |
213 } | 213 } |
214 buildCounterCommand--; | 214 buildCounterCommand--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed1238() { | 217 buildUnnamed1250() { |
218 var o = new core.List<api.Command>(); | 218 var o = new core.List<api.Command>(); |
219 o.add(buildCommand()); | 219 o.add(buildCommand()); |
220 o.add(buildCommand()); | 220 o.add(buildCommand()); |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkUnnamed1238(core.List<api.Command> o) { | 224 checkUnnamed1250(core.List<api.Command> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
226 checkCommand(o[0]); | 226 checkCommand(o[0]); |
227 checkCommand(o[1]); | 227 checkCommand(o[1]); |
228 } | 228 } |
229 | 229 |
230 buildUnnamed1239() { | 230 buildUnnamed1251() { |
231 var o = new core.List<core.String>(); | 231 var o = new core.List<core.String>(); |
232 o.add("foo"); | 232 o.add("foo"); |
233 o.add("foo"); | 233 o.add("foo"); |
234 return o; | 234 return o; |
235 } | 235 } |
236 | 236 |
237 checkUnnamed1239(core.List<core.String> o) { | 237 checkUnnamed1251(core.List<core.String> o) { |
238 unittest.expect(o, unittest.hasLength(2)); | 238 unittest.expect(o, unittest.hasLength(2)); |
239 unittest.expect(o[0], unittest.equals('foo')); | 239 unittest.expect(o[0], unittest.equals('foo')); |
240 unittest.expect(o[1], unittest.equals('foo')); | 240 unittest.expect(o[1], unittest.equals('foo')); |
241 } | 241 } |
242 | 242 |
243 buildUnnamed1240() { | 243 buildUnnamed1252() { |
244 var o = new core.List<core.String>(); | 244 var o = new core.List<core.String>(); |
245 o.add("foo"); | 245 o.add("foo"); |
246 o.add("foo"); | 246 o.add("foo"); |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkUnnamed1240(core.List<core.String> o) { | 250 checkUnnamed1252(core.List<core.String> o) { |
251 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
252 unittest.expect(o[0], unittest.equals('foo')); | 252 unittest.expect(o[0], unittest.equals('foo')); |
253 unittest.expect(o[1], unittest.equals('foo')); | 253 unittest.expect(o[1], unittest.equals('foo')); |
254 } | 254 } |
255 | 255 |
256 buildUnnamed1241() { | 256 buildUnnamed1253() { |
257 var o = new core.List<core.String>(); | 257 var o = new core.List<core.String>(); |
258 o.add("foo"); | 258 o.add("foo"); |
259 o.add("foo"); | 259 o.add("foo"); |
260 return o; | 260 return o; |
261 } | 261 } |
262 | 262 |
263 checkUnnamed1241(core.List<core.String> o) { | 263 checkUnnamed1253(core.List<core.String> o) { |
264 unittest.expect(o, unittest.hasLength(2)); | 264 unittest.expect(o, unittest.hasLength(2)); |
265 unittest.expect(o[0], unittest.equals('foo')); | 265 unittest.expect(o[0], unittest.equals('foo')); |
266 unittest.expect(o[1], unittest.equals('foo')); | 266 unittest.expect(o[1], unittest.equals('foo')); |
267 } | 267 } |
268 | 268 |
269 core.int buildCounterContact = 0; | 269 core.int buildCounterContact = 0; |
270 buildContact() { | 270 buildContact() { |
271 var o = new api.Contact(); | 271 var o = new api.Contact(); |
272 buildCounterContact++; | 272 buildCounterContact++; |
273 if (buildCounterContact < 3) { | 273 if (buildCounterContact < 3) { |
274 o.acceptCommands = buildUnnamed1238(); | 274 o.acceptCommands = buildUnnamed1250(); |
275 o.acceptTypes = buildUnnamed1239(); | 275 o.acceptTypes = buildUnnamed1251(); |
276 o.displayName = "foo"; | 276 o.displayName = "foo"; |
277 o.id = "foo"; | 277 o.id = "foo"; |
278 o.imageUrls = buildUnnamed1240(); | 278 o.imageUrls = buildUnnamed1252(); |
279 o.kind = "foo"; | 279 o.kind = "foo"; |
280 o.phoneNumber = "foo"; | 280 o.phoneNumber = "foo"; |
281 o.priority = 42; | 281 o.priority = 42; |
282 o.sharingFeatures = buildUnnamed1241(); | 282 o.sharingFeatures = buildUnnamed1253(); |
283 o.source = "foo"; | 283 o.source = "foo"; |
284 o.speakableName = "foo"; | 284 o.speakableName = "foo"; |
285 o.type = "foo"; | 285 o.type = "foo"; |
286 } | 286 } |
287 buildCounterContact--; | 287 buildCounterContact--; |
288 return o; | 288 return o; |
289 } | 289 } |
290 | 290 |
291 checkContact(api.Contact o) { | 291 checkContact(api.Contact o) { |
292 buildCounterContact++; | 292 buildCounterContact++; |
293 if (buildCounterContact < 3) { | 293 if (buildCounterContact < 3) { |
294 checkUnnamed1238(o.acceptCommands); | 294 checkUnnamed1250(o.acceptCommands); |
295 checkUnnamed1239(o.acceptTypes); | 295 checkUnnamed1251(o.acceptTypes); |
296 unittest.expect(o.displayName, unittest.equals('foo')); | 296 unittest.expect(o.displayName, unittest.equals('foo')); |
297 unittest.expect(o.id, unittest.equals('foo')); | 297 unittest.expect(o.id, unittest.equals('foo')); |
298 checkUnnamed1240(o.imageUrls); | 298 checkUnnamed1252(o.imageUrls); |
299 unittest.expect(o.kind, unittest.equals('foo')); | 299 unittest.expect(o.kind, unittest.equals('foo')); |
300 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 300 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
301 unittest.expect(o.priority, unittest.equals(42)); | 301 unittest.expect(o.priority, unittest.equals(42)); |
302 checkUnnamed1241(o.sharingFeatures); | 302 checkUnnamed1253(o.sharingFeatures); |
303 unittest.expect(o.source, unittest.equals('foo')); | 303 unittest.expect(o.source, unittest.equals('foo')); |
304 unittest.expect(o.speakableName, unittest.equals('foo')); | 304 unittest.expect(o.speakableName, unittest.equals('foo')); |
305 unittest.expect(o.type, unittest.equals('foo')); | 305 unittest.expect(o.type, unittest.equals('foo')); |
306 } | 306 } |
307 buildCounterContact--; | 307 buildCounterContact--; |
308 } | 308 } |
309 | 309 |
310 buildUnnamed1242() { | 310 buildUnnamed1254() { |
311 var o = new core.List<api.Contact>(); | 311 var o = new core.List<api.Contact>(); |
312 o.add(buildContact()); | 312 o.add(buildContact()); |
313 o.add(buildContact()); | 313 o.add(buildContact()); |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkUnnamed1242(core.List<api.Contact> o) { | 317 checkUnnamed1254(core.List<api.Contact> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
319 checkContact(o[0]); | 319 checkContact(o[0]); |
320 checkContact(o[1]); | 320 checkContact(o[1]); |
321 } | 321 } |
322 | 322 |
323 core.int buildCounterContactsListResponse = 0; | 323 core.int buildCounterContactsListResponse = 0; |
324 buildContactsListResponse() { | 324 buildContactsListResponse() { |
325 var o = new api.ContactsListResponse(); | 325 var o = new api.ContactsListResponse(); |
326 buildCounterContactsListResponse++; | 326 buildCounterContactsListResponse++; |
327 if (buildCounterContactsListResponse < 3) { | 327 if (buildCounterContactsListResponse < 3) { |
328 o.items = buildUnnamed1242(); | 328 o.items = buildUnnamed1254(); |
329 o.kind = "foo"; | 329 o.kind = "foo"; |
330 } | 330 } |
331 buildCounterContactsListResponse--; | 331 buildCounterContactsListResponse--; |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkContactsListResponse(api.ContactsListResponse o) { | 335 checkContactsListResponse(api.ContactsListResponse o) { |
336 buildCounterContactsListResponse++; | 336 buildCounterContactsListResponse++; |
337 if (buildCounterContactsListResponse < 3) { | 337 if (buildCounterContactsListResponse < 3) { |
338 checkUnnamed1242(o.items); | 338 checkUnnamed1254(o.items); |
339 unittest.expect(o.kind, unittest.equals('foo')); | 339 unittest.expect(o.kind, unittest.equals('foo')); |
340 } | 340 } |
341 buildCounterContactsListResponse--; | 341 buildCounterContactsListResponse--; |
342 } | 342 } |
343 | 343 |
344 core.int buildCounterLocation = 0; | 344 core.int buildCounterLocation = 0; |
345 buildLocation() { | 345 buildLocation() { |
346 var o = new api.Location(); | 346 var o = new api.Location(); |
347 buildCounterLocation++; | 347 buildCounterLocation++; |
348 if (buildCounterLocation < 3) { | 348 if (buildCounterLocation < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
367 unittest.expect(o.displayName, unittest.equals('foo')); | 367 unittest.expect(o.displayName, unittest.equals('foo')); |
368 unittest.expect(o.id, unittest.equals('foo')); | 368 unittest.expect(o.id, unittest.equals('foo')); |
369 unittest.expect(o.kind, unittest.equals('foo')); | 369 unittest.expect(o.kind, unittest.equals('foo')); |
370 unittest.expect(o.latitude, unittest.equals(42.0)); | 370 unittest.expect(o.latitude, unittest.equals(42.0)); |
371 unittest.expect(o.longitude, unittest.equals(42.0)); | 371 unittest.expect(o.longitude, unittest.equals(42.0)); |
372 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 372 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
373 } | 373 } |
374 buildCounterLocation--; | 374 buildCounterLocation--; |
375 } | 375 } |
376 | 376 |
377 buildUnnamed1243() { | 377 buildUnnamed1255() { |
378 var o = new core.List<api.Location>(); | 378 var o = new core.List<api.Location>(); |
379 o.add(buildLocation()); | 379 o.add(buildLocation()); |
380 o.add(buildLocation()); | 380 o.add(buildLocation()); |
381 return o; | 381 return o; |
382 } | 382 } |
383 | 383 |
384 checkUnnamed1243(core.List<api.Location> o) { | 384 checkUnnamed1255(core.List<api.Location> o) { |
385 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
386 checkLocation(o[0]); | 386 checkLocation(o[0]); |
387 checkLocation(o[1]); | 387 checkLocation(o[1]); |
388 } | 388 } |
389 | 389 |
390 core.int buildCounterLocationsListResponse = 0; | 390 core.int buildCounterLocationsListResponse = 0; |
391 buildLocationsListResponse() { | 391 buildLocationsListResponse() { |
392 var o = new api.LocationsListResponse(); | 392 var o = new api.LocationsListResponse(); |
393 buildCounterLocationsListResponse++; | 393 buildCounterLocationsListResponse++; |
394 if (buildCounterLocationsListResponse < 3) { | 394 if (buildCounterLocationsListResponse < 3) { |
395 o.items = buildUnnamed1243(); | 395 o.items = buildUnnamed1255(); |
396 o.kind = "foo"; | 396 o.kind = "foo"; |
397 } | 397 } |
398 buildCounterLocationsListResponse--; | 398 buildCounterLocationsListResponse--; |
399 return o; | 399 return o; |
400 } | 400 } |
401 | 401 |
402 checkLocationsListResponse(api.LocationsListResponse o) { | 402 checkLocationsListResponse(api.LocationsListResponse o) { |
403 buildCounterLocationsListResponse++; | 403 buildCounterLocationsListResponse++; |
404 if (buildCounterLocationsListResponse < 3) { | 404 if (buildCounterLocationsListResponse < 3) { |
405 checkUnnamed1243(o.items); | 405 checkUnnamed1255(o.items); |
406 unittest.expect(o.kind, unittest.equals('foo')); | 406 unittest.expect(o.kind, unittest.equals('foo')); |
407 } | 407 } |
408 buildCounterLocationsListResponse--; | 408 buildCounterLocationsListResponse--; |
409 } | 409 } |
410 | 410 |
411 buildUnnamed1244() { | 411 buildUnnamed1256() { |
412 var o = new core.List<api.MenuValue>(); | 412 var o = new core.List<api.MenuValue>(); |
413 o.add(buildMenuValue()); | 413 o.add(buildMenuValue()); |
414 o.add(buildMenuValue()); | 414 o.add(buildMenuValue()); |
415 return o; | 415 return o; |
416 } | 416 } |
417 | 417 |
418 checkUnnamed1244(core.List<api.MenuValue> o) { | 418 checkUnnamed1256(core.List<api.MenuValue> o) { |
419 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
420 checkMenuValue(o[0]); | 420 checkMenuValue(o[0]); |
421 checkMenuValue(o[1]); | 421 checkMenuValue(o[1]); |
422 } | 422 } |
423 | 423 |
424 core.int buildCounterMenuItem = 0; | 424 core.int buildCounterMenuItem = 0; |
425 buildMenuItem() { | 425 buildMenuItem() { |
426 var o = new api.MenuItem(); | 426 var o = new api.MenuItem(); |
427 buildCounterMenuItem++; | 427 buildCounterMenuItem++; |
428 if (buildCounterMenuItem < 3) { | 428 if (buildCounterMenuItem < 3) { |
429 o.action = "foo"; | 429 o.action = "foo"; |
430 o.contextualCommand = "foo"; | 430 o.contextualCommand = "foo"; |
431 o.id = "foo"; | 431 o.id = "foo"; |
432 o.payload = "foo"; | 432 o.payload = "foo"; |
433 o.removeWhenSelected = true; | 433 o.removeWhenSelected = true; |
434 o.values = buildUnnamed1244(); | 434 o.values = buildUnnamed1256(); |
435 } | 435 } |
436 buildCounterMenuItem--; | 436 buildCounterMenuItem--; |
437 return o; | 437 return o; |
438 } | 438 } |
439 | 439 |
440 checkMenuItem(api.MenuItem o) { | 440 checkMenuItem(api.MenuItem o) { |
441 buildCounterMenuItem++; | 441 buildCounterMenuItem++; |
442 if (buildCounterMenuItem < 3) { | 442 if (buildCounterMenuItem < 3) { |
443 unittest.expect(o.action, unittest.equals('foo')); | 443 unittest.expect(o.action, unittest.equals('foo')); |
444 unittest.expect(o.contextualCommand, unittest.equals('foo')); | 444 unittest.expect(o.contextualCommand, unittest.equals('foo')); |
445 unittest.expect(o.id, unittest.equals('foo')); | 445 unittest.expect(o.id, unittest.equals('foo')); |
446 unittest.expect(o.payload, unittest.equals('foo')); | 446 unittest.expect(o.payload, unittest.equals('foo')); |
447 unittest.expect(o.removeWhenSelected, unittest.isTrue); | 447 unittest.expect(o.removeWhenSelected, unittest.isTrue); |
448 checkUnnamed1244(o.values); | 448 checkUnnamed1256(o.values); |
449 } | 449 } |
450 buildCounterMenuItem--; | 450 buildCounterMenuItem--; |
451 } | 451 } |
452 | 452 |
453 core.int buildCounterMenuValue = 0; | 453 core.int buildCounterMenuValue = 0; |
454 buildMenuValue() { | 454 buildMenuValue() { |
455 var o = new api.MenuValue(); | 455 var o = new api.MenuValue(); |
456 buildCounterMenuValue++; | 456 buildCounterMenuValue++; |
457 if (buildCounterMenuValue < 3) { | 457 if (buildCounterMenuValue < 3) { |
458 o.displayName = "foo"; | 458 o.displayName = "foo"; |
459 o.iconUrl = "foo"; | 459 o.iconUrl = "foo"; |
460 o.state = "foo"; | 460 o.state = "foo"; |
461 } | 461 } |
462 buildCounterMenuValue--; | 462 buildCounterMenuValue--; |
463 return o; | 463 return o; |
464 } | 464 } |
465 | 465 |
466 checkMenuValue(api.MenuValue o) { | 466 checkMenuValue(api.MenuValue o) { |
467 buildCounterMenuValue++; | 467 buildCounterMenuValue++; |
468 if (buildCounterMenuValue < 3) { | 468 if (buildCounterMenuValue < 3) { |
469 unittest.expect(o.displayName, unittest.equals('foo')); | 469 unittest.expect(o.displayName, unittest.equals('foo')); |
470 unittest.expect(o.iconUrl, unittest.equals('foo')); | 470 unittest.expect(o.iconUrl, unittest.equals('foo')); |
471 unittest.expect(o.state, unittest.equals('foo')); | 471 unittest.expect(o.state, unittest.equals('foo')); |
472 } | 472 } |
473 buildCounterMenuValue--; | 473 buildCounterMenuValue--; |
474 } | 474 } |
475 | 475 |
476 buildUnnamed1245() { | 476 buildUnnamed1257() { |
477 var o = new core.List<api.UserAction>(); | 477 var o = new core.List<api.UserAction>(); |
478 o.add(buildUserAction()); | 478 o.add(buildUserAction()); |
479 o.add(buildUserAction()); | 479 o.add(buildUserAction()); |
480 return o; | 480 return o; |
481 } | 481 } |
482 | 482 |
483 checkUnnamed1245(core.List<api.UserAction> o) { | 483 checkUnnamed1257(core.List<api.UserAction> o) { |
484 unittest.expect(o, unittest.hasLength(2)); | 484 unittest.expect(o, unittest.hasLength(2)); |
485 checkUserAction(o[0]); | 485 checkUserAction(o[0]); |
486 checkUserAction(o[1]); | 486 checkUserAction(o[1]); |
487 } | 487 } |
488 | 488 |
489 core.int buildCounterNotification = 0; | 489 core.int buildCounterNotification = 0; |
490 buildNotification() { | 490 buildNotification() { |
491 var o = new api.Notification(); | 491 var o = new api.Notification(); |
492 buildCounterNotification++; | 492 buildCounterNotification++; |
493 if (buildCounterNotification < 3) { | 493 if (buildCounterNotification < 3) { |
494 o.collection = "foo"; | 494 o.collection = "foo"; |
495 o.itemId = "foo"; | 495 o.itemId = "foo"; |
496 o.operation = "foo"; | 496 o.operation = "foo"; |
497 o.userActions = buildUnnamed1245(); | 497 o.userActions = buildUnnamed1257(); |
498 o.userToken = "foo"; | 498 o.userToken = "foo"; |
499 o.verifyToken = "foo"; | 499 o.verifyToken = "foo"; |
500 } | 500 } |
501 buildCounterNotification--; | 501 buildCounterNotification--; |
502 return o; | 502 return o; |
503 } | 503 } |
504 | 504 |
505 checkNotification(api.Notification o) { | 505 checkNotification(api.Notification o) { |
506 buildCounterNotification++; | 506 buildCounterNotification++; |
507 if (buildCounterNotification < 3) { | 507 if (buildCounterNotification < 3) { |
508 unittest.expect(o.collection, unittest.equals('foo')); | 508 unittest.expect(o.collection, unittest.equals('foo')); |
509 unittest.expect(o.itemId, unittest.equals('foo')); | 509 unittest.expect(o.itemId, unittest.equals('foo')); |
510 unittest.expect(o.operation, unittest.equals('foo')); | 510 unittest.expect(o.operation, unittest.equals('foo')); |
511 checkUnnamed1245(o.userActions); | 511 checkUnnamed1257(o.userActions); |
512 unittest.expect(o.userToken, unittest.equals('foo')); | 512 unittest.expect(o.userToken, unittest.equals('foo')); |
513 unittest.expect(o.verifyToken, unittest.equals('foo')); | 513 unittest.expect(o.verifyToken, unittest.equals('foo')); |
514 } | 514 } |
515 buildCounterNotification--; | 515 buildCounterNotification--; |
516 } | 516 } |
517 | 517 |
518 core.int buildCounterNotificationConfig = 0; | 518 core.int buildCounterNotificationConfig = 0; |
519 buildNotificationConfig() { | 519 buildNotificationConfig() { |
520 var o = new api.NotificationConfig(); | 520 var o = new api.NotificationConfig(); |
521 buildCounterNotificationConfig++; | 521 buildCounterNotificationConfig++; |
(...skipping 30 matching lines...) Expand all Loading... |
552 checkSetting(api.Setting o) { | 552 checkSetting(api.Setting o) { |
553 buildCounterSetting++; | 553 buildCounterSetting++; |
554 if (buildCounterSetting < 3) { | 554 if (buildCounterSetting < 3) { |
555 unittest.expect(o.id, unittest.equals('foo')); | 555 unittest.expect(o.id, unittest.equals('foo')); |
556 unittest.expect(o.kind, unittest.equals('foo')); | 556 unittest.expect(o.kind, unittest.equals('foo')); |
557 unittest.expect(o.value, unittest.equals('foo')); | 557 unittest.expect(o.value, unittest.equals('foo')); |
558 } | 558 } |
559 buildCounterSetting--; | 559 buildCounterSetting--; |
560 } | 560 } |
561 | 561 |
562 buildUnnamed1246() { | 562 buildUnnamed1258() { |
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 checkUnnamed1246(core.List<core.String> o) { | 569 checkUnnamed1258(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 core.int buildCounterSubscription = 0; | 575 core.int buildCounterSubscription = 0; |
576 buildSubscription() { | 576 buildSubscription() { |
577 var o = new api.Subscription(); | 577 var o = new api.Subscription(); |
578 buildCounterSubscription++; | 578 buildCounterSubscription++; |
579 if (buildCounterSubscription < 3) { | 579 if (buildCounterSubscription < 3) { |
580 o.callbackUrl = "foo"; | 580 o.callbackUrl = "foo"; |
581 o.collection = "foo"; | 581 o.collection = "foo"; |
582 o.id = "foo"; | 582 o.id = "foo"; |
583 o.kind = "foo"; | 583 o.kind = "foo"; |
584 o.notification = buildNotification(); | 584 o.notification = buildNotification(); |
585 o.operation = buildUnnamed1246(); | 585 o.operation = buildUnnamed1258(); |
586 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 586 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
587 o.userToken = "foo"; | 587 o.userToken = "foo"; |
588 o.verifyToken = "foo"; | 588 o.verifyToken = "foo"; |
589 } | 589 } |
590 buildCounterSubscription--; | 590 buildCounterSubscription--; |
591 return o; | 591 return o; |
592 } | 592 } |
593 | 593 |
594 checkSubscription(api.Subscription o) { | 594 checkSubscription(api.Subscription o) { |
595 buildCounterSubscription++; | 595 buildCounterSubscription++; |
596 if (buildCounterSubscription < 3) { | 596 if (buildCounterSubscription < 3) { |
597 unittest.expect(o.callbackUrl, unittest.equals('foo')); | 597 unittest.expect(o.callbackUrl, unittest.equals('foo')); |
598 unittest.expect(o.collection, unittest.equals('foo')); | 598 unittest.expect(o.collection, unittest.equals('foo')); |
599 unittest.expect(o.id, unittest.equals('foo')); | 599 unittest.expect(o.id, unittest.equals('foo')); |
600 unittest.expect(o.kind, unittest.equals('foo')); | 600 unittest.expect(o.kind, unittest.equals('foo')); |
601 checkNotification(o.notification); | 601 checkNotification(o.notification); |
602 checkUnnamed1246(o.operation); | 602 checkUnnamed1258(o.operation); |
603 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 603 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
604 unittest.expect(o.userToken, unittest.equals('foo')); | 604 unittest.expect(o.userToken, unittest.equals('foo')); |
605 unittest.expect(o.verifyToken, unittest.equals('foo')); | 605 unittest.expect(o.verifyToken, unittest.equals('foo')); |
606 } | 606 } |
607 buildCounterSubscription--; | 607 buildCounterSubscription--; |
608 } | 608 } |
609 | 609 |
610 buildUnnamed1247() { | 610 buildUnnamed1259() { |
611 var o = new core.List<api.Subscription>(); | 611 var o = new core.List<api.Subscription>(); |
612 o.add(buildSubscription()); | 612 o.add(buildSubscription()); |
613 o.add(buildSubscription()); | 613 o.add(buildSubscription()); |
614 return o; | 614 return o; |
615 } | 615 } |
616 | 616 |
617 checkUnnamed1247(core.List<api.Subscription> o) { | 617 checkUnnamed1259(core.List<api.Subscription> o) { |
618 unittest.expect(o, unittest.hasLength(2)); | 618 unittest.expect(o, unittest.hasLength(2)); |
619 checkSubscription(o[0]); | 619 checkSubscription(o[0]); |
620 checkSubscription(o[1]); | 620 checkSubscription(o[1]); |
621 } | 621 } |
622 | 622 |
623 core.int buildCounterSubscriptionsListResponse = 0; | 623 core.int buildCounterSubscriptionsListResponse = 0; |
624 buildSubscriptionsListResponse() { | 624 buildSubscriptionsListResponse() { |
625 var o = new api.SubscriptionsListResponse(); | 625 var o = new api.SubscriptionsListResponse(); |
626 buildCounterSubscriptionsListResponse++; | 626 buildCounterSubscriptionsListResponse++; |
627 if (buildCounterSubscriptionsListResponse < 3) { | 627 if (buildCounterSubscriptionsListResponse < 3) { |
628 o.items = buildUnnamed1247(); | 628 o.items = buildUnnamed1259(); |
629 o.kind = "foo"; | 629 o.kind = "foo"; |
630 } | 630 } |
631 buildCounterSubscriptionsListResponse--; | 631 buildCounterSubscriptionsListResponse--; |
632 return o; | 632 return o; |
633 } | 633 } |
634 | 634 |
635 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { | 635 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { |
636 buildCounterSubscriptionsListResponse++; | 636 buildCounterSubscriptionsListResponse++; |
637 if (buildCounterSubscriptionsListResponse < 3) { | 637 if (buildCounterSubscriptionsListResponse < 3) { |
638 checkUnnamed1247(o.items); | 638 checkUnnamed1259(o.items); |
639 unittest.expect(o.kind, unittest.equals('foo')); | 639 unittest.expect(o.kind, unittest.equals('foo')); |
640 } | 640 } |
641 buildCounterSubscriptionsListResponse--; | 641 buildCounterSubscriptionsListResponse--; |
642 } | 642 } |
643 | 643 |
644 buildUnnamed1248() { | 644 buildUnnamed1260() { |
645 var o = new core.List<api.Attachment>(); | 645 var o = new core.List<api.Attachment>(); |
646 o.add(buildAttachment()); | 646 o.add(buildAttachment()); |
647 o.add(buildAttachment()); | 647 o.add(buildAttachment()); |
648 return o; | 648 return o; |
649 } | 649 } |
650 | 650 |
651 checkUnnamed1248(core.List<api.Attachment> o) { | 651 checkUnnamed1260(core.List<api.Attachment> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
653 checkAttachment(o[0]); | 653 checkAttachment(o[0]); |
654 checkAttachment(o[1]); | 654 checkAttachment(o[1]); |
655 } | 655 } |
656 | 656 |
657 buildUnnamed1249() { | 657 buildUnnamed1261() { |
658 var o = new core.List<api.MenuItem>(); | 658 var o = new core.List<api.MenuItem>(); |
659 o.add(buildMenuItem()); | 659 o.add(buildMenuItem()); |
660 o.add(buildMenuItem()); | 660 o.add(buildMenuItem()); |
661 return o; | 661 return o; |
662 } | 662 } |
663 | 663 |
664 checkUnnamed1249(core.List<api.MenuItem> o) { | 664 checkUnnamed1261(core.List<api.MenuItem> o) { |
665 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
666 checkMenuItem(o[0]); | 666 checkMenuItem(o[0]); |
667 checkMenuItem(o[1]); | 667 checkMenuItem(o[1]); |
668 } | 668 } |
669 | 669 |
670 buildUnnamed1250() { | 670 buildUnnamed1262() { |
671 var o = new core.List<api.Contact>(); | 671 var o = new core.List<api.Contact>(); |
672 o.add(buildContact()); | 672 o.add(buildContact()); |
673 o.add(buildContact()); | 673 o.add(buildContact()); |
674 return o; | 674 return o; |
675 } | 675 } |
676 | 676 |
677 checkUnnamed1250(core.List<api.Contact> o) { | 677 checkUnnamed1262(core.List<api.Contact> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
679 checkContact(o[0]); | 679 checkContact(o[0]); |
680 checkContact(o[1]); | 680 checkContact(o[1]); |
681 } | 681 } |
682 | 682 |
683 core.int buildCounterTimelineItem = 0; | 683 core.int buildCounterTimelineItem = 0; |
684 buildTimelineItem() { | 684 buildTimelineItem() { |
685 var o = new api.TimelineItem(); | 685 var o = new api.TimelineItem(); |
686 buildCounterTimelineItem++; | 686 buildCounterTimelineItem++; |
687 if (buildCounterTimelineItem < 3) { | 687 if (buildCounterTimelineItem < 3) { |
688 o.attachments = buildUnnamed1248(); | 688 o.attachments = buildUnnamed1260(); |
689 o.bundleId = "foo"; | 689 o.bundleId = "foo"; |
690 o.canonicalUrl = "foo"; | 690 o.canonicalUrl = "foo"; |
691 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 691 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
692 o.creator = buildContact(); | 692 o.creator = buildContact(); |
693 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02"); | 693 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02"); |
694 o.etag = "foo"; | 694 o.etag = "foo"; |
695 o.html = "foo"; | 695 o.html = "foo"; |
696 o.id = "foo"; | 696 o.id = "foo"; |
697 o.inReplyTo = "foo"; | 697 o.inReplyTo = "foo"; |
698 o.isBundleCover = true; | 698 o.isBundleCover = true; |
699 o.isDeleted = true; | 699 o.isDeleted = true; |
700 o.isPinned = true; | 700 o.isPinned = true; |
701 o.kind = "foo"; | 701 o.kind = "foo"; |
702 o.location = buildLocation(); | 702 o.location = buildLocation(); |
703 o.menuItems = buildUnnamed1249(); | 703 o.menuItems = buildUnnamed1261(); |
704 o.notification = buildNotificationConfig(); | 704 o.notification = buildNotificationConfig(); |
705 o.pinScore = 42; | 705 o.pinScore = 42; |
706 o.recipients = buildUnnamed1250(); | 706 o.recipients = buildUnnamed1262(); |
707 o.selfLink = "foo"; | 707 o.selfLink = "foo"; |
708 o.sourceItemId = "foo"; | 708 o.sourceItemId = "foo"; |
709 o.speakableText = "foo"; | 709 o.speakableText = "foo"; |
710 o.speakableType = "foo"; | 710 o.speakableType = "foo"; |
711 o.text = "foo"; | 711 o.text = "foo"; |
712 o.title = "foo"; | 712 o.title = "foo"; |
713 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 713 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
714 } | 714 } |
715 buildCounterTimelineItem--; | 715 buildCounterTimelineItem--; |
716 return o; | 716 return o; |
717 } | 717 } |
718 | 718 |
719 checkTimelineItem(api.TimelineItem o) { | 719 checkTimelineItem(api.TimelineItem o) { |
720 buildCounterTimelineItem++; | 720 buildCounterTimelineItem++; |
721 if (buildCounterTimelineItem < 3) { | 721 if (buildCounterTimelineItem < 3) { |
722 checkUnnamed1248(o.attachments); | 722 checkUnnamed1260(o.attachments); |
723 unittest.expect(o.bundleId, unittest.equals('foo')); | 723 unittest.expect(o.bundleId, unittest.equals('foo')); |
724 unittest.expect(o.canonicalUrl, unittest.equals('foo')); | 724 unittest.expect(o.canonicalUrl, unittest.equals('foo')); |
725 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 725 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
726 checkContact(o.creator); | 726 checkContact(o.creator); |
727 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 727 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
728 unittest.expect(o.etag, unittest.equals('foo')); | 728 unittest.expect(o.etag, unittest.equals('foo')); |
729 unittest.expect(o.html, unittest.equals('foo')); | 729 unittest.expect(o.html, unittest.equals('foo')); |
730 unittest.expect(o.id, unittest.equals('foo')); | 730 unittest.expect(o.id, unittest.equals('foo')); |
731 unittest.expect(o.inReplyTo, unittest.equals('foo')); | 731 unittest.expect(o.inReplyTo, unittest.equals('foo')); |
732 unittest.expect(o.isBundleCover, unittest.isTrue); | 732 unittest.expect(o.isBundleCover, unittest.isTrue); |
733 unittest.expect(o.isDeleted, unittest.isTrue); | 733 unittest.expect(o.isDeleted, unittest.isTrue); |
734 unittest.expect(o.isPinned, unittest.isTrue); | 734 unittest.expect(o.isPinned, unittest.isTrue); |
735 unittest.expect(o.kind, unittest.equals('foo')); | 735 unittest.expect(o.kind, unittest.equals('foo')); |
736 checkLocation(o.location); | 736 checkLocation(o.location); |
737 checkUnnamed1249(o.menuItems); | 737 checkUnnamed1261(o.menuItems); |
738 checkNotificationConfig(o.notification); | 738 checkNotificationConfig(o.notification); |
739 unittest.expect(o.pinScore, unittest.equals(42)); | 739 unittest.expect(o.pinScore, unittest.equals(42)); |
740 checkUnnamed1250(o.recipients); | 740 checkUnnamed1262(o.recipients); |
741 unittest.expect(o.selfLink, unittest.equals('foo')); | 741 unittest.expect(o.selfLink, unittest.equals('foo')); |
742 unittest.expect(o.sourceItemId, unittest.equals('foo')); | 742 unittest.expect(o.sourceItemId, unittest.equals('foo')); |
743 unittest.expect(o.speakableText, unittest.equals('foo')); | 743 unittest.expect(o.speakableText, unittest.equals('foo')); |
744 unittest.expect(o.speakableType, unittest.equals('foo')); | 744 unittest.expect(o.speakableType, unittest.equals('foo')); |
745 unittest.expect(o.text, unittest.equals('foo')); | 745 unittest.expect(o.text, unittest.equals('foo')); |
746 unittest.expect(o.title, unittest.equals('foo')); | 746 unittest.expect(o.title, unittest.equals('foo')); |
747 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 747 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
748 } | 748 } |
749 buildCounterTimelineItem--; | 749 buildCounterTimelineItem--; |
750 } | 750 } |
751 | 751 |
752 buildUnnamed1251() { | 752 buildUnnamed1263() { |
753 var o = new core.List<api.TimelineItem>(); | 753 var o = new core.List<api.TimelineItem>(); |
754 o.add(buildTimelineItem()); | 754 o.add(buildTimelineItem()); |
755 o.add(buildTimelineItem()); | 755 o.add(buildTimelineItem()); |
756 return o; | 756 return o; |
757 } | 757 } |
758 | 758 |
759 checkUnnamed1251(core.List<api.TimelineItem> o) { | 759 checkUnnamed1263(core.List<api.TimelineItem> o) { |
760 unittest.expect(o, unittest.hasLength(2)); | 760 unittest.expect(o, unittest.hasLength(2)); |
761 checkTimelineItem(o[0]); | 761 checkTimelineItem(o[0]); |
762 checkTimelineItem(o[1]); | 762 checkTimelineItem(o[1]); |
763 } | 763 } |
764 | 764 |
765 core.int buildCounterTimelineListResponse = 0; | 765 core.int buildCounterTimelineListResponse = 0; |
766 buildTimelineListResponse() { | 766 buildTimelineListResponse() { |
767 var o = new api.TimelineListResponse(); | 767 var o = new api.TimelineListResponse(); |
768 buildCounterTimelineListResponse++; | 768 buildCounterTimelineListResponse++; |
769 if (buildCounterTimelineListResponse < 3) { | 769 if (buildCounterTimelineListResponse < 3) { |
770 o.items = buildUnnamed1251(); | 770 o.items = buildUnnamed1263(); |
771 o.kind = "foo"; | 771 o.kind = "foo"; |
772 o.nextPageToken = "foo"; | 772 o.nextPageToken = "foo"; |
773 } | 773 } |
774 buildCounterTimelineListResponse--; | 774 buildCounterTimelineListResponse--; |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkTimelineListResponse(api.TimelineListResponse o) { | 778 checkTimelineListResponse(api.TimelineListResponse o) { |
779 buildCounterTimelineListResponse++; | 779 buildCounterTimelineListResponse++; |
780 if (buildCounterTimelineListResponse < 3) { | 780 if (buildCounterTimelineListResponse < 3) { |
781 checkUnnamed1251(o.items); | 781 checkUnnamed1263(o.items); |
782 unittest.expect(o.kind, unittest.equals('foo')); | 782 unittest.expect(o.kind, unittest.equals('foo')); |
783 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 783 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
784 } | 784 } |
785 buildCounterTimelineListResponse--; | 785 buildCounterTimelineListResponse--; |
786 } | 786 } |
787 | 787 |
788 core.int buildCounterUserAction = 0; | 788 core.int buildCounterUserAction = 0; |
789 buildUserAction() { | 789 buildUserAction() { |
790 var o = new api.UserAction(); | 790 var o = new api.UserAction(); |
791 buildCounterUserAction++; | 791 buildCounterUserAction++; |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon
se response) { | 2270 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon
se response) { |
2271 checkAttachmentsListResponse(response); | 2271 checkAttachmentsListResponse(response); |
2272 }))); | 2272 }))); |
2273 }); | 2273 }); |
2274 | 2274 |
2275 }); | 2275 }); |
2276 | 2276 |
2277 | 2277 |
2278 } | 2278 } |
2279 | 2279 |
OLD | NEW |