| Flutter Linux Embedder |

Macros
fl_keyboard_handler_test.cc File Reference
`#include "flutter/shell/platform/linux/fl_keyboard_handler.h"`
`#include <cstring>`
`#include <vector>`
`#include "flutter/shell/platform/embedder/test_utils/key_codes.g.h"`
`#include "flutter/shell/platform/linux/fl_binary_messenger_private.h"`
`#include "flutter/shell/platform/linux/fl_method_codec_private.h"`
`#include "flutter/shell/platform/linux/key_mapping.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_codec.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"`
`#include "flutter/shell/platform/linux/testing/fl_test.h"`
`#include "flutter/shell/platform/linux/testing/mock_binary_messenger.h"`
`#include "flutter/shell/platform/linux/testing/mock_text_input_handler.h"`
`#include "flutter/testing/testing.h"`
`#include "gmock/gmock.h"`
`#include "gtest/gtest.h"`

Go to the source code of this file.

## Macros
#define | EXPECT_KEY_EVENT(RECORD, TYPE, PHYSICAL, LOGICAL, CHAR, SYNTHESIZED)
#define | VERIFY_DOWN(OUT_LOGICAL, OUT_CHAR)
#define | FL_MOCK_KEY_BINARY_MESSENGER_GET_PRIVATE(obj)
#define | FL_MOCK_VIEW_DELEGATE_GET_PRIVATE(obj)

## Macro Definition Documentation

## ◆ EXPECT_KEY_EVENT

#define EXPECT_KEY_EVENT | ( |  | RECORD,
|  |  | TYPE,
|  |  | PHYSICAL,
|  |  | LOGICAL,
|  |  | CHAR,
|  |  | SYNTHESIZED
| ) |  |

Value:
EXPECT_EQ((RECORD).type, CallRecord::kKeyCallEmbedder); \
EXPECT_EQ((RECORD).event->type, (TYPE)); \
EXPECT_EQ((RECORD).event->physical, (PHYSICAL)); \
EXPECT_EQ((RECORD).event->logical, (LOGICAL)); \
EXPECT_STREQ((RECORD).event->character, (CHAR)); \
EXPECT_EQ((RECORD).event->synthesized, (SYNTHESIZED));

Definition at line 28 of file fl_keyboard_handler_test.cc.

## ◆ FL_MOCK_KEY_BINARY_MESSENGER_GET_PRIVATE

#define FL_MOCK_KEY_BINARY_MESSENGER_GET_PRIVATE | ( |  | obj | ) |

Value:
static_cast<FlMockKeyBinaryMessengerPrivate*>( \
fl_mock_key_binary_messenger_get_instance_private( \
FL_MOCK_KEY_BINARY_MESSENGER(obj)))

## ◆ FL_MOCK_VIEW_DELEGATE_GET_PRIVATE

#define FL_MOCK_VIEW_DELEGATE_GET_PRIVATE | ( |  | obj | ) |

Value:
static_cast<FlMockViewDelegatePrivate*>( \
fl_mock_view_delegate_get_instance_private(FL_MOCK_VIEW_DELEGATE(obj)))

## ◆ VERIFY_DOWN

#define VERIFY_DOWN | ( |  | OUT_LOGICAL,
|  |  | OUT_CHAR
| ) |  |

Value:
EXPECT_EQ(call_records[0].type, CallRecord::kKeyCallEmbedder); \
EXPECT_EQ(call_records[0].event->type, kFlutterKeyEventTypeDown); \
EXPECT_EQ(call_records[0].event->logical, (OUT_LOGICAL)); \
EXPECT_STREQ(call_records[0].event->character, (OUT_CHAR)); \
EXPECT_EQ(call_records[0].event->synthesized, false); \
call_records.clear()

Definition at line 36 of file fl_keyboard_handler_test.cc.

event
FlKeyEvent * event
Definition: fl_key_channel_responder.cc:118
type
uint8_t type
Definition: fl_standard_message_codec_test.cc:1115