mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 19:11:47 +00:00
1b7c198289
Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
24 lines
566 B
C++
24 lines
566 B
C++
#ifndef _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_
|
|
#define _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_
|
|
|
|
#include "ExtensionMessageFactory.h"
|
|
#include "MockExtensionMessage.h"
|
|
|
|
namespace aria2 {
|
|
|
|
class MockExtensionMessageFactory:public ExtensionMessageFactory {
|
|
public:
|
|
virtual ~MockExtensionMessageFactory() {}
|
|
|
|
virtual SharedHandle<ExtensionMessage> createMessage(const char* data,
|
|
size_t length)
|
|
{
|
|
return new MockExtensionMessage("a2_mock", *data, data+1, length-1);
|
|
|
|
}
|
|
};
|
|
|
|
} // namespace aria2
|
|
|
|
#endif // _D_MOCK_EXTENSION_MESSAGE_FACTORY_H_
|