diff options
Diffstat (limited to 'app/gfx/font_unittest.cc')
-rw-r--r-- | app/gfx/font_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/gfx/font_unittest.cc b/app/gfx/font_unittest.cc index d0f4fff..dc81ca8 100644 --- a/app/gfx/font_unittest.cc +++ b/app/gfx/font_unittest.cc @@ -10,7 +10,8 @@ namespace { using gfx::Font; -typedef testing::Test FontTest; +class FontTest : public testing::Test { +}; TEST_F(FontTest, LoadArial) { Font cf(Font::CreateFont(L"Arial", 16)); @@ -30,13 +31,13 @@ TEST_F(FontTest, LoadArialBold) { TEST_F(FontTest, Ascent) { Font cf(Font::CreateFont(L"Arial", 16)); ASSERT_GT(cf.baseline(), 2); - ASSERT_LT(cf.baseline(), 22); + ASSERT_LT(cf.baseline(), 20); } TEST_F(FontTest, Height) { Font cf(Font::CreateFont(L"Arial", 16)); ASSERT_GT(cf.baseline(), 2); - ASSERT_LT(cf.baseline(), 22); + ASSERT_LT(cf.baseline(), 20); } TEST_F(FontTest, AvgWidths) { |