#ifndef D_MOCK_BT_REQUEST_FACTORY_H #define D_MOCK_BT_REQUEST_FACTORY_H #include "BtRequestFactory.h" #include "BtRequestMessage.h" namespace aria2 { class MockBtRequestFactory : public BtRequestFactory { public: virtual ~MockBtRequestFactory() {} virtual void addTargetPiece(const std::shared_ptr& piece) CXX11_OVERRIDE {} virtual void removeTargetPiece(const std::shared_ptr& piece) CXX11_OVERRIDE {} virtual void removeAllTargetPiece() CXX11_OVERRIDE {} virtual size_t countTargetPiece() CXX11_OVERRIDE { return 0; } virtual size_t countMissingBlock() CXX11_OVERRIDE { return 0; } virtual void removeCompletedPiece() CXX11_OVERRIDE {} virtual void doChokedAction() CXX11_OVERRIDE {} virtual std::vector> createRequestMessages (size_t max, bool endGame) CXX11_OVERRIDE { return std::vector>{}; } virtual std::vector getTargetPieceIndexes() const CXX11_OVERRIDE { return std::vector{}; } }; } // namespace aria2 #endif // D_MOCK_BT_REQUEST_FACTORY_H