diff options
author | Shane Farmer <safarmer@google.com> | 2017-11-29 16:55:05 -0800 |
---|---|---|
committer | Shane Farmer <safarmer@google.com> | 2017-11-30 10:24:18 -0800 |
commit | 20ac034086b641dbd93df3e4c63b2600cc3aa260 (patch) | |
tree | 71cfee08f4aededea6c816522dd271f718cf0bdb /tools/aapt2/optimize/MultiApkGenerator_test.cpp | |
parent | 41499dfe188cbd038005b8a07cc31ce2bca8cf5e (diff) |
AAPT2: Specify the output APK in log messages
Extend the context wrapper to allow it to also know the current artifact
that is being generated and to use that as a source for diagnostics
messages.
Test: ran unit tests
Test: manually ran optimize to split and APK and verified log messages
Change-Id: I1d66dacb38db58d57d2fffaa19f5fdaff9f908df
Diffstat (limited to 'tools/aapt2/optimize/MultiApkGenerator_test.cpp')
-rw-r--r-- | tools/aapt2/optimize/MultiApkGenerator_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/aapt2/optimize/MultiApkGenerator_test.cpp b/tools/aapt2/optimize/MultiApkGenerator_test.cpp index 30c9146b5444..2d303e220f8f 100644 --- a/tools/aapt2/optimize/MultiApkGenerator_test.cpp +++ b/tools/aapt2/optimize/MultiApkGenerator_test.cpp @@ -63,8 +63,8 @@ class MultiApkGeneratorWrapper : public MultiApkGenerator { std::unique_ptr<ResourceTable> FilterTable( const configuration::Artifact& artifact, const configuration::PostProcessingConfiguration& config, const ResourceTable& old_table, - FilterChain* pChain) override { - return MultiApkGenerator::FilterTable(artifact, config, old_table, pChain); + IAaptContext* context, FilterChain* filter_chain) override { + return MultiApkGenerator::FilterTable(artifact, config, old_table, context, filter_chain); } }; @@ -128,7 +128,7 @@ TEST_F(MultiApkGeneratorTest, VersionFilterNewerVersion) { MultiApkGeneratorWrapper generator{&apk, ctx.get()}; std::unique_ptr<ResourceTable> split = - generator.FilterTable(x64, config, *apk.GetResourceTable(), &chain); + generator.FilterTable(x64, config, *apk.GetResourceTable(), ctx.get(), &chain); ResourceTable* new_table = split.get(); EXPECT_THAT(ValueForConfig(new_table, mdpi_), IsNull()); @@ -169,7 +169,7 @@ TEST_F(MultiApkGeneratorTest, VersionFilterOlderVersion) { MultiApkGeneratorWrapper generator{&apk, ctx.get()};; std::unique_ptr<ResourceTable> split = - generator.FilterTable(x64, config, *apk.GetResourceTable(), &chain); + generator.FilterTable(x64, config, *apk.GetResourceTable(), ctx.get(), &chain); ResourceTable* new_table = split.get(); EXPECT_THAT(ValueForConfig(new_table, mdpi_), IsNull()); @@ -204,7 +204,7 @@ TEST_F(MultiApkGeneratorTest, VersionFilterNoVersion) { MultiApkGeneratorWrapper generator{&apk, ctx.get()}; std::unique_ptr<ResourceTable> split = - generator.FilterTable(x64, config, *apk.GetResourceTable(), &chain); + generator.FilterTable(x64, config, *apk.GetResourceTable(), ctx.get(), &chain); ResourceTable* new_table = split.get(); EXPECT_THAT(ValueForConfig(new_table, mdpi_), IsNull()); |