summaryrefslogtreecommitdiff
path: root/p2pvr/daemon/unittests/mockDevices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'p2pvr/daemon/unittests/mockDevices.cpp')
-rw-r--r--p2pvr/daemon/unittests/mockDevices.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/p2pvr/daemon/unittests/mockDevices.cpp b/p2pvr/daemon/unittests/mockDevices.cpp
index 777d5d3..f0ec930 100644
--- a/p2pvr/daemon/unittests/mockDevices.cpp
+++ b/p2pvr/daemon/unittests/mockDevices.cpp
@@ -2,22 +2,24 @@
#include <mockTuner.h>
#include <Ice/ObjectAdapter.h>
-P2PVR::TunerPrx MockDevices::GetTunerSpecific(const DVBSI::DeliveryPtr&, const Ice::Current & ice)
+namespace P2PVR {
+namespace Testing {
+TunerPrx MockDevices::GetTunerSpecific(const DVBSI::DeliveryPtr&, const Ice::Current & ice)
{
- return P2PVR::PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
+ return PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
}
-P2PVR::TunerPrx MockDevices::GetTunerAny(const DVBSI::DeliveryPtr&, const Ice::Current & ice)
+TunerPrx MockDevices::GetTunerAny(const DVBSI::DeliveryPtr&, const Ice::Current & ice)
{
- return P2PVR::PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
+ return PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
}
-P2PVR::PrivateTunerPrx MockDevices::GetPrivateTuner(Ice::Short, const Ice::Current & ice)
+PrivateTunerPrx MockDevices::GetPrivateTuner(Ice::Short, const Ice::Current & ice)
{
- return P2PVR::PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
+ return PrivateTunerPrx::checkedCast(ice.adapter->addWithUUID(new MockTuner()));
}
-void MockDevices::ReleaseTuner(const P2PVR::TunerPrx & tuner, const Ice::Current & ice)
+void MockDevices::ReleaseTuner(const TunerPrx & tuner, const Ice::Current & ice)
{
ice.adapter->remove(tuner->ice_getIdentity());
}
@@ -26,4 +28,6 @@ Ice::Int MockDevices::TunerCount(const Ice::Current&)
{
return 1;
}
+}
+}