Flutter Engine
 
Loading...
Searching...
No Matches
mock_proc_table.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_PROC_TABLE_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_PROC_TABLE_H_
7
10#include "gmock/gmock.h"
11
12namespace flutter {
13namespace testing {
14namespace egl {
15
16/// Mock for the |ProcTable| base class.
18 public:
19 MockProcTable() = default;
20 virtual ~MockProcTable() = default;
21
24 (GLsizei n, GLuint* textures),
25 (const override));
28 (GLsizei n, const GLuint* textures),
29 (const override));
32 (GLenum target, GLuint texture),
33 (const override));
36 (GLenum target, GLenum pname, GLint param),
37 (const override));
40 (GLenum target,
41 GLint level,
42 GLint internalformat,
43 GLsizei width,
44 GLsizei height,
45 GLint border,
46 GLenum format,
47 GLenum type,
48 const void* data),
49 (const override));
50
51 private:
53};
54
55} // namespace egl
56} // namespace testing
57} // namespace flutter
58
59#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_PROC_TABLE_H_
GLenum type
virtual void BindTexture(GLenum target, GLuint texture) const
Definition proc_table.cc:46
virtual void TexParameteri(GLenum target, GLenum pname, GLint param) const
Definition proc_table.cc:50
virtual void DeleteTextures(GLsizei n, const GLuint *textures) const
Definition proc_table.cc:42
virtual void GenTextures(GLsizei n, GLuint *textures) const
Definition proc_table.cc:38
virtual void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *data) const
Definition proc_table.cc:54
Mock for the |ProcTable| base class.
MOCK_METHOD(void, GenTextures,(GLsizei n, GLuint *textures),(const override))
MOCK_METHOD(void, DeleteTextures,(GLsizei n, const GLuint *textures),(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))
MOCK_METHOD(void, BindTexture,(GLenum target, GLuint texture),(const override))
uint32_t * target
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27
FlTexture * texture
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
Definition switch_defs.h:36
int32_t height
int32_t width