Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/Utils.h

Issue 29345369: Issue 4081 - Fix failing MockWebRequestTest test for libadblockplus-android (Closed)
Patch Set: reverting changes to .hgignore Created Sept. 13, 2016, 10:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus-android/jni/JniWebRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/jni/Utils.h
diff --git a/libadblockplus-android/jni/Utils.h b/libadblockplus-android/jni/Utils.h
index bfa1776ae7e2c0f0abb3baf54403ab8f0b872cf6..1f525b35cdf97148c39311d0efb929e143c4eee2 100644
--- a/libadblockplus-android/jni/Utils.h
+++ b/libadblockplus-android/jni/Utils.h
@@ -171,6 +171,11 @@ inline int64_t JniGetLongField(JNIEnv* env, jclass clazz, jobject jObj, const ch
return (int64_t)env->GetLongField(jObj, env->GetFieldID(clazz, name, "J"));
}
+inline jobjectArray JniGetStringArrayField(JNIEnv* env, jclass clazz, jobject jObj, const char* name)
+{
+ return (jobjectArray)env->GetObjectField(jObj, env->GetFieldID(clazz, name, "[Ljava/lang/String;"));
+}
+
jobject NewJniArrayList(JNIEnv* env);
jobject NewJniFilter(JNIEnv* env, const AdblockPlus::FilterPtr& filter);
« no previous file with comments | « libadblockplus-android/jni/JniWebRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld