diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-27 23:40:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-27 23:40:25 +0900 |
| commit | 215d1d3d0bf7530e27ea83aab873528c1500478d (patch) | |
| tree | 4c9f297162592ab66988b2ed613e9db95fd49291 /test/BtNotInterestedMessageTest.cc | |
| parent | ae2e4cb7ffbe5d0384056cbf40f355e75f9defd7 (diff) | |
Made static create function of BtMessage subclass return raw pointer
Diffstat (limited to 'test/BtNotInterestedMessageTest.cc')
| -rw-r--r-- | test/BtNotInterestedMessageTest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/BtNotInterestedMessageTest.cc b/test/BtNotInterestedMessageTest.cc index 0e651cc5..d9a8e5f1 100644 --- a/test/BtNotInterestedMessageTest.cc +++ b/test/BtNotInterestedMessageTest.cc @@ -33,7 +33,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(BtNotInterestedMessageTest); void BtNotInterestedMessageTest::testCreate() { unsigned char msg[5]; bittorrent::createPeerMessageString(msg, sizeof(msg), 1, 3); - BtNotInterestedMessageHandle pm = BtNotInterestedMessage::create(&msg[4], 1); + SharedHandle<BtNotInterestedMessage> pm + (BtNotInterestedMessage::create(&msg[4], 1)); CPPUNIT_ASSERT_EQUAL((uint8_t)3, pm->getId()); // case: payload size is wrong |
