blob: bb1a4d40e3cdaedd54420fdafaa91a4390dab712 [file] [log] [blame]
//
// Copyright 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ImageImpl_mock.h: Defines a mock of the ImageImpl class.
#ifndef LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_
#define LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_
#include "gmock/gmock.h"
#include "libANGLE/renderer/ImageImpl.h"
namespace rx
{
class MockImageImpl : public ImageImpl
{
public:
MockImageImpl(const egl::ImageState &state) : ImageImpl(state) {}
virtual ~MockImageImpl() { destructor(); }
MOCK_METHOD1(initialize, egl::Error(const egl::Display *));
MOCK_METHOD2(orphan, angle::Result(const gl::Context *, egl::ImageSibling *));
MOCK_METHOD0(destructor, void());
};
} // namespace rx
#endif // LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_