Fix "disk I/O error" in LocalStoreUnitTests

The problem was that we didn't close the LocalStores created in these
testDbUpgradeXxx tests.

Also,
- Make sure to close databases.
- Make sure to close cursors.
- Cleard up warnings (unnecessary casts, etc.)

Bug 2859264

Change-Id: Ifaddbb6cf07794a7b5978564ea8fbb3cbf75b978
This commit is contained in:
Makoto Onuki 2010-07-28 10:29:05 -07:00
parent 0943a75ba8
commit ae8fc30b41
1 changed files with 246 additions and 254 deletions