CKM: Revert "CKM: Tests for algorithm parameters" 94/39594/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 18 May 2015 11:46:19 +0000 (13:46 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 19 May 2015 09:30:35 +0000 (02:30 -0700)
This reverts commit df4d3773a6af6fe7939d87c5a3921ce5cf2e63da.

After CryptoAlgorithm API modification this test is no longer needed.

Change-Id: I8ba7114c679a6f4d955f2b4e6cfd9bf80bd412ea

src/ckm/CMakeLists.txt
src/ckm/algo-param.cpp [deleted file]

index 00e55c7..669ee1f 100644 (file)
@@ -50,7 +50,6 @@ SET(CKM_SOURCES
     ${PROJECT_SOURCE_DIR}/src/ckm/system-db.cpp
     ${PROJECT_SOURCE_DIR}/src/ckm/clean-env.cpp
     ${PROJECT_SOURCE_DIR}/src/ckm/test-certs.cpp
-    ${PROJECT_SOURCE_DIR}/src/ckm/algo-param.cpp
 )
 
 INCLUDE_DIRECTORIES(SYSTEM ${CKM_DEP_INCLUDE_DIRS})
diff --git a/src/ckm/algo-param.cpp b/src/ckm/algo-param.cpp
deleted file mode 100644 (file)
index 824be6f..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- *  Copyright (c) 2000 - 2015 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
- */
-/*
- * @file       test_algo-param.cpp
- * @author     Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
- * @version    1.0
- */
-
-#include <string>
-#include <memory>
-#include <ckm/ckm-type.h>
-#include <ckm/ckm-error.h>
-#include <dpl/test/test_runner.h>
-
-namespace {
-unsigned long long LOOONG_INT = 0xffffffffffffffff;
-const std::string TEXT("dasfagfshgrethtrtregsdgsgsdgserhse");
-const CKM::RawBuffer BUFFER(TEXT.begin(), TEXT.end());
-} // namespace anonymous
-
-RUNNER_TEST_GROUP_INIT(ALGO_PARAM_TEST)
-
-RUNNER_TEST(TAP_0010_IntParam) {
-    CKM::BaseParamPtr bp = CKM::IntParam::create(LOOONG_INT);
-
-    unsigned long long integer = 0;
-    CKM::RawBuffer buffer;
-    RUNNER_ASSERT_MSG(CKM_API_SUCCESS == bp->getInt(integer), "Integer extraction failed");
-    RUNNER_ASSERT_MSG(integer == LOOONG_INT, "Unexpected integer value: " << integer);
-    RUNNER_ASSERT_MSG(CKM_API_ERROR_INVALID_FORMAT == bp->getBuffer(buffer),
-                      "Buffer extraction should fail");
-}
-
-RUNNER_TEST(TAP_0020_BufferParam) {
-    CKM::BaseParamPtr bp = CKM::BufferParam::create(BUFFER);
-
-    unsigned long long integer = 0;
-    CKM::RawBuffer buffer;
-    RUNNER_ASSERT_MSG(CKM_API_SUCCESS == bp->getBuffer(buffer), "Buffer extraction failed");
-    RUNNER_ASSERT_MSG(buffer == BUFFER, "Unexpected buffer value");
-    RUNNER_ASSERT_MSG(CKM_API_ERROR_INVALID_FORMAT == bp->getInt(integer),
-                      "Integer extraction should fail");
-}
-