#include <embedder_test_context.h>
Definition at line 55 of file embedder_test_context.h.
◆ NextSceneCallback
◆ EmbedderTestContext()
flutter::testing::EmbedderTestContext::EmbedderTestContext |
( |
std::string |
assets_path = "" | ) |
|
|
explicit |
Definition at line 20 of file embedder_test_context.cc.
28 [weak_resolver =
30 if (auto resolver = weak_resolver.lock()) {
31 resolver->SetNativeResolverForIsolate();
32 }
33 });
34}
std::vector< fml::closure > isolate_create_callbacks_
void SetupAOTDataIfNecessary()
void SetupAOTMappingsIfNecessary()
std::shared_ptr< TestDartNativeResolver > native_resolver_
ELFAOTSymbols aot_symbols_
ELFAOTSymbols LoadELFSymbolFromFixturesIfNeccessary(std::string elf_filename)
Attempts to resolve AOT symbols from the portable ELF loader. This location is automatically resolved...
constexpr const char * kDefaultAOTAppELFFileName
◆ ~EmbedderTestContext()
flutter::testing::EmbedderTestContext::~EmbedderTestContext |
( |
| ) |
|
|
virtualdefault |
◆ AddIsolateCreateCallback()
void flutter::testing::EmbedderTestContext::AddIsolateCreateCallback |
( |
const fml::closure & |
closure | ) |
|
◆ AddNativeCallback()
void flutter::testing::EmbedderTestContext::AddNativeCallback |
( |
const char * |
name, |
|
|
Dart_NativeFunction |
function |
|
) |
| |
Definition at line 119 of file embedder_test_context.cc.
120 {
122}
Dart_NativeFunction function
DEF_SWITCHES_START aot vmservice shared library name
◆ FireIsolateCreateCallbacks()
void flutter::testing::EmbedderTestContext::FireIsolateCreateCallbacks |
( |
| ) |
|
|
protected |
◆ 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 285 of file embedder_test_context.cc.
286 {
288 return;
289 }
293}
NextSceneCallback next_scene_callback_
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ FML_DISALLOW_COPY_AND_ASSIGN()
◆ GetAOTData()
◆ GetAssetsPath()
const std::string & flutter::testing::EmbedderTestContext::GetAssetsPath |
( |
| ) |
const |
◆ GetChannelUpdateCallbackHook()
Definition at line 241 of file embedder_test_context.cc.
241 {
243 return nullptr;
244 }
245
248 if (context->channel_update_callback_) {
249 context->channel_update_callback_(
update);
250 }
251 };
252}
ChannelUpdateCallback channel_update_callback_
EmbedderTestContext(std::string assets_path="")
An update to whether a message channel has a listener set or not.
◆ GetCompositor()
Definition at line 258 of file embedder_test_context.cc.
258 {
260 << "Accessed the compositor on a context where one was not set up. Use "
261 "the config builder to set up a context with a custom compositor.";
263}
std::unique_ptr< EmbedderTestCompositor > compositor_
#define FML_CHECK(condition)
◆ GetComputePlatformResolvedLocaleCallbackHook()
◆ GetContextType()
◆ GetIsolateCreateCallbackHook()
VoidCallback flutter::testing::EmbedderTestContext::GetIsolateCreateCallbackHook |
( |
| ) |
|
|
staticprotected |
◆ GetIsolateSnapshotData()
const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotData |
( |
| ) |
const |
◆ GetIsolateSnapshotInstructions()
const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotInstructions |
( |
| ) |
const |
◆ GetLogMessageCallbackHook()
Definition at line 223 of file embedder_test_context.cc.
223 {
226 if (context->log_message_callback_) {
227 context->log_message_callback_(tag,
message);
228 }
229 };
230}
◆ GetNextSceneImage()
std::future< sk_sp< SkImage > > flutter::testing::EmbedderTestContext::GetNextSceneImage |
( |
| ) |
|
Definition at line 274 of file embedder_test_context.cc.
274 {
275 std::promise<sk_sp<SkImage>> promise;
276 auto future = promise.get_future();
279 promise.set_value(
image);
280 }));
281 return future;
282}
void SetNextSceneCallback(const NextSceneCallback &next_scene_callback)
sk_sp< const SkImage > image
internal::CopyableLambda< T > MakeCopyable(T lambda)
◆ GetRootSurfaceTransformation()
Definition at line 254 of file embedder_test_context.cc.
254 {
256}
SkMatrix root_surface_transformation_
FlutterTransformation FlutterTransformationMake(const SkMatrix &matrix)
◆ GetSurfacePresentCount()
virtual size_t flutter::testing::EmbedderTestContext::GetSurfacePresentCount |
( |
| ) |
const |
|
pure virtual |
◆ GetUpdateSemanticsCallback2Hook()
Definition at line 168 of file embedder_test_context.cc.
168 {
170 return nullptr;
171 }
172
175 if (context->update_semantics_callback2_) {
176 context->update_semantics_callback2_(
update);
177 }
178 };
179}
SemanticsUpdateCallback2 update_semantics_callback2_
A batch of updates to semantics nodes and custom actions.
◆ GetUpdateSemanticsCallbackHook()
Definition at line 182 of file embedder_test_context.cc.
182 {
184 return nullptr;
185 }
186
189 if (context->update_semantics_callback_) {
190 context->update_semantics_callback_(
update);
191 }
192 };
193}
SemanticsUpdateCallback update_semantics_callback_
◆ GetUpdateSemanticsCustomActionCallbackHook()
Definition at line 210 of file embedder_test_context.cc.
210 {
212 return nullptr;
213 }
214
217 if (context->update_semantics_custom_action_callback_) {
218 context->update_semantics_custom_action_callback_(
action);
219 }
220 };
221}
SemanticsActionCallback update_semantics_custom_action_callback_
◆ GetUpdateSemanticsNodeCallbackHook()
Definition at line 196 of file embedder_test_context.cc.
196 {
198 return nullptr;
199 }
200
203 if (context->update_semantics_node_callback_) {
204 context->update_semantics_node_callback_(semantics_node);
205 }
206 };
207}
SemanticsNodeCallback update_semantics_node_callback_
◆ GetVMSnapshotData()
const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotData |
( |
| ) |
const |
◆ GetVMSnapshotInstructions()
const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotInstructions |
( |
| ) |
const |
◆ PlatformMessageCallback()
Definition at line 155 of file embedder_test_context.cc.
156 {
159 }
160}
std::function< void(const FlutterPlatformMessage *)> platform_message_callback_
◆ RunVsyncCallback()
void flutter::testing::EmbedderTestContext::RunVsyncCallback |
( |
intptr_t |
baton | ) |
|
◆ SetChannelUpdateCallback()
void flutter::testing::EmbedderTestContext::SetChannelUpdateCallback |
( |
const ChannelUpdateCallback & |
callback | ) |
|
◆ SetLogMessageCallback()
void flutter::testing::EmbedderTestContext::SetLogMessageCallback |
( |
const LogMessageCallback & |
log_message_callback | ) |
|
◆ SetNativeResolver()
void flutter::testing::EmbedderTestContext::SetNativeResolver |
( |
| ) |
|
|
protected |
◆ SetNextSceneCallback()
void flutter::testing::EmbedderTestContext::SetNextSceneCallback |
( |
const NextSceneCallback & |
next_scene_callback | ) |
|
|
protected |
◆ SetPlatformMessageCallback()
◆ SetRootSurfaceTransformation()
void flutter::testing::EmbedderTestContext::SetRootSurfaceTransformation |
( |
SkMatrix |
matrix | ) |
|
◆ SetSemanticsCustomActionCallback()
void flutter::testing::EmbedderTestContext::SetSemanticsCustomActionCallback |
( |
SemanticsActionCallback |
semantics_custom_action | ) |
|
◆ SetSemanticsNodeCallback()
void flutter::testing::EmbedderTestContext::SetSemanticsNodeCallback |
( |
SemanticsNodeCallback |
update_semantics_node | ) |
|
◆ SetSemanticsUpdateCallback()
◆ SetSemanticsUpdateCallback2()
◆ SetupAOTDataIfNecessary()
void flutter::testing::EmbedderTestContext::SetupAOTDataIfNecessary |
( |
| ) |
|
|
protected |
Definition at line 52 of file embedder_test_context.cc.
52 {
54 return;
55 }
58
61
64
66
68}
static bool IsRunningPrecompiledCode()
Checks if VM instances in the process can run precompiled code. This call can be made at any time and...
FlutterEngineResult FlutterEngineCreateAOTData(const FlutterEngineAOTDataSource *source, FlutterEngineAOTData *data_out)
Creates the necessary data structures to launch a Flutter Dart application in AOT mode....
@ kFlutterEngineAOTDataSourceTypeElfPath
const char * GetFixturesPath()
Returns the directory containing the test fixture for the target if this target has fixtures configur...
std::string JoinPaths(std::initializer_list< std::string > components)
FlutterEngineAOTDataSourceType type
const char * elf_path
Absolute path to an ELF library file.
◆ SetupAOTMappingsIfNecessary()
void flutter::testing::EmbedderTestContext::SetupAOTMappingsIfNecessary |
( |
| ) |
|
|
protected |
Definition at line 38 of file embedder_test_context.cc.
38 {
40 return;
41 }
50}
const uint8_t * vm_snapshot_data
const uint8_t * vm_snapshot_instrs
const uint8_t * vm_isolate_instrs
const uint8_t * vm_isolate_data
◆ SetupCompositor()
virtual void flutter::testing::EmbedderTestContext::SetupCompositor |
( |
| ) |
|
|
protectedpure virtual |
◆ SetupSurface()
virtual void flutter::testing::EmbedderTestContext::SetupSurface |
( |
SkISize |
surface_size | ) |
|
|
protectedpure virtual |
◆ SetVsyncCallback()
void flutter::testing::EmbedderTestContext::SetVsyncCallback |
( |
std::function< void(intptr_t)> |
callback | ) |
|
◆ EmbedderConfigBuilder
◆ aot_data_
◆ aot_symbols_
ELFAOTSymbols flutter::testing::EmbedderTestContext::aot_symbols_ |
|
protected |
◆ assets_path_
std::string flutter::testing::EmbedderTestContext::assets_path_ |
|
protected |
◆ channel_update_callback_
◆ 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 |
◆ isolate_snapshot_instructions_
std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::isolate_snapshot_instructions_ |
|
protected |
◆ log_message_callback_
◆ native_resolver_
◆ next_scene_callback_
◆ platform_message_callback_
◆ root_surface_transformation_
SkMatrix flutter::testing::EmbedderTestContext::root_surface_transformation_ |
|
protected |
◆ update_semantics_callback2_
◆ update_semantics_callback_
◆ update_semantics_custom_action_callback_
◆ update_semantics_node_callback_
◆ vm_snapshot_data_
std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::vm_snapshot_data_ |
|
protected |
◆ vm_snapshot_instructions_
std::unique_ptr<fml::Mapping> flutter::testing::EmbedderTestContext::vm_snapshot_instructions_ |
|
protected |
◆ vsync_callback_
std::function<void(intptr_t)> flutter::testing::EmbedderTestContext::vsync_callback_ = nullptr |
|
protected |
The documentation for this class was generated from the following files: