Made ExtensionMessage's NAME const char[]

This commit is contained in:
Tatsuhiro Tsujikawa 2012-09-26 00:01:41 +09:00
parent c522d79d89
commit f0000a8754
11 changed files with 22 additions and 20 deletions

View file

@ -63,7 +63,8 @@ void UTPexExtensionMessageTest::testGetExtensionMessageID()
void UTPexExtensionMessageTest::testGetExtensionName()
{
UTPexExtensionMessage msg(1);
CPPUNIT_ASSERT_EQUAL(std::string("ut_pex"), msg.getExtensionName());
CPPUNIT_ASSERT_EQUAL(std::string("ut_pex"),
std::string(msg.getExtensionName()));
}
void UTPexExtensionMessageTest::testGetBencodedData()