5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_IM_CONTEXT_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_IM_CONTEXT_H_
10#include "gmock/gmock.h"
23 operator GtkIMContext*();
26 gtk_im_context_set_client_window,
27 (GtkIMContext * context, GdkWindow*
window));
29 gtk_im_context_get_preedit_string,
30 (GtkIMContext * context,
32 PangoAttrList** attrs,
35 gtk_im_context_filter_keypress,
36 (GtkIMContext * context, GdkEventKey*
event));
37 MOCK_METHOD(gboolean, gtk_im_context_focus_in, (GtkIMContext * context));
38 MOCK_METHOD(
void, gtk_im_context_focus_out, (GtkIMContext * context));
39 MOCK_METHOD(
void, gtk_im_context_reset, (GtkIMContext * context));
41 gtk_im_context_set_cursor_location,
42 (GtkIMContext * context, GdkRectangle* area));
44 gtk_im_context_set_use_preedit,
45 (GtkIMContext * context, gboolean use_preedit));
48 gtk_im_context_set_surrounding,
49 (GtkIMContext * context,
const gchar*
text, gint
len, gint cursor_index));
51 gtk_im_context_get_surrounding,
52 (GtkIMContext * context, gchar**
text, gint* cursor_index));
55 GtkIMContext* instance_ =
nullptr;
MOCK_METHOD(void, gtk_im_context_set_surrounding,(GtkIMContext *context, const gchar *text, gint len, gint cursor_index))
MOCK_METHOD(gboolean, gtk_im_context_filter_keypress,(GtkIMContext *context, GdkEventKey *event))
MOCK_METHOD(gboolean, gtk_im_context_focus_in,(GtkIMContext *context))
MOCK_METHOD(void, gtk_im_context_set_client_window,(GtkIMContext *context, GdkWindow *window))
MOCK_METHOD(void, gtk_im_context_reset,(GtkIMContext *context))
MOCK_METHOD(gboolean, gtk_im_context_get_surrounding,(GtkIMContext *context, gchar **text, gint *cursor_index))
MOCK_METHOD(void, gtk_im_context_get_preedit_string,(GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos))
MOCK_METHOD(void, gtk_im_context_set_cursor_location,(GtkIMContext *context, GdkRectangle *area))
MOCK_METHOD(void, gtk_im_context_set_use_preedit,(GtkIMContext *context, gboolean use_preedit))
MOCK_METHOD(void, gtk_im_context_focus_out,(GtkIMContext *context))