Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::egl::MockContext Class Reference

Mock for the |Context| base class. More...

#include <mock_context.h>

Inheritance diagram for flutter::testing::egl::MockContext:
flutter::egl::Context

Public Member Functions

 MockContext ()
 
 MOCK_METHOD (bool, MakeCurrent,(),(const, override))
 
 MOCK_METHOD (bool, ClearCurrent,(),(const, override))
 
- Public Member Functions inherited from flutter::egl::Context
 Context (EGLDisplay display, EGLContext context)
 
 ~Context ()
 
virtual bool IsCurrent () const
 
virtual bool MakeCurrent () const
 
virtual bool ClearCurrent () const
 
virtual const EGLContext & GetHandle () const
 

Detailed Description

Mock for the |Context| base class.

Definition at line 17 of file mock_context.h.

Constructor & Destructor Documentation

◆ MockContext()

flutter::testing::egl::MockContext::MockContext ( )
inline

Definition at line 19 of file mock_context.h.

19: Context(EGL_NO_DISPLAY, EGL_NO_CONTEXT) {}
Context(EGLDisplay display, EGLContext context)
Definition: context.cc:12

Member Function Documentation

◆ MOCK_METHOD() [1/2]

flutter::testing::egl::MockContext::MOCK_METHOD ( bool  ,
ClearCurrent  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/2]

flutter::testing::egl::MockContext::MOCK_METHOD ( bool  ,
MakeCurrent  ,
()  ,
(const, override)   
)

The documentation for this class was generated from the following file: