mirror of https://github.com/aria2/aria2
38 lines
957 B
C++
38 lines
957 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 std::shared_ptr<Piece>& piece) {}
|
|
|
|
virtual void removeTargetPiece(const std::shared_ptr<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<std::shared_ptr<BtMessage> >& requests, size_t max) {}
|
|
|
|
virtual void createRequestMessagesOnEndGame
|
|
(std::vector<std::shared_ptr<BtMessage> >& requests, size_t max) {}
|
|
|
|
virtual void getTargetPieceIndexes(std::vector<size_t>& indexes) const {}
|
|
};
|
|
|
|
} // namespace aria2
|
|
|
|
#endif // D_MOCK_BT_REQUEST_FACTORY_H
|