Flutter Engine
 
Loading...
Searching...
No Matches
flutter::testing::MockLayerTree Class Reference

#include <diff_context_test.h>

Public Member Functions

 MockLayerTree (DlISize size=DlISize(1000, 1000))
 
ContainerLayerroot ()
 
const ContainerLayerroot () const
 
PaintRegionMappaint_region_map ()
 
const PaintRegionMappaint_region_map () const
 
const DlISizesize () const
 

Detailed Description

Definition at line 19 of file diff_context_test.h.

Constructor & Destructor Documentation

◆ MockLayerTree()

flutter::testing::MockLayerTree::MockLayerTree ( DlISize  size = DlISize(1000, 1000))
inlineexplicit

Definition at line 21 of file diff_context_test.h.

22 : root_(std::make_shared<ContainerLayer>()), size_(size) {}

Member Function Documentation

◆ paint_region_map() [1/2]

PaintRegionMap & flutter::testing::MockLayerTree::paint_region_map ( )
inline

Definition at line 27 of file diff_context_test.h.

27{ return paint_region_map_; }

Referenced by flutter::testing::DiffContextTest::DiffLayerTree(), and flutter::testing::TEST_F().

◆ paint_region_map() [2/2]

const PaintRegionMap & flutter::testing::MockLayerTree::paint_region_map ( ) const
inline

Definition at line 28 of file diff_context_test.h.

28{ return paint_region_map_; }

◆ root() [1/2]

◆ root() [2/2]

const ContainerLayer * flutter::testing::MockLayerTree::root ( ) const
inline

Definition at line 25 of file diff_context_test.h.

25{ return root_.get(); }

◆ size()

const DlISize & flutter::testing::MockLayerTree::size ( ) const
inline

Definition at line 30 of file diff_context_test.h.

30{ return size_; }

Referenced by flutter::testing::DiffContextTest::DiffLayerTree().


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