Mir
|
Basic fixture for tests that don't use graphics or input hardware. More...
#include <headless_test.h>
Public Member Functions | |
HeadlessTest () | |
~HeadlessTest () noexcept | |
void | preset_display (std::shared_ptr< mir::graphics::Display > const &display) |
void | initial_display_layout (std::vector< mir::geometry::Rectangle > const &display_rects) |
Override initial display layout. More... | |
![]() | |
AsyncServerRunner () | |
~AsyncServerRunner () noexcept | |
void | add_to_environment (char const *key, char const *value) |
void | start_server () |
Starts the server on a new thread. More... | |
void | stop_server () |
Stops the server and joins thread. More... | |
void | wait_for_server_exit () |
Wait for the server to exit and joins thread. More... | |
auto | new_connection () -> std::string |
auto | connection (int fd) -> std::string |
template<typename Policy , typename ... Args> | |
void | override_window_management_policy (Args &... args) |
Additional Inherited Members | |
![]() | |
mir::Server | server |
Basic fixture for tests that don't use graphics or input hardware.
This provides a mechanism for temporarily setting environment variables. It automatically sets "MIR_SERVER_PLATFORM_GRAPHICS_LIB" to "graphics-dummy.so" and MIR_SERVER_PLATFORM_INPUT_LIB to "input-stub.so" as the tests do not hit the graphics hardware.
mir_test_framework::HeadlessTest::HeadlessTest | ( | ) |
|
noexcept |
void mir_test_framework::HeadlessTest::initial_display_layout | ( | std::vector< mir::geometry::Rectangle > const & | display_rects | ) |
Override initial display layout.
void mir_test_framework::HeadlessTest::preset_display | ( | std::shared_ptr< mir::graphics::Display > const & | display | ) |
Copyright © 2012-2018
Canonical Ltd.
Generated on Thu Mar 15 13:04:52 UTC 2018