diff options
author | Robert Horvath <robhor@google.com> | 2020-03-18 17:18:00 +0100 |
---|---|---|
committer | Robert Horvath <robhor@google.com> | 2020-03-18 17:18:00 +0100 |
commit | fdbbae9f3cf54a9ad75d8b7b309938982de8ec6e (patch) | |
tree | 8a3f477473fe7c1981e7499a6d59b5bea401c6a9 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 711ba26816dc2102578ab087c7919dcc9cc9be9f (diff) |
Call #clearSettingsProvider in PowerManagerServiceTest
Add calls to FakeSettingsProvider.clearSettingsProvider in setUp and
tearDown.
While PowerManagerServiceTest uses FakeSettingsProvider to
interact with a fake version of Settings and stay independent of system
state, this does not work if run together with other tests that do
access the real Settings, as Settings caches the first ContentProvider
it sees in the process.
Test: atest com.android.server.power.PowerManagerServiceTest
Bug: 151114486
Change-Id: I04d11cfcaef89dc1832a5f57af21c815e7861d11
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions