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; |
11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis/mirror/v1.dart' as api; | 15 import 'package:googleapis/mirror/v1.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed743() { | 19 buildUnnamed771() { |
20 var o = new core.List<api.AuthToken>(); | 20 var o = new core.List<api.AuthToken>(); |
21 o.add(buildAuthToken()); | 21 o.add(buildAuthToken()); |
22 o.add(buildAuthToken()); | 22 o.add(buildAuthToken()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed743(core.List<api.AuthToken> o) { | 26 checkUnnamed771(core.List<api.AuthToken> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkAuthToken(o[0]); | 28 checkAuthToken(o[0]); |
29 checkAuthToken(o[1]); | 29 checkAuthToken(o[1]); |
30 } | 30 } |
31 | 31 |
32 buildUnnamed744() { | 32 buildUnnamed772() { |
33 var o = new core.List<core.String>(); | 33 var o = new core.List<core.String>(); |
34 o.add("foo"); | 34 o.add("foo"); |
35 o.add("foo"); | 35 o.add("foo"); |
36 return o; | 36 return o; |
37 } | 37 } |
38 | 38 |
39 checkUnnamed744(core.List<core.String> o) { | 39 checkUnnamed772(core.List<core.String> o) { |
40 unittest.expect(o, unittest.hasLength(2)); | 40 unittest.expect(o, unittest.hasLength(2)); |
41 unittest.expect(o[0], unittest.equals('foo')); | 41 unittest.expect(o[0], unittest.equals('foo')); |
42 unittest.expect(o[1], unittest.equals('foo')); | 42 unittest.expect(o[1], unittest.equals('foo')); |
43 } | 43 } |
44 | 44 |
45 buildUnnamed745() { | 45 buildUnnamed773() { |
46 var o = new core.List<api.UserData>(); | 46 var o = new core.List<api.UserData>(); |
47 o.add(buildUserData()); | 47 o.add(buildUserData()); |
48 o.add(buildUserData()); | 48 o.add(buildUserData()); |
49 return o; | 49 return o; |
50 } | 50 } |
51 | 51 |
52 checkUnnamed745(core.List<api.UserData> o) { | 52 checkUnnamed773(core.List<api.UserData> o) { |
53 unittest.expect(o, unittest.hasLength(2)); | 53 unittest.expect(o, unittest.hasLength(2)); |
54 checkUserData(o[0]); | 54 checkUserData(o[0]); |
55 checkUserData(o[1]); | 55 checkUserData(o[1]); |
56 } | 56 } |
57 | 57 |
58 core.int buildCounterAccount = 0; | 58 core.int buildCounterAccount = 0; |
59 buildAccount() { | 59 buildAccount() { |
60 var o = new api.Account(); | 60 var o = new api.Account(); |
61 buildCounterAccount++; | 61 buildCounterAccount++; |
62 if (buildCounterAccount < 3) { | 62 if (buildCounterAccount < 3) { |
63 o.authTokens = buildUnnamed743(); | 63 o.authTokens = buildUnnamed771(); |
64 o.features = buildUnnamed744(); | 64 o.features = buildUnnamed772(); |
65 o.password = "foo"; | 65 o.password = "foo"; |
66 o.userData = buildUnnamed745(); | 66 o.userData = buildUnnamed773(); |
67 } | 67 } |
68 buildCounterAccount--; | 68 buildCounterAccount--; |
69 return o; | 69 return o; |
70 } | 70 } |
71 | 71 |
72 checkAccount(api.Account o) { | 72 checkAccount(api.Account o) { |
73 buildCounterAccount++; | 73 buildCounterAccount++; |
74 if (buildCounterAccount < 3) { | 74 if (buildCounterAccount < 3) { |
75 checkUnnamed743(o.authTokens); | 75 checkUnnamed771(o.authTokens); |
76 checkUnnamed744(o.features); | 76 checkUnnamed772(o.features); |
77 unittest.expect(o.password, unittest.equals('foo')); | 77 unittest.expect(o.password, unittest.equals('foo')); |
78 checkUnnamed745(o.userData); | 78 checkUnnamed773(o.userData); |
79 } | 79 } |
80 buildCounterAccount--; | 80 buildCounterAccount--; |
81 } | 81 } |
82 | 82 |
83 core.int buildCounterAttachment = 0; | 83 core.int buildCounterAttachment = 0; |
84 buildAttachment() { | 84 buildAttachment() { |
85 var o = new api.Attachment(); | 85 var o = new api.Attachment(); |
86 buildCounterAttachment++; | 86 buildCounterAttachment++; |
87 if (buildCounterAttachment < 3) { | 87 if (buildCounterAttachment < 3) { |
88 o.contentType = "foo"; | 88 o.contentType = "foo"; |
89 o.contentUrl = "foo"; | 89 o.contentUrl = "foo"; |
90 o.id = "foo"; | 90 o.id = "foo"; |
91 o.isProcessingContent = true; | 91 o.isProcessingContent = true; |
92 } | 92 } |
93 buildCounterAttachment--; | 93 buildCounterAttachment--; |
94 return o; | 94 return o; |
95 } | 95 } |
96 | 96 |
97 checkAttachment(api.Attachment o) { | 97 checkAttachment(api.Attachment o) { |
98 buildCounterAttachment++; | 98 buildCounterAttachment++; |
99 if (buildCounterAttachment < 3) { | 99 if (buildCounterAttachment < 3) { |
100 unittest.expect(o.contentType, unittest.equals('foo')); | 100 unittest.expect(o.contentType, unittest.equals('foo')); |
101 unittest.expect(o.contentUrl, unittest.equals('foo')); | 101 unittest.expect(o.contentUrl, unittest.equals('foo')); |
102 unittest.expect(o.id, unittest.equals('foo')); | 102 unittest.expect(o.id, unittest.equals('foo')); |
103 unittest.expect(o.isProcessingContent, unittest.isTrue); | 103 unittest.expect(o.isProcessingContent, unittest.isTrue); |
104 } | 104 } |
105 buildCounterAttachment--; | 105 buildCounterAttachment--; |
106 } | 106 } |
107 | 107 |
108 buildUnnamed746() { | 108 buildUnnamed774() { |
109 var o = new core.List<api.Attachment>(); | 109 var o = new core.List<api.Attachment>(); |
110 o.add(buildAttachment()); | 110 o.add(buildAttachment()); |
111 o.add(buildAttachment()); | 111 o.add(buildAttachment()); |
112 return o; | 112 return o; |
113 } | 113 } |
114 | 114 |
115 checkUnnamed746(core.List<api.Attachment> o) { | 115 checkUnnamed774(core.List<api.Attachment> o) { |
116 unittest.expect(o, unittest.hasLength(2)); | 116 unittest.expect(o, unittest.hasLength(2)); |
117 checkAttachment(o[0]); | 117 checkAttachment(o[0]); |
118 checkAttachment(o[1]); | 118 checkAttachment(o[1]); |
119 } | 119 } |
120 | 120 |
121 core.int buildCounterAttachmentsListResponse = 0; | 121 core.int buildCounterAttachmentsListResponse = 0; |
122 buildAttachmentsListResponse() { | 122 buildAttachmentsListResponse() { |
123 var o = new api.AttachmentsListResponse(); | 123 var o = new api.AttachmentsListResponse(); |
124 buildCounterAttachmentsListResponse++; | 124 buildCounterAttachmentsListResponse++; |
125 if (buildCounterAttachmentsListResponse < 3) { | 125 if (buildCounterAttachmentsListResponse < 3) { |
126 o.items = buildUnnamed746(); | 126 o.items = buildUnnamed774(); |
127 o.kind = "foo"; | 127 o.kind = "foo"; |
128 } | 128 } |
129 buildCounterAttachmentsListResponse--; | 129 buildCounterAttachmentsListResponse--; |
130 return o; | 130 return o; |
131 } | 131 } |
132 | 132 |
133 checkAttachmentsListResponse(api.AttachmentsListResponse o) { | 133 checkAttachmentsListResponse(api.AttachmentsListResponse o) { |
134 buildCounterAttachmentsListResponse++; | 134 buildCounterAttachmentsListResponse++; |
135 if (buildCounterAttachmentsListResponse < 3) { | 135 if (buildCounterAttachmentsListResponse < 3) { |
136 checkUnnamed746(o.items); | 136 checkUnnamed774(o.items); |
137 unittest.expect(o.kind, unittest.equals('foo')); | 137 unittest.expect(o.kind, unittest.equals('foo')); |
138 } | 138 } |
139 buildCounterAttachmentsListResponse--; | 139 buildCounterAttachmentsListResponse--; |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterAuthToken = 0; | 142 core.int buildCounterAuthToken = 0; |
143 buildAuthToken() { | 143 buildAuthToken() { |
144 var o = new api.AuthToken(); | 144 var o = new api.AuthToken(); |
145 buildCounterAuthToken++; | 145 buildCounterAuthToken++; |
146 if (buildCounterAuthToken < 3) { | 146 if (buildCounterAuthToken < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
172 } | 172 } |
173 | 173 |
174 checkCommand(api.Command o) { | 174 checkCommand(api.Command o) { |
175 buildCounterCommand++; | 175 buildCounterCommand++; |
176 if (buildCounterCommand < 3) { | 176 if (buildCounterCommand < 3) { |
177 unittest.expect(o.type, unittest.equals('foo')); | 177 unittest.expect(o.type, unittest.equals('foo')); |
178 } | 178 } |
179 buildCounterCommand--; | 179 buildCounterCommand--; |
180 } | 180 } |
181 | 181 |
182 buildUnnamed747() { | 182 buildUnnamed775() { |
183 var o = new core.List<api.Command>(); | 183 var o = new core.List<api.Command>(); |
184 o.add(buildCommand()); | 184 o.add(buildCommand()); |
185 o.add(buildCommand()); | 185 o.add(buildCommand()); |
186 return o; | 186 return o; |
187 } | 187 } |
188 | 188 |
189 checkUnnamed747(core.List<api.Command> o) { | 189 checkUnnamed775(core.List<api.Command> o) { |
190 unittest.expect(o, unittest.hasLength(2)); | 190 unittest.expect(o, unittest.hasLength(2)); |
191 checkCommand(o[0]); | 191 checkCommand(o[0]); |
192 checkCommand(o[1]); | 192 checkCommand(o[1]); |
193 } | 193 } |
194 | 194 |
195 buildUnnamed748() { | 195 buildUnnamed776() { |
196 var o = new core.List<core.String>(); | 196 var o = new core.List<core.String>(); |
197 o.add("foo"); | 197 o.add("foo"); |
198 o.add("foo"); | 198 o.add("foo"); |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkUnnamed748(core.List<core.String> o) { | 202 checkUnnamed776(core.List<core.String> o) { |
203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
204 unittest.expect(o[0], unittest.equals('foo')); | 204 unittest.expect(o[0], unittest.equals('foo')); |
205 unittest.expect(o[1], unittest.equals('foo')); | 205 unittest.expect(o[1], unittest.equals('foo')); |
206 } | 206 } |
207 | 207 |
208 buildUnnamed749() { | 208 buildUnnamed777() { |
209 var o = new core.List<core.String>(); | 209 var o = new core.List<core.String>(); |
210 o.add("foo"); | 210 o.add("foo"); |
211 o.add("foo"); | 211 o.add("foo"); |
212 return o; | 212 return o; |
213 } | 213 } |
214 | 214 |
215 checkUnnamed749(core.List<core.String> o) { | 215 checkUnnamed777(core.List<core.String> o) { |
216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
217 unittest.expect(o[0], unittest.equals('foo')); | 217 unittest.expect(o[0], unittest.equals('foo')); |
218 unittest.expect(o[1], unittest.equals('foo')); | 218 unittest.expect(o[1], unittest.equals('foo')); |
219 } | 219 } |
220 | 220 |
221 buildUnnamed750() { | 221 buildUnnamed778() { |
222 var o = new core.List<core.String>(); | 222 var o = new core.List<core.String>(); |
223 o.add("foo"); | 223 o.add("foo"); |
224 o.add("foo"); | 224 o.add("foo"); |
225 return o; | 225 return o; |
226 } | 226 } |
227 | 227 |
228 checkUnnamed750(core.List<core.String> o) { | 228 checkUnnamed778(core.List<core.String> o) { |
229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
230 unittest.expect(o[0], unittest.equals('foo')); | 230 unittest.expect(o[0], unittest.equals('foo')); |
231 unittest.expect(o[1], unittest.equals('foo')); | 231 unittest.expect(o[1], unittest.equals('foo')); |
232 } | 232 } |
233 | 233 |
234 core.int buildCounterContact = 0; | 234 core.int buildCounterContact = 0; |
235 buildContact() { | 235 buildContact() { |
236 var o = new api.Contact(); | 236 var o = new api.Contact(); |
237 buildCounterContact++; | 237 buildCounterContact++; |
238 if (buildCounterContact < 3) { | 238 if (buildCounterContact < 3) { |
239 o.acceptCommands = buildUnnamed747(); | 239 o.acceptCommands = buildUnnamed775(); |
240 o.acceptTypes = buildUnnamed748(); | 240 o.acceptTypes = buildUnnamed776(); |
241 o.displayName = "foo"; | 241 o.displayName = "foo"; |
242 o.id = "foo"; | 242 o.id = "foo"; |
243 o.imageUrls = buildUnnamed749(); | 243 o.imageUrls = buildUnnamed777(); |
244 o.kind = "foo"; | 244 o.kind = "foo"; |
245 o.phoneNumber = "foo"; | 245 o.phoneNumber = "foo"; |
246 o.priority = 42; | 246 o.priority = 42; |
247 o.sharingFeatures = buildUnnamed750(); | 247 o.sharingFeatures = buildUnnamed778(); |
248 o.source = "foo"; | 248 o.source = "foo"; |
249 o.speakableName = "foo"; | 249 o.speakableName = "foo"; |
250 o.type = "foo"; | 250 o.type = "foo"; |
251 } | 251 } |
252 buildCounterContact--; | 252 buildCounterContact--; |
253 return o; | 253 return o; |
254 } | 254 } |
255 | 255 |
256 checkContact(api.Contact o) { | 256 checkContact(api.Contact o) { |
257 buildCounterContact++; | 257 buildCounterContact++; |
258 if (buildCounterContact < 3) { | 258 if (buildCounterContact < 3) { |
259 checkUnnamed747(o.acceptCommands); | 259 checkUnnamed775(o.acceptCommands); |
260 checkUnnamed748(o.acceptTypes); | 260 checkUnnamed776(o.acceptTypes); |
261 unittest.expect(o.displayName, unittest.equals('foo')); | 261 unittest.expect(o.displayName, unittest.equals('foo')); |
262 unittest.expect(o.id, unittest.equals('foo')); | 262 unittest.expect(o.id, unittest.equals('foo')); |
263 checkUnnamed749(o.imageUrls); | 263 checkUnnamed777(o.imageUrls); |
264 unittest.expect(o.kind, unittest.equals('foo')); | 264 unittest.expect(o.kind, unittest.equals('foo')); |
265 unittest.expect(o.phoneNumber, unittest.equals('foo')); | 265 unittest.expect(o.phoneNumber, unittest.equals('foo')); |
266 unittest.expect(o.priority, unittest.equals(42)); | 266 unittest.expect(o.priority, unittest.equals(42)); |
267 checkUnnamed750(o.sharingFeatures); | 267 checkUnnamed778(o.sharingFeatures); |
268 unittest.expect(o.source, unittest.equals('foo')); | 268 unittest.expect(o.source, unittest.equals('foo')); |
269 unittest.expect(o.speakableName, unittest.equals('foo')); | 269 unittest.expect(o.speakableName, unittest.equals('foo')); |
270 unittest.expect(o.type, unittest.equals('foo')); | 270 unittest.expect(o.type, unittest.equals('foo')); |
271 } | 271 } |
272 buildCounterContact--; | 272 buildCounterContact--; |
273 } | 273 } |
274 | 274 |
275 buildUnnamed751() { | 275 buildUnnamed779() { |
276 var o = new core.List<api.Contact>(); | 276 var o = new core.List<api.Contact>(); |
277 o.add(buildContact()); | 277 o.add(buildContact()); |
278 o.add(buildContact()); | 278 o.add(buildContact()); |
279 return o; | 279 return o; |
280 } | 280 } |
281 | 281 |
282 checkUnnamed751(core.List<api.Contact> o) { | 282 checkUnnamed779(core.List<api.Contact> o) { |
283 unittest.expect(o, unittest.hasLength(2)); | 283 unittest.expect(o, unittest.hasLength(2)); |
284 checkContact(o[0]); | 284 checkContact(o[0]); |
285 checkContact(o[1]); | 285 checkContact(o[1]); |
286 } | 286 } |
287 | 287 |
288 core.int buildCounterContactsListResponse = 0; | 288 core.int buildCounterContactsListResponse = 0; |
289 buildContactsListResponse() { | 289 buildContactsListResponse() { |
290 var o = new api.ContactsListResponse(); | 290 var o = new api.ContactsListResponse(); |
291 buildCounterContactsListResponse++; | 291 buildCounterContactsListResponse++; |
292 if (buildCounterContactsListResponse < 3) { | 292 if (buildCounterContactsListResponse < 3) { |
293 o.items = buildUnnamed751(); | 293 o.items = buildUnnamed779(); |
294 o.kind = "foo"; | 294 o.kind = "foo"; |
295 } | 295 } |
296 buildCounterContactsListResponse--; | 296 buildCounterContactsListResponse--; |
297 return o; | 297 return o; |
298 } | 298 } |
299 | 299 |
300 checkContactsListResponse(api.ContactsListResponse o) { | 300 checkContactsListResponse(api.ContactsListResponse o) { |
301 buildCounterContactsListResponse++; | 301 buildCounterContactsListResponse++; |
302 if (buildCounterContactsListResponse < 3) { | 302 if (buildCounterContactsListResponse < 3) { |
303 checkUnnamed751(o.items); | 303 checkUnnamed779(o.items); |
304 unittest.expect(o.kind, unittest.equals('foo')); | 304 unittest.expect(o.kind, unittest.equals('foo')); |
305 } | 305 } |
306 buildCounterContactsListResponse--; | 306 buildCounterContactsListResponse--; |
307 } | 307 } |
308 | 308 |
309 core.int buildCounterLocation = 0; | 309 core.int buildCounterLocation = 0; |
310 buildLocation() { | 310 buildLocation() { |
311 var o = new api.Location(); | 311 var o = new api.Location(); |
312 buildCounterLocation++; | 312 buildCounterLocation++; |
313 if (buildCounterLocation < 3) { | 313 if (buildCounterLocation < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
332 unittest.expect(o.displayName, unittest.equals('foo')); | 332 unittest.expect(o.displayName, unittest.equals('foo')); |
333 unittest.expect(o.id, unittest.equals('foo')); | 333 unittest.expect(o.id, unittest.equals('foo')); |
334 unittest.expect(o.kind, unittest.equals('foo')); | 334 unittest.expect(o.kind, unittest.equals('foo')); |
335 unittest.expect(o.latitude, unittest.equals(42.0)); | 335 unittest.expect(o.latitude, unittest.equals(42.0)); |
336 unittest.expect(o.longitude, unittest.equals(42.0)); | 336 unittest.expect(o.longitude, unittest.equals(42.0)); |
337 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 337 unittest.expect(o.timestamp, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
338 } | 338 } |
339 buildCounterLocation--; | 339 buildCounterLocation--; |
340 } | 340 } |
341 | 341 |
342 buildUnnamed752() { | 342 buildUnnamed780() { |
343 var o = new core.List<api.Location>(); | 343 var o = new core.List<api.Location>(); |
344 o.add(buildLocation()); | 344 o.add(buildLocation()); |
345 o.add(buildLocation()); | 345 o.add(buildLocation()); |
346 return o; | 346 return o; |
347 } | 347 } |
348 | 348 |
349 checkUnnamed752(core.List<api.Location> o) { | 349 checkUnnamed780(core.List<api.Location> o) { |
350 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
351 checkLocation(o[0]); | 351 checkLocation(o[0]); |
352 checkLocation(o[1]); | 352 checkLocation(o[1]); |
353 } | 353 } |
354 | 354 |
355 core.int buildCounterLocationsListResponse = 0; | 355 core.int buildCounterLocationsListResponse = 0; |
356 buildLocationsListResponse() { | 356 buildLocationsListResponse() { |
357 var o = new api.LocationsListResponse(); | 357 var o = new api.LocationsListResponse(); |
358 buildCounterLocationsListResponse++; | 358 buildCounterLocationsListResponse++; |
359 if (buildCounterLocationsListResponse < 3) { | 359 if (buildCounterLocationsListResponse < 3) { |
360 o.items = buildUnnamed752(); | 360 o.items = buildUnnamed780(); |
361 o.kind = "foo"; | 361 o.kind = "foo"; |
362 } | 362 } |
363 buildCounterLocationsListResponse--; | 363 buildCounterLocationsListResponse--; |
364 return o; | 364 return o; |
365 } | 365 } |
366 | 366 |
367 checkLocationsListResponse(api.LocationsListResponse o) { | 367 checkLocationsListResponse(api.LocationsListResponse o) { |
368 buildCounterLocationsListResponse++; | 368 buildCounterLocationsListResponse++; |
369 if (buildCounterLocationsListResponse < 3) { | 369 if (buildCounterLocationsListResponse < 3) { |
370 checkUnnamed752(o.items); | 370 checkUnnamed780(o.items); |
371 unittest.expect(o.kind, unittest.equals('foo')); | 371 unittest.expect(o.kind, unittest.equals('foo')); |
372 } | 372 } |
373 buildCounterLocationsListResponse--; | 373 buildCounterLocationsListResponse--; |
374 } | 374 } |
375 | 375 |
376 buildUnnamed753() { | 376 buildUnnamed781() { |
377 var o = new core.List<api.MenuValue>(); | 377 var o = new core.List<api.MenuValue>(); |
378 o.add(buildMenuValue()); | 378 o.add(buildMenuValue()); |
379 o.add(buildMenuValue()); | 379 o.add(buildMenuValue()); |
380 return o; | 380 return o; |
381 } | 381 } |
382 | 382 |
383 checkUnnamed753(core.List<api.MenuValue> o) { | 383 checkUnnamed781(core.List<api.MenuValue> o) { |
384 unittest.expect(o, unittest.hasLength(2)); | 384 unittest.expect(o, unittest.hasLength(2)); |
385 checkMenuValue(o[0]); | 385 checkMenuValue(o[0]); |
386 checkMenuValue(o[1]); | 386 checkMenuValue(o[1]); |
387 } | 387 } |
388 | 388 |
389 core.int buildCounterMenuItem = 0; | 389 core.int buildCounterMenuItem = 0; |
390 buildMenuItem() { | 390 buildMenuItem() { |
391 var o = new api.MenuItem(); | 391 var o = new api.MenuItem(); |
392 buildCounterMenuItem++; | 392 buildCounterMenuItem++; |
393 if (buildCounterMenuItem < 3) { | 393 if (buildCounterMenuItem < 3) { |
394 o.action = "foo"; | 394 o.action = "foo"; |
| 395 o.contextualCommand = "foo"; |
395 o.id = "foo"; | 396 o.id = "foo"; |
396 o.payload = "foo"; | 397 o.payload = "foo"; |
397 o.removeWhenSelected = true; | 398 o.removeWhenSelected = true; |
398 o.values = buildUnnamed753(); | 399 o.values = buildUnnamed781(); |
399 } | 400 } |
400 buildCounterMenuItem--; | 401 buildCounterMenuItem--; |
401 return o; | 402 return o; |
402 } | 403 } |
403 | 404 |
404 checkMenuItem(api.MenuItem o) { | 405 checkMenuItem(api.MenuItem o) { |
405 buildCounterMenuItem++; | 406 buildCounterMenuItem++; |
406 if (buildCounterMenuItem < 3) { | 407 if (buildCounterMenuItem < 3) { |
407 unittest.expect(o.action, unittest.equals('foo')); | 408 unittest.expect(o.action, unittest.equals('foo')); |
| 409 unittest.expect(o.contextualCommand, unittest.equals('foo')); |
408 unittest.expect(o.id, unittest.equals('foo')); | 410 unittest.expect(o.id, unittest.equals('foo')); |
409 unittest.expect(o.payload, unittest.equals('foo')); | 411 unittest.expect(o.payload, unittest.equals('foo')); |
410 unittest.expect(o.removeWhenSelected, unittest.isTrue); | 412 unittest.expect(o.removeWhenSelected, unittest.isTrue); |
411 checkUnnamed753(o.values); | 413 checkUnnamed781(o.values); |
412 } | 414 } |
413 buildCounterMenuItem--; | 415 buildCounterMenuItem--; |
414 } | 416 } |
415 | 417 |
416 core.int buildCounterMenuValue = 0; | 418 core.int buildCounterMenuValue = 0; |
417 buildMenuValue() { | 419 buildMenuValue() { |
418 var o = new api.MenuValue(); | 420 var o = new api.MenuValue(); |
419 buildCounterMenuValue++; | 421 buildCounterMenuValue++; |
420 if (buildCounterMenuValue < 3) { | 422 if (buildCounterMenuValue < 3) { |
421 o.displayName = "foo"; | 423 o.displayName = "foo"; |
422 o.iconUrl = "foo"; | 424 o.iconUrl = "foo"; |
423 o.state = "foo"; | 425 o.state = "foo"; |
424 } | 426 } |
425 buildCounterMenuValue--; | 427 buildCounterMenuValue--; |
426 return o; | 428 return o; |
427 } | 429 } |
428 | 430 |
429 checkMenuValue(api.MenuValue o) { | 431 checkMenuValue(api.MenuValue o) { |
430 buildCounterMenuValue++; | 432 buildCounterMenuValue++; |
431 if (buildCounterMenuValue < 3) { | 433 if (buildCounterMenuValue < 3) { |
432 unittest.expect(o.displayName, unittest.equals('foo')); | 434 unittest.expect(o.displayName, unittest.equals('foo')); |
433 unittest.expect(o.iconUrl, unittest.equals('foo')); | 435 unittest.expect(o.iconUrl, unittest.equals('foo')); |
434 unittest.expect(o.state, unittest.equals('foo')); | 436 unittest.expect(o.state, unittest.equals('foo')); |
435 } | 437 } |
436 buildCounterMenuValue--; | 438 buildCounterMenuValue--; |
437 } | 439 } |
438 | 440 |
439 buildUnnamed754() { | 441 buildUnnamed782() { |
440 var o = new core.List<api.UserAction>(); | 442 var o = new core.List<api.UserAction>(); |
441 o.add(buildUserAction()); | 443 o.add(buildUserAction()); |
442 o.add(buildUserAction()); | 444 o.add(buildUserAction()); |
443 return o; | 445 return o; |
444 } | 446 } |
445 | 447 |
446 checkUnnamed754(core.List<api.UserAction> o) { | 448 checkUnnamed782(core.List<api.UserAction> o) { |
447 unittest.expect(o, unittest.hasLength(2)); | 449 unittest.expect(o, unittest.hasLength(2)); |
448 checkUserAction(o[0]); | 450 checkUserAction(o[0]); |
449 checkUserAction(o[1]); | 451 checkUserAction(o[1]); |
450 } | 452 } |
451 | 453 |
452 core.int buildCounterNotification = 0; | 454 core.int buildCounterNotification = 0; |
453 buildNotification() { | 455 buildNotification() { |
454 var o = new api.Notification(); | 456 var o = new api.Notification(); |
455 buildCounterNotification++; | 457 buildCounterNotification++; |
456 if (buildCounterNotification < 3) { | 458 if (buildCounterNotification < 3) { |
457 o.collection = "foo"; | 459 o.collection = "foo"; |
458 o.itemId = "foo"; | 460 o.itemId = "foo"; |
459 o.operation = "foo"; | 461 o.operation = "foo"; |
460 o.userActions = buildUnnamed754(); | 462 o.userActions = buildUnnamed782(); |
461 o.userToken = "foo"; | 463 o.userToken = "foo"; |
462 o.verifyToken = "foo"; | 464 o.verifyToken = "foo"; |
463 } | 465 } |
464 buildCounterNotification--; | 466 buildCounterNotification--; |
465 return o; | 467 return o; |
466 } | 468 } |
467 | 469 |
468 checkNotification(api.Notification o) { | 470 checkNotification(api.Notification o) { |
469 buildCounterNotification++; | 471 buildCounterNotification++; |
470 if (buildCounterNotification < 3) { | 472 if (buildCounterNotification < 3) { |
471 unittest.expect(o.collection, unittest.equals('foo')); | 473 unittest.expect(o.collection, unittest.equals('foo')); |
472 unittest.expect(o.itemId, unittest.equals('foo')); | 474 unittest.expect(o.itemId, unittest.equals('foo')); |
473 unittest.expect(o.operation, unittest.equals('foo')); | 475 unittest.expect(o.operation, unittest.equals('foo')); |
474 checkUnnamed754(o.userActions); | 476 checkUnnamed782(o.userActions); |
475 unittest.expect(o.userToken, unittest.equals('foo')); | 477 unittest.expect(o.userToken, unittest.equals('foo')); |
476 unittest.expect(o.verifyToken, unittest.equals('foo')); | 478 unittest.expect(o.verifyToken, unittest.equals('foo')); |
477 } | 479 } |
478 buildCounterNotification--; | 480 buildCounterNotification--; |
479 } | 481 } |
480 | 482 |
481 core.int buildCounterNotificationConfig = 0; | 483 core.int buildCounterNotificationConfig = 0; |
482 buildNotificationConfig() { | 484 buildNotificationConfig() { |
483 var o = new api.NotificationConfig(); | 485 var o = new api.NotificationConfig(); |
484 buildCounterNotificationConfig++; | 486 buildCounterNotificationConfig++; |
(...skipping 30 matching lines...) Expand all Loading... |
515 checkSetting(api.Setting o) { | 517 checkSetting(api.Setting o) { |
516 buildCounterSetting++; | 518 buildCounterSetting++; |
517 if (buildCounterSetting < 3) { | 519 if (buildCounterSetting < 3) { |
518 unittest.expect(o.id, unittest.equals('foo')); | 520 unittest.expect(o.id, unittest.equals('foo')); |
519 unittest.expect(o.kind, unittest.equals('foo')); | 521 unittest.expect(o.kind, unittest.equals('foo')); |
520 unittest.expect(o.value, unittest.equals('foo')); | 522 unittest.expect(o.value, unittest.equals('foo')); |
521 } | 523 } |
522 buildCounterSetting--; | 524 buildCounterSetting--; |
523 } | 525 } |
524 | 526 |
525 buildUnnamed755() { | 527 buildUnnamed783() { |
526 var o = new core.List<core.String>(); | 528 var o = new core.List<core.String>(); |
527 o.add("foo"); | 529 o.add("foo"); |
528 o.add("foo"); | 530 o.add("foo"); |
529 return o; | 531 return o; |
530 } | 532 } |
531 | 533 |
532 checkUnnamed755(core.List<core.String> o) { | 534 checkUnnamed783(core.List<core.String> o) { |
533 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
534 unittest.expect(o[0], unittest.equals('foo')); | 536 unittest.expect(o[0], unittest.equals('foo')); |
535 unittest.expect(o[1], unittest.equals('foo')); | 537 unittest.expect(o[1], unittest.equals('foo')); |
536 } | 538 } |
537 | 539 |
538 core.int buildCounterSubscription = 0; | 540 core.int buildCounterSubscription = 0; |
539 buildSubscription() { | 541 buildSubscription() { |
540 var o = new api.Subscription(); | 542 var o = new api.Subscription(); |
541 buildCounterSubscription++; | 543 buildCounterSubscription++; |
542 if (buildCounterSubscription < 3) { | 544 if (buildCounterSubscription < 3) { |
543 o.callbackUrl = "foo"; | 545 o.callbackUrl = "foo"; |
544 o.collection = "foo"; | 546 o.collection = "foo"; |
545 o.id = "foo"; | 547 o.id = "foo"; |
546 o.kind = "foo"; | 548 o.kind = "foo"; |
547 o.notification = buildNotification(); | 549 o.notification = buildNotification(); |
548 o.operation = buildUnnamed755(); | 550 o.operation = buildUnnamed783(); |
549 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 551 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
550 o.userToken = "foo"; | 552 o.userToken = "foo"; |
551 o.verifyToken = "foo"; | 553 o.verifyToken = "foo"; |
552 } | 554 } |
553 buildCounterSubscription--; | 555 buildCounterSubscription--; |
554 return o; | 556 return o; |
555 } | 557 } |
556 | 558 |
557 checkSubscription(api.Subscription o) { | 559 checkSubscription(api.Subscription o) { |
558 buildCounterSubscription++; | 560 buildCounterSubscription++; |
559 if (buildCounterSubscription < 3) { | 561 if (buildCounterSubscription < 3) { |
560 unittest.expect(o.callbackUrl, unittest.equals('foo')); | 562 unittest.expect(o.callbackUrl, unittest.equals('foo')); |
561 unittest.expect(o.collection, unittest.equals('foo')); | 563 unittest.expect(o.collection, unittest.equals('foo')); |
562 unittest.expect(o.id, unittest.equals('foo')); | 564 unittest.expect(o.id, unittest.equals('foo')); |
563 unittest.expect(o.kind, unittest.equals('foo')); | 565 unittest.expect(o.kind, unittest.equals('foo')); |
564 checkNotification(o.notification); | 566 checkNotification(o.notification); |
565 checkUnnamed755(o.operation); | 567 checkUnnamed783(o.operation); |
566 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 568 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
567 unittest.expect(o.userToken, unittest.equals('foo')); | 569 unittest.expect(o.userToken, unittest.equals('foo')); |
568 unittest.expect(o.verifyToken, unittest.equals('foo')); | 570 unittest.expect(o.verifyToken, unittest.equals('foo')); |
569 } | 571 } |
570 buildCounterSubscription--; | 572 buildCounterSubscription--; |
571 } | 573 } |
572 | 574 |
573 buildUnnamed756() { | 575 buildUnnamed784() { |
574 var o = new core.List<api.Subscription>(); | 576 var o = new core.List<api.Subscription>(); |
575 o.add(buildSubscription()); | 577 o.add(buildSubscription()); |
576 o.add(buildSubscription()); | 578 o.add(buildSubscription()); |
577 return o; | 579 return o; |
578 } | 580 } |
579 | 581 |
580 checkUnnamed756(core.List<api.Subscription> o) { | 582 checkUnnamed784(core.List<api.Subscription> o) { |
581 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
582 checkSubscription(o[0]); | 584 checkSubscription(o[0]); |
583 checkSubscription(o[1]); | 585 checkSubscription(o[1]); |
584 } | 586 } |
585 | 587 |
586 core.int buildCounterSubscriptionsListResponse = 0; | 588 core.int buildCounterSubscriptionsListResponse = 0; |
587 buildSubscriptionsListResponse() { | 589 buildSubscriptionsListResponse() { |
588 var o = new api.SubscriptionsListResponse(); | 590 var o = new api.SubscriptionsListResponse(); |
589 buildCounterSubscriptionsListResponse++; | 591 buildCounterSubscriptionsListResponse++; |
590 if (buildCounterSubscriptionsListResponse < 3) { | 592 if (buildCounterSubscriptionsListResponse < 3) { |
591 o.items = buildUnnamed756(); | 593 o.items = buildUnnamed784(); |
592 o.kind = "foo"; | 594 o.kind = "foo"; |
593 } | 595 } |
594 buildCounterSubscriptionsListResponse--; | 596 buildCounterSubscriptionsListResponse--; |
595 return o; | 597 return o; |
596 } | 598 } |
597 | 599 |
598 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { | 600 checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { |
599 buildCounterSubscriptionsListResponse++; | 601 buildCounterSubscriptionsListResponse++; |
600 if (buildCounterSubscriptionsListResponse < 3) { | 602 if (buildCounterSubscriptionsListResponse < 3) { |
601 checkUnnamed756(o.items); | 603 checkUnnamed784(o.items); |
602 unittest.expect(o.kind, unittest.equals('foo')); | 604 unittest.expect(o.kind, unittest.equals('foo')); |
603 } | 605 } |
604 buildCounterSubscriptionsListResponse--; | 606 buildCounterSubscriptionsListResponse--; |
605 } | 607 } |
606 | 608 |
607 buildUnnamed757() { | 609 buildUnnamed785() { |
608 var o = new core.List<api.Attachment>(); | 610 var o = new core.List<api.Attachment>(); |
609 o.add(buildAttachment()); | 611 o.add(buildAttachment()); |
610 o.add(buildAttachment()); | 612 o.add(buildAttachment()); |
611 return o; | 613 return o; |
612 } | 614 } |
613 | 615 |
614 checkUnnamed757(core.List<api.Attachment> o) { | 616 checkUnnamed785(core.List<api.Attachment> o) { |
615 unittest.expect(o, unittest.hasLength(2)); | 617 unittest.expect(o, unittest.hasLength(2)); |
616 checkAttachment(o[0]); | 618 checkAttachment(o[0]); |
617 checkAttachment(o[1]); | 619 checkAttachment(o[1]); |
618 } | 620 } |
619 | 621 |
620 buildUnnamed758() { | 622 buildUnnamed786() { |
621 var o = new core.List<api.MenuItem>(); | 623 var o = new core.List<api.MenuItem>(); |
622 o.add(buildMenuItem()); | 624 o.add(buildMenuItem()); |
623 o.add(buildMenuItem()); | 625 o.add(buildMenuItem()); |
624 return o; | 626 return o; |
625 } | 627 } |
626 | 628 |
627 checkUnnamed758(core.List<api.MenuItem> o) { | 629 checkUnnamed786(core.List<api.MenuItem> o) { |
628 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
629 checkMenuItem(o[0]); | 631 checkMenuItem(o[0]); |
630 checkMenuItem(o[1]); | 632 checkMenuItem(o[1]); |
631 } | 633 } |
632 | 634 |
633 buildUnnamed759() { | 635 buildUnnamed787() { |
634 var o = new core.List<api.Contact>(); | 636 var o = new core.List<api.Contact>(); |
635 o.add(buildContact()); | 637 o.add(buildContact()); |
636 o.add(buildContact()); | 638 o.add(buildContact()); |
637 return o; | 639 return o; |
638 } | 640 } |
639 | 641 |
640 checkUnnamed759(core.List<api.Contact> o) { | 642 checkUnnamed787(core.List<api.Contact> o) { |
641 unittest.expect(o, unittest.hasLength(2)); | 643 unittest.expect(o, unittest.hasLength(2)); |
642 checkContact(o[0]); | 644 checkContact(o[0]); |
643 checkContact(o[1]); | 645 checkContact(o[1]); |
644 } | 646 } |
645 | 647 |
646 core.int buildCounterTimelineItem = 0; | 648 core.int buildCounterTimelineItem = 0; |
647 buildTimelineItem() { | 649 buildTimelineItem() { |
648 var o = new api.TimelineItem(); | 650 var o = new api.TimelineItem(); |
649 buildCounterTimelineItem++; | 651 buildCounterTimelineItem++; |
650 if (buildCounterTimelineItem < 3) { | 652 if (buildCounterTimelineItem < 3) { |
651 o.attachments = buildUnnamed757(); | 653 o.attachments = buildUnnamed785(); |
652 o.bundleId = "foo"; | 654 o.bundleId = "foo"; |
653 o.canonicalUrl = "foo"; | 655 o.canonicalUrl = "foo"; |
654 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 656 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
655 o.creator = buildContact(); | 657 o.creator = buildContact(); |
656 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02"); | 658 o.displayTime = core.DateTime.parse("2002-02-27T14:01:02"); |
657 o.etag = "foo"; | 659 o.etag = "foo"; |
658 o.html = "foo"; | 660 o.html = "foo"; |
659 o.id = "foo"; | 661 o.id = "foo"; |
660 o.inReplyTo = "foo"; | 662 o.inReplyTo = "foo"; |
661 o.isBundleCover = true; | 663 o.isBundleCover = true; |
662 o.isDeleted = true; | 664 o.isDeleted = true; |
663 o.isPinned = true; | 665 o.isPinned = true; |
664 o.kind = "foo"; | 666 o.kind = "foo"; |
665 o.location = buildLocation(); | 667 o.location = buildLocation(); |
666 o.menuItems = buildUnnamed758(); | 668 o.menuItems = buildUnnamed786(); |
667 o.notification = buildNotificationConfig(); | 669 o.notification = buildNotificationConfig(); |
668 o.pinScore = 42; | 670 o.pinScore = 42; |
669 o.recipients = buildUnnamed759(); | 671 o.recipients = buildUnnamed787(); |
670 o.selfLink = "foo"; | 672 o.selfLink = "foo"; |
671 o.sourceItemId = "foo"; | 673 o.sourceItemId = "foo"; |
672 o.speakableText = "foo"; | 674 o.speakableText = "foo"; |
673 o.speakableType = "foo"; | 675 o.speakableType = "foo"; |
674 o.text = "foo"; | 676 o.text = "foo"; |
675 o.title = "foo"; | 677 o.title = "foo"; |
676 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 678 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
677 } | 679 } |
678 buildCounterTimelineItem--; | 680 buildCounterTimelineItem--; |
679 return o; | 681 return o; |
680 } | 682 } |
681 | 683 |
682 checkTimelineItem(api.TimelineItem o) { | 684 checkTimelineItem(api.TimelineItem o) { |
683 buildCounterTimelineItem++; | 685 buildCounterTimelineItem++; |
684 if (buildCounterTimelineItem < 3) { | 686 if (buildCounterTimelineItem < 3) { |
685 checkUnnamed757(o.attachments); | 687 checkUnnamed785(o.attachments); |
686 unittest.expect(o.bundleId, unittest.equals('foo')); | 688 unittest.expect(o.bundleId, unittest.equals('foo')); |
687 unittest.expect(o.canonicalUrl, unittest.equals('foo')); | 689 unittest.expect(o.canonicalUrl, unittest.equals('foo')); |
688 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 690 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
689 checkContact(o.creator); | 691 checkContact(o.creator); |
690 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 692 unittest.expect(o.displayTime, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
691 unittest.expect(o.etag, unittest.equals('foo')); | 693 unittest.expect(o.etag, unittest.equals('foo')); |
692 unittest.expect(o.html, unittest.equals('foo')); | 694 unittest.expect(o.html, unittest.equals('foo')); |
693 unittest.expect(o.id, unittest.equals('foo')); | 695 unittest.expect(o.id, unittest.equals('foo')); |
694 unittest.expect(o.inReplyTo, unittest.equals('foo')); | 696 unittest.expect(o.inReplyTo, unittest.equals('foo')); |
695 unittest.expect(o.isBundleCover, unittest.isTrue); | 697 unittest.expect(o.isBundleCover, unittest.isTrue); |
696 unittest.expect(o.isDeleted, unittest.isTrue); | 698 unittest.expect(o.isDeleted, unittest.isTrue); |
697 unittest.expect(o.isPinned, unittest.isTrue); | 699 unittest.expect(o.isPinned, unittest.isTrue); |
698 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
699 checkLocation(o.location); | 701 checkLocation(o.location); |
700 checkUnnamed758(o.menuItems); | 702 checkUnnamed786(o.menuItems); |
701 checkNotificationConfig(o.notification); | 703 checkNotificationConfig(o.notification); |
702 unittest.expect(o.pinScore, unittest.equals(42)); | 704 unittest.expect(o.pinScore, unittest.equals(42)); |
703 checkUnnamed759(o.recipients); | 705 checkUnnamed787(o.recipients); |
704 unittest.expect(o.selfLink, unittest.equals('foo')); | 706 unittest.expect(o.selfLink, unittest.equals('foo')); |
705 unittest.expect(o.sourceItemId, unittest.equals('foo')); | 707 unittest.expect(o.sourceItemId, unittest.equals('foo')); |
706 unittest.expect(o.speakableText, unittest.equals('foo')); | 708 unittest.expect(o.speakableText, unittest.equals('foo')); |
707 unittest.expect(o.speakableType, unittest.equals('foo')); | 709 unittest.expect(o.speakableType, unittest.equals('foo')); |
708 unittest.expect(o.text, unittest.equals('foo')); | 710 unittest.expect(o.text, unittest.equals('foo')); |
709 unittest.expect(o.title, unittest.equals('foo')); | 711 unittest.expect(o.title, unittest.equals('foo')); |
710 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 712 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
711 } | 713 } |
712 buildCounterTimelineItem--; | 714 buildCounterTimelineItem--; |
713 } | 715 } |
714 | 716 |
715 buildUnnamed760() { | 717 buildUnnamed788() { |
716 var o = new core.List<api.TimelineItem>(); | 718 var o = new core.List<api.TimelineItem>(); |
717 o.add(buildTimelineItem()); | 719 o.add(buildTimelineItem()); |
718 o.add(buildTimelineItem()); | 720 o.add(buildTimelineItem()); |
719 return o; | 721 return o; |
720 } | 722 } |
721 | 723 |
722 checkUnnamed760(core.List<api.TimelineItem> o) { | 724 checkUnnamed788(core.List<api.TimelineItem> o) { |
723 unittest.expect(o, unittest.hasLength(2)); | 725 unittest.expect(o, unittest.hasLength(2)); |
724 checkTimelineItem(o[0]); | 726 checkTimelineItem(o[0]); |
725 checkTimelineItem(o[1]); | 727 checkTimelineItem(o[1]); |
726 } | 728 } |
727 | 729 |
728 core.int buildCounterTimelineListResponse = 0; | 730 core.int buildCounterTimelineListResponse = 0; |
729 buildTimelineListResponse() { | 731 buildTimelineListResponse() { |
730 var o = new api.TimelineListResponse(); | 732 var o = new api.TimelineListResponse(); |
731 buildCounterTimelineListResponse++; | 733 buildCounterTimelineListResponse++; |
732 if (buildCounterTimelineListResponse < 3) { | 734 if (buildCounterTimelineListResponse < 3) { |
733 o.items = buildUnnamed760(); | 735 o.items = buildUnnamed788(); |
734 o.kind = "foo"; | 736 o.kind = "foo"; |
735 o.nextPageToken = "foo"; | 737 o.nextPageToken = "foo"; |
736 } | 738 } |
737 buildCounterTimelineListResponse--; | 739 buildCounterTimelineListResponse--; |
738 return o; | 740 return o; |
739 } | 741 } |
740 | 742 |
741 checkTimelineListResponse(api.TimelineListResponse o) { | 743 checkTimelineListResponse(api.TimelineListResponse o) { |
742 buildCounterTimelineListResponse++; | 744 buildCounterTimelineListResponse++; |
743 if (buildCounterTimelineListResponse < 3) { | 745 if (buildCounterTimelineListResponse < 3) { |
744 checkUnnamed760(o.items); | 746 checkUnnamed788(o.items); |
745 unittest.expect(o.kind, unittest.equals('foo')); | 747 unittest.expect(o.kind, unittest.equals('foo')); |
746 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 748 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
747 } | 749 } |
748 buildCounterTimelineListResponse--; | 750 buildCounterTimelineListResponse--; |
749 } | 751 } |
750 | 752 |
751 core.int buildCounterUserAction = 0; | 753 core.int buildCounterUserAction = 0; |
752 buildUserAction() { | 754 buildUserAction() { |
753 var o = new api.UserAction(); | 755 var o = new api.UserAction(); |
754 buildCounterUserAction++; | 756 buildCounterUserAction++; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 var arg_accountType = "foo"; | 984 var arg_accountType = "foo"; |
983 var arg_accountName = "foo"; | 985 var arg_accountName = "foo"; |
984 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 986 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
985 var obj = new api.Account.fromJson(json); | 987 var obj = new api.Account.fromJson(json); |
986 checkAccount(obj); | 988 checkAccount(obj); |
987 | 989 |
988 var path = (req.url).path; | 990 var path = (req.url).path; |
989 var pathOffset = 0; | 991 var pathOffset = 0; |
990 var index; | 992 var index; |
991 var subPart; | 993 var subPart; |
992 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 994 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
993 pathOffset += 11; | 995 pathOffset += 1; |
| 996 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 997 pathOffset += 10; |
994 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); | 998 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("accounts/")); |
995 pathOffset += 9; | 999 pathOffset += 9; |
996 index = path.indexOf("/", pathOffset); | 1000 index = path.indexOf("/", pathOffset); |
997 unittest.expect(index >= 0, unittest.isTrue); | 1001 unittest.expect(index >= 0, unittest.isTrue); |
998 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1002 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
999 pathOffset = index; | 1003 pathOffset = index; |
1000 unittest.expect(subPart, unittest.equals("$arg_userToken")); | 1004 unittest.expect(subPart, unittest.equals("$arg_userToken")); |
1001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1002 pathOffset += 1; | 1006 pathOffset += 1; |
1003 index = path.indexOf("/", pathOffset); | 1007 index = path.indexOf("/", pathOffset); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 unittest.test("method--delete", () { | 1051 unittest.test("method--delete", () { |
1048 | 1052 |
1049 var mock = new common_test.HttpServerMock(); | 1053 var mock = new common_test.HttpServerMock(); |
1050 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; | 1054 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; |
1051 var arg_id = "foo"; | 1055 var arg_id = "foo"; |
1052 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1056 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1053 var path = (req.url).path; | 1057 var path = (req.url).path; |
1054 var pathOffset = 0; | 1058 var pathOffset = 0; |
1055 var index; | 1059 var index; |
1056 var subPart; | 1060 var subPart; |
1057 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1058 pathOffset += 11; | 1062 pathOffset += 1; |
| 1063 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1064 pathOffset += 10; |
1059 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); | 1065 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); |
1060 pathOffset += 9; | 1066 pathOffset += 9; |
1061 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1062 pathOffset = path.length; | 1068 pathOffset = path.length; |
1063 unittest.expect(subPart, unittest.equals("$arg_id")); | 1069 unittest.expect(subPart, unittest.equals("$arg_id")); |
1064 | 1070 |
1065 var query = (req.url).query; | 1071 var query = (req.url).query; |
1066 var queryOffset = 0; | 1072 var queryOffset = 0; |
1067 var queryMap = {}; | 1073 var queryMap = {}; |
1068 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1074 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 23 matching lines...) Expand all Loading... |
1092 unittest.test("method--get", () { | 1098 unittest.test("method--get", () { |
1093 | 1099 |
1094 var mock = new common_test.HttpServerMock(); | 1100 var mock = new common_test.HttpServerMock(); |
1095 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; | 1101 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; |
1096 var arg_id = "foo"; | 1102 var arg_id = "foo"; |
1097 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1098 var path = (req.url).path; | 1104 var path = (req.url).path; |
1099 var pathOffset = 0; | 1105 var pathOffset = 0; |
1100 var index; | 1106 var index; |
1101 var subPart; | 1107 var subPart; |
1102 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1108 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1103 pathOffset += 11; | 1109 pathOffset += 1; |
| 1110 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1111 pathOffset += 10; |
1104 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); | 1112 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); |
1105 pathOffset += 9; | 1113 pathOffset += 9; |
1106 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1114 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1107 pathOffset = path.length; | 1115 pathOffset = path.length; |
1108 unittest.expect(subPart, unittest.equals("$arg_id")); | 1116 unittest.expect(subPart, unittest.equals("$arg_id")); |
1109 | 1117 |
1110 var query = (req.url).query; | 1118 var query = (req.url).query; |
1111 var queryOffset = 0; | 1119 var queryOffset = 0; |
1112 var queryMap = {}; | 1120 var queryMap = {}; |
1113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1121 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 28 matching lines...) Expand all Loading... |
1142 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; | 1150 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; |
1143 var arg_request = buildContact(); | 1151 var arg_request = buildContact(); |
1144 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1152 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1145 var obj = new api.Contact.fromJson(json); | 1153 var obj = new api.Contact.fromJson(json); |
1146 checkContact(obj); | 1154 checkContact(obj); |
1147 | 1155 |
1148 var path = (req.url).path; | 1156 var path = (req.url).path; |
1149 var pathOffset = 0; | 1157 var pathOffset = 0; |
1150 var index; | 1158 var index; |
1151 var subPart; | 1159 var subPart; |
1152 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1160 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1153 pathOffset += 11; | 1161 pathOffset += 1; |
| 1162 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1163 pathOffset += 10; |
1154 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("contacts")); | 1164 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("contacts")); |
1155 pathOffset += 8; | 1165 pathOffset += 8; |
1156 | 1166 |
1157 var query = (req.url).query; | 1167 var query = (req.url).query; |
1158 var queryOffset = 0; | 1168 var queryOffset = 0; |
1159 var queryMap = {}; | 1169 var queryMap = {}; |
1160 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1170 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1161 parseBool(n) { | 1171 parseBool(n) { |
1162 if (n == "true") return true; | 1172 if (n == "true") return true; |
1163 if (n == "false") return false; | 1173 if (n == "false") return false; |
(...skipping 21 matching lines...) Expand all Loading... |
1185 | 1195 |
1186 unittest.test("method--list", () { | 1196 unittest.test("method--list", () { |
1187 | 1197 |
1188 var mock = new common_test.HttpServerMock(); | 1198 var mock = new common_test.HttpServerMock(); |
1189 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; | 1199 api.ContactsResourceApi res = new api.MirrorApi(mock).contacts; |
1190 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1200 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1191 var path = (req.url).path; | 1201 var path = (req.url).path; |
1192 var pathOffset = 0; | 1202 var pathOffset = 0; |
1193 var index; | 1203 var index; |
1194 var subPart; | 1204 var subPart; |
1195 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1205 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1196 pathOffset += 11; | 1206 pathOffset += 1; |
| 1207 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1208 pathOffset += 10; |
1197 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("contacts")); | 1209 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("contacts")); |
1198 pathOffset += 8; | 1210 pathOffset += 8; |
1199 | 1211 |
1200 var query = (req.url).query; | 1212 var query = (req.url).query; |
1201 var queryOffset = 0; | 1213 var queryOffset = 0; |
1202 var queryMap = {}; | 1214 var queryMap = {}; |
1203 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1215 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1204 parseBool(n) { | 1216 parseBool(n) { |
1205 if (n == "true") return true; | 1217 if (n == "true") return true; |
1206 if (n == "false") return false; | 1218 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
1233 var arg_request = buildContact(); | 1245 var arg_request = buildContact(); |
1234 var arg_id = "foo"; | 1246 var arg_id = "foo"; |
1235 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1247 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1236 var obj = new api.Contact.fromJson(json); | 1248 var obj = new api.Contact.fromJson(json); |
1237 checkContact(obj); | 1249 checkContact(obj); |
1238 | 1250 |
1239 var path = (req.url).path; | 1251 var path = (req.url).path; |
1240 var pathOffset = 0; | 1252 var pathOffset = 0; |
1241 var index; | 1253 var index; |
1242 var subPart; | 1254 var subPart; |
1243 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1255 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1244 pathOffset += 11; | 1256 pathOffset += 1; |
| 1257 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1258 pathOffset += 10; |
1245 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); | 1259 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); |
1246 pathOffset += 9; | 1260 pathOffset += 9; |
1247 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1261 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1248 pathOffset = path.length; | 1262 pathOffset = path.length; |
1249 unittest.expect(subPart, unittest.equals("$arg_id")); | 1263 unittest.expect(subPart, unittest.equals("$arg_id")); |
1250 | 1264 |
1251 var query = (req.url).query; | 1265 var query = (req.url).query; |
1252 var queryOffset = 0; | 1266 var queryOffset = 0; |
1253 var queryMap = {}; | 1267 var queryMap = {}; |
1254 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1268 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1284 var arg_request = buildContact(); | 1298 var arg_request = buildContact(); |
1285 var arg_id = "foo"; | 1299 var arg_id = "foo"; |
1286 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1300 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1287 var obj = new api.Contact.fromJson(json); | 1301 var obj = new api.Contact.fromJson(json); |
1288 checkContact(obj); | 1302 checkContact(obj); |
1289 | 1303 |
1290 var path = (req.url).path; | 1304 var path = (req.url).path; |
1291 var pathOffset = 0; | 1305 var pathOffset = 0; |
1292 var index; | 1306 var index; |
1293 var subPart; | 1307 var subPart; |
1294 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1308 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1295 pathOffset += 11; | 1309 pathOffset += 1; |
| 1310 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1311 pathOffset += 10; |
1296 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); | 1312 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("contacts/")); |
1297 pathOffset += 9; | 1313 pathOffset += 9; |
1298 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1314 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1299 pathOffset = path.length; | 1315 pathOffset = path.length; |
1300 unittest.expect(subPart, unittest.equals("$arg_id")); | 1316 unittest.expect(subPart, unittest.equals("$arg_id")); |
1301 | 1317 |
1302 var query = (req.url).query; | 1318 var query = (req.url).query; |
1303 var queryOffset = 0; | 1319 var queryOffset = 0; |
1304 var queryMap = {}; | 1320 var queryMap = {}; |
1305 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1321 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1335 unittest.test("method--get", () { | 1351 unittest.test("method--get", () { |
1336 | 1352 |
1337 var mock = new common_test.HttpServerMock(); | 1353 var mock = new common_test.HttpServerMock(); |
1338 api.LocationsResourceApi res = new api.MirrorApi(mock).locations; | 1354 api.LocationsResourceApi res = new api.MirrorApi(mock).locations; |
1339 var arg_id = "foo"; | 1355 var arg_id = "foo"; |
1340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1341 var path = (req.url).path; | 1357 var path = (req.url).path; |
1342 var pathOffset = 0; | 1358 var pathOffset = 0; |
1343 var index; | 1359 var index; |
1344 var subPart; | 1360 var subPart; |
1345 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1361 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1346 pathOffset += 11; | 1362 pathOffset += 1; |
| 1363 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1364 pathOffset += 10; |
1347 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("locations/")); | 1365 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("locations/")); |
1348 pathOffset += 10; | 1366 pathOffset += 10; |
1349 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1367 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1350 pathOffset = path.length; | 1368 pathOffset = path.length; |
1351 unittest.expect(subPart, unittest.equals("$arg_id")); | 1369 unittest.expect(subPart, unittest.equals("$arg_id")); |
1352 | 1370 |
1353 var query = (req.url).query; | 1371 var query = (req.url).query; |
1354 var queryOffset = 0; | 1372 var queryOffset = 0; |
1355 var queryMap = {}; | 1373 var queryMap = {}; |
1356 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1374 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 24 matching lines...) Expand all Loading... |
1381 | 1399 |
1382 unittest.test("method--list", () { | 1400 unittest.test("method--list", () { |
1383 | 1401 |
1384 var mock = new common_test.HttpServerMock(); | 1402 var mock = new common_test.HttpServerMock(); |
1385 api.LocationsResourceApi res = new api.MirrorApi(mock).locations; | 1403 api.LocationsResourceApi res = new api.MirrorApi(mock).locations; |
1386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1404 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1387 var path = (req.url).path; | 1405 var path = (req.url).path; |
1388 var pathOffset = 0; | 1406 var pathOffset = 0; |
1389 var index; | 1407 var index; |
1390 var subPart; | 1408 var subPart; |
1391 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1409 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1392 pathOffset += 11; | 1410 pathOffset += 1; |
| 1411 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1412 pathOffset += 10; |
1393 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("locations")); | 1413 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("locations")); |
1394 pathOffset += 9; | 1414 pathOffset += 9; |
1395 | 1415 |
1396 var query = (req.url).query; | 1416 var query = (req.url).query; |
1397 var queryOffset = 0; | 1417 var queryOffset = 0; |
1398 var queryMap = {}; | 1418 var queryMap = {}; |
1399 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1419 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1400 parseBool(n) { | 1420 parseBool(n) { |
1401 if (n == "true") return true; | 1421 if (n == "true") return true; |
1402 if (n == "false") return false; | 1422 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
1429 unittest.test("method--get", () { | 1449 unittest.test("method--get", () { |
1430 | 1450 |
1431 var mock = new common_test.HttpServerMock(); | 1451 var mock = new common_test.HttpServerMock(); |
1432 api.SettingsResourceApi res = new api.MirrorApi(mock).settings; | 1452 api.SettingsResourceApi res = new api.MirrorApi(mock).settings; |
1433 var arg_id = "foo"; | 1453 var arg_id = "foo"; |
1434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1454 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1435 var path = (req.url).path; | 1455 var path = (req.url).path; |
1436 var pathOffset = 0; | 1456 var pathOffset = 0; |
1437 var index; | 1457 var index; |
1438 var subPart; | 1458 var subPart; |
1439 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1459 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1440 pathOffset += 11; | 1460 pathOffset += 1; |
| 1461 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1462 pathOffset += 10; |
1441 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("settings/")); | 1463 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("settings/")); |
1442 pathOffset += 9; | 1464 pathOffset += 9; |
1443 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1465 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1444 pathOffset = path.length; | 1466 pathOffset = path.length; |
1445 unittest.expect(subPart, unittest.equals("$arg_id")); | 1467 unittest.expect(subPart, unittest.equals("$arg_id")); |
1446 | 1468 |
1447 var query = (req.url).query; | 1469 var query = (req.url).query; |
1448 var queryOffset = 0; | 1470 var queryOffset = 0; |
1449 var queryMap = {}; | 1471 var queryMap = {}; |
1450 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1472 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1480 unittest.test("method--delete", () { | 1502 unittest.test("method--delete", () { |
1481 | 1503 |
1482 var mock = new common_test.HttpServerMock(); | 1504 var mock = new common_test.HttpServerMock(); |
1483 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; | 1505 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; |
1484 var arg_id = "foo"; | 1506 var arg_id = "foo"; |
1485 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1507 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1486 var path = (req.url).path; | 1508 var path = (req.url).path; |
1487 var pathOffset = 0; | 1509 var pathOffset = 0; |
1488 var index; | 1510 var index; |
1489 var subPart; | 1511 var subPart; |
1490 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1491 pathOffset += 11; | 1513 pathOffset += 1; |
| 1514 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1515 pathOffset += 10; |
1492 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("subscriptions/")); | 1516 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("subscriptions/")); |
1493 pathOffset += 14; | 1517 pathOffset += 14; |
1494 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1518 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1495 pathOffset = path.length; | 1519 pathOffset = path.length; |
1496 unittest.expect(subPart, unittest.equals("$arg_id")); | 1520 unittest.expect(subPart, unittest.equals("$arg_id")); |
1497 | 1521 |
1498 var query = (req.url).query; | 1522 var query = (req.url).query; |
1499 var queryOffset = 0; | 1523 var queryOffset = 0; |
1500 var queryMap = {}; | 1524 var queryMap = {}; |
1501 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1525 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 26 matching lines...) Expand all Loading... |
1528 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; | 1552 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; |
1529 var arg_request = buildSubscription(); | 1553 var arg_request = buildSubscription(); |
1530 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1554 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1531 var obj = new api.Subscription.fromJson(json); | 1555 var obj = new api.Subscription.fromJson(json); |
1532 checkSubscription(obj); | 1556 checkSubscription(obj); |
1533 | 1557 |
1534 var path = (req.url).path; | 1558 var path = (req.url).path; |
1535 var pathOffset = 0; | 1559 var pathOffset = 0; |
1536 var index; | 1560 var index; |
1537 var subPart; | 1561 var subPart; |
1538 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1539 pathOffset += 11; | 1563 pathOffset += 1; |
| 1564 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1565 pathOffset += 10; |
1540 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); | 1566 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); |
1541 pathOffset += 13; | 1567 pathOffset += 13; |
1542 | 1568 |
1543 var query = (req.url).query; | 1569 var query = (req.url).query; |
1544 var queryOffset = 0; | 1570 var queryOffset = 0; |
1545 var queryMap = {}; | 1571 var queryMap = {}; |
1546 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1572 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1547 parseBool(n) { | 1573 parseBool(n) { |
1548 if (n == "true") return true; | 1574 if (n == "true") return true; |
1549 if (n == "false") return false; | 1575 if (n == "false") return false; |
(...skipping 21 matching lines...) Expand all Loading... |
1571 | 1597 |
1572 unittest.test("method--list", () { | 1598 unittest.test("method--list", () { |
1573 | 1599 |
1574 var mock = new common_test.HttpServerMock(); | 1600 var mock = new common_test.HttpServerMock(); |
1575 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; | 1601 api.SubscriptionsResourceApi res = new api.MirrorApi(mock).subscriptions; |
1576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1577 var path = (req.url).path; | 1603 var path = (req.url).path; |
1578 var pathOffset = 0; | 1604 var pathOffset = 0; |
1579 var index; | 1605 var index; |
1580 var subPart; | 1606 var subPart; |
1581 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1582 pathOffset += 11; | 1608 pathOffset += 1; |
| 1609 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1610 pathOffset += 10; |
1583 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); | 1611 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("subscriptions")); |
1584 pathOffset += 13; | 1612 pathOffset += 13; |
1585 | 1613 |
1586 var query = (req.url).query; | 1614 var query = (req.url).query; |
1587 var queryOffset = 0; | 1615 var queryOffset = 0; |
1588 var queryMap = {}; | 1616 var queryMap = {}; |
1589 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1617 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1590 parseBool(n) { | 1618 parseBool(n) { |
1591 if (n == "true") return true; | 1619 if (n == "true") return true; |
1592 if (n == "false") return false; | 1620 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
1619 var arg_request = buildSubscription(); | 1647 var arg_request = buildSubscription(); |
1620 var arg_id = "foo"; | 1648 var arg_id = "foo"; |
1621 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1649 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1622 var obj = new api.Subscription.fromJson(json); | 1650 var obj = new api.Subscription.fromJson(json); |
1623 checkSubscription(obj); | 1651 checkSubscription(obj); |
1624 | 1652 |
1625 var path = (req.url).path; | 1653 var path = (req.url).path; |
1626 var pathOffset = 0; | 1654 var pathOffset = 0; |
1627 var index; | 1655 var index; |
1628 var subPart; | 1656 var subPart; |
1629 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1630 pathOffset += 11; | 1658 pathOffset += 1; |
| 1659 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1660 pathOffset += 10; |
1631 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("subscriptions/")); | 1661 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("subscriptions/")); |
1632 pathOffset += 14; | 1662 pathOffset += 14; |
1633 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1634 pathOffset = path.length; | 1664 pathOffset = path.length; |
1635 unittest.expect(subPart, unittest.equals("$arg_id")); | 1665 unittest.expect(subPart, unittest.equals("$arg_id")); |
1636 | 1666 |
1637 var query = (req.url).query; | 1667 var query = (req.url).query; |
1638 var queryOffset = 0; | 1668 var queryOffset = 0; |
1639 var queryMap = {}; | 1669 var queryMap = {}; |
1640 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1670 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 29 matching lines...) Expand all Loading... |
1670 unittest.test("method--delete", () { | 1700 unittest.test("method--delete", () { |
1671 | 1701 |
1672 var mock = new common_test.HttpServerMock(); | 1702 var mock = new common_test.HttpServerMock(); |
1673 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; | 1703 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; |
1674 var arg_id = "foo"; | 1704 var arg_id = "foo"; |
1675 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1676 var path = (req.url).path; | 1706 var path = (req.url).path; |
1677 var pathOffset = 0; | 1707 var pathOffset = 0; |
1678 var index; | 1708 var index; |
1679 var subPart; | 1709 var subPart; |
1680 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1710 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1681 pathOffset += 11; | 1711 pathOffset += 1; |
| 1712 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1713 pathOffset += 10; |
1682 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 1714 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
1683 pathOffset += 9; | 1715 pathOffset += 9; |
1684 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1716 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1685 pathOffset = path.length; | 1717 pathOffset = path.length; |
1686 unittest.expect(subPart, unittest.equals("$arg_id")); | 1718 unittest.expect(subPart, unittest.equals("$arg_id")); |
1687 | 1719 |
1688 var query = (req.url).query; | 1720 var query = (req.url).query; |
1689 var queryOffset = 0; | 1721 var queryOffset = 0; |
1690 var queryMap = {}; | 1722 var queryMap = {}; |
1691 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1723 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 23 matching lines...) Expand all Loading... |
1715 unittest.test("method--get", () { | 1747 unittest.test("method--get", () { |
1716 | 1748 |
1717 var mock = new common_test.HttpServerMock(); | 1749 var mock = new common_test.HttpServerMock(); |
1718 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; | 1750 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; |
1719 var arg_id = "foo"; | 1751 var arg_id = "foo"; |
1720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1721 var path = (req.url).path; | 1753 var path = (req.url).path; |
1722 var pathOffset = 0; | 1754 var pathOffset = 0; |
1723 var index; | 1755 var index; |
1724 var subPart; | 1756 var subPart; |
1725 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1726 pathOffset += 11; | 1758 pathOffset += 1; |
| 1759 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1760 pathOffset += 10; |
1727 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 1761 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
1728 pathOffset += 9; | 1762 pathOffset += 9; |
1729 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1763 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1730 pathOffset = path.length; | 1764 pathOffset = path.length; |
1731 unittest.expect(subPart, unittest.equals("$arg_id")); | 1765 unittest.expect(subPart, unittest.equals("$arg_id")); |
1732 | 1766 |
1733 var query = (req.url).query; | 1767 var query = (req.url).query; |
1734 var queryOffset = 0; | 1768 var queryOffset = 0; |
1735 var queryMap = {}; | 1769 var queryMap = {}; |
1736 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1770 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 30 matching lines...) Expand all Loading... |
1767 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; | 1801 api.TimelineResourceApi res = new api.MirrorApi(mock).timeline; |
1768 var arg_request = buildTimelineItem(); | 1802 var arg_request = buildTimelineItem(); |
1769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1803 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1770 var obj = new api.TimelineItem.fromJson(json); | 1804 var obj = new api.TimelineItem.fromJson(json); |
1771 checkTimelineItem(obj); | 1805 checkTimelineItem(obj); |
1772 | 1806 |
1773 var path = (req.url).path; | 1807 var path = (req.url).path; |
1774 var pathOffset = 0; | 1808 var pathOffset = 0; |
1775 var index; | 1809 var index; |
1776 var subPart; | 1810 var subPart; |
1777 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1811 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1778 pathOffset += 11; | 1812 pathOffset += 1; |
| 1813 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1814 pathOffset += 10; |
1779 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("timeline")); | 1815 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("timeline")); |
1780 pathOffset += 8; | 1816 pathOffset += 8; |
1781 | 1817 |
1782 var query = (req.url).query; | 1818 var query = (req.url).query; |
1783 var queryOffset = 0; | 1819 var queryOffset = 0; |
1784 var queryMap = {}; | 1820 var queryMap = {}; |
1785 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1821 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1786 parseBool(n) { | 1822 parseBool(n) { |
1787 if (n == "true") return true; | 1823 if (n == "true") return true; |
1788 if (n == "false") return false; | 1824 if (n == "false") return false; |
(...skipping 28 matching lines...) Expand all Loading... |
1817 var arg_maxResults = 42; | 1853 var arg_maxResults = 42; |
1818 var arg_orderBy = "foo"; | 1854 var arg_orderBy = "foo"; |
1819 var arg_pageToken = "foo"; | 1855 var arg_pageToken = "foo"; |
1820 var arg_pinnedOnly = true; | 1856 var arg_pinnedOnly = true; |
1821 var arg_sourceItemId = "foo"; | 1857 var arg_sourceItemId = "foo"; |
1822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1858 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1823 var path = (req.url).path; | 1859 var path = (req.url).path; |
1824 var pathOffset = 0; | 1860 var pathOffset = 0; |
1825 var index; | 1861 var index; |
1826 var subPart; | 1862 var subPart; |
1827 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1863 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1828 pathOffset += 11; | 1864 pathOffset += 1; |
| 1865 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1866 pathOffset += 10; |
1829 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("timeline")); | 1867 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("timeline")); |
1830 pathOffset += 8; | 1868 pathOffset += 8; |
1831 | 1869 |
1832 var query = (req.url).query; | 1870 var query = (req.url).query; |
1833 var queryOffset = 0; | 1871 var queryOffset = 0; |
1834 var queryMap = {}; | 1872 var queryMap = {}; |
1835 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1873 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1836 parseBool(n) { | 1874 parseBool(n) { |
1837 if (n == "true") return true; | 1875 if (n == "true") return true; |
1838 if (n == "false") return false; | 1876 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 var arg_request = buildTimelineItem(); | 1910 var arg_request = buildTimelineItem(); |
1873 var arg_id = "foo"; | 1911 var arg_id = "foo"; |
1874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1875 var obj = new api.TimelineItem.fromJson(json); | 1913 var obj = new api.TimelineItem.fromJson(json); |
1876 checkTimelineItem(obj); | 1914 checkTimelineItem(obj); |
1877 | 1915 |
1878 var path = (req.url).path; | 1916 var path = (req.url).path; |
1879 var pathOffset = 0; | 1917 var pathOffset = 0; |
1880 var index; | 1918 var index; |
1881 var subPart; | 1919 var subPart; |
1882 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1920 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1883 pathOffset += 11; | 1921 pathOffset += 1; |
| 1922 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1923 pathOffset += 10; |
1884 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 1924 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
1885 pathOffset += 9; | 1925 pathOffset += 9; |
1886 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1926 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1887 pathOffset = path.length; | 1927 pathOffset = path.length; |
1888 unittest.expect(subPart, unittest.equals("$arg_id")); | 1928 unittest.expect(subPart, unittest.equals("$arg_id")); |
1889 | 1929 |
1890 var query = (req.url).query; | 1930 var query = (req.url).query; |
1891 var queryOffset = 0; | 1931 var queryOffset = 0; |
1892 var queryMap = {}; | 1932 var queryMap = {}; |
1893 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1933 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 var arg_request = buildTimelineItem(); | 1965 var arg_request = buildTimelineItem(); |
1926 var arg_id = "foo"; | 1966 var arg_id = "foo"; |
1927 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1928 var obj = new api.TimelineItem.fromJson(json); | 1968 var obj = new api.TimelineItem.fromJson(json); |
1929 checkTimelineItem(obj); | 1969 checkTimelineItem(obj); |
1930 | 1970 |
1931 var path = (req.url).path; | 1971 var path = (req.url).path; |
1932 var pathOffset = 0; | 1972 var pathOffset = 0; |
1933 var index; | 1973 var index; |
1934 var subPart; | 1974 var subPart; |
1935 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 1975 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1936 pathOffset += 11; | 1976 pathOffset += 1; |
| 1977 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 1978 pathOffset += 10; |
1937 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 1979 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
1938 pathOffset += 9; | 1980 pathOffset += 9; |
1939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1981 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
1940 pathOffset = path.length; | 1982 pathOffset = path.length; |
1941 unittest.expect(subPart, unittest.equals("$arg_id")); | 1983 unittest.expect(subPart, unittest.equals("$arg_id")); |
1942 | 1984 |
1943 var query = (req.url).query; | 1985 var query = (req.url).query; |
1944 var queryOffset = 0; | 1986 var queryOffset = 0; |
1945 var queryMap = {}; | 1987 var queryMap = {}; |
1946 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 30 matching lines...) Expand all Loading... |
1977 | 2019 |
1978 var mock = new common_test.HttpServerMock(); | 2020 var mock = new common_test.HttpServerMock(); |
1979 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; | 2021 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; |
1980 var arg_itemId = "foo"; | 2022 var arg_itemId = "foo"; |
1981 var arg_attachmentId = "foo"; | 2023 var arg_attachmentId = "foo"; |
1982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1983 var path = (req.url).path; | 2025 var path = (req.url).path; |
1984 var pathOffset = 0; | 2026 var pathOffset = 0; |
1985 var index; | 2027 var index; |
1986 var subPart; | 2028 var subPart; |
1987 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 2029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1988 pathOffset += 11; | 2030 pathOffset += 1; |
| 2031 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 2032 pathOffset += 10; |
1989 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 2033 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
1990 pathOffset += 9; | 2034 pathOffset += 9; |
1991 index = path.indexOf("/attachments/", pathOffset); | 2035 index = path.indexOf("/attachments/", pathOffset); |
1992 unittest.expect(index >= 0, unittest.isTrue); | 2036 unittest.expect(index >= 0, unittest.isTrue); |
1993 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2037 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1994 pathOffset = index; | 2038 pathOffset = index; |
1995 unittest.expect(subPart, unittest.equals("$arg_itemId")); | 2039 unittest.expect(subPart, unittest.equals("$arg_itemId")); |
1996 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/attachments/")); | 2040 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/attachments/")); |
1997 pathOffset += 13; | 2041 pathOffset += 13; |
1998 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2042 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 | 2076 |
2033 var mock = new common_test.HttpServerMock(); | 2077 var mock = new common_test.HttpServerMock(); |
2034 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; | 2078 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; |
2035 var arg_itemId = "foo"; | 2079 var arg_itemId = "foo"; |
2036 var arg_attachmentId = "foo"; | 2080 var arg_attachmentId = "foo"; |
2037 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2038 var path = (req.url).path; | 2082 var path = (req.url).path; |
2039 var pathOffset = 0; | 2083 var pathOffset = 0; |
2040 var index; | 2084 var index; |
2041 var subPart; | 2085 var subPart; |
2042 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 2086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2043 pathOffset += 11; | 2087 pathOffset += 1; |
| 2088 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 2089 pathOffset += 10; |
2044 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 2090 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
2045 pathOffset += 9; | 2091 pathOffset += 9; |
2046 index = path.indexOf("/attachments/", pathOffset); | 2092 index = path.indexOf("/attachments/", pathOffset); |
2047 unittest.expect(index >= 0, unittest.isTrue); | 2093 unittest.expect(index >= 0, unittest.isTrue); |
2048 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2094 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2049 pathOffset = index; | 2095 pathOffset = index; |
2050 unittest.expect(subPart, unittest.equals("$arg_itemId")); | 2096 unittest.expect(subPart, unittest.equals("$arg_itemId")); |
2051 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/attachments/")); | 2097 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/attachments/")); |
2052 pathOffset += 13; | 2098 pathOffset += 13; |
2053 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2099 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2088 // TODO: Implement tests for media download; | 2134 // TODO: Implement tests for media download; |
2089 | 2135 |
2090 var mock = new common_test.HttpServerMock(); | 2136 var mock = new common_test.HttpServerMock(); |
2091 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; | 2137 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; |
2092 var arg_itemId = "foo"; | 2138 var arg_itemId = "foo"; |
2093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2094 var path = (req.url).path; | 2140 var path = (req.url).path; |
2095 var pathOffset = 0; | 2141 var pathOffset = 0; |
2096 var index; | 2142 var index; |
2097 var subPart; | 2143 var subPart; |
2098 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 2144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2099 pathOffset += 11; | 2145 pathOffset += 1; |
| 2146 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 2147 pathOffset += 10; |
2100 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 2148 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
2101 pathOffset += 9; | 2149 pathOffset += 9; |
2102 index = path.indexOf("/attachments", pathOffset); | 2150 index = path.indexOf("/attachments", pathOffset); |
2103 unittest.expect(index >= 0, unittest.isTrue); | 2151 unittest.expect(index >= 0, unittest.isTrue); |
2104 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2105 pathOffset = index; | 2153 pathOffset = index; |
2106 unittest.expect(subPart, unittest.equals("$arg_itemId")); | 2154 unittest.expect(subPart, unittest.equals("$arg_itemId")); |
2107 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/attachments")); | 2155 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/attachments")); |
2108 pathOffset += 12; | 2156 pathOffset += 12; |
2109 | 2157 |
(...skipping 29 matching lines...) Expand all Loading... |
2139 unittest.test("method--list", () { | 2187 unittest.test("method--list", () { |
2140 | 2188 |
2141 var mock = new common_test.HttpServerMock(); | 2189 var mock = new common_test.HttpServerMock(); |
2142 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; | 2190 api.TimelineAttachmentsResourceApi res = new api.MirrorApi(mock).timeline.
attachments; |
2143 var arg_itemId = "foo"; | 2191 var arg_itemId = "foo"; |
2144 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2192 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2145 var path = (req.url).path; | 2193 var path = (req.url).path; |
2146 var pathOffset = 0; | 2194 var pathOffset = 0; |
2147 var index; | 2195 var index; |
2148 var subPart; | 2196 var subPart; |
2149 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/mirror/v1/")); | 2197 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2150 pathOffset += 11; | 2198 pathOffset += 1; |
| 2199 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("mirror/v1/")); |
| 2200 pathOffset += 10; |
2151 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); | 2201 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("timeline/")); |
2152 pathOffset += 9; | 2202 pathOffset += 9; |
2153 index = path.indexOf("/attachments", pathOffset); | 2203 index = path.indexOf("/attachments", pathOffset); |
2154 unittest.expect(index >= 0, unittest.isTrue); | 2204 unittest.expect(index >= 0, unittest.isTrue); |
2155 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2205 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2156 pathOffset = index; | 2206 pathOffset = index; |
2157 unittest.expect(subPart, unittest.equals("$arg_itemId")); | 2207 unittest.expect(subPart, unittest.equals("$arg_itemId")); |
2158 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/attachments")); | 2208 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/attachments")); |
2159 pathOffset += 12; | 2209 pathOffset += 12; |
2160 | 2210 |
(...skipping 24 matching lines...) Expand all Loading... |
2185 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon
se response) { | 2235 res.list(arg_itemId).then(unittest.expectAsync(((api.AttachmentsListRespon
se response) { |
2186 checkAttachmentsListResponse(response); | 2236 checkAttachmentsListResponse(response); |
2187 }))); | 2237 }))); |
2188 }); | 2238 }); |
2189 | 2239 |
2190 }); | 2240 }); |
2191 | 2241 |
2192 | 2242 |
2193 } | 2243 } |
2194 | 2244 |
OLD | NEW |