forked from firka/flutter
Add more tests from the Android Minikin test bench to the common test runner. (flutter/engine#4020)
This will allow us to use the common font fixtures.
This commit is contained in:
25
engine/src/flutter/third_party/txt/BUILD.gn
vendored
25
engine/src/flutter/third_party/txt/BUILD.gn
vendored
@@ -115,6 +115,21 @@ executable("txt_unittests") {
|
||||
testonly = true
|
||||
|
||||
sources = [
|
||||
"tests/CmapCoverageTest.cpp",
|
||||
"tests/EmojiTest.cpp",
|
||||
"tests/FileUtils.cpp",
|
||||
"tests/FileUtils.h",
|
||||
"tests/FontTestUtils.h",
|
||||
"tests/GraphemeBreakTests.cpp",
|
||||
"tests/ICUTestBase.h",
|
||||
"tests/LayoutUtilsTest.cpp",
|
||||
"tests/MeasurementTests.cpp",
|
||||
"tests/MinikinFontForTest.cpp",
|
||||
"tests/MinikinFontForTest.h",
|
||||
"tests/SparseBitSetTest.cpp",
|
||||
"tests/UnicodeUtils.cpp",
|
||||
"tests/UnicodeUtils.h",
|
||||
"tests/UnicodeUtilsTest.cpp",
|
||||
"tests/font_collection_unittests.cc",
|
||||
"tests/paragraph_unittests.cc",
|
||||
"tests/render_test.cc",
|
||||
@@ -122,6 +137,16 @@ executable("txt_unittests") {
|
||||
"tests/txt_run_all_unittests.cc",
|
||||
"tests/utils.cc",
|
||||
"tests/utils.h",
|
||||
|
||||
# These tests require static fixtures.
|
||||
# "tests/FontCollectionItemizeTest.cpp",
|
||||
# "tests/FontCollectionTest.cpp",
|
||||
# "tests/FontFamilyTest.cpp",
|
||||
# "tests/FontLanguageListCacheTest.cpp",
|
||||
# "tests/FontTestUtils.cpp",
|
||||
# "tests/HbFontCacheTest.cpp",
|
||||
# "tests/HyphenatorTest.cpp",
|
||||
# "tests/LayoutTest.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
#include "ICUTestBase.h"
|
||||
#include "MinikinFontForTest.h"
|
||||
#include "UnicodeUtils.h"
|
||||
#include "lib/txt/libs/minikin/FontLanguage.h"
|
||||
#include "lib/txt/libs/minikin/FontLanguageListCache.h"
|
||||
#include "lib/txt/libs/minikin/MinikinInternal.h"
|
||||
#include "minikin/FontFamily.h"
|
||||
#include "minikin/FontLanguage.h"
|
||||
#include "minikin/FontLanguageListCache.h"
|
||||
#include "minikin/MinikinInternal.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <minikin/FontCollection.h>
|
||||
#include "FontTestUtils.h"
|
||||
#include "MinikinFontForTest.h"
|
||||
#include "lib/txt/libs/minikin/MinikinInternal.h"
|
||||
#include "minikin/MinikinInternal.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
#include "ICUTestBase.h"
|
||||
#include "MinikinFontForTest.h"
|
||||
#include "lib/txt/libs/minikin/FontLanguageListCache.h"
|
||||
#include "lib/txt/libs/minikin/MinikinInternal.h"
|
||||
#include "minikin/FontLanguageListCache.h"
|
||||
#include "minikin/MinikinInternal.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
#include <minikin/FontFamily.h>
|
||||
|
||||
#include "ICUTestBase.h"
|
||||
#include "lib/txt/libs/minikin/FontLanguageListCache.h"
|
||||
#include "lib/txt/libs/minikin/MinikinInternal.h"
|
||||
#include "minikin/FontLanguageListCache.h"
|
||||
#include "minikin/MinikinInternal.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <minikin/FontCollection.h>
|
||||
#include <minikin/FontFamily.h>
|
||||
#include "MinikinFontForTest.h"
|
||||
#include "lib/txt/libs/minikin/FontLanguage.h"
|
||||
#include "minikin/FontLanguage.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <UnicodeUtils.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <minikin/GraphemeBreak.h>
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "lib/txt/libs/minikin/HbFontCache.h"
|
||||
#include "minikin/HbFontCache.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <log/log.h>
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <minikin/MinikinFont.h>
|
||||
#include "MinikinFontForTest.h"
|
||||
#include "lib/txt/libs/minikin/MinikinInternal.h"
|
||||
#include "minikin/MinikinInternal.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <FileUtils.h>
|
||||
#include <minikin/Hyphenator.h>
|
||||
#include "FileUtils.h"
|
||||
#include "ICUTestBase.h"
|
||||
|
||||
#ifndef NELEM
|
||||
@@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <UnicodeUtils.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
#include "lib/txt/libs/minikin/LayoutUtils.h"
|
||||
#include "minikin/LayoutUtils.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <UnicodeUtils.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <minikin/Measurement.h>
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
namespace minikin {
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace minikin {
|
||||
|
||||
void ParseUnicode(uint16_t* buf,
|
||||
Reference in New Issue
Block a user