summaryrefslogtreecommitdiff
path: root/runtime/hidden_api_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/hidden_api_test.cc')
-rw-r--r--runtime/hidden_api_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/hidden_api_test.cc b/runtime/hidden_api_test.cc
index 28f1d28c1f..5a2ee55723 100644
--- a/runtime/hidden_api_test.cc
+++ b/runtime/hidden_api_test.cc
@@ -191,7 +191,7 @@ class HiddenApiTest : public CommonRuntimeTest {
// 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)
+ // Choose parameters such that there are no side effects (AccessMethod::kCheck)
// 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_,
@@ -199,7 +199,7 @@ class HiddenApiTest : public CommonRuntimeTest {
/* runtime_flags= */ 0,
/* caller_context= */ placeholder_context,
/* callee_context= */ placeholder_context,
- /* access_method= */ hiddenapi::AccessMethod::kNone);
+ hiddenapi::AccessMethod::kCheck);
}
void TestLocation(const std::string& location, hiddenapi::Domain expected_domain) {