summaryrefslogtreecommitdiff
path: root/tools/aapt2/Resource_test.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-10-19 18:37:53 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-10-27 18:09:00 -0700
commitc0c366394c658e3787b12e65833b520c9a9a34d9 (patch)
tree0f8edb0b05d1d2899100fd114053ba1b8baa39a0 /tools/aapt2/Resource_test.cpp
parent9212fc742ff4fc92561c8055388d119d8ef195ae (diff)
Add font type to AAPT2
Test: make libaapt2_tests AaptTestAppOne Change-Id: I8fbf01675a218cc3c0b59598b6b1ec173851e946
Diffstat (limited to 'tools/aapt2/Resource_test.cpp')
-rw-r--r--tools/aapt2/Resource_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/Resource_test.cpp b/tools/aapt2/Resource_test.cpp
index 720ab91c5740..6acb4d3eb850 100644
--- a/tools/aapt2/Resource_test.cpp
+++ b/tools/aapt2/Resource_test.cpp
@@ -57,6 +57,10 @@ TEST(ResourceTypeTest, ParseResourceTypes) {
ASSERT_NE(type, nullptr);
EXPECT_EQ(*type, ResourceType::kDrawable);
+ type = ParseResourceType("font");
+ ASSERT_NE(type, nullptr);
+ EXPECT_EQ(*type, ResourceType::kFont);
+
type = ParseResourceType("fraction");
ASSERT_NE(type, nullptr);
EXPECT_EQ(*type, ResourceType::kFraction);