From 0e5024e68663ea4b7338387c40511ee640fe1749 Mon Sep 17 00:00:00 2001 From: "mk5004.lee" Date: Wed, 8 Apr 2020 19:37:20 +0900 Subject: [PATCH] Add define for gio_mock in unittest Change-Id: Ic57cda1a71ab11e23c6fcc543b21ce15884daff1 Signed-off-by: mk5004.lee --- unittest/mock/gio_mock.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unittest/mock/gio_mock.h b/unittest/mock/gio_mock.h index 16f787f..13a607d 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*, -- 2.7.4