test: Add test case for webrtc_set_bundle_policy_max_compat() 51/313751/1 accepted/tizen/unified/20240703.100039 accepted/tizen/unified/dev/20240704.065544 accepted/tizen/unified/x/20240704.022934
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 03:40:05 +0000 (12:40 +0900)
[Version] 1.1.6
[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 8ba8164c7d7e75f47f977ba90944d3d61ba63f54..d190761fd00f122023fc5d207349a8a0f216d2b9 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    1.1.5
+Version:    1.1.6
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 2632b9b247862573a4f06d98dcbe7912b9e96f92..7b0ff265a732d14750161ec8da5b0193a09280cf 100644 (file)
@@ -1411,10 +1411,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 34351555b4d87e1175f42daeaff0cbcceeb2cc33..7b214b2fed158dd5150c12994bb091a47735c44b 100644 (file)
@@ -321,7 +321,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");