webrtc/sdk/android/native_unittests
Sami Kalliomäki ee61f9440a Fix a bug in video_encoder_wrapper where int array was not freed properly.
JNI_COMMIT doesn't actually free the buffer.

From JNI docs:
0: copy back the content and free the elems buffer
JNI_COMMIT: copy back the content but do not free the elems buffer
JNI_ABORT: free the buffer without copying back the possible changes

Also introduces helper methods to help avoid this problem in the
future.

Bug: webrtc:10132
Change-Id: I769df286d3bd186fdf39ee2363e9002f36454509
Reviewed-on: https://webrtc-review.googlesource.com/c/120600
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26529}
2019-02-04 13:12:07 +00:00
..
audio_device Remove rtc_base/scoped_ref_ptr.h. 2019-01-25 20:29:58 +00:00
codecs (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
org/webrtc Android: Support externally aligned timestamps 2018-11-15 11:41:06 +00:00
peerconnection (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
stacktrace (7) Rename files to snake_case: remove forwarding headers 2019-01-26 00:33:46 +00:00
video (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
DEPS Add unit tests for Android audio device module 2018-04-12 09:27:45 +00:00
java_types_unittest.cc Fix a bug in video_encoder_wrapper where int array was not freed properly. 2019-02-04 13:12:07 +00:00
test_jni_onload.cc Implements JavaToNativeStringMap and adds tests for native API. 2018-02-09 10:34:44 +00:00