diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-05-19 20:01:41 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-05-19 20:01:41 +0900 |
commit | 50f3dc1f3cf1304fe8e458980ecb22d18a9d5b2c (patch) | |
tree | 42a1ddb122d7bd5b9e71f2010f26c230ae09bef2 | |
parent | d527e358d0789e3168182a654bc0bb56f9548c74 (diff) | |
download | cert-checker-50f3dc1f3cf1304fe8e458980ecb22d18a9d5b2c.tar.gz cert-checker-50f3dc1f3cf1304fe8e458980ecb22d18a9d5b2c.tar.bz2 cert-checker-50f3dc1f3cf1304fe8e458980ecb22d18a9d5b2c.zip |
Fix namespace of Client
Change-Id: I569965b36bb8ab7d505fabaccb270eaec016f853
-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); } |