diff options
author | 2017-06-30 15:37:34 +0200 | |
---|---|---|
committer | 2017-07-03 09:05:07 +0200 | |
commit | 3e2cee83eddb340d9a0d96cc545ccbda76b489ac (patch) | |
tree | 2533fdc53f091386e633c162a476c83fb61c9a10 /src/test/py | |
parent | 469079377a9561a7c2cc7a46492c44e012b9fb33 (diff) |
Add methods for filtering LocalResourceContainer
Dynamically Configured Resource Filtering change 1/6
To enable dynamically configured resource filtering, we'll need to be able to
pass filtered resources into resource processing code used by android_library
targets. The resource parsing action, used only in android_library targets,
takes the LocalResourceContainer as an input, unlike android_binary processing
code which never used it directly.
Abstract the code for actually building the collection of resource roots out of the withResources method, and create an additional method for calling it from resource filtering.
Also, split some common test code out of ResourceFilterTestBase to make a ResourceTestBase class for testing changes to this (and eventually, other) resource-oriented classes, and create LocalResourceContainerTest for this class in particular.
RELNOTES: none
PiperOrigin-RevId: 160640192
Diffstat (limited to 'src/test/py')
0 files changed, 0 insertions, 0 deletions