Mir
|
Namespaces | |
doubles | |
Classes | |
class | AutoJoinThread |
class | AutoUnblockThread |
class | CrossProcessAction |
class | CrossProcessSync |
class | Pipe |
class | Popen |
Popen - A popen c++ wrapper. More... | |
class | Signal |
A threadsafe, waitable signal. More... | |
Functions | |
void | disable_core_dump () |
bool | compare_display_configurations (testing::MatchResultListener *listener, graphics::DisplayConfiguration const &display_config1, graphics::DisplayConfiguration const &display_config2) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfiguration const &client_config, graphics::DisplayConfiguration const &display_config) |
bool | compare_display_configurations (testing::MatchResultListener *listener, protobuf::DisplayConfiguration const &protobuf_config, graphics::DisplayConfiguration const &display_config) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfiguration const *client_config1, MirDisplayConfiguration const *client_config2) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfiguration const &client_config, protobuf::DisplayConfiguration const &protobuf_config) |
bool | compare_display_configurations (testing::MatchResultListener *listener, graphics::DisplayConfiguration const &display_config1, MirDisplayConfiguration const *display_config2) |
bool | compare_display_configurations (testing::MatchResultListener *listener, std::shared_ptr< graphics::DisplayConfiguration const > &display_config1, MirDisplayConfiguration const *display_config2) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfiguration const *display_config2, graphics::DisplayConfiguration const &display_config1) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfig const *client_config, graphics::DisplayConfiguration const &server_config) |
bool | compare_display_configurations (testing::MatchResultListener *listener, graphics::DisplayConfiguration const &server_config, MirDisplayConfig const *client_config) |
bool | compare_display_configurations (testing::MatchResultListener *listener, MirDisplayConfig const *config1, MirDisplayConfig const *config2) |
bool | compare_display_configurations (testing::MatchResultListener *listener, std::shared_ptr< graphics::DisplayConfiguration > const &config1, MirDisplayConfig const *config2) |
MATCHER_P (DisplayConfigMatches, config, "") | |
MATCHER (KeyDownEvent, "") | |
MATCHER (KeyRepeatEvent, "") | |
MATCHER (KeyUpEvent, "") | |
MATCHER_P (KeyWithModifiers, modifiers, "") | |
MATCHER_P (KeyOfSymbol, keysym, "") | |
MATCHER_P (KeyWithText, text, "") | |
MATCHER_P (KeyOfScanCode, code, "") | |
MATCHER_P (MirKeyboardEventMatches, event, "") | |
MATCHER_P (MirTouchEventMatches, event, "") | |
MATCHER (PointerEnterEvent, "") | |
MATCHER (PointerLeaveEvent, "") | |
bool | 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) |
MATCHER_P2 (ButtonDownEvent, x, y, "") | |
MATCHER_P2 (ButtonDownEventWithButton, pos, button, "") | |
MATCHER_P2 (ButtonUpEvent, x, y, "") | |
MATCHER_P3 (ButtonsDown, x, y, buttons, "") | |
MATCHER_P3 (ButtonsUp, x, y, buttons, "") | |
MATCHER_P2 (ButtonUpEventWithButton, pos, button, "") | |
MATCHER_P2 (PointerAxisChange, scroll_axis, value, "") | |
MATCHER_P2 (TouchEvent, x, y, "") | |
MATCHER_P4 (TouchContact, slot, action, x, y, "") | |
MATCHER_P2 (TouchUpEvent, x, y, "") | |
MATCHER_P2 (PointerEventWithPosition, x, y, "") | |
MATCHER_P2 (PointerEnterEventWithPosition, x, y, "") | |
MATCHER_P (PointerEventWithModifiers, modifiers, "") | |
MATCHER_P2 (PointerEventWithDiff, expect_dx, expect_dy, "") | |
MATCHER_P2 (PointerEnterEventWithDiff, expect_dx, expect_dy, "") | |
MATCHER_P4 (TouchEventInDirection, x0, y0, x1, y1, "") | |
MATCHER (TouchMovementEvent, "") | |
MATCHER (PointerMovementEvent, "") | |
MATCHER_P2 (WindowEvent, attrib, value, "") | |
MATCHER_P (KeymapEventForDevice, device_id, "") | |
MATCHER_P (OrientationEvent, direction, "") | |
MATCHER_P (InputDeviceIdMatches, device_id, "") | |
MATCHER (InputConfigurationEvent, "") | |
MATCHER (InputDeviceStateEvent, "") | |
MATCHER_P (DeviceStateWithPressedKeys, keys, "") | |
MATCHER_P2 (DeviceStateWithPosition, x, y, "") | |
MATCHER_P (RectanglesMatches, rectangles, "") | |
template<typename Type > | |
std::shared_ptr< Type > | fake_shared (Type &t) |
ACTION_P (ReturnFalseAndWakeUp, signal) | |
ACTION_P (WakeUp, signal) | |
ACTION_P2 (WakeUpWhenZero, signal, atomic_int) | |
bool | spin_wait_for_condition_or_timeout (std::function< bool()> const &condition, std::chrono::milliseconds timeout, std::chrono::milliseconds spin_period=std::chrono::milliseconds{10}) |
MirEvent const * | to_address (MirEvent const *event) |
MirEvent const * | to_address (MirEvent const &event) |
MirEvent const * | to_address (std::shared_ptr< MirEvent const > const &event) |
MirEvent const & | to_ref (MirEvent const *event) |
MirEvent const & | to_ref (MirEvent const &event) |
MirKeyboardEvent const * | maybe_key_event (MirEvent const *event) |
MirTouchEvent const * | maybe_touch_event (MirEvent const *event) |
MirPointerEvent const * | maybe_pointer_event (MirEvent const *event) |
mir::test::ACTION_P | ( | ReturnFalseAndWakeUp | , |
signal | |||
) |
mir::test::ACTION_P | ( | WakeUp | , |
signal | |||
) |
mir::test::ACTION_P2 | ( | WakeUpWhenZero | , |
signal | , | ||
atomic_int | |||
) |
|
inline |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
graphics::DisplayConfiguration const & | display_config1, | ||
graphics::DisplayConfiguration const & | display_config2 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfiguration const & | client_config, | ||
graphics::DisplayConfiguration const & | display_config | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
protobuf::DisplayConfiguration const & | protobuf_config, | ||
graphics::DisplayConfiguration const & | display_config | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfiguration const * | client_config1, | ||
MirDisplayConfiguration const * | client_config2 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfiguration const & | client_config, | ||
protobuf::DisplayConfiguration const & | protobuf_config | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
graphics::DisplayConfiguration const & | display_config1, | ||
MirDisplayConfiguration const * | display_config2 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
std::shared_ptr< graphics::DisplayConfiguration const > & | display_config1, | ||
MirDisplayConfiguration const * | display_config2 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfiguration const * | display_config2, | ||
graphics::DisplayConfiguration const & | display_config1 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfig const * | client_config, | ||
graphics::DisplayConfiguration const & | server_config | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
graphics::DisplayConfiguration const & | server_config, | ||
MirDisplayConfig const * | client_config | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
MirDisplayConfig const * | config1, | ||
MirDisplayConfig const * | config2 | ||
) |
bool mir::test::compare_display_configurations | ( | testing::MatchResultListener * | listener, |
std::shared_ptr< graphics::DisplayConfiguration > const & | config1, | ||
MirDisplayConfig const * | config2 | ||
) |
|
inline |
std::shared_ptr<Type> mir::test::fake_shared | ( | Type & | t | ) |
mir::test::MATCHER | ( | KeyDownEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | KeyRepeatEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | KeyUpEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | PointerEnterEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | PointerLeaveEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | TouchMovementEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | PointerMovementEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | InputConfigurationEvent | , |
"" | |||
) |
mir::test::MATCHER | ( | InputDeviceStateEvent | , |
"" | |||
) |
mir::test::MATCHER_P | ( | DisplayConfigMatches | , |
config | , | ||
"" | |||
) |
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_P | ( | PointerEventWithModifiers | , |
modifiers | , | ||
"" | |||
) |
mir::test::MATCHER_P | ( | KeymapEventForDevice | , |
device_id | , | ||
"" | |||
) |
mir::test::MATCHER_P | ( | OrientationEvent | , |
direction | , | ||
"" | |||
) |
mir::test::MATCHER_P | ( | InputDeviceIdMatches | , |
device_id | , | ||
"" | |||
) |
mir::test::MATCHER_P | ( | DeviceStateWithPressedKeys | , |
keys | , | ||
"" | |||
) |
mir::test::MATCHER_P | ( | RectanglesMatches | , |
rectangles | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | ButtonDownEvent | , |
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | ButtonDownEventWithButton | , |
pos | , | ||
button | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | ButtonUpEvent | , |
x | , | ||
y | , | ||
"" | |||
) |
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_P2 | ( | TouchUpEvent | , |
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | PointerEventWithPosition | , |
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | PointerEnterEventWithPosition | , |
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | PointerEventWithDiff | , |
expect_dx | , | ||
expect_dy | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | PointerEnterEventWithDiff | , |
expect_dx | , | ||
expect_dy | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | WindowEvent | , |
attrib | , | ||
value | , | ||
"" | |||
) |
mir::test::MATCHER_P2 | ( | DeviceStateWithPosition | , |
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P3 | ( | ButtonsDown | , |
x | , | ||
y | , | ||
buttons | , | ||
"" | |||
) |
mir::test::MATCHER_P3 | ( | ButtonsUp | , |
x | , | ||
y | , | ||
buttons | , | ||
"" | |||
) |
mir::test::MATCHER_P4 | ( | TouchContact | , |
slot | , | ||
action | , | ||
x | , | ||
y | , | ||
"" | |||
) |
mir::test::MATCHER_P4 | ( | TouchEventInDirection | , |
x0 | , | ||
y0 | , | ||
x1 | , | ||
y1 | , | ||
"" | |||
) |
|
inline |
|
inline |
|
inline |
bool mir::test::spin_wait_for_condition_or_timeout | ( | std::function< bool()> const & | condition, |
std::chrono::milliseconds | timeout, | ||
std::chrono::milliseconds | spin_period = std::chrono::milliseconds{10} |
||
) |
Pointer and reference adaptors for MirEvent inside gmock matchers.
Copyright © 2012-2018
Canonical Ltd.
Generated on Thu Mar 15 13:04:52 UTC 2018