From: mk5004.lee Date: Wed, 8 Apr 2020 10:37:20 +0000 (+0900) Subject: Add define for gio_mock in unittest X-Git-Tag: submit/tizen_5.5/20200409.010821^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e5024e68663ea4b7338387c40511ee640fe1749;p=platform%2Fcore%2Fapi%2Fnotification.git Add define for gio_mock in unittest Change-Id: Ic57cda1a71ab11e23c6fcc543b21ce15884daff1 Signed-off-by: mk5004.lee --- diff --git a/unittest/mock/gio_mock.h b/unittest/mock/gio_mock.h index 16f787f5..13a607db 100644 --- a/unittest/mock/gio_mock.h +++ b/unittest/mock/gio_mock.h @@ -18,12 +18,16 @@ #define MOCK_GIO_H_ #include "mock.h" -#include #ifdef __cplusplus extern "C" { #endif +typedef struct _GFile GFile; +typedef struct _GError GError; +typedef struct _GCancellable GCancellable; +typedef int gboolean; + DECLARE_FAKE_VALUE_FUNC(GFile*, g_file_new_for_path, const char*); DECLARE_FAKE_VALUE_FUNC(gboolean, g_file_query_exists, GFile*, GCancellable*); DECLARE_FAKE_VALUE_FUNC(gboolean, g_file_make_directory, GFile*, GCancellable*,