|
1 [Define] |
|
2 CollectionIdMyVideos "0" |
|
3 |
|
4 // STUBS |
|
5 EActiveTask 1 |
|
6 EAlbums 2 |
|
7 EAsyncFileOperations 3 |
|
8 ECategories 4 |
|
9 EMDSDB 5 |
|
10 EMessageList 6 |
|
11 EOpenHandler 7 |
|
12 EVideoCache 8 |
|
13 |
|
14 KInvalidId -100 |
|
15 |
|
16 KSelectAll -2 |
|
17 |
|
18 SYNC 1 |
|
19 ASYNC 0 |
|
20 |
|
21 KVcxCommandMyVideosStartDownload 0 // obsolete? |
|
22 KVcxCommandMyVideosCancelDownload 1 // obsolete? |
|
23 KVcxCommandMyVideosResumeDownload 2 // obsolete? |
|
24 KVcxCommandMyVideosPauseDownload 3 // obsolete? |
|
25 KVcxCommandMyVideosGetMediaFullDetailsByMpxId 4 // async |
|
26 KVcxCommandMyVideosGetMediasByMpxId 5 // async |
|
27 KVcxCommandMyVideosMove 6 // async |
|
28 KVcxCommandMyVideosCopy 7 // async |
|
29 KVcxCommandMyVideosDelete 8 // async |
|
30 KVcxCommandMyVideosAddToAlbum 9 // async |
|
31 KVcxCommandMyVideosRemoveFromAlbum 10 // async |
|
32 KVcxCommandMyVideosAddAlbum 11 // async & sync |
|
33 KVcxCommandMyVideosRemoveAlbums 12 // async |
|
34 KVcxCommandMyVideosCancelMoveOrCopy 13 // sync |
|
35 KVcxCommandMyVideosCancelDelete 14 // sync |
|
36 KVcxMessageMyVideosGetMediasByMpxIdResp 15 // async |
|
37 KVcxMessageMyVideosItemsAppended 16 // event |
|
38 KVcxMessageMyVideosListComplete 17 // event |
|
39 KVcxMessageMyVideosMoveOrCopyStarted 18 // event |
|
40 KVcxMessageMyVideosDeleteStarted 19 // event |
|
41 KVcxMessageMyVideosMoveResp 20 // event |
|
42 KVcxMessageMyVideosCopyResp 21 // event |
|
43 KVcxMessageMyVideosDeleteResp 22 // event |
|
44 KVcxMessageMyVideosMessageArray 23 |
|
45 |
|
46 KVcxCommandIdMyVideos "20016BA0" |
|
47 KMPXCommandIdCollectionSet "10282963" |
|
48 KMPXCommandIdCollectionRemoveMedia "10282949" |
|
49 KMPXCommandIdCollectionAdd "10282962" |
|
50 |
|
51 EMPXItemDeleted 1 |
|
52 EMPXItemInserted 2 |
|
53 EMPXItemModified 3 |
|
54 |
|
55 // special variables used with vcxmyvideoscache_stub |
|
56 KMPXIdLeave 999 |
|
57 KMPXIdNotFound 998 |
|
58 KMPXIdChanged 997 |
|
59 |
|
60 EMediaTypeVideo 0 |
|
61 EMediaTypeCategory 1 |
|
62 EMediaTypeAlbum 2 |
|
63 |
|
64 EMediaGeneralId 1 |
|
65 EMediaGeneralTitle 2 |
|
66 |
|
67 [Enddefine] |
|
68 |
|
69 [Test] |
|
70 title OpenL CollectionIdMyVideos |
|
71 create ut_collectionplugintest CPTest |
|
72 CPTest OpenL CollectionIdMyVideos |
|
73 delete CPTest |
|
74 [Endtest] |
|
75 |
|
76 [Test] |
|
77 title MediaL no medias |
|
78 create ut_collectionplugintest CPTest |
|
79 CPTest OpenL CollectionIdMyVideos |
|
80 CPTest InsertToPath 1 EMediaTypeVideo |
|
81 CPTest InsertToPath 2 EMediaTypeVideo |
|
82 CPTest SelectPath 1 |
|
83 CPTest SelectAttributes EMediaGeneralId |
|
84 CPTest MediaL |
|
85 delete CPTest |
|
86 [Endtest] |
|
87 |
|
88 [Test] |
|
89 title MediaL select one, video in cache |
|
90 create ut_collectionplugintest CPTest |
|
91 CPTest OpenL CollectionIdMyVideos |
|
92 CPTest CreateNewMedia |
|
93 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
94 CPTest AddMediaToCache |
|
95 CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo |
|
96 CPTest AddMediaToCache |
|
97 CPTest InsertToPath 1 EMediaTypeVideo |
|
98 CPTest InsertToPath 2 EMediaTypeVideo |
|
99 CPTest SelectPath 1 |
|
100 CPTest SelectAttributes EMediaGeneralId |
|
101 CPTest MediaL |
|
102 delete CPTest |
|
103 [Endtest] |
|
104 |
|
105 [Test] |
|
106 title MediaL select one, video not in cache |
|
107 create ut_collectionplugintest CPTest |
|
108 CPTest OpenL CollectionIdMyVideos |
|
109 CPTest InsertToPath KMPXIdNotFound EMediaTypeVideo |
|
110 CPTest SelectPathId KMPXIdNotFound |
|
111 CPTest SelectAttributes EMediaGeneralId |
|
112 CPTest MediaL |
|
113 delete CPTest |
|
114 [Endtest] |
|
115 |
|
116 [Test] |
|
117 title MediaL select one, all attributes |
|
118 create ut_collectionplugintest CPTest |
|
119 CPTest OpenL CollectionIdMyVideos |
|
120 CPTest CreateNewMedia |
|
121 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
122 CPTest AddMediaToCache |
|
123 CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo |
|
124 CPTest AddMediaToCache |
|
125 CPTest InsertToPath 1 EMediaTypeVideo |
|
126 CPTest InsertToPath 2 EMediaTypeVideo |
|
127 CPTest SelectPath 1 |
|
128 CPTest SelectAttributes -1 |
|
129 CPTest MediaL |
|
130 delete CPTest |
|
131 [Endtest] |
|
132 |
|
133 [Test] |
|
134 title MediaL select one, no video in mds |
|
135 create ut_collectionplugintest CPTest |
|
136 CPTest OpenL CollectionIdMyVideos |
|
137 CPTest CreateNewMedia |
|
138 CPTest SetMediaAttribute EMediaGeneralId KMPXIdNotFound EMediaTypeVideo |
|
139 CPTest AddMediaToCache |
|
140 CPTest InsertToPath KMPXIdNotFound EMediaTypeVideo |
|
141 CPTest SelectPathId KMPXIdNotFound |
|
142 CPTest SelectAttributes -1 |
|
143 CPTest MediaL |
|
144 delete CPTest |
|
145 [Endtest] |
|
146 |
|
147 [Test] |
|
148 title MediaL select none |
|
149 create ut_collectionplugintest CPTest |
|
150 CPTest OpenL CollectionIdMyVideos |
|
151 CPTest SelectPath -1 |
|
152 CPTest SelectAttributes EMediaGeneralId |
|
153 CPTest MediaL |
|
154 delete CPTest |
|
155 [Endtest] |
|
156 |
|
157 [Test] |
|
158 title MediaL select all |
|
159 create ut_collectionplugintest CPTest |
|
160 CPTest OpenL CollectionIdMyVideos |
|
161 CPTest CreateNewMedia |
|
162 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
163 CPTest AddMediaToCache |
|
164 CPTest CreateNewMedia |
|
165 CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo |
|
166 CPTest AddMediaToCache |
|
167 CPTest InsertToPath 1 EMediaTypeVideo |
|
168 CPTest InsertToPath 2 EMediaTypeVideo |
|
169 CPTest SelectPath KSelectAll |
|
170 CPTest SelectAttributes EMediaGeneralId |
|
171 CPTest MediaL |
|
172 delete CPTest |
|
173 [Endtest] |
|
174 |
|
175 [Test] |
|
176 title MediaL select all, all attributes |
|
177 create ut_collectionplugintest CPTest |
|
178 CPTest OpenL CollectionIdMyVideos |
|
179 CPTest CreateNewMedia |
|
180 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
181 CPTest AddMediaToCache |
|
182 CPTest CreateNewMedia |
|
183 CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo |
|
184 CPTest AddMediaToCache |
|
185 CPTest InsertToPath 1 EMediaTypeVideo |
|
186 CPTest InsertToPath 2 EMediaTypeVideo |
|
187 CPTest SelectPath KSelectAll |
|
188 CPTest SelectAttributes -1 |
|
189 CPTest MediaL |
|
190 delete CPTest |
|
191 [Endtest] |
|
192 |
|
193 [Test] |
|
194 title CancelRequest |
|
195 create ut_collectionplugintest CPTest |
|
196 CPTest CancelRequest |
|
197 delete CPTest |
|
198 [Endtest] |
|
199 |
|
200 [Test] |
|
201 title CommandL no cmd |
|
202 create ut_collectionplugintest CPTest |
|
203 allownextresult -6 |
|
204 CPTest CommandL SYNC |
|
205 delete CPTest |
|
206 [Endtest] |
|
207 |
|
208 [Test] |
|
209 title CommandL invalid cmd |
|
210 create ut_collectionplugintest CPTest |
|
211 allownextresult -5 |
|
212 CPTest CommandL SYNC "000001" |
|
213 delete CPTest |
|
214 [Endtest] |
|
215 |
|
216 [Test] |
|
217 title CommandL no sync value |
|
218 create ut_collectionplugintest CPTest |
|
219 CPTest CreateNewMedia |
|
220 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
221 CPTest CommandL -1 KMPXCommandIdCollectionAdd |
|
222 delete CPTest |
|
223 [Endtest] |
|
224 |
|
225 [Test] |
|
226 title CommandL mv cmd, not supported |
|
227 create ut_collectionplugintest CPTest |
|
228 CPTest CreateNewMedia |
|
229 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
230 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
231 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
232 CPTest CreateNewCmd ASYNC KVcxCommandIdMyVideos -1 |
|
233 CPTest SetNewCmd |
|
234 allownextresult -6 |
|
235 CPTest HandleStepL |
|
236 delete CPTest |
|
237 [Endtest] |
|
238 |
|
239 [Test] |
|
240 title CommandL get full details |
|
241 create ut_collectionplugintest CPTest |
|
242 CPTest CreateNewMedia |
|
243 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
244 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
245 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
246 CPTest HandleStepL |
|
247 delete CPTest |
|
248 [Endtest] |
|
249 |
|
250 [Test] |
|
251 title CommandL get full details, no id |
|
252 create ut_collectionplugintest CPTest |
|
253 CPTest CreateNewMedia |
|
254 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
255 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
256 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
257 allownextresult -6 |
|
258 CPTest HandleStepL |
|
259 delete CPTest |
|
260 [Endtest] |
|
261 |
|
262 [Test] |
|
263 title CommandL get full details, no video found |
|
264 create ut_collectionplugintest CPTest |
|
265 CPTest CreateNewMedia |
|
266 CPTest SetMediaAttribute EMediaGeneralId KInvalidId EMediaTypeVideo |
|
267 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
268 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
269 allownextresult -1 |
|
270 CPTest HandleStepL |
|
271 delete CPTest |
|
272 [Endtest] |
|
273 |
|
274 [Test] |
|
275 title CommandL get medias |
|
276 create ut_collectionplugintest CPTest |
|
277 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId 1 2 3 |
|
278 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId |
|
279 CPTest HandleStepL |
|
280 delete CPTest |
|
281 [Endtest] |
|
282 |
|
283 [Test] |
|
284 title CommandL get medias, no ids |
|
285 create ut_collectionplugintest CPTest |
|
286 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId -1 |
|
287 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId |
|
288 allownextresult -6 |
|
289 CPTest HandleStepL |
|
290 delete CPTest |
|
291 [Endtest] |
|
292 |
|
293 [Test] |
|
294 title CommandL move |
|
295 create ut_collectionplugintest CPTest |
|
296 CPTest CreateNewMedia |
|
297 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
298 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
299 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
300 CPTest HandleStepL |
|
301 delete CPTest |
|
302 [Endtest] |
|
303 |
|
304 [Test] |
|
305 title CommandL move, asyncfileoperations deleted |
|
306 create ut_collectionplugintest CPTest |
|
307 CPTest CreateNewMedia |
|
308 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
309 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
310 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
311 CPTest DeleteStub EAsyncFileOperations |
|
312 CPTest HandleStepL |
|
313 delete CPTest |
|
314 [Endtest] |
|
315 |
|
316 [Test] |
|
317 title CommandL copy |
|
318 create ut_collectionplugintest CPTest |
|
319 CPTest CreateNewMedia |
|
320 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
321 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
322 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
323 CPTest HandleStepL |
|
324 delete CPTest |
|
325 [Endtest] |
|
326 |
|
327 [Test] |
|
328 title CommandL copy, asyncfileoperations deleted |
|
329 create ut_collectionplugintest CPTest |
|
330 CPTest CreateNewMedia |
|
331 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
332 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
333 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
334 CPTest DeleteStub EAsyncFileOperations |
|
335 CPTest HandleStepL |
|
336 delete CPTest |
|
337 [Endtest] |
|
338 |
|
339 [Test] |
|
340 title CommandL delete |
|
341 create ut_collectionplugintest CPTest |
|
342 CPTest CreateNewMedia |
|
343 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
344 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
345 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
346 CPTest HandleStepL |
|
347 delete CPTest |
|
348 [Endtest] |
|
349 |
|
350 [Test] |
|
351 title CommandL delete, asyncfileoperations deleted |
|
352 create ut_collectionplugintest CPTest |
|
353 CPTest CreateNewMedia |
|
354 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
355 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
356 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
357 CPTest DeleteStub EAsyncFileOperations |
|
358 CPTest HandleStepL |
|
359 delete CPTest |
|
360 [Endtest] |
|
361 |
|
362 [Test] |
|
363 title CommandL add album sync |
|
364 create ut_collectionplugintest CPTest |
|
365 CPTest CreateNewMedia |
|
366 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
367 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
368 CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
369 delete CPTest |
|
370 [Endtest] |
|
371 |
|
372 [Test] |
|
373 title CommandL add album async |
|
374 create ut_collectionplugintest CPTest |
|
375 CPTest CreateNewMedia |
|
376 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
377 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
378 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
379 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
380 CPTest HandleStepL |
|
381 delete CPTest |
|
382 [Endtest] |
|
383 |
|
384 [Test] |
|
385 title CommandL add album sync, albums deleted |
|
386 create ut_collectionplugintest CPTest |
|
387 CPTest CreateNewMedia |
|
388 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
389 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
390 CPTest DeleteStub EAlbums |
|
391 CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
392 delete CPTest |
|
393 [Endtest] |
|
394 |
|
395 [Test] |
|
396 title CommandL add album async, albums deleted |
|
397 create ut_collectionplugintest CPTest |
|
398 CPTest CreateNewMedia |
|
399 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
400 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
401 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
402 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum |
|
403 CPTest DeleteStub EAlbums |
|
404 CPTest HandleStepL |
|
405 delete CPTest |
|
406 [Endtest] |
|
407 |
|
408 [Test] |
|
409 title CommandL remove albums |
|
410 create ut_collectionplugintest CPTest |
|
411 CPTest CreateNewMedia |
|
412 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
413 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
414 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveAlbums |
|
415 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveAlbums |
|
416 CPTest HandleStepL |
|
417 delete CPTest |
|
418 [Endtest] |
|
419 |
|
420 [Test] |
|
421 title CommandL add to album |
|
422 create ut_collectionplugintest CPTest |
|
423 CPTest CreateNewMedia |
|
424 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
425 CPTest SetMediaAttribute EMediaGeneralTitle "Album1" |
|
426 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddToAlbum |
|
427 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddToAlbum |
|
428 CPTest HandleStepL |
|
429 delete CPTest |
|
430 [Endtest] |
|
431 |
|
432 [Test] |
|
433 title CommandL remove from album |
|
434 create ut_collectionplugintest CPTest |
|
435 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveFromAlbum |
|
436 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveFromAlbum |
|
437 CPTest HandleStepL |
|
438 delete CPTest |
|
439 [Endtest] |
|
440 |
|
441 [Test] |
|
442 title CommandL cancel move or copy SYNC |
|
443 create ut_collectionplugintest CPTest |
|
444 CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy |
|
445 CPTest CheckCurrentCmd -1 |
|
446 delete CPTest |
|
447 [Endtest] |
|
448 |
|
449 [Test] |
|
450 title CommandL cancel move or copy ASYNC |
|
451 create ut_collectionplugintest CPTest |
|
452 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy |
|
453 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy |
|
454 CPTest HandleStepL |
|
455 delete CPTest |
|
456 [Endtest] |
|
457 |
|
458 [Test] |
|
459 title CommandL cancel delete SYNC |
|
460 create ut_collectionplugintest CPTest |
|
461 CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete |
|
462 CPTest CheckCurrentCmd -1 |
|
463 delete CPTest |
|
464 [Endtest] |
|
465 |
|
466 [Test] |
|
467 title CommandL cancel delete ASYNC |
|
468 create ut_collectionplugintest CPTest |
|
469 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete |
|
470 CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete |
|
471 CPTest HandleStepL |
|
472 delete CPTest |
|
473 [Endtest] |
|
474 |
|
475 [Test] |
|
476 title CommandL remove media |
|
477 create ut_collectionplugintest CPTest |
|
478 CPTest CreateNewMedia |
|
479 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
480 CPTest CommandL ASYNC KMPXCommandIdCollectionRemoveMedia |
|
481 CPTest CheckCurrentCmd KMPXCommandIdCollectionRemoveMedia |
|
482 CPTest HandleStepL |
|
483 delete CPTest |
|
484 [Endtest] |
|
485 |
|
486 [Test] |
|
487 title CommandL KMPXCommandIdCollectionAdd |
|
488 create ut_collectionplugintest CPTest |
|
489 CPTest CreateNewMedia |
|
490 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
491 CPTest CommandL SYNC KMPXCommandIdCollectionAdd |
|
492 delete CPTest |
|
493 [Endtest] |
|
494 |
|
495 [Test] |
|
496 title CommandL KMPXCommandIdCollectionSet video SYNC |
|
497 create ut_collectionplugintest CPTest |
|
498 CPTest CreateNewMedia |
|
499 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
500 CPTest CommandL SYNC KMPXCommandIdCollectionSet |
|
501 delete CPTest |
|
502 [Endtest] |
|
503 |
|
504 [Test] |
|
505 title CommandL KMPXCommandIdCollectionSet album SYNC |
|
506 create ut_collectionplugintest CPTest |
|
507 CPTest CreateNewMedia |
|
508 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
509 CPTest CommandL SYNC KMPXCommandIdCollectionSet |
|
510 delete CPTest |
|
511 [Endtest] |
|
512 |
|
513 [Test] |
|
514 title CommandL KMPXCommandIdCollectionSet invalid SYNC |
|
515 create ut_collectionplugintest CPTest |
|
516 CPTest CreateNewMedia |
|
517 CPTest SetMediaAttribute EMediaGeneralId 0 -1 |
|
518 allownextresult -1 |
|
519 CPTest CommandL SYNC KMPXCommandIdCollectionSet |
|
520 delete CPTest |
|
521 [Endtest] |
|
522 |
|
523 [Test] |
|
524 title CommandL KMPXCommandIdCollectionSet video ASYNC |
|
525 create ut_collectionplugintest CPTest |
|
526 CPTest CreateNewMedia |
|
527 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo |
|
528 CPTest CommandL ASYNC KMPXCommandIdCollectionSet |
|
529 CPTest HandleStepL |
|
530 delete CPTest |
|
531 [Endtest] |
|
532 |
|
533 [Test] |
|
534 title CommandL KMPXCommandIdCollectionSet album ASYNC |
|
535 create ut_collectionplugintest CPTest |
|
536 CPTest CreateNewMedia |
|
537 CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum |
|
538 CPTest CommandL ASYNC KMPXCommandIdCollectionSet |
|
539 CPTest HandleStepL |
|
540 delete CPTest |
|
541 [Endtest] |
|
542 |
|
543 [Test] |
|
544 title CommandL KMPXCommandIdCollectionSet invalid ASYNC |
|
545 create ut_collectionplugintest CPTest |
|
546 CPTest CreateNewMedia |
|
547 CPTest SetMediaAttribute EMediaGeneralId 0 -1 |
|
548 CPTest CommandL ASYNC KMPXCommandIdCollectionSet |
|
549 CPTest HandleStepL |
|
550 delete CPTest |
|
551 [Endtest] |
|
552 |
|
553 [Test] |
|
554 title FindAllL |
|
555 create ut_collectionplugintest CPTest |
|
556 CPTest FindAllL |
|
557 delete CPTest |
|
558 [Endtest] |
|
559 |
|
560 [Test] |
|
561 title FindAllSyncL |
|
562 create ut_collectionplugintest CPTest |
|
563 CPTest FindAllSyncL |
|
564 delete CPTest |
|
565 [Endtest] |
|
566 |
|
567 [Test] |
|
568 title GetCapabilities |
|
569 create ut_collectionplugintest CPTest |
|
570 CPTest GetCapabilities |
|
571 delete CPTest |
|
572 [Endtest] |
|
573 |
|
574 [Test] |
|
575 title AddL |
|
576 create ut_collectionplugintest CPTest |
|
577 CPTest AddL |
|
578 delete CPTest |
|
579 [Endtest] |
|
580 |
|
581 [Test] |
|
582 title RemoveL |
|
583 create ut_collectionplugintest CPTest |
|
584 CPTest RemoveL |
|
585 delete CPTest |
|
586 [Endtest] |
|
587 |
|
588 [Test] |
|
589 title SetL |
|
590 create ut_collectionplugintest CPTest |
|
591 CPTest SetL |
|
592 delete CPTest |
|
593 [Endtest] |
|
594 |
|
595 [Test] |
|
596 title HandleOperationCompleted |
|
597 create ut_collectionplugintest CPTest |
|
598 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
599 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
600 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
601 delete CPTest |
|
602 [Endtest] |
|
603 |
|
604 [Test] |
|
605 title HandleOperationCompleted asyncfileoperations deleted |
|
606 create ut_collectionplugintest CPTest |
|
607 CPTest DeleteStub EAsyncFileOperations |
|
608 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove |
|
609 CPTest DeleteStub EAsyncFileOperations |
|
610 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy |
|
611 CPTest DeleteStub EAsyncFileOperations |
|
612 CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete |
|
613 delete CPTest |
|
614 [Endtest] |
|
615 |
|
616 [Test] |
|
617 title HandleMyVideosDbEvent EMPXItemDeleted |
|
618 create ut_collectionplugintest CPTest |
|
619 CPTest HandleMyVideosDbEvent EMPXItemDeleted 0 1 |
|
620 delete CPTest |
|
621 [Endtest] |
|
622 |
|
623 [Test] |
|
624 title HandleMyVideosDbEvent EMPXItemDeleted, categories deleted |
|
625 create ut_collectionplugintest CPTest |
|
626 CPTest DeleteStub ECategories |
|
627 CPTest HandleMyVideosDbEvent EMPXItemDeleted 0 1 |
|
628 delete CPTest |
|
629 [Endtest] |
|
630 |
|
631 [Test] |
|
632 title HandleMyVideosDbEvent EMPXItemDeleted messagelist leaves |
|
633 create ut_collectionplugintest CPTest |
|
634 CPTest SetVideoListFetching 0 |
|
635 CPTest HandleMyVideosDbEvent EMPXItemDeleted KMPXIdLeave 2 |
|
636 delete CPTest |
|
637 [Endtest] |
|
638 |
|
639 [Test] |
|
640 title HandleMyVideosDbEvent EMPXItemInserted |
|
641 create ut_collectionplugintest CPTest |
|
642 CPTest SetVideoListFetching 0 |
|
643 CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2 |
|
644 delete CPTest |
|
645 [Endtest] |
|
646 |
|
647 [Test] |
|
648 title HandleMyVideosDbEvent EMPXItemInserted, list fetching |
|
649 create ut_collectionplugintest CPTest |
|
650 CPTest SetVideoListFetching 1 |
|
651 CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2 |
|
652 delete CPTest |
|
653 [Endtest] |
|
654 |
|
655 [Test] |
|
656 title HandleMyVideosDbEvent EMPXItemInserted, cancel cache list fetching |
|
657 create ut_collectionplugintest CPTest |
|
658 CPTest CancelCacheListFetching 1 |
|
659 CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2 |
|
660 delete CPTest |
|
661 [Endtest] |
|
662 |
|
663 [Test] |
|
664 title HandleMyVideosDbEvent EMPXItemInserted messagelist leaves |
|
665 create ut_collectionplugintest CPTest |
|
666 CPTest SetVideoListFetching 0 |
|
667 CPTest HandleMyVideosDbEvent EMPXItemInserted KMPXIdLeave 2 |
|
668 delete CPTest |
|
669 [Endtest] |
|
670 |
|
671 [Test] |
|
672 title HandleMyVideosDbEvent EMPXItemModified |
|
673 create ut_collectionplugintest CPTest |
|
674 CPTest HandleMyVideosDbEvent EMPXItemModified 2 3 |
|
675 delete CPTest |
|
676 [Endtest] |
|
677 |
|
678 [Test] |
|
679 title HandleMyVideosDbEvent EMPXItemModified, invalid video |
|
680 create ut_collectionplugintest CPTest |
|
681 CPTest HandleMyVideosDbEvent EMPXItemModified KInvalidId |
|
682 delete CPTest |
|
683 [Endtest] |
|
684 |
|
685 [Test] |
|
686 title HandleMyVideosDbEvent EMPXItemModified, invalid and valid videos |
|
687 create ut_collectionplugintest CPTest |
|
688 CPTest HandleMyVideosDbEvent EMPXItemModified 1 KInvalidId 2 |
|
689 delete CPTest |
|
690 [Endtest] |
|
691 |
|
692 [Test] |
|
693 title HandleMyVideosDbEvent EMPXItemModified messagelist leaves |
|
694 create ut_collectionplugintest CPTest |
|
695 CPTest SetVideoListFetching 0 |
|
696 CPTest HandleMyVideosDbEvent EMPXItemModified KMPXIdLeave 2 |
|
697 delete CPTest |
|
698 [Endtest] |
|
699 |
|
700 [Test] |
|
701 title AddVideoToMdsAndCacheL |
|
702 create ut_collectionplugintest CPTest |
|
703 CPTest CreateNewMedia EMediaGeneralId 1 EMediaTypeVideo |
|
704 CPTest AddVideoToMdsAndCacheL |
|
705 delete CPTest |
|
706 [Endtest] |
|
707 |
|
708 [Test] |
|
709 title SetVideoL id found |
|
710 create ut_collectionplugintest CPTest |
|
711 CPTest CreateNewMedia |
|
712 CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo |
|
713 CPTest AddMediaToCache |
|
714 CPTest SetVideoL 1 |
|
715 delete CPTest |
|
716 [Endtest] |
|
717 |
|
718 [Test] |
|
719 title SetVideoL leave |
|
720 create ut_collectionplugintest CPTest |
|
721 allownextresult -20 |
|
722 CPTest SetVideoL KMPXIdLeave |
|
723 delete CPTest |
|
724 [Endtest] |
|
725 |
|
726 [Test] |
|
727 title SetVideoL id not found |
|
728 create ut_collectionplugintest CPTest |
|
729 CPTest SetVideoL KMPXIdNotFound |
|
730 delete CPTest |
|
731 [Endtest] |
|
732 |
|
733 [Test] |
|
734 title SetVideoL item changed |
|
735 create ut_collectionplugintest CPTest |
|
736 CPTest SetVideoL KMPXIdChanged |
|
737 delete CPTest |
|
738 [Endtest] |
|
739 |
|
740 [Test] |
|
741 title SendMyVideosMessageL |
|
742 create ut_collectionplugintest CPTest |
|
743 CPTest SendMyVideosMessageL 0 KVcxCommandMyVideosGetMediaFullDetailsByMpxId |
|
744 delete CPTest |
|
745 [Endtest] |
|
746 |
|
747 [Test] |
|
748 title SendMyVideosMessageL no cmd |
|
749 create ut_collectionplugintest CPTest |
|
750 CPTest SendMyVideosMessageL 0 |
|
751 delete CPTest |
|
752 [Endtest] |
|
753 |
|
754 [Test] |
|
755 title SendMessages |
|
756 create ut_collectionplugintest CPTest |
|
757 CPTest SendMessages |
|
758 delete CPTest |
|
759 [Endtest] |
|
760 |
|
761 [Test] |
|
762 title HandleObjectPresentNotification |
|
763 create ut_collectionplugintest CPTest |
|
764 CPTest HandleObjectPresentNotification |
|
765 delete CPTest |
|
766 [Endtest] |
|
767 |
|
768 [Test] |
|
769 title HandleObjectPresentNotification, cache leaves on reset |
|
770 create ut_collectionplugintest CPTest |
|
771 CPTest HandleObjectPresentNotification 1 |
|
772 delete CPTest |
|
773 [Endtest] |
|
774 |
|
775 [Test] |
|
776 title NotifyNewVideosCountDecreasedL |
|
777 create ut_collectionplugintest CPTest |
|
778 CPTest NotifyNewVideosCountDecreasedL |
|
779 delete CPTest |
|
780 [Endtest] |
|
781 |
|
782 [Test] |
|
783 title HandleCreateVideoListResp list incomplete |
|
784 create ut_collectionplugintest CPTest |
|
785 CPTest HandleCreateVideoListResp 0 |
|
786 delete CPTest |
|
787 [Endtest] |
|
788 |
|
789 [Test] |
|
790 title HandleCreateVideoListResp list complete |
|
791 create ut_collectionplugintest CPTest |
|
792 CPTest HandleCreateVideoListResp 1 |
|
793 delete CPTest |
|
794 [Endtest] |
|
795 |
|
796 [Test] |
|
797 title HandleCreateVideoListResp list complete, leaves |
|
798 create ut_collectionplugintest CPTest |
|
799 CPTest HandleCreateVideoListResp 1 -1 |
|
800 delete CPTest |
|
801 [Endtest] |
|
802 |
|
803 [Test] |
|
804 title HandleCreateVideoListResp list incomplete, leaves |
|
805 create ut_collectionplugintest CPTest |
|
806 CPTest HandleCreateVideoListResp 0 -1 |
|
807 delete CPTest |
|
808 [Endtest] |