Skip to content

Commit b18956f

Browse files
Add unit-tests for JsonRpcConnection
1 parent ac92f06 commit b18956f

File tree

4 files changed

+457
-12
lines changed

4 files changed

+457
-12
lines changed

lib/remote/jsonrpcconnection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ void JsonRpcConnection::SendRawMessage(const String& message)
236236
});
237237
}
238238

239+
void JsonRpcConnection::SetLivenessTimeout(std::chrono::milliseconds timeout)
240+
{
241+
m_LivenessTimeout = timeout;
242+
}
243+
239244
void JsonRpcConnection::SendMessageInternal(const Dictionary::Ptr& message)
240245
{
241246
if (m_ShuttingDown) {

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ set(base_test_SOURCES
122122
remote-configpackageutility.cpp
123123
remote-httpserverconnection.cpp
124124
remote-httpmessage.cpp
125+
remote-jsonrpcconnection.cpp
125126
remote-url.cpp
126127
${base_OBJS}
127128
$<TARGET_OBJECTS:config>

0 commit comments

Comments
 (0)