#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <memory>
#include "base/test/scoped_feature_list.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "content/browser/devtools/protocol/devtools_protocol_test_support.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#if BUILDFLAG(IS_WIN)
#include "base/files/scoped_temp_dir.h"
#endif
namespace content {
namespace {
#if BUILDFLAG(IS_ANDROID)
const char* const kExpectedFontFamilyNames[] = {
"AndroidClock", "Droid Sans Mono", "Roboto",
"Noto Color Emoji", "Noto Sans Lao UI", "Noto Sans Lao UI",
"Noto Sans Thai", "Noto Sans Thai", "Noto Sans Thai UI",
"Noto Sans Thai UI"};
#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
const char* const kExpectedFontFamilyNames[] = …;
#elif BUILDFLAG(IS_APPLE)
const char* const kExpectedFontFamilyNames[] = {"American Typewriter",
"Arial Narrow",
"Baskerville",
"Devanagari MT",
"DIN Alternate",
"Gill Sans",
"Iowan Old Style",
"Malayalam Sangam MN",
"Hiragino Maru Gothic Pro",
"Hiragino Kaku Gothic StdN"};
#elif BUILDFLAG(IS_WIN)
const char* const kExpectedFontFamilyNames[] = {
"Cambria Math", "MingLiU_HKSCS-ExtB", "NSimSun", "Calibri"};
#endif
}
class FontUniqueNameBrowserTest : public DevToolsProtocolTest { … };
#if !BUILDFLAG(IS_FUCHSIA)
IN_PROC_BROWSER_TEST_F(FontUniqueNameBrowserTest,
ContentLocalFontsMatching) { … }
#endif
}