Flutter Engine
The Flutter Engine
|
Provides a mocked version of the |ProcTableGLES| class. More...
#include <mock_gles.h>
Public Member Functions | |
const ProcTableGLES & | GetProcTable () const |
Returns a configured |ProcTableGLES| instance. More... | |
std::vector< std::string > | GetCapturedCalls () |
Returns a vector of the names of all recorded calls. More... | |
~MockGLES () | |
Static Public Member Functions | |
static std::shared_ptr< MockGLES > | Init (const std::optional< std::vector< const unsigned char * > > &extensions=std::nullopt, const char *version_string="OpenGL ES 3.0", ProcTableGLES::Resolver resolver=kMockResolverGLES) |
Returns an initialized |MockGLES| instance. More... | |
Friends | |
void | RecordGLCall (const char *name) |
Provides a mocked version of the |ProcTableGLES| class.
Typically, Open GLES at runtime will be provided the host's GLES bindings (as function pointers). This class maintains a set of function pointers that appear to be GLES functions, but are actually just stubs that record invocations.
See README.md
for more information.
Definition at line 26 of file mock_gles.h.
impeller::testing::MockGLES::~MockGLES | ( | ) |
Definition at line 213 of file mock_gles.cc.
|
inline |
Returns a vector of the names of all recorded calls.
Calls are cleared after this method is called.
Definition at line 45 of file mock_gles.h.
|
inline |
Returns a configured |ProcTableGLES| instance.
Definition at line 40 of file mock_gles.h.
|
static |
Returns an initialized |MockGLES| instance.
This method overwrites mocked global GLES function pointers to record invocations on this instance of |MockGLES|. As such, it should only be called once per test.
Definition at line 166 of file mock_gles.cc.
|
friend |
Definition at line 29 of file mock_gles.cc.