Flutter Engine
The Flutter Engine
|
MockGLES
This directory contains a mock implementation of the GLES backend.
Most functions are implemented as no-ops, have a default implementation that is not configurable, or just record the call. The latter is useful for testing:
To add a new function, do the following:
Add a new top-level method to mock_gles.cc
:
Edit the kMockResolver
, and add a new else if
clause:
It's possible we'll want to add a more sophisticated mechanism for mocking besides capturing calls, but this is a good start. PRs welcome!