#include "ui/display/display.h"
#include <tuple>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/display_layout.h"
#include "ui/display/display_layout_builder.h"
namespace display {
Position;
TEST(DisplayLayoutTest, Empty) { … }
TEST(DisplayLayoutTest, SingleDisplayNoPlacements) { … }
TEST(DisplayLayoutTest, SingleDisplayNonRelevantPlacement) { … }
TEST(DisplayLayoutTest, SwapPrimaryDisplay) { … }
TEST(DisplayLayoutTest, SwapPrimaryDisplayThreeDisplays) { … }
TEST(DisplayLayoutTest, PlacementSortOrder) { … }
namespace {
class TwoDisplays
: public testing::TestWithParam<std::tuple<
gfx::Rect,
gfx::Rect,
DisplayPlacement::Position,
int,
int,
gfx::Rect,
gfx::Rect>> { … };
}
TEST_P(TwoDisplays, Placement) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
TEST(DisplayLayoutTest, MultipleDisplays) { … }
namespace {
class TwoDisplaysBottomRightReference
: public testing::TestWithParam<std::tuple<
gfx::Rect,
gfx::Rect,
DisplayPlacement::Position,
int,
int,
gfx::Rect,
gfx::Rect>> { … };
}
TEST_P(TwoDisplaysBottomRightReference, Placement) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
}