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

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

#include <mock_manager.h>

Inheritance diagram for flutter::testing::egl::MockManager:
flutter::egl::Manager

Public Member Functions

 MockManager ()
 
 MOCK_METHOD (std::unique_ptr< flutter::egl::WindowSurface >, CreateWindowSurface,(HWND, size_t, size_t),(override))
 
 MOCK_METHOD (flutter::egl::Context *, render_context,(),(const, override))
 
 MOCK_METHOD (flutter::egl::Context *, resource_context,(),(const, override))
 
- Public Member Functions inherited from flutter::egl::Manager
virtual ~Manager ()
 
bool IsValid () const
 
virtual std::unique_ptr< WindowSurfaceCreateWindowSurface (HWND hwnd, size_t width, size_t height)
 
bool HasContextCurrent ()
 
EGLSurface CreateSurfaceFromHandle (EGLenum handle_type, EGLClientBuffer handle, const EGLint *attributes) const
 
EGLDisplay egl_display () const
 
bool GetDevice (ID3D11Device **device)
 
virtual Contextrender_context () const
 
virtual Contextresource_context () const
 

Additional Inherited Members

- Static Public Member Functions inherited from flutter::egl::Manager
static std::unique_ptr< ManagerCreate (bool enable_impeller)
 
- Protected Member Functions inherited from flutter::egl::Manager
 Manager (bool enable_impeller)
 

Detailed Description

Mock for the |Manager| base class.

Definition at line 17 of file mock_manager.h.

Constructor & Destructor Documentation

◆ MockManager()

flutter::testing::egl::MockManager::MockManager ( )
inline

Definition at line 19 of file mock_manager.h.

19: Manager(false) {}
Manager(bool enable_impeller)
Definition: manager.cc:26

Member Function Documentation

◆ MOCK_METHOD() [1/3]

flutter::testing::egl::MockManager::MOCK_METHOD ( flutter::egl::Context ,
render_context  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/3]

flutter::testing::egl::MockManager::MOCK_METHOD ( flutter::egl::Context ,
resource_context  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/3]

flutter::testing::egl::MockManager::MOCK_METHOD ( std::unique_ptr< flutter::egl::WindowSurface ,
CreateWindowSurface  ,
(HWND, size_t, size_t)  ,
(override)   
)

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