Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions | Variables
test_keyboard.cc File Reference
#include "flutter/shell/platform/windows/testing/test_keyboard.h"
#include <rapidjson/document.h>
#include "flutter/fml/logging.h"
#include "flutter/shell/platform/common/json_message_codec.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  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, std::shared_ptr< MockKeyResponseController > response_controller)
 

Variables

static std::shared_ptr< MockKeyResponseControllerflutter::testing::stored_response_controller
 

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 56 of file test_keyboard.cc.

57 { \
58 return ::testing::AssertionFailure() \
59 << "Expected equality of these values:\n " #val1 "\n " << val2 \
60 << "\n Actual: \n " << val1; \
61 }