summaryrefslogtreecommitdiff
path: root/p2pvr/daemon/unittests/mockDevices.cpp
blob: 135664f612db8406c44d7b003bba10e1ca688a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "mockDevices.h"
#include <mockTuner.h>
#include <Ice/ObjectAdapter.h>

namespace P2PVR {
	namespace Testing {
		MockDevices::MockDevices(Ice::CommunicatorPtr c) :
			ic(c)
		{
			devices.push_back("/dev/null");
		}

		TunerPtr
		MockDevices::openTuner(const boost::filesystem::path & path) const
		{
			return std::make_shared<P2PVR::DVB::Testing::MockTuner>(path, ic);
		}
	}
}