Flutter Engine
embedder_unittests_util.h File Reference
#include <future>
#include "embedder.h"
#include "flutter/fml/mapping.h"
#include "flutter/fml/message_loop.h"
#include "flutter/fml/paths.h"
#include "flutter/shell/platform/embedder/tests/embedder_assertions.h"
#include "flutter/shell/platform/embedder/tests/embedder_config_builder.h"
#include "flutter/shell/platform/embedder/tests/embedder_test.h"
#include "third_party/skia/include/core/SkSurface.h"

Go to the source code of this file.

Classes

class  flutter::testing::EmbedderTestTaskRunner
 A task runner that we expect the embedder to provide but whose implementation is a real FML task runner. More...
 

Namespaces

 flutter
 
 flutter::testing
 

Macros

#define FML_USED_ON_EMBEDDER
 

Functions

sk_sp< SkSurface > flutter::testing::CreateRenderSurface (const FlutterLayer &layer, GrDirectContext *context)
 
bool flutter::testing::RasterImagesAreSame (sk_sp< SkImage > a, sk_sp< SkImage > b)
 
bool flutter::testing::WriteImageToDisk (const fml::UniqueFD &directory, const std::string &name, sk_sp< SkImage > image)
 
bool flutter::testing::ImageMatchesFixture (const std::string &fixture_file_name, sk_sp< SkImage > scene_image)
 
bool flutter::testing::ImageMatchesFixture (const std::string &fixture_file_name, std::future< sk_sp< SkImage >> &scene_image)
 
void flutter::testing::FilterMutationsByType (const FlutterPlatformViewMutation **mutations, size_t count, FlutterPlatformViewMutationType type, std::function< void(const FlutterPlatformViewMutation &mutation)> handler)
 
void flutter::testing::FilterMutationsByType (const FlutterPlatformView *view, FlutterPlatformViewMutationType type, std::function< void(const FlutterPlatformViewMutation &mutation)> handler)
 
SkMatrix flutter::testing::GetTotalMutationTransformationMatrix (const FlutterPlatformViewMutation **mutations, size_t count)
 
SkMatrix flutter::testing::GetTotalMutationTransformationMatrix (const FlutterPlatformView *view)
 

Macro Definition Documentation

◆ FML_USED_ON_EMBEDDER

#define FML_USED_ON_EMBEDDER

Definition at line 8 of file embedder_unittests_util.h.