From f55bed7409b96682d595d2ab87faf57364d661d8 Mon Sep 17 00:00:00 2001 From: "minje.ahn" Date: Fri, 16 Feb 2024 11:01:26 +0900 Subject: [PATCH 1/1] Move some APIs to test_internal.h Change-Id: I944944e4b66df19af4ea12fa491b5df1c0b1a29d Signed-off-by: minje.ahn --- common/include/mm_util_private.h | 4 ---- common/include/mm_util_test_internal.h | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/common/include/mm_util_private.h b/common/include/mm_util_private.h index 24de747..54e6d80 100644 --- a/common/include/mm_util_private.h +++ b/common/include/mm_util_private.h @@ -81,10 +81,6 @@ int mm_util_file_write(const char *path, void *data, size_t size); // for reading ini int mm_util_ini_get_int(const char *category, const char *item, int default_value); -// for testsuites -bool mm_util_safe_str_to_uint(const char *str, unsigned int *number); -bool mm_util_safe_str_to_valid_uint(const char *str, unsigned int min, unsigned int max, unsigned int *value); - #ifdef __cplusplus } #endif diff --git a/common/include/mm_util_test_internal.h b/common/include/mm_util_test_internal.h index 086ffd7..c8cdf58 100644 --- a/common/include/mm_util_test_internal.h +++ b/common/include/mm_util_test_internal.h @@ -17,9 +17,6 @@ #ifndef __MM_UTIL_TEST_INTERNAL_H__ #define __MM_UTIL_TEST_INTERNAL_H__ -#include -#include - typedef enum { TEST_AUTO, TEST_DECODE_FILE, @@ -29,4 +26,7 @@ typedef enum { TEST_NUM, } mm_util_test_mode_e; +bool mm_util_safe_str_to_uint(const char *str, unsigned int *number); +bool mm_util_safe_str_to_valid_uint(const char *str, unsigned int min, unsigned int max, unsigned int *value); + #endif /*__MM_UTIL_TEST_INTERNAL_H__*/ -- 2.7.4