~bregma/unity-system-compositor/lp-1677743

« back to all changes in this revision

Viewing changes to tests/unit-tests/test_session_switcher.cpp

  • Committer: Alan Griffiths
  • Date: 2017-03-27 14:40:28 UTC
  • Revision ID: alan@octopull.co.uk-20170327144028-3y438d8h2d24jt1g
Fix build against Mir 0.26

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include "src/spinner.h"
21
21
 
22
22
#include "mir/frontend/session.h"
 
23
#include <mir/version.h>
23
24
 
24
25
#include <gtest/gtest.h>
25
26
#include <gmock/gmock.h>
105
106
    {
106
107
        return {};
107
108
    }
 
109
#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
108
110
    mir::graphics::BufferID create_buffer(mir::geometry::Size, MirPixelFormat) override
109
111
    {
110
112
        return {};
113
115
    {
114
116
        return {};
115
117
    }
 
118
#endif
116
119
    void destroy_buffer(mir::graphics::BufferID) override
117
120
    {
118
121
    }