mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
Fix two unit tests on Windows 10.
This commit is contained in:
parent
1d7b30b4ef
commit
6f84ae6790
3 changed files with 13 additions and 4 deletions
|
|
@ -96,6 +96,9 @@
|
|||
<Content Include="Assets\messages.db">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\rcfiles\marie_remote_localfile_win10_rc">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -3586,10 +3586,14 @@ static void video_call_snapshot(void) {
|
|||
BC_ASSERT_TRUE(call_succeeded = call_with_params(marie, pauline, marieParams, paulineParams));
|
||||
BC_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc));
|
||||
if((call_succeeded == TRUE) && (callInst != NULL)) {
|
||||
linphone_call_take_video_snapshot(callInst, filename);
|
||||
wait_for_until(marie->lc, pauline->lc, &dummy, 1, 5000);
|
||||
BC_ASSERT_EQUAL(ortp_file_exist(filename), 0, int, "%d");
|
||||
remove(filename);
|
||||
int jpeg_support = linphone_call_take_video_snapshot(callInst, filename);
|
||||
if (jpeg_support < 0) {
|
||||
ms_warning("No jpegwriter support!");
|
||||
} else {
|
||||
wait_for_until(marie->lc, pauline->lc, &dummy, 1, 5000);
|
||||
BC_ASSERT_EQUAL(ortp_file_exist(filename), 0, int, "%d");
|
||||
remove(filename);
|
||||
}
|
||||
end_call(marie, pauline);
|
||||
}
|
||||
ms_free(filename);
|
||||
|
|
|
|||
|
|
@ -110,6 +110,8 @@ static void remote_provisioning_file(void) {
|
|||
return;
|
||||
#elif defined(ANDROID)
|
||||
marie = linphone_core_manager_new2("marie_remote_localfile_android_rc", FALSE);
|
||||
#elif defined(LINPHONE_WINDOWS_UNIVERSAL)
|
||||
marie = linphone_core_manager_new2("marie_remote_localfile_win10_rc", FALSE);
|
||||
#else
|
||||
marie = linphone_core_manager_new2("marie_remote_localfile_rc", FALSE);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue