Flutter Engine
flutter::testing Namespace Reference

Namespaces

 android
 
 keycodes
 

Classes

struct  AOTDataDeleter
 
class  AttributeRefTester
 
class  AutoIsolateShutdown
 
class  BoundsTolerance
 
class  CanvasCompareTester
 
class  CanvasProvider
 
class  CanvasTestBase
 
class  CaseParameters
 
class  ConstantFiringVsyncWaiter
 
class  DartFixture
 
class  DartIsolateTest
 
class  DartNativeBenchmarks
 
class  DartPersistentHandleTest
 
class  DartSecondaryIsolateTest
 
class  DartWeakPersistentHandle
 
class  DarwinContextMetal
 
class  DiffContextTest
 
class  DisplayListCanvasTestBase
 
struct  DisplayListInvocation
 
struct  DisplayListInvocationGroup
 
class  DisplayListStreamDispatcher
 
struct  ELFAOTSymbols
 
class  EmbedderConfigBuilder
 
class  EmbedderTest
 
class  EmbedderTestBackingStoreProducer
 
class  EmbedderTestCompositor
 
class  EmbedderTestCompositorGL
 
class  EmbedderTestCompositorMetal
 
class  EmbedderTestCompositorSoftware
 
class  EmbedderTestCompositorVulkan
 
class  EmbedderTestContext
 
class  EmbedderTestContextGL
 
class  EmbedderTestContextMetal
 
class  EmbedderTestContextSoftware
 
class  EmbedderTestContextVulkan
 
class  EmbedderTestMultiBackend
 
class  EmbedderTestTaskRunner
 A task runner that we expect the embedder to provide but whose implementation is a real FML task runner. More...
 
class  FakeAnimatorDelegate
 
class  FakeImageGenerator
 
class  FfiNativeTest
 
class  FixtureTest
 
class  FlutterEngineTest
 
class  FlutterWindowWin32Test
 Test class for FlutterWindowWin32. More...
 
class  FuchsiaShellTest
 
class  ImageDecoderFixtureTest
 
class  ImageDisposeTest
 
class  IsolateStartupFailureTest
 Tests error handling path of Isolate.spawn() in the engine. More...
 
struct  KeyEventUserData
 
class  LayerTestBase
 
class  LayerTreeTest
 
struct  LoadedELFDeleter
 
class  MetalCanvasProvider
 
class  MockBinaryMessenger
 
class  MockCanvas
 
class  MockDispatchHelper
 
class  MockGlFunctions
 
class  MockIDirectManipulationContent
 
class  MockIDirectManipulationViewport
 
class  MockIMContext
 
class  MockKeyResponseController
 
class  MockLayer
 
class  MockLayerTree
 
class  MockMessageQueue
 
class  MockMethodResult
 
class  MockRasterCache
 A RasterCache implementation that simulates the act of rendering a Layer or SkPicture without the overhead of rasterization or pixel storage. This implementation is used only for testing proper usage of the RasterCache in layer unit tests. More...
 
class  MockRasterCacheResult
 A RasterCacheResult implementation that represents a cached Layer or SkPicture without the overhead of storage. More...
 
class  MockRefreshRateUpdater
 
class  MockSettings
 
class  MockSignalHandler
 
class  MockSignalHandler1
 
class  MockSignalHandler2
 
class  MockSyncSwitch
 
class  MockSystemClipboard
 
class  MockTextInputManagerWin32
 Mock for the |WindowWin32| base class. More...
 
class  MockTexture
 
class  MockViewEmbedder
 
class  MockWin32Window
 Mock for the |WindowWin32| base class. More...
 
class  MockWindowBindingHandler
 Mock for the |WindowWin32| base class. More...
 
class  MockWindowBindingHandlerDelegate
 
class  MyNativeClass
 
class  OpenGLCanvasProvider
 
class  PendingTests
 
struct  PrerollContextHolder
 
class  RenderEnvironment
 
class  RenderSurface
 
class  SaveLayerOptionsExpector
 
class  ScopedStubFlutterApi
 
class  ScopedStubFlutterGlfwApi
 
class  ScopedStubFlutterWindowsApi
 
class  ShellIOManagerTest
 
class  ShellTest
 
class  ShellTestPlatformView
 
class  ShellTestPlatformViewGL
 
class  ShellTestPlatformViewMetal
 
class  ShellTestPlatformViewVulkan
 
class  ShellTestVsyncClock
 
class  ShellTestVsyncWaiter
 
class  SignalHandler
 
class  SinglePixelImageGenerator
 An image generator that always creates a 1x1 single-frame green image. More...
 
class  SkiaGPUObjectLayerTest
 
class  SkiaGpuObjectTest
 
class  SoftwareCanvasProvider
 
class  StubFlutterApi
 
class  StubFlutterGlfwApi
 
class  StubFlutterWindowsApi
 
class  SurfaceMock
 
class  TestAndroidSurfaceFactory
 
class  TestAssetResolver
 
class  TestDartNativeResolver
 
class  TestGLSurface
 
class  TestIOManager
 
class  TestParameters
 
class  TestPlatformHandlerWin32
 
class  TestRefreshRateReporter
 
class  TestResourceCacheLimitItem
 
class  TestResourceContext
 
class  TestScopedClipboard
 
class  TestSkObject
 
class  TestSwitchableGLContext
 The renderer context used for testing. More...
 
class  TestTimeoutListener
 
class  TestVulkanContext
 
class  TestVulkanImage
 Captures the lifetime of a test VkImage along with its bound memory. More...
 
class  TestVulkanSurface
 
class  ThreadTest
 A fixture that creates threads with running message loops that are terminated when the test is done (the threads are joined then as well). While this fixture may be used on it's own, it is often sub-classed by other fixtures whose functioning requires threads to be created as necessary. More...
 
class  TypeConversionsTest
 
struct  UniqueEngineTraits
 
class  UnknownImageGenerator
 An Image generator that pretends it can't recognize the data it was given. More...
 
struct  Win32Message
 
struct  WmCharInfo
 
struct  WmDeadCharInfo
 
struct  WmKeyDownInfo
 
struct  WmKeyUpInfo
 
struct  WmSysKeyDownInfo
 
struct  WmSysKeyUpInfo
 

Typedefs

typedef const std::function< void(SkCanvas *, SkPaint &)> CvSetup
 
typedef const std::function< void(SkCanvas *, const SkPaint &)> CvRenderer
 
typedef const std::function< void(DisplayListBuilder &)> DlRenderer
 
using DisplayListCanvas = DisplayListCanvasTestBase<::testing::Test >
 
typedef const std::function< void(DisplayListBuilder &)> DlInvoker
 
using Builder = DlVertices::Builder
 
using BackdropFilterLayerTest = LayerTest
 
using BackdropLayerDiffTest = DiffContextTest
 
using CheckerBoardLayerTest = LayerTest
 
using ClipPathLayerTest = LayerTest
 
using ClipRectLayerTest = LayerTest
 
using ClipRRectLayerTest = LayerTest
 
using ColorFilterLayerTest = LayerTest
 
using ContainerLayerTest = LayerTest
 
using ContainerLayerDiffTest = DiffContextTest
 
using DisplayListLayerTest = SkiaGPUObjectLayerTest
 
using DisplayListLayerDiffTest = DiffContextTest
 
using ImageFilterLayerTest = LayerTest
 
using ImageFilterLayerDiffTest = DiffContextTest
 
using OpacityLayerTest = LayerTest
 
using OpacityLayerDiffTest = DiffContextTest
 
using PerformanceOverlayLayerTest = LayerTest
 
using PhysicalShapeLayerTest = LayerTest
 
using PhysicalShapeLayerDiffTest = DiffContextTest
 
using PlatformViewLayerTest = LayerTest
 
using ShaderMaskLayerTest = LayerTest
 
using TextureLayerTest = LayerTest
 
using TextureLayerDiffTest = DiffContextTest
 
using TransformLayerTest = LayerTest
 
using TransformLayerLayerDiffTest = DiffContextTest
 
using AutoSaveLayerTests = LayerTest
 
using LayerTest = LayerTestBase<::testing::Test >
 
using MockLayerTest = LayerTest
 
using HooksTest = ShellTest
 
using SemanticsUpdateBuilderTest = ShellTest
 
using DartLifecycleTest = FixtureTest
 
using DartVMTest = FixtureTest
 
using UnitlessTime = int
 
using Generator = std::function< UnitlessTime(int)>
 
using PersistentCacheTest = ShellTest
 
using IntPipeline = Pipeline< int >
 
using Continuation = IntPipeline::ProducerContinuation
 
using CreateVsyncWaiter = std::function< std::unique_ptr< VsyncWaiter >()>
 
using EmbedderA11yTest = testing::EmbedderTest
 
using UniqueEngine = fml::UniqueObject< FlutterEngine, UniqueEngineTraits >
 
using SemanticsNodeCallback = std::function< void(const FlutterSemanticsNode *)>
 
using SemanticsActionCallback = std::function< void(const FlutterSemanticsCustomAction *)>
 
using LogMessageCallback = std::function< void(const char *tag, const char *message)>
 
using UniqueAOTData = std::unique_ptr< _FlutterEngineAOTData, AOTDataDeleter >
 
using EmbedderTest = testing::EmbedderTest
 
typedef enum flutter::testing::WmFieldExtended WmFieldExtended
 
typedef enum flutter::testing::WmFieldContext WmFieldContext
 
typedef enum flutter::testing::WmFieldPrevState WmFieldPrevState
 
typedef enum flutter::testing::WmFieldTransitionState WmFieldTransitionState
 
typedef struct flutter::testing::WmKeyDownInfo WmKeyDownInfo
 
typedef struct flutter::testing::WmKeyUpInfo WmKeyUpInfo
 
typedef struct flutter::testing::WmCharInfo WmCharInfo
 
typedef struct flutter::testing::WmSysKeyDownInfo WmSysKeyDownInfo
 
typedef struct flutter::testing::WmSysKeyUpInfo WmSysKeyUpInfo
 
typedef struct flutter::testing::WmDeadCharInfo WmDeadCharInfo
 
using CanvasTest = CanvasTestBase<::testing::Test >
 
using UniqueLoadedELF = std::unique_ptr< Dart_LoadedElf, LoadedELFDeleter >
 
using MockCanvasTest = CanvasTest
 
using NativeEntry = std::function< void(Dart_NativeArguments)>
 
using DartState = FixtureTest
 

Enumerations

enum  BackendType {
  kSoftware_Backend,
  kOpenGL_Backend,
  kMetal_Backend
}
 
enum  BenchmarkAttributes {
  kEmpty_Flag = 0,
  kStrokedStyle_Flag = 1 << 0,
  kFilledStyle_Flag = 1 << 1,
  kHairlineStroke_Flag = 1 << 2,
  kAntiAliasing_Flag = 1 << 3
}
 
enum  EmbedderTestContextType {
  EmbedderTestContextType::kSoftwareContext,
  EmbedderTestContextType::kOpenGLContext,
  EmbedderTestContextType::kMetalContext,
  EmbedderTestContextType::kVulkanContext
}
 
enum  WmFieldExtended {
  kNotExtended = 0,
  kExtended = 1
}
 
enum  WmFieldContext {
  kNoContext = 0,
  kAltHeld = 1
}
 
enum  WmFieldPrevState {
  kWasUp = 0,
  kWasDown = 1
}
 
enum  WmFieldTransitionState {
  kBeingReleased = 0,
  kBeingPressed = 1
}
 
enum  DebuggerStatus {
  DebuggerStatus::kDontKnow,
  DebuggerStatus::kAttached
}
 
enum  MemsetPatternOp {
  MemsetPatternOp::kMemsetPatternOpSetBuffer,
  MemsetPatternOp::kMemsetPatternOpCheckBuffer
}
 

Functions

template<class T >
static void TestEquals (T &source1, T &source2)
 
template<class T >
static void TestNotEquals (T &source1, T &source2, std::string label)
 
std::unique_ptr< CanvasProviderCreateCanvasProvider (BackendType backend_type)
 
SkPaint GetPaintForRun (unsigned attributes)
 
void AnnotateAttributes (unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)
 
void BM_DrawLine (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void BM_DrawRect (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void BM_DrawOval (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void BM_DrawCircle (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void BM_DrawRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, SkRRect::Type type)
 
void BM_DrawDRRect (benchmark::State &state, BackendType backend_type, unsigned attributes, SkRRect::Type type)
 
void BM_DrawArc (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
std::vector< SkPoint > GetPolygonPoints (size_t n, SkPoint center, SkScalar r)
 
void GetLinesPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void GetQuadsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void GetConicsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void GetCubicsPath (SkPath &path, size_t sides, SkPoint center, float radius)
 
void MultiplyPath (SkPath &path, SkPath::Verb type, SkPoint center, size_t sides, size_t number, float radius)
 
std::string VerbToString (SkPath::Verb type)
 
void BM_DrawPath (benchmark::State &state, BackendType backend_type, unsigned attributes, SkPath::Verb type)
 
std::shared_ptr< DlVerticesGetTestVertices (SkPoint center, float radius, size_t vertex_count, DlVertexMode mode, size_t &final_vertex_count)
 
std::string VertexModeToString (DlVertexMode mode)
 
void BM_DrawVertices (benchmark::State &state, BackendType backend_type, unsigned attributes, DlVertexMode mode)
 
std::vector< SkPoint > GetTestPoints (size_t count, SkISize canvas_size)
 
std::string PointModeToString (SkCanvas::PointMode mode)
 
void BM_DrawPoints (benchmark::State &state, BackendType backend_type, unsigned attributes, SkCanvas::PointMode mode)
 
sk_sp< SkImage > ImageFromBitmapWithNewID (const SkBitmap &bitmap)
 
void BM_DrawImage (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, bool upload_bitmap)
 
std::string ConstraintToString (SkCanvas::SrcRectConstraint constraint)
 
void BM_DrawImageRect (benchmark::State &state, BackendType backend_type, unsigned attributes, DlImageSampling options, SkCanvas::SrcRectConstraint constraint, bool upload_bitmap)
 
std::string FilterModeToString (const DlFilterMode mode)
 
void BM_DrawImageNine (benchmark::State &state, BackendType backend_type, unsigned attributes, const DlFilterMode filter, bool upload_bitmap)
 
void BM_DrawTextBlob (benchmark::State &state, BackendType backend_type, unsigned attributes)
 
void BM_DrawShadow (benchmark::State &state, BackendType backend_type, unsigned attributes, bool transparent_occluder, SkPath::Verb type)
 
void BM_SaveLayer (benchmark::State &state, BackendType backend_type, unsigned attributes, size_t save_depth)
 
static void EmptyCvRenderer (SkCanvas *, const SkPaint &)
 
static void EmptyDlRenderer (DisplayListBuilder &)
 
 TEST_F (DisplayListCanvas, DrawPaint)
 
 TEST_F (DisplayListCanvas, DrawColor)
 
 TEST_F (DisplayListCanvas, DrawDiagonalLines)
 
 TEST_F (DisplayListCanvas, DrawHorizontalLine)
 
 TEST_F (DisplayListCanvas, DrawVerticalLine)
 
 TEST_F (DisplayListCanvas, DrawRect)
 
 TEST_F (DisplayListCanvas, DrawOval)
 
 TEST_F (DisplayListCanvas, DrawCircle)
 
 TEST_F (DisplayListCanvas, DrawRRect)
 
 TEST_F (DisplayListCanvas, DrawDRRect)
 
 TEST_F (DisplayListCanvas, DrawPath)
 
 TEST_F (DisplayListCanvas, DrawArc)
 
 TEST_F (DisplayListCanvas, DrawArcCenter)
 
 TEST_F (DisplayListCanvas, DrawPointsAsPoints)
 
 TEST_F (DisplayListCanvas, DrawPointsAsLines)
 
 TEST_F (DisplayListCanvas, DrawPointsAsPolygon)
 
 TEST_F (DisplayListCanvas, DrawVerticesWithColors)
 
 TEST_F (DisplayListCanvas, DrawVerticesWithImage)
 
 TEST_F (DisplayListCanvas, DrawImageNearest)
 
 TEST_F (DisplayListCanvas, DrawImageNearestNoPaint)
 
 TEST_F (DisplayListCanvas, DrawImageLinear)
 
 TEST_F (DisplayListCanvas, DrawImageRectNearest)
 
 TEST_F (DisplayListCanvas, DrawImageRectNearestNoPaint)
 
 TEST_F (DisplayListCanvas, DrawImageRectLinear)
 
 TEST_F (DisplayListCanvas, DrawImageNineNearest)
 
 TEST_F (DisplayListCanvas, DrawImageNineNearestNoPaint)
 
 TEST_F (DisplayListCanvas, DrawImageNineLinear)
 
 TEST_F (DisplayListCanvas, DrawImageLatticeNearest)
 
 TEST_F (DisplayListCanvas, DrawImageLatticeNearestNoPaint)
 
 TEST_F (DisplayListCanvas, DrawImageLatticeLinear)
 
 TEST_F (DisplayListCanvas, DrawAtlasNearest)
 
 TEST_F (DisplayListCanvas, DrawAtlasNearestNoPaint)
 
 TEST_F (DisplayListCanvas, DrawAtlasLinear)
 
sk_sp< SkPicture > makeTestPicture ()
 
 TEST_F (DisplayListCanvas, DrawPicture)
 
 TEST_F (DisplayListCanvas, DrawPictureWithMatrix)
 
 TEST_F (DisplayListCanvas, DrawPictureWithPaint)
 
sk_sp< DisplayListmakeTestDisplayList ()
 
 TEST_F (DisplayListCanvas, DrawDisplayList)
 
 TEST_F (DisplayListCanvas, DrawTextBlob)
 
 TEST_F (DisplayListCanvas, DrawShadow)
 
 TEST_F (DisplayListCanvas, DrawShadowTransparentOccluder)
 
 TEST_F (DisplayListCanvas, DrawShadowDpr)
 
 TEST (DisplayListColorFilter, BuilderSetGet)
 
 TEST (DisplayListColorFilter, FromSkiaNullFilter)
 
 TEST (DisplayListColorFilter, FromSkiaBlendFilter)
 
 TEST (DisplayListColorFilter, FromSkiaMatrixFilter)
 
 TEST (DisplayListColorFilter, FromSkiaSrgbToLinearFilter)
 
 TEST (DisplayListColorFilter, FromSkiaLinearToSrgbFilter)
 
 TEST (DisplayListColorFilter, FromSkiaUnrecognizedFilter)
 
 TEST (DisplayListColorFilter, BlendConstructor)
 
 TEST (DisplayListColorFilter, BlendShared)
 
 TEST (DisplayListColorFilter, BlendAsBlend)
 
 TEST (DisplayListColorFilter, BlendContents)
 
 TEST (DisplayListColorFilter, BlendEquals)
 
 TEST (DisplayListColorFilter, BlendNotEquals)
 
 TEST (DisplayListColorFilter, NopBlendShouldNotCrash)
 
 TEST (DisplayListColorFilter, MatrixConstructor)
 
 TEST (DisplayListColorFilter, MatrixShared)
 
 TEST (DisplayListColorFilter, MatrixAsMatrix)
 
 TEST (DisplayListColorFilter, MatrixContents)
 
 TEST (DisplayListColorFilter, MatrixEquals)
 
 TEST (DisplayListColorFilter, MatrixNotEquals)
 
 TEST (DisplayListColorFilter, NopMatrixShouldNotCrash)
 
 TEST (DisplayListColorFilter, SrgbToLinearConstructor)
 
 TEST (DisplayListColorFilter, SrgbToLinearShared)
 
 TEST (DisplayListColorFilter, SrgbToLinearEquals)
 
 TEST (DisplayListColorFilter, LinearToSrgbConstructor)
 
 TEST (DisplayListColorFilter, LinearToSrgbShared)
 
 TEST (DisplayListColorFilter, LinearToSrgbEquals)
 
 TEST (DisplayListColorFilter, UnknownConstructor)
 
 TEST (DisplayListColorFilter, UnknownShared)
 
 TEST (DisplayListColorFilter, UnknownContents)
 
 TEST (DisplayListColorFilter, UnknownEquals)
 
 TEST (DisplayListColorFilter, UnknownNotEquals)
 
static sk_sp< SkImage > MakeTestImage (int w, int h, SkColor color)
 
 TEST (DisplayListColorSource, BuilderSetGet)
 
 TEST (DisplayListColorSource, FromSkiaNullShader)
 
 TEST (DisplayListColorSource, FromSkiaColorShader)
 
 TEST (DisplayListColorSource, FromSkiaImageShader)
 
 TEST (DisplayListColorSource, FromSkiaLinearGradient)
 
 TEST (DisplayListColorSource, FromSkiaRadialGradient)
 
 TEST (DisplayListColorSource, FromSkiaConicalGradient)
 
 TEST (DisplayListColorSource, FromSkiaSweepGradient)
 
 TEST (DisplayListColorSource, FromSkiaUnrecognizedShader)
 
 TEST (DisplayListColorSource, ColorConstructor)
 
 TEST (DisplayListColorSource, ColorShared)
 
 TEST (DisplayListColorSource, ColorAsColor)
 
 TEST (DisplayListColorSource, ColorContents)
 
 TEST (DisplayListColorSource, ColorEquals)
 
 TEST (DisplayListColorSource, ColorNotEquals)
 
 TEST (DisplayListColorSource, ImageConstructor)
 
 TEST (DisplayListColorSource, ImageShared)
 
 TEST (DisplayListColorSource, ImageAsImage)
 
 TEST (DisplayListColorSource, ImageContents)
 
 TEST (DisplayListColorSource, AlphaImageContents)
 
 TEST (DisplayListColorSource, ImageEquals)
 
 TEST (DisplayListColorSource, ImageNotEquals)
 
 TEST (DisplayListColorSource, LinearGradientConstructor)
 
 TEST (DisplayListColorSource, LinearGradientShared)
 
 TEST (DisplayListColorSource, LinearGradientAsLinear)
 
 TEST (DisplayListColorSource, LinearGradientContents)
 
 TEST (DisplayListColorSource, AlphaLinearGradientContents)
 
 TEST (DisplayListColorSource, LinearGradientEquals)
 
 TEST (DisplayListColorSource, LinearGradientNotEquals)
 
 TEST (DisplayListColorSource, RadialGradientConstructor)
 
 TEST (DisplayListColorSource, RadialGradientShared)
 
 TEST (DisplayListColorSource, RadialGradientAsRadial)
 
 TEST (DisplayListColorSource, RadialGradientContents)
 
 TEST (DisplayListColorSource, AlphaRadialGradientContents)
 
 TEST (DisplayListColorSource, RadialGradientEquals)
 
 TEST (DisplayListColorSource, RadialGradientNotEquals)
 
 TEST (DisplayListColorSource, ConicalGradientConstructor)
 
 TEST (DisplayListColorSource, ConicalGradientShared)
 
 TEST (DisplayListColorSource, ConicalGradientAsConical)
 
 TEST (DisplayListColorSource, ConicalGradientContents)
 
 TEST (DisplayListColorSource, AlphaConicalGradientContents)
 
 TEST (DisplayListColorSource, ConicalGradientEquals)
 
 TEST (DisplayListColorSource, ConicalGradientNotEquals)
 
 TEST (DisplayListColorSource, SweepGradientConstructor)
 
 TEST (DisplayListColorSource, SweepGradientShared)
 
 TEST (DisplayListColorSource, SweepGradientAsSweep)
 
 TEST (DisplayListColorSource, SweepGradientContents)
 
 TEST (DisplayListColorSource, AlphaSweepGradientContents)
 
 TEST (DisplayListColorSource, SweepGradientEquals)
 
 TEST (DisplayListColorSource, SweepGradientNotEquals)
 
 TEST (DisplayListColorSource, UnknownConstructor)
 
 TEST (DisplayListColorSource, UnknownShared)
 
 TEST (DisplayListColorSource, UnknownAsNone)
 
 TEST (DisplayListColorSource, UnknownContents)
 
 TEST (DisplayListColorSource, AlphaUnknownContents)
 
 TEST (DisplayListColorSource, UnknownEquals)
 
 TEST (DisplayListColorSource, UnknownNotEquals)
 
static void arraysEqual (const uint32_t *ints, const DlColor *colors, int count)
 
 TEST (DisplayListColor, ArrayInterchangeableWithUint32)
 
 TEST (DisplayListColor, DlColorDirectlyComparesToSkColor)
 
 TEST (DisplayListComplexity, EmptyDisplayList)
 
 TEST (DisplayListComplexity, DisplayListCeiling)
 
 TEST (DisplayListComplexity, NestedDisplayList)
 
 TEST (DisplayListComplexity, AntiAliasing)
 
 TEST (DisplayListComplexity, StrokeWidth)
 
 TEST (DisplayListComplexity, Style)
 
 TEST (DisplayListComplexity, SaveLayers)
 
 TEST (DisplayListComplexity, DrawPath)
 
 TEST (DisplayListComplexity, DrawShadow)
 
 TEST (DisplayListComplexity, DrawOval)
 
 TEST (DisplayListComplexity, DrawCircle)
 
 TEST (DisplayListComplexity, DrawRRect)
 
 TEST (DisplayListComplexity, DrawDRRect)
 
 TEST (DisplayListComplexity, DrawArc)
 
 TEST (DisplayListComplexity, DrawVertices)
 
 TEST (DisplayListComplexity, DrawTextBlob)
 
 TEST (DisplayListComplexity, DrawPoints)
 
 TEST (DisplayListComplexity, DrawImage)
 
 TEST (DisplayListComplexity, DrawImageNine)
 
 TEST (DisplayListComplexity, DrawImageRect)
 
 TEST (DisplayListComplexity, DrawAtlas)
 
 TEST (DisplayListEnum, ToDlTileMode)
 
 TEST (DisplayListEnum, ToSkTileMode)
 
 TEST (DisplayListEnum, ToDlDrawStyle)
 
 TEST (DisplayListEnum, ToSkDrawStyle)
 
 TEST (DisplayListEnum, ToDlStrokeCap)
 
 TEST (DisplayListEnum, ToSkStrokeCap)
 
 TEST (DisplayListEnum, ToDlStrokeJoin)
 
 TEST (DisplayListEnum, ToSkStrokeJoin)
 
 TEST (DisplayListEnum, ToDlVertexMode)
 
 TEST (DisplayListEnum, ToSkVertexMode)
 
 TEST (DisplayListEnum, ToDlFilterMode)
 
 TEST (DisplayListEnum, ToSkFilterMode)
 
 TEST (DisplayListEnum, ToDlImageSampling)
 
 TEST (DisplayListEnum, ToSkSamplingOptions)
 
 TEST (DisplayListEnum, ToDlBlendMode)
 
 TEST (DisplayListEnum, ToSkBlendMode)
 
 TEST (DisplayListImageFilter, BuilderSetGet)
 
 TEST (DisplayListImageFilter, FromSkiaNullFilter)
 
 TEST (DisplayListImageFilter, FromSkiaBlurImageFilter)
 
 TEST (DisplayListImageFilter, FromSkiaDilateImageFilter)
 
 TEST (DisplayListImageFilter, FromSkiaErodeImageFilter)
 
 TEST (DisplayListImageFilter, FromSkiaMatrixImageFilter)
 
 TEST (DisplayListImageFilter, FromSkiaComposeImageFilter)
 
 TEST (DisplayListImageFilter, FromSkiaColorFilterImageFilter)
 
 TEST (DisplayListImageFilter, BlurConstructor)
 
 TEST (DisplayListImageFilter, BlurShared)
 
 TEST (DisplayListImageFilter, BlurAsBlur)
 
 TEST (DisplayListImageFilter, BlurContents)
 
 TEST (DisplayListImageFilter, BlurEquals)
 
 TEST (DisplayListImageFilter, BlurNotEquals)
 
 TEST (DisplayListImageFilter, DilateConstructor)
 
 TEST (DisplayListImageFilter, DilateShared)
 
 TEST (DisplayListImageFilter, DilateAsDilate)
 
 TEST (DisplayListImageFilter, DilateContents)
 
 TEST (DisplayListImageFilter, DilateEquals)
 
 TEST (DisplayListImageFilter, DilateNotEquals)
 
 TEST (DisplayListImageFilter, ErodeConstructor)
 
 TEST (DisplayListImageFilter, ErodeShared)
 
 TEST (DisplayListImageFilter, ErodeAsErode)
 
 TEST (DisplayListImageFilter, ErodeContents)
 
 TEST (DisplayListImageFilter, ErodeEquals)
 
 TEST (DisplayListImageFilter, ErodeNotEquals)
 
 TEST (DisplayListImageFilter, MatrixConstructor)
 
 TEST (DisplayListImageFilter, MatrixShared)
 
 TEST (DisplayListImageFilter, MatrixAsMatrix)
 
 TEST (DisplayListImageFilter, MatrixContents)
 
 TEST (DisplayListImageFilter, MatrixEquals)
 
 TEST (DisplayListImageFilter, MatrixNotEquals)
 
 TEST (DisplayListImageFilter, ComposeConstructor)
 
 TEST (DisplayListImageFilter, ComposeShared)
 
 TEST (DisplayListImageFilter, ComposeAsCompose)
 
 TEST (DisplayListImageFilter, ComposeContents)
 
 TEST (DisplayListImageFilter, ComposeEquals)
 
 TEST (DisplayListImageFilter, ComposeNotEquals)
 
 TEST (DisplayListImageFilter, ColorFilterConstructor)
 
 TEST (DisplayListImageFilter, ColorFilterShared)
 
 TEST (DisplayListImageFilter, ColorFilterAsColorFilter)
 
 TEST (DisplayListImageFilter, ColorFilterContents)
 
 TEST (DisplayListImageFilter, ColorFilterEquals)
 
 TEST (DisplayListImageFilter, ColorFilterNotEquals)
 
 TEST (DisplayListImageFilter, UnknownConstructor)
 
 TEST (DisplayListImageFilter, UnknownShared)
 
 TEST (DisplayListImageFilter, UnknownContents)
 
 TEST (DisplayListImageFilter, UnknownEquals)
 
 TEST (DisplayListImageFilter, UnknownNotEquals)
 
 TEST (DisplayListMaskFilter, BuilderSetGet)
 
 TEST (DisplayListMaskFilter, FromSkiaNullFilter)
 
 TEST (DisplayListMaskFilter, FromSkiaBlurFilter)
 
 TEST (DisplayListMaskFilter, BlurConstructor)
 
 TEST (DisplayListMaskFilter, BlurShared)
 
 TEST (DisplayListMaskFilter, BlurAsBlur)
 
 TEST (DisplayListMaskFilter, BlurContents)
 
 TEST (DisplayListMaskFilter, BlurEquals)
 
 TEST (DisplayListMaskFilter, BlurNotEquals)
 
 TEST (DisplayListMaskFilter, UnknownConstructor)
 
 TEST (DisplayListMaskFilter, UnknownShared)
 
 TEST (DisplayListMaskFilter, UnknownContents)
 
 TEST (DisplayListMaskFilter, UnknownEquals)
 
 TEST (DisplayListMaskFilter, UnknownNotEquals)
 
void testEquals (DlMaskFilter *a, DlMaskFilter *b)
 
void testNotEquals (DlMaskFilter *a, DlMaskFilter *b)
 
void testEquals (std::shared_ptr< const DlMaskFilter > a, DlMaskFilter *b)
 
void testNotEquals (std::shared_ptr< const DlMaskFilter > a, DlMaskFilter *b)
 
void testEquals (std::shared_ptr< const DlMaskFilter > a, std::shared_ptr< const DlMaskFilter > b)
 
void testNotEquals (std::shared_ptr< const DlMaskFilter > a, std::shared_ptr< const DlMaskFilter > b)
 
 TEST (DisplayListMaskFilter, ComparableTemplates)
 
 TEST (DisplayListPaint, ConstructorDefaults)
 
 TEST (DisplayListPaint, NullPointerSetGet)
 
 TEST (DisplayListPaint, NullSharedPointerSetGet)
 
 TEST (DisplayListPaint, ChainingConstructor)
 
 TEST (DisplayListPathEffect, BuilderSetGet)
 
 TEST (DisplayListPathEffect, FromSkiaNullPathEffect)
 
 TEST (DisplayListPathEffect, FromSkiaPathEffect)
 
 TEST (DisplayListPathEffect, EffectShared)
 
 TEST (DisplayListPathEffect, DashEffectAsDash)
 
 TEST (DisplayListPathEffect, DashEffectEquals)
 
 TEST (DisplayListPathEffect, CheckEffectProperties)
 
 TEST (DisplayListPathEffect, UnknownConstructor)
 
 TEST (DisplayListPathEffect, UnknownShared)
 
 TEST (DisplayListPathEffect, UnknownContents)
 
 TEST (DisplayListPathEffect, UnknownEquals)
 
 TEST (DisplayListPathEffect, UnknownNotEquals)
 
sk_sp< DisplayListGetSampleDisplayList ()
 
sk_sp< DisplayListGetSampleNestedDisplayList ()
 
sk_sp< DisplayListGetSampleDisplayList (int ops)
 
std::vector< uint32_t > color_vector (kColors, kColors+3)
 
std::vector< float > stops_vector (kStops, kStops+3)
 
static sk_sp< DlImageMakeTestImage (int w, int h, int checker_size)
 
static const DlImageColorSource kTestSource1 (TestImage1->skia_image(), DlTileMode::kClamp, DlTileMode::kMirror, kLinearSampling)
 
static sk_sp< SkPicture > MakeTestPicture (int w, int h, SkColor color)
 
static sk_sp< DisplayListMakeTestDisplayList (int w, int h, SkColor color)
 
static sk_sp< SkTextBlob > MakeTextBlob (std::string string)
 
 TEST (DisplayList, SingleOpSizes)
 
 TEST (DisplayList, SingleOpDisplayListsNotEqualEmpty)
 
 TEST (DisplayList, SingleOpDisplayListsRecapturedAreEqual)
 
 TEST (DisplayList, SingleOpDisplayListsRecapturedViaSkCanvasAreEqual)
 
 TEST (DisplayList, SingleOpDisplayListsCompareToEachOther)
 
 TEST (DisplayList, FullRotationsAreNop)
 
 TEST (DisplayList, AllBlendModeNops)
 
static sk_sp< DisplayListBuild (size_t g_index, size_t v_index)
 
 TEST (DisplayList, DisplayListsWithVaryingOpComparisons)
 
 TEST (DisplayList, DisplayListSaveLayerBoundsWithAlphaFilter)
 
 TEST (DisplayList, NestedOpCountMetricsSameAsSkPicture)
 
 TEST (DisplayList, DisplayListBlenderRefHandling)
 
 TEST (DisplayList, DisplayListFullPerspectiveTransformHandling)
 
 TEST (DisplayList, DisplayListTransformResetHandling)
 
 TEST (DisplayList, SingleOpsMightSupportGroupOpacityWithOrWithoutBlendMode)
 
 TEST (DisplayList, OverlappingOpsDoNotSupportGroupOpacity)
 
 TEST (DisplayList, SaveLayerFalseSupportsGroupOpacityWithOverlappingChidren)
 
 TEST (DisplayList, SaveLayerTrueSupportsGroupOpacityWithOverlappingChidren)
 
 TEST (DisplayList, SaveLayerFalseWithSrcBlendSupportsGroupOpacity)
 
 TEST (DisplayList, SaveLayerTrueWithSrcBlendDoesNotSupportGroupOpacity)
 
 TEST (DisplayList, SaveLayerFalseSupportsGroupOpacityWithChildSrcBlend)
 
 TEST (DisplayList, SaveLayerTrueSupportsGroupOpacityWithChildSrcBlend)
 
 TEST (DisplayList, SaveLayerBoundsSnapshotsImageFilter)
 
 TEST (DisplayList, SaveLayerOneSimpleOpSupportsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerNoAttributesSupportsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerTwoOverlappingOpsPreventsOpacityOptimization)
 
 TEST (DisplayList, NestedSaveLayersMightSupportOpacityOptimization)
 
 TEST (DisplayList, NestedSaveLayersCanBothSupportOpacityOptimization)
 
 TEST (DisplayList, SaveLayerImageFilterPreventsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerColorFilterPreventsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerSrcBlendPreventsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerImageFilterOnChildSupportsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerColorFilterOnChildPreventsOpacityOptimization)
 
 TEST (DisplayList, SaveLayerSrcBlendOnChildPreventsOpacityOptimization)
 
 TEST (DisplayList, FlutterSvgIssue661BoundsWereEmpty)
 
 TEST (DisplayList, TranslateAffectsCurrentTransform)
 
 TEST (DisplayList, ScaleAffectsCurrentTransform)
 
 TEST (DisplayList, RotateAffectsCurrentTransform)
 
 TEST (DisplayList, SkewAffectsCurrentTransform)
 
 TEST (DisplayList, TransformAffectsCurrentTransform)
 
 TEST (DisplayList, FullTransformAffectsCurrentTransform)
 
 TEST (DisplayList, ClipRectAffectsClipBounds)
 
 TEST (DisplayList, ClipRRectAffectsClipBounds)
 
 TEST (DisplayList, ClipPathAffectsClipBounds)
 
 TEST (DisplayList, DiffClipRectDoesNotAffectClipBounds)
 
 TEST (DisplayList, DiffClipRRectDoesNotAffectClipBounds)
 
 TEST (DisplayList, DiffClipPathDoesNotAffectClipBounds)
 
 TEST (DisplayListUtils, OverRestore)
 
 TEST (DisplayListVertices, MakeWithZeroAndNegativeVerticesAndIndices)
 
 TEST (DisplayListVertices, MakeWithTexAndColorAndIndices)
 
 TEST (DisplayListVertices, MakeWithTexAndColor)
 
 TEST (DisplayListVertices, MakeWithTexAndIndices)
 
 TEST (DisplayListVertices, MakeWithColorAndIndices)
 
 TEST (DisplayListVertices, MakeWithTex)
 
 TEST (DisplayListVertices, MakeWithColor)
 
 TEST (DisplayListVertices, MakeWithIndices)
 
 TEST (DisplayListVertices, MakeWithNoOptionalData)
 
 TEST (DisplayListVertices, MakeWithIndicesButZeroIndexCount)
 
 TEST (DisplayListVertices, MakeWithIndicesButNegativeIndexCount)
 
 TEST (DisplayListVertices, BuilderFlags)
 
 TEST (DisplayListVertices, BuildWithZeroAndNegativeVerticesAndIndices)
 
 TEST (DisplayListVertices, BuildWithTexAndColorAndIndices)
 
 TEST (DisplayListVertices, BuildWithTexAndColor)
 
 TEST (DisplayListVertices, BuildWithTexAndIndices)
 
 TEST (DisplayListVertices, BuildWithColorAndIndices)
 
 TEST (DisplayListVertices, BuildWithTexUsingPoints)
 
 TEST (DisplayListVertices, BuildWithTexUsingFloats)
 
 TEST (DisplayListVertices, BuildUsingFloatsSameAsPoints)
 
 TEST (DisplayListVertices, BuildWithColor)
 
 TEST (DisplayListVertices, BuildWithIndices)
 
 TEST (DisplayListVertices, BuildWithNoOptionalData)
 
 TEST (DisplayListVertices, BuildWithNegativeIndexCount)
 
 TEST (DisplayListVertices, TestEquals)
 
 TEST (DisplayListVertices, TestNotEquals)
 
 TEST_F (DiffContextTest, ClipAlignment)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithNoMutations)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithScale)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithTranslate)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithRotation90)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithRotation45)
 
 TEST (EmbeddedViewParams, GetBoundingRectAfterMutationsWithTranslateScaleAndRotation)
 
 TEST (FrameTimingsRecorderTest, RecordVsync)
 
 TEST (FrameTimingsRecorderTest, RecordBuildTimes)
 
 TEST (FrameTimingsRecorderTest, RecordRasterTimes)
 
 TEST (FrameTimingsRecorderTest, RecordRasterTimesWithCache)
 
 TEST (FrameTimingsRecorderTest, ThrowWhenRecordBuildBeforeVsync)
 
 TEST (FrameTimingsRecorderTest, ThrowWhenRecordRasterBeforeBuildEnd)
 
 TEST (FrameTimingsRecorderTest, RecordersHaveUniqueFrameNumbers)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameFrameNumber)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameVsyncStartAndTarget)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameBuildStart)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameBuildEnd)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameRasterStart)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameRasterEnd)
 
 TEST (FrameTimingsRecorderTest, ClonedHasSameRasterEndWithCache)
 
 TEST (FrameTimingsRecorderTest, FrameNumberTraceArgIsValid)
 
 TEST (GLContextSwitchTest, SwitchKeepsContextCurrentWhileInScope)
 
 TEST (Instrumentation, GetDefaultFrameBudgetTest)
 
 TEST (Instrumentation, GetOneShotFrameBudgetTest)
 
 TEST (Instrumentation, GetFrameBudgetFromUpdaterTest)
 
 TEST_F (BackdropFilterLayerTest, PaintingEmptyLayerDies)
 
 TEST_F (BackdropFilterLayerTest, PaintBeforePrerollDies)
 
 TEST_F (BackdropFilterLayerTest, EmptyFilter)
 
 TEST_F (BackdropFilterLayerTest, SimpleFilter)
 
 TEST_F (BackdropFilterLayerTest, NonSrcOverBlend)
 
 TEST_F (BackdropFilterLayerTest, MultipleChildren)
 
 TEST_F (BackdropFilterLayerTest, Nested)
 
 TEST_F (BackdropFilterLayerTest, Readback)
 
 TEST_F (BackdropLayerDiffTest, BackdropLayer)
 
 TEST_F (BackdropLayerDiffTest, BackdropLayerInvalidTransform)
 
 TEST_F (CheckerBoardLayerTest, ClipRectSaveLayerNotCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, ClipRectSaveLayerCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, ClipPathSaveLayerNotCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, ClipPathSaveLayerCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, ClipRRectSaveLayerNotCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, ClipRRectSaveLayerCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, PhysicalSaveLayerNotCheckBoard)
 
 TEST_F (CheckerBoardLayerTest, PhysicalSaveLayerCheckBoard)
 
 TEST_F (ClipPathLayerTest, ClipNoneBehaviorDies)
 
 TEST_F (ClipPathLayerTest, PaintingCulledLayerDies)
 
 TEST_F (ClipPathLayerTest, ChildOutsideBounds)
 
 TEST_F (ClipPathLayerTest, FullyContainedChild)
 
 TEST_F (ClipPathLayerTest, PartiallyContainedChild)
 
static bool ReadbackResult (PrerollContext *context, Clip clip_behavior, std::shared_ptr< Layer > child, bool before)
 
 TEST_F (ClipPathLayerTest, OpacityInheritance)
 
 TEST_F (ClipPathLayerTest, OpacityInheritancePainting)
 
 TEST_F (ClipPathLayerTest, OpacityInheritanceSaveLayerPainting)
 
 TEST_F (ClipPathLayerTest, LayerCached)
 
static bool ReadbackResult (PrerollContext *context, Clip clip_behavior, std::shared_ptr< Layer > child, bool before)
 
static bool ReadbackResult (PrerollContext *context, Clip clip_behavior, std::shared_ptr< Layer > child, bool before)
 
 TEST_F (ColorFilterLayerTest, CacheChild)
 
 TEST_F (ColorFilterLayerTest, CacheChildren)
 
 TEST_F (ContainerLayerTest, LayerWithParentHasPlatformView)
 
 TEST_F (ContainerLayerTest, Simple)
 
 TEST_F (ContainerLayerTest, Multiple)
 
 TEST_F (ContainerLayerTest, MultipleWithEmpty)
 
 TEST_F (ContainerLayerTest, NeedsSystemComposite)
 
 TEST_F (ContainerLayerDiffTest, PictureLayerInsertion)
 
 TEST_F (ContainerLayerDiffTest, PictureInsertion)
 
 TEST_F (ContainerLayerDiffTest, LayerDeletion)
 
 TEST_F (ContainerLayerDiffTest, ReplaceLayer)
 
 TEST_F (DisplayListLayerTest, PaintBeforePrerollInvalidDisplayListDies)
 
 TEST_F (DisplayListLayerTest, PaintBeforePrerollDies)
 
 TEST_F (DisplayListLayerTest, PaintingEmptyLayerDies)
 
 TEST_F (DisplayListLayerTest, InvalidDisplayListDies)
 
 TEST_F (DisplayListLayerTest, SimpleDisplayList)
 
 TEST_F (DisplayListLayerTest, SimpleDisplayListOpacityInheritance)
 
 TEST_F (DisplayListLayerTest, IncompatibleDisplayListOpacityInheritance)
 
 TEST_F (DisplayListLayerTest, CachedIncompatibleDisplayListOpacityInheritance)
 
 TEST_F (DisplayListLayerDiffTest, SimpleDisplayList)
 
 TEST_F (DisplayListLayerDiffTest, FractionalTranslation)
 
 TEST_F (DisplayListLayerDiffTest, DisplayListCompare)
 
 TEST_F (DisplayListLayerTest, LayerTreeSnapshotsWhenEnabled)
 
 TEST_F (DisplayListLayerTest, NoLayerTreeSnapshotsWhenDisabledByDefault)
 
 TEST_F (ImageFilterLayerTest, SimpleFilterBounds)
 
 TEST_F (ImageFilterLayerDiffTest, ImageFilterLayer)
 
 TEST_F (ImageFilterLayerDiffTest, ImageFilterLayerInflatestChildSize)
 
 TEST_F (LayerTreeTest, PaintingEmptyLayerDies)
 
 TEST_F (LayerTreeTest, PaintBeforePrerollDies)
 
 TEST_F (LayerTreeTest, Simple)
 
 TEST_F (LayerTreeTest, Multiple)
 
 TEST_F (LayerTreeTest, MultipleWithEmpty)
 
 TEST_F (LayerTreeTest, NeedsSystemComposite)
 
 TEST_F (LayerTreeTest, PrerollContextInitialization)
 
 TEST_F (LayerTreeTest, PaintContextInitialization)
 
 TEST (OffscreenSurfaceTest, EmptySurfaceIsInvalid)
 
 TEST (OffscreenSurfaceTest, OnexOneSurfaceIsValid)
 
 TEST (OffscreenSurfaceTest, PaintSurfaceBlack)
 
 TEST_F (OpacityLayerTest, LeafLayer)
 
 TEST_F (OpacityLayerTest, TranslateChildren)
 
 TEST_F (OpacityLayerTest, FullyOpaque)
 
 TEST_F (OpacityLayerTest, FullyTransparent)
 
 TEST_F (OpacityLayerTest, HalfTransparent)
 
 TEST_F (OpacityLayerTest, CullRectIsTransformed)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceCompatibleChild)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceIncompatibleChild)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceThroughContainer)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceThroughTransform)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceThroughImageFilter)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceNestedWithCompatibleChild)
 
 TEST_F (OpacityLayerTest, OpacityInheritanceNestedWithIncompatibleChild)
 
 TEST_F (PerformanceOverlayLayerTest, InvalidOptions)
 
 TEST_F (PerformanceOverlayLayerTest, SimpleRasterizerStatistics)
 
 TEST_F (PerformanceOverlayLayerTest, MarkAsDirtyWhenResized)
 
 TEST (PerformanceOverlayLayerDefault, Gold)
 
 TEST (PerformanceOverlayLayer90fps, Gold)
 
 TEST (PerformanceOverlayLayer120fps, Gold)
 
 TEST_F (PhysicalShapeLayerTest, NonEmptyLayer)
 
 TEST_F (PhysicalShapeLayerTest, ChildrenLargerThanPathClip)
 
 TEST_F (PhysicalShapeLayerTest, ChildrenLargerThanPathNoClip)
 
 TEST_F (PhysicalShapeLayerTest, ElevationSimple)
 
 TEST_F (PhysicalShapeLayerTest, ElevationComplex)
 
 TEST_F (PhysicalShapeLayerTest, ShadowNotDependsCtm)
 
static int RasterizedDifferenceInPixels (const std::function< void(SkCanvas *)> &actual_draw_function, const std::function< void(SkCanvas *)> &expected_draw_function, const SkSize &canvas_size)
 
 TEST_F (PhysicalShapeLayerTest, ShadowNotDependsPathSize)
 
static bool ReadbackResult (PrerollContext *context, Clip clip_behavior, std::shared_ptr< Layer > child, bool before)
 
 TEST_F (PhysicalShapeLayerDiffTest, NoClipPaintRegion)
 
 TEST_F (PhysicalShapeLayerDiffTest, ClipPaintRegion)
 
 TEST_F (PlatformViewLayerTest, NullViewEmbedderDoesntPrerollCompositeOrPaint)
 
 TEST_F (PlatformViewLayerTest, ClippedPlatformViewPrerollsAndPaintsNothing)
 
 TEST_F (TextureLayerTest, InvalidTexture)
 
 TEST_F (TextureLayerTest, PaintingWithLinearSampling)
 
 TEST_F (TextureLayerDiffTest, TextureInRetainedLayer)
 
 TEST_F (TransformLayerTest, Identity)
 
 TEST_F (TransformLayerTest, NestedSeparated)
 
 TEST_F (TransformLayerLayerDiffTest, Transform)
 
 TEST_F (TransformLayerLayerDiffTest, TransformNested)
 
 TEST (MutatorsStack, Initialization)
 
 TEST (MutatorsStack, CopyConstructor)
 
 TEST (MutatorsStack, CopyAndUpdateTheCopy)
 
 TEST (MutatorsStack, PushClipRect)
 
 TEST (MutatorsStack, PushClipRRect)
 
 TEST (MutatorsStack, PushClipPath)
 
 TEST (MutatorsStack, PushTransform)
 
 TEST (MutatorsStack, PushOpacity)
 
 TEST (MutatorsStack, Pop)
 
 TEST (MutatorsStack, Traversal)
 
 TEST (MutatorsStack, Equality)
 
 TEST (Mutator, Initialization)
 
 TEST (Mutator, CopyConstructor)
 
 TEST (Mutator, Equality)
 
 TEST (Mutator, UnEquality)
 
 TEST (RasterCache, SimpleInitialization)
 
 TEST (RasterCache, MetricsOmitUnpopulatedEntries)
 
 TEST (RasterCache, ThresholdIsRespectedForDisplayList)
 
 TEST (RasterCache, AccessThresholdOfZeroDisablesCachingForDisplayList)
 
 TEST (RasterCache, PictureCacheLimitPerFrameIsRespectedWhenZeroForDisplayList)
 
 TEST (RasterCache, SweepsRemoveUnusedDisplayLists)
 
 TEST (RasterCache, ComputeDeviceRectBasedOnFractionalTranslation)
 
 TEST (RasterCache, DeviceRectRoundOutForDisplayList)
 
 TEST (RasterCache, NestedOpCountMetricUsedForDisplayList)
 
 TEST (RasterCache, NaiveComplexityScoringDisplayList)
 
 TEST (RasterCache, DisplayListWithSingularMatrixIsNotCached)
 
 TEST (RasterCache, RasterCacheKeyHashFunction)
 
 TEST (RasterCache, RasterCacheKeySameID)
 
 TEST (RasterCache, RasterCacheKeySameType)
 
 TEST (RasterCache, RasterCacheKeyID_Equal)
 
 TEST (RasterCache, RasterCacheKeyID_HashCode)
 
 TEST (RTree, searchNonOverlappingDrawnRectsNoIntersection)
 
 TEST (RTree, searchNonOverlappingDrawnRectsSingleRectIntersection)
 
 TEST (RTree, searchNonOverlappingDrawnRectsIgnoresNonDrawingRecords)
 
 TEST (RTree, searchNonOverlappingDrawnRectsMultipleRectIntersection)
 
 TEST (RTree, searchNonOverlappingDrawnRectsJoinRectsWhenIntersectedCase1)
 
 TEST (RTree, searchNonOverlappingDrawnRectsJoinRectsWhenIntersectedCase2)
 
 TEST (RTree, searchNonOverlappingDrawnRectsJoinRectsWhenIntersectedCase3)
 
 TEST_F (SkiaGpuObjectTest, QueueSimple)
 
 TEST_F (SkiaGpuObjectTest, ObjectDestructor)
 
 TEST_F (SkiaGpuObjectTest, ObjectReset)
 
 TEST_F (SkiaGpuObjectTest, ObjectResetTwice)
 
 TEST_F (SkiaGpuObjectTest, UnrefResourceContextInTaskRunnerThread)
 
 TEST_F (AutoSaveLayerTests, SaveLayerOnInternalNodesCanvasByDefault)
 
 TEST_F (AutoSaveLayerTests, SaveLayerOnlyOnLeafNodesCanvas)
 
 TEST_F (MockLayerTest, SimpleParams)
 
 TEST_F (MockLayerTest, FakePlatformView)
 
 TEST_F (MockLayerTest, SaveLayerOnLeafNodesCanvas)
 
PrerollContextHolder GetSamplePrerollContextHolder ()
 
bool operator== (const MockTexture::PaintCall &a, const MockTexture::PaintCall &b)
 
std::ostream & operator<< (std::ostream &os, const MockTexture::PaintCall &data)
 
 TEST (MockTextureTest, Callbacks)
 
 TEST (MockTextureTest, PaintCalls)
 
 TEST (MockTextureTest, PaintCallsWithLinearSampling)
 
 TEST (TextureRegistryTest, UnregisterTextureCallbackTriggered)
 
 TEST (TextureRegistryTest, GrContextCallbackTriggered)
 
 TEST (TextureRegistryTest, RegisterTextureTwice)
 
 TEST (TextureRegistryTest, ReuseSameTextureSlot)
 
 TEST (MathTest, Constants)
 
 TEST_F (ShellTest, SceneBuilderBuildAndSceneDisposeReleasesLayerStack)
 
 TEST_F (ShellTest, EngineLayerDisposeReleasesReference)
 
 TEST_F (HooksTest, HooksUnitTests)
 
static sk_sp< SkData > OpenFixtureAsSkData (const char *name)
 
 TEST_F (ImageDecoderFixtureTest, CanCreateImageDecoder)
 
 TEST_F (ImageDecoderFixtureTest, InvalidImageResultsError)
 
 TEST_F (ImageDecoderFixtureTest, ValidImageResultsInSuccess)
 
 TEST_F (ImageDecoderFixtureTest, ExifDataIsRespectedOnDecode)
 
 TEST_F (ImageDecoderFixtureTest, CanDecodeWithoutAGPUContext)
 
 TEST_F (ImageDecoderFixtureTest, CanDecodeWithResizes)
 
 TEST_F (ImageDecoderFixtureTest, DISABLED_CanResizeWithoutDecode)
 
 TEST (ImageDecoderTest, VerifyCodecRepeatCountsForGifAndWebPAreConsistentWithLoopCounts)
 
 TEST (ImageDecoderTest, VerifySimpleDecoding)
 
 TEST (ImageDecoderTest, VerifySubpixelDecodingPreservesExifOrientation)
 
 TEST_F (ImageDecoderFixtureTest, MultiFrameCodecCanBeCollectedBeforeIOTasksFinish)
 
 TEST_F (ImageDecoderFixtureTest, MultiFrameCodecDidAccessGpuDisabledSyncSwitch)
 
 TEST_F (ImageDisposeTest, ImageReleasedAfterFrameAndDisposePictureAndLayer)
 
 TEST_F (ShellTest, EncodeImageGivesExternalTypedData)
 
 TEST_F (ShellTest, EncodeImageAccessesSyncSwitch)
 
static sk_sp< SkData > LoadValidImageFixture ()
 
 TEST_F (ShellTest, CreateCompatibleReturnsBuiltinImageGeneratorForValidImage)
 
 TEST_F (ShellTest, CreateCompatibleReturnsNullptrForInvalidImage)
 
 TEST_F (ShellTest, PositivePriorityTakesPrecedentOverDefaultGenerators)
 
 TEST_F (ShellTest, DefaultGeneratorsTakePrecedentOverNegativePriority)
 
 TEST_F (ShellTest, DefaultGeneratorsTakePrecedentOverZeroPriority)
 
 TEST_F (ShellTest, ImageGeneratorsWithSamePriorityCascadeChronologically)
 
 TEST_F (ShellTest, PathVolatilityOldPathsBecomeNonVolatile)
 
 TEST_F (ShellTest, PathVolatilityGCRemovesPathFromTracker)
 
 TEST_F (ShellTest, DeterministicRenderingDisablesPathVolatility)
 
 TEST_F (ShellTest, SingleFrameCodecAccuratelyReportsSize)
 
 TEST_F (ShellTest, VerticesAccuratelyReportsSize)
 
 TEST_F (SemanticsUpdateBuilderTest, CanHandleAttributedStrings)
 
 TEST_F (ShellTest, PlatformConfigurationInitialization)
 
 TEST_F (ShellTest, PlatformConfigurationWindowMetricsUpdate)
 
 TEST_F (ShellTest, PlatformConfigurationOnErrorHandlesError)
 
 TEST_F (ShellTest, PlatformConfigurationOnErrorDoesNotHandleError)
 
 TEST_F (ShellTest, PlatformConfigurationOnErrorThrows)
 
void CreateSimulatedPointerData (PointerData &data, PointerData::Change change, int64_t device, double dx, double dy, int64_t buttons)
 
void CreateSimulatedMousePointerData (PointerData &data, PointerData::Change change, PointerData::SignalKind signal_kind, int64_t device, double dx, double dy, double scroll_delta_x, double scroll_delta_y, int64_t buttons)
 
void CreateSimulatedTrackpadGestureData (PointerData &data, PointerData::Change change, int64_t device, double dx, double dy, double pan_x, double pan_y, double scale, double rotation)
 
void UnpackPointerPacket (std::vector< PointerData > &output, std::unique_ptr< PointerDataPacket > packet)
 
 TEST (PointerDataPacketConverterTest, CanConvetPointerDataPacket)
 
 TEST (PointerDataPacketConverterTest, CanSynthesizeDownAndUp)
 
 TEST (PointerDataPacketConverterTest, CanUpdatePointerIdentifier)
 
 TEST (PointerDataPacketConverterTest, AlwaysForwardMoveEvent)
 
 TEST (PointerDataPacketConverterTest, CanWorkWithDifferentDevices)
 
 TEST (PointerDataPacketConverterTest, CanSynthesizeAdd)
 
 TEST (PointerDataPacketConverterTest, CanHandleThreeFingerGesture)
 
 TEST (PointerDataPacketConverterTest, CanConvetScroll)
 
 TEST (PointerDataPacketConverterTest, CanConvertTrackpadGesture)
 
 TEST_F (DartIsolateTest, RootIsolateCreationAndShutdown)
 
 TEST_F (DartIsolateTest, IsolateShutdownCallbackIsInIsolateScope)
 
 TEST_F (DartIsolateTest, IsolateCanLoadAndRunDartCode)
 
 TEST_F (DartIsolateTest, IsolateCannotLoadAndRunUnknownDartEntrypoint)
 
 TEST_F (DartIsolateTest, CanRunDartCodeCodeSynchronously)
 
 TEST_F (DartIsolateTest, ImpellerFlagIsCorrectWhenTrue)
 
 TEST_F (DartIsolateTest, ImpellerFlagIsCorrectWhenFalse)
 
 TEST_F (DartIsolateTest, CanRegisterNativeCallback)
 
 TEST_F (DartSecondaryIsolateTest, CanLaunchSecondaryIsolates)
 
 TEST_F (IsolateStartupFailureTest, HandlesIsolateInitializationFailureCorrectly)
 
 TEST_F (DartIsolateTest, CanReceiveArguments)
 
 TEST_F (DartIsolateTest, CanCreateServiceIsolate)
 
 TEST_F (DartIsolateTest, RootIsolateCreateCallbackIsMadeOnceAndBeforeIsolateRunning)
 
 TEST_F (DartIsolateTest, IsolateCreateCallbacksTakeInstanceSettingsInsteadOfVMSettings)
 
 TEST_F (DartIsolateTest, InvalidLoadingUnitFails)
 
 TEST_F (DartIsolateTest, DartPluginRegistrantIsCalled)
 
 TEST_F (DartLifecycleTest, CanStartAndShutdownVM)
 
 TEST_F (DartLifecycleTest, CanStartAndShutdownVMOverAndOver)
 
static std::shared_ptr< DartIsolateCreateAndRunRootIsolate (const Settings &settings, const DartVMData &vm, fml::RefPtr< fml::TaskRunner > task_runner, std::string entrypoint)
 
 TEST_F (DartLifecycleTest, DISABLED_ShuttingDownTheVMShutsDownAllIsolates)
 
 TEST_F (DartIsolateTest, DartPluginRegistrantIsPresent)
 
 TEST_F (DartIsolateTest, DartPluginRegistrantFromBackgroundIsolate)
 
 TEST_F (DartIsolateTest, DartPluginRegistrantNotFromBackgroundIsolate)
 
 TEST_F (DartVMTest, SimpleInitialization)
 
 TEST_F (DartVMTest, SimpleIsolateNameServer)
 
 TEST_F (DartVMTest, OldGenHeapSize)
 
 TEST_F (DartVMTest, DisableTimelineEventHandler)
 
 TEST_F (DartVMTest, TraceGetTimelineMicrosDoesNotGetClockWhenSystraceIsEnabled)
 
 TEST_F (DartIsolateTest, DartPluginRegistrantIsNotPresent)
 
 TEST_F (TypeConversionsTest, TestFixture)
 
 TEST_F (TypeConversionsTest, CanConvertEmptyList)
 
 TEST_F (TypeConversionsTest, CanConvertListOfStrings)
 
 TEST_F (TypeConversionsTest, CanConvertListOfDoubles)
 
 TEST_F (TypeConversionsTest, CanConvertListOfInts)
 
 TEST_F (TypeConversionsTest, CanConvertListOfFloatsToListOfDartDoubles)
 
 TEST_F (ShellTest, VSyncTargetTime)
 
 TEST_F (ShellTest, AnimatorDoesNotNotifyIdleBeforeRender)
 
 TEST_F (ShellTest, AnimatorDoesNotNotifyDelegateIfPipelineIsNotEmpty)
 
 TEST (CanvasSpyTest, DrawingIsTracked)
 
 TEST (CanvasSpyTest, SpiedCanvasIsDrawing)
 
 TEST (ContextOptionsTest, OpenGLDisablesStencilBuffers)
 
static void TestSimulatedInputEvents (ShellTest *fixture, int num_events, UnitlessTime base_latency, Generator delivery_time, UnitlessTime frame_time, std::vector< UnitlessTime > &events_consumed_at_frame, bool restart_engine=false)
 
void CreateSimulatedPointerData (PointerData &data, PointerData::Change change, double dx, double dy)
 
 TEST_F (ShellTest, MissAtMostOneFrameForIrregularInputEvents)
 
 TEST_F (ShellTest, DelayAtMostOneEventForFasterThanVSyncInputEvents)
 
 TEST_F (ShellTest, HandlesActualIphoneXsInputEvents)
 
 TEST_F (ShellTest, CanCorrectlyPipePointerPacket)
 
 TEST_F (ShellTest, CanCorrectlySynthesizePointerPacket)
 
static void WaitForIO (Shell *shell)
 
static void WaitForRaster (Shell *shell)
 
 TEST_F (PersistentCacheTest, CacheSkSLWorks)
 
 TEST_F (PersistentCacheTest, CanPrecompileMetalShaders)
 
static void CheckTextSkData (sk_sp< SkData > data, const std::string &expected)
 
static void ResetAssetManager ()
 
static void CheckTwoSkSLsAreLoaded ()
 
 TEST_F (PersistentCacheTest, CanLoadSkSLsFromAsset)
 
 TEST_F (PersistentCacheTest, CanRemoveOldPersistentCache)
 
 TEST_F (PersistentCacheTest, CanPurgePersistentCache)
 
 TEST_F (PersistentCacheTest, PurgeAllowsFutureSkSLCache)
 
 TEST (PipelineTest, ConsumeOneVal)
 
 TEST (PipelineTest, ContinuationCanOnlyBeUsedOnce)
 
 TEST (PipelineTest, PushingMoreThanDepthCompletesFirstSubmission)
 
 TEST (PipelineTest, PushingMultiProcessesInOrder)
 
 TEST (PipelineTest, ProduceIfEmptyDoesNotConsumeWhenQueueIsNotEmpty)
 
 TEST (PipelineTest, ProduceIfEmptySuccessfulIfQueueIsEmpty)
 
 TEST (ResourceCacheLimitCalculatorTest, GetResourceCacheMaxBytes)
 
static bool ValidateShell (Shell *shell)
 
static void RunCoroutineWithRetry (int retries, fml::AutoResetWaitableEvent *tick, fml::AutoResetWaitableEvent *tock, std::function< bool()> f)
 
 TEST_F (FuchsiaShellTest, LocaltimesVaryOnTimezoneChanges)
 
static sk_sp< SkData > OpenFixtureAsSkData (const char *name)
 
 TEST_F (ShellIOManagerTest, ItDoesNotCrashThatSkiaUnrefQueueDrainAfterIOManagerReset)
 
static fml::scoped_nsprotocol< id< MTLTexture > > CreateOffscreenTexture (id< MTLDevice > device)
 
static bool ValidateShell (Shell *shell)
 
static bool RasterizerHasLayerTree (Shell *shell)
 
static void ValidateDestroyPlatformView (Shell *shell)
 
static std::string CreateFlagsString (std::vector< const char *> &flags)
 
static void TestDartVmFlags (std::vector< const char *> &flags)
 
static void PostSync (const fml::RefPtr< fml::TaskRunner > &task_runner, const fml::closure &task)
 
static sk_sp< DisplayListMakeSizedDisplayList (int width, int height)
 
 TEST_F (ShellTest, InitializeWithInvalidThreads)
 
 TEST_F (ShellTest, InitializeWithDifferentThreads)
 
 TEST_F (ShellTest, InitializeWithSingleThread)
 
 TEST_F (ShellTest, InitializeWithSingleThreadWhichIsTheCallingThread)
 
 TEST_F (ShellTest, InitializeWithMultipleThreadButCallingThreadAsPlatformThread)
 
 TEST_F (ShellTest, InitializeWithDisabledGpu)
 
 TEST_F (ShellTest, InitializeWithGPUAndPlatformThreadsTheSame)
 
 TEST_F (ShellTest, FixturesAreFunctional)
 
 TEST_F (ShellTest, SecondaryIsolateBindingsAreSetupViaShellSettings)
 
 TEST_F (ShellTest, LastEntrypoint)
 
 TEST_F (ShellTest, LastEntrypointArgs)
 
 TEST_F (ShellTest, DisallowedDartVMFlag)
 
 TEST_F (ShellTest, AllowedDartVMFlag)
 
 TEST_F (ShellTest, NoNeedToReportTimingsByDefault)
 
 TEST_F (ShellTest, NeedsReportTimingsIsSetWithCallback)
 
static void CheckFrameTimings (const std::vector< FrameTiming > &timings, fml::TimePoint start, fml::TimePoint finish)
 
 TEST_F (ShellTest, ReportTimingsIsCalled)
 
 TEST_F (ShellTest, FrameRasterizedCallbackIsCalled)
 
 TEST_F (ShellTest, ExternalEmbedderNoThreadMerger)
 
 TEST_F (ShellTest, ExternalEmbedderEndFrameIsCalledWhenPostPrerollResultIsResubmit)
 
 TEST_F (ShellTest, OnPlatformViewDestroyDisablesThreadMerger)
 
 TEST_F (ShellTest, OnPlatformViewDestroyAfterMergingThreads)
 
 TEST_F (ShellTest, OnPlatformViewDestroyWhenThreadsAreMerging)
 
 TEST_F (ShellTest, OnPlatformViewDestroyWithThreadMergerWhileThreadsAreUnmerged)
 
 TEST_F (ShellTest, OnPlatformViewDestroyWithoutRasterThreadMerger)
 
 TEST_F (ShellTest, OnPlatformViewDestroyWithStaticThreadMerging)
 
 TEST_F (ShellTest, GetUsedThisFrameShouldBeSetBeforeEndFrame)
 
 TEST_F (ShellTest, DISABLED_SkipAndSubmitFrame)
 
 TEST (SettingsTest, FrameTimingSetsAndGetsProperly)
 
 TEST_F (ShellTest, ReportTimingsIsCalledImmediatelyAfterTheFirstFrame)
 
 TEST_F (ShellTest, ReloadSystemFonts)
 
 TEST_F (ShellTest, WaitForFirstFrame)
 
 TEST_F (ShellTest, WaitForFirstFrameZeroSizeFrame)
 
 TEST_F (ShellTest, WaitForFirstFrameTimeout)
 
 TEST_F (ShellTest, WaitForFirstFrameMultiple)
 
 TEST_F (ShellTest, WaitForFirstFrameInlined)
 
static size_t GetRasterizerResourceCacheBytesSync (const Shell &shell)
 
 TEST_F (ShellTest, MultipleFluttersSetResourceCacheBytes)
 
 TEST_F (ShellTest, SetResourceCacheSize)
 
 TEST_F (ShellTest, SetResourceCacheSizeEarly)
 
 TEST_F (ShellTest, SetResourceCacheSizeNotifiesDart)
 
 TEST_F (ShellTest, CanCreateImagefromDecompressedBytes)
 
 TEST_F (ShellTest, TextureFrameMarkedAvailableAndUnregister)
 
 TEST_F (ShellTest, IsolateCanAccessPersistentIsolateData)
 
 TEST_F (ShellTest, CanScheduleFrameFromPlatform)
 
 TEST_F (ShellTest, SecondaryVsyncCallbackShouldBeCalledAfterVsyncCallback)
 
static void LogSkData (sk_sp< SkData > data, const char *title)
 
 TEST_F (ShellTest, Screenshot)
 
 TEST_F (ShellTest, CanConvertToAndFromMappings)
 
 TEST_F (ShellTest, LocaltimesMatch)
 
 TEST_F (ShellTest, CanDecompressImageFromAsset)
 
 TEST_F (ShellTest, CanRegisterImageDecoders)
 
 TEST_F (ShellTest, OnServiceProtocolGetSkSLsWorks)
 
 TEST_F (ShellTest, RasterizerScreenshot)
 
 TEST_F (ShellTest, RasterizerMakeRasterSnapshot)
 
 TEST_F (ShellTest, OnServiceProtocolEstimateRasterCacheMemoryWorks)
 
 TEST_F (ShellTest, OnServiceProtocolRenderFrameWithRasterStatsWorks)
 
 TEST_F (ShellTest, DISABLED_DiscardLayerTreeOnResize)
 
 TEST_F (ShellTest, DISABLED_DiscardResubmittedLayerTreeOnResize)
 
 TEST_F (ShellTest, IgnoresInvalidMetrics)
 
 TEST_F (ShellTest, OnServiceProtocolSetAssetBundlePathWorks)
 
 TEST_F (ShellTest, EngineRootIsolateLaunchesDontTakeVMDataSettings)
 
 TEST_F (ShellTest, AssetManagerSingle)
 
 TEST_F (ShellTest, AssetManagerMulti)
 
 TEST_F (ShellTest, Spawn)
 
 TEST_F (ShellTest, SpawnWithDartEntrypointArgs)
 
 TEST_F (ShellTest, IOManagerIsSharedBetweenParentAndSpawnedShell)
 
 TEST_F (ShellTest, IOManagerInSpawnedShellIsNotNullAfterParentShellDestroyed)
 
 TEST_F (ShellTest, ImageGeneratorRegistryNotNullAfterParentShellDestroyed)
 
 TEST_F (ShellTest, UpdateAssetResolverByTypeReplaces)
 
 TEST_F (ShellTest, UpdateAssetResolverByTypeAppends)
 
 TEST_F (ShellTest, UpdateAssetResolverByTypeNull)
 
 TEST_F (ShellTest, UpdateAssetResolverByTypeDoesNotReplaceMismatchType)
 
 TEST_F (ShellTest, CanCreateShellsWithGLBackend)
 
 TEST_F (ShellTest, CanCreateShellsWithVulkanBackend)
 
 TEST_F (ShellTest, CanCreateShellsWithMetalBackend)
 
 TEST_F (ShellTest, UserTagSetOnStartup)
 
 TEST_F (ShellTest, PrefetchDefaultFontManager)
 
 TEST_F (ShellTest, OnPlatformViewCreatedWhenUIThreadIsBusy)
 
 TEST_F (ShellTest, UIWorkAfterOnPlatformViewDestroyed)
 
 TEST_F (ShellTest, UsesPlatformMessageHandler)
 
 TEST_F (ShellTest, SpawnWorksWithOnError)
 
 TEST (SwitchesTest, SkiaTraceAllowlistFlag)
 
 TEST (SwitchesTest, RouteParsedFlag)
 
 TEST (SwitchesTest, MsaaSamples)
 
 TEST (VariableRefreshRateDisplayTest, ReportCorrectInitialRefreshRate)
 
 TEST (VariableRefreshRateDisplayTest, ReportCorrectRefreshRateWhenUpdated)
 
 TEST (VariableRefreshRateDisplayTest, Report0IfReporterSharedPointerIsDestroyedAfterDisplayCreation)
 
 TEST (VariableRefreshRateDisplayTest, Report0IfReporterSharedPointerIsDestroyedBeforeDisplayCreation)
 
 TEST (AndroidShellHolder, Create)
 
 TEST (AndroidShellHolder, HandlePlatformMessage)
 
fml::RefPtr< fml::RasterThreadMergerGetThreadMergerFromPlatformThread (fml::Thread *rasterizer_thread=nullptr)
 
fml::RefPtr< fml::RasterThreadMergerGetThreadMergerFromRasterThread (fml::Thread *platform_thread)
 
TaskRunners GetTaskRunnersForFixture ()
 
 TEST (AndroidExternalViewEmbedder, GetCurrentCanvases)
 
 TEST (AndroidExternalViewEmbedder, GetCurrentCanvasesCompositeOrder)
 
 TEST (AndroidExternalViewEmbedder, CompositeEmbeddedView)
 
 TEST (AndroidExternalViewEmbedder, CancelFrame)
 
 TEST (AndroidExternalViewEmbedder, RasterizerRunsOnPlatformThread)
 
 TEST (AndroidExternalViewEmbedder, RasterizerRunsOnRasterizerThread)
 
 TEST (AndroidExternalViewEmbedder, PlatformViewRect)
 
 TEST (AndroidExternalViewEmbedder, PlatformViewRectChangedParams)
 
 TEST (AndroidExternalViewEmbedder, SubmitFrame)
 
 TEST (AndroidExternalViewEmbedder, SubmitFrameOverlayComposition)
 
 TEST (AndroidExternalViewEmbedder, SubmitFramePlatformViewWithoutAnyOverlay)
 
 TEST (AndroidExternalViewEmbedder, DoesNotCallJNIPlatformThreadOnlyMethods)
 
 TEST (AndroidExternalViewEmbedder, DestroyOverlayLayersOnSizeChange)
 
 TEST (AndroidExternalViewEmbedder, DoesNotDestroyOverlayLayersOnSizeChange)
 
 TEST (AndroidExternalViewEmbedder, SupportsDynamicThreadMerging)
 
 TEST (AndroidExternalViewEmbedder, DisableThreadMerger)
 
 TEST (AndroidExternalViewEmbedder, Teardown)
 
 TEST (AndroidExternalViewEmbedder, TeardownDoesNotCallJNIMethod)
 
 TEST (SurfacePool, GetLayerAllocateOneLayer)
 
 TEST (SurfacePool, GetUnusedLayers)
 
 TEST (SurfacePool, GetLayerRecycle)
 
 TEST (SurfacePool, GetLayerAllocateTwoLayers)
 
 TEST (SurfacePool, DestroyLayers)
 
 TEST (SurfacePool, DestroyLayersFrameSizeChanged)
 
 TEST (JNIMock, FlutterViewHandlePlatformMessage)
 
 TEST (PlatformViewShell, UpdateSemanticsDoesFlutterViewUpdateSemantics)
 
 TEST (PlatformViewShell, UpdateSemanticsDoesFlutterViewUpdateSemanticsWithStringAttribtes)
 
 TEST (PlatformViewShell, UpdateSemanticsDoesFlutterViewUpdateCustomAccessibilityActions)
 
 TEST (AccessibilityBridgeTest, basicTest)
 
 TEST (AccessibilityBridgeTest, canFireChildrenChangedCorrectly)
 
 TEST (AccessibilityBridgeTest, canUpdateDelegate)
 
 TEST (AccessibilityBridgeTest, canHandleSelectionChangeCorrectly)
 
 TEST (AccessibilityBridgeTest, doesNotAssignEditableRootToSelectableText)
 
 TEST (AccessibilityBridgeTest, ToggleHasToggleButtonRole)
 
 TEST (AccessibilityBridgeTest, SliderHasSliderRole)
 
 TEST (FlutterPlatformNodeDelegateTest, NodeDelegateHasUniqueId)
 
 TEST (FlutterPlatformNodeDelegateTest, canPerfomActions)
 
 TEST (FlutterPlatformNodeDelegateTest, canGetAXNode)
 
 TEST (FlutterPlatformNodeDelegateTest, canCalculateBoundsCorrectly)
 
 TEST (FlutterPlatformNodeDelegateTest, canCalculateOffScreenBoundsCorrectly)
 
 TEST (FlutterPlatformNodeDelegateTest, canUseOwnerBridge)
 
 TEST (AccessibilityBridgeMacDelegateTest, sendsAccessibilityCreateNotificationToWindowOfFlutterView)
 
 TEST (AccessibilityBridgeMacDelegateTest, doesNotSendAccessibilityCreateNotificationWhenHeadless)
 
 TEST (AccessibilityBridgeMacDelegateTest, doesNotSendAccessibilityCreateNotificationWhenNoWindow)
 
 TEST (FlutterChannelKeyResponderUnittests, BasicKeyEvent)
 
 TEST (FlutterChannelKeyResponderUnittests, EmptyResponseIsTakenAsHandled)
 
 TEST (FlutterChannelKeyResponderUnittests, FollowsLayoutMap)
 
 TEST (FlutterEmbedderExternalTextureUnittests, TestTextureResolution)
 
 TEST (FlutterEmbedderExternalTextureUnittests, TestPopulateExternalTexture)
 
 TEST (FlutterEmbedderExternalTextureUnittests, TestPopulateExternalTextureYUVA)
 
 TEST (FlutterEmbedderExternalTextureUnittests, TestPopulateExternalTextureYUVA2)
 
 TEST (FlutterEmbedderKeyResponderUnittests, BasicKeyEvent)
 
 TEST (FlutterEmbedderKeyResponderUnittests, NonAsciiCharacters)
 
 TEST (FlutterEmbedderKeyResponderUnittests, MultipleCharacters)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SynthesizeForDuplicateDownEvent)
 
 TEST (FlutterEmbedderKeyResponderUnittests, IgnoreDuplicateUpEvent)
 
 TEST (FlutterEmbedderKeyResponderUnittests, ConvertAbruptRepeatEventsToDown)
 
 TEST (FlutterEmbedderKeyResponderUnittests, ToggleModifiersDuringKeyTap)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SpecialModiferFlags)
 
 TEST (FlutterEmbedderKeyResponderUnittests, IdentifyLeftAndRightModifiers)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SynthesizeMissedModifierEvents)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SynthesizeMissedModifierEventsInNormalEvents)
 
 TEST (FlutterEmbedderKeyResponderUnittests, ConvertCapsLockEvents)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SynchronizeCapsLockStateOnCapsLock)
 
 TEST (FlutterEmbedderKeyResponderUnittests, SynchronizeCapsLockStateOnNormalKey)
 
 TEST_F (FlutterEngineTest, CanLaunch)
 
 TEST_F (FlutterEngineTest, HasNonNullExecutableName)
 
 TEST_F (FlutterEngineTest, MessengerSend)
 
 TEST_F (FlutterEngineTest, CanLogToStdout)
 
 TEST_F (FlutterEngineTest, CanToggleAccessibility)
 
 TEST_F (FlutterEngineTest, CanToggleAccessibilityWhenHeadless)
 
 TEST_F (FlutterEngineTest, ResetsAccessibilityBridgeWhenSetsNewViewController)
 
 TEST_F (FlutterEngineTest, NativeCallbacks)
 
 TEST (FlutterEngine, DISABLED_Compositor)
 
 TEST (FlutterEngine, DartEntrypointArguments)
 
 TEST_F (FlutterEngineTest, MessengerCleanupConnectionWorks)
 
 TEST (FlutterEngine, HasStringsWhenPasteboardEmpty)
 
 TEST (FlutterEngine, HasStringsWhenPasteboardFull)
 
id CreateMockFlutterEngine (NSString *pasteboardString)
 
 TEST (FlutterFrameBufferProviderTest, TestCreate)
 
 TEST (FlutterGLCompositorTest, TestPresent)
 
 TEST (FlutterKeyboardManagerUnittests, SinglePrimaryResponder)
 
 TEST (FlutterKeyboardManagerUnittests, DoublePrimaryResponder)
 
 TEST (FlutterKeyboardManagerUnittests, SingleFinalResponder)
 
 TEST (FlutterKeyboardManagerUnittests, handlingComposingText)
 
 TEST (FlutterKeyboardManagerUnittests, EmptyNextResponder)
 
 TEST (FlutterKeyboardManagerUnittests, RacingConditionBetweenKeyAndText)
 
 TEST (FlutterKeyboardManagerUnittests, CorrectLogicalKeyForLayouts)
 
 TEST (FlutterMenuPluginTest, TestSetMenu)
 
 TEST (FlutterMetalCompositorTest, TestPresent)
 
 TEST (FlutterMetalCompositorTest, TestCreate)
 
 TEST (FlutterMetalCompositorTest, TestCompositing)
 
 TEST (FlutterMetalRenderer, PresentDelegatesToFlutterView)
 
 TEST (FlutterMetalRenderer, TextureReturnedByFlutterView)
 
static FlutterMetalSurfaceManagerCreateSurfaceManager ()
 
 TEST (FlutterMetalSurfaceManager, EnsureSizeUpdatesSize)
 
 TEST (FlutterMetalSurfaceManager, EnsureSizeUpdatesSizeForBackBuffer)
 
 TEST (FlutterOpenGLRenderer, RegisterExternalTexture)
 
 TEST (FlutterOpenGLRenderer, UnregisterExternalTexture)
 
 TEST (FlutterOpenGLRenderer, MarkExternalTextureFrameAvailable)
 
 TEST (FlutterOpenGLRenderer, PresetDelegatesToFlutterView)
 
 TEST (FlutterOpenGLRenderer, FBOReturnedByFlutterView)
 
 TEST (FlutterPlatformNodeDelegateMac, Basics)
 
 TEST (FlutterPlatformNodeDelegateMac, SelectableTextHasCorrectSemantics)
 
 TEST (FlutterPlatformNodeDelegateMac, SelectableTextWithoutSelectionReturnZeroRange)
 
 TEST (FlutterPlatformNodeDelegateMac, CanPerformAction)
 
 TEST (FlutterPlatformNodeDelegateMac, TextFieldUsesFlutterTextField)
 
 TEST (FlutterPlatformViewController, TestCreatePlatformViewNoMatchingViewType)
 
 TEST (FlutterPlatformViewController, TestRegisterPlatformViewFactoryAndCreate)
 
 TEST (FlutterPlatformViewController, TestCreateAndDispose)
 
 TEST (FlutterPlatformViewController, TestDisposeOnMissingViewId)
 
 TEST (FlutterTextInputPluginTest, TestEmptyCompositionRange)
 
 TEST (FlutterTextInputPluginTest, TestSetMarkedTextWithSelectionChange)
 
 TEST (FlutterTextInputPluginTest, TestComposingRegionRemovedByFramework)
 
 TEST (FlutterTextInputPluginTest, TestClearClientDuringComposing)
 
 TEST (FlutterTextInputPluginTest, TestFirstRectForCharacterRange)
 
 TEST (FlutterTextInputPluginTest, TestSetEditingStateWithTextEditingDelta)
 
 TEST (FlutterTextInputPluginTest, TestOperationsThatTriggerDelta)
 
 TEST (FlutterTextInputPluginTest, TestComposingWithDelta)
 
 TEST (FlutterTextInputPluginTest, testComposingWithDeltasWhenSelectionIsActive)
 
 TEST (FlutterTextInputPluginTest, TestLocalTextAndSelectionUpdateAfterDelta)
 
 TEST (FlutterTextInputPluginTest, TestPerformKeyEquivalent)
 
 TEST (FlutterTextInputPluginTest, CanWorkWithFlutterTextField)
 
 TEST (FlutterTextInputPluginTest, CanNotBecomeResponderIfNoViewController)
 
 TEST (FlutterTextInputPluginTest, IsAddedAndRemovedFromViewHierarchy)
 
 TEST (FlutterTextInputSemanticsObjectTest, DoesInitialize)
 
 TEST (FlutterViewController, HasViewThatHidesOtherViewsInAccessibility)
 
 TEST (FlutterViewController, FlutterViewAcceptsFirstMouse)
 
 TEST (FlutterViewController, ReparentsPluginWhenAccessibilityDisabled)
 
 TEST (FlutterViewController, CanSetMouseTrackingModeBeforeViewLoaded)
 
 TEST (FlutterViewControllerTest, TestKeyEventsAreSentToFramework)
 
 TEST (FlutterViewControllerTest, TestKeyEventsArePropagatedIfNotHandled)
 
 TEST (FlutterViewControllerTest, TestKeyEventsAreNotPropagatedIfHandled)
 
 TEST (FlutterViewControllerTest, TestFlagsChangedEventsArePropagatedIfNotHandled)
 
 TEST (FlutterViewControllerTest, TestKeyboardIsRestartedOnEngineRestart)
 
 TEST (FlutterViewControllerTest, TestTrackpadGesturesAreSentToFramework)
 
 TEST (FlutterViewControllerTest, testViewWillAppearCalledMultipleTimes)
 
id CreateMockViewController ()
 
 TEST_F (EmbedderA11yTest, A11yTreeIsConsistent)
 
static void InvokeAllCallbacks (const std::vector< fml::closure > &callbacks)
 
 TEST (EmbedderTestNoFixture, MustNotRunWithInvalidArgs)
 
 TEST_F (EmbedderTest, CanLaunchAndShutdownWithValidProjectArgs)
 
 TEST_F (EmbedderTest, DISABLED_CanLaunchAndShutdownMultipleTimes)
 
 TEST_F (EmbedderTest, CanInvokeCustomEntrypoint)
 
 TEST_F (EmbedderTest, CanInvokeCustomEntrypointMacro)
 
 TEST_F (EmbedderTest, CanTerminateCleanly)
 
 TEST_F (EmbedderTest, ExecutableNameNotNull)
 
 TEST_F (EmbedderTest, CanSpecifyCustomPlatformTaskRunner)
 
 TEST (EmbedderTestNoFixture, CanGetCurrentTimeInNanoseconds)
 
 TEST_F (EmbedderTest, CanReloadSystemFonts)
 
 TEST_F (EmbedderTest, IsolateServiceIdSent)
 
 TEST_F (EmbedderTest, CanCreateAndCollectCallbacks)
 
 TEST_F (EmbedderTest, PlatformMessagesCanReceiveResponse)
 
 TEST_F (EmbedderTest, PlatformMessagesCanBeSentWithoutResponseHandles)
 
 TEST_F (EmbedderTest, NullPlatformMessagesCanBeSent)
 
 TEST_F (EmbedderTest, InvalidPlatformMessages)
 
 TEST_F (EmbedderTest, CanSetCustomLogMessageCallback)
 
 TEST_F (EmbedderTest, CanSetCustomLogTag)
 Tests that setting a custom log tag works. More...
 
 TEST_F (EmbedderTest, VMShutsDownWhenNoEnginesInProcess)
 
 TEST_F (EmbedderTest, DartEntrypointArgs)
 
 TEST_F (EmbedderTest, VMAndIsolateSnapshotSizesAreRedundantInAOTMode)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownSceneWithSoftwareCompositor)
 
 TEST_F (EmbedderTest, CanCreateInitializedEngine)
 
 TEST_F (EmbedderTest, CanRunInitializedEngine)
 
 TEST_F (EmbedderTest, CanDeinitializeAnEngine)
 
 TEST_F (EmbedderTest, CanUpdateLocales)
 
 TEST_F (EmbedderTest, LocalizationCallbacksCalled)
 
 TEST_F (EmbedderTest, CanQueryDartAOTMode)
 
 TEST_F (EmbedderTest, VerifyB143464703WithSoftwareBackend)
 
 TEST_F (EmbedderTest, CanSendLowMemoryNotification)
 
 TEST_F (EmbedderTest, CanPostTaskToAllNativeThreads)
 
 TEST_F (EmbedderTest, InvalidAOTDataSourcesMustReturnError)
 
 TEST_F (EmbedderTest, MustNotRunWithMultipleAOTSources)
 
 TEST_F (EmbedderTest, CanCreateAndCollectAValidElfSource)
 
 TEST_F (EmbedderTest, CanLaunchAndShutdownWithAValidElfSource)
 
 TEST_F (EmbedderTest, InvalidFlutterWindowMetricsEvent)
 
FlutterKeyEventType UnserializeKeyEventKind (uint64_t kind)
 
void ExpectKeyEventEq (const FlutterKeyEvent &subject, const FlutterKeyEvent &baseline)
 
 TEST_F (EmbedderTest, KeyDataIsCorrectlySerialized)
 
 TEST_F (EmbedderTest, KeyDataAreBuffered)
 
 TEST_F (EmbedderTest, KeyDataResponseIsCorrectlyInvoked)
 
 TEST_F (EmbedderTest, BackToBackKeyEventResponsesCorrectlyInvoked)
 
 TEST_F (EmbedderTest, VsyncCallbackPostedIntoFuture)
 
 TEST_F (EmbedderTest, CanScheduleFrame)
 
 TEST_F (EmbedderTest, CanGetVulkanEmbedderContext)
 
 TEST_F (EmbedderTest, CanCreateOpenGLRenderingEngine)
 
 TEST_F (EmbedderTest, MustPreventEngineLaunchWhenRequiredCompositorArgsAreAbsent)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToOpenGLFramebuffer)
 
 TEST_F (EmbedderTest, RasterCacheDisabledWithPlatformViews)
 
 TEST_F (EmbedderTest, RasterCacheEnabled)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToOpenGLTexture)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToSoftwareBuffer)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownScene)
 
 TEST_F (EmbedderTest, CustomCompositorMustWorkWithCustomTaskRunner)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderWithRootLayerOnly)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderWithPlatformLayerOnBottom)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownSceneWithRootSurfaceTransformation)
 
 TEST_F (EmbedderTest, CanRenderSceneWithoutCustomCompositor)
 
 TEST_F (EmbedderTest, CanRenderSceneWithoutCustomCompositorWithTransformation)
 
 TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithoutCompositor)
 
 TEST_F (EmbedderTest, CanRenderGradientWithoutCompositorWithXform)
 
 TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithCompositor)
 
 TEST_F (EmbedderTest, CanRenderGradientWithCompositorWithXform)
 
 TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithCompositorOnNonRootLayer)
 
 TEST_F (EmbedderTest, CanRenderGradientWithCompositorOnNonRootLayerWithXform)
 
 TEST_F (EmbedderTest, VerifyB141980393)
 
 TEST_F (EmbedderTest, CanCreateEmbedderWithCustomRenderTaskRunner)
 
 TEST_P (EmbedderTestMultiBackend, CanCreateEmbedderWithCustomRenderTaskRunnerTheSameAsPlatformTaskRunner)
 
 TEST_P (EmbedderTestMultiBackend, CompositorMustBeAbleToRenderKnownScenePixelRatioOnSurface)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownScenePixelRatioOnSurfaceWithRootSurfaceXformation)
 
 TEST_F (EmbedderTest, PushingMutlipleFramesSetsUpNewRecordingCanvasWithCustomCompositor)
 
 TEST_F (EmbedderTest, PushingMutlipleFramesSetsUpNewRecordingCanvasWithoutCustomCompositor)
 
 TEST_P (EmbedderTestMultiBackend, PlatformViewMutatorsAreValid)
 
 TEST_F (EmbedderTest, PlatformViewMutatorsAreValidWithPixelRatio)
 
 TEST_F (EmbedderTest, PlatformViewMutatorsAreValidWithPixelRatioAndRootSurfaceTransformation)
 
 TEST_F (EmbedderTest, EmptySceneIsAcceptable)
 
 TEST_F (EmbedderTest, SceneWithNoRootContainerIsAcceptable)
 
 TEST_F (EmbedderTest, ArcEndCapsAreDrawnCorrectly)
 
 TEST_F (EmbedderTest, ClipsAreCorrectlyCalculated)
 
 TEST_F (EmbedderTest, ComplexClipsAreCorrectlyCalculated)
 
 TEST_F (EmbedderTest, ObjectsCanBePostedViaPorts)
 
 TEST_F (EmbedderTest, CompositorCanPostZeroLayersForPresentation)
 
 TEST_F (EmbedderTest, CompositorCanPostOnlyPlatformViews)
 
 TEST_F (EmbedderTest, CompositorRenderTargetsAreRecycled)
 
 TEST_F (EmbedderTest, CompositorRenderTargetsAreInStableOrder)
 
 TEST_F (EmbedderTest, FrameInfoContainsValidWidthAndHeight)
 
 TEST_F (EmbedderTest, MustNotRunWithBothFBOCallbacksSet)
 
 TEST_F (EmbedderTest, MustNotRunWithBothPresentCallbacksSet)
 
 TEST_F (EmbedderTest, PresentInfoContainsValidFBOId)
 
 TEST_F (EmbedderTest, SetSingleDisplayConfigurationWithDisplayId)
 
 TEST_F (EmbedderTest, SetSingleDisplayConfigurationWithoutDisplayId)
 
 TEST_F (EmbedderTest, SetValidMultiDisplayConfiguration)
 
 TEST_F (EmbedderTest, MultipleDisplaysWithSingleDisplayTrueIsInvalid)
 
 TEST_F (EmbedderTest, MultipleDisplaysWithSameDisplayIdIsInvalid)
 
 TEST_F (EmbedderTest, CompositorRenderTargetsNotRecycledWhenAvoidsCacheSet)
 
 TEST_F (EmbedderTest, SnapshotRenderTargetScalesDownToDriverMax)
 
 TEST_F (EmbedderTest, ObjectsPostedViaPortsServicedOnSecondaryTaskHeap)
 
 TEST_F (EmbedderTest, CreateInvalidBackingstoreOpenGLTexture)
 
 TEST_F (EmbedderTest, CreateInvalidBackingstoreOpenGLFramebuffer)
 
 TEST_F (EmbedderTest, ExternalTextureGLRefreshedTooOften)
 
 INSTANTIATE_TEST_SUITE_P (EmbedderTestGlVk, EmbedderTestMultiBackend, ::testing::Values(EmbedderTestContextType::kOpenGLContext, EmbedderTestContextType::kVulkanContext))
 
 TEST_F (EmbedderTest, CanRenderGradientWithMetal)
 
static sk_sp< SkSurface > GetSurfaceFromTexture (sk_sp< GrDirectContext > skia_context, SkISize texture_size, void *texture)
 
 TEST_F (EmbedderTest, ExternalTextureMetal)
 
 TEST_F (EmbedderTest, MetalCompositorMustBeAbleToRenderPlatformViews)
 
 TEST_F (EmbedderTest, CanRenderSceneWithoutCustomCompositorMetal)
 
 TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownSceneMetal)
 
 TEST_F (EmbedderTest, CreateInvalidBackingstoreMetalTexture)
 
 TEST_F (EmbedderTest, ExternalTextureMetalRefreshedTooOften)
 
 TEST (EmbedderProcTable, AllPointersProvided)
 
 TEST (EmbedderProcTable, NoDuplicatePointers)
 
 TEST (EmbedderProcTable, CallProc)
 
sk_sp< SkSurface > CreateRenderSurface (const FlutterLayer &layer, GrDirectContext *context)
 
static sk_sp< SkData > NormalizeImage (sk_sp< SkImage > image)
 
bool RasterImagesAreSame (sk_sp< SkImage > a, sk_sp< SkImage > b)
 
std::string FixtureNameForBackend (EmbedderTestContextType backend, const std::string &name)
 Prepends a prefix to the name which is unique to the test context type. This is useful for tests that use EmbedderTestMultiBackend and require different fixtures per backend. For OpenGL, the name remains unchanged. More...
 
EmbedderTestBackingStoreProducer::RenderTargetType GetRenderTargetFromBackend (EmbedderTestContextType backend, bool opengl_framebuffer)
 Resolves a render target type for a given backend description. This is useful for tests that use EmbedderTestMultiBackend. More...
 
void ConfigureBackingStore (FlutterBackingStore &backing_store, EmbedderTestContextType backend, bool opengl_framebuffer)
 Configures per-backend properties for a given backing store. More...
 
bool WriteImageToDisk (const fml::UniqueFD &directory, const std::string &name, sk_sp< SkImage > image)
 
bool ImageMatchesFixture (const std::string &fixture_file_name, sk_sp< SkImage > scene_image)
 
bool ImageMatchesFixture (const std::string &fixture_file_name, std::future< sk_sp< SkImage >> &scene_image)
 
void FilterMutationsByType (const FlutterPlatformViewMutation **mutations, size_t count, FlutterPlatformViewMutationType type, std::function< void(const FlutterPlatformViewMutation &mutation)> handler)
 
void FilterMutationsByType (const FlutterPlatformView *view, FlutterPlatformViewMutationType type, std::function< void(const FlutterPlatformViewMutation &mutation)> handler)
 
SkMatrix GetTotalMutationTransformationMatrix (const FlutterPlatformViewMutation **mutations, size_t count)
 
SkMatrix GetTotalMutationTransformationMatrix (const FlutterPlatformView *view)
 
 TEST (AccessibilityBridgeDelegateWin32, GetParent)
 
 TEST (AccessibilityBridgeDelegateWin32, GetParentOnRootRetunsNullptr)
 
 TEST (AccessibilityBridgeDelegateWin32, DispatchAccessibilityAction)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityEventAlert)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityEventChildrenChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityEventFocusChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityEventIgnoredChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityImageAnnotationChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityLiveRegionChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityNameChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityHScrollPosChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityVScrollPosChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilitySelectedChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilitySelectedChildrenChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilitySubtreeCreated)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityValueChanged)
 
 TEST (AccessibilityBridgeDelegateWin32, OnAccessibilityStateChanged)
 
 TEST (DirectManipulationTest, TestGesture)
 
 TEST (DirectManipulationTest, TestRounding)
 
 TEST (DpiUtilsTest, NonZero)
 
 TEST (DpiUtilsTest, NullHwndUsesPrimaryMonitor)
 
 TEST (FlutterProjectBundle, BasicPropertiesAbsolutePaths)
 
 TEST (FlutterProjectBundle, BasicPropertiesRelativePaths)
 
 TEST (FlutterProjectBundle, SwitchesEmpty)
 
 TEST (FlutterProjectBundle, DartEntrypointArguments)
 
 TEST (FlutterProjectBundle, Switches)
 
 TEST (FlutterWindowWin32Test, CreateDestroy)
 
 TEST (FlutterWindowWin32Test, OnCursorRectUpdatedRegularDPI)
 
 TEST (FlutterWindowWin32Test, OnCursorRectUpdatedHighDPI)
 
 TEST (FlutterWindowWin32Test, OnPointerStarSendsDeviceType)
 
 TEST (FlutterWindowsEngine, RunDoesExpectedInitialization)
 
 TEST (FlutterWindowsEngine, ConfiguresFrameVsync)
 
 TEST (FlutterWindowsEngine, RunWithoutANGLEUsesSoftware)
 
 TEST (FlutterWindowsEngine, SendPlatformMessageWithoutResponse)
 
 TEST (FlutterWindowsEngine, SendPlatformMessageWithResponse)
 
 TEST (FlutterWindowsEngine, DispatchSemanticsAction)
 
 TEST (FlutterWindowsEngine, SetsThreadPriority)
 
 TEST (FlutterWindowsEngine, AddPluginRegistrarDestructionCallback)
 
 TEST (FlutterWindowsTextureRegistrarTest, CreateDestroy)
 
 TEST (FlutterWindowsTextureRegistrarTest, RegisterUnregisterTexture)
 
 TEST (FlutterWindowsTextureRegistrarTest, RegisterUnknownTextureType)
 
 TEST (FlutterWindowsTextureRegistrarTest, PopulatePixelBufferTexture)
 
 TEST (FlutterWindowsTextureRegistrarTest, PopulateD3dTextureWithHandle)
 
 TEST (FlutterWindowsTextureRegistrarTest, PopulateD3dTexture)
 
 TEST (FlutterWindowsTextureRegistrarTest, PopulateInvalidTexture)
 
 TEST (FlutterWindowsViewTest, KeySequence)
 
 TEST (FlutterWindowsViewTest, RestartClearsKeyboardState)
 
 TEST (FlutterWindowsViewTest, EnableSemantics)
 
 TEST (FlutterWindowsView, AddSemanticsNodeUpdate)
 
 TEST (FlutterWindowsView, AddSemanticsNodeUpdateWithChildren)
 
 TEST (FlutterWindowsViewTest, AccessibilityHitTesting)
 
 TEST (FlutterWindowsViewTest, WindowResizeTests)
 
 TEST (KeyboardKeyChannelHandlerTest, KeyboardHookHandling)
 
 TEST (KeyboardKeyChannelHandlerTest, ExtendedKeysAreSentToRedispatch)
 
 TEST (KeyboardKeyChannelHandlerTest, DeadKeysDoNotCrash)
 
 TEST (KeyboardKeyChannelHandlerTest, EmptyResponsesDoNotCrash)
 
 TEST (KeyboardKeyEmbedderHandlerTest, ConvertChar32ToUtf8)
 
 TEST (KeyboardKeyEmbedderHandlerTest, BasicKeyPressingAndHolding)
 
 TEST (KeyboardKeyEmbedderHandlerTest, ToggleNumLockDuringNumpadPress)
 
 TEST (KeyboardKeyEmbedderHandlerTest, ImeEventsAreIgnored)
 
 TEST (KeyboardKeyEmbedderHandlerTest, ModifierKeysByExtendedBit)
 
 TEST (KeyboardKeyEmbedderHandlerTest, ModifierKeysByVirtualKey)
 
 TEST (KeyboardKeyEmbedderHandlerTest, RepeatedDownIsIgnored)
 
 TEST (KeyboardKeyEmbedderHandlerTest, AbruptRepeatIsConvertedToDown)
 
 TEST (KeyboardKeyEmbedderHandlerTest, AbruptUpIsIgnored)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SynthesizeForDesyncPressingState)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SynthesizeForDesyncToggledState)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SynthesizeForDesyncToggledStateByItselfsUp)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SynthesizeForDesyncToggledStateByItselfsDown)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SynthesizeWithInitialTogglingState)
 
 TEST (KeyboardKeyEmbedderHandlerTest, SysKeyPress)
 
 TEST (KeyboardKeyHandlerTest, SingleDelegateWithAsyncResponds)
 
 TEST (KeyboardKeyHandlerTest, SingleDelegateWithSyncResponds)
 
 TEST (KeyboardTest, LowerCaseAHandled)
 
 TEST (KeyboardTest, LowerCaseAUnhandled)
 
 TEST (KeyboardTest, ArrowLeftHandled)
 
 TEST (KeyboardTest, ArrowLeftUnhandled)
 
 TEST (KeyboardTest, ShiftLeftUnhandled)
 
 TEST (KeyboardTest, ShiftRightUnhandled)
 
 TEST (KeyboardTest, CtrlLeftUnhandled)
 
 TEST (KeyboardTest, CtrlRightUnhandled)
 
 TEST (KeyboardTest, AltLeftUnhandled)
 
 TEST (KeyboardTest, AltRightUnhandled)
 
 TEST (KeyboardTest, MetaLeftUnhandled)
 
 TEST (KeyboardTest, MetaRightUnhandled)
 
 TEST (KeyboardTest, ShiftLeftKeyA)
 
 TEST (KeyboardTest, CtrlLeftKeyA)
 
 TEST (KeyboardTest, CtrlLeftDigit1)
 
 TEST (KeyboardTest, Digit1OnFrenchLayout)
 
 TEST (KeyboardTest, AltGrModifiedKey)
 
 TEST (KeyboardTest, AltGrTwice)
 
 TEST (KeyboardTest, DeadKeyThatCombines)
 
 TEST (KeyboardTest, DeadKeyWithoutDeadMaskThatCombines)
 
 TEST (KeyboardTest, DeadKeyThatDoesNotCombine)
 
 TEST (KeyboardTest, DeadKeyTwiceThenLetter)
 
 TEST (KeyboardTest, MultibyteCharacter)
 
 TEST (KeyboardTest, SynthesizeModifiers)
 
 TEST (KeyboardTest, ImeExtendedEventsAreIgnored)
 
 TEST (KeyboardTest, UpOnlyImeEventsAreCorrectlyHandled)
 
 TEST (KeyboardTest, DisorderlyRespondedEvents)
 
 TEST (KeyboardTest, SlowFrameworkResponse)
 
 TEST (KeyboardTest, SlowFrameworkResponseForIdenticalEvents)
 
 TEST (KeyboardTest, TextInputSubmit)
 
 TEST (KeyboardTest, VietnameseTelexAddDiacriticWithFastResponse)
 
void VietnameseTelexAddDiacriticWithSlowResponse (bool backspace_response)
 
 TEST (KeyboardTest, VietnameseTelexAddDiacriticWithSlowFalseResponse)
 
 TEST (KeyboardTest, VietnameseTelexAddDiacriticWithSlowTrueResponse)
 
 TEST (PlatformHandler, GettingTextCallsThrough)
 
 TEST (PlatformHandler, RejectsGettingUnknownTypes)
 
 TEST (PlatformHandler, GetHasStringsCallsThrough)
 
 TEST (PlatformHandler, RejectsGetHasStringsOnUnknownTypes)
 
 TEST (PlatformHandler, SettingTextCallsThrough)
 
 TEST (PlatformHandler, RejectsSettingUnknownTypes)
 
 TEST (PlatformHandler, PlayingSystemSoundCallsThrough)
 
 TEST (PlatformHandlerWin32, HasStringsAccessDeniedReturnsFalseWithoutError)
 
 TEST (PlatformHandlerWin32, HasStringsSuccessWithStrings)
 
 TEST (PlatformHandlerWin32, HasStringsSuccessWithoutStrings)
 
 TEST (PlatformHandlerWin32, HasStringsError)
 
 TEST (PlatformHandlerWin32, ReleaseClipboard)
 
 TEST (SequentialIdGeneratorTest, RemoveMultipleNumbers)
 
 TEST (SequentialIdGeneratorTest, MaybeRemoveNumbers)
 
 TEST (SettingsPluginTest, SendSettingsSendsMessage)
 
 TEST (SettingsPluginTest, SendSettingsGetsSettings)
 
 TEST (SystemUtils, GetPreferredLanguageInfo)
 
 TEST (SystemUtils, GetPreferredLanguages)
 
 TEST (SystemUtils, ParseLanguageNameGeneric)
 
 TEST (SystemUtils, ParseLanguageNameWithRegion)
 
 TEST (SystemUtils, ParseLanguageNameWithScript)
 
 TEST (SystemUtils, ParseLanguageNameWithRegionAndScript)
 
 TEST (SystemUtils, ParseLanguageNameWithSuplementalLanguage)
 
 TEST (SystemUtils, ParseLanguageNameWithThreeCharacterLanguage)
 
 TEST (SystemUtils, GetUserTimeFormat)
 
 TEST (SystemUtils, Prefer24HourTimeHandlesEmptyFormat)
 
 TEST (SystemUtils, Prefer24HourTimeHandles12Hour)
 
 TEST (SystemUtils, Prefer24HourTimeHandles24Hour)
 
 TEST (TaskRunnerTest, MaybeExecuteTaskWithExactOrder)
 
 TEST (TaskRunnerTest, MaybeExecuteTaskOnlyExpired)
 
char * clone_string (const char *string)
 
::testing::AssertionResult _EventEquals (const char *expr_event, const char *expr_expected, const FlutterKeyEvent &event, const FlutterKeyEvent &expected)
 
LPARAM CreateKeyEventLparam (USHORT scancode, bool extended, bool was_down, USHORT repeat_count, bool context_code, bool transition_state)
 
void MockEmbedderApiForKeyboard (EngineModifier &modifier, std::shared_ptr< MockKeyResponseController > response_controller)
 
 TEST (TestKeyboard, CloneString)
 
 TEST (TestKeyboard, CreateKeyEventLparam)
 
 TEST (TextInputPluginTest, TextMethodsWorksWithEmptyModel)
 
 TEST (TextInputPluginTest, ClearClientResetsComposing)
 
 TEST (TextInputPluginTest, VerifyComposingSendStateUpdate)
 
 TEST (TextInputPluginTest, TextEditingWorksWithDeltaModel)
 
 TEST (WindowProcDelegateManagerWin32Test, CallsCorrectly)
 
 TEST (WindowProcDelegateManagerWin32Test, ReplacementRegister)
 
 TEST (WindowProcDelegateManagerWin32Test, RegisterMultiple)
 
 TEST (WindowProcDelegateManagerWin32Test, ConflictingDelegates)
 
 TEST (WindowProcDelegateManagerWin32Test, Unregister)
 
 TEST (MockWin32Window, CreateDestroy)
 
 TEST (MockWin32Window, GetDpiAfterCreate)
 
 TEST (MockWin32Window, VerticalScroll)
 
 TEST (MockWin32Window, OnImeCompositionCompose)
 
 TEST (MockWin32Window, OnImeCompositionResult)
 
 TEST (MockWin32Window, OnImeCompositionResultAndCompose)
 
 TEST (MockWin32Window, OnImeCompositionClearChange)
 
 TEST (MockWin32Window, HorizontalScroll)
 
 TEST (MockWin32Window, MouseLeave)
 
 TEST (MockWin32Window, KeyDown)
 
 TEST (MockWin32Window, KeyUp)
 
 TEST (MockWin32Window, SysKeyDown)
 
 TEST (MockWin32Window, SysKeyUp)
 
 TEST (MockWin32Window, KeyDownPrintable)
 
 TEST (MockWin32Window, KeyDownWithCtrl)
 
 TEST (MockWin32Window, KeyDownWithCtrlToggled)
 
bool NumberNear (double a, double b)
 
std::ostream & operator<< (std::ostream &os, const SkClipOp &o)
 
std::ostream & operator<< (std::ostream &os, const SkMatrix &m)
 
std::ostream & operator<< (std::ostream &os, const SkM44 &m)
 
std::ostream & operator<< (std::ostream &os, const SkVector3 &v)
 
std::ostream & operator<< (std::ostream &os, const SkRect &r)
 
std::ostream & operator<< (std::ostream &os, const SkRRect &r)
 
std::ostream & operator<< (std::ostream &os, const SkPath &r)
 
std::ostream & operator<< (std::ostream &os, const SkPoint &r)
 
std::ostream & operator<< (std::ostream &os, const SkISize &size)
 
std::ostream & operator<< (std::ostream &os, const SkColor4f &r)
 
std::ostream & operator<< (std::ostream &os, const SkPaint &r)
 
std::ostream & operator<< (std::ostream &os, const SkSamplingOptions &s)
 
std::unique_ptr< AutoIsolateShutdownRunDartCodeInIsolateOnUITaskRunner (DartVMRef &vm_ref, const Settings &p_settings, const TaskRunners &task_runners, std::string entrypoint, const std::vector< std::string > &args, const std::string &kernel_file_path, fml::WeakPtr< IOManager > io_manager, std::shared_ptr< VolatilePathTracker > volatile_path_tracker)
 
std::unique_ptr< AutoIsolateShutdownRunDartCodeInIsolate (DartVMRef &vm_ref, const Settings &settings, const TaskRunners &task_runners, std::string entrypoint, const std::vector< std::string > &args, const std::string &kernel_file_path, fml::WeakPtr< IOManager > io_manager, std::shared_ptr< VolatilePathTracker > volatile_path_tracker)
 
void RunDartCodeInIsolate (DartVMRef &vm_ref, std::unique_ptr< AutoIsolateShutdown > &result, const Settings &settings, const TaskRunners &task_runners, std::string entrypoint, const std::vector< std::string > &args, const std::string &fixtures_path, fml::WeakPtr< IOManager > io_manager={}, std::shared_ptr< VolatilePathTracker > volatile_path_tracker=nullptr)
 
DebuggerStatus GetDebuggerStatus ()
 
bool DisplayListsEQ_Verbose (const DisplayList *a, const DisplayList *b)
 
bool DisplayListsNE_Verbose (const DisplayList *a, const DisplayList *b)
 
std::ostream & operator<< (std::ostream &os, const DisplayList &display_list)
 
std::ostream & operator<< (std::ostream &os, const DlBlendMode &mode)
 
std::ostream & operator<< (std::ostream &os, const SaveLayerOptions &options)
 
static std::ostream & operator<< (std::ostream &os, const SkIRect &rect)
 
static std::ostream & operator<< (std::ostream &os, const SkRect *rect)
 
static std::ostream & operator<< (std::ostream &os, const SkMatrix *matrix)
 
static std::ostream & operator<< (std::ostream &os, const SkRSXform &xform)
 
static std::ostream & operator<< (std::ostream &os, const DlStrokeCap &cap)
 
static std::ostream & operator<< (std::ostream &os, const DlStrokeJoin &join)
 
static std::ostream & operator<< (std::ostream &os, const DlDrawStyle &style)
 
static std::ostream & operator<< (std::ostream &os, const SkBlurStyle &style)
 
static std::ostream & operator<< (std::ostream &os, const SkCanvas::PointMode &mode)
 
static std::ostream & operator<< (std::ostream &os, const DlFilterMode &mode)
 
static std::ostream & operator<< (std::ostream &os, const DlColor &color)
 
static std::ostream & operator<< (std::ostream &os, DlImageSampling sampling)
 
static std::ostream & operator<< (std::ostream &os, const SkTextBlob *blob)
 
static std::ostream & operator<< (std::ostream &os, const DlVertexMode &mode)
 
static std::ostream & operator<< (std::ostream &os, const DlTileMode &mode)
 
static std::ostream & operator<< (std::ostream &os, const DlImage *image)
 
bool DisplayListsEQ_Verbose (const DisplayList &a, const DisplayList &b)
 
bool DisplayListsEQ_Verbose (sk_sp< const DisplayList > a, sk_sp< const DisplayList > b)
 
bool DisplayListsNE_Verbose (const DisplayList &a, const DisplayList &b)
 
bool DisplayListsNE_Verbose (sk_sp< const DisplayList > a, sk_sp< const DisplayList > b)
 
ELFAOTSymbols LoadELFSymbolFromFixturesIfNeccessary (std::string elf_filename)
 Attempts to resolve AOT symbols from the portable ELF loader. This location is automatically resolved from the fixtures generator. This only returns valid symbols when the VM is configured for AOT. More...
 
ELFAOTSymbols LoadELFSplitSymbolFromFixturesIfNeccessary (std::string elf_split_filename)
 Attempts to resolve split loading unit AOT symbols from the portable ELF loader. If the dart code does not make use of deferred libraries, then there will be no split .so to load. This only returns valid symbols when the VM is configured for AOT. More...
 
bool PrepareSettingsForAOTWithSymbols (Settings &settings, const ELFAOTSymbols &symbols)
 Prepare the settings objects various AOT mappings resolvers with the symbols already loaded. This method does nothing in non-AOT runtime modes. More...
 
bool operator== (const MockCanvas::SaveData &a, const MockCanvas::SaveData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::SaveData &data)
 
bool operator== (const MockCanvas::SaveLayerData &a, const MockCanvas::SaveLayerData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::SaveLayerData &data)
 
bool operator== (const MockCanvas::RestoreData &a, const MockCanvas::RestoreData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::RestoreData &data)
 
bool operator== (const MockCanvas::ConcatMatrixData &a, const MockCanvas::ConcatMatrixData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::ConcatMatrixData &data)
 
bool operator== (const MockCanvas::SetMatrixData &a, const MockCanvas::SetMatrixData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::SetMatrixData &data)
 
bool operator== (const MockCanvas::DrawRectData &a, const MockCanvas::DrawRectData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawRectData &data)
 
bool operator== (const MockCanvas::DrawPathData &a, const MockCanvas::DrawPathData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawPathData &data)
 
bool operator== (const MockCanvas::DrawTextData &a, const MockCanvas::DrawTextData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawTextData &data)
 
bool operator== (const MockCanvas::DrawImageData &a, const MockCanvas::DrawImageData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawImageData &data)
 
bool operator== (const MockCanvas::DrawImageDataNoPaint &a, const MockCanvas::DrawImageDataNoPaint &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawImageDataNoPaint &data)
 
bool operator== (const MockCanvas::DrawPictureData &a, const MockCanvas::DrawPictureData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawPictureData &data)
 
bool operator== (const MockCanvas::DrawShadowData &a, const MockCanvas::DrawShadowData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawShadowData &data)
 
bool operator== (const MockCanvas::ClipRectData &a, const MockCanvas::ClipRectData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::ClipRectData &data)
 
bool operator== (const MockCanvas::ClipRRectData &a, const MockCanvas::ClipRRectData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::ClipRRectData &data)
 
bool operator== (const MockCanvas::ClipPathData &a, const MockCanvas::ClipPathData &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::ClipPathData &data)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawCallData &data)
 
bool operator== (const MockCanvas::DrawCall &a, const MockCanvas::DrawCall &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawCall &draw)
 
bool operator== (const MockCanvas::DrawPaint &a, const MockCanvas::DrawPaint &b)
 
std::ostream & operator<< (std::ostream &os, const MockCanvas::DrawPaint &data)
 
 TEST_F (MockCanvasTest, DrawRRectDies)
 
 TEST_F (MockCanvasTest, DrawCalls)
 
void PostTaskSync (fml::RefPtr< fml::TaskRunner > task_runner, const std::function< void()> &function)
 
static const uint8_t * DartNativeEntrySymbolCallback (Dart_NativeFunction function)
 
static std::string GetEGLError ()
 
static bool HasExtension (const char *extensions, const char *name)
 
static void CheckSwanglekExtensions ()
 
static EGLDisplay CreateSwangleDisplay ()
 
template<class T >
auto WeakPtr (std::shared_ptr< T > pointer)
 
static std::string GetTestNameFromTestInfo (const ::testing::TestInfo &test_info)
 
std::string GetCurrentTestName ()
 Gets the name of the currently running test. This is useful in generating logs or assets based on test name. More...
 
std::string GetDefaultKernelFilePath ()
 Returns the default path to kernel_blob.bin. This file is within the directory returned by GetFixturesPath(). More...
 
fml::UniqueFD OpenFixturesDirectory ()
 Opens the fixtures directory for the unit-test harness. More...
 
fml::UniqueFD OpenFixture (std::string fixture_name)
 Opens a fixture of the given file name. More...
 
std::unique_ptr< fml::MappingOpenFixtureAsMapping (std::string fixture_name)
 Opens a fixture of the given file name and returns a mapping to its contents. More...
 
bool MemsetPatternSetOrCheck (uint8_t *buffer, size_t size, MemsetPatternOp op)
 Depending on the operation, either scribbles a known pattern into the buffer or checks if that pattern is present in an existing buffer. This is a portable variant of the memset_pattern class of methods that also happen to do assert that the same pattern exists. More...
 
bool MemsetPatternSetOrCheck (std::vector< uint8_t > &buffer, MemsetPatternOp op)
 
const char * GetSourcePath ()
 
const char * GetFixturesPath ()
 Returns the directory containing the test fixture for the target if this target has fixtures configured. If there are no fixtures, this is a link error. If you see a linker error on this symbol, the unit-test target needs to depend on a test_fixtures target. More...
 
const char * GetTestingAssetsPath ()
 Returns the directory containing assets shared across all tests. More...
 
 TEST_F (DartPersistentHandleTest, ClearAfterShutdown)
 
 TEST_F (DartState, CurrentWithNullDataDoesNotSegfault)
 
 TEST_F (DartState, IsShuttingDown)
 
 TEST_F (DartWeakPersistentHandle, ClearImmediately)
 
 TEST_F (DartWeakPersistentHandle, ClearLaterCc)
 
 TEST_F (DartWeakPersistentHandle, ClearLaterDart)
 
 TEST_F (DartWeakPersistentHandle, ClearOnShutdown)
 
void Nop ()
 
 TEST_F (FfiNativeTest, FfiBindingCallNop)
 
 TEST_F (FfiNativeTest, SerialiseNop)
 
bool EchoBool (bool arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoBool)
 
 TEST_F (FfiNativeTest, SerialiseEchoBool)
 
intptr_t EchoIntPtr (intptr_t arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoIntPtr)
 
 TEST_F (FfiNativeTest, SerialiseEchoIntPtr)
 
float EchoFloat (float arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoFloat)
 
 TEST_F (FfiNativeTest, SerialiseEchoFloat)
 
double EchoDouble (double arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoDouble)
 
 TEST_F (FfiNativeTest, SerialiseEchoDouble)
 
Dart_Handle EchoHandle (Dart_Handle str)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoHandle)
 
 TEST_F (FfiNativeTest, SerialiseEchoHandle)
 
std::string EchoString (std::string arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoString)
 
 TEST_F (FfiNativeTest, SerialiseEchoString)
 
std::u16string EchoU16String (std::u16string arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoU16String)
 
 TEST_F (FfiNativeTest, SerialiseEchoU16String)
 
std::vector< std::string > EchoVector (const std::vector< std::string > &arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoVector)
 
 TEST_F (FfiNativeTest, SerialiseEchoVector)
 
intptr_t EchoWrappable (MyNativeClass *arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoWrappable)
 
 TEST_F (FfiNativeTest, SerialiseEchoWrappable)
 
tonic::Float32List EchoTypedList (tonic::Float32List arg)
 
 TEST_F (FfiNativeTest, FfiBindingCallEchoTypedList)
 
 TEST_F (FfiNativeTest, SerialiseEchoTypedList)
 
 TEST_F (FfiNativeTest, FfiBindingCallClassMemberFunction)
 
 TEST_F (FfiNativeTest, SerialiseClassMemberFunction)
 
 TEST_F (FfiNativeTest, FfiBindingCallClassMemberMethod)
 
 TEST_F (FfiNativeTest, SerialiseClassMemberMethod)
 

Variables

constexpr size_t kLinesToDraw = 10000
 
constexpr size_t kRectsToDraw = 5000
 
constexpr size_t kOvalsToDraw = 1000
 
constexpr size_t kCirclesToDraw = 5000
 
constexpr size_t kRRectsToDraw = 5000
 
constexpr size_t kDRRectsToDraw = 2000
 
constexpr size_t kArcSweepSetsToDraw = 1000
 
constexpr size_t kImagesToDraw = 500
 
constexpr size_t kFixedCanvasSize = 1024
 
constexpr int kTestWidth = 200
 
constexpr int kTestHeight = 200
 
constexpr int kRenderWidth = 100
 
constexpr int kRenderHeight = 100
 
constexpr int kRenderHalfWidth = 50
 
constexpr int kRenderHalfHeight = 50
 
constexpr int kRenderLeft = (kTestWidth - kRenderWidth) / 2
 
constexpr int kRenderTop = (kTestHeight - kRenderHeight) / 2
 
constexpr int kRenderRight = kRenderLeft + kRenderWidth
 
constexpr int kRenderBottom = kRenderTop + kRenderHeight
 
constexpr int kRenderCenterX = (kRenderLeft + kRenderRight) / 2
 
constexpr int kRenderCenterY = (kRenderTop + kRenderBottom) / 2
 
constexpr SkScalar kRenderRadius = std::min(kRenderWidth, kRenderHeight) / 2.0
 
constexpr SkScalar kRenderCornerRadius = kRenderRadius / 5.0
 
constexpr SkPoint kTestCenter = SkPoint::Make(kTestWidth / 2, kTestHeight / 2)
 
constexpr SkRect kTestBounds = SkRect::MakeWH(kTestWidth, kTestHeight)
 
constexpr SkRect kRenderBounds
 
constexpr SkScalar kMiterExtremeDiamondOffsetX = kRenderHeight * 0.04
 
constexpr SkScalar kMiter10DiamondOffsetX = kRenderHeight * 0.051
 
constexpr SkScalar kMiter4DiamondOffsetX = kRenderHeight * 0.14
 
constexpr SkScalar kMiterExtremeDiamondOffsetY = kRenderWidth * 0.04
 
constexpr SkScalar kMiter10DiamondOffsetY = kRenderWidth * 0.051
 
constexpr SkScalar kMiter4DiamondOffsetY = kRenderWidth * 0.14
 
constexpr SkScalar kXOffset0 = kRenderCenterX + 0.5
 
constexpr SkScalar kXOffsetL1 = kXOffset0 - kMiter4DiamondOffsetX
 
constexpr SkScalar kXOffsetL2 = kXOffsetL1 - kMiter10DiamondOffsetX
 
constexpr SkScalar kXOffsetL3 = kXOffsetL2 - kMiter10DiamondOffsetX
 
constexpr SkScalar kXOffsetR1 = kXOffset0 + kMiter4DiamondOffsetX
 
constexpr SkScalar kXOffsetR2 = kXOffsetR1 + kMiterExtremeDiamondOffsetX
 
constexpr SkScalar kXOffsetR3 = kXOffsetR2 + kMiterExtremeDiamondOffsetX
 
constexpr SkPoint kVerticalMiterDiamondPoints []
 
const int kVerticalMiterDiamondPointCount
 
constexpr SkScalar kYOffset0 = kRenderCenterY + 0.5
 
constexpr SkScalar kYOffsetU1 = kXOffset0 - kMiter4DiamondOffsetY
 
constexpr SkScalar kYOffsetU2 = kYOffsetU1 - kMiter10DiamondOffsetY
 
constexpr SkScalar kYOffsetU3 = kYOffsetU2 - kMiter10DiamondOffsetY
 
constexpr SkScalar kYOffsetD1 = kXOffset0 + kMiter4DiamondOffsetY
 
constexpr SkScalar kYOffsetD2 = kYOffsetD1 + kMiterExtremeDiamondOffsetY
 
constexpr SkScalar kYOffsetD3 = kYOffsetD2 + kMiterExtremeDiamondOffsetY
 
const SkPoint kHorizontalMiterDiamondPoints []
 
const int kHorizontalMiterDiamondPointCount
 
static const float kMatrix [20]
 
static const sk_sp< SkImage > kTestImage1 = MakeTestImage(10, 10, SK_ColorGREEN)
 
static const sk_sp< SkImage > kTestAlphaImage1
 
static const SkMatrix kTestMatrix1
 
static const SkMatrix kTestMatrix2
 
static constexpr int kTestStopCount = 3
 
static constexpr DlColor kTestColors [kTestStopCount]
 
static const DlColor kTestAlphaColors [kTestStopCount]
 
static constexpr float kTestStops [kTestStopCount]
 
static constexpr float kTestStops2 [kTestStopCount]
 
static constexpr SkPoint kTestPoints [2]
 
static constexpr SkPoint kTestPoints2 [2]
 
static const sk_sp< SkShader > kShaderA = SkShaders::Color(SK_ColorRED)
 
static const sk_sp< SkShader > kShaderB = SkShaders::Color(SK_ColorBLUE)
 
static const sk_sp< SkShader > kTestUnknownShader
 
static const sk_sp< SkShader > kTestAlphaUnknownShader
 
constexpr SkPoint kEndPoints []
 
const DlColor kColors []
 
constexpr float kStops []
 
constexpr float kRotateColorMatrix [20]
 
constexpr float kInvertColorMatrix [20]
 
const SkScalar kTestDashes1 [] = {4.0, 2.0}
 
const SkScalar kTestDashes2 [] = {1.0, 1.5}
 
constexpr SkPoint TestPoints []
 
static DlImageSampling kNearestSampling = DlImageSampling::kNearestNeighbor
 
static DlImageSampling kLinearSampling = DlImageSampling::kLinear
 
static auto TestImage1 = MakeTestImage(40, 40, 5)
 
static auto TestImage2 = MakeTestImage(50, 50, 5)
 
static const sk_sp< SkBlender > kTestBlender1
 
static const sk_sp< SkBlender > kTestBlender2
 
static const sk_sp< SkBlender > kTestBlender3
 
static const std::shared_ptr< DlColorSourcekTestSource2
 
static const std::shared_ptr< DlColorSourcekTestSource3
 
static const std::shared_ptr< DlColorSourcekTestSource4
 
static const std::shared_ptr< DlColorSourcekTestSource5
 
static const DlBlendColorFilter kTestBlendColorFilter1 (DlColor::kRed(), DlBlendMode::kDstATop)
 
static const DlBlendColorFilter kTestBlendColorFilter2 (DlColor::kBlue(), DlBlendMode::kDstATop)
 
static const DlBlendColorFilter kTestBlendColorFilter3 (DlColor::kRed(), DlBlendMode::kDstIn)
 
static const DlMatrixColorFilter kTestMatrixColorFilter1 (kRotateColorMatrix)
 
static const DlMatrixColorFilter kTestMatrixColorFilter2 (kInvertColorMatrix)
 
static const DlBlurImageFilter kTestBlurImageFilter1 (5.0, 5.0, DlTileMode::kClamp)
 
static const DlBlurImageFilter kTestBlurImageFilter2 (6.0, 5.0, DlTileMode::kClamp)
 
static const DlBlurImageFilter kTestBlurImageFilter3 (5.0, 6.0, DlTileMode::kClamp)
 
static const DlBlurImageFilter kTestBlurImageFilter4 (5.0, 5.0, DlTileMode::kDecal)
 
static const DlDilateImageFilter kTestDilateImageFilter1 (5.0, 5.0)
 
static const DlDilateImageFilter kTestDilateImageFilter2 (6.0, 5.0)
 
static const DlDilateImageFilter kTestDilateImageFilter3 (5.0, 6.0)
 
static const DlErodeImageFilter kTestErodeImageFilter1 (5.0, 5.0)
 
static const DlErodeImageFilter kTestErodeImageFilter2 (6.0, 5.0)
 
static const DlErodeImageFilter kTestErodeImageFilter3 (5.0, 6.0)
 
static const DlMatrixImageFilter kTestMatrixImageFilter1 (SkMatrix::RotateDeg(45), kNearestSampling)
 
static const DlMatrixImageFilter kTestMatrixImageFilter2 (SkMatrix::RotateDeg(85), kNearestSampling)
 
static const DlMatrixImageFilter kTestMatrixImageFilter3 (SkMatrix::RotateDeg(45), kLinearSampling)
 
static const DlComposeImageFilter kTestComposeImageFilter1 (kTestBlurImageFilter1, kTestMatrixImageFilter1)
 
static const DlComposeImageFilter kTestComposeImageFilter2 (kTestBlurImageFilter2, kTestMatrixImageFilter1)
 
static const DlComposeImageFilter kTestComposeImageFilter3 (kTestBlurImageFilter1, kTestMatrixImageFilter2)
 
static const DlColorFilterImageFilter kTestCFImageFilter1 (kTestBlendColorFilter1)
 
static const DlColorFilterImageFilter kTestCFImageFilter2 (kTestBlendColorFilter2)
 
static const std::shared_ptr< DlPathEffectkTestPathEffect1
 
static const std::shared_ptr< DlPathEffectkTestPathEffect2
 
static const DlBlurMaskFilter kTestMaskFilter1 (kNormal_SkBlurStyle, 3.0)
 
static const DlBlurMaskFilter kTestMaskFilter2 (kNormal_SkBlurStyle, 5.0)
 
static const DlBlurMaskFilter kTestMaskFilter3 (kSolid_SkBlurStyle, 3.0)
 
static const DlBlurMaskFilter kTestMaskFilter4 (kInner_SkBlurStyle, 3.0)
 
static const DlBlurMaskFilter kTestMaskFilter5 (kOuter_SkBlurStyle, 3.0)
 
static const SkRRect kTestRRect = SkRRect::MakeRectXY(kTestBounds, 5, 5)
 
static const SkRRect kTestRRectRect = SkRRect::MakeRect(kTestBounds)
 
static const SkRRect kTestInnerRRect
 
static const SkPath kTestPathRect = SkPath::Rect(kTestBounds)
 
static const SkPath kTestPathOval = SkPath::Oval(kTestBounds)
 
static const SkPath kTestPath1
 
static const SkPath kTestPath2
 
static const SkPath kTestPath3
 
static const SkMatrix kTestMatrix1 = SkMatrix::Scale(2, 2)
 
static const SkMatrix kTestMatrix2 = SkMatrix::RotateDeg(45)
 
static std::shared_ptr< const DlVerticesTestVertices1
 
static std::shared_ptr< const DlVerticesTestVertices2
 
static constexpr int kTestDivs1 [] = {10, 20, 30}
 
static constexpr int kTestDivs2 [] = {15, 20, 25}
 
static constexpr int kTestDivs3 [] = {15, 25}
 
static constexpr SkCanvas::Lattice::RectType kTestRTypes []
 
static constexpr SkColor kTestLatticeColors []
 
static constexpr SkIRect kTestLatticeSrcRect = {1, 1, 39, 39}
 
static sk_sp< SkPicture > TestPicture1 = MakeTestPicture(20, 20, SK_ColorGREEN)
 
static sk_sp< SkPicture > TestPicture2 = MakeTestPicture(25, 25, SK_ColorBLUE)
 
static sk_sp< DisplayListTestDisplayList1
 
static sk_sp< DisplayListTestDisplayList2
 
static sk_sp< SkTextBlob > TestBlob1 = MakeTextBlob("TestBlob1")
 
static sk_sp< SkTextBlob > TestBlob2 = MakeTextBlob("TestBlob2")
 
std::vector< DisplayListInvocationGroupallGroups
 
FML_THREAD_LOCAL fml::ThreadLocalUniquePtr< int > current_context
 
const std::string kKernelFileName = "plugin_registrant_kernel_blob.bin"
 
const std::string kElfFileName = "plugin_registrant_app_elf_snapshot.so"
 
constexpr uint64_t kScanCodeKeyA = 0x1e
 
constexpr uint64_t kVirtualKeyA = 0x41
 
static std::shared_ptr< MockKeyResponseControllerstored_response_controller
 
constexpr LRESULT kWmResultZero = 0
 
constexpr LRESULT kWmResultDefault = 0xDEADC0DE
 
constexpr LRESULT kWmResultDontCheck = 0xFFFF1234
 
constexpr const char * kDefaultAOTAppELFFileName = "app_elf_snapshot.so"
 
constexpr const char * kDefaultAOTAppELFSplitFileName
 
constexpr SkISize kSize = SkISize::Make(64, 64)
 
static constexpr SkRect kEmptyRect = SkRect::MakeEmpty()
 
static std::mutex gIsolateResolversMutex
 
static std::map< Dart_Isolate, std::weak_ptr< TestDartNativeResolver > > gIsolateResolvers
 
tonic::DartWeakPersistentValue global_weak_persistent_value
 

Typedef Documentation

◆ AutoSaveLayerTests

◆ BackdropFilterLayerTest

◆ BackdropLayerDiffTest

◆ Builder

◆ CanvasTest

using flutter::testing::CanvasTest = typedef CanvasTestBase<::testing::Test>

Definition at line 30 of file canvas_test.h.

◆ CheckerBoardLayerTest

◆ ClipPathLayerTest

◆ ClipRectLayerTest

◆ ClipRRectLayerTest

◆ ColorFilterLayerTest

◆ ContainerLayerDiffTest

◆ ContainerLayerTest

◆ Continuation

◆ CreateVsyncWaiter

using flutter::testing::CreateVsyncWaiter = typedef std::function<std::unique_ptr<VsyncWaiter>()>

Definition at line 15 of file vsync_waiters_test.h.

◆ CvRenderer

typedef const std::function<void(SkCanvas*, const SkPaint&)> flutter::testing::CvRenderer

Definition at line 235 of file display_list_canvas_unittests.cc.

◆ CvSetup

typedef const std::function<void(SkCanvas*, SkPaint&)> flutter::testing::CvSetup

Definition at line 234 of file display_list_canvas_unittests.cc.

◆ DartLifecycleTest

◆ DartState

Definition at line 14 of file dart_state_unittest.cc.

◆ DartVMTest

Definition at line 14 of file dart_vm_unittests.cc.

◆ DisplayListCanvas

Definition at line 2235 of file display_list_canvas_unittests.cc.

◆ DisplayListLayerDiffTest

◆ DisplayListLayerTest

◆ DlInvoker

◆ DlRenderer

◆ EmbedderA11yTest

◆ EmbedderTest

◆ Generator

Definition at line 20 of file input_events_unittests.cc.

◆ HooksTest

Definition at line 21 of file hooks_unittests.cc.

◆ ImageFilterLayerDiffTest

◆ ImageFilterLayerTest

◆ IntPipeline

Definition at line 18 of file pipeline_unittests.cc.

◆ LayerTest

using flutter::testing::LayerTest = typedef LayerTestBase<::testing::Test>

Definition at line 218 of file layer_test.h.

◆ LogMessageCallback

using flutter::testing::LogMessageCallback = typedef std::function<void(const char* tag, const char* message)>

Definition at line 31 of file embedder_test_context.h.

◆ MockCanvasTest

Definition at line 13 of file mock_canvas_unittests.cc.

◆ MockLayerTest

Definition at line 14 of file mock_layer_unittests.cc.

◆ NativeEntry

using flutter::testing::NativeEntry = typedef std::function<void(Dart_NativeArguments)>

Definition at line 28 of file test_dart_native_resolver.h.

◆ OpacityLayerDiffTest

◆ OpacityLayerTest

Definition at line 20 of file opacity_layer_unittests.cc.

◆ PerformanceOverlayLayerTest

◆ PersistentCacheTest

◆ PhysicalShapeLayerDiffTest

◆ PhysicalShapeLayerTest

◆ PlatformViewLayerTest

◆ SemanticsActionCallback

◆ SemanticsNodeCallback

◆ SemanticsUpdateBuilderTest

◆ ShaderMaskLayerTest

◆ TextureLayerDiffTest

◆ TextureLayerTest

Definition at line 17 of file texture_layer_unittests.cc.

◆ TransformLayerLayerDiffTest

◆ TransformLayerTest

◆ UniqueAOTData

Definition at line 41 of file embedder_test_context.h.

◆ UniqueEngine

◆ UniqueLoadedELF

using flutter::testing::UniqueLoadedELF = typedef std::unique_ptr<Dart_LoadedElf, LoadedELFDeleter>

Definition at line 31 of file elf_loader.h.

◆ UnitlessTime

using flutter::testing::UnitlessTime = typedef int

Definition at line 16 of file input_events_unittests.cc.

◆ WmCharInfo

◆ WmDeadCharInfo

◆ WmFieldContext

◆ WmFieldExtended

◆ WmFieldPrevState

◆ WmFieldTransitionState

◆ WmKeyDownInfo

◆ WmKeyUpInfo

◆ WmSysKeyDownInfo

◆ WmSysKeyUpInfo

Enumeration Type Documentation

◆ BackendType

◆ BenchmarkAttributes

◆ DebuggerStatus

Enumerator
kDontKnow 
kAttached 

Definition at line 13 of file debugger_detection.h.

◆ EmbedderTestContextType

◆ MemsetPatternOp

◆ WmFieldContext

Enumerator
kNoContext 
kAltHeld 

Definition at line 33 of file wm_builders.h.

33  {
34  kNoContext = 0,
35  kAltHeld = 1,
enum flutter::testing::WmFieldContext WmFieldContext

◆ WmFieldExtended

Enumerator
kNotExtended 
kExtended 

Definition at line 28 of file wm_builders.h.

28  {
29  kNotExtended = 0,
30  kExtended = 1,
enum flutter::testing::WmFieldExtended WmFieldExtended

◆ WmFieldPrevState

Enumerator
kWasUp 
kWasDown 

Definition at line 38 of file wm_builders.h.

38  {
39  kWasUp = 0,
40  kWasDown = 1,
enum flutter::testing::WmFieldPrevState WmFieldPrevState

◆ WmFieldTransitionState

Enumerator
kBeingReleased 
kBeingPressed 

Definition at line 43 of file wm_builders.h.

43  {
44  kBeingReleased = 0,
45  kBeingPressed = 1,
enum flutter::testing::WmFieldTransitionState WmFieldTransitionState

Function Documentation

◆ _EventEquals()

testing::AssertionResult flutter::testing::_EventEquals ( const char *  expr_event,
const char *  expr_expected,
const FlutterKeyEvent event,
const FlutterKeyEvent expected 
)

Definition at line 62 of file test_keyboard.cc.

References _RETURN_IF_NOT_EQUALS, FlutterKeyEvent::character, FlutterKeyEvent::logical, FlutterKeyEvent::physical, FlutterKeyEvent::struct_size, FlutterKeyEvent::synthesized, and FlutterKeyEvent::type.

65  {
67  _RETURN_IF_NOT_EQUALS(event.type, expected.type);
68  _RETURN_IF_NOT_EQUALS(event.physical, expected.physical);
69  _RETURN_IF_NOT_EQUALS(event.logical, expected.logical);
70  if ((event.character == nullptr) != (expected.character == nullptr) ||
71  strcmp(event.character, expected.character) != 0) {
72  return ::testing::AssertionFailure()
73  << "Expected equality of these values:\n expected.character\n "
74  << _print_character(expected.character) << "\n Actual: \n "
75  << _print_character(event.character);
76  }
78  return ::testing::AssertionSuccess();
79 }
const char * character
Definition: embedder.h:871
#define _RETURN_IF_NOT_EQUALS(val1, val2)
uint64_t logical
Definition: embedder.h:868
uint64_t physical
Definition: embedder.h:860
size_t struct_size
The size of this struct. Must be sizeof(FlutterKeyEvent).
Definition: embedder.h:846
bool synthesized
Definition: embedder.h:884
FlutterKeyEventType type
The event kind.
Definition: embedder.h:852

◆ AnnotateAttributes()

void flutter::testing::AnnotateAttributes ( unsigned  attributes,
benchmark::State &  state,
const DisplayListAttributeFlags  flags 
)

Definition at line 59 of file display_list_benchmarks.cc.

References flutter::DisplayListAttributeFlags::always_stroked(), flutter::DisplayListAttributeFlags::applies_anti_alias(), flutter::DisplayListAttributeFlags::applies_style(), kAntiAliasing_Flag, kFilledStyle_Flag, kHairlineStroke_Flag, and kStrokedStyle_Flag.

Referenced by BM_DrawArc(), BM_DrawCircle(), BM_DrawDRRect(), BM_DrawImage(), BM_DrawImageNine(), BM_DrawImageRect(), BM_DrawLine(), BM_DrawOval(), BM_DrawPath(), BM_DrawPoints(), BM_DrawRect(), BM_DrawRRect(), BM_DrawShadow(), BM_DrawTextBlob(), BM_DrawVertices(), and BM_SaveLayer().

61  {
62  if (flags.always_stroked()) {
63  state.counters["HairlineStroke"] =
64  attributes & kHairlineStroke_Flag ? 1 : 0;
65  }
66  if (flags.applies_style()) {
67  state.counters["HairlineStroke"] =
68  attributes & kHairlineStroke_Flag ? 1 : 0;
69  state.counters["StrokedStyle"] = attributes & kStrokedStyle_Flag ? 1 : 0;
70  state.counters["FilledStyle"] = attributes & kFilledStyle_Flag ? 1 : 0;
71  }
72  if (flags.applies_anti_alias()) {
73  state.counters["AntiAliasing"] = attributes & kAntiAliasing_Flag ? 1 : 0;
74  }
75 }
FlutterSemanticsFlag flags
AtkStateType state

◆ arraysEqual()

static void flutter::testing::arraysEqual ( const uint32_t *  ints,
const DlColor colors,
int  count 
)
static

Definition at line 14 of file display_list_color_unittests.cc.

Referenced by TEST().

16  {
17  for (int i = 0; i < count; i++) {
18  EXPECT_TRUE(ints[i] == colors[i]);
19  }
20 }

◆ BM_DrawArc()

void flutter::testing::BM_DrawArc ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes 
)

Definition at line 425 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawArc(), GetPaintForRun(), kArcSweepSetsToDraw, flutter::DisplayListOpFlags::kDrawArcNoCenterFlags, length, and flutter::DisplayListBuilder::setAttributesFromPaint().

427  {
428  auto canvas_provider = CreateCanvasProvider(backend_type);
429  DisplayListBuilder builder;
430  builder.setAttributesFromPaint(GetPaintForRun(attributes),
431  DisplayListOpFlags::kDrawArcNoCenterFlags);
432  AnnotateAttributes(attributes, state,
433  DisplayListOpFlags::kDrawArcNoCenterFlags);
434 
435  size_t length = state.range(0);
436  size_t canvas_size = length * 2;
437  canvas_provider->InitializeSurface(canvas_size, canvas_size);
438  auto canvas = canvas_provider->GetSurface()->getCanvas();
439 
440  SkScalar starting_angle = 0.0f;
441  SkScalar offset = 0.5f;
442 
443  // Just some random sweeps that will mostly circumnavigate the circle
444  std::vector<SkScalar> segment_sweeps = {5.5f, -10.0f, 42.0f, 71.7f, 90.0f,
445  37.5f, 17.9f, 32.0f, 379.4f};
446 
447  SkRect bounds = SkRect::MakeLTRB(0, 0, length, length);
448 
449  state.counters["DrawCallCount"] = kArcSweepSetsToDraw * segment_sweeps.size();
450  for (size_t i = 0; i < kArcSweepSetsToDraw; i++) {
451  for (SkScalar sweep : segment_sweeps) {
452  builder.drawArc(bounds, starting_angle, sweep, false);
453  starting_angle += sweep + 5.0f;
454  }
455  bounds.offset(offset, offset);
456  if (bounds.right() > canvas_size) {
457  bounds.offset(-canvas_size, 0);
458  }
459  if (bounds.bottom() > canvas_size) {
460  bounds.offset(0, -canvas_size);
461  }
462  }
463 
464  auto display_list = builder.Build();
465 
466  // We only want to time the actual rasterization.
467  for ([[maybe_unused]] auto _ : state) {
468  display_list->RenderTo(canvas);
469  canvas_provider->GetSurface()->flushAndSubmit(true);
470  }
471 
472  auto filename = canvas_provider->BackendName() + "-DrawArc-" +
473  std::to_string(state.range(0)) + ".png";
474  canvas_provider->Snapshot(filename);
475 }
constexpr size_t kArcSweepSetsToDraw
size_t length
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawCircle()

void flutter::testing::BM_DrawCircle ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes 
)

Definition at line 224 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawCircle(), GetPaintForRun(), kCirclesToDraw, flutter::DisplayListOpFlags::kDrawCircleFlags, length, and flutter::DisplayListBuilder::setAttributesFromPaint().

226  {
227  auto canvas_provider = CreateCanvasProvider(backend_type);
228  DisplayListBuilder builder;
229  builder.setAttributesFromPaint(GetPaintForRun(attributes),
230  DisplayListOpFlags::kDrawCircleFlags);
231  AnnotateAttributes(attributes, state, DisplayListOpFlags::kDrawCircleFlags);
232 
233  size_t length = state.range(0);
234  size_t canvas_size = length * 2;
235  canvas_provider->InitializeSurface(canvas_size, canvas_size);
236  auto canvas = canvas_provider->GetSurface()->getCanvas();
237 
238  SkScalar radius = length / 2.0f;
239  const SkScalar offset = 0.5f;
240 
241  SkPoint center = SkPoint::Make(radius, radius);
242 
243  state.counters["DrawCallCount"] = kCirclesToDraw;
244  for (size_t i = 0; i < kCirclesToDraw; i++) {
245  builder.drawCircle(center, radius);
246  center.offset(offset, offset);
247  if (center.x() + radius > canvas_size) {
248  center.set(radius, center.y());
249  }
250  if (center.y() + radius > canvas_size) {
251  center.set(center.x(), radius);
252  }
253  }
254  auto display_list = builder.Build();
255 
256  // We only want to time the actual rasterization.
257  for ([[maybe_unused]] auto _ : state) {
258  display_list->RenderTo(canvas);
259  canvas_provider->GetSurface()->flushAndSubmit(true);
260  }
261 
262  auto filename = canvas_provider->BackendName() + "-DrawCircle-" +
263  std::to_string(state.range(0)) + ".png";
264  canvas_provider->Snapshot(filename);
265 }
size_t length
constexpr size_t kCirclesToDraw
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawDRRect()

void flutter::testing::BM_DrawDRRect ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes,
SkRRect::Type  type 
)

Definition at line 351 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawDRRect(), GetPaintForRun(), flutter::DisplayListOpFlags::kDrawDRRectFlags, kDRRectsToDraw, length, and flutter::DisplayListBuilder::setAttributesFromPaint().

354  {
355  auto canvas_provider = CreateCanvasProvider(backend_type);
356  DisplayListBuilder builder;
357  builder.setAttributesFromPaint(GetPaintForRun(attributes),
358  DisplayListOpFlags::kDrawDRRectFlags);
359  AnnotateAttributes(attributes, state, DisplayListOpFlags::kDrawDRRectFlags);
360 
361  size_t length = state.range(0);
362  size_t canvas_size = length * 2;
363  canvas_provider->InitializeSurface(canvas_size, canvas_size);
364  auto canvas = canvas_provider->GetSurface()->getCanvas();
365 
366  SkVector radii[4];
367  switch (type) {
368  case SkRRect::Type::kSimple_Type:
369  radii[0] = SkVector::Make(5.0f, 5.0f);
370  radii[1] = SkVector::Make(5.0f, 5.0f);
371  radii[2] = SkVector::Make(5.0f, 5.0f);
372  radii[3] = SkVector::Make(5.0f, 5.0f);
373  break;
374  case SkRRect::Type::kNinePatch_Type:
375  radii[0] = SkVector::Make(5.0f, 7.0f);
376  radii[1] = SkVector::Make(3.0f, 7.0f);
377  radii[2] = SkVector::Make(3.0f, 4.0f);
378  radii[3] = SkVector::Make(5.0f, 4.0f);
379  break;
380  case SkRRect::Type::kComplex_Type:
381  radii[0] = SkVector::Make(5.0f, 4.0f);
382  radii[1] = SkVector::Make(4.0f, 5.0f);
383  radii[2] = SkVector::Make(3.0f, 6.0f);
384  radii[3] = SkVector::Make(8.0f, 7.0f);
385  break;
386  default:
387  break;
388  }
389 
390  const SkScalar offset = 0.5f;
391  const SkScalar multiplier = length / 16.0f;
392  SkRRect rrect, rrect_2;
393 
394  SkVector set_radii[4];
395  for (size_t i = 0; i < 4; i++) {
396  set_radii[i] = radii[i] * multiplier;
397  }
398  rrect.setRectRadii(SkRect::MakeLTRB(0, 0, length, length), set_radii);
399 
400  state.counters["DrawCallCount"] = kDRRectsToDraw;
401  for (size_t i = 0; i < kDRRectsToDraw; i++) {
402  rrect.inset(0.1f * length, 0.1f * length, &rrect_2);
403  builder.drawDRRect(rrect, rrect_2);
404  rrect.offset(offset, offset);
405  if (rrect.rect().right() > canvas_size) {
406  rrect.offset(-canvas_size, 0);
407  }
408  if (rrect.rect().bottom() > canvas_size) {
409  rrect.offset(0, -canvas_size);
410  }
411  }
412  auto display_list = builder.Build();
413 
414  // We only want to time the actual rasterization.
415  for ([[maybe_unused]] auto _ : state) {
416  display_list->RenderTo(canvas);
417  canvas_provider->GetSurface()->flushAndSubmit(true);
418  }
419 
420  auto filename = canvas_provider->BackendName() + "-DrawDRRect-" +
421  std::to_string(state.range(0)) + ".png";
422  canvas_provider->Snapshot(filename);
423 }
enum flutter::testing::@1969::KeyboardChange::Type type
constexpr size_t kDRRectsToDraw
size_t length
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawImage()

void flutter::testing::BM_DrawImage ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes,
DlImageSampling  options,
bool  upload_bitmap 
)

Definition at line 939 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawImage(), GetPaintForRun(), ImageFromBitmapWithNewID(), flutter::DisplayListOpFlags::kDrawImageWithPaintFlags, kImagesToDraw, flutter::DlImage::Make(), and flutter::DisplayListBuilder::setAttributesFromPaint().

943  {
944  auto canvas_provider = CreateCanvasProvider(backend_type);
945  DisplayListBuilder builder;
946  builder.setAttributesFromPaint(GetPaintForRun(attributes),
947  DisplayListOpFlags::kDrawImageWithPaintFlags);
948  AnnotateAttributes(attributes, state,
949  DisplayListOpFlags::kDrawImageWithPaintFlags);
950 
951  size_t bitmap_size = state.range(0);
952  size_t canvas_size = 2 * bitmap_size;
953  canvas_provider->InitializeSurface(canvas_size, canvas_size);
954  auto canvas = canvas_provider->GetSurface()->getCanvas();
955 
956  sk_sp<SkImage> image;
957  sk_sp<SkSurface> offscreen;
958  SkBitmap bitmap;
959 
960  if (upload_bitmap) {
961  SkImageInfo info = SkImageInfo::Make(bitmap_size, bitmap_size,
962  SkColorType::kRGBA_8888_SkColorType,
963  SkAlphaType::kPremul_SkAlphaType);
964  bitmap.allocPixels(info, 0);
965  bitmap.eraseColor(SK_ColorBLUE);
966  } else {
967  offscreen = canvas_provider->MakeOffscreenSurface(bitmap_size, bitmap_size);
968  offscreen->getCanvas()->clear(SK_ColorRED);
969  }
970 
971  SkScalar offset = 0.5f;
972  SkPoint dst = SkPoint::Make(0, 0);
973 
974  state.counters["DrawCallCount"] = kImagesToDraw;
975  for (size_t i = 0; i < kImagesToDraw; i++) {
976  image = upload_bitmap ? ImageFromBitmapWithNewID(bitmap)
977  : offscreen->makeImageSnapshot();
978  builder.drawImage(DlImage::Make(image), dst, options, true);
979 
980  dst.offset(offset, offset);
981  if (dst.x() + bitmap_size > canvas_size) {
982  dst.set(0, dst.y());
983  }
984  if (dst.y() + bitmap_size > canvas_size) {
985  dst.set(dst.x(), 0);
986  }
987  }
988 
989  auto display_list = builder.Build();
990 
991  for ([[maybe_unused]] auto _ : state) {
992  display_list->RenderTo(canvas);
993  canvas_provider->GetSurface()->flushAndSubmit(true);
994  }
995 
996  auto filename = canvas_provider->BackendName() + "-DrawImage-" +
997  (upload_bitmap ? "Upload-" : "Texture-") +
998  std::to_string(bitmap_size) + ".png";
999  canvas_provider->Snapshot(filename);
1000 }
constexpr size_t kImagesToDraw
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
sk_sp< SkImage > ImageFromBitmapWithNewID(const SkBitmap &bitmap)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawImageNine()

void flutter::testing::BM_DrawImageNine ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes,
const DlFilterMode  filter,
bool  upload_bitmap 
)

Definition at line 1102 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawImageNine(), FilterModeToString(), GetPaintForRun(), ImageFromBitmapWithNewID(), flutter::DisplayListOpFlags::kDrawImageNineWithPaintFlags, kImagesToDraw, flutter::DlImage::Make(), and flutter::DisplayListBuilder::setAttributesFromPaint().

1106  {
1107  auto canvas_provider = CreateCanvasProvider(backend_type);
1108  DisplayListBuilder builder;
1109  builder.setAttributesFromPaint(
1110  GetPaintForRun(attributes),
1111  DisplayListOpFlags::kDrawImageNineWithPaintFlags);
1112  AnnotateAttributes(attributes, state,
1113  DisplayListOpFlags::kDrawImageNineWithPaintFlags);
1114 
1115  size_t bitmap_size = state.range(0);
1116  size_t canvas_size = 2 * bitmap_size;
1117  canvas_provider->InitializeSurface(canvas_size, canvas_size);
1118  auto canvas = canvas_provider->GetSurface()->getCanvas();
1119 
1120  SkIRect center = SkIRect::MakeXYWH(bitmap_size / 4, bitmap_size / 4,
1121  bitmap_size / 2, bitmap_size / 2);
1122 
1123  sk_sp<SkImage> image;
1124  sk_sp<SkSurface> offscreen;
1125  SkBitmap bitmap;
1126 
1127  if (upload_bitmap) {
1128  SkImageInfo info = SkImageInfo::Make(bitmap_size, bitmap_size,
1129  SkColorType::kRGBA_8888_SkColorType,
1130  SkAlphaType::kPremul_SkAlphaType);
1131  bitmap.allocPixels(info, 0);
1132  bitmap.eraseColor(SK_ColorBLUE);
1133  } else {
1134  offscreen = canvas_provider->MakeOffscreenSurface(bitmap_size, bitmap_size);
1135  offscreen->getCanvas()->clear(SK_ColorRED);
1136  }
1137 
1138  SkScalar offset = 0.5f;
1139  SkRect dst =
1140  SkRect::MakeXYWH(0.0f, 0.0f, bitmap_size * 0.75f, bitmap_size * 0.75f);
1141 
1142  state.counters["DrawCallCount"] = kImagesToDraw;
1143  for (size_t i = 0; i < kImagesToDraw; i++) {
1144  image = upload_bitmap ? ImageFromBitmapWithNewID(bitmap)
1145  : offscreen->makeImageSnapshot();
1146  builder.drawImageNine(DlImage::Make(image), center, dst, filter, true);
1147  dst.offset(offset, offset);
1148  if (dst.right() > canvas_size) {
1149  dst.offsetTo(0, dst.y());
1150  }
1151  if (dst.bottom() > canvas_size) {
1152  dst.offsetTo(dst.x(), 0);
1153  }
1154  }
1155 
1156  auto display_list = builder.Build();
1157 
1158  for ([[maybe_unused]] auto _ : state) {
1159  display_list->RenderTo(canvas);
1160  canvas_provider->GetSurface()->flushAndSubmit(true);
1161  }
1162 
1163  auto filename = canvas_provider->BackendName() + "-DrawImageNine-" +
1164  (upload_bitmap ? "Upload-" : "Texture-") +
1165  FilterModeToString(filter) + "-" +
1166  std::to_string(bitmap_size) + ".png";
1167  canvas_provider->Snapshot(filename);
1168 }
constexpr size_t kImagesToDraw
std::string FilterModeToString(const DlFilterMode mode)
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
sk_sp< SkImage > ImageFromBitmapWithNewID(const SkBitmap &bitmap)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawImageRect()

void flutter::testing::BM_DrawImageRect ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes,
DlImageSampling  options,
SkCanvas::SrcRectConstraint  constraint,
bool  upload_bitmap 
)

Definition at line 1017 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), ConstraintToString(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawImageRect(), GetPaintForRun(), ImageFromBitmapWithNewID(), flutter::DisplayListOpFlags::kDrawImageRectWithPaintFlags, kImagesToDraw, flutter::DlImage::Make(), and flutter::DisplayListBuilder::setAttributesFromPaint().

1022  {
1023  auto canvas_provider = CreateCanvasProvider(backend_type);
1024  DisplayListBuilder builder;
1025  builder.setAttributesFromPaint(
1026  GetPaintForRun(attributes),
1027  DisplayListOpFlags::kDrawImageRectWithPaintFlags);
1028  AnnotateAttributes(attributes, state,
1029  DisplayListOpFlags::kDrawImageRectWithPaintFlags);
1030 
1031  size_t bitmap_size = state.range(0);
1032  size_t canvas_size = 2 * bitmap_size;
1033  canvas_provider->InitializeSurface(canvas_size, canvas_size);
1034  auto canvas = canvas_provider->GetSurface()->getCanvas();
1035 
1036  sk_sp<SkImage> image;
1037  sk_sp<SkSurface> offscreen;
1038  SkBitmap bitmap;
1039 
1040  if (upload_bitmap) {
1041  SkImageInfo info = SkImageInfo::Make(bitmap_size, bitmap_size,
1042  SkColorType::kRGBA_8888_SkColorType,
1043  SkAlphaType::kPremul_SkAlphaType);
1044  bitmap.allocPixels(info, 0);
1045  bitmap.eraseColor(SK_ColorBLUE);
1046  } else {
1047  offscreen = canvas_provider->MakeOffscreenSurface(bitmap_size, bitmap_size);
1048  offscreen->getCanvas()->clear(SK_ColorRED);
1049  }
1050 
1051  SkScalar offset = 0.5f;
1052  SkRect src = SkRect::MakeXYWH(bitmap_size / 4.0f, bitmap_size / 4.0f,
1053  bitmap_size / 2.0f, bitmap_size / 2.0f);
1054  SkRect dst =
1055  SkRect::MakeXYWH(0.0f, 0.0f, bitmap_size * 0.75f, bitmap_size * 0.75f);
1056 
1057  state.counters["DrawCallCount"] = kImagesToDraw;
1058  for (size_t i = 0; i < kImagesToDraw; i++) {
1059  image = upload_bitmap ? ImageFromBitmapWithNewID(bitmap)
1060  : offscreen->makeImageSnapshot();
1061  builder.drawImageRect(DlImage::Make(image), src, dst, options, true,
1062  constraint);
1063  dst.offset(offset, offset);
1064  if (dst.right() > canvas_size) {
1065  dst.offsetTo(0, dst.y());
1066  }
1067  if (dst.bottom() > canvas_size) {
1068  dst.offsetTo(dst.x(), 0);
1069  }
1070  }
1071 
1072  auto display_list = builder.Build();
1073 
1074  for ([[maybe_unused]] auto _ : state) {
1075  display_list->RenderTo(canvas);
1076  canvas_provider->GetSurface()->flushAndSubmit(true);
1077  }
1078 
1079  auto filename = canvas_provider->BackendName() + "-DrawImageRect-" +
1080  (upload_bitmap ? "Upload-" : "Texture-") +
1081  ConstraintToString(constraint) + "-" +
1082  std::to_string(bitmap_size) + ".png";
1083  canvas_provider->Snapshot(filename);
1084 }
constexpr size_t kImagesToDraw
std::string ConstraintToString(SkCanvas::SrcRectConstraint constraint)
SkPaint GetPaintForRun(unsigned attributes)
AtkStateType state
std::unique_ptr< CanvasProvider > CreateCanvasProvider(BackendType backend_type)
sk_sp< SkImage > ImageFromBitmapWithNewID(const SkBitmap &bitmap)
void AnnotateAttributes(unsigned attributes, benchmark::State &state, const DisplayListAttributeFlags flags)

◆ BM_DrawLine()

void flutter::testing::BM_DrawLine ( benchmark::State &  state,
BackendType  backend_type,
unsigned  attributes 
)

Definition at line 94 of file display_list_benchmarks.cc.

References AnnotateAttributes(), flutter::DisplayListBuilder::Build(), CreateCanvasProvider(), flutter::DisplayListBuilder::drawLine(), GetPaintForRun(), flutter::DisplayListOpFlags::kDrawLineFlags, kLinesToDraw, length, and flutter::DisplayListBuilder::setAttributesFromPaint().

96  {
97  auto canvas_provider = CreateCanvasProvider(backend_type);
98  DisplayListBuilder builder;
99  builder.setAttributesFromPaint(GetPaintForRun(attributes),
100  DisplayListOpFlags::kDrawLineFlags);
101  AnnotateAttributes(attributes, state, DisplayListOpFlags::kDrawLineFlags);
102 
103  size_t length = state.range(0);
104 
105  canvas_provider->InitializeSurface(length, length);
106  auto canvas = canvas_provider->GetSurface()->getCanvas();
107 
108  state.counters["DrawCallCount"] = kLinesToDraw;
109  for (size_t i = 0; i < kLinesToDraw; i++) {
110  builder.drawLine(SkPoint::Make(i % length, 0),
111  SkPoint::Make(length - i % length, length));
112  }
113 
114  auto display_list = builder.Build();
115 
116  // We only want to time the actual rasterization.
117  for ([[maybe_unused]] auto _ : state) {
118  display_list->RenderTo(canvas);
119  canvas_provider->GetSurface()->flushAndSubmit(true);