5#include "flutter/shell/platform/embedder/tests/embedder_test.h"
6#include "flutter/shell/platform/embedder/tests/embedder_test_context_software.h"
9#include "flutter/shell/platform/embedder/tests/embedder_test_context_gl.h"
12#ifdef SHELL_ENABLE_METAL
13#include "flutter/shell/platform/embedder/tests/embedder_test_context_metal.h"
16#ifdef SHELL_ENABLE_VULKAN
17#include "flutter/shell/platform/embedder/tests/embedder_test_context_vulkan.h"
33 if (!embedder_contexts_[
type]) {
36 embedder_contexts_[
type] =
37 std::make_unique<EmbedderTestContextSoftware>(
40#ifdef SHELL_ENABLE_VULKAN
42 embedder_contexts_[
type] =
48 embedder_contexts_[
type] =
52#ifdef SHELL_ENABLE_METAL
54 embedder_contexts_[
type] =
59 FML_DCHECK(
false) <<
"Invalid context type specified.";
64 return *embedder_contexts_[
type];
EmbedderTestContext & GetEmbedderContext(EmbedderTestContextType type)
std::string GetFixturesDirectory() const
#define FML_DCHECK(condition)
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...