Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
flutter::testing::TestAndroidSurfaceFactory Class Reference
Inheritance diagram for flutter::testing::TestAndroidSurfaceFactory:
flutter::AndroidSurfaceFactory flutter::AndroidSurfaceFactory

Public Types

using TestSurfaceProducer = std::function< std::unique_ptr< AndroidSurface >(void)>
 
using TestSurfaceProducer = std::function< std::unique_ptr< AndroidSurface >(void)>
 

Public Member Functions

 TestAndroidSurfaceFactory (TestSurfaceProducer &&surface_producer)
 
 ~TestAndroidSurfaceFactory () override=default
 
std::unique_ptr< AndroidSurfaceCreateSurface () override
 
 TestAndroidSurfaceFactory (TestSurfaceProducer &&surface_producer)
 
 ~TestAndroidSurfaceFactory () override=default
 
std::unique_ptr< AndroidSurfaceCreateSurface () override
 
- Public Member Functions inherited from flutter::AndroidSurfaceFactory
 AndroidSurfaceFactory ()=default
 
virtual ~AndroidSurfaceFactory ()=default
 
virtual std::unique_ptr< AndroidSurfaceCreateSurface ()=0
 

Detailed Description

Definition at line 32 of file external_view_embedder_unittests.cc.

Member Typedef Documentation

◆ TestSurfaceProducer [1/2]

Definition at line 34 of file external_view_embedder_unittests.cc.

◆ TestSurfaceProducer [2/2]

Definition at line 23 of file surface_pool_unittests.cc.

Constructor & Destructor Documentation

◆ TestAndroidSurfaceFactory() [1/2]

flutter::testing::TestAndroidSurfaceFactory::TestAndroidSurfaceFactory ( TestSurfaceProducer &&  surface_producer)
inlineexplicit

Definition at line 36 of file external_view_embedder_unittests.cc.

36 {
37 surface_producer_ = surface_producer;
38 }

◆ ~TestAndroidSurfaceFactory() [1/2]

flutter::testing::TestAndroidSurfaceFactory::~TestAndroidSurfaceFactory ( )
overridedefault

◆ TestAndroidSurfaceFactory() [2/2]

flutter::testing::TestAndroidSurfaceFactory::TestAndroidSurfaceFactory ( TestSurfaceProducer &&  surface_producer)
inlineexplicit

Definition at line 25 of file surface_pool_unittests.cc.

25 {
26 surface_producer_ = surface_producer;
27 }

◆ ~TestAndroidSurfaceFactory() [2/2]

flutter::testing::TestAndroidSurfaceFactory::~TestAndroidSurfaceFactory ( )
overridedefault

Member Function Documentation

◆ CreateSurface() [1/2]

std::unique_ptr< AndroidSurface > flutter::testing::TestAndroidSurfaceFactory::CreateSurface ( )
inlineoverridevirtual

Implements flutter::AndroidSurfaceFactory.

Definition at line 42 of file external_view_embedder_unittests.cc.

42 {
43 return surface_producer_();
44 }

◆ CreateSurface() [2/2]

std::unique_ptr< AndroidSurface > flutter::testing::TestAndroidSurfaceFactory::CreateSurface ( )
inlineoverridevirtual

Implements flutter::AndroidSurfaceFactory.

Definition at line 31 of file surface_pool_unittests.cc.

31 {
32 return surface_producer_();
33 }

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