mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
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.
This commit is contained in:
parent
d82e183d34
commit
1b7c198289
801 changed files with 12024 additions and 8627 deletions
|
@ -3,13 +3,15 @@
|
|||
|
||||
#include "BtRequestFactory.h"
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
class MockBtRequestFactory : public BtRequestFactory {
|
||||
public:
|
||||
virtual ~MockBtRequestFactory() {}
|
||||
|
||||
virtual void addTargetPiece(const PieceHandle& piece) {}
|
||||
virtual void addTargetPiece(const SharedHandle<Piece>& piece) {}
|
||||
|
||||
virtual void removeTargetPiece(const PieceHandle& piece) {}
|
||||
virtual void removeTargetPiece(const SharedHandle<Piece>& piece) {}
|
||||
|
||||
virtual void removeAllTargetPiece() {}
|
||||
|
||||
|
@ -19,12 +21,13 @@ public:
|
|||
|
||||
virtual void doChokedAction() {}
|
||||
|
||||
virtual BtMessages createRequestMessages(int32_t max) { return BtMessages(); }
|
||||
virtual std::deque<SharedHandle<BtMessage> >
|
||||
createRequestMessages(int32_t max) { return std::deque<SharedHandle<BtMessage> >(); }
|
||||
|
||||
virtual BtMessages createRequestMessagesOnEndGame(int32_t max) { return BtMessages(); }
|
||||
virtual std::deque<SharedHandle<BtMessage> >
|
||||
createRequestMessagesOnEndGame(int32_t max) { return std::deque<SharedHandle<BtMessage> >(); }
|
||||
};
|
||||
|
||||
typedef SharedHandle<MockBtRequestFactory> MockBtRequestFactoryHandle;
|
||||
typedef WeakHandle<MockBtRequestFactory> MockBtRequestFactoryWeakHandle;
|
||||
} // namespace aria2
|
||||
|
||||
#endif // _D_MOCK_BT_REQUEST_FACTORY_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue