test: Add test case for webrtc_set_bundle_policy_max_compat() 84/313684/1 accepted/tizen/8.0/unified/20240702.162503
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 1 Jul 2024 02:45:05 +0000 (11:45 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 1 Jul 2024 02:51:44 +0000 (11:51 +0900)
[Version] 0.4.58
[Issue Type] Test application

Change-Id: I7c87d359b8882558c706cf4fe9d01056892e7bdd
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
test/webrtc_test.c
test/webrtc_test_menu.c

index 1f71f989298dff600076263bd96d6618fb80b824..2aa3dc2813229f4d747ff032db53e749a0498570 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.4.57
+Version:    0.4.58
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index da57b202ab4d5fdce7f0cec0e585cfd57facdaf4..8cfc334847997e451347eb5ad882ced08d5241ea 100644 (file)
@@ -1403,10 +1403,13 @@ static void _webrtc_set_bundle_policy(int index, int policy)
 {
        int ret = 0;
 
-       ret = webrtc_set_bundle_policy(g_ad.conns[index].webrtc, policy);
+       if (policy == 2) /* use internal API */
+               ret = webrtc_set_bundle_policy_max_compat(g_ad.conns[index].webrtc);
+       else
+               ret = webrtc_set_bundle_policy(g_ad.conns[index].webrtc, policy);
        RET_IF(ret != WEBRTC_ERROR_NONE, "ret[0x%x]", ret);
 
-       g_print("webrtc_set_bundle_policy() success\n");
+       g_print("%s success\n", policy == 2 ? "webrtc_set_bundle_policy_max_compat()" : "webrtc_set_bundle_policy()");
 }
 
 static void _webrtc_get_bundle_policy(int index)
index c51e132da5982d4cc13bd35974b6d207b9a5a745..f83e35cd245965bc4b1ae0fb31f5839e639654b6 100644 (file)
@@ -319,7 +319,7 @@ void display_menu_webrtc_common(void)
                g_print("*** input TURN server address.\n");
                break;
        case CURRENT_STATUS_SET_BUNDLE_POLICY:
-               g_print("*** input bundle policy.(0:none, 1:max-bundle)\n");
+               g_print("*** input bundle policy.(0:none, 1:max-bundle, *2:max-compat (internal API))\n");
                break;
        case CURRENT_STATUS_SET_ICE_TRANSPORT_POLICY:
                g_print("*** input ICE transport policy.(0:all, 1:relay)\n");