test: Add test case for webrtc_set_bundle_policy_max_compat() 72/313672/1 accepted/tizen/7.0/unified/20240702.164434
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:45:48 +0000 (11:45 +0900)
[Version] 0.3.304
[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 e0241e267eab2ca5ec851fa182d93e1261e8b913..d1d151d59a4859741cc4dbffcf5d098b5a6707ad 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.3.303
+Version:    0.3.304
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index a1bcf9e27cb2ea219d2ba3840aa1b5d39fcda69e..94bb4ab1ab60c023a85647e8b99338ca69190e49 100644 (file)
@@ -1339,10 +1339,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 2585f2ce5b3c853abbdac8200422e36e82caae1d..b2b4e0af74dec652274b19ab317b513c6fc0ea1e 100644 (file)
@@ -307,7 +307,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");
@@ -669,4 +669,4 @@ void displaymenu(void)
 void reset_menu_state(void)
 {
        get_appdata()->menu_status = CURRENT_STATUS_MAINMENU;
-}
\ No newline at end of file
+}