Flutter Engine
test_keyboard.cc File Reference
#include "flutter/shell/platform/windows/testing/test_keyboard.h"
#include "flutter/shell/platform/common/json_message_codec.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include <rapidjson/document.h>
#include <windowsx.h>

Go to the source code of this file.

Namespaces

 flutter
 
 flutter::testing
 

Macros

#define _RETURN_IF_NOT_EQUALS(val1, val2)
 

Functions

char * flutter::testing::clone_string (const char *string)
 
::testing::AssertionResult flutter::testing::_EventEquals (const char *expr_event, const char *expr_expected, const FlutterKeyEvent &event, const FlutterKeyEvent &expected)
 
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, MockKeyEventChannelHandler channel_handler, MockKeyEventEmbedderHandler embedder_handler)
 

Variables

static MockKeyEventChannelHandler flutter::testing::stored_channel_handler
 
static MockKeyEventEmbedderHandler flutter::testing::stored_embedder_handler
 

Macro Definition Documentation

◆ _RETURN_IF_NOT_EQUALS

#define _RETURN_IF_NOT_EQUALS (   val1,
  val2 
)
Value:
if ((val1) != (val2)) { \
return ::testing::AssertionFailure() \
<< "Expected equality of these values:\n " #val1 "\n " << val2 \
<< "\n Actual: \n " << val1; \
}

Definition at line 51 of file test_keyboard.cc.

Referenced by flutter::testing::_EventEquals().

Variable Documentation

◆ callback

◆ user_data

void* user_data

Definition at line 47 of file test_keyboard.cc.

Referenced by flutter::testing::MockEmbedderApiForKeyboard().