Mir
mock_egl_native_surface.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 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: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_DOUBLES_MOCK_EGL_NATIVE_SURFACE_H_
20 #define MIR_TEST_DOUBLES_MOCK_EGL_NATIVE_SURFACE_H_
21 
22 #include "mir/client/egl_native_surface.h"
23 
24 #include <gmock/gmock.h>
25 
26 namespace mir
27 {
28 namespace test
29 {
30 namespace doubles
31 {
32 
33 struct MockEGLNativeSurface : public client::EGLNativeSurface
34 {
35 #pragma GCC diagnostic push
36 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
37  MOCK_CONST_METHOD0(get_parameters, MirWindowParameters());
38 #pragma GCC diagnostic pop
39  MOCK_METHOD0(get_current_buffer, std::shared_ptr<client::ClientBuffer>());
40  MOCK_METHOD0(swap_buffers_sync, void());
41  MOCK_METHOD2(request_and_wait_for_configure, void(MirWindowAttrib,int));
42  MOCK_METHOD1(set_buffer_cache_size, void(unsigned int));
43  MOCK_METHOD1(set_size, void(geometry::Size));
44 };
45 
46 }
47 }
48 }
49 #endif /* MIR_TEST_DOUBLES_MOCK_EGL_NATIVE_SURFACE_H_ */
Definition: size.h:30
MOCK_METHOD2(request_and_wait_for_configure, void(MirWindowAttrib, int))
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: sw_splash.h:26
MirWindowAttrib
Attributes of a window that the client and server/shell may wish to get or set over the wire...
Definition: common.h:76
MOCK_METHOD1(set_buffer_cache_size, void(unsigned int))
MOCK_CONST_METHOD0(get_parameters, MirWindowParameters())
Definition: mock_egl_native_surface.h:33
MOCK_METHOD0(get_current_buffer, std::shared_ptr< client::ClientBuffer >())

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