Skip to content

Commit

Permalink
feat: Single file for transport logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Sep 27, 2024
1 parent 4167940 commit cb6ebd1
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 1,319 deletions.
4 changes: 2 additions & 2 deletions languages/cpp/src/shared/include/json_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class JsonEngine

JsonEngine()
{
_data = read_json_from_file("../firebolt-core-open-rpc.json");
_data = read_json_from_file("../../firebolt-core-open-rpc.json");
}

~JsonEngine(){
Expand Down Expand Up @@ -121,7 +121,7 @@ class JsonEngine
}


#ifndef UNIT_TEST
#ifdef UNIT_TEST

// template <typename RESPONSE>
void MockRequest(const WPEFramework::Core::JSONRPC::Message* message)
Expand Down
4 changes: 4 additions & 0 deletions languages/cpp/src/shared/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ add_library(${TARGET} ${FIREBOLT_LIBRARY_TYPE}
Async/Async.cpp
)

if(ENABLE_UNIT_TESTS)
target_compile_definitions(FireboltSDK PRIVATE UNIT_TEST)
endif()

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(${NAMESPACE}WebSocket CONFIG REQUIRED)
Expand Down
Loading

0 comments on commit cb6ebd1

Please sign in to comment.