Categorize tests into positive and negative
[platform/core/security/key-manager.git] / tests / test_safe-buffer.cpp
index 47ecbef..ff9dccd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2016-2019 Samsung Electronics Co., Ltd. All rights reserved
+ *  Copyright (c) 2016 - 2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Contact: Kyungwook Tak <k.tak@samsung.com>
  *
@@ -22,7 +22,7 @@
  */
 #include <vector>
 
-#include <boost/test/unit_test.hpp>
+#include <boost_macros_wrapper.h>
 #include <test_common.h>
 
 #include <ckm/ckm-raw-buffer.h>
@@ -83,7 +83,7 @@ BOOST_AUTO_TEST_SUITE(SAFE_BUFFER_TEST)
 
 // Tests for SafeBuffer. Checks if memory occupied by the buffer is wiped after it's deleted.
 
-BOOST_AUTO_TEST_CASE(SafeBufferTest_uc_control_group)
+POSITIVE_TEST_CASE(SafeBufferTest_uc_control_group)
 {
        size_t cnt = buffer_erase_test<std::vector<unsigned char>>();
 
@@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(SafeBufferTest_uc_control_group)
                                                  "Less than 1/2 of data matches the original.");
 }
 
-BOOST_AUTO_TEST_CASE(SafeBufferTest_item_control_group)
+POSITIVE_TEST_CASE(SafeBufferTest_item_control_group)
 {
        size_t cnt = buffer_erase_test<std::vector<Item>>();
 
@@ -99,7 +99,7 @@ BOOST_AUTO_TEST_CASE(SafeBufferTest_item_control_group)
                                                  "Less than 1/2 of data matches the original.");
 }
 
-BOOST_AUTO_TEST_CASE(SafeBufferTest_uc)
+POSITIVE_TEST_CASE(SafeBufferTest_uc)
 {
        size_t cnt = buffer_erase_test<RawBuffer>();
 
@@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(SafeBufferTest_uc)
                                                  "More than 1/10 of data matches the original.");
 }
 
-BOOST_AUTO_TEST_CASE(SafeBufferTest_item)
+POSITIVE_TEST_CASE(SafeBufferTest_item)
 {
        size_t cnt = buffer_erase_test<SafeBuffer<Item>::Type>();