Skip to content

Commit

Permalink
Use TestParametrization for testing both fbjni and vanillaJNI version
Browse files Browse the repository at this point in the history
Summary: Use TestParametrization to test both fbjni and vanilla jni versions

Reviewed By: amir-shalem

Differential Revision: D17788718

fbshipit-source-id: 0f3317b7403cadca7b7ccd9140f1933d746bf433
  • Loading branch information
SidharthGuglani-zz authored and facebook-github-bot committed Oct 9, 2019
1 parent 6f0694c commit 12eb446
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/yoga/YogaConfig.java
Expand Up @@ -38,5 +38,7 @@ public abstract void setShouldDiffLayoutWithoutLegacyStretchBehaviour(

abstract long getNativePointer();

public abstract void setUseVanillaJNI(boolean useVanillaJNI);

public abstract boolean useVanillaJNI();
}
Expand Up @@ -99,6 +99,11 @@ long getNativePointer() {
return mNativePointer;
}

@Override
public void setUseVanillaJNI(boolean useVanillaJNI) {
this.useVanillaJNI = useVanillaJNI;
}

@Override
public boolean useVanillaJNI() {
return this.useVanillaJNI;
Expand Down

0 comments on commit 12eb446

Please sign in to comment.