added AudioClip constructor without ID, to be used before storeAudioClip()
added run-time type info to Playable: getType(), getAudioClip() and getPlaylist()
This commit is contained in:
parent
39acf9f58f
commit
7a56bbf8be
13 changed files with 333 additions and 35 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.20 $
|
||||
Version : $Revision: 1.21 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClientTest.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -430,10 +430,12 @@ WebStorageClientTest :: audioClipTest(void)
|
|||
|
||||
|
||||
// test storeAudioClip() and getAudioClip()
|
||||
Ptr<UniqueId>::Ref idxx = UniqueId::generateId();
|
||||
Ptr<const Glib::ustring>::Ref title(new Glib::ustring(
|
||||
"Muppet Show theme"));
|
||||
Ptr<time_duration>::Ref playlength(new time_duration(0,0,11,0));
|
||||
Ptr<std::string>::Ref uri(new std::string("file:var/test10001.mp3"));
|
||||
audioClip.reset(new AudioClip(idxx, playlength, uri));
|
||||
Ptr<const std::string>::Ref uri(new std::string(
|
||||
"file:var/test10001.mp3"));
|
||||
audioClip.reset(new AudioClip(title, playlength, uri));
|
||||
|
||||
try {
|
||||
wsc->storeAudioClip(sessionId, audioClip);
|
||||
|
@ -442,6 +444,9 @@ WebStorageClientTest :: audioClipTest(void)
|
|||
CPPUNIT_FAIL(e.what());
|
||||
}
|
||||
|
||||
CPPUNIT_ASSERT(audioClip->getId());
|
||||
Ptr<UniqueId>::Ref idxx = audioClip->getId();
|
||||
|
||||
try {
|
||||
CPPUNIT_ASSERT( wsc->existsAudioClip(sessionId, idxx));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue