From: Inki Dae Date: Wed, 11 Aug 2021 09:25:31 +0000 (+0900) Subject: test: drop test_gtest.cpp file X-Git-Tag: submit/tizen/20220105.080154~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06fb033fecc6d23ac1dae3a06de063ae3e3a72ef;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git test: drop test_gtest.cpp file Move main function into actual tc files. We don't have to keep separate test_gtest.cpp file. Change-Id: Ie9894ad6a08194795d3027ce35f17e1506027387 Signed-off-by: Inki Dae --- diff --git a/test/src/inference_engine_profiler.cpp b/test/src/inference_engine_profiler.cpp index 373339a..c434cf5 100644 --- a/test/src/inference_engine_profiler.cpp +++ b/test/src/inference_engine_profiler.cpp @@ -135,6 +135,8 @@ active, update, mode, \ PARAM_TYPE_TFLITE_PE_INFER(backend, device, iter) +using namespace testing; + typedef std::tuple, int, int, int, std::vector, std::vector, std::vector, @@ -1274,3 +1276,10 @@ INSTANTIATE_TEST_CASE_P( { "/usr/share/capi-media-vision/models/IC/dldt/googlenet-v1.xml", "/usr/share/capi-media-vision/models/IC/dldt/googlenet-v1.bin" }, { 954 }))); + +int main(int argc, char **argv) +{ + InitGoogleTest(&argc, argv); + + return RUN_ALL_TESTS(); +} diff --git a/test/src/inference_engine_tc.cpp b/test/src/inference_engine_tc.cpp index 6a430b7..cb6dfc4 100644 --- a/test/src/inference_engine_tc.cpp +++ b/test/src/inference_engine_tc.cpp @@ -29,6 +29,8 @@ #include "inference_engine_private_type.h" #include "inference_engine_test_common.h" +using namespace testing; + enum { INFERENCE_ENGINE_PROFILER_OFF = 0, /**< Do not profile inference engine. */ @@ -861,3 +863,10 @@ INSTANTIATE_TEST_CASE_P( { 955 }) /* TODO */ )); + +int main(int argc, char **argv) +{ + InitGoogleTest(&argc, argv); + + return RUN_ALL_TESTS(); +} diff --git a/test/src/test_gtest.cpp b/test/src/test_gtest.cpp deleted file mode 100644 index 88d4841..0000000 --- a/test/src/test_gtest.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/* - * test_gtest.cpp - * - * Created on: Feb 28, 2020 - * Author: - * Inki Dae - */ - -#include "gtest/gtest.h" - -int main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - int ret = RUN_ALL_TESTS(); - return ret; -}