public class TestComponentTree extends ComponentTree
ComponentTree
for testing purposes. Leverages test classes to create component layouts
and exposes additional information useful for testing.Modifier and Type | Class and Description |
---|---|
static class |
TestComponentTree.Builder |
ComponentTree.MeasureListener, ComponentTree.NewLayoutStateReadyListener
INVALID_ID, mEventHandlers, mId
Modifier and Type | Method and Description |
---|---|
protected com.facebook.litho.LayoutState |
calculateLayoutState(Object lock,
ComponentContext context,
Component root,
int widthSpec,
int heightSpec,
boolean diffingEnabled,
com.facebook.litho.DiffNode diffNode,
int source) |
static TestComponentTree.Builder |
create(ComponentContext context,
Component root) |
List<Component> |
getSubComponents() |
consumePreviousRenderState, create, generateComponentTreeId, getBackgroundLayoutState, getContext, getLithoView, getNewLayoutStateReadyListener, getStateHandler, hasCompatibleLayout, isIncrementalMountEnabled, isReleased, release, setNewLayoutStateReadyListener, setRoot, setRootAndSizeSpec, setRootAndSizeSpec, setRootAndSizeSpecAsync, setRootAsync, setSizeSpec, setSizeSpec, setSizeSpecAsync
public static TestComponentTree.Builder create(ComponentContext context, Component root)
protected com.facebook.litho.LayoutState calculateLayoutState(@Nullable Object lock, ComponentContext context, Component root, int widthSpec, int heightSpec, boolean diffingEnabled, @Nullable com.facebook.litho.DiffNode diffNode, int source)
calculateLayoutState
in class ComponentTree