19 #ifndef MIR_TEST_DOUBLES_MOCK_RENDERABLE_H_
20 #define MIR_TEST_DOUBLES_MOCK_RENDERABLE_H_
24 #include <gmock/gmock.h>
38 ON_CALL(*
this,
buffer(testing::_))
39 .WillByDefault(testing::Return(std::make_shared<StubBuffer>()));
41 .WillByDefault(testing::Return(1));
42 ON_CALL(*
this,
alpha())
43 .WillByDefault(testing::Return(1.0f));
45 .WillByDefault(testing::Return(glm::mat4{}));
47 .WillByDefault(testing::Return(
true));
Definition: mock_renderable.h:32
virtual float alpha() const =0
virtual std::shared_ptr< Buffer > buffer(void const *user_id) const =0
Return the next buffer that should be composited/rendered.
virtual glm::mat4 transformation() const =0
Transformation returns the transformation matrix that should be applied to the surface.
virtual int buffers_ready_for_compositor() const =0
virtual bool shaped() const =0
virtual bool alpha_enabled() const =0
MOCK_CONST_METHOD1(buffer, std::shared_ptr< graphics::Buffer >(void const *))
Definition: renderable.h:33
MockRenderable()
Definition: mock_renderable.h:34
virtual geometry::Rectangle screen_position() const =0
Definition: rectangle.h:33
virtual bool visible() const =0
TODO: Its a bit questionable that we have this member function, why not just trim the renderable from...
MOCK_CONST_METHOD0(alpha_enabled, bool())