diff options
-rw-r--r-- | src/client/error.h | 2 | ||||
-rw-r--r-- | src/client/ocsp-client.cpp | 2 | ||||
-rw-r--r-- | src/client/ocsp-client.h | 2 | ||||
-rw-r--r-- | tests/test_client.cpp | 7 |
4 files changed, 2 insertions, 11 deletions
diff --git a/src/client/error.h b/src/client/error.h index 7504350..cae1348 100644 --- a/src/client/error.h +++ b/src/client/error.h @@ -22,12 +22,10 @@ #pragma once namespace CCHECKER { -namespace Client { using CCerr = int; const CCerr E_CC_NONE = 0; const CCerr E_CC_INTERNAL = -1; -} // namespace Client } // namespace CCHECKER diff --git a/src/client/ocsp-client.cpp b/src/client/ocsp-client.cpp index c805715..63e6d26 100644 --- a/src/client/ocsp-client.cpp +++ b/src/client/ocsp-client.cpp @@ -26,7 +26,6 @@ #include "common/log.h" namespace CCHECKER { -namespace Client { OcspClient::OcspClient() : m_address(SERVICE_STREAM) @@ -50,5 +49,4 @@ CCerr OcspClient::request() return E_CC_INTERNAL; } -} // namespace Client } // namespace CCHECKER diff --git a/src/client/ocsp-client.h b/src/client/ocsp-client.h index e1f29bb..e4aafb6 100644 --- a/src/client/ocsp-client.h +++ b/src/client/ocsp-client.h @@ -28,7 +28,6 @@ #include "client/error.h" namespace CCHECKER { -namespace Client { class OcspClient { public: @@ -45,5 +44,4 @@ private: std::unique_ptr<Dispatcher> m_dispatcher; }; -} // namespace Client } // namespace CCHECKER diff --git a/tests/test_client.cpp b/tests/test_client.cpp index ea2c23b..ad549cf 100644 --- a/tests/test_client.cpp +++ b/tests/test_client.cpp @@ -26,15 +26,12 @@ #include "client/ocsp-client.h" #include "common/log.h" -using namespace CCHECKER; - BOOST_AUTO_TEST_SUITE(CLIENT_TEST) BOOST_AUTO_TEST_CASE(client_api) { - Client::OcspClient oc; - BOOST_REQUIRE(oc.request() == Client::E_CC_NONE); - + CCHECKER::OcspClient oc; + BOOST_REQUIRE(oc.request() == CCHECKER::E_CC_NONE); } |