diff options
Diffstat (limited to 'runtime/hidden_api_test.cc')
-rw-r--r-- | runtime/hidden_api_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/hidden_api_test.cc b/runtime/hidden_api_test.cc index 444ad0bd48..28f1d28c1f 100644 --- a/runtime/hidden_api_test.cc +++ b/runtime/hidden_api_test.cc @@ -188,11 +188,17 @@ class HiddenApiTest : public CommonRuntimeTest { } bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { + // This is only used for log messages, so its state doesn't matter. + const hiddenapi::AccessContext placeholder_context(/* is_trusted= */ false); + // Choose parameters such that there are no side effects (AccessMethod::kNone) // and that the member is not on the exemptions list (here we choose one which // is not even in boot class path). return ShouldDenyAccessToMemberImpl(/* member= */ class1_field1_, list, + /* runtime_flags= */ 0, + /* caller_context= */ placeholder_context, + /* callee_context= */ placeholder_context, /* access_method= */ hiddenapi::AccessMethod::kNone); } |