summaryrefslogtreecommitdiff
path: root/runtime/proxy_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-10-13 08:08:28 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2022-10-14 07:48:55 +0000
commit76990bb2404f4b0b73b56f3096e67746c1a5ceb0 (patch)
tree48f58e9feae49055e3bc6bf5d69e695ce147e9b9 /runtime/proxy_test.cc
parent07c7d430d72cdb07b8b5f20b6335fd236aab6fc1 (diff)
ART: Speed up some gtests.
Avoid creating `Runtime` or create the `Runtime` with a boot image to make the test setup faster. Test: m test-art-host-gtest Test: run-gtests.sh Change-Id: I3f09de81491402442f1704d25bb06de995d8a3ca
Diffstat (limited to 'runtime/proxy_test.cc')
-rw-r--r--runtime/proxy_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc
index d055186f06..7b662106b3 100644
--- a/runtime/proxy_test.cc
+++ b/runtime/proxy_test.cc
@@ -30,6 +30,10 @@ namespace proxy_test {
class ProxyTest : public CommonRuntimeTest {
protected:
+ ProxyTest() {
+ use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
+
void SetUp() override {
CommonRuntimeTest::SetUp();
// The creation of a Proxy class uses WellKnownClasses. These are not normally initialized by