提交 66c7018a 编写于 作者: C Chinmay Garde 提交者: GitHub

Add more tests from the Android Minikin test bench to the common test runner. (#4020)

This will allow us to use the common font fixtures.
上级 0be64826
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册