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

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

#include <mock_window_surface.h>

Inheritance diagram for flutter::testing::egl::MockWindowSurface:
flutter::egl::WindowSurface flutter::egl::Surface

Public Member Functions

 MockWindowSurface ()
 
 MOCK_METHOD (bool, IsValid,(),(const, override))
 
 MOCK_METHOD (bool, Destroy,(),(override))
 
 MOCK_METHOD (bool, MakeCurrent,(),(const, override))
 
 MOCK_METHOD (bool, SwapBuffers,(),(const, override))
 
 MOCK_METHOD (bool, SetVSyncEnabled,(bool),(override))
 
- Public Member Functions inherited from flutter::egl::WindowSurface
 WindowSurface (EGLDisplay display, EGLContext context, EGLSurface surface, size_t width, size_t height)
 
virtual bool SetVSyncEnabled (bool enabled)
 
virtual size_t width () const
 
virtual size_t height () const
 
virtual bool vsync_enabled () const
 
- Public Member Functions inherited from flutter::egl::Surface
 Surface (EGLDisplay display, EGLContext context, EGLSurface surface)
 
virtual ~Surface ()
 
virtual bool Destroy ()
 
virtual bool IsValid () const
 
virtual bool IsCurrent () const
 
virtual bool MakeCurrent () const
 
virtual bool SwapBuffers () const
 
virtual const EGLSurface & GetHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::egl::Surface
 FML_DISALLOW_COPY_AND_ASSIGN (Surface)
 
- Protected Attributes inherited from flutter::egl::Surface
bool is_valid_ = true
 
EGLDisplay display_ = EGL_NO_DISPLAY
 
EGLContext context_ = EGL_NO_CONTEXT
 
EGLSurface surface_ = EGL_NO_SURFACE
 

Detailed Description

Mock for the |WindowSurface| base class.

Definition at line 17 of file mock_window_surface.h.

Constructor & Destructor Documentation

◆ MockWindowSurface()

flutter::testing::egl::MockWindowSurface::MockWindowSurface ( )
inline

Definition at line 19 of file mock_window_surface.h.

20 : WindowSurface(EGL_NO_DISPLAY, EGL_NO_CONTEXT, EGL_NO_SURFACE, 0, 0) {}
WindowSurface(EGLDisplay display, EGLContext context, EGLSurface surface, size_t width, size_t height)

Member Function Documentation

◆ MOCK_METHOD() [1/5]

flutter::testing::egl::MockWindowSurface::MOCK_METHOD ( bool  ,
Destroy  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/5]

flutter::testing::egl::MockWindowSurface::MOCK_METHOD ( bool  ,
IsValid  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/5]

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

◆ MOCK_METHOD() [4/5]

flutter::testing::egl::MockWindowSurface::MOCK_METHOD ( bool  ,
SetVSyncEnabled  ,
(bool)  ,
(override)   
)

◆ MOCK_METHOD() [5/5]

flutter::testing::egl::MockWindowSurface::MOCK_METHOD ( bool  ,
SwapBuffers  ,
()  ,
(const, override)   
)

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