diff options
author | Tim Murray <timmurray@google.com> | 2016-04-14 15:44:35 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2016-04-14 16:06:29 -0700 |
commit | 98e80076c6c4e31f04c580c8774eeea4036d32c1 (patch) | |
tree | dfd7fc79f951ae1c5f93300f08c5debbef45e5ec /libs/androidfw/tests/ResTable_test.cpp | |
parent | 4ecc096b625dce65970b785f156d24d32cff5e64 (diff) |
Revert "Optimize ResTable::getLocales() to improve bindApplication performance"
This reverts commit 5520581b5f043fb858b5b2044ff33ad8545a6d38.
bug 28189634
Change-Id: I2d2b859f6d9bd44434fa901cce990583f514980c
Diffstat (limited to 'libs/androidfw/tests/ResTable_test.cpp')
-rw-r--r-- | libs/androidfw/tests/ResTable_test.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/androidfw/tests/ResTable_test.cpp b/libs/androidfw/tests/ResTable_test.cpp index b8b46259f0d1..7cd7fb5cd711 100644 --- a/libs/androidfw/tests/ResTable_test.cpp +++ b/libs/androidfw/tests/ResTable_test.cpp @@ -39,20 +39,8 @@ namespace { */ #include "data/basic/basic_arsc.h" -/** - * Include a binary library resource table. - * - * Package: com.android.test.basic - */ #include "data/lib/lib_arsc.h" -/** - * Include a system resource table. - * - * Package: android - */ -#include "data/system/system_arsc.h" - TEST(ResTableTest, shouldLoadSuccessfully) { ResTable table; ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); @@ -336,25 +324,4 @@ TEST(ResTableTest, ShareButDontModifyResTable) { ASSERT_EQ(uint32_t(600), val.data); } -TEST(ResTableTest, GetConfigurationsReturnsUniqueList) { - ResTable table; - ASSERT_EQ(NO_ERROR, table.add(system_arsc, system_arsc_len)); - ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); - - ResTable_config configSv; - memset(&configSv, 0, sizeof(configSv)); - configSv.language[0] = 's'; - configSv.language[1] = 'v'; - - Vector<ResTable_config> configs; - table.getConfigurations(&configs); - - EXPECT_EQ(1, std::count(configs.begin(), configs.end(), configSv)); - - Vector<String8> locales; - table.getLocales(&locales); - - EXPECT_EQ(1, std::count(locales.begin(), locales.end(), String8("sv"))); -} - } // namespace |