summaryrefslogtreecommitdiff
path: root/p2pvr/daemon/unittests/testp2ice.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-10-02 21:19:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-10-02 21:19:51 +0100
commit009c003f4235db50002ee732309dff175ac8f969 (patch)
tree596d7d66e6786ef3853283834d1093c9a74ba3e8 /p2pvr/daemon/unittests/testp2ice.cpp
parentUpdate to work with system dbpp (diff)
downloadp2pvr-009c003f4235db50002ee732309dff175ac8f969.tar.bz2
p2pvr-009c003f4235db50002ee732309dff175ac8f969.tar.xz
p2pvr-009c003f4235db50002ee732309dff175ac8f969.zip
Swtich everything to new libs/interfaces
Diffstat (limited to 'p2pvr/daemon/unittests/testp2ice.cpp')
-rw-r--r--p2pvr/daemon/unittests/testp2ice.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/p2pvr/daemon/unittests/testp2ice.cpp b/p2pvr/daemon/unittests/testp2ice.cpp
index 8229bf5..dc584b6 100644
--- a/p2pvr/daemon/unittests/testp2ice.cpp
+++ b/p2pvr/daemon/unittests/testp2ice.cpp
@@ -5,6 +5,8 @@
#include <definedDirs.h>
#include <sourceObject.h>
#include <testAppInstance.h>
+#include <stream.h>
+#include <rowSet.h>
const boost::filesystem::path variant = binDir.leaf();
const boost::filesystem::path compiler = binDir.parent_path().leaf();
@@ -15,19 +17,19 @@ static
void
commonTests()
{
- BOOST_REQUIRE(ElementLoader::getFor("p2pvrrecordingstream"));
- BOOST_REQUIRE(ElementLoader::getFor("p2pvrservicestream"));
- BOOST_REQUIRE(ElementLoader::getFor("P2PVR-SI-GetEvent"));
+ BOOST_REQUIRE(StreamFactory::get("p2pvrrecordingstream"));
+ BOOST_REQUIRE(StreamFactory::get("p2pvrservicestream"));
+ BOOST_REQUIRE(RowSetFactory::get("P2PVR-SI-GetEvent"));
}
static
void
unloadTests()
{
- BOOST_REQUIRE_THROW(ElementLoader::getFor("P2PVR-SI-GetEvent"), NotSupported);
+ BOOST_REQUIRE_THROW(RowSetFactory::get("P2PVR-SI-GetEvent"), AdHoc::NoSuchPluginException);
// Known issue, these *should* unload, but for some reason, don't.
- BOOST_WARN_THROW(ElementLoader::getFor("p2pvrrecordingstream"), NotSupported);
- BOOST_WARN_THROW(ElementLoader::getFor("p2pvrservicestream"), NotSupported);
+ BOOST_WARN_THROW(StreamFactory::get("p2pvrrecordingstream"), AdHoc::NoSuchPluginException);
+ BOOST_WARN_THROW(StreamFactory::get("p2pvrservicestream"), AdHoc::NoSuchPluginException);
}
BOOST_GLOBAL_FIXTURE( TestAppInstance );