Mir
Namespaces | Functions
event_matchers.h File Reference
#include <cmath>
#include "mir_toolkit/event.h"
#include <xkbcommon/xkbcommon.h>
#include <xkbcommon/xkbcommon-keysyms.h>
#include <memory>
#include <gmock/gmock.h>
Include dependency graph for event_matchers.h:

Go to the source code of this file.

Namespaces

 mir
 AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time.
 
 mir::test
 

Functions

void PrintTo (MirEvent const &event, std::ostream *os)
 
void PrintTo (MirEvent const *event, std::ostream *os)
 
 mir::test::MATCHER (KeyDownEvent, "")
 
 mir::test::MATCHER (KeyRepeatEvent, "")
 
 mir::test::MATCHER (KeyUpEvent, "")
 
 mir::test::MATCHER_P (KeyWithModifiers, modifiers, "")
 
 mir::test::MATCHER_P (KeyOfSymbol, keysym, "")
 
 mir::test::MATCHER_P (KeyWithText, text, "")
 
 mir::test::MATCHER_P (KeyOfScanCode, code, "")
 
 mir::test::MATCHER_P (MirKeyboardEventMatches, event, "")
 
 mir::test::MATCHER_P (MirTouchEventMatches, event, "")
 
 mir::test::MATCHER (PointerEnterEvent, "")
 
 mir::test::MATCHER (PointerLeaveEvent, "")
 
bool mir::test::button_event_matches (MirPointerEvent const *pev, float x, float y, MirPointerAction action, MirPointerButtons button_state, bool check_action=true, bool check_buttons=true, bool check_axes=true)
 
 mir::test::MATCHER_P2 (ButtonDownEvent, x, y, "")
 
 mir::test::MATCHER_P2 (ButtonDownEventWithButton, pos, button, "")
 
 mir::test::MATCHER_P2 (ButtonUpEvent, x, y, "")
 
 mir::test::MATCHER_P3 (ButtonsDown, x, y, buttons, "")
 
 mir::test::MATCHER_P3 (ButtonsUp, x, y, buttons, "")
 
 mir::test::MATCHER_P2 (ButtonUpEventWithButton, pos, button, "")
 
 mir::test::MATCHER_P2 (PointerAxisChange, scroll_axis, value, "")
 
 mir::test::MATCHER_P2 (TouchEvent, x, y, "")
 
 mir::test::MATCHER_P4 (TouchContact, slot, action, x, y, "")
 
 mir::test::MATCHER_P2 (TouchUpEvent, x, y, "")
 
 mir::test::MATCHER_P2 (PointerEventWithPosition, x, y, "")
 
 mir::test::MATCHER_P2 (PointerEnterEventWithPosition, x, y, "")
 
 mir::test::MATCHER_P (PointerEventWithModifiers, modifiers, "")
 
 mir::test::MATCHER_P2 (PointerEventWithDiff, expect_dx, expect_dy, "")
 
 mir::test::MATCHER_P2 (PointerEnterEventWithDiff, expect_dx, expect_dy, "")
 
 mir::test::MATCHER_P4 (TouchEventInDirection, x0, y0, x1, y1, "")
 
 mir::test::MATCHER (TouchMovementEvent, "")
 
 mir::test::MATCHER (PointerMovementEvent, "")
 
 mir::test::MATCHER_P2 (WindowEvent, attrib, value, "")
 
 mir::test::MATCHER_P (KeymapEventForDevice, device_id, "")
 
 mir::test::MATCHER_P (OrientationEvent, direction, "")
 
 mir::test::MATCHER_P (InputDeviceIdMatches, device_id, "")
 
 mir::test::MATCHER (InputConfigurationEvent, "")
 
 mir::test::MATCHER (InputDeviceStateEvent, "")
 
 mir::test::MATCHER_P (DeviceStateWithPressedKeys, keys, "")
 
 mir::test::MATCHER_P2 (DeviceStateWithPosition, x, y, "")
 
 mir::test::MATCHER_P (RectanglesMatches, rectangles, "")
 
MirEvent const * mir::test::to_address (MirEvent const *event)
 
MirEvent const * mir::test::to_address (MirEvent const &event)
 
MirEvent const * mir::test::to_address (std::shared_ptr< MirEvent const > const &event)
 
MirEvent const & mir::test::to_ref (MirEvent const *event)
 
MirEvent const & mir::test::to_ref (MirEvent const &event)
 
MirKeyboardEvent const * mir::test::maybe_key_event (MirEvent const *event)
 
MirTouchEvent const * mir::test::maybe_touch_event (MirEvent const *event)
 
MirPointerEvent const * mir::test::maybe_pointer_event (MirEvent const *event)
 

Function Documentation

◆ PrintTo() [1/2]

void PrintTo ( MirEvent const &  event,
std::ostream *  os 
)

◆ PrintTo() [2/2]

void PrintTo ( MirEvent const *  event,
std::ostream *  os 
)

Copyright © 2012-2018 Canonical Ltd.
Generated on Tue Feb 20 03:16:44 UTC 2018