#include "chrome/browser/ui/views/tabs/overflow_view.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/numerics/safe_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/layout/layout_types.h"
#include "ui/views/test/test_views.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/view_class_properties.h"
class OverflowViewTest : public testing::Test { … };
constexpr gfx::Size OverflowViewTest::kDefaultParentSize;
constexpr gfx::Size OverflowViewTest::kPreferredSize;
constexpr gfx::Size OverflowViewTest::kMinimumSize;
constexpr gfx::Size OverflowViewTest::kPreferredSize2;
constexpr gfx::Size OverflowViewTest::kMinimumSize2;
TEST_F(OverflowViewTest, SizesNoFlexRules) { … }
TEST_F(OverflowViewTest, SizesNoFlexRulesIndicatorIsLarger) { … }
TEST_F(OverflowViewTest, SizesNoFlexRulesVertical) { … }
TEST_F(OverflowViewTest, SizesNoFlexRulesIndicatorIsLargerVertical) { … }
class OverflowViewLayoutTest : public OverflowViewTest { … };
constexpr gfx::Size OverflowViewLayoutTest::kPrimaryMinimumSize;
constexpr gfx::Size OverflowViewLayoutTest::kPrimaryPreferredSize;
constexpr gfx::Size OverflowViewLayoutTest::kIndicatorMinimumSize;
constexpr gfx::Size OverflowViewLayoutTest::kIndicatorPreferredSize;
TEST_F(OverflowViewLayoutTest, SizeToPreferredSizeIndicatorSmallerThanPrimary) { … }
TEST_F(OverflowViewLayoutTest, SizeToPreferredSizeIndicatorLargerThanPrimary) { … }
TEST_F(OverflowViewLayoutTest, ScaleToMinimum) { … }
TEST_F(OverflowViewLayoutTest, Alignment) { … }
TEST_F(OverflowViewLayoutTest, ScaleToMinimumVertical) { … }
TEST_F(OverflowViewLayoutTest, AlignmentVertical) { … }
TEST_F(OverflowViewLayoutTest, PrimaryOnlyRespectsFlexRule) { … }
TEST_F(OverflowViewLayoutTest, HorizontalOverflow) { … }
TEST_F(OverflowViewLayoutTest, VerticalOverflow) { … }
TEST_F(OverflowViewLayoutTest, PrefixAndPostfixDisplayed) { … }
TEST_F(OverflowViewLayoutTest, PrefixOnlyDisplayed) { … }