| Flutter macOS Embedder |

Classes | Namespaces | Macros | Functions | Variables
FlutterKeyboardManagerTest.mm File Reference
`#include <Carbon/Carbon.h>`
`#import <Foundation/Foundation.h>`
`#import <OCMock/OCMock.h>`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyPrimaryResponder.h"`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardLayout.h"`
`#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeyboardManager.h"`
`#include "flutter/shell/platform/embedder/test_utils/key_codes.g.h"`
`#import "flutter/testing/testing.h"`
`#include "third_party/googletest/googletest/include/gtest/gtest.h"`

Go to the source code of this file.

## Classes
class | KeyboardTester
class | FlutterKeyboardManagerUnittestsObjC

## Namespaces
| flutter
| flutter::testing

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

## Functions
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, SinglePrimaryResponder)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, DoublePrimaryResponder)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, SingleFinalResponder)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, EmptyNextResponder)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, GetPressedState)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, KeyboardChannelGetPressedState)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, RacingConditionBetweenKeyAndText)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, CorrectLogicalKeyForLayouts)
| flutter::testing::TEST (FlutterKeyboardManagerUnittests, ShouldNotHoldStrongReferenceToDelegate)

## Variables
AsyncKeyCallbackHandler | _channelHandler
TextInputCallback | _textCallback
NSMutableArray< NSNumber * > * | _typeStorage
uint32_t | _typeStorageMask
__weak id< FlutterKeyboardLayoutDelegate > | _keyboardLayoutDelegate
const MockLayoutData * | _currentLayout
id | _keyboardChannelResult
NSObject< FlutterBinaryMessenger > * | _messengerMock
FlutterBinaryMessageHandler | _keyboardHandler
NSObject< FlutterKeyboardManagerEventContext > * | _eventContextMock

## Macro Definition Documentation

## ◆ VERIFY_DOWN

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

Value:
EXPECT_EQ(events[0].type, kFlutterKeyEventTypeDown); \
EXPECT_EQ(events[0].logical, static_cast<uint64_t>(OUT_LOGICAL)); \
EXPECT_STREQ(events[0].character, (OUT_CHAR)); \
clearEvents(events);

Definition at line 173 of file FlutterKeyboardManagerTest.mm.

## Variable Documentation

## ◆ _channelHandler

AsyncKeyCallbackHandler _channelHandler

Initial value:
{
AsyncEmbedderCallbackHandler _embedderHandler

Definition at line 239 of file FlutterKeyboardManagerTest.mm.

## ◆ _currentLayout

const MockLayoutData* _currentLayout

Definition at line 246 of file FlutterKeyboardManagerTest.mm.

## ◆ _eventContextMock

NSObject<FlutterKeyboardManagerEventContext>* _eventContextMock

Definition at line 252 of file FlutterKeyboardManagerTest.mm.

## ◆ _keyboardChannelResult

id _keyboardChannelResult

Definition at line 248 of file FlutterKeyboardManagerTest.mm.

## ◆ _keyboardHandler

FlutterBinaryMessageHandler _keyboardHandler

Definition at line 250 of file FlutterKeyboardManagerTest.mm.

## ◆ _keyboardLayoutDelegate

__weak id<FlutterKeyboardLayoutDelegate> _keyboardLayoutDelegate

Definition at line 245 of file FlutterKeyboardManagerTest.mm.

## ◆ _messengerMock

NSObject<FlutterBinaryMessenger>* _messengerMock

Definition at line 249 of file FlutterKeyboardManagerTest.mm.

## ◆ _textCallback

TextInputCallback _textCallback

Definition at line 240 of file FlutterKeyboardManagerTest.mm.

## ◆ _typeStorage

NSMutableArray<NSNumber*>* _typeStorage

Definition at line 242 of file FlutterKeyboardManagerTest.mm.

## ◆ _typeStorageMask

uint32_t _typeStorageMask

Definition at line 243 of file FlutterKeyboardManagerTest.mm.