mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2010-10-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use unnamed namespace instead of static keyword. * src/AbstractCommand.cc * src/AdaptiveURISelector.cc * src/Base64.cc * src/BitfieldMan.cc * src/BtDependency.cc * src/ConsoleStatCalc.cc * src/ContentTypeRequestGroupCriteria.cc * src/CookieStorage.cc * src/DHTMessageFactoryImpl.cc * src/DHTRoutingTableDeserializer.cc * src/DefaultBtAnnounce.cc * src/DefaultBtProgressInfoFile.cc * src/DefaultPeerStorage.cc * src/DefaultPieceStorage.cc * src/DownloadCommand.cc * src/DownloadEngine.cc * src/EpollEventPoll.cc * src/ExpatMetalinkProcessor.cc * src/ExpatXmlRpcRequestProcessor.cc * src/FileEntry.cc * src/HttpRequest.cc * src/HttpRequestCommand.cc * src/HttpResponseCommand.cc * src/KqueueEventPoll.cc * src/LongestSequencePieceSelector.cc * src/MetalinkParserStateV3Impl.cc * src/MetalinkParserStateV4Impl.cc * src/MultiDiskAdaptor.cc * src/MultiUrlRequestInfo.cc * src/OptionParser.cc * src/PeerSessionResource.cc * src/PortEventPoll.cc * src/Request.cc * src/RequestGroupMan.cc * src/SelectEventPoll.cc * src/SessionSerializer.cc * src/SimpleLogFormatter.cc * src/Sqlite3CookieParser.cc * src/TrackerWatcherCommand.cc * src/XML2SAXMetalinkProcessor.cc * src/Xml2XmlRpcRequestProcessor.cc * src/XmlRpcMethod.cc * src/XmlRpcMethodImpl.cc * src/XmlRpcResponse.cc * src/base32.cc * src/bencode2.cc * src/bittorrent_helper.cc * src/download_helper.cc * src/main.cc * src/messageDigest.cc * src/option_processing.cc * src/util.cc * test/AnnounceListTest.cc * test/BtRegistryTest.cc * test/DHTBucketTest.cc * test/DHTRoutingTableTest.cc * test/DefaultBtAnnounceTest.cc * test/FileEntryTest.cc * test/FtpConnectionTest.cc * test/MSEHandshakeTest.cc * test/MagnetTest.cc * test/XmlRpcMethodTest.cc * test/array_funTest.cc
This commit is contained in:
parent
6ecfa4aad1
commit
236e64cb25
64 changed files with 667 additions and 278 deletions
|
@ -150,10 +150,12 @@ public:
|
|||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(XmlRpcMethodTest);
|
||||
|
||||
static std::string getString(const Dict* dict, const std::string& key)
|
||||
namespace {
|
||||
std::string getString(const Dict* dict, const std::string& key)
|
||||
{
|
||||
return asString(dict->get(key))->s();
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void XmlRpcMethodTest::testAddUri()
|
||||
{
|
||||
|
@ -587,8 +589,8 @@ void XmlRpcMethodTest::testTellStatus_withoutGid()
|
|||
CPPUNIT_ASSERT_EQUAL(1, res.code);
|
||||
}
|
||||
|
||||
static void addUri(const std::string& uri,
|
||||
const SharedHandle<DownloadEngine>& e)
|
||||
namespace {
|
||||
void addUri(const std::string& uri, const SharedHandle<DownloadEngine>& e)
|
||||
{
|
||||
AddUriXmlRpcMethod m;
|
||||
XmlRpcRequest req(AddUriXmlRpcMethod::getMethodName(), List::g());
|
||||
|
@ -597,10 +599,11 @@ static void addUri(const std::string& uri,
|
|||
req.params->append(urisParam);
|
||||
CPPUNIT_ASSERT_EQUAL(0, m.execute(req, e.get()).code);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
|
||||
static void addTorrent
|
||||
namespace {
|
||||
void addTorrent
|
||||
(const std::string& torrentFile, const SharedHandle<DownloadEngine>& e)
|
||||
{
|
||||
AddTorrentXmlRpcMethod m;
|
||||
|
@ -608,7 +611,7 @@ static void addTorrent
|
|||
req.params->append(readFile(torrentFile));
|
||||
XmlRpcResponse res = m.execute(req, e.get());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
#endif // ENABLE_BITTORRENT
|
||||
|
||||
void XmlRpcMethodTest::testTellWaiting()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue