Fix compiler warning
authorKwanghoon Son <k.son@samsung.com>
Wed, 14 Feb 2024 05:30:33 +0000 (05:30 +0000)
committerKwanghoon Son <k.son@samsung.com>
Wed, 6 Mar 2024 02:20:30 +0000 (11:20 +0900)
.h:
typo

test:
InstantiateTestCase_P_IsDeprecated' is deprecated:
INSTANTIATE_TEST_CASE_P is deprecated, please use
INSTANTIATE_TEST_SUITE_P [-Wdeprecated-declarations]

Change-Id: I7579ea9a63c3029109fcfbaaca1af6c46ac6b910
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
mv_machine_learning/common/meta/include/Postprocess.h
mv_machine_learning/inference/include/PreProcess.h
test/testsuites/barcode/test_barcode.cpp
test/testsuites/barcode/test_designqr.cpp
test/testsuites/machine_learning/inference/test_face_detection.cpp
test/testsuites/machine_learning/inference/test_face_landmark_detection.cpp
test/testsuites/machine_learning/inference/test_image_classification.cpp
test/testsuites/machine_learning/inference/test_object_detection.cpp
test/testsuites/machine_learning/inference/test_pose_landmark_detection.cpp

index 0fdd6a8d5ab469bc2b5ed1db512ba7495fcfdc59..e0a19bf67742e1bde954b8b9d6087744026a5923 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #ifndef __POSTPROCESS_H__
-#define __POSTPORCESS_H__
+#define __POSTPROCESS_H__
 
 #include "types.h"
 
index bdb63768d89bb3525a2ed857aebaf84d3f73a522..979c4ba2a7cb41ab8037136c907dd76d92d6d5d6 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #ifndef __MEDIA_VISION_PREPROCESS_H__
-#define __MEDIA_VISION_PREPORCESS_H__
+#define __MEDIA_VISION_PREPROCESS_H__
 
 #include <string>
 #include <map>
index bc0be0985a86432a1a36c4b23959caf94dcb444b..2c05686e26f669cdff94d596270d1af06f2212c0 100644 (file)
@@ -98,7 +98,7 @@ TEST_P(TestBarcode, Detection)
                          MEDIA_VISION_ERROR_NONE);
 }
 
-INSTANTIATE_TEST_CASE_P(GeneralAndSpecial, TestBarcode, testing::ValuesIn(ReadDetPositive1()));
+INSTANTIATE_TEST_SUITE_P(GeneralAndSpecial, TestBarcode, testing::ValuesIn(ReadDetPositive1()));
 
 class TestBarcodeGen : public ::testing::Test
 {
index 8d08da9d128a1c60145ce381e0e4e51cbc7e2325..e8a34a1300279ed6d53d845e9f8712fbfacb9b0d 100644 (file)
@@ -63,7 +63,7 @@ TEST_P(CombinationsTest, DesignQR)
                                                                                qr_version, test_file.c_str(), image_format),
                          MEDIA_VISION_ERROR_NONE);
 }
-INSTANTIATE_TEST_CASE_P(
+INSTANTIATE_TEST_SUITE_P(
                Combinations, CombinationsTest,
                testing::Combine(testing::ValuesIn(vector<string> {
                                                                 "smalletextHttps://",
index db2f034295c70eeaefc541a225d4f619dc244138..8329dfae6757eccc37b1a1bfb24c783c4444aae0 100644 (file)
@@ -79,6 +79,6 @@ TEST_P(TestFaceDetectionTflite, MobilenetV1_SSD)
        inferenceFace();
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestFaceDetectionTflite,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file
+INSTANTIATE_TEST_SUITE_P(Prefix, TestFaceDetectionTflite,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file
index 88262d6fca2adb256b6478e48e1be9ad75647a24..600f54c781d60c64ff3c971a527bb1b0cf1d5f5e 100644 (file)
@@ -91,9 +91,9 @@ TEST_P(TestFaceLandmarkDetectionOpenCV, CAFFE_CNNCASCADE)
        inferenceFaceLandmark();
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestFaceLandmarkDetectionOpenCV,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
+INSTANTIATE_TEST_SUITE_P(Prefix, TestFaceLandmarkDetectionOpenCV,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
 
 class TestFaceLandmarkDetectionTflite : public TestInference
 {
@@ -118,5 +118,5 @@ TEST_P(TestFaceLandmarkDetectionTflite, TweakCNN)
        }
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestFaceLandmarkDetectionTflite,
-                                               ::testing::Values(ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file
+INSTANTIATE_TEST_SUITE_P(Prefix, TestFaceLandmarkDetectionTflite,
+                                                ::testing::Values(ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file
index 13f26682e7eec0756dd5da8adc43b9cf7f33fc3c..b97f65e1ebf592be92d48d92ea0be538ff77e0a5 100644 (file)
@@ -363,14 +363,14 @@ TEST_P(TestImageClassificationSnpe, DISABLED_InceptionV3_Quantized)
        inferenceBanana();
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestImageClassificationTflite,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
-
-INSTANTIATE_TEST_CASE_P(Prefix, TestImageClassificationSnpe,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_GPU),
-                                                                                 ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CUSTOM),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_GPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CUSTOM)));
\ No newline at end of file
+INSTANTIATE_TEST_SUITE_P(Prefix, TestImageClassificationTflite,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
+
+INSTANTIATE_TEST_SUITE_P(Prefix, TestImageClassificationSnpe,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_GPU),
+                                                                                  ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CUSTOM),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_GPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CUSTOM)));
\ No newline at end of file
index 791e30fef689cf5b0114543068081c384973ddac..203e36b6af5d6b5a7b2f4dbbfefa1aa5e6c4b3da 100644 (file)
@@ -118,9 +118,9 @@ TEST_P(TestObjectDetectionTflite, MobilenetV2_SSD)
        }
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestObjectDetectionTflite,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
+INSTANTIATE_TEST_SUITE_P(Prefix, TestObjectDetectionTflite,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
 
 class TestObjectDetectionSnpe : public TestInference
 {
@@ -155,5 +155,5 @@ TEST_P(TestObjectDetectionSnpe, DISABLED_YoloV5MultiAnchor)
        inferenceDog(answer);
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestObjectDetectionSnpe,
-                                               ::testing::Values(ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CUSTOM)));
\ No newline at end of file
+INSTANTIATE_TEST_SUITE_P(Prefix, TestObjectDetectionSnpe,
+                                                ::testing::Values(ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CUSTOM)));
\ No newline at end of file
index 80bc744d6fe00b41ed2384793b82f368a34c729b..707d92b292cf16f6c90b32c0da82d74bd25ef56d 100644 (file)
@@ -232,6 +232,6 @@ TEST_P(TestPoseLandmarkDetectionTflite, MoveNetLightning4Quant)
        }
 }
 
-INSTANTIATE_TEST_CASE_P(Prefix, TestPoseLandmarkDetectionTflite,
-                                               ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
-                                                                                 ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file
+INSTANTIATE_TEST_SUITE_P(Prefix, TestPoseLandmarkDetectionTflite,
+                                                ::testing::Values(ParamTypes(false, MV_INFERENCE_TARGET_DEVICE_CPU),
+                                                                                  ParamTypes(true, MV_INFERENCE_TARGET_DEVICE_CPU)));
\ No newline at end of file