mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.
This commit is contained in:
committed by
Kalle Alm
parent
53442af0aa
commit
73f41190b9
@@ -10,8 +10,6 @@
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
using namespace std;
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(netbase_tests, BasicTestingSetup)
|
||||
|
||||
static CNetAddr ResolveIP(const char* ip)
|
||||
@@ -64,9 +62,9 @@ BOOST_AUTO_TEST_CASE(netbase_properties)
|
||||
|
||||
}
|
||||
|
||||
bool static TestSplitHost(string test, string host, int port)
|
||||
bool static TestSplitHost(std::string test, std::string host, int port)
|
||||
{
|
||||
string hostOut;
|
||||
std::string hostOut;
|
||||
int portOut = -1;
|
||||
SplitHostPort(test, portOut, hostOut);
|
||||
return hostOut == host && port == portOut;
|
||||
@@ -91,7 +89,7 @@ BOOST_AUTO_TEST_CASE(netbase_splithost)
|
||||
BOOST_CHECK(TestSplitHost("", "", -1));
|
||||
}
|
||||
|
||||
bool static TestParse(string src, string canon)
|
||||
bool static TestParse(std::string src, std::string canon)
|
||||
{
|
||||
CService addr(LookupNumeric(src.c_str(), 65535));
|
||||
return canon == addr.ToString();
|
||||
|
||||
Reference in New Issue
Block a user