Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / tests / unit / opencv_test_gapi / common / gapi_core_tests.hpp
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #ifndef OPENCV_GAPI_CORE_TESTS_HPP
6 #define OPENCV_GAPI_CORE_TESTS_HPP
7
8 #include "gapi_tests_common.hpp"
9 #include "ie_preprocess.hpp"
10
11 #include <gtest/gtest.h>
12
13 namespace opencv_test
14 {
15
16 struct ResizeTestGAPI: public testing::TestWithParam<std::tuple<int, int, std::pair<cv::Size, cv::Size>, double>> {};
17 struct SplitTestGAPI: public TestParams<std::tuple<int, int, cv::Size>> {};
18 struct MergeTestGAPI: public TestParams<std::tuple<int, int, cv::Size>> {};
19
20 //------------------------------------------------------------------------------
21
22 struct ResizeTestIE: public testing::TestWithParam<std::tuple<int, int, std::pair<cv::Size, cv::Size>, double>> {};
23
24 struct SplitTestIE: public TestParams<std::tuple<int, cv::Size>> {};
25 struct MergeTestIE: public TestParams<std::tuple<int, cv::Size>> {};
26
27 //------------------------------------------------------------------------------
28
29 using PreprocParams = std::tuple< InferenceEngine::Precision     // input-output data type
30                                 , InferenceEngine::ResizeAlgorithm // resize algorithm, if needed
31                                 , InferenceEngine::Layout        // input tensor layout
32                                 , InferenceEngine::Layout        // output tensor layout
33                                 , int                            // number of channels
34                                 , std::pair<cv::Size, cv::Size>
35                                 >;
36
37 struct PreprocTest: public TestParams<PreprocParams> {};
38
39 } // opencv_test
40
41 #endif //OPENCV_GAPI_CORE_TESTS_HPP