diff options
author | Joe Onorato <joeo@google.com> | 2016-02-08 16:49:39 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2016-02-23 12:44:22 -0800 |
commit | abded113bde548734600dc1b6e4ce2e94f48e32e (patch) | |
tree | 212da10b5d64aaa411ca0f1046bd8b60215bb2e2 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0c484107b17e04964de03607df40c3f7c91b147b (diff) |
Add unit tests for BatteryStatsImpl.
- Add a Clocks interface to wrap SystemClock.uptimeMillis and
SystemClock.elapsedRealtime.
- Make the inner classes static so they can be created independently,
which meant passing explicit pointers to the BatteryStatsImpl and
the Uid objects in a lot of places.
- Make several fields protected so they can be accessed by the tests (they are
still @hidden)
- Add a test suite for the battery stats.
- Add the tests
Change-Id: I4e45afedc64f7050985c28a7eb4f5c1ddbaa63fa
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions