commit | c591b11fc26ac3fae28e86dbe68cfc30b88cf11c | [log] [tgz] |
---|---|---|
author | Jordan Liu <jminjie@google.com> | Wed May 02 16:35:03 2018 -0700 |
committer | Jordan Liu <jminjie@google.com> | Thu Jun 14 17:02:25 2018 -0700 |
tree | 3a5c3f2c51887a38296029b04104ba4449058711 | |
parent | fd5b413829e0b5dce09a0a4bcadf6a27c0b63284 [diff] |
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