Generating stub code for registering a jni function at runtime.
On ARM and x86. Added a unit test.
Change-Id: I6b1ee09ad18295108f406ce21d73555796ecbba6
diff --git a/src/jni_tests.cc b/src/jni_tests.cc
new file mode 100644
index 0000000..934ccac
--- /dev/null
+++ b/src/jni_tests.cc
@@ -0,0 +1,9 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+
+#include "jni.h"
+#include <stdio.h>
+
+extern "C"
+JNIEXPORT jint JNICALL Java_MyClass_bar(JNIEnv* env, jobject thisObj, jint count) {
+ return count + 1;
+}