fix build break
authorsangho park <sangho.g.park@samsung.com>
Wed, 30 Mar 2022 01:37:52 +0000 (10:37 +0900)
committersangho park <sangho.g.park@samsung.com>
Wed, 30 Mar 2022 01:37:52 +0000 (10:37 +0900)
Signed-off-by: sangho park <sangho.g.park@samsung.com>
test/testsuites/visualizer/CMakeLists.txt
test/testsuites/visualizer/visualizer_test_suite.c [deleted file]
test/testsuites/visualizer/visualizer_test_suite.cpp [new file with mode: 0755]

index 3b81e7afa2ae4fa8a48a52a58c139baca8ef334b..ea3afdffe3fef82c116f2001ed5551e36eebe55b 100644 (file)
@@ -8,7 +8,7 @@ if (NOT GLIB_PKG_FOUND)
     return()
 endif()
 
-add_executable(${PROJECT_NAME} visualizer_test_suite.c)
+add_executable(${PROJECT_NAME} visualizer_test_suite.cpp)
 target_link_libraries(${PROJECT_NAME} ${MV_IMAGE_LIB_NAME}
                                       ${GLIB_PKG_LIBRARIES}
                                       capi-system-info
@@ -16,4 +16,4 @@ target_link_libraries(${PROJECT_NAME} ${MV_IMAGE_LIB_NAME}
                                       mv_video_helper
                                       mv_testsuite_common)
 
-install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
\ No newline at end of file
+install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
diff --git a/test/testsuites/visualizer/visualizer_test_suite.c b/test/testsuites/visualizer/visualizer_test_suite.c
deleted file mode 100644 (file)
index 3d9d71a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <image_helper.h>
-#include <mv_private.h>
-
-void test_visualizer_2d()
-{
-
-}
-
-void test_visualizer_3d()
-{
-
-}
-
-int main(int argc, char *argv[])
-{
-       LOGI("Media Vision visualizer-Testsuite is launched.");
-
-       struct arguments arguments;
-
-       std::chrono::system_clock::time_point StartTime = std::chrono::system_clock::now();
-       test_visualizer_2d();
-       std::chrono::milliseconds ms = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - StartTime);
-       std::cout << "test_visualizer_2d : " << ms.count() << "ms" << std::endl;
-
-       StartTime = std::chrono::system_clock::now();
-       test_visualizer_3d();
-       ms = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - StartTime);
-       std::cout << "test_visualizer_3d : "<< ms.count() << "ms" << std::endl;    
-
-       LOGI("Media Vision visualizer-Testsuite is closed.");
-
-       return 0;
-}
diff --git a/test/testsuites/visualizer/visualizer_test_suite.cpp b/test/testsuites/visualizer/visualizer_test_suite.cpp
new file mode 100755 (executable)
index 0000000..b7527aa
--- /dev/null
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <image_helper.h>
+#include <mv_private.h>
+
+#include <iostream>
+#include <chrono>
+
+void test_visualizer_2d()
+{
+
+}
+
+void test_visualizer_3d()
+{
+
+}
+
+int main(int argc, char *argv[])
+{
+       LOGI("Media Vision visualizer-Testsuite is launched.");
+
+       std::chrono::system_clock::time_point StartTime = std::chrono::system_clock::now();
+       test_visualizer_2d();
+       std::chrono::milliseconds ms = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - StartTime);
+       std::cout << "test_visualizer_2d : " << ms.count() << "ms" << std::endl;
+
+       StartTime = std::chrono::system_clock::now();
+       test_visualizer_3d();
+       ms = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - StartTime);
+       std::cout << "test_visualizer_3d : "<< ms.count() << "ms" << std::endl;    
+
+       LOGI("Media Vision visualizer-Testsuite is closed.");
+
+       return 0;
+}