Support making a "snapshot" of databases during tests.
- We normally use in-memory DBs in unit tests because that's faster.
Add a flag to switch to file-based DBs so we can copy them.
- Also cleaned up the getDatabaseHelper() methods -- we had two,
one with no arguments and the other without, and it wasn't clear
which ones should be used when. Now the one that takes a context
is renamed to make it clear the distinction.
Test: run-all-tests.sh with and without the flag set.
Change-Id: I376674a94e35a3314d91813debbeee5b3814f4a9
18 files changed