add license
[apps/native/boot-animation.git] / test / unit / unit_test / unit_test_assert_test / unit_test_assert.h
index 1031a34..6c2fac3 100755 (executable)
@@ -1,11 +1,32 @@
+/*
+ * Copyright (c) 2009-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.
+ *
+ */
+
 #ifndef __TEST_TEST_UNIT_ASSERT_H__
 #define __TEST_TEST_UNIT_ASSERT_H__
 
 #include "../../../../inc/test.h"
 #if (TEST_MODE == TEST_UNIT)
-#include "../inc/unit_test_common.h"
+#include "../../../../inc/app_log.h"
+#include "../../inc/unit.h"
+
+#include <app.h>
+#include <string.h>
 
-#define __unit_test_run_assert(before, after, func) __unit_test_run(before, after, func, "!!!!!ASSERT MACRO TEST FAIL!!!!!")
+#define __unit_test_run_assert(result) { if ((result) == false) __TU("!!!!!ASSERT MACRO TEST FAIL!!!!!"); }
 
 void unit_test_assert(void);