diff options
author | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2018-11-07 16:04:06 +0100 |
---|---|---|
committer | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2019-02-13 13:37:15 +0100 |
commit | c69772a9441cc453cd68fe726f379ae8147dbba4 (patch) | |
tree | 2a076023c004c181112a05a88e5d1b636e1f2b51 | |
parent | b15ba6d7ccaeef1b17e2234afba13b7864cfcd2a (diff) | |
download | key-manager-c69772a9441cc453cd68fe726f379ae8147dbba4.tar.gz key-manager-c69772a9441cc453cd68fe726f379ae8147dbba4.tar.bz2 key-manager-c69772a9441cc453cd68fe726f379ae8147dbba4.zip |
Remove outdated tz_backend test
TZ backend is now supported. The test is no longer valid and has been removed.
Change-Id: Ia36f684442a91edde924786944ebf4f926119344
-rw-r--r-- | tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/test_tz-backend.cpp | 39 |
2 files changed, 0 insertions, 40 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7b1feef1..8b4f8634 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -156,7 +156,6 @@ SET(TEST_MERGED_SOURCES IF(TZ_BACKEND_ENABLED) SET(TEST_MERGED_SOURCES ${TEST_MERGED_SOURCES} - ${KEY_MANAGER_TEST_MERGED_SRC}/test_tz-backend.cpp # duplicated srcs to test hidden symbols ${KEY_MANAGER_PATH}/crypto/tz-backend/obj.cpp diff --git a/tests/test_tz-backend.cpp b/tests/test_tz-backend.cpp deleted file mode 100644 index 93447dea..00000000 --- a/tests/test_tz-backend.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2017 - 2018 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 <tz-backend/store.h> -#include <generic-backend/encryption-params.h> - -#include <boost/test/unit_test.hpp> - -using namespace CKM; -using namespace CKM::Crypto; - -BOOST_AUTO_TEST_SUITE(TZ_BACKEND_TEST) - -BOOST_AUTO_TEST_CASE(store) -{ - TZ::Store store(static_cast<CryptoBackend>(0)); - - BOOST_REQUIRE_THROW(store.getObject(Token(), Password()), - Exc::Crypto::OperationNotSupported); - BOOST_REQUIRE_THROW(store.generateAKey(CryptoAlgorithm(), Password(), Password()), - Exc::Crypto::OperationNotSupported); - BOOST_REQUIRE_THROW(store.import(Data(), Password(), Crypto::EncryptionParams()), - Exc::Crypto::OperationNotSupported); - BOOST_REQUIRE_NO_THROW(store.destroy(Token())); -} - -BOOST_AUTO_TEST_SUITE_END() |