Flutter Engine
 
Loading...
Searching...
No Matches
flutter::testing::EmbedderTestMultiBackend Class Reference

#include <embedder_test.h>

Inheritance diagram for flutter::testing::EmbedderTestMultiBackend:
flutter::testing::EmbedderTest flutter::testing::ThreadTest

Public Member Functions

EmbedderTestContextGetEmbedderContext (EmbedderTestContextType type)
 
- Public Member Functions inherited from flutter::testing::EmbedderTest
 EmbedderTest ()
 
std::string GetFixturesDirectory () const
 
template<typename T >
T & GetEmbedderContext ()
 
template<>
EmbedderTestContextGLGetEmbedderContext ()
 
template<>
EmbedderTestContextMetalGetEmbedderContext ()
 
template<>
EmbedderTestContextSoftwareGetEmbedderContext ()
 
template<>
EmbedderTestContextVulkanGetEmbedderContext ()
 
- Public Member Functions inherited from flutter::testing::ThreadTest
 ThreadTest ()
 
fml::RefPtr< fml::TaskRunnerGetCurrentTaskRunner ()
 Get the task runner for the thread that the current unit-test is running on. This creates a message loop as necessary.
 
fml::RefPtr< fml::TaskRunnerCreateNewThread (const std::string &name="")
 Creates a new thread, initializes a message loop on it, and, returns its task runner to the unit-test. The message loop is terminated (and its thread joined) when the test ends. This allows tests to create multiple named threads as necessary.
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::testing::EmbedderTest
EmbedderTestContextGetGLContext ()
 
EmbedderTestContextGetMetalContext ()
 
EmbedderTestContextGetSoftwareContext ()
 
EmbedderTestContextGetVulkanContext ()
 
 FML_DISALLOW_COPY_AND_ASSIGN (EmbedderTest)
 
- Protected Attributes inherited from flutter::testing::EmbedderTest
std::unique_ptr< EmbedderTestContextgl_context_
 
std::unique_ptr< EmbedderTestContextmetal_context_
 
std::unique_ptr< EmbedderTestContextsoftware_context_
 
std::unique_ptr< EmbedderTestContextvulkan_context_
 

Detailed Description

Definition at line 76 of file embedder_test.h.

Member Function Documentation

◆ GetEmbedderContext()

EmbedderTestContext & flutter::testing::EmbedderTestMultiBackend::GetEmbedderContext ( EmbedderTestContextType  type)

Definition at line 55 of file embedder_test.cc.

References flutter::testing::EmbedderTest::GetGLContext(), flutter::testing::EmbedderTest::GetMetalContext(), flutter::testing::EmbedderTest::GetSoftwareContext(), flutter::testing::EmbedderTest::GetVulkanContext(), flutter::testing::kMetalContext, flutter::testing::kOpenGLContext, flutter::testing::kSoftwareContext, flutter::testing::kVulkanContext, and type.


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