Flutter Engine
flutter::testing::UniqueEngineTraits Struct Reference

#include <embedder_config_builder.h>

Static Public Member Functions

static FlutterEngine InvalidValue ()
static bool IsValid (const FlutterEngine &value)
static void Free (FlutterEngine &engine)

Detailed Description

Definition at line 17 of file embedder_config_builder.h.

Member Function Documentation

◆ Free()

static void flutter::testing::UniqueEngineTraits::Free ( FlutterEngine engine)

Definition at line 22 of file embedder_config_builder.h.

References FlutterEngineShutdown(), FML_CHECK, kSuccess, and result.

22  {
23  auto result = FlutterEngineShutdown(engine);
25  }
FlutterEngineResult FlutterEngineShutdown(FLUTTER_API_SYMBOL(FlutterEngine) engine)
Shuts down a Flutter engine instance. The engine handle is no longer valid for any calls in the embed...
Definition: embedder.cc:1377
GAsyncResult * result
#define FML_CHECK(condition)
Definition: logging.h:68

◆ InvalidValue()

static FlutterEngine flutter::testing::UniqueEngineTraits::InvalidValue ( )

Definition at line 18 of file embedder_config_builder.h.

18 { return nullptr; }

◆ IsValid()

static bool flutter::testing::UniqueEngineTraits::IsValid ( const FlutterEngine value)

Definition at line 20 of file embedder_config_builder.h.

20 { return value != nullptr; }

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