diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
| commit | f15d22b6195aeeef6a16bf2c5b5501d55b285349 (patch) | |
| tree | d996c8dc4a4066ccde9c1ece9295e8e309d54304 /test/DHTRoutingTableSerializerTest.cc | |
| parent | 8477e463e90dcce164c6a1712b37a0906b547948 (diff) | |
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added vbegin() and vend() for fixed sized array.
* src/DownloadHandlerConstants.cc
* src/FeatureConfig.cc
* src/OptionHandlerFactory.cc
* src/ServerStat.cc
* src/TimeA2.cc
* src/XmlRpcMethod.cc
* src/array_fun.h
* src/download_helper.cc
* src/messageDigest.cc
* src/util.cc
* test/BittorrentHelperTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadContextTest.cc
* test/DownloadHelperTest.cc
* test/FeatureConfigTest.cc
* test/FeedbackURISelectorTest.cc
* test/HttpRequestTest.cc
* test/InOrderURISelectorTest.cc
* test/MSEHandshakeTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/PriorityPieceSelectorTest.cc
* test/RequestGroupManTest.cc
* test/UtilTest.cc
* test/XmlRpcMethodTest.cc
* test/a2algoTest.cc
* test/array_funTest.cc
Diffstat (limited to 'test/DHTRoutingTableSerializerTest.cc')
| -rw-r--r-- | test/DHTRoutingTableSerializerTest.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/DHTRoutingTableSerializerTest.cc b/test/DHTRoutingTableSerializerTest.cc index 3c81e3df..4ca188a0 100644 --- a/test/DHTRoutingTableSerializerTest.cc +++ b/test/DHTRoutingTableSerializerTest.cc @@ -1,4 +1,11 @@ #include "DHTRoutingTableSerializer.h" + +#include <cstring> +#include <sstream> +#include <iostream> + +#include <cppunit/extensions/HelperMacros.h> + #include "Exception.h" #include "util.h" #include "DHTNode.h" @@ -6,10 +13,6 @@ #include "DHTConstants.h" #include "bittorrent_helper.h" #include "a2netcompat.h" -#include <cstring> -#include <sstream> -#include <iostream> -#include <cppunit/extensions/HelperMacros.h> namespace aria2 { @@ -40,8 +43,7 @@ void DHTRoutingTableSerializerTest::testSerialize() nodesSrc[i]->setPort(6881+i); } nodesSrc[1]->setIPAddress("non-numerical-name"); - std::vector<SharedHandle<DHTNode> > nodes - (&nodesSrc[0], &nodesSrc[arrayLength(nodesSrc)]); + std::vector<SharedHandle<DHTNode> > nodes(vbegin(nodesSrc), vend(nodesSrc)); DHTRoutingTableSerializer s; s.setLocalNode(localNode); |
