Mir
Public Member Functions | Public Attributes | List of all members
mir_test_framework::InterprocessClientServerTest Class Reference

#include <interprocess_client_server_test.h>

Inheritance diagram for mir_test_framework::InterprocessClientServerTest:
[legend]

Public Member Functions

 ~InterprocessClientServerTest ()
 
void init_server (std::function< void()> const &init_code)
 
void run_in_server (std::function< void()> const &exec_code)
 
void run_in_server_and_disable_core_dump (std::function< void()> const &exec_code)
 
void run_in_client (std::function< void()> const &client_code)
 
auto new_client_process (std::function< void()> const &client_code) -> std::shared_ptr< Process >
 
bool is_test_process () const
 
pid_t client_pid () const
 
void TearDown () override
 
auto process_type () const -> char const *
 
void expect_server_signalled (int signal)
 
void stop_server ()
 
bool sigkill_server_process ()
 
Result wait_for_shutdown_server_process ()
 
- Public Member Functions inherited from mir_test_framework::HeadlessTest
 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...
 
- Public Member Functions inherited from mir_test_framework::AsyncServerRunner
 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)
 

Public Attributes

char const *const mir_test_socket = test_socket_file().c_str()
 
- Public Attributes inherited from mir_test_framework::AsyncServerRunner
mir::Server server
 

Constructor & Destructor Documentation

◆ ~InterprocessClientServerTest()

mir_test_framework::InterprocessClientServerTest::~InterprocessClientServerTest ( )

Member Function Documentation

◆ client_pid()

pid_t mir_test_framework::InterprocessClientServerTest::client_pid ( ) const
inline

◆ expect_server_signalled()

void mir_test_framework::InterprocessClientServerTest::expect_server_signalled ( int  signal)

◆ init_server()

void mir_test_framework::InterprocessClientServerTest::init_server ( std::function< void()> const &  init_code)

◆ is_test_process()

bool mir_test_framework::InterprocessClientServerTest::is_test_process ( ) const

◆ new_client_process()

auto mir_test_framework::InterprocessClientServerTest::new_client_process ( std::function< void()> const &  client_code) -> std::shared_ptr< Process >

◆ process_type()

auto mir_test_framework::InterprocessClientServerTest::process_type ( ) const -> char const*
inline

◆ run_in_client()

void mir_test_framework::InterprocessClientServerTest::run_in_client ( std::function< void()> const &  client_code)

◆ run_in_server()

void mir_test_framework::InterprocessClientServerTest::run_in_server ( std::function< void()> const &  exec_code)

◆ run_in_server_and_disable_core_dump()

void mir_test_framework::InterprocessClientServerTest::run_in_server_and_disable_core_dump ( std::function< void()> const &  exec_code)

◆ sigkill_server_process()

bool mir_test_framework::InterprocessClientServerTest::sigkill_server_process ( )

◆ stop_server()

void mir_test_framework::InterprocessClientServerTest::stop_server ( )

◆ TearDown()

void mir_test_framework::InterprocessClientServerTest::TearDown ( )
override

◆ wait_for_shutdown_server_process()

Result mir_test_framework::InterprocessClientServerTest::wait_for_shutdown_server_process ( )

Member Data Documentation

◆ mir_test_socket

char const* const mir_test_framework::InterprocessClientServerTest::mir_test_socket = test_socket_file().c_str()

The documentation for this class was generated from the following file:

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu Mar 15 13:06:27 UTC 2018