Commit 6f84ae67 authored by Ghislain MARY's avatar Ghislain MARY

Fix two unit tests on Windows 10.

parent 1d7b30b4
...@@ -96,6 +96,9 @@ ...@@ -96,6 +96,9 @@
<Content Include="Assets\messages.db"> <Content Include="Assets\messages.db">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Assets\rcfiles\marie_remote_localfile_win10_rc">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="project.json" /> <None Include="project.json" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
......
...@@ -3586,10 +3586,14 @@ static void video_call_snapshot(void) { ...@@ -3586,10 +3586,14 @@ static void video_call_snapshot(void) {
BC_ASSERT_TRUE(call_succeeded = call_with_params(marie, pauline, marieParams, paulineParams)); 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)); BC_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc));
if((call_succeeded == TRUE) && (callInst != NULL)) { if((call_succeeded == TRUE) && (callInst != NULL)) {
linphone_call_take_video_snapshot(callInst, 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); wait_for_until(marie->lc, pauline->lc, &dummy, 1, 5000);
BC_ASSERT_EQUAL(ortp_file_exist(filename), 0, int, "%d"); BC_ASSERT_EQUAL(ortp_file_exist(filename), 0, int, "%d");
remove(filename); remove(filename);
}
end_call(marie, pauline); end_call(marie, pauline);
} }
ms_free(filename); ms_free(filename);
......
...@@ -110,6 +110,8 @@ static void remote_provisioning_file(void) { ...@@ -110,6 +110,8 @@ static void remote_provisioning_file(void) {
return; return;
#elif defined(ANDROID) #elif defined(ANDROID)
marie = linphone_core_manager_new2("marie_remote_localfile_android_rc", FALSE); 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 #else
marie = linphone_core_manager_new2("marie_remote_localfile_rc", FALSE); marie = linphone_core_manager_new2("marie_remote_localfile_rc", FALSE);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment