commit | b10f844449c6b630c22205fa2ec37935912ca838 | [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 13:38:30 2018 -0700 |
tree | 81dd1eebb7f08c0c6823fd7283807428569c71c2 | |
parent | 9d82cd6e47cc88d020bc3f54c77907bed8c9a275 [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