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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user