|
Mir
|
Classes | |
| class | AsyncServerRunner |
| struct | CanonicalWindowManagerPolicy |
| struct | ConnectedClientHeadlessServer |
| struct | ConnectedClientWithAWindow |
| class | DeclarativePlacementWindowManagerPolicy |
| DeclarativePlacementWindowManagerPolicy is a test utility server component for specifying a static list of surface geometries and relative depths. Used, for example, in input tests where it is necessary to set up scenarios depending on multiple surfaces geometry and stacking. More... | |
| class | FakeInputDevice |
| struct | HeadlessDisplayBufferCompositorFactory |
| struct | HeadlessInProcessServer |
| class | HeadlessNestedServerRunner |
| class | HeadlessTest |
| Basic fixture for tests that don't use graphics or input hardware. More... | |
| struct | InProcessServer |
| Fixture for running Mir server in test process. More... | |
| class | InputDeviceFaker |
| class | InterprocessClientServerTest |
| struct | ObservantShell |
| struct | PassthroughTracker |
| struct | PlacementApplyingShell |
| class | Process |
| struct | Result |
| struct | ServerRunner |
| Utility for running Mir server in test process. More... | |
| class | TemporaryEnvironmentValue |
| class | VisibleSurface |
Typedefs | |
| typedef std::map< std::string, mir::geometry::Rectangle > | SurfaceGeometries |
| using | ClientInputRegions = std::map< std::string, std::vector< mir::geometry::Rectangle > > |
| using | ClientPositions = std::map< std::string, mir::geometry::Rectangle > |
Functions | |
| MirWindow * | make_any_surface (MirConnection *connection) |
| MirWindow * | make_any_surface (MirConnection *connection, MirWindowEventCallback callback, void *context) |
| MirWindow * | make_surface (MirConnection *connection, mir::geometry::Size size, MirPixelFormat format) |
| bool | detect_server (std::string const &name, std::chrono::milliseconds const &timeout) |
| std::string | executable_path () |
| std::string | library_path () |
| std::string | server_platform_path () |
| std::string | test_data_path () |
| std::string | server_platform (std::string const &name) |
| std::string | server_input_platform (std::string const &name) |
| std::string | client_platform (std::string const &name) |
| std::string const & | test_socket_file () |
| int | main (int argc, char *argv[]) |
| Initialize and run the mir test framework as follows: More... | |
| void | set_commandline (int argc, char *argv[]) |
| Note the commandline for use in the mir test framework. More... | |
| std::ostream & | operator<< (std::ostream &out, const Result &result) |
| template<typename Callable > | |
| std::shared_ptr< Process > | fork_and_run_in_a_different_process (Callable &&main_fn, std::function< int()> exit_fn) |
| void | add_client_platform_error (FailurePoint where, std::exception_ptr what) |
| Add an exception to the client platform created by the next call to create_client_platform. More... | |
| MATCHER (IsStubPlatformPackage, "") | |
| std::shared_ptr< mir::graphics::Platform > | make_stubbed_server_graphics_platform (std::vector< mir::geometry::Rectangle > const &display_rects) |
| void | set_next_display_rects (std::unique_ptr< std::vector< mir::geometry::Rectangle >> &&display_rects) |
| void | set_next_preset_display (std::shared_ptr< mir::graphics::Display > const &display) |
| mir::UniqueModulePtr< FakeInputDevice > | add_fake_input_device (mir::input::InputDeviceInfo const &info) |
| void | disable_flavors () |
| std::ostream & | operator<< (std::ostream &os, VisibleSurface const &s) |
Variables | |
| constexpr int | stub_data_size {21} |
| constexpr int | stub_data_guard {0x0eadbeef} |
| using mir_test_framework::ClientInputRegions = typedef std::map<std::string, std::vector<mir::geometry::Rectangle> > |
| using mir_test_framework::ClientPositions = typedef std::map<std::string, mir::geometry::Rectangle> |
| typedef std::map<std::string, mir::geometry::Rectangle> mir_test_framework::SurfaceGeometries |
|
strong |
|
strong |
| void mir_test_framework::add_client_platform_error | ( | FailurePoint | where, |
| std::exception_ptr | what | ||
| ) |
Add an exception to the client platform created by the next call to create_client_platform.
| [in] | where | The platform call that will throw an exception |
| [in,out] | what | The exception to throw |
| mir::UniqueModulePtr<FakeInputDevice> mir_test_framework::add_fake_input_device | ( | mir::input::InputDeviceInfo const & | info | ) |
| std::string mir_test_framework::client_platform | ( | std::string const & | name | ) |
| bool mir_test_framework::detect_server | ( | std::string const & | name, |
| std::chrono::milliseconds const & | timeout | ||
| ) |
| void mir_test_framework::disable_flavors | ( | ) |
| std::string mir_test_framework::executable_path | ( | ) |
| std::shared_ptr<Process> mir_test_framework::fork_and_run_in_a_different_process | ( | Callable && | main_fn, |
| std::function< int()> | exit_fn | ||
| ) |
| std::string mir_test_framework::library_path | ( | ) |
| int mir_test_framework::main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Initialize and run the mir test framework as follows:
| MirWindow* mir_test_framework::make_any_surface | ( | MirConnection * | connection | ) |
| MirWindow* mir_test_framework::make_any_surface | ( | MirConnection * | connection, |
| MirWindowEventCallback | callback, | ||
| void * | context | ||
| ) |
| std::shared_ptr<mir::graphics::Platform> mir_test_framework::make_stubbed_server_graphics_platform | ( | std::vector< mir::geometry::Rectangle > const & | display_rects | ) |
| MirWindow* mir_test_framework::make_surface | ( | MirConnection * | connection, |
| mir::geometry::Size | size, | ||
| MirPixelFormat | format | ||
| ) |
| mir_test_framework::MATCHER | ( | IsStubPlatformPackage | , |
| "" | |||
| ) |
| std::ostream& mir_test_framework::operator<< | ( | std::ostream & | os, |
| VisibleSurface const & | s | ||
| ) |
| std::ostream& mir_test_framework::operator<< | ( | std::ostream & | out, |
| const Result & | result | ||
| ) |
| std::string mir_test_framework::server_input_platform | ( | std::string const & | name | ) |
| std::string mir_test_framework::server_platform | ( | std::string const & | name | ) |
| std::string mir_test_framework::server_platform_path | ( | ) |
| void mir_test_framework::set_commandline | ( | int | argc, |
| char * | argv[] | ||
| ) |
Note the commandline for use in the mir test framework.
The parameter list referenced by argv must remain valid during the tests.
| void mir_test_framework::set_next_display_rects | ( | std::unique_ptr< std::vector< mir::geometry::Rectangle >> && | display_rects | ) |
| void mir_test_framework::set_next_preset_display | ( | std::shared_ptr< mir::graphics::Display > const & | display | ) |
| std::string mir_test_framework::test_data_path | ( | ) |
| std::string const& mir_test_framework::test_socket_file | ( | ) |
| constexpr int mir_test_framework::stub_data_guard {0x0eadbeef} |
| constexpr int mir_test_framework::stub_data_size {21} |
Copyright © 2012-2018
Canonical Ltd.
Generated on Thu Apr 5 15:26:05 UTC 2018