Flutter Engine
flutter::testing::EmbedderTestContext Class Referenceabstract

#include <embedder_test_context.h>

Inheritance diagram for flutter::testing::EmbedderTestContext:
flutter::testing::EmbedderTestContextGL flutter::testing::EmbedderTestContextMetal flutter::testing::EmbedderTestContextSoftware

Public Member Functions

 EmbedderTestContext (std::string assets_path="")
 
virtual ~EmbedderTestContext ()
 
const std::string & GetAssetsPath () const
 
const fml::MappingGetVMSnapshotData () const
 
const fml::MappingGetVMSnapshotInstructions () const
 
const fml::MappingGetIsolateSnapshotData () const
 
const fml::MappingGetIsolateSnapshotInstructions () const
 
FlutterEngineAOTData GetAOTData () const
 
void SetRootSurfaceTransformation (SkMatrix matrix)
 
void AddIsolateCreateCallback (fml::closure closure)
 
void AddNativeCallback (const char *name, Dart_NativeFunction function)
 
void SetSemanticsNodeCallback (const SemanticsNodeCallback &update_semantics_node)
 
void SetSemanticsCustomActionCallback (const SemanticsActionCallback &semantics_custom_action)
 
void SetPlatformMessageCallback (const std::function< void(const FlutterPlatformMessage *)> &callback)
 
void SetLogMessageCallback (const LogMessageCallback &log_message_callback)
 
std::future< sk_sp< SkImage > > GetNextSceneImage ()
 
EmbedderTestCompositorGetCompositor ()
 
virtual size_t GetSurfacePresentCount () const =0
 
virtual EmbedderTestContextType GetContextType () const =0
 

Protected Types

using NextSceneCallback = std::function< void(sk_sp< SkImage > image)>
 

Protected Member Functions

void SetupAOTMappingsIfNecessary ()
 
void SetupAOTDataIfNecessary ()
 
virtual void SetupCompositor ()=0
 
void FireIsolateCreateCallbacks ()
 
void SetNativeResolver ()
 
FlutterTransformation GetRootSurfaceTransformation ()
 
void PlatformMessageCallback (const FlutterPlatformMessage *message)
 
void FireRootSurfacePresentCallbackIfPresent (const std::function< sk_sp< SkImage >(void)> &image_callback)
 
void SetNextSceneCallback (const NextSceneCallback &next_scene_callback)
 
virtual void SetupSurface (SkISize surface_size)=0
 
 FML_DISALLOW_COPY_AND_ASSIGN (EmbedderTestContext)
 

Static Protected Member Functions

static VoidCallback GetIsolateCreateCallbackHook ()
 
static FlutterUpdateSemanticsNodeCallback GetUpdateSemanticsNodeCallbackHook ()
 
static FlutterUpdateSemanticsCustomActionCallback GetUpdateSemanticsCustomActionCallbackHook ()
 
static FlutterLogMessageCallback GetLogMessageCallbackHook ()
 
static FlutterComputePlatformResolvedLocaleCallback GetComputePlatformResolvedLocaleCallbackHook ()
 

Protected Attributes

std::string assets_path_
 
ELFAOTSymbols aot_symbols_
 
std::unique_ptr< fml::Mappingvm_snapshot_data_
 
std::unique_ptr< fml::Mappingvm_snapshot_instructions_
 
std::unique_ptr< fml::Mappingisolate_snapshot_data_
 
std::unique_ptr< fml::Mappingisolate_snapshot_instructions_
 
UniqueAOTData aot_data_
 
std::vector< fml::closureisolate_create_callbacks_
 
std::shared_ptr< TestDartNativeResolvernative_resolver_
 
SemanticsNodeCallback update_semantics_node_callback_
 
SemanticsActionCallback update_semantics_custom_action_callback_
 
std::function< void(const FlutterPlatformMessage *)> platform_message_callback_
 
LogMessageCallback log_message_callback_
 
std::unique_ptr< EmbedderTestCompositorcompositor_
 
NextSceneCallback next_scene_callback_
 
SkMatrix root_surface_transformation_
 

Friends

class EmbedderConfigBuilder
 

Detailed Description

Definition at line 49 of file embedder_test_context.h.

Member Typedef Documentation

◆ NextSceneCallback

using flutter::testing::EmbedderTestContext::NextSceneCallback = std::function<void(sk_sp<SkImage> image)>
protected

Definition at line 97 of file embedder_test_context.h.

Constructor & Destructor Documentation

◆ EmbedderTestContext()

flutter::testing::EmbedderTestContext::EmbedderTestContext ( std::string  assets_path = "")

Definition at line 18 of file embedder_test_context.cc.

References isolate_create_callbacks_, native_resolver_, SetupAOTDataIfNecessary(), SetupAOTMappingsIfNecessary(), and ~EmbedderTestContext().

19  : assets_path_(std::move(assets_path)),
22  native_resolver_(std::make_shared<TestDartNativeResolver>()) {
25  isolate_create_callbacks_.push_back(
26  [weak_resolver =
27  std::weak_ptr<TestDartNativeResolver>{native_resolver_}]() {
28  if (auto resolver = weak_resolver.lock()) {
29  resolver->SetNativeResolverForIsolate();
30  }
31  });
32 }
std::vector< fml::closure > isolate_create_callbacks_
std::shared_ptr< TestDartNativeResolver > native_resolver_
ELFAOTSymbols LoadELFSymbolFromFixturesIfNeccessary(std::string elf_filename)
Attempts to resolve AOT symbols from the portable ELF loader. This location is automatically resolved...
Definition: elf_loader.cc:15
constexpr const char * kDefaultAOTAppELFFileName
Definition: elf_loader.h:17

◆ ~EmbedderTestContext()

flutter::testing::EmbedderTestContext::~EmbedderTestContext ( )
virtualdefault

Referenced by EmbedderTestContext().

Member Function Documentation

◆ AddIsolateCreateCallback()

void flutter::testing::EmbedderTestContext::AddIsolateCreateCallback ( fml::closure  closure)

Definition at line 97 of file embedder_test_context.cc.

References isolate_create_callbacks_.

97  {
98  if (closure) {
100  }
101 }
std::vector< fml::closure > isolate_create_callbacks_
std::function< void()> closure
Definition: closure.h:14

◆ AddNativeCallback()

void flutter::testing::EmbedderTestContext::AddNativeCallback ( const char *  name,
Dart_NativeFunction  function 
)

Definition at line 116 of file embedder_test_context.cc.

References native_resolver_.

117  {
118  native_resolver_->AddNativeCallback({name}, function);
119 }
std::shared_ptr< TestDartNativeResolver > native_resolver_
const char * name
Definition: fuchsia.cc:50

◆ FireIsolateCreateCallbacks()

void flutter::testing::EmbedderTestContext::FireIsolateCreateCallbacks ( )
protected

Definition at line 110 of file embedder_test_context.cc.

References isolate_create_callbacks_.

Referenced by GetIsolateCreateCallbackHook().

110  {
111  for (auto closure : isolate_create_callbacks_) {
112  closure();
113  }
114 }
std::vector< fml::closure > isolate_create_callbacks_
std::function< void()> closure
Definition: closure.h:14

◆ FireRootSurfacePresentCallbackIfPresent()

void flutter::testing::EmbedderTestContext::FireRootSurfacePresentCallbackIfPresent ( const std::function< sk_sp< SkImage >(void)> &  image_callback)
protected
Note
Procedure doesn't copy all closures.

Definition at line 217 of file embedder_test_context.cc.

References callback, and next_scene_callback_.

Referenced by flutter::testing::EmbedderTestContextSoftware::Present(), flutter::testing::EmbedderTestContextMetal::Present(), and flutter::testing::EmbedderTestContextGL::~EmbedderTestContextGL().

218  {
219  if (!next_scene_callback_) {
220  return;
221  }
223  next_scene_callback_ = nullptr;
224  callback(image_callback());
225 }
FlKeyEvent FlKeyResponderAsyncCallback callback

◆ FML_DISALLOW_COPY_AND_ASSIGN()

flutter::testing::EmbedderTestContext::FML_DISALLOW_COPY_AND_ASSIGN ( EmbedderTestContext  )
protected

◆ GetAOTData()

FlutterEngineAOTData flutter::testing::EmbedderTestContext::GetAOTData ( ) const

Definition at line 89 of file embedder_test_context.cc.

References aot_data_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetAOTDataElf().

89  {
90  return aot_data_.get();
91 }

◆ GetAssetsPath()

const std::string & flutter::testing::EmbedderTestContext::GetAssetsPath ( ) const

Definition at line 68 of file embedder_test_context.cc.

References assets_path_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetAssetsPath().

68  {
69  return assets_path_;
70 }

◆ GetCompositor()

EmbedderTestCompositor & flutter::testing::EmbedderTestContext::GetCompositor ( )

Definition at line 190 of file embedder_test_context.cc.

References compositor_, and FML_CHECK.

Referenced by flutter::testing::EmbedderConfigBuilder::SetCompositor(), and flutter::testing::EmbedderConfigBuilder::SetRenderTargetType().

190  {
192  << "Accessed the compositor on a context where one was not set up. Use "
193  "the config builder to set up a context with a custom compositor.";
194  return *compositor_;
195 }
std::unique_ptr< EmbedderTestCompositor > compositor_
#define FML_CHECK(condition)
Definition: logging.h:68

◆ GetComputePlatformResolvedLocaleCallbackHook()

FlutterComputePlatformResolvedLocaleCallback flutter::testing::EmbedderTestContext::GetComputePlatformResolvedLocaleCallbackHook ( )
staticprotected

Definition at line 179 of file embedder_test_context.cc.

References length.

Referenced by flutter::testing::EmbedderConfigBuilder::SetLocalizationCallbackHooks().

179  {
180  return [](const FlutterLocale** supported_locales,
181  size_t length) -> const FlutterLocale* {
182  return supported_locales[0];
183  };
184 }
size_t length

◆ GetContextType()

◆ GetIsolateCreateCallbackHook()

VoidCallback flutter::testing::EmbedderTestContext::GetIsolateCreateCallbackHook ( )
staticprotected

Definition at line 103 of file embedder_test_context.cc.

References FireIsolateCreateCallbacks(), and user_data.

Referenced by flutter::testing::EmbedderConfigBuilder::SetIsolateCreateCallbackHook().

103  {
104  return [](void* user_data) {
105  reinterpret_cast<EmbedderTestContext*>(user_data)
107  };
108 }
void * user_data
EmbedderTestContext(std::string assets_path="")

◆ GetIsolateSnapshotData()

const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotData ( ) const

Definition at line 80 of file embedder_test_context.cc.

References isolate_snapshot_data_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().

80  {
81  return isolate_snapshot_data_.get();
82 }
std::unique_ptr< fml::Mapping > isolate_snapshot_data_

◆ GetIsolateSnapshotInstructions()

const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotInstructions ( ) const

Definition at line 84 of file embedder_test_context.cc.

References isolate_snapshot_instructions_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().

85  {
86  return isolate_snapshot_instructions_.get();
87 }
std::unique_ptr< fml::Mapping > isolate_snapshot_instructions_

◆ GetLogMessageCallbackHook()

FlutterLogMessageCallback flutter::testing::EmbedderTestContext::GetLogMessageCallbackHook ( )
staticprotected

Definition at line 169 of file embedder_test_context.cc.

References callback, and user_data.

Referenced by flutter::testing::EmbedderConfigBuilder::SetLogMessageCallbackHook().

169  {
170  return [](const char* tag, const char* message, void* user_data) {
171  auto context = reinterpret_cast<EmbedderTestContext*>(user_data);
172  if (auto callback = context->log_message_callback_) {
173  callback(tag, message);
174  }
175  };
176 }
void * user_data
EmbedderTestContext(std::string assets_path="")
FlKeyEvent FlKeyResponderAsyncCallback callback

◆ GetNextSceneImage()

std::future< sk_sp< SkImage > > flutter::testing::EmbedderTestContext::GetNextSceneImage ( )

Definition at line 206 of file embedder_test_context.cc.

References fml::MakeCopyable(), and SetNextSceneCallback().

Referenced by flutter::testing::TEST_F().

206  {
207  std::promise<sk_sp<SkImage>> promise;
208  auto future = promise.get_future();
210  fml::MakeCopyable([promise = std::move(promise)](auto image) mutable {
211  promise.set_value(image);
212  }));
213  return future;
214 }
internal::CopyableLambda< T > MakeCopyable(T lambda)
Definition: make_copyable.h:57
void SetNextSceneCallback(const NextSceneCallback &next_scene_callback)

◆ GetRootSurfaceTransformation()

FlutterTransformation flutter::testing::EmbedderTestContext::GetRootSurfaceTransformation ( )
protected

Definition at line 186 of file embedder_test_context.cc.

References FlutterTransformationMake(), and root_surface_transformation_.

186  {
188 }
FlutterTransformation FlutterTransformationMake(const SkMatrix &matrix)

◆ GetSurfacePresentCount()

virtual size_t flutter::testing::EmbedderTestContext::GetSurfacePresentCount ( ) const
pure virtual

◆ GetUpdateSemanticsCustomActionCallbackHook()

FlutterUpdateSemanticsCustomActionCallback flutter::testing::EmbedderTestContext::GetUpdateSemanticsCustomActionCallbackHook ( )
staticprotected

Definition at line 160 of file embedder_test_context.cc.

References action, callback, and user_data.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().

160  {
161  return [](const FlutterSemanticsCustomAction* action, void* user_data) {
162  auto context = reinterpret_cast<EmbedderTestContext*>(user_data);
163  if (auto callback = context->update_semantics_custom_action_callback_) {
164  callback(action);
165  }
166  };
167 }
void * user_data
EmbedderTestContext(std::string assets_path="")
FlKeyEvent FlKeyResponderAsyncCallback callback
SemanticsAction action

◆ GetUpdateSemanticsNodeCallbackHook()

FlutterUpdateSemanticsNodeCallback flutter::testing::EmbedderTestContext::GetUpdateSemanticsNodeCallbackHook ( )
staticprotected

Definition at line 150 of file embedder_test_context.cc.

References callback, and user_data.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().

150  {
151  return [](const FlutterSemanticsNode* semantics_node, void* user_data) {
152  auto context = reinterpret_cast<EmbedderTestContext*>(user_data);
153  if (auto callback = context->update_semantics_node_callback_) {
154  callback(semantics_node);
155  }
156  };
157 }
void * user_data
EmbedderTestContext(std::string assets_path="")
FlKeyEvent FlKeyResponderAsyncCallback callback

◆ GetVMSnapshotData()

const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotData ( ) const

Definition at line 72 of file embedder_test_context.cc.

References vm_snapshot_data_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().

72  {
73  return vm_snapshot_data_.get();
74 }
std::unique_ptr< fml::Mapping > vm_snapshot_data_

◆ GetVMSnapshotInstructions()

const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotInstructions ( ) const

Definition at line 76 of file embedder_test_context.cc.

References vm_snapshot_instructions_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().

76  {
77  return vm_snapshot_instructions_.get();
78 }
std::unique_ptr< fml::Mapping > vm_snapshot_instructions_

◆ PlatformMessageCallback()

void flutter::testing::EmbedderTestContext::PlatformMessageCallback ( const FlutterPlatformMessage message)
protected

Definition at line 137 of file embedder_test_context.cc.

References platform_message_callback_.

138  {
141  }
142 }
std::function< void(const FlutterPlatformMessage *)> platform_message_callback_

◆ SetLogMessageCallback()

void flutter::testing::EmbedderTestContext::SetLogMessageCallback ( const LogMessageCallback log_message_callback)

Definition at line 144 of file embedder_test_context.cc.

References callback, and log_message_callback_.

145  {
147 }
FlKeyEvent FlKeyResponderAsyncCallback callback

◆ SetNativeResolver()

void flutter::testing::EmbedderTestContext::SetNativeResolver ( )
protected

◆ SetNextSceneCallback()

void flutter::testing::EmbedderTestContext::SetNextSceneCallback ( const NextSceneCallback next_scene_callback)
protected

Definition at line 197 of file embedder_test_context.cc.

References compositor_, and next_scene_callback_.

Referenced by GetNextSceneImage().

198  {
199  if (compositor_) {
200  compositor_->SetNextSceneCallback(next_scene_callback);
201  return;
202  }
203  next_scene_callback_ = next_scene_callback;
204 }
std::unique_ptr< EmbedderTestCompositor > compositor_

◆ SetPlatformMessageCallback()

void flutter::testing::EmbedderTestContext::SetPlatformMessageCallback ( const std::function< void(const FlutterPlatformMessage *)> &  callback)

Definition at line 132 of file embedder_test_context.cc.

References callback, and platform_message_callback_.

Referenced by flutter::testing::EmbedderConfigBuilder::SetPlatformMessageCallback().

133  {
135 }
std::function< void(const FlutterPlatformMessage *)> platform_message_callback_
FlKeyEvent FlKeyResponderAsyncCallback callback

◆ SetRootSurfaceTransformation()

void flutter::testing::EmbedderTestContext::SetRootSurfaceTransformation ( SkMatrix  matrix)

Definition at line 93 of file embedder_test_context.cc.

References root_surface_transformation_.

◆ SetSemanticsCustomActionCallback()

void flutter::testing::EmbedderTestContext::SetSemanticsCustomActionCallback ( const SemanticsActionCallback semantics_custom_action)

Definition at line 126 of file embedder_test_context.cc.

References update_semantics_custom_action_callback_.

127  {
129  update_semantics_custom_action_callback;
130 }
SemanticsActionCallback update_semantics_custom_action_callback_

◆ SetSemanticsNodeCallback()

void flutter::testing::EmbedderTestContext::SetSemanticsNodeCallback ( const SemanticsNodeCallback update_semantics_node)

Definition at line 121 of file embedder_test_context.cc.

References update_semantics_node_callback_.

122  {
123  update_semantics_node_callback_ = update_semantics_node_callback;
124 }
SemanticsNodeCallback update_semantics_node_callback_

◆ SetupAOTDataIfNecessary()

void flutter::testing::EmbedderTestContext::SetupAOTDataIfNecessary ( )
protected

Definition at line 50 of file embedder_test_context.cc.

References aot_data_, FlutterEngineAOTDataSource::elf_path, FlutterEngineCreateAOTData(), flutter::testing::GetFixturesPath(), flutter::DartVM::IsRunningPrecompiledCode(), fml::paths::JoinPaths(), flutter::testing::kDefaultAOTAppELFFileName, kFlutterEngineAOTDataSourceTypeElfPath, kSuccess, and FlutterEngineAOTDataSource::type.

Referenced by EmbedderTestContext().

50  {
52  return;
53  }
54  FlutterEngineAOTDataSource data_in = {};
55  FlutterEngineAOTData data_out = nullptr;
56 
57  const auto elf_path = fml::paths::JoinPaths(
59 
61  data_in.elf_path = elf_path.c_str();
62 
63  ASSERT_EQ(FlutterEngineCreateAOTData(&data_in, &data_out), kSuccess);
64 
65  aot_data_.reset(data_out);
66 }
std::string JoinPaths(std::initializer_list< std::string > components)
Definition: paths.cc:14
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...
static bool IsRunningPrecompiledCode()
Checks if VM instances in the process can run precompiled code. This call can be made at any time and...
Definition: dart_vm.cc:202
constexpr const char * kDefaultAOTAppELFFileName
Definition: elf_loader.h:17
FlutterEngineAOTDataSourceType type
Definition: embedder.h:1326
const char * elf_path
Absolute path to an ELF library file.
Definition: embedder.h:1329
FlutterEngineResult FlutterEngineCreateAOTData(const FlutterEngineAOTDataSource *source, FlutterEngineAOTData *data_out)
Creates the necessary data structures to launch a Flutter Dart application in AOT mode...
Definition: embedder.cc:748

◆ SetupAOTMappingsIfNecessary()

void flutter::testing::EmbedderTestContext::SetupAOTMappingsIfNecessary ( )
protected

Definition at line 36 of file embedder_test_context.cc.

References aot_symbols_, isolate_snapshot_data_, isolate_snapshot_instructions_, flutter::DartVM::IsRunningPrecompiledCode(), flutter::testing::ELFAOTSymbols::vm_isolate_data, flutter::testing::ELFAOTSymbols::vm_isolate_instrs, flutter::testing::ELFAOTSymbols::vm_snapshot_data, vm_snapshot_data_, flutter::testing::ELFAOTSymbols::vm_snapshot_instrs, and vm_snapshot_instructions_.

Referenced by EmbedderTestContext().

36  {
38  return;
39  }
41  std::make_unique<fml::NonOwnedMapping>(aot_symbols_.vm_snapshot_data, 0u);
42  vm_snapshot_instructions_ = std::make_unique<fml::NonOwnedMapping>(
45  std::make_unique<fml::NonOwnedMapping>(aot_symbols_.vm_isolate_data, 0u);
46  isolate_snapshot_instructions_ = std::make_unique<fml::NonOwnedMapping>(
48 }
const uint8_t * vm_snapshot_instrs
Definition: elf_loader.h:36
std::unique_ptr< fml::Mapping > vm_snapshot_instructions_
const uint8_t * vm_isolate_data
Definition: elf_loader.h:37
std::unique_ptr< fml::Mapping > isolate_snapshot_instructions_
static bool IsRunningPrecompiledCode()
Checks if VM instances in the process can run precompiled code. This call can be made at any time and...
Definition: dart_vm.cc:202
const uint8_t * vm_isolate_instrs
Definition: elf_loader.h:38
std::unique_ptr< fml::Mapping > vm_snapshot_data_
const uint8_t * vm_snapshot_data
Definition: elf_loader.h:35
std::unique_ptr< fml::Mapping > isolate_snapshot_data_

◆ SetupCompositor()

virtual void flutter::testing::EmbedderTestContext::SetupCompositor ( )
protectedpure virtual

◆ SetupSurface()

virtual void flutter::testing::EmbedderTestContext::SetupSurface ( SkISize  surface_size)
protectedpure virtual

Friends And Related Function Documentation

◆ EmbedderConfigBuilder

friend class EmbedderConfigBuilder
friend

Definition at line 95 of file embedder_test_context.h.

Member Data Documentation

◆ aot_data_

UniqueAOTData flutter::testing::EmbedderTestContext::aot_data_
protected

Definition at line 105 of file embedder_test_context.h.

Referenced by GetAOTData(), and SetupAOTDataIfNecessary().

◆ aot_symbols_

ELFAOTSymbols flutter::testing::EmbedderTestContext::aot_symbols_
protected

Definition at line 100 of file embedder_test_context.h.

Referenced by SetupAOTMappingsIfNecessary().

◆ assets_path_

std::string flutter::testing::EmbedderTestContext::assets_path_
protected

Definition at line 99 of file embedder_test_context.h.

Referenced by GetAssetsPath().

◆ compositor_

◆ isolate_create_callbacks_

std::vector<fml::closure> flutter::testing::EmbedderTestContext::isolate_create_callbacks_
protected

◆ isolate_snapshot_data_

std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::isolate_snapshot_data_
protected

Definition at line 103 of file embedder_test_context.h.

Referenced by GetIsolateSnapshotData(), and SetupAOTMappingsIfNecessary().

◆ isolate_snapshot_instructions_

std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::isolate_snapshot_instructions_
protected

◆ log_message_callback_

LogMessageCallback flutter::testing::EmbedderTestContext::log_message_callback_
protected

Definition at line 111 of file embedder_test_context.h.

Referenced by SetLogMessageCallback().

◆ native_resolver_

std::shared_ptr<TestDartNativeResolver> flutter::testing::EmbedderTestContext::native_resolver_
protected

Definition at line 107 of file embedder_test_context.h.

Referenced by AddNativeCallback(), and EmbedderTestContext().

◆ next_scene_callback_

NextSceneCallback flutter::testing::EmbedderTestContext::next_scene_callback_
protected

◆ platform_message_callback_

std::function<void(const FlutterPlatformMessage*)> flutter::testing::EmbedderTestContext::platform_message_callback_
protected

Definition at line 110 of file embedder_test_context.h.

Referenced by PlatformMessageCallback(), and SetPlatformMessageCallback().

◆ root_surface_transformation_

SkMatrix flutter::testing::EmbedderTestContext::root_surface_transformation_
protected

◆ update_semantics_custom_action_callback_

SemanticsActionCallback flutter::testing::EmbedderTestContext::update_semantics_custom_action_callback_
protected

Definition at line 109 of file embedder_test_context.h.

Referenced by SetSemanticsCustomActionCallback().

◆ update_semantics_node_callback_

SemanticsNodeCallback flutter::testing::EmbedderTestContext::update_semantics_node_callback_
protected

Definition at line 108 of file embedder_test_context.h.

Referenced by SetSemanticsNodeCallback().

◆ vm_snapshot_data_

std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::vm_snapshot_data_
protected

Definition at line 101 of file embedder_test_context.h.

Referenced by GetVMSnapshotData(), and SetupAOTMappingsIfNecessary().

◆ vm_snapshot_instructions_

std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::vm_snapshot_instructions_
protected

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