mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use TestParametrization for testing both fbjni and vanillaJNI version
Summary: Use TestParametrization to test both fbjni and vanilla jni versions Reviewed By: amir-shalem Differential Revision: D17788718 fbshipit-source-id: 0f3317b7403cadca7b7ccd9140f1933d746bf433
This commit is contained in:
committed by
Facebook Github Bot
parent
6f0694ccbe
commit
12eb44641f
@@ -38,5 +38,7 @@ public abstract class YogaConfig {
|
||||
|
||||
abstract long getNativePointer();
|
||||
|
||||
public abstract void setUseVanillaJNI(boolean useVanillaJNI);
|
||||
|
||||
public abstract boolean useVanillaJNI();
|
||||
}
|
||||
|
||||
@@ -99,6 +99,11 @@ public abstract class YogaConfigJNIBase extends YogaConfig {
|
||||
return mNativePointer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUseVanillaJNI(boolean useVanillaJNI) {
|
||||
this.useVanillaJNI = useVanillaJNI;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useVanillaJNI() {
|
||||
return this.useVanillaJNI;
|
||||
|
||||
Reference in New Issue
Block a user