summaryrefslogtreecommitdiff
path: root/runtime/proxy_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/proxy_test.cc')
-rw-r--r--runtime/proxy_test.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc
index d055186f06..ac8ec56f09 100644
--- a/runtime/proxy_test.cc
+++ b/runtime/proxy_test.cc
@@ -30,15 +30,8 @@ namespace proxy_test {
class ProxyTest : public CommonRuntimeTest {
protected:
- void SetUp() override {
- CommonRuntimeTest::SetUp();
- // The creation of a Proxy class uses WellKnownClasses. These are not normally initialized by
- // CommonRuntimeTest so we need to do that now.
- WellKnownClasses::Clear();
- WellKnownClasses::Init(art::Thread::Current()->GetJniEnv());
- // Since we aren't actually calling any of the native functions we can just immediately call
- // LateInit after calling Init.
- WellKnownClasses::LateInit(art::Thread::Current()->GetJniEnv());
+ ProxyTest() {
+ use_boot_image_ = true; // Make the Runtime creation cheaper.
}
};