OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gfx/font_fallback.h" |
| 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 |
| 9 namespace gfx { |
| 10 |
| 11 // A targeted test for GetFallbackFontFamilies on Mac. It uses a system API that |
| 12 // only became publicly available in the 10.8 SDK. This test is to ensure it |
| 13 // behaves sensibly on all supported OS versions. |
| 14 GTEST_TEST(FontFallbackMacTest, GetFallbackFontFamilies) { |
| 15 std::vector<std::string> fallback_families = GetFallbackFontFamilies("Arial"); |
| 16 // If there is only one fallback, it means the only fallback is the font |
| 17 // itself. |
| 18 EXPECT_LT(1u, fallback_families.size()); |
| 19 } |
| 20 |
| 21 } // namespace gfx |
OLD | NEW |