~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to include/test/mir_test_doubles/mock_surface_renderer.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-01-08 02:04:38 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140108020438-e1npu0pm7qdv5wc4
Tags: upstream-0.1.3+14.04.20140108
ImportĀ upstreamĀ versionĀ 0.1.3+14.04.20140108

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef MIR_TEST_DOUBLES_MOCK_SURFACE_RENDERER_H_
19
19
#define MIR_TEST_DOUBLES_MOCK_SURFACE_RENDERER_H_
20
20
 
21
 
#include "mir/compositor/buffer_stream.h"
22
21
#include "src/server/compositor/renderer.h"
23
22
 
24
23
#include <gmock/gmock.h>
32
31
 
33
32
struct MockSurfaceRenderer : public compositor::Renderer
34
33
{
35
 
    MOCK_METHOD3(render, void(
36
 
        std::function<void(std::shared_ptr<void> const&)>, compositor::CompositingCriteria const&, compositor::BufferStream&));
37
 
    MOCK_METHOD1(clear, void(unsigned long));
 
34
    MOCK_CONST_METHOD2(render, void(compositor::CompositingCriteria const&, graphics::Buffer&));
 
35
    MOCK_CONST_METHOD0(clear, void());
38
36
 
39
37
    ~MockSurfaceRenderer() noexcept {}
40
38
};