From cf2fc67a534f2a2883ce52568f8110e391f39040 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 19 Oct 2026 22:46:09 +0200 Subject: [PATCH] Update camera integration test to nonblocking audio clocks --- tools/chatgui/CMakeLists.txt | 2 +- tools/chatgui/tests/test_call_camera_capture.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/chatgui/CMakeLists.txt b/tools/chatgui/CMakeLists.txt index 108c40d0..8daca927 100644 --- a/tools/chatgui/CMakeLists.txt +++ b/tools/chatgui/CMakeLists.txt @@ -201,7 +201,7 @@ if(QT_PACKAGE STREQUAL "Qt6" AND FFMPEG_FOUND) target_sources(test_call_camera_capture PRIVATE src/call_video_engine.cpp) target_compile_definitions(test_call_camera_capture PRIVATE TEST_CALL_VIDEO_ENGINE) target_link_libraries(test_call_camera_capture PRIVATE chatgui_live_video) - foreach(symbol call_audio_get_clock call_video_port_open call_video_port_close call_video_port_status + foreach(symbol call_audio_get_clock call_audio_try_clock call_video_port_open call_video_port_close call_video_port_status call_video_port_pull call_video_port_request_key call_video_port_decoded) target_link_options(test_call_camera_capture PRIVATE "-Wl,--wrap=${symbol}") endforeach() diff --git a/tools/chatgui/tests/test_call_camera_capture.cpp b/tools/chatgui/tests/test_call_camera_capture.cpp index 8da2f279..a1fb88bb 100644 --- a/tools/chatgui/tests/test_call_camera_capture.cpp +++ b/tools/chatgui/tests/test_call_camera_capture.cpp @@ -13,6 +13,7 @@ #include "../../../src/call/call_video_port.h" #include "../../../src/call/call_audio.h" extern "C" int __wrap_call_audio_get_clock(uint64_t, int64_t, call_clock_snapshot* out) { *out = {}; return 0; } +extern "C" int __wrap_call_audio_try_clock(uint64_t, int64_t, call_clock_snapshot* out) { *out = {}; return 1; } extern "C" int __wrap_call_video_port_open(uint64_t, const call_video_caps*) { return 0; } extern "C" void __wrap_call_video_port_close(uint64_t) {} extern "C" int __wrap_call_video_port_status(uint64_t, struct call_video_port_status* out) { *out = {}; return 0; }