| Flutter Linux Embedder |

Macros
fl_keyboard_manager_test.cc File Reference
`#include "flutter/shell/platform/linux/fl_keyboard_manager.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_plugin.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)

## 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_manager_test.cc.

## ◆ 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_manager_test.cc.

event
FlKeyEvent * event
Definition: fl_key_channel_responder.cc:118
_FlValue::type
FlValueType type
Definition: fl_value.cc:12