Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mock_display_device.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 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: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 
19 #ifndef MIR_TEST_DOUBLES_MOCK_DISPLAY_DEVICE_H_
20 #define MIR_TEST_DOUBLES_MOCK_DISPLAY_DEVICE_H_
21 
22 #include "mir/graphics/buffer.h"
25 #include <gmock/gmock.h>
26 
27 namespace mir
28 {
29 namespace test
30 {
31 namespace doubles
32 {
33 class MockDisplayDevice : public graphics::android::DisplayDevice
34 {
35 public:
36  ~MockDisplayDevice() noexcept {}
37  MOCK_METHOD1(mode, void(MirPowerMode));
38  MOCK_METHOD1(render_gl, void(graphics::android::SwappingGLContext const&));
39  MOCK_METHOD3(render_gl_and_overlays, void(
40  graphics::android::SwappingGLContext const&,
42  std::function<void(graphics::Renderable const&)> const&));
43  MOCK_METHOD1(post, void(graphics::Buffer const&));
44  MOCK_CONST_METHOD1(apply_orientation, bool(MirOrientation));
45 };
46 }
47 }
48 }
49 #endif /* MIR_TEST_DOUBLES_MOCK_DISPLAY_DEVICE_H_ */
MirOrientation
Definition: common.h:113
MOCK_METHOD1(mode, void(MirPowerMode))
~MockDisplayDevice() noexcept
Definition: mock_display_device.h:36
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
MOCK_METHOD3(render_gl_and_overlays, void(graphics::android::SwappingGLContext const &, graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &))
Definition: renderable.h:33
MirPowerMode
Definition: common.h:82
Definition: mock_display_device.h:33
Definition: buffer.h:34
MOCK_CONST_METHOD1(apply_orientation, bool(MirOrientation))

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