diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-06-28 14:40:32 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-06-29 17:02:19 -0700 |
commit | fb6312fe93a8544e6a95d1c619c8cea3940cbe1a (patch) | |
tree | 6bf029d03d8dcfa46f0b9561a72907bde7273406 /tools/aapt2/split/TableSplitter_test.cpp | |
parent | 4c62cbda12ec606f19fbdfddebae0d72fcaa4f55 (diff) |
AAPT2: Add version collapsing
When an app specifies (or imports) resources with various
configurations for different SDK versions, specifying
a minSdk will make many of those resources unreachable.
Version collapsing will prune out the resources specified
for SDK versions less than the minSdk.
If, however, there is no exact matching resource for the
minSdk version, the next smallest SDK version is kept.
Change-Id: Ic7bcab6c59d65c97c67c8767358abb57cdec60a4
Diffstat (limited to 'tools/aapt2/split/TableSplitter_test.cpp')
-rw-r--r-- | tools/aapt2/split/TableSplitter_test.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/aapt2/split/TableSplitter_test.cpp b/tools/aapt2/split/TableSplitter_test.cpp index 74ca32e04a30..2d013e4764aa 100644 --- a/tools/aapt2/split/TableSplitter_test.cpp +++ b/tools/aapt2/split/TableSplitter_test.cpp @@ -15,10 +15,7 @@ */ #include "split/TableSplitter.h" -#include "test/Builders.h" -#include "test/Common.h" - -#include <gtest/gtest.h> +#include "test/Test.h" namespace aapt { @@ -32,7 +29,7 @@ TEST(TableSplitterTest, NoSplitPreferredDensity) { test::parseConfigOrDie("xhdpi")) .addFileReference(u"@android:drawable/icon", u"res/drawable-xxhdpi/icon.png", test::parseConfigOrDie("xxhdpi")) - .addSimple(u"@android:string/one", {}) + .addSimple(u"@android:string/one") .build(); TableSplitterOptions options; |