blob: ad4c17efba96c90b6da98f9832e96cd1cec8131c [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_GL_PROC_TABLE_H_
#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_GL_PROC_TABLE_H_
#include "flutter/fml/macros.h"
#include "flutter/shell/platform/windows/gl_proc_table.h"
#include "gmock/gmock.h"
namespace flutter {
namespace testing {
/// Mock for the |GlProcTable| base class.
class MockGlProcTable : public GlProcTable {
public:
MockGlProcTable() = default;
virtual ~MockGlProcTable() = default;
MOCK_METHOD(void,
GenTextures,
(GLsizei n, GLuint* textures),
(const override));
MOCK_METHOD(void,
DeleteTextures,
(GLsizei n, const GLuint* textures),
(const override));
MOCK_METHOD(void,
BindTexture,
(GLenum target, GLuint texture),
(const override));
MOCK_METHOD(void,
TexParameteri,
(GLenum target, GLenum pname, GLint param),
(const override));
MOCK_METHOD(void,
TexImage2D,
(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void* data),
(const override));
private:
FML_DISALLOW_COPY_AND_ASSIGN(MockGlProcTable);
};
} // namespace testing
} // namespace flutter
#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_MOCK_GL_PROC_TABLE_H_