X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fckm%2Fcapi-certificate-chains.cpp;h=49a366a8d2c1b95a0f36879e2e5e914d97107f5c;hb=9ce6736838d8598d72f86c7d2b555ef10b04142f;hp=8226a370f709fac96f8de027832a9bb8fbc9c81b;hpb=c2843c3345f70313d5c070caa7a514cff98b2577;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git diff --git a/tests/ckm/capi-certificate-chains.cpp b/tests/ckm/capi-certificate-chains.cpp index 8226a37..49a366a 100644 --- a/tests/ckm/capi-certificate-chains.cpp +++ b/tests/ckm/capi-certificate-chains.cpp @@ -229,36 +229,6 @@ enum CertIdx{ CERT_TEST_LEAF, // test certificate signed with CERT_TEST_IM_CA }; -template -void assert_result(int expected, F&& func, Args... args) -{ - int ret = func(args...); - RUNNER_ASSERT_MSG_BT(ret == expected, "Expected " << expected << " got: " << ret); -} - -template -void assert_positive(F&& func, Args... args) -{ - assert_result(CKMC_ERROR_NONE, std::move(func), args...); -} - -template -void assert_invalid_param(F&& func, Args... args) -{ - assert_result(CKMC_ERROR_INVALID_PARAMETER, std::move(func), args...); -} - -template -size_t list_size(const T* list) -{ - size_t size = 0; - while(list) { - list = list->next; - size++; - } - return size; -} - typedef std::unique_ptr CertPtr; typedef std::unique_ptr CertListPtr; typedef std::unique_ptr AliasListPtr;