#include <embedder_test_context.h>
Protected Types | |
| using | NextSceneCallback = std::function< void(sk_sp< SkImage > image)> |
Static Protected Member Functions | |
| static VoidCallback | GetIsolateCreateCallbackHook () |
| static FlutterLogMessageCallback | GetLogMessageCallbackHook () |
| static FlutterComputePlatformResolvedLocaleCallback | GetComputePlatformResolvedLocaleCallbackHook () |
Friends | |
| class | EmbedderConfigBuilder |
Definition at line 58 of file embedder_test_context.h.
|
protected |
Definition at line 125 of file embedder_test_context.h.
|
explicit |
Definition at line 20 of file embedder_test_context.cc.
References isolate_create_callbacks_, native_resolver_, SetupAOTDataIfNecessary(), and SetupAOTMappingsIfNecessary().
|
virtualdefault |
| void flutter::testing::EmbedderTestContext::AddIsolateCreateCallback | ( | const fml::closure & | closure | ) |
Definition at line 103 of file embedder_test_context.cc.
References isolate_create_callbacks_.
| void flutter::testing::EmbedderTestContext::AddNativeCallback | ( | const char * | name, |
| Dart_NativeFunction | function | ||
| ) |
Definition at line 123 of file embedder_test_context.cc.
References function, flutter::name, and native_resolver_.
|
protected |
Definition at line 117 of file embedder_test_context.cc.
References isolate_create_callbacks_.
Referenced by GetIsolateCreateCallbackHook().
|
protected |
Definition at line 304 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::EmbedderTestContextVulkan::PresentImage().
|
protected |
| FlutterEngineAOTData flutter::testing::EmbedderTestContext::GetAOTData | ( | ) | const |
Definition at line 91 of file embedder_test_context.cc.
References aot_data_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetAOTDataElf().
| const std::string & flutter::testing::EmbedderTestContext::GetAssetsPath | ( | ) | const |
Definition at line 70 of file embedder_test_context.cc.
References assets_path_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetAssetsPath().
|
protected |
Definition at line 250 of file embedder_test_context.cc.
References channel_update_callback_, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetChannelUpdateCallbackHook().
| EmbedderTestCompositor & flutter::testing::EmbedderTestContext::GetCompositor | ( | ) |
Definition at line 277 of file embedder_test_context.cc.
References compositor_, and FML_CHECK.
Referenced by flutter::testing::EmbedderConfigBuilder::SetCompositor(), and flutter::testing::EmbedderConfigBuilder::SetRenderTargetType().
|
staticprotected |
Definition at line 242 of file embedder_test_context.cc.
References length.
Referenced by flutter::testing::EmbedderConfigBuilder::SetLocalizationCallbackHooks().
|
pure virtual |
|
staticprotected |
Definition at line 110 of file embedder_test_context.cc.
References FireIsolateCreateCallbacks(), and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetIsolateCreateCallbackHook().
| const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotData | ( | ) | const |
Definition at line 82 of file embedder_test_context.cc.
References isolate_snapshot_data_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().
| const fml::Mapping * flutter::testing::EmbedderTestContext::GetIsolateSnapshotInstructions | ( | ) | const |
Definition at line 86 of file embedder_test_context.cc.
References isolate_snapshot_instructions_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().
|
staticprotected |
Definition at line 232 of file embedder_test_context.cc.
References log_message_callback_, message, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetLogMessageCallbackHook().
| std::future< sk_sp< SkImage > > flutter::testing::EmbedderTestContext::GetNextSceneImage | ( | ) |
Definition at line 293 of file embedder_test_context.cc.
References image, fml::MakeCopyable(), and SetNextSceneCallback().
| FlutterRendererConfig & flutter::testing::EmbedderTestContext::GetRendererConfig | ( | ) |
Definition at line 99 of file embedder_test_context.cc.
References renderer_config_.
Referenced by flutter::testing::TEST_F().
|
protected |
Definition at line 273 of file embedder_test_context.cc.
References FlutterTransformationMake(), and root_surface_transformation_.
Referenced by flutter::testing::EmbedderTestContextGL::EmbedderTestContextGL().
|
pure virtual |
|
protected |
Definition at line 177 of file embedder_test_context.cc.
References update_semantics_callback2_, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().
|
protected |
Definition at line 191 of file embedder_test_context.cc.
References update_semantics_callback_, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().
|
protected |
Definition at line 219 of file embedder_test_context.cc.
References action, update_semantics_custom_action_callback_, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().
|
protected |
Definition at line 205 of file embedder_test_context.cc.
References update_semantics_node_callback_, and user_data.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSemanticsCallbackHooks().
|
protected |
Definition at line 264 of file embedder_test_context.cc.
References user_data, and view_focus_change_request_callback_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetViewFocusChangeRequestHook().
| const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotData | ( | ) | const |
Definition at line 74 of file embedder_test_context.cc.
References vm_snapshot_data_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().
| const fml::Mapping * flutter::testing::EmbedderTestContext::GetVMSnapshotInstructions | ( | ) | const |
Definition at line 78 of file embedder_test_context.cc.
References vm_snapshot_instructions_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetSnapshots().
|
protected |
Definition at line 164 of file embedder_test_context.cc.
References message, and platform_message_callback_.
| void flutter::testing::EmbedderTestContext::RunVsyncCallback | ( | intptr_t | baton | ) |
Definition at line 319 of file embedder_test_context.cc.
References vsync_callback_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetupVsyncCallback().
| void flutter::testing::EmbedderTestContext::SetChannelUpdateCallback | ( | const ChannelUpdateCallback & | callback | ) |
Definition at line 154 of file embedder_test_context.cc.
References callback, and channel_update_callback_.
| void flutter::testing::EmbedderTestContext::SetLogMessageCallback | ( | const LogMessageCallback & | log_message_callback | ) |
Definition at line 171 of file embedder_test_context.cc.
References callback, and log_message_callback_.
|
protected |
|
protected |
Definition at line 284 of file embedder_test_context.cc.
References compositor_, next_scene_callback_, and flutter::testing::EmbedderTestCompositor::SetNextSceneCallback().
Referenced by GetNextSceneImage().
| void flutter::testing::EmbedderTestContext::SetPlatformMessageCallback | ( | const std::function< void(const FlutterPlatformMessage *)> & | callback | ) |
Definition at line 149 of file embedder_test_context.cc.
References callback, and platform_message_callback_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetPlatformMessageCallback().
| void flutter::testing::EmbedderTestContext::SetRootSurfaceTransformation | ( | DlMatrix | matrix | ) |
Definition at line 95 of file embedder_test_context.cc.
References root_surface_transformation_.
| void flutter::testing::EmbedderTestContext::SetSemanticsCustomActionCallback | ( | SemanticsActionCallback | semantics_custom_action | ) |
Definition at line 143 of file embedder_test_context.cc.
References update_semantics_custom_action_callback_.
| void flutter::testing::EmbedderTestContext::SetSemanticsNodeCallback | ( | SemanticsNodeCallback | update_semantics_node | ) |
Definition at line 138 of file embedder_test_context.cc.
References update_semantics_node_callback_.
| void flutter::testing::EmbedderTestContext::SetSemanticsUpdateCallback | ( | SemanticsUpdateCallback | update_semantics | ) |
Definition at line 133 of file embedder_test_context.cc.
References update_semantics_callback_.
| void flutter::testing::EmbedderTestContext::SetSemanticsUpdateCallback2 | ( | SemanticsUpdateCallback2 | update_semantics | ) |
Definition at line 128 of file embedder_test_context.cc.
References update_semantics_callback2_.
|
protectedpure virtual |
Referenced by flutter::testing::EmbedderConfigBuilder::SetSurface().
|
protected |
Definition at line 52 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, flutter::kSuccess, and FlutterEngineAOTDataSource::type.
Referenced by EmbedderTestContext().
|
protected |
Definition at line 38 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().
|
protectedpure virtual |
Referenced by flutter::testing::EmbedderConfigBuilder::SetCompositor().
| void flutter::testing::EmbedderTestContext::SetViewFocusChangeRequestCallback | ( | const ViewFocusChangeRequestCallback & | callback | ) |
Definition at line 159 of file embedder_test_context.cc.
References callback, and view_focus_change_request_callback_.
Referenced by flutter::testing::EmbedderConfigBuilder::SetViewFocusChangeRequestCallback().
| void flutter::testing::EmbedderTestContext::SetVsyncCallback | ( | std::function< void(intptr_t)> | callback | ) |
Definition at line 314 of file embedder_test_context.cc.
References callback, and vsync_callback_.
|
friend |
Definition at line 123 of file embedder_test_context.h.
|
protected |
Definition at line 133 of file embedder_test_context.h.
Referenced by GetAOTData(), and SetupAOTDataIfNecessary().
|
protected |
Definition at line 128 of file embedder_test_context.h.
Referenced by SetupAOTMappingsIfNecessary().
|
protected |
Definition at line 127 of file embedder_test_context.h.
Referenced by GetAssetsPath().
|
protected |
Definition at line 141 of file embedder_test_context.h.
Referenced by GetChannelUpdateCallbackHook(), and SetChannelUpdateCallback().
|
protected |
Definition at line 145 of file embedder_test_context.h.
Referenced by GetCompositor(), and SetNextSceneCallback().
|
protected |
Definition at line 134 of file embedder_test_context.h.
Referenced by AddIsolateCreateCallback(), EmbedderTestContext(), and FireIsolateCreateCallbacks().
|
protected |
Definition at line 131 of file embedder_test_context.h.
Referenced by GetIsolateSnapshotData(), and SetupAOTMappingsIfNecessary().
|
protected |
Definition at line 132 of file embedder_test_context.h.
Referenced by GetIsolateSnapshotInstructions(), and SetupAOTMappingsIfNecessary().
|
protected |
Definition at line 144 of file embedder_test_context.h.
Referenced by GetLogMessageCallbackHook(), and SetLogMessageCallback().
|
protected |
Definition at line 135 of file embedder_test_context.h.
Referenced by AddNativeCallback(), and EmbedderTestContext().
|
protected |
Definition at line 146 of file embedder_test_context.h.
Referenced by FireRootSurfacePresentCallbackIfPresent(), and SetNextSceneCallback().
|
protected |
Definition at line 143 of file embedder_test_context.h.
Referenced by PlatformMessageCallback(), and SetPlatformMessageCallback().
|
protected |
Definition at line 136 of file embedder_test_context.h.
Referenced by flutter::testing::EmbedderTestContextGL::EmbedderTestContextGL(), flutter::testing::EmbedderTestContextMetal::EmbedderTestContextMetal(), flutter::testing::EmbedderTestContextSoftware::EmbedderTestContextSoftware(), flutter::testing::EmbedderTestContextVulkan::EmbedderTestContextVulkan(), GetRendererConfig(), flutter::testing::EmbedderTestContextGL::SetOpenGLFBOCallBack(), flutter::testing::EmbedderTestContextGL::SetOpenGLPresentCallBack(), and flutter::testing::EmbedderTestContextVulkan::SetVulkanInstanceProcAddressCallback().
|
protected |
Definition at line 147 of file embedder_test_context.h.
Referenced by GetRootSurfaceTransformation(), and SetRootSurfaceTransformation().
|
protected |
Definition at line 137 of file embedder_test_context.h.
Referenced by GetUpdateSemanticsCallback2Hook(), and SetSemanticsUpdateCallback2().
|
protected |
Definition at line 138 of file embedder_test_context.h.
Referenced by GetUpdateSemanticsCallbackHook(), and SetSemanticsUpdateCallback().
|
protected |
Definition at line 140 of file embedder_test_context.h.
Referenced by GetUpdateSemanticsCustomActionCallbackHook(), and SetSemanticsCustomActionCallback().
|
protected |
Definition at line 139 of file embedder_test_context.h.
Referenced by GetUpdateSemanticsNodeCallbackHook(), and SetSemanticsNodeCallback().
|
protected |
Definition at line 142 of file embedder_test_context.h.
Referenced by GetViewFocusChangeRequestCallbackHook(), and SetViewFocusChangeRequestCallback().
|
protected |
Definition at line 129 of file embedder_test_context.h.
Referenced by GetVMSnapshotData(), and SetupAOTMappingsIfNecessary().
|
protected |
Definition at line 130 of file embedder_test_context.h.
Referenced by GetVMSnapshotInstructions(), and SetupAOTMappingsIfNecessary().
|
protected |
Definition at line 148 of file embedder_test_context.h.
Referenced by RunVsyncCallback(), and SetVsyncCallback().