Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use real Android code for ContentProviderClient.release
This fixes two issues: 1) Because 'release' was shadowed, the underlying CloseGuard for the ContentProviderClient was never closed, leading to CloseGuard errors that could not be suppressed. 2) The behavior of 'release' was not correct for SDK > 23, where calling it multiple times does not result in an IllegalStateException. Also, update ShadowContentProviderClientTest to use a real ContentProvider, and remove the interaction test. Trying to release a ContentProviderClient for a mock ContentProvider results in an exception. PiperOrigin-RevId: 413795247
- Loading branch information
1 parent
bcb31db
commit dccf8ef
Showing
34 changed files
with
1,810 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.