mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
gcc 3.4.4 support: * src/DefaultBtContext.cc: int32_t -> int * src/main.cc: int -> int32_t, int32_t -> int * src/messageDigest.h: uint32_t -> unsigned int * src/NameResolver.h: int32_t -> int * src/PeerConnection.cc: int -> int32_t * src/SpeedCalc.cc: int32_t -> int * src/TrackerUpdateCommand.h: int -> int32_t * src/Util.cc: int32_t -> int * src/Util.h: int32_t -> int * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t * test/AnnounceListTest.cc: int -> int32_t * test/ChunkedEncodingTest.cc: int -> int32_t * test/DataTest.cc: int -> int32_t * test/DefaultBtRequestFactoryTest.cc: int -> int32_t * test/DefaultPeerListProcessorTest.cc: int -> int32_t * test/DefaultPieceStorageTest.cc: int -> int32_t * test/FeatureConfigTest.cc: int -> int32_t * test/MetalinkEntryTest.cc: int -> int32_t * test/MockBtRequestFactory.h: int -> int32_t * test/MockPieceStorage.h: int -> int32_t * test/OptionTest.cc: int -> int32_t * test/RequestTest.cc: int -> int32_t * test/SegmentManTest.cc: int -> int32_t * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
30 lines
865 B
C++
30 lines
865 B
C++
#ifndef _D_MOCK_BT_REQUEST_FACTORY_H_
|
|
#define _D_MOCK_BT_REQUEST_FACTORY_H_
|
|
|
|
#include "BtRequestFactory.h"
|
|
|
|
class MockBtRequestFactory : public BtRequestFactory {
|
|
public:
|
|
virtual ~MockBtRequestFactory() {}
|
|
|
|
virtual void addTargetPiece(const PieceHandle& piece) {}
|
|
|
|
virtual void removeTargetPiece(const PieceHandle& piece) {}
|
|
|
|
virtual void removeAllTargetPiece() {}
|
|
|
|
virtual int32_t countTargetPiece() { return 0; }
|
|
|
|
virtual void removeCompletedPiece() {}
|
|
|
|
virtual void doChokedAction() {}
|
|
|
|
virtual BtMessages createRequestMessages(int32_t max) { return BtMessages(); }
|
|
|
|
virtual BtMessages createRequestMessagesOnEndGame(int32_t max) { return BtMessages(); }
|
|
};
|
|
|
|
typedef SharedHandle<MockBtRequestFactory> MockBtRequestFactoryHandle;
|
|
typedef WeakHandle<MockBtRequestFactory> MockBtRequestFactoryWeakHandle;
|
|
|
|
#endif // _D_MOCK_BT_REQUEST_FACTORY_H_
|