summaryrefslogtreecommitdiff
path: root/p2pvr/daemon/unittests/mockDevices.cpp
blob: e5ec6a4eae09e76f274b928fc1adce6f12532d26 (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 new P2PVR::DVB::Testing::MockTuner(path, ic);
		}
	}
}