#include <cstring>
#include <boost/algorithm/hex.hpp>
-#include <boost/test/unit_test.hpp>
#include "device_certificate_manager.h"
+#include "test_macros.h"
BOOST_AUTO_TEST_SUITE(API_TEST)
-BOOST_AUTO_TEST_CASE(test01_dcm_create_key_context)
+POSITIVE_TEST_CASE(test01_dcm_create_key_context)
{
void *ctx;
int ret = dcm_create_key_context(NULL, NULL, NULL, &ctx);
BOOST_REQUIRE_EQUAL(ret, DCM_ERROR_NONE);
}
-BOOST_AUTO_TEST_CASE(test02_dcm_get_certificate_chain)
+POSITIVE_TEST_CASE(test02_dcm_get_certificate_chain)
{
void *ctx;
char *cert;
free(cert);
}
-BOOST_AUTO_TEST_CASE(test03_dcm_get_key_bit_length)
+POSITIVE_TEST_CASE(test03_dcm_get_key_bit_length)
{
int ret;
void *ctx;
BOOST_REQUIRE_EQUAL(ret, DCM_ERROR_NONE);
}
-BOOST_AUTO_TEST_CASE(test04_dcm_get_key_type)
+POSITIVE_TEST_CASE(test04_dcm_get_key_type)
{
int ret;
void *ctx;
free(key_type);
}
-BOOST_AUTO_TEST_CASE(test05_dcm_create_signature)
+POSITIVE_TEST_CASE(test05_dcm_create_signature)
{
int ret;
void *ctx;
--- /dev/null
+/******************************************************************
+ *
+ * Copyright 2020 Samsung Electronics 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.
+ *
+ ******************************************************************/
+
+#pragma once
+
+#include <boost/test/unit_test.hpp>
+
+#define POSITIVE_TEST_CASE(name) BOOST_AUTO_TEST_CASE(POSITIVE_ ## name)
+#define NEGATIVE_TEST_CASE(name) BOOST_AUTO_TEST_CASE(NEGATIVE_ ## name)
+