Add tests for onUpgrade logic

The new test databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb checks
that the table created through onUpgrade matches a cleanly created
table.

The test databaseHelperOnUpgrade_missingColumnsDetected checks that if
we don't go through a full onUpgrade, we should be missing columns, as
expected.

Bug: 79199985
Test: new unit tests pass
Change-Id: I6e68329e8a256bb2676d6eefe3a503be1305642b
Merged-In: I6e68329e8a256bb2676d6eefe3a503be1305642b
2 files changed