OSDN Git Service

Add TestableResources
authorJason Monk <jmonk@google.com>
Tue, 2 May 2017 18:22:21 +0000 (14:22 -0400)
committerJason Monk <jmonk@google.com>
Wed, 3 May 2017 15:21:03 +0000 (11:21 -0400)
commit77f1b05fb0eb1b0f22eb91508a1a3bc0cfcda935
treef036309e3b877c269ede9563e8f46fb9f269b7e2
parent60e305ce8ca1e111f382c3b221fd92536e8283b5
Add TestableResources

Makes it easy to add or change values of resources from tests.

Test: runtest --path frameworks/base/tests/testables/tests
Change-Id: Iaedff3d4ce9eaf9f270e7c62bc8c1634bd3519ec
tests/testables/src/android/testing/TestableContext.java
tests/testables/src/android/testing/TestableResources.java [new file with mode: 0644]
tests/testables/tests/res/values/strings.xml [new file with mode: 0644]
tests/testables/tests/src/android/testing/TestableResourcesTest.java [new file with mode: 0644]