#include "ui/compositor_extra/shadow.h"
#include "base/test/test_discardable_memory_allocator.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/shadow_util.h"
#include "ui/gfx/shadow_value.h"
namespace ui {
namespace {
FieldsAre;
constexpr int kElevationLarge = …;
constexpr int kElevationSmall = …;
constexpr int kElevationUnique = …;
gfx::Insets InsetsForElevation(int elevation) { … }
gfx::Size NineboxImageSizeForElevationAndCornerRadius(int elevation,
int corner_radius) { … }
gfx::Size MinContentSizeForElevationAndCornerRadius(int elevation,
int corner_radius) { … }
class ShadowTest : public testing::Test { … };
TEST_F(ShadowTest, SetContentBounds) { … }
TEST_F(ShadowTest, ResetLayerBoundsBySettingSameContentBounds) { … }
TEST_F(ShadowTest, AdjustElevationForSmallContents) { … }
TEST_F(ShadowTest, AdjustRoundedCornerRadius) { … }
TEST_F(ShadowTest, EvictUniquelyOwnedDetail) { … }
class ShadowColorTest : public ShadowTest,
public testing::WithParamInterface<gfx::ShadowStyle> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(ShadowColorTest, ElevationToColorsMap) { … }
}
}