From: Hwankyu Jhun Date: Tue, 20 Oct 2020 23:12:44 +0000 (+0900) Subject: Add a new test case to app-control-tests X-Git-Tag: accepted/tizen/6.0/unified/20201110.010748~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68f8b874518d5c0ac76231dfdc232aaa398f6b50;p=platform%2Fcore%2Fappfw%2Faul-1.git Add a new test case to app-control-tests Adds: - app_control_resolution_multi_share_video_mp4 Change-Id: I20867eb45919ca096c9be67e72877c2fe92d36f2 Signed-off-by: Hwankyu Jhun --- diff --git a/test/app_control_tests/test_app_control.cc b/test/app_control_tests/test_app_control.cc index 1ceaf75..68145f4 100644 --- a/test/app_control_tests/test_app_control.cc +++ b/test/app_control_tests/test_app_control.cc @@ -94,8 +94,12 @@ std::string APP_CONTROL_OPERATION_SHARE_TEXT = APP_CONTROL_OPERATION + "/share_text"; std::string APP_CONTROL_OPERATION_VIEW = APP_CONTROL_OPERATION + "/view"; +std::string APP_CONTROL_OPERATION_MULTI_SHARE = + APP_CONTROL_OPERATION + "/multi_share"; +std::string PATH_AUL_RES = + "/opt/usr/home/owner/share/aul/res/"; std::string URI_FILE_AUL_RES = - "file://opt/usr/home/owner/share/aul/res/"; + "file:/" + PATH_AUL_RES; } // namespace @@ -573,14 +577,14 @@ TEST_F(AppControlTest, app_control_resolution_view_uri_3gpp) { } TEST_F(AppControlTest, app_control_resolution_view_video_mp4) { - std::string uri = URI_FILE_AUL_RES + "video/sampleMPEG4.mp4"; + std::string uri = URI_FILE_AUL_RES + "videos/sampleMPEG4.mp4"; bool ret = Compare(APP_CONTROL_OPERATION_VIEW, uri, "video/mp4"); EXPECT_EQ(ret, true); } TEST_F(AppControlTest, app_control_resolution_view_uri_mp4) { - std::string uri = URI_FILE_AUL_RES + "video/sampleMPEG4.mp4"; + std::string uri = URI_FILE_AUL_RES + "videos/sampleMPEG4.mp4"; bool ret = Compare(APP_CONTROL_OPERATION_VIEW, uri, ""); EXPECT_EQ(ret, true); @@ -639,3 +643,9 @@ TEST_F(AppControlTest, app_control_resolution_view_application_package) { "", "application/vnd.tizen.package"); EXPECT_EQ(ret, true); } + +TEST_F(AppControlTest, app_control_resolution_multi_share_video_mp4) { + std::string uri = PATH_AUL_RES + "videos/sampleMPEG4.mp4"; + bool ret = Compare(APP_CONTROL_OPERATION_MULTI_SHARE, uri, ""); + EXPECT_EQ(ret, true); +}