summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-01-19 20:23:36 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-19 20:23:36 +0100
commit18098b7de3c4460110903bc8674a2a9c81f18789 (patch)
tree4649bacd75f0c4edb62ebdad44c39873ec28509b /tests/unit
parentDO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 (diff)
parentMerge "Add checkers and tests for empty locale in PNG file" (diff)
downloadandroid_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar.gz
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar.bz2
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar.lz
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar.xz
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.tar.zst
android_bootable_recovery-18098b7de3c4460110903bc8674a2a9c81f18789.zip
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/locale_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/locale_test.cpp b/tests/unit/locale_test.cpp
index 0e515f8c1..f73235005 100644
--- a/tests/unit/locale_test.cpp
+++ b/tests/unit/locale_test.cpp
@@ -26,4 +26,7 @@ TEST(LocaleTest, Misc) {
EXPECT_TRUE(matches_locale("en", "en_GB"));
EXPECT_FALSE(matches_locale("en_GB", "en"));
EXPECT_FALSE(matches_locale("en_GB", "en_US"));
+ EXPECT_FALSE(matches_locale("en_US", ""));
+ // Empty locale prefix in the PNG file will match the input locale.
+ EXPECT_TRUE(matches_locale("", "en_US"));
}