commit | 7cf1a03ee524df22a6f06834b9dfd25584f4db67 | [log] [tgz] |
---|---|---|
author | Motomu Utsumi <motomuman@google.com> | Fri Aug 23 12:28:36 2024 +0900 |
committer | Motomu Utsumi <motomuman@google.com> | Fri Aug 23 22:39:15 2024 +0900 |
tree | a0a6e0fcb852365f0593d3a77f39b88921e54ea9 | |
parent | f851ae1e82aac3eb86bf1a813f2fc15ea4d47b82 [diff] |
Use doReturn instead of when().thenReturn doReturn is less prone to races since when().thenReturn will fail if the mock is used by other thread between when() and thenReturn()). Bug: 337473824 Test: LocationPermissionCheckerTest Change-Id: Ie07f3f3cf23b57296a7db4fb9296b84be5b57214