Open only necessary files for BCP checksums test.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Bug: 128479972
Change-Id: I13040acb5603d9207c2aaaa51ffd2fc7d3de1d82
diff --git a/runtime/dexopt_test.cc b/runtime/dexopt_test.cc
index 0624525..33f8c7f 100644
--- a/runtime/dexopt_test.cc
+++ b/runtime/dexopt_test.cc
@@ -120,7 +120,7 @@
EXPECT_EQ(filter, odex_file->GetCompilerFilter());
std::string boot_image_checksums = gc::space::ImageSpace::GetBootClassPathChecksums(
- Runtime::Current()->GetBootClassPath(),
+ ArrayRef<const std::string>(Runtime::Current()->GetBootClassPath()),
image_location,
kRuntimeISA,
gc::space::ImageSpaceLoadingOrder::kSystemFirst,