1 // Copyright (C) 2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
8 #include "gna_api_wrapper.hpp"
9 #include <gtest/gtest.h>
11 using namespace testing;
12 using namespace InferenceEngine;
14 class GNA_CPPWrapper_test : public ::testing::Test {};
16 TEST_F(GNA_CPPWrapper_test, CPPWrapperConstructorCannotWorkWithInputEqualToZero) {
17 ASSERT_THROW(GNAPluginNS::CPPWrapper<intel_nnet_type_t>(0), InferenceEngine::details::InferenceEngineException);
20 TEST_F(GNA_CPPWrapper_test, CPPWrapperConstructorCanWorkWithInputNotEqualToZero) {
21 ASSERT_NO_THROW(GNAPluginNS::CPPWrapper<intel_nnet_type_t>(3));
24 TEST_F(GNA_CPPWrapper_test, CPPWrapperConstructorCanWorkWithoutAnyInput) {
25 ASSERT_NO_THROW(GNAPluginNS::CPPWrapper<intel_nnet_type_t>());