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:
Tatsuhiro Tsujikawa 2008-02-08 15:53:45 +00:00
parent d82e183d34
commit 1b7c198289
801 changed files with 12024 additions and 8627 deletions

View file

@ -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_