File tree Expand file tree Collapse file tree 3 files changed +719
-1
lines changed
src/sdks/core/src/cpp/sdk/cpptest Expand file tree Collapse file tree 3 files changed +719
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ set(TESTAPP TestFireboltCore)
4444
4545message ("Setup ${TESTAPP} " )
4646
47- add_executable (${TESTAPP} CoreSDKTest.cpp Main.cpp)
47+ if (NOT ENABLE_INTERACTIVE_APP)
48+ add_executable (${TESTAPP} CoreSDKTest.cpp Main.cpp)
49+ else ()
50+ add_executable (${TESTAPP} CoreSDKTest.cpp InteractiveApp.cpp)
51+ add_compile_definitions (INTERACTIVE_APP)
52+ endif ()
4853
4954target_link_libraries (${TESTAPP}
5055 PRIVATE
Original file line number Diff line number Diff line change @@ -46,8 +46,15 @@ CoreSDKTest::KeyboardStandardAsyncResponse CoreSDKTest::_keyboardStandardAsyncRe
4646
4747void CoreSDKTest::ConnectionChanged (const bool connected, const Firebolt::Error error)
4848{
49+ #ifndef INTERACTIVE_APP
4950 cout << " Change in connection: connected: " << connected << " error: " << static_cast <int >(error) << endl;
5051 _connected = connected;
52+ #else
53+ if (connected) {
54+ cout << " Change in connection: connected: " << connected << " error: " << static_cast <int >(error) << endl;
55+ _connected = connected;
56+ }
57+ #endif
5158}
5259
5360void CoreSDKTest::CreateFireboltInstance (const std::string& url)
You can’t perform that action at this time.
0 commit comments