summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-04-23 13:28:29 +0000
committer Vladimir Marko <vmarko@google.com> 2021-04-26 07:27:21 +0000
commita220980389b87aa448b5f2d110eba7604c383c12 (patch)
tree66fa588b2b52279f662b3fd9edb0ad6953abb838 /runtime/common_runtime_test.h
parenta61859210844849e97a479bcfa74d1a62f51f819 (diff)
dex2oat: Expect boot image profiles for boot image.
The profile loading is currently permissive, so this does not really matter but we intend to make it more strict soon. Also clean up ScratchFile to avoid dex2oat_image_test error logs related to ScratchFile destruction. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 148067697 Change-Id: I34526ddb0389444d54b9754afbedeb671c7b05a8
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r--runtime/common_runtime_test.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h
index cc23620a54..cc347a1e16 100644
--- a/runtime/common_runtime_test.h
+++ b/runtime/common_runtime_test.h
@@ -174,7 +174,15 @@ class CommonRuntimeTestImpl : public CommonArtTestImpl {
void GenerateProfile(ArrayRef<const std::string> dexes,
File* out_file,
size_t method_frequency = 1u,
- size_t type_frequency = 1u);
+ size_t type_frequency = 1u,
+ bool for_boot_image = false);
+ void GenerateBootProfile(ArrayRef<const std::string> dexes,
+ File* out_file,
+ size_t method_frequency = 1u,
+ size_t type_frequency = 1u) {
+ return GenerateProfile(
+ dexes, out_file, method_frequency, type_frequency, /*for_boot_image=*/ true);
+ }
std::unique_ptr<Runtime> runtime_;