summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2023-06-12 11:25:41 +0100
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-06-12 12:02:59 +0000
commit8d09eb27e2fc343f42ecf39f50e57523a32dbb73 (patch)
tree6346b14a8874115b9bc03498cfb8dc6ef2f9ea15
parentd3c94f5b364d973af070bcd638d1566d741a8351 (diff)
Fix DexFileLoader argument in hiddenapi_test
Fix clang-tidy issue in test. The test was still passing because the first three arguments don't really affect the semantic of the test. Bug: 286566899 Test: ./art/test.py -b --host --64 Change-Id: I29419969e1b9f0a31c2cdf908b6b38207bded345
-rw-r--r--tools/hiddenapi/hiddenapi_test.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/hiddenapi/hiddenapi_test.cc b/tools/hiddenapi/hiddenapi_test.cc
index 36e80c5c23..7eb7480b54 100644
--- a/tools/hiddenapi/hiddenapi_test.cc
+++ b/tools/hiddenapi/hiddenapi_test.cc
@@ -116,7 +116,10 @@ class HiddenApiTest : public CommonRuntimeTest {
ArtDexFileLoader dex_loader(fd.Release(), file.GetFilename());
std::unique_ptr<const DexFile> dex_file(dex_loader.Open(
- /* verify= */ true, /* verify_checksum= */ true, /* mmap_shared= */ false, &error_msg));
+ /*location_checksum=*/0,
+ /*verify=*/true,
+ /*verify_checksum=*/true,
+ &error_msg));
if (dex_file.get() == nullptr) {
LOG(FATAL) << "Open failed for '" << file.GetFilename() << "' " << error_msg;
UNREACHABLE();