diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-02 21:25:12 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-02 21:25:12 +0100 |
commit | 42107bb466982e3d6810fb5cb36a97fa8a225042 (patch) | |
tree | 59fb8cb5ab5f934c32031db2a7f383403860dca2 /p2pvr/daemon/unittests/testp2ice.cpp | |
parent | Update to work with system dbpp (diff) | |
parent | Slash the amount of inclusion in pre-compiled headers (diff) | |
download | p2pvr-42107bb466982e3d6810fb5cb36a97fa8a225042.tar.bz2 p2pvr-42107bb466982e3d6810fb5cb36a97fa8a225042.tar.xz p2pvr-42107bb466982e3d6810fb5cb36a97fa8a225042.zip |
Merge branch 'project2-adhoc-plugins'p2pvr-0.1.2
Diffstat (limited to 'p2pvr/daemon/unittests/testp2ice.cpp')
-rw-r--r-- | p2pvr/daemon/unittests/testp2ice.cpp | 14 |
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 ); |