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

« back to all changes in this revision

Viewing changes to tests/include/mir_test_doubles/mock_framebuffer_bundle.h

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
struct MockFBBundle : public graphics::android::FramebufferBundle
34
34
{
35
 
    MockFBBundle(geometry::Size sz, double vsync_rate, MirPixelFormat pf)
 
35
    MockFBBundle(geometry::Size sz)
36
36
    {
37
37
        ON_CALL(*this, last_rendered_buffer())
38
38
            .WillByDefault(testing::Return(std::make_shared<StubBuffer>()));
39
 
        ON_CALL(*this, fb_format())
40
 
            .WillByDefault(testing::Return(pf));
41
39
        ON_CALL(*this, fb_size())
42
40
            .WillByDefault(testing::Return(sz));
43
 
        ON_CALL(*this, fb_refresh_rate())
44
 
            .WillByDefault(testing::Return(vsync_rate));
45
41
    }
46
42
 
47
43
    MockFBBundle() :
48
 
        MockFBBundle({0,0}, 0.0f, mir_pixel_format_abgr_8888)
 
44
        MockFBBundle({0,0})
49
45
    {
50
46
    }
51
47
 
52
 
    MOCK_METHOD0(fb_format, MirPixelFormat());
53
48
    MOCK_METHOD0(fb_size, geometry::Size());
54
 
    MOCK_METHOD0(fb_refresh_rate, double());
55
49
    MOCK_METHOD0(buffer_for_render, std::shared_ptr<graphics::Buffer>());
56
50
    MOCK_METHOD0(last_rendered_buffer, std::shared_ptr<graphics::Buffer>());
57
51
};