diff --git a/livesupport/bin/user_setup.sh b/livesupport/bin/user_setup.sh
index dfef4eb14..608d824ee 100755
--- a/livesupport/bin/user_setup.sh
+++ b/livesupport/bin/user_setup.sh
@@ -21,8 +21,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
-# Author : $Author: maroy $
-# Version : $Revision: 1.6 $
+# Author : $Author: fgerlits $
+# Version : $Revision: 1.7 $
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup.sh,v $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
@@ -311,6 +311,14 @@ cat $products_dir/gLiveSupport/etc/gLiveSupport.xml.user-template \
| sed -e "$replace_sed_string" \
> $configdir/gLiveSupport.xml
+cat $products_dir/gLiveSupport/etc/authenticationClient.xml.user-template \
+ | sed -e "$replace_sed_string" \
+ > $configdir/authenticationClient.xml
+
+cat $products_dir/gLiveSupport/etc/storageClient.xml.user-template \
+ | sed -e "$replace_sed_string" \
+ > $configdir/storageClient.xml
+
#-------------------------------------------------------------------------------
# Create the public html directory, and links to the PHP directories
diff --git a/livesupport/products/gLiveSupport/etc/authenticationClient.xml.user-template b/livesupport/products/gLiveSupport/etc/authenticationClient.xml.user-template
new file mode 100644
index 000000000..1c453d095
--- /dev/null
+++ b/livesupport/products/gLiveSupport/etc/authenticationClient.xml.user-template
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
diff --git a/livesupport/products/gLiveSupport/etc/storageClient.xml.user-template b/livesupport/products/gLiveSupport/etc/storageClient.xml.user-template
new file mode 100644
index 000000000..aeef10013
--- /dev/null
+++ b/livesupport/products/gLiveSupport/etc/storageClient.xml.user-template
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
diff --git a/livesupport/products/gLiveSupport/src/AudioPlayerTest.cxx b/livesupport/products/gLiveSupport/src/AudioPlayerTest.cxx
index f2ad1c294..d9a95762a 100644
--- a/livesupport/products/gLiveSupport/src/AudioPlayerTest.cxx
+++ b/livesupport/products/gLiveSupport/src/AudioPlayerTest.cxx
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: maroy $
- Version : $Revision: 1.2 $
+ Author : $Author: fgerlits $
+ Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/AudioPlayerTest.cxx,v $
------------------------------------------------------------------------------*/
@@ -76,13 +76,13 @@ static const std::string audioPlayerConfigFileName
* The name of the configuration file for the local storage.
*/
static const std::string storageClientConfigFileName
- = "etc/storageClient.xml";
+ = "storageClient.xml";
/**
* The name of the configuration file for the authentication client.
*/
static const std::string authenticationClientConfigFileName
- = "etc/authenticationClient.xml";
+ = "authenticationClient.xml";
/* =============================================== local function prototypes */
@@ -121,9 +121,9 @@ AudioPlayerTest :: setUp(void) throw ()
}
try {
- Ptr::Ref parser(
- new xmlpp::DomParser(storageClientConfigFileName, true));
- const xmlpp::Document * document = parser->get_document();
+ xmlpp::DomParser parser;
+ const xmlpp::Document * document = getConfigDocument(parser,
+ storageClientConfigFileName);
const xmlpp::Element * root = document->get_root_node();
Ptr::Ref storageClientFactory;
@@ -145,9 +145,9 @@ AudioPlayerTest :: setUp(void) throw ()
}
try {
- Ptr::Ref parser(
- new xmlpp::DomParser(authenticationClientConfigFileName, true));
- const xmlpp::Document * document = parser->get_document();
+ xmlpp::DomParser parser;
+ const xmlpp::Document * document = getConfigDocument(parser,
+ authenticationClientConfigFileName);
const xmlpp::Element * root = document->get_root_node();
Ptr::Ref authentClientFactory;
@@ -252,7 +252,7 @@ AudioPlayerTest :: playAudioClipTest(void)
CPPUNIT_ASSERT(!audioPlayer->isPlaying());
CPPUNIT_ASSERT_NO_THROW(
- storage->releaseAudioClip(sessionId, audioClip)
+ storage->releaseAudioClip(audioClip)
);
audioPlayer->close();
}
@@ -282,9 +282,11 @@ AudioPlayerTest :: playPlaylistTest(void)
);
CPPUNIT_ASSERT_NO_THROW(
- audioPlayer->openAndStart(playlist)
+ audioPlayer->open(*playlist->getUri())
);
+ CPPUNIT_ASSERT(!audioPlayer->isPlaying());
+ CPPUNIT_ASSERT_NO_THROW(audioPlayer->start());
CPPUNIT_ASSERT(audioPlayer->isPlaying());
Ptr::Ref sleepT(new time_duration(microseconds(10)));
@@ -294,7 +296,7 @@ AudioPlayerTest :: playPlaylistTest(void)
CPPUNIT_ASSERT(!audioPlayer->isPlaying());
CPPUNIT_ASSERT_NO_THROW(
- storage->releasePlaylist(sessionId, playlist)
+ storage->releasePlaylist(playlist)
);
audioPlayer->close();
}
diff --git a/livesupport/products/gLiveSupport/src/AudioPlayerTest.h b/livesupport/products/gLiveSupport/src/AudioPlayerTest.h
index d32cf936c..999fa866e 100644
--- a/livesupport/products/gLiveSupport/src/AudioPlayerTest.h
+++ b/livesupport/products/gLiveSupport/src/AudioPlayerTest.h
@@ -22,7 +22,7 @@
Author : $Author: fgerlits $
- Version : $Revision: 1.1 $
+ Version : $Revision: 1.2 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/AudioPlayerTest.h,v $
------------------------------------------------------------------------------*/
@@ -44,6 +44,7 @@
#include "LiveSupport/Core/Ptr.h"
#include "LiveSupport/Core/SessionId.h"
+#include "LiveSupport/Core/BaseTestMethod.h"
namespace LiveSupport {
@@ -60,13 +61,13 @@ using namespace LiveSupport::Core;
/* =============================================================== data types */
/**
- * Testing the AudioPlayerInterface::openAndStart() method.
+ * Testing audio playback from the storage.
*
* @author $Author: fgerlits $
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* @see AudioPlayerFactory
*/
-class AudioPlayerTest : public CPPUNIT_NS::TestFixture
+class AudioPlayerTest : public BaseTestMethod
{
CPPUNIT_TEST_SUITE(AudioPlayerTest);
CPPUNIT_TEST(firstTest);