Mir
server_example_test_client.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored By: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIR_EXAMPLE_TEST_CLIENT_H_
20 #define MIR_EXAMPLE_TEST_CLIENT_H_
21 
22 #include <memory>
23 #include <future>
24 
25 #include "mir/main_loop.h"
26 
27 namespace mir
28 {
29 class Server;
30 
31 namespace examples
32 {
34 {
35  std::unique_ptr<mir::time::Alarm> client_kill_action;
36  std::unique_ptr<mir::time::Alarm> server_stop_action;
37  std::atomic<bool> test_failed;
38 };
39 
41 }
42 }
43 
44 #endif /* MIR_EXAMPLE_TEST_CLIENT_H_ */
Definition: server_example_test_client.h:33
Definition: as_render_target.h:27
Customise and run a Mir server.
Definition: server.h:85
void add_test_client_option_to(mir::Server &server, ClientContext &context)
Definition: server_example_test_client.cpp:90
std::unique_ptr< mir::time::Alarm > client_kill_action
Definition: server_example_test_client.h:35
std::unique_ptr< mir::time::Alarm > server_stop_action
Definition: server_example_test_client.h:36
std::atomic< bool > test_failed
Definition: server_example_test_client.h:37

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017