This source file includes following definitions.
- TEST
#include "config.h"
#include "platform/fonts/FontCache.h"
#include "platform/fonts/SimpleFontData.h"
#include <gtest/gtest.h>
namespace WebCore {
TEST(FontCacheAndroid, platformFallbackForCharacter)
{
const UChar32 testChar = 228;
FontDescription fontDescription;
fontDescription.setScript(USCRIPT_SIMPLIFIED_HAN);
fontDescription.setGenericFamily(FontDescription::StandardFamily);
FontCache* fontCache = FontCache::fontCache();
ASSERT_TRUE(fontCache);
RefPtr<SimpleFontData> fontData = fontCache->platformFallbackForCharacter(fontDescription, testChar, 0);
EXPECT_TRUE(fontData);
}
}