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: Full changes set (including initial changeset for this issue and codestyle/commitstyle fixes) Created July 13, 2016, 6:52 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
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);
« libadblockplus-android/jni/JniWebRequest.cpp ('K') | « libadblockplus-android/jni/JniWebRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld