summaryrefslogtreecommitdiff
path: root/tests/test_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client.cpp')
-rw-r--r--tests/test_client.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_client.cpp b/tests/test_client.cpp
index ad549cf..a0fc0c2 100644
--- a/tests/test_client.cpp
+++ b/tests/test_client.cpp
@@ -23,15 +23,14 @@
#define BOOST_TEST_MODULE CERT_CHECKER_TESTS
#include <boost/test/unit_test.hpp>
-#include "client/ocsp-client.h"
-#include "common/log.h"
+#include <cchecker/ocsp.h>
BOOST_AUTO_TEST_SUITE(CLIENT_TEST)
BOOST_AUTO_TEST_CASE(client_api) {
- CCHECKER::OcspClient oc;
- BOOST_REQUIRE(oc.request() == CCHECKER::E_CC_NONE);
+ auto ret = cchecker_ocsp_request();
+ BOOST_REQUIRE(ret == 0);
}