Avoid JNI invocation in shape_detection unit tests
Instead of using BigBufferUtil to construct a mojom.BigBuffer for test images, construct one manually with bytes always inlined. This avoids using shared memory for large images and thus avoids invoking Mojo JNI calls which cannot be resolved in the test environment. Bug: 833632 Cq-Include-Trybots: luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng Change-Id: If11c5fb1d9e1ba6d6cc059fd5c0dcc825d39a2ef Reviewed-on: https://chromium-review.googlesource.com/1020384Reviewed-by:Reilly Grant <reillyg@chromium.org> Commit-Queue: Ken Rockot <rockot@chromium.org> Cr-Commit-Position: refs/heads/master@{#552392}
Showing
Please register or sign in to comment