summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2016-06-05 02:20:29 +0900
committerLorenzo Colitti <lorenzo@google.com>2016-06-08 14:05:55 +0900
commit6d553f6dfdcc188fa6b17d4abb11d6222009a8fb (patch)
treef8bd05e96437520e8c395c0503c6ccd8a1aa77ba /tools/aapt2/diff/Diff.cpp
parentd69a99e3a9f497fec8a2680465cf989f71962aad (diff)
Add a FakeSettingsProvider and use it in ConnectivityServiceTest.
This class makes it easier to test code that uses Settings: 1. Real device or emulator settings don't affect the code under test; all settings always start off empty. 2. It's possible to change settings from the test without affecting system settings. 3. No changes are needed to the code under test. The changes to the tests are simple: just add a fake ContentResolver to whatever mock Context is already used by the test, and make that ContentResolver use the fake provider. Bug: 23113288 Change-Id: I5e7e5a87571444ae49ccf551705620675a36cd17
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions