aria2/test/MockDHTTask.h
Tatsuhiro Tsujikawa 1b7c198289 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: 
prefix to c++
	standard classes.
	Included string.h where mem* function are used.
2008-02-08 15:53:45 +00:00

28 lines
449 B
C++

#ifndef _D_MOCK_DHT_TASK_H_
#define _D_MOCK_DHT_TASK_H_
#include "DHTTask.h"
#include "DHTNode.h"
namespace aria2 {
class MockDHTTask:public DHTTask {
public:
SharedHandle<DHTNode> _remoteNode;
MockDHTTask(const SharedHandle<DHTNode>& remoteNode):_remoteNode(remoteNode) {}
virtual ~MockDHTTask() {}
virtual void startup() {}
virtual bool finished()
{
return false;
}
};
} // namespace aria2
#endif // _D_MOCK_DHT_TASK_H_