diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-01-05 11:31:56 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-01-05 11:32:05 +0100 |
commit | 4cfd57d2e38207d78722ce8c9274ba8dd700d1cc (patch) | |
tree | bf92932a6f870b3d44f24c4c5f214518cd63d258 /src/test/netbase_tests.cpp | |
parent | 406f35d99d0fcd2f50370280e605283d04da466a (diff) | |
parent | 73f41190b91dce9c125b1828b18f7625e0200145 (diff) |
Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sources
73f4119 Refactoring: Removed using namespace <xxx> from bench/ and test/ source files. (Karl-Johan Alm)
Diffstat (limited to 'src/test/netbase_tests.cpp')
-rw-r--r-- | src/test/netbase_tests.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/netbase_tests.cpp b/src/test/netbase_tests.cpp index b0ad93e6f2..1afef5b1ce 100644 --- a/src/test/netbase_tests.cpp +++ b/src/test/netbase_tests.cpp @@ -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(); |