commit | e97892844a5c21c91c7f82b96f82202b18a1a24d | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Wed Nov 09 08:59:56 2016 -0500 |
committer | Jason Monk <jmonk@google.com> | Fri Nov 11 09:52:17 2016 -0500 |
tree | 47a223cf373fdd71a98b8ef974effa47ca9895ef | |
parent | 67387af732f1b5e9b9bc270f03dbb1aedd5632cc [diff] |
android.provider.Setting test utilities Add a way to fake values for settings in tests. Since the content provider is cached in the NameValueCache, there is one static FakeSettingsProvider that passes through all values to the real SettingsProvider by default. Values that are required for the test can be acquired and locked for the duration of the test easily. Test: runtest systemui Change-Id: Ibc31ac8509fb31a22c522358a9c1bae6ec63553b