mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Reconstruct the directory structure of minikin tests.
To add perftests and reuse some utility classes, reconstruct test directory structure. - Move unit tests from minikin/tests to minikin/tests/unittests - Extract utilitiy classes to minikin/tests/utils which will be used by perftests eventually. Change-Id: I5026b177934e72ae67d362ee888302037da2f808
This commit is contained in:
parent
f03149ec85
commit
2eef839c8e
@ -45,9 +45,9 @@ LOCAL_MODULE := minikin_tests
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
|
||||
GEN := $(addprefix $(minikin_tests_root_for_test_zip)/, $(font_src_files))
|
||||
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
|
||||
$(GEN): PRIVATE_PATH := $(LOCAL_PATH)/../
|
||||
$(GEN): PRIVATE_CUSTOM_TOOL = cp $< $@
|
||||
$(GEN): $(minikin_tests_root_for_test_zip)/data/% : $(LOCAL_PATH)/data/%
|
||||
$(GEN): $(minikin_tests_root_for_test_zip)/data/% : $(LOCAL_PATH)/../data/%
|
||||
$(transform-generated-source)
|
||||
LOCAL_GENERATED_SOURCES += $(GEN)
|
||||
|
||||
@ -70,21 +70,22 @@ LOCAL_STATIC_LIBRARIES += \
|
||||
libxml2
|
||||
|
||||
LOCAL_SRC_FILES += \
|
||||
../util/FontTestUtils.cpp \
|
||||
../util/MinikinFontForTest.cpp \
|
||||
../util/UnicodeUtils.cpp \
|
||||
FontCollectionTest.cpp \
|
||||
FontCollectionItemizeTest.cpp \
|
||||
FontFamilyTest.cpp \
|
||||
FontLanguageListCacheTest.cpp \
|
||||
FontTestUtils.cpp \
|
||||
HbFontCacheTest.cpp \
|
||||
MinikinFontForTest.cpp \
|
||||
MinikinInternalTest.cpp \
|
||||
GraphemeBreakTests.cpp \
|
||||
LayoutUtilsTest.cpp \
|
||||
UnicodeUtils.cpp \
|
||||
WordBreakerTests.cpp
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(LOCAL_PATH)/../libs/minikin/ \
|
||||
$(LOCAL_PATH)/../../libs/minikin/ \
|
||||
$(LOCAL_PATH)/../util \
|
||||
external/harfbuzz_ng/src \
|
||||
external/libxml2/include \
|
||||
external/skia/src/core
|
||||
@ -1,4 +1,4 @@
|
||||
mmm -j8 frameworks/minikin/tests &&
|
||||
mmm -j8 frameworks/minikin/tests/unittests &&
|
||||
adb push $OUT/data/nativetest/minikin_tests/minikin_tests \
|
||||
/data/nativetest/minikin_tests/minikin_tests &&
|
||||
adb push frameworks/minikin/tests/data /data/nativetest/minikin_tests/ &&
|
||||
Loading…
x
Reference in New Issue
Block a user