mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
28d5c7408f
If the compiler supports override, define CXX11_OVERRIDE as override, otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
21 lines
479 B
C++
21 lines
479 B
C++
#ifndef D_EXTENSION_MESSAGE_TEST_HELPER_H
|
|
#define D_EXTENSION_MESSAGE_TEST_HELPER_H
|
|
|
|
#include "MockBtMessageFactory.h"
|
|
|
|
namespace aria2 {
|
|
|
|
class WrapExtBtMessageFactory:public MockBtMessageFactory {
|
|
public:
|
|
virtual std::unique_ptr<BtExtendedMessage>
|
|
createBtExtendedMessage(std::unique_ptr<ExtensionMessage> extmsg)
|
|
CXX11_OVERRIDE
|
|
{
|
|
return make_unique<BtExtendedMessage>(std::move(extmsg));
|
|
}
|
|
};
|
|
|
|
} // namespace aria2
|
|
|
|
#endif // D_EXTENSION_MESSAGE_TEST_HELPER_H
|