Remove outdated tz_backend test 74/192674/7
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 7 Nov 2018 15:04:06 +0000 (16:04 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 13 Feb 2019 12:37:15 +0000 (13:37 +0100)
TZ backend is now supported. The test is no longer valid and has been removed.

Change-Id: Ia36f684442a91edde924786944ebf4f926119344

tests/CMakeLists.txt
tests/test_tz-backend.cpp [deleted file]

index 7b1feef..8b4f863 100644 (file)
@@ -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 (file)
index 93447de..0000000
+++ /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()