commit | fcc5accda1a7d4aa2c88b151a8aaeaefd8a2b022 | [log] [tgz] |
---|---|---|
author | Kevin Han <kevhan@google.com> | Tue Mar 09 12:38:46 2021 -0800 |
committer | Kevin Han <kevhan@google.com> | Wed Mar 10 13:09:26 2021 -0800 |
tree | fad824e38304e0d23b6a9f1326e44df66dd25679 | |
parent | 6abae19241c8f44409755bc379797dd0f9ef8c75 [diff] |
Fix local service binding in tests. AppHibernationServiceTest failed because every set up would instantiate AppHibernationService which would try to add to the static LocalServices registry. We now remove any registered local services before each test. Also, add @Presubmit label so that these tests actually run in presubmit. Bug: 175829330 Test: atest AppHibernationServiceTest Test: check that test actually runs in presubmit Change-Id: I5510f7e862d608cacaf12d8a561af7ac74774782