This source file includes following definitions.
- TEST
#include "ui/display/display_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
TEST(DisplayUtilTest, TestBlackListedDisplay) {
EXPECT_TRUE(IsDisplaySizeBlackListed(gfx::Size(10, 10)));
EXPECT_TRUE(IsDisplaySizeBlackListed(gfx::Size(40, 30)));
EXPECT_TRUE(IsDisplaySizeBlackListed(gfx::Size(50, 40)));
EXPECT_TRUE(IsDisplaySizeBlackListed(gfx::Size(160, 90)));
EXPECT_TRUE(IsDisplaySizeBlackListed(gfx::Size(160, 100)));
EXPECT_FALSE(IsDisplaySizeBlackListed(gfx::Size(50, 60)));
EXPECT_FALSE(IsDisplaySizeBlackListed(gfx::Size(100, 70)));
EXPECT_FALSE(IsDisplaySizeBlackListed(gfx::Size(272, 181)));
}
}