Flutter Engine
The Flutter Engine
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:1081
::testing::AssertionResult _EventEquals(const char *expr_event, const char *expr_expected, const FlutterKeyEvent &event, const FlutterKeyEvent &expected)

Definition at line 146 of file test_keyboard.h.