From 8644f1439c23c3be3229a77348250d89f3ffcc3b Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 5 Dec 2023 03:41:14 -0800 Subject: [PATCH] Re-enabled disabled tests ReactPropForShadowNodeSpecTest and ReactPropForShadowNodeSetterTest (#1494) Summary: X-link: https://github.com/facebook/react-native/pull/41788 Those tests are currently disabled due to Yoga attempting to do JNI calls. I've added infra to bypass .so loading during tests, and we should be good to re-enable those tests by now. Changelog: [Internal] [Changed] - Re-enabled disabled tests ReactPropForShadowNodeSpecTest and ReactPropForShadowNodeSetterTest Reviewed By: NickGerleman Differential Revision: D51814491 --- java/com/facebook/yoga/YogaConfig.java | 2 +- java/com/facebook/yoga/YogaConfigJNIBase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/facebook/yoga/YogaConfig.java b/java/com/facebook/yoga/YogaConfig.java index bd7b2998ce..0ca8571e95 100644 --- a/java/com/facebook/yoga/YogaConfig.java +++ b/java/com/facebook/yoga/YogaConfig.java @@ -27,5 +27,5 @@ public abstract class YogaConfig { public abstract YogaLogger getLogger(); - abstract long getNativePointer(); + protected abstract long getNativePointer(); } diff --git a/java/com/facebook/yoga/YogaConfigJNIBase.java b/java/com/facebook/yoga/YogaConfigJNIBase.java index 8e7c94921c..07263e6df3 100644 --- a/java/com/facebook/yoga/YogaConfigJNIBase.java +++ b/java/com/facebook/yoga/YogaConfigJNIBase.java @@ -60,7 +60,7 @@ public YogaLogger getLogger() { return mLogger; } - long getNativePointer() { + protected long getNativePointer() { return mNativePointer; } }