videocollection/mpxmyvideoscollection/tsrc/ut_collectionplugintest/conf/ut_collectionplugintest.cfg
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:34:36 +0300
branchRCL_3
changeset 70 375929f879c2
permissions -rw-r--r--
Revision: 201039 Kit: 201041

[Define]
CollectionIdMyVideos "0"

// STUBS
EActiveTask 1
EAlbums 2
EAsyncFileOperations 3
ECategories 4
EMDSDB 5
EMessageList 6
EOpenHandler 7
EVideoCache 8

KInvalidId -100

KSelectAll -2

SYNC 1
ASYNC 0

KVcxCommandMyVideosStartDownload 							0 // obsolete?
KVcxCommandMyVideosCancelDownload 						1 // obsolete?
KVcxCommandMyVideosResumeDownload 						2 // obsolete?
KVcxCommandMyVideosPauseDownload 							3 // obsolete?
KVcxCommandMyVideosGetMediaFullDetailsByMpxId	4 // async
KVcxCommandMyVideosGetMediasByMpxId 					5 // async
KVcxCommandMyVideosMove 											6 // async
KVcxCommandMyVideosCopy 											7 // async
KVcxCommandMyVideosDelete 										8 // async
KVcxCommandMyVideosAddToAlbum 								9 // async
KVcxCommandMyVideosRemoveFromAlbum 						10 // async
KVcxCommandMyVideosAddAlbum 									11 // async & sync
KVcxCommandMyVideosRemoveAlbums 							12 // async
KVcxCommandMyVideosCancelMoveOrCopy 					13 // sync
KVcxCommandMyVideosCancelDelete 							14 // sync
KVcxMessageMyVideosGetMediasByMpxIdResp				15 // async
KVcxMessageMyVideosItemsAppended 							16 // event
KVcxMessageMyVideosListComplete 							17 // event
KVcxMessageMyVideosMoveOrCopyStarted 					18 // event
KVcxMessageMyVideosDeleteStarted 							19 // event
KVcxMessageMyVideosMoveResp 									20 // event 
KVcxMessageMyVideosCopyResp 									21 // event
KVcxMessageMyVideosDeleteResp 								22 // event
KVcxMessageMyVideosMessageArray 							23

KVcxCommandIdMyVideos "20016BA0"
KMPXCommandIdCollectionSet "10282963"
KMPXCommandIdCollectionRemoveMedia "10282949"
KMPXCommandIdCollectionAdd "10282962"

EMPXItemDeleted 1
EMPXItemInserted 2
EMPXItemModified 3

// special variables used with vcxmyvideoscache_stub
KMPXIdLeave 999
KMPXIdNotFound 998
KMPXIdChanged 997

EMediaTypeVideo 0
EMediaTypeCategory 1
EMediaTypeAlbum 2

EMediaGeneralId 1
EMediaGeneralTitle 2

[Enddefine]

[Test]
title OpenL CollectionIdMyVideos
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
delete CPTest
[Endtest]

[Test]
title MediaL no medias
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest InsertToPath 1 EMediaTypeVideo
CPTest InsertToPath 2 EMediaTypeVideo
CPTest SelectPath 1
CPTest SelectAttributes EMediaGeneralId
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select one, video in cache
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest AddMediaToCache
CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo
CPTest AddMediaToCache
CPTest InsertToPath 1 EMediaTypeVideo
CPTest InsertToPath 2 EMediaTypeVideo
CPTest SelectPath 1
CPTest SelectAttributes EMediaGeneralId
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select one, video not in cache
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest InsertToPath KMPXIdNotFound EMediaTypeVideo
CPTest SelectPathId KMPXIdNotFound
CPTest SelectAttributes EMediaGeneralId
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select one, all attributes
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest AddMediaToCache
CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo
CPTest AddMediaToCache
CPTest InsertToPath 1 EMediaTypeVideo
CPTest InsertToPath 2 EMediaTypeVideo
CPTest SelectPath 1
CPTest SelectAttributes -1
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select one, no video in mds
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId KMPXIdNotFound EMediaTypeVideo
CPTest AddMediaToCache
CPTest InsertToPath KMPXIdNotFound EMediaTypeVideo
CPTest SelectPathId KMPXIdNotFound
CPTest SelectAttributes -1
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select none
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest SelectPath -1
CPTest SelectAttributes EMediaGeneralId
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select all
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest AddMediaToCache
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo
CPTest AddMediaToCache
CPTest InsertToPath 1 EMediaTypeVideo
CPTest InsertToPath 2 EMediaTypeVideo
CPTest SelectPath KSelectAll
CPTest SelectAttributes EMediaGeneralId
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title MediaL select all, all attributes
create ut_collectionplugintest CPTest
CPTest OpenL CollectionIdMyVideos
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest AddMediaToCache
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 2 EMediaTypeVideo
CPTest AddMediaToCache
CPTest InsertToPath 1 EMediaTypeVideo
CPTest InsertToPath 2 EMediaTypeVideo
CPTest SelectPath KSelectAll
CPTest SelectAttributes -1
CPTest MediaL
delete CPTest
[Endtest]

[Test]
title CancelRequest
create ut_collectionplugintest CPTest
CPTest CancelRequest
delete CPTest
[Endtest]

[Test]
title CommandL no cmd
create ut_collectionplugintest CPTest
allownextresult -6
CPTest CommandL SYNC
delete CPTest
[Endtest]

[Test]
title CommandL invalid cmd
create ut_collectionplugintest CPTest
allownextresult -5
CPTest CommandL SYNC "000001"
delete CPTest
[Endtest]

[Test]
title CommandL no sync value
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL -1 KMPXCommandIdCollectionAdd 
delete CPTest
[Endtest]

[Test]
title CommandL mv cmd, not supported
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest CreateNewCmd ASYNC KVcxCommandIdMyVideos -1
CPTest SetNewCmd
allownextresult -6
CPTest HandleStepL
delete CPTest
[Endtest]

[Test] 
title CommandL get full details
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest HandleStepL
delete CPTest
[Endtest]

[Test] 
title CommandL get full details, no id
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
allownextresult -6
CPTest HandleStepL
delete CPTest
[Endtest]

[Test] 
title CommandL get full details, no video found
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId KInvalidId EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediaFullDetailsByMpxId
allownextresult -1
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL get medias
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId 1 2 3
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL get medias, no ids
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId -1
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosGetMediasByMpxId
allownextresult -6
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL move
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL move, asyncfileoperations deleted
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest DeleteStub EAsyncFileOperations
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL copy
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL copy, asyncfileoperations deleted
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest DeleteStub EAsyncFileOperations
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL delete
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL delete, asyncfileoperations deleted
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
CPTest DeleteStub EAsyncFileOperations
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL add album sync
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum 
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
delete CPTest
[Endtest]

[Test]
title CommandL add album async
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL add album sync, albums deleted
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum 
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest DeleteStub EAlbums
CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
delete CPTest
[Endtest]

[Test]
title CommandL add album async, albums deleted
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddAlbum
CPTest DeleteStub EAlbums
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL remove albums
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveAlbums
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveAlbums
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL add to album
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest SetMediaAttribute EMediaGeneralTitle "Album1"
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosAddToAlbum
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosAddToAlbum
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL remove from album
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveFromAlbum
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosRemoveFromAlbum
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL cancel move or copy SYNC
create ut_collectionplugintest CPTest
CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy
CPTest CheckCurrentCmd -1
delete CPTest
[Endtest]

[Test]
title CommandL cancel move or copy ASYNC
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCancelMoveOrCopy
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL cancel delete SYNC
create ut_collectionplugintest CPTest
CPTest CommandL SYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete
CPTest CheckCurrentCmd -1
delete CPTest
[Endtest]

[Test]
title CommandL cancel delete ASYNC
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete
CPTest CheckCurrentCmd KVcxCommandIdMyVideos KVcxCommandMyVideosCancelDelete
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL remove media
create ut_collectionplugintest CPTest
CPTest CreateNewMedia 
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest CommandL ASYNC KMPXCommandIdCollectionRemoveMedia
CPTest CheckCurrentCmd KMPXCommandIdCollectionRemoveMedia
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionAdd
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL SYNC KMPXCommandIdCollectionAdd
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet video SYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL SYNC KMPXCommandIdCollectionSet
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet album SYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest CommandL SYNC KMPXCommandIdCollectionSet
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet invalid SYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 -1
allownextresult -1
CPTest CommandL SYNC KMPXCommandIdCollectionSet
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet video ASYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeVideo
CPTest CommandL ASYNC KMPXCommandIdCollectionSet
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet album ASYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 EMediaTypeAlbum
CPTest CommandL ASYNC KMPXCommandIdCollectionSet
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title CommandL KMPXCommandIdCollectionSet invalid ASYNC
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 0 -1
CPTest CommandL ASYNC KMPXCommandIdCollectionSet
CPTest HandleStepL
delete CPTest
[Endtest]

[Test]
title FindAllL
create ut_collectionplugintest CPTest
CPTest FindAllL
delete CPTest
[Endtest]

[Test]
title FindAllSyncL
create ut_collectionplugintest CPTest
CPTest FindAllSyncL
delete CPTest
[Endtest]

[Test]
title GetCapabilities
create ut_collectionplugintest CPTest
CPTest GetCapabilities
delete CPTest
[Endtest]

[Test]
title AddL
create ut_collectionplugintest CPTest
CPTest AddL
delete CPTest
[Endtest]

[Test]
title RemoveL
create ut_collectionplugintest CPTest
CPTest RemoveL
delete CPTest
[Endtest]

[Test]
title SetL
create ut_collectionplugintest CPTest
CPTest SetL
delete CPTest
[Endtest]

[Test]
title HandleOperationCompleted
create ut_collectionplugintest CPTest
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
delete CPTest
[Endtest]

[Test]
title HandleOperationCompleted asyncfileoperations deleted
create ut_collectionplugintest CPTest
CPTest DeleteStub EAsyncFileOperations
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosMove
CPTest DeleteStub EAsyncFileOperations
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosCopy
CPTest DeleteStub EAsyncFileOperations
CPTest CommandL ASYNC KVcxCommandIdMyVideos KVcxCommandMyVideosDelete
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemDeleted
create ut_collectionplugintest CPTest
CPTest HandleMyVideosDbEvent EMPXItemDeleted 0 1
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemDeleted, categories deleted
create ut_collectionplugintest CPTest
CPTest DeleteStub ECategories
CPTest HandleMyVideosDbEvent EMPXItemDeleted 0 1
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemDeleted messagelist leaves
create ut_collectionplugintest CPTest
CPTest SetVideoListFetching 0
CPTest HandleMyVideosDbEvent EMPXItemDeleted KMPXIdLeave 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemInserted
create ut_collectionplugintest CPTest
CPTest SetVideoListFetching 0
CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemInserted, list fetching
create ut_collectionplugintest CPTest
CPTest SetVideoListFetching 1
CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemInserted, cancel cache list fetching
create ut_collectionplugintest CPTest
CPTest CancelCacheListFetching 1
CPTest HandleMyVideosDbEvent EMPXItemInserted 1 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemInserted messagelist leaves
create ut_collectionplugintest CPTest
CPTest SetVideoListFetching 0
CPTest HandleMyVideosDbEvent EMPXItemInserted KMPXIdLeave 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemModified
create ut_collectionplugintest CPTest
CPTest HandleMyVideosDbEvent EMPXItemModified 2 3
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemModified, invalid video
create ut_collectionplugintest CPTest
CPTest HandleMyVideosDbEvent EMPXItemModified KInvalidId
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemModified, invalid and valid videos
create ut_collectionplugintest CPTest
CPTest HandleMyVideosDbEvent EMPXItemModified 1 KInvalidId 2
delete CPTest
[Endtest]

[Test]
title HandleMyVideosDbEvent EMPXItemModified messagelist leaves
create ut_collectionplugintest CPTest
CPTest SetVideoListFetching 0
CPTest HandleMyVideosDbEvent EMPXItemModified KMPXIdLeave 2
delete CPTest
[Endtest]

[Test]
title AddVideoToMdsAndCacheL
create ut_collectionplugintest CPTest
CPTest CreateNewMedia EMediaGeneralId 1 EMediaTypeVideo
CPTest AddVideoToMdsAndCacheL
delete CPTest
[Endtest]

[Test]
title SetVideoL id found
create ut_collectionplugintest CPTest
CPTest CreateNewMedia
CPTest SetMediaAttribute EMediaGeneralId 1 EMediaTypeVideo
CPTest AddMediaToCache
CPTest SetVideoL 1
delete CPTest
[Endtest]

[Test]
title SetVideoL leave
create ut_collectionplugintest CPTest
allownextresult -20
CPTest SetVideoL KMPXIdLeave
delete CPTest
[Endtest]

[Test]
title SetVideoL id not found
create ut_collectionplugintest CPTest
CPTest SetVideoL KMPXIdNotFound
delete CPTest
[Endtest]

[Test]
title SetVideoL item changed
create ut_collectionplugintest CPTest
CPTest SetVideoL KMPXIdChanged
delete CPTest
[Endtest]

[Test]
title SendMyVideosMessageL
create ut_collectionplugintest CPTest
CPTest SendMyVideosMessageL 0 KVcxCommandMyVideosGetMediaFullDetailsByMpxId
delete CPTest
[Endtest]

[Test]
title SendMyVideosMessageL no cmd
create ut_collectionplugintest CPTest
CPTest SendMyVideosMessageL 0
delete CPTest
[Endtest]

[Test]
title SendMessages
create ut_collectionplugintest CPTest
CPTest SendMessages
delete CPTest
[Endtest]

[Test]
title HandleObjectPresentNotification
create ut_collectionplugintest CPTest
CPTest HandleObjectPresentNotification
delete CPTest
[Endtest]

[Test]
title HandleObjectPresentNotification, cache leaves on reset
create ut_collectionplugintest CPTest
CPTest HandleObjectPresentNotification 1
delete CPTest
[Endtest]

[Test]
title NotifyNewVideosCountDecreasedL
create ut_collectionplugintest CPTest
CPTest NotifyNewVideosCountDecreasedL
delete CPTest
[Endtest]

[Test]
title HandleCreateVideoListResp list incomplete
create ut_collectionplugintest CPTest
CPTest HandleCreateVideoListResp 0
delete CPTest
[Endtest]

[Test]
title HandleCreateVideoListResp list complete
create ut_collectionplugintest CPTest
CPTest HandleCreateVideoListResp 1
delete CPTest
[Endtest]

[Test]
title HandleCreateVideoListResp list complete, leaves
create ut_collectionplugintest CPTest
CPTest HandleCreateVideoListResp 1 -1
delete CPTest
[Endtest]

[Test]
title HandleCreateVideoListResp list incomplete, leaves
create ut_collectionplugintest CPTest
CPTest HandleCreateVideoListResp 0 -1
delete CPTest
[Endtest]