Google is committed to advancing racial equity for Black communities. See how.

CollectedSizes

class CollectedSizes
kotlin.Any
   ↳ androidx.ui.test.CollectedSizes

Small utility class to provide convenient assertion for width and height for some Size. It also provides Density while asserting.

Summary

Public constructors
<init>(size: Size, density: Density)

Small utility class to provide convenient assertion for width and height for some Size.

Public methods
CollectedSizes
assertHeightEqualsTo(expectedHeight: Dp)

CollectedSizes
assertHeightEqualsTo(expectedHeightPx: Density.() -> Int)

CollectedSizes
assertIsSquareWithSize(expectedSize: Dp)

CollectedSizes
assertIsSquareWithSize(expectedSquarePx: Density.() -> Int)

CollectedSizes
assertWidthEqualsTo(expectedWidth: Dp)

CollectedSizes
assertWidthEqualsTo(expectedWidthPx: Density.() -> Int)

Public constructors

<init>

CollectedSizes(
    size: Size,
    density: Density)

Small utility class to provide convenient assertion for width and height for some Size. It also provides Density while asserting.

Public methods

assertHeightEqualsTo

fun assertHeightEqualsTo(expectedHeight: Dp): CollectedSizes

assertHeightEqualsTo

fun assertHeightEqualsTo(expectedHeightPx: Density.() -> Int): CollectedSizes

assertIsSquareWithSize

fun assertIsSquareWithSize(expectedSize: Dp): CollectedSizes

assertIsSquareWithSize

fun assertIsSquareWithSize(expectedSquarePx: Density.() -> Int): CollectedSizes

assertWidthEqualsTo

fun assertWidthEqualsTo(expectedWidth: Dp): CollectedSizes

assertWidthEqualsTo

fun assertWidthEqualsTo(expectedWidthPx: Density.() -> Int): CollectedSizes