Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flutter::testing::ImageDisposeTest Class Reference
Inheritance diagram for flutter::testing::ImageDisposeTest:
flutter::testing::ShellTest flutter::testing::FixtureTest flutter::testing::DartFixture flutter::testing::ThreadTest

Public Member Functions

template<class T >
TGetNativePeer (Dart_Handle handle)
 
- Public Member Functions inherited from flutter::testing::ShellTest
 ShellTest ()
 
Settings CreateSettingsForFixture () override
 
std::unique_ptr< ShellCreateShell (const Settings &settings, std::optional< TaskRunners > task_runners={})
 
std::unique_ptr< ShellCreateShell (const Config &config)
 
void DestroyShell (std::unique_ptr< Shell > shell)
 
void DestroyShell (std::unique_ptr< Shell > shell, const TaskRunners &task_runners)
 
TaskRunners GetTaskRunnersForFixture ()
 
fml::TimePoint GetLatestFrameTargetTime (Shell *shell) const
 
void SendPlatformMessage (Shell *shell, std::unique_ptr< PlatformMessage > message)
 
void SendEnginePlatformMessage (Shell *shell, std::unique_ptr< PlatformMessage > message)
 
std::shared_ptr< txt::FontCollectionGetFontCollection (Shell *shell)
 
- Public Member Functions inherited from flutter::testing::FixtureTest
 FixtureTest ()
 
 FixtureTest (std::string kernel_filename, std::string elf_filename, std::string elf_split_filename)
 
- Public Member Functions inherited from flutter::testing::DartFixture
 DartFixture ()
 
 DartFixture (std::string kernel_filename, std::string elf_filename, std::string elf_split_filename)
 
void AddNativeCallback (const std::string &name, Dart_NativeFunction callback)
 
void AddFfiNativeCallback (const std::string &name, void *callback_ptr)
 
- 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.
 

Public Attributes

fml::AutoResetWaitableEvent message_latch_
 
sk_sp< DisplayListcurrent_display_list_
 
sk_sp< DlImagecurrent_image_
 

Additional Inherited Members

- Public Types inherited from flutter::testing::ShellTest
enum  ServiceProtocolEnum {
  kGetSkSLs , kEstimateRasterCacheMemory , kSetAssetBundlePath , kRunInView ,
  kRenderFrameWithRasterStats
}
 
- Static Public Member Functions inherited from flutter::testing::ShellTest
static void PlatformViewNotifyCreated (Shell *shell)
 
static void PlatformViewNotifyDestroyed (Shell *shell)
 
static void RunEngine (Shell *shell, RunConfiguration configuration)
 
static void RestartEngine (Shell *shell, RunConfiguration configuration)
 
static void VSyncFlush (Shell *shell, bool *will_draw_new_frame=nullptr)
 
static void SetViewportMetrics (Shell *shell, double width, double height)
 
static void NotifyIdle (Shell *shell, fml::TimeDelta deadline)
 
static void PumpOneFrame (Shell *shell)
 
static void PumpOneFrame (Shell *shell, FrameContent frame_content)
 
static void DispatchFakePointerData (Shell *shell)
 
static void DispatchPointerData (Shell *shell, std::unique_ptr< PointerDataPacket > packet)
 
static bool GetNeedsReportTimings (Shell *shell)
 
static void SetNeedsReportTimings (Shell *shell, bool value)
 
static void StorePersistentCache (PersistentCache *cache, const SkData &key, const SkData &value)
 
static bool IsAnimatorRunning (Shell *shell)
 
static void OnServiceProtocol (Shell *shell, ServiceProtocolEnum some_protocol, const fml::RefPtr< fml::TaskRunner > &task_runner, const ServiceProtocol::Handler::ServiceProtocolMap &params, rapidjson::Document *response)
 
static int UnreportedTimingsCount (Shell *shell)
 
static size_t GetLiveTrackedPathCount (const std::shared_ptr< VolatilePathTracker > &tracker)
 
static void TurnOffGPU (Shell *shell, bool value)
 
- Protected Member Functions inherited from flutter::testing::DartFixture
void SetSnapshotsAndAssets (Settings &settings)
 
- Protected Attributes inherited from flutter::testing::DartFixture
std::shared_ptr< TestDartNativeResolvernative_resolver_
 
ELFAOTSymbols split_aot_symbols_
 
std::string kernel_filename_
 
std::string elf_filename_
 
fml::UniqueFD assets_dir_
 
ELFAOTSymbols aot_symbols_
 

Detailed Description

Definition at line 22 of file image_dispose_unittests.cc.

Member Function Documentation

◆ GetNativePeer()

template<class T >
T * flutter::testing::ImageDisposeTest::GetNativePeer ( Dart_Handle  handle)
inline

Definition at line 25 of file image_dispose_unittests.cc.

25 {
26 intptr_t peer = 0;
27 auto native_handle = Dart_GetNativeInstanceField(
29 EXPECT_FALSE(Dart_IsError(native_handle)) << Dart_GetError(native_handle);
30 return reinterpret_cast<T*>(peer);
31 }
DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, int index, intptr_t *value)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
#define T

Member Data Documentation

◆ current_display_list_

sk_sp<DisplayList> flutter::testing::ImageDisposeTest::current_display_list_

Definition at line 36 of file image_dispose_unittests.cc.

◆ current_image_

sk_sp<DlImage> flutter::testing::ImageDisposeTest::current_image_

Definition at line 37 of file image_dispose_unittests.cc.

◆ message_latch_

fml::AutoResetWaitableEvent flutter::testing::ImageDisposeTest::message_latch_

Definition at line 34 of file image_dispose_unittests.cc.


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