diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
| commit | e2340efe2788648a6edc49eaa236e1f62d96a937 (patch) | |
| tree | d182c828e80c0d63069160805ff7d023e512b02e /test/UTMetadataPostDownloadHandlerTest.cc | |
| parent | 0030025bb6989b130c7f609819669e0619519d64 (diff) | |
Use std::vector instead of std::map for ContextAttribute objects
Now key for ContextAttribute object store is int instead of string.
Diffstat (limited to 'test/UTMetadataPostDownloadHandlerTest.cc')
| -rw-r--r-- | test/UTMetadataPostDownloadHandlerTest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/UTMetadataPostDownloadHandlerTest.cc b/test/UTMetadataPostDownloadHandlerTest.cc index b3ae7166..16431f68 100644 --- a/test/UTMetadataPostDownloadHandlerTest.cc +++ b/test/UTMetadataPostDownloadHandlerTest.cc @@ -53,7 +53,7 @@ void UTMetadataPostDownloadHandlerTest::testCanHandle() CPPUNIT_ASSERT(!handler.canHandle(requestGroup_.get())); SharedHandle<TorrentAttribute> attrs(new TorrentAttribute()); - dctx_->setAttribute(bittorrent::BITTORRENT, attrs); + dctx_->setAttribute(CTX_ATTR_BT, attrs); CPPUNIT_ASSERT(handler.canHandle(requestGroup_.get())); @@ -84,7 +84,7 @@ void UTMetadataPostDownloadHandlerTest::testGetNextRequestGroups() announceTier.push_back("http://tracker"); announceList.push_back(announceTier); attrs->announceList = announceList; - dctx_->setAttribute(bittorrent::BITTORRENT, attrs); + dctx_->setAttribute(CTX_ATTR_BT, attrs); requestGroup_->setDiskWriterFactory (SharedHandle<DiskWriterFactory>(new ByteArrayDiskWriterFactory())); requestGroup_->initPieceStorage(); |
