Add a new test case to app-control-tests 65/245965/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 20 Oct 2020 23:12:44 +0000 (08:12 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 20 Oct 2020 23:13:06 +0000 (08:13 +0900)
Adds:
 - app_control_resolution_multi_share_video_mp4

Change-Id: I20867eb45919ca096c9be67e72877c2fe92d36f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
test/app_control_tests/test_app_control.cc

index 1ceaf75..68145f4 100644 (file)
@@ -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);
+}