Skip to content
Snippets Groups Projects
Commit 6b6a5d30 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

cmake/tests: add DHTNET_TESTABLE

Change-Id: Id327a60cbd1afb57a35eedfcb73ff972acf6fb4b
parent 46d6286e
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,9 @@ target_include_directories(dhtnet PUBLIC ...@@ -80,6 +80,9 @@ target_include_directories(dhtnet PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
) )
if (BUILD_TESTING)
target_compile_definitions(dhtnet PUBLIC DHTNET_TESTABLE)
endif()
target_compile_definitions(dhtnet PUBLIC PJ_AUTOCONF=1) target_compile_definitions(dhtnet PUBLIC PJ_AUTOCONF=1)
# set_target_properties(dhtnet PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/include/${dhtnet_HEADERS}") # set_target_properties(dhtnet PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/include/${dhtnet_HEADERS}")
......
...@@ -162,7 +162,7 @@ public: ...@@ -162,7 +162,7 @@ public:
void eraseChannel(uint16_t channel); void eraseChannel(uint16_t channel);
#ifdef LIBJAMI_TESTABLE #ifdef DHTNET_TESTABLE
/** /**
* Check if we can send beacon on the socket * Check if we can send beacon on the socket
*/ */
...@@ -341,7 +341,7 @@ public: ...@@ -341,7 +341,7 @@ public:
*/ */
std::shared_ptr<dht::crypto::Certificate> peerCertificate() const; std::shared_ptr<dht::crypto::Certificate> peerCertificate() const;
#ifdef LIBJAMI_TESTABLE #ifdef DHTNET_TESTABLE
std::shared_ptr<MultiplexedSocket> underlyingSocket() const; std::shared_ptr<MultiplexedSocket> underlyingSocket() const;
#endif #endif
......
...@@ -718,7 +718,7 @@ MultiplexedSocket::peerCertificate() const ...@@ -718,7 +718,7 @@ MultiplexedSocket::peerCertificate() const
return pimpl_->endpoint->peerCertificate(); return pimpl_->endpoint->peerCertificate();
} }
#ifdef LIBJAMI_TESTABLE #ifdef DHTNET_TESTABLE
bool bool
MultiplexedSocket::canSendBeacon() const MultiplexedSocket::canSendBeacon() const
{ {
...@@ -1038,7 +1038,7 @@ ChannelSocket::onRecv(std::vector<uint8_t>&& pkt) ...@@ -1038,7 +1038,7 @@ ChannelSocket::onRecv(std::vector<uint8_t>&& pkt)
pimpl_->cv.notify_all(); pimpl_->cv.notify_all();
} }
#ifdef LIBJAMI_TESTABLE #ifdef DHTNET_TESTABLE
std::shared_ptr<MultiplexedSocket> std::shared_ptr<MultiplexedSocket>
ChannelSocket::underlyingSocket() const ChannelSocket::underlyingSocket() const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment