aria2/test/MockBtRequestFactory.h
Tatsuhiro Tsujikawa c342bde962 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for
	mostly read-only purpose.
2010-02-28 12:30:11 +00:00

38 lines
951 B
C++

#ifndef _D_MOCK_BT_REQUEST_FACTORY_H_
#define _D_MOCK_BT_REQUEST_FACTORY_H_
#include "BtRequestFactory.h"
namespace aria2 {
class MockBtRequestFactory : public BtRequestFactory {
public:
virtual ~MockBtRequestFactory() {}
virtual void addTargetPiece(const SharedHandle<Piece>& piece) {}
virtual void removeTargetPiece(const SharedHandle<Piece>& piece) {}
virtual void removeAllTargetPiece() {}
virtual size_t countTargetPiece() { return 0; }
virtual size_t countMissingBlock() { return 0; }
virtual void removeCompletedPiece() {}
virtual void doChokedAction() {}
virtual void createRequestMessages
(std::vector<SharedHandle<BtMessage> >& requests, size_t max) {}
virtual void createRequestMessagesOnEndGame
(std::vector<SharedHandle<BtMessage> >& requests, size_t max) {}
virtual void getTargetPieceIndexes(std::vector<size_t>& indexes) const {}
};
} // namespace aria2
#endif // _D_MOCK_BT_REQUEST_FACTORY_H_