class FakeFlatlandSession
Defined at line 108 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.h
Public Methods
LinkToChild CreateView (FakeFlatlandSession & parent_session)
Links this session to |parent_session| and returns the LinkToChild, which should be used with
the parent session. If the return value drops out of scope, tests should call
ClearLinkToParent() on this session.
Defined at line 29 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.cc
std::unique_ptr<UberStruct> CreateUberStructWithCurrentTopology (TransformHandle local_root)
Allocates a new UberStruct with a local_topology rooted at |local_root|. If this session has
a LinkToParent, the child_transform_handle of that LinkToParent will be used instead.
Defined at line 67 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.cc
void PushUberStruct (std::unique_ptr<UberStruct> uber_struct)
Pushes |uber_struct| to the UberStructSystem and updates the system so that it represents
this session in the InstanceMap.
Defined at line 90 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.cc
void FakeFlatlandSession (std::shared_ptr<utils::DispatcherHolder> dispatcher_holder, std::shared_ptr<UberStructSystem> uber_struct_system, std::shared_ptr<LinkSystem> link_system, DisplayCompositorTestBase * harness)
Defined at line 110 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.h
TransformGraph & graph ()
Use the TransformGraph API to create and manage transforms and their children.
Defined at line 122 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.h
TransformHandle GetLinkChildTransformHandle ()
Returns the LinkToParent::child_transform_handle for this session.
Defined at line 125 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.h
void ClearLinkToParent ()
Clears the LinkToParent for this session, if one exists.
Defined at line 131 of file ../../src/ui/scenic/lib/flatland/engine/tests/common.h