Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
test_keyboard.h File Reference
#include <windows.h>
#include <functional>
#include <string>
#include "flutter/fml/macros.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/windows/testing/engine_modifier.h"
#include "flutter/shell/platform/windows/testing/wm_builders.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Classes

struct  _FlutterPlatformMessageResponseHandle
 
class  flutter::testing::MockKeyResponseController
 
class  flutter::testing::MockMessageQueue
 

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Macros

#define EXPECT_EVENT_EQUALS(_target, _type, _physical, _logical, _character, _synthesized)
 

Functions

::testing::AssertionResult flutter::testing::_EventEquals (const char *expr_event, const char *expr_expected, const FlutterKeyEvent &event, const FlutterKeyEvent &expected)
 
char * flutter::testing::clone_string (const char *string)
 
LPARAM flutter::testing::CreateKeyEventLparam (USHORT scancode, bool extended, bool was_down, USHORT repeat_count, bool context_code, bool transition_state)
 
void flutter::testing::MockEmbedderApiForKeyboard (EngineModifier &modifier, std::shared_ptr< MockKeyResponseController > response_controller)
 

Macro Definition Documentation

◆ EXPECT_EVENT_EQUALS

#define EXPECT_EVENT_EQUALS (   _target,
  _type,
  _physical,
  _logical,
  _character,
  _synthesized 
)
Value:
EXPECT_PRED_FORMAT2( \
_EventEquals, _target, \
/* struct_size = */ sizeof(FlutterKeyEvent), \
/* timestamp = */ 0, \
/* type = */ _type, \
/* physical = */ _physical, \
/* logical = */ _logical, \
/* character = */ _character, \
/* synthesized = */ _synthesized, \
/* device_type = */ kFlutterKeyEventDeviceTypeKeyboard, \
}));
@ kFlutterKeyEventDeviceTypeKeyboard
Definition embedder.h:1079

Definition at line 146 of file test_keyboard.h.

150 { \
151 /* struct_size = */ sizeof(FlutterKeyEvent), \
152 /* timestamp = */ 0, \
153 /* type = */ _type, \
154 /* physical = */ _physical, \
155 /* logical = */ _logical, \
156 /* character = */ _character, \
157 /* synthesized = */ _synthesized, \
158 /* device_type = */ kFlutterKeyEventDeviceTypeKeyboard, \
159 }));