blob: cfc89e374e20801e6bd47b402ab95c6be84377c9 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_TEST_FONT_FALLBACK_TEST_DATA_H_
#define UI_GFX_TEST_FONT_FALLBACK_TEST_DATA_H_
#include <string>
#include <vector>
#include "third_party/icu/source/common/unicode/uscript.h"
namespace gfx {
// A font test case for the parameterized unittests.
struct FallbackFontTestCase {
FallbackFontTestCase();
FallbackFontTestCase(UScriptCode script_arg,
std::string language_tag_arg,
std::u16string text_arg,
std::vector<std::string> fallback_fonts_arg,
bool is_win10_arg = false);
FallbackFontTestCase(const FallbackFontTestCase& other);
~FallbackFontTestCase();
UScriptCode script;
std::string language_tag;
std::u16string text;
std::vector<std::string> fallback_fonts;
bool is_win10 = false;
};
extern std::vector<FallbackFontTestCase> kGetFontFallbackTests;
} // namespace gfx
#endif // UI_GFX_TEST_FONT_FALLBACK_TEST_DATA_H_