History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/RenamingDelegatingContext.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd4b8de05ffcd78e65f27763eade96f186c368b6 06-Oct-2016 Makoto Onuki <omakoto@google.com> 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
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/RenamingDelegatingContext.java