Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
mir_test_framework Namespace Reference

Classes

class  CrossProcessSync
 
class  DeclarativePlacementStrategy
 DeclarativePlacementStrategy 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  DefaultDisplayServerTestFixture
 
class  BespokeDisplayServerTestFixture
 
struct  InProcessServer
 Fixture for running Mir server in test process. More...
 
class  InputTestingClientConfiguration
 A fixture to be used with InputTestingServerConfiguration for input acceptance testing scenarios. By default, the client will connect and a surface will be created. The framework ensures the server will not send events before client is ready through CrossProcessSync. More...
 
class  InputTestingServerConfiguration
 
struct  Result
 
class  Process
 
struct  StubConnectionConfiguration
 
class  StubbedServerConfiguration
 stubs out the graphics and input subsystems to avoid tests failing where the hardware is not accessible More...
 
struct  TestingClientConfiguration
 
class  TestingProcessManager
 
class  TestingServerConfiguration
 
class  UsingStubClientPlatform
 

Typedefs

typedef std::map< std::string,
mir::geometry::Rectangle
SurfaceGeometries
 
typedef std::map< std::string,
mir::scene::DepthId
SurfaceDepths
 

Enumerations

enum  TerminationReason {
  TerminationReason::unknown, TerminationReason::child_terminated_normally, TerminationReason::child_terminated_by_signal, TerminationReason::child_terminated_with_core_dump,
  TerminationReason::child_stopped_by_signal, TerminationReason::child_resumed_by_signal
}
 

Functions

bool detect_server (std::string const &name, std::chrono::milliseconds const &timeout)
 
std::ostream & operator<< (std::ostream &out, const Result &result)
 
template<typename Callable >
std::shared_ptr< Processfork_and_run_in_a_different_process (Callable &&main_fn, std::function< int()> exit_fn)
 
std::string const & test_socket_file ()
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
unknown 
child_terminated_normally 
child_terminated_by_signal 
child_terminated_with_core_dump 
child_stopped_by_signal 
child_resumed_by_signal 

Function Documentation

bool mir_test_framework::detect_server ( std::string const &  name,
std::chrono::milliseconds const &  timeout 
)
template<typename Callable >
std::shared_ptr<Process> mir_test_framework::fork_and_run_in_a_different_process ( Callable &&  main_fn,
std::function< int()>  exit_fn 
)
std::ostream& mir_test_framework::operator<< ( std::ostream &  out,
const Result &  result 
)
std::string const & mir_test_framework::test_socket_file ( )

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014