Flutter Engine
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
 

Detailed Description

Definition at line 25 of file external_view_embedder_unittests.cc.

Member Typedef Documentation

◆ TestSurfaceProducer [1/2]

◆ TestSurfaceProducer [2/2]

Constructor & Destructor Documentation

◆ TestAndroidSurfaceFactory() [1/2]

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

Definition at line 29 of file external_view_embedder_unittests.cc.

References ~TestAndroidSurfaceFactory().

29  {
30  surface_producer_ = surface_producer;
31  }

◆ ~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.

References ~TestAndroidSurfaceFactory().

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 31 of file surface_pool_unittests.cc.

31  {
32  return surface_producer_();
33  }

◆ CreateSurface() [2/2]

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

Implements flutter::AndroidSurfaceFactory.

Definition at line 35 of file external_view_embedder_unittests.cc.

35  {
36  return surface_producer_();
37  }

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