/*
 * Copyright (C) 2014-2017 Canonical, Ltd.
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License version 3, as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MOCK_MIR_GRAPHICS_RENDERABLE_H
#define MOCK_MIR_GRAPHICS_RENDERABLE_H

#include <mir/graphics/renderable.h>
#include <mir/version.h>
#include <gmock/gmock.h>

namespace mir {
namespace graphics {

struct MockRenderable : public Renderable
{
    MockRenderable();
    virtual ~MockRenderable();

    MOCK_CONST_METHOD0(id, ID());
    MOCK_CONST_METHOD0(buffer, std::shared_ptr<Buffer>());
    MOCK_CONST_METHOD0(alpha_enabled, bool());
    MOCK_CONST_METHOD0(screen_position, geometry::Rectangle());
    MOCK_CONST_METHOD0(alpha, float() );
    MOCK_CONST_METHOD0(transformation, glm::mat4());
    MOCK_CONST_METHOD0(shaped, bool());
    MOCK_CONST_METHOD0(swap_interval, unsigned int());
#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(1, 5, 0)
    MOCK_CONST_METHOD0(clip_area, std::experimental::optional<geometry::Rectangle>());
#endif
};

} // namespace graphics
} // namespace mir

#endif // MOCK_MIR_GRAPHICS_RENDERABLE_H

