Mir
stub_client_platform_options.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2017 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 2 or 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: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_FRAMEWORK_STUB_CLIENT_PLATFORM_OPTIONS_H_
20 #define MIR_TEST_FRAMEWORK_STUB_CLIENT_PLATFORM_OPTIONS_H_
21 
22 #include <exception>
23 
24 namespace mir_test_framework
25 {
26 /*
27  * TODO: This should be an enum class, but gcc < 6 doesn't implement the
28  * C++14 DR requiring that std::unordered_map<enum, FOO> works, and using
29  * a raw enum means we can pass std::hash<int> rather than adding an extra
30  * hash implementation.
31  */
33 {
37 };
38 
45 void add_client_platform_error(FailurePoint where, std::exception_ptr what);
46 }
47 
48 #endif //MIR_TEST_FRAMEWORK_STUB_CLIENT_PLATFORM_OPTIONS_H_
Definition: stub_client_platform_options.h:35
FailurePoint
Definition: stub_client_platform_options.h:32
Definition: stub_client_platform_options.h:36
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.
Definition: any_surface.h:25
Definition: stub_client_platform_options.h:34

Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:05:11 UTC 2018