#include "ui/views/layout/table_layout.h"
#include "base/memory/raw_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/border.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
namespace views {
namespace {
void ExpectViewBoundsEquals(int x, int y, int w, int h, const View* view) { … }
std::unique_ptr<View> CreateSizedView(const gfx::Size& size) { … }
class MinSizeView : public View { … };
std::unique_ptr<MinSizeView> CreateViewWithMinAndPref(const gfx::Size& min,
const gfx::Size& pref) { … }
BEGIN_METADATA(…)
}
class TableLayoutTest : public testing::Test { … };
class TableLayoutAlignmentTest : public testing::Test { … };
TEST_F(TableLayoutAlignmentTest, Fill) { … }
TEST_F(TableLayoutAlignmentTest, Leading) { … }
TEST_F(TableLayoutAlignmentTest, Center) { … }
TEST_F(TableLayoutAlignmentTest, Trailing) { … }
TEST_F(TableLayoutTest, TwoColumns) { … }
TEST_F(TableLayoutTest, LinkedSizes) { … }
TEST_F(TableLayoutTest, ColSpan1) { … }
TEST_F(TableLayoutTest, ColSpan2) { … }
TEST_F(TableLayoutTest, ColSpan3) { … }
TEST_F(TableLayoutTest, ColSpan4) { … }
TEST_F(TableLayoutTest, ColSpanStartSecondColumn) { … }
TEST_F(TableLayoutTest, SameSizeColumns) { … }
TEST_F(TableLayoutTest, HorizontalResizeTest1) { … }
TEST_F(TableLayoutTest, HorizontalResizeTest2) { … }
TEST_F(TableLayoutTest, HorizontalResizeTest3) { … }
TEST_F(TableLayoutTest, TestVerticalResize1) { … }
TEST_F(TableLayoutTest, Border) { … }
TEST_F(TableLayoutTest, FixedSize) { … }
TEST_F(TableLayoutTest, RowSpanWithPaddingRow) { … }
TEST_F(TableLayoutTest, RowSpan) { … }
TEST_F(TableLayoutTest, RowSpan2) { … }
TEST_F(TableLayoutTest, ColumnSpanResizing) { … }
TEST_F(TableLayoutTest, ColumnSpanResizing2) { … }
TEST_F(TableLayoutTest, ColumnSpanResizing3) { … }
TEST_F(TableLayoutTest, MinimumPreferredSize) { … }
TEST_F(TableLayoutTest, ColumnMinForcesPreferredWidth) { … }
TEST_F(TableLayoutTest, HonorsColumnMin) { … }
TEST_F(TableLayoutTest, TwoViewsOneSizeSmallerThanMinimum) { … }
TEST_F(TableLayoutTest, TwoViewsBothSmallerThanMinimumDifferentResizeWeights) { … }
TEST_F(TableLayoutTest, TwoViewsOneColumnUsePrefOtherFixed) { … }
TEST_F(TableLayoutTest, InsufficientChildren) { … }
TEST_F(TableLayoutTest, DistributeRemainingHeight) { … }
}