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

« back to all changes in this revision

Viewing changes to tests/include/mir_test_doubles/stub_host_connection.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:
20
20
#define MIR_TEST_DOUBLES_STUB_HOST_CONNECTION_H_
21
21
 
22
22
#include "src/server/graphics/nested/host_connection.h"
 
23
#include "src/server/graphics/nested/host_surface.h"
23
24
#include "mir/graphics/platform_operation_message.h"
24
25
 
25
26
namespace mir
49
50
    void apply_display_config(MirDisplayConfiguration&) override {}
50
51
 
51
52
    std::shared_ptr<graphics::nested::HostSurface>
52
 
        create_surface(MirSurfaceParameters const&) override
 
53
        create_surface(
 
54
            int /*width*/, int /*height*/, MirPixelFormat /*pf*/, char const* /*name*/,
 
55
            MirBufferUsage /*usage*/, uint32_t /*output_id*/) override
53
56
    {
54
57
        class NullHostSurface : public graphics::nested::HostSurface
55
58
        {
56
59
        public:
57
60
            EGLNativeWindowType egl_native_window() override { return {}; }
58
 
            void set_event_handler(MirEventDelegate const*) override {}
 
61
            void set_event_handler(mir_surface_event_callback, void*) override {}
59
62
        };
60
63
 
61
64
        return std::make_shared<NullHostSurface>();
62
65
    }
63
66
 
64
 
    void drm_set_gbm_device(struct gbm_device*) override {}
65
67
    graphics::PlatformOperationMessage platform_operation(
66
68
        unsigned int, graphics::PlatformOperationMessage const&) override
67
69
    {
68
70
        return {{},{}};
69
71
    }
 
72
 
 
73
    void set_cursor_image(graphics::CursorImage const&)
 
74
    {
 
75
    }
 
76
    void hide_cursor()
 
77
    {
 
78
    }
70
79
};
71
80
 
72
81