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

#include <async_server_runner.h>

Inheritance diagram for mir_test_framework::AsyncServerRunner:
[legend]

Public Member Functions

 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

mir::Server server
 

Constructor & Destructor Documentation

◆ AsyncServerRunner()

mir_test_framework::AsyncServerRunner::AsyncServerRunner ( )

◆ ~AsyncServerRunner()

mir_test_framework::AsyncServerRunner::~AsyncServerRunner ( )
noexcept

Member Function Documentation

◆ add_to_environment()

void mir_test_framework::AsyncServerRunner::add_to_environment ( char const *  key,
char const *  value 
)

◆ connection()

auto mir_test_framework::AsyncServerRunner::connection ( int  fd) -> std::string
Returns
a connection string for a client to connect to the server

◆ new_connection()

auto mir_test_framework::AsyncServerRunner::new_connection ( ) -> std::string
Returns
a connection string for a new client to connect to the server

◆ override_window_management_policy()

template<typename Policy , typename ... Args>
void mir_test_framework::AsyncServerRunner::override_window_management_policy ( Args &...  args)
inline

◆ start_server()

void mir_test_framework::AsyncServerRunner::start_server ( )

Starts the server on a new thread.

◆ stop_server()

void mir_test_framework::AsyncServerRunner::stop_server ( )

Stops the server and joins thread.

◆ wait_for_server_exit()

void mir_test_framework::AsyncServerRunner::wait_for_server_exit ( )

Wait for the server to exit and joins thread.

Member Data Documentation

◆ server

mir::Server mir_test_framework::AsyncServerRunner::server

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

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