blob: 54cea1c1324a1765c23abed0a88ff5d7f4e431a0 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include <sstream>
#include "txt/platform_mac.h"
namespace txt {
namespace testing {
class PlatformMacTests : public ::testing::Test {
public:
PlatformMacTests() {}
void SetUp() override {}
};
TEST_F(PlatformMacTests, RegisterSystemFonts) {
DynamicFontManager dynamic_font_manager;
RegisterSystemFonts(dynamic_font_manager);
ASSERT_EQ(dynamic_font_manager.font_provider().GetFamilyCount(), 2ul);
ASSERT_NE(dynamic_font_manager.font_provider().MatchFamily(
"CupertinoSystemDisplay"),
nullptr);
ASSERT_NE(
dynamic_font_manager.font_provider().MatchFamily("CupertinoSystemText"),
nullptr);
}
} // namespace testing
} // namespace txt