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 24 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 28 of file external_view_embedder_unittests.cc.

References ~TestAndroidSurfaceFactory().

28  {
29  surface_producer_ = surface_producer;
30  }

◆ ~TestAndroidSurfaceFactory() [1/2]

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

◆ TestAndroidSurfaceFactory() [2/2]

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

Definition at line 24 of file surface_pool_unittests.cc.

References ~TestAndroidSurfaceFactory().

24  {
25  surface_producer_ = surface_producer;
26  }

◆ ~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 30 of file surface_pool_unittests.cc.

30  {
31  return surface_producer_();
32  }

◆ CreateSurface() [2/2]

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

Implements flutter::AndroidSurfaceFactory.

Definition at line 34 of file external_view_embedder_unittests.cc.

34  {
35  return surface_producer_();
36  }

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