()
| 56 | } |
| 57 | |
| 58 | public void refCntToStringAfterClose() throws Exception { |
| 59 | Bitmap bmp = new Bitmap(); |
| 60 | bmp.allocN32Pixels(10, 20); |
| 61 | Image img = Image.makeRasterFromBitmap(bmp); |
| 62 | assertEquals(1, img.getRefCount()); |
| 63 | img.toString(); |
| 64 | img.close(); |
| 65 | assertDoesNotThrow(() -> { |
| 66 | img.toString(); |
| 67 | }); |
| 68 | bmp.close(); |
| 69 | } |
| 70 | } |
nothing calls this directly
no test coverage detected