summaryrefslogtreecommitdiffstats
path: root/runtime/proxy_test.cc
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-08-14 17:18:52 -0700
committerJeff Hao <jeffhao@google.com>2014-08-15 09:38:52 -0700
commitdb8a664e0b68c7c4d36270cd21dce8de1912d7f9 (patch)
tree3f7fcf610d2de28159cf77ab8e190e18a072e979 /runtime/proxy_test.cc
parent37f048b19da5ac245a6b2a8473b326d2167cc692 (diff)
downloadandroid_art-db8a664e0b68c7c4d36270cd21dce8de1912d7f9.tar.gz
android_art-db8a664e0b68c7c4d36270cd21dce8de1912d7f9.tar.bz2
android_art-db8a664e0b68c7c4d36270cd21dce8de1912d7f9.zip
Prevent stubs from being installed in java.lang.reflect.Proxy.<init>.
This CL is a better fix for proxy tracing and undoes the changes in https://android-review.googlesource.com/#/c/103025/ Change-Id: Ie82bb49f07774bd08a6720ddbe5b1f8ee9363acf
Diffstat (limited to 'runtime/proxy_test.cc')
-rw-r--r--runtime/proxy_test.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/runtime/proxy_test.cc b/runtime/proxy_test.cc
index 5af26b08b4..d977ce9d17 100644
--- a/runtime/proxy_test.cc
+++ b/runtime/proxy_test.cc
@@ -17,14 +17,14 @@
#include <jni.h>
#include <vector>
-#include "common_runtime_test.h"
+#include "common_compiler_test.h"
#include "field_helper.h"
#include "mirror/art_field-inl.h"
#include "scoped_thread_state_change.h"
namespace art {
-class ProxyTest : public CommonRuntimeTest {
+class ProxyTest : public CommonCompilerTest {
public:
// Generate a proxy class with the given name and interfaces. This is a simplification from what
// libcore does to fit to our test needs. We do not check for duplicated interfaces or methods and
@@ -103,12 +103,6 @@ class ProxyTest : public CommonRuntimeTest {
soa.Self()->AssertNoPendingException();
return proxyClass;
}
-
- protected:
- void SetUpRuntimeOptions(RuntimeOptions *options) OVERRIDE {
- options->push_back(std::make_pair(StringPrintf("-Ximage:%s", GetLibCoreOatFileName().c_str()),
- nullptr));
- }
};
// Creates a proxy class and check ClassHelper works correctly.