summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/renderer/ImageImpl_mock.h
blob: 27fe6a3947705e54394c5881f6b4ebd23d7017e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Copyright (c) 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:
    virtual ~MockImageImpl() { destructor(); }
    MOCK_METHOD0(initialize, egl::Error(void));
    MOCK_METHOD1(orphan, gl::Error(egl::ImageSibling *));
    MOCK_METHOD0(destructor, void());
};
}

#endif  // LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_