Fix unit test compilation on Android

Summary:
Before, compilation fails with P130281113. After fixing BUCK target, fails with P130281201.

After all changes, the tests succeed.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D21390996

fbshipit-source-id: c85aa43b3ef7fc9642d226ae706c937b2a5a408d
This commit is contained in:
Joshua Gross
2020-05-04 21:28:34 -07:00
committed by Facebook GitHub Bot
parent 30a89f30c6
commit ca144fca3f
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -76,6 +76,7 @@ fb_xplat_cxx_test(
"-Wall",
],
contacts = ["oncall+react_native@xmail.facebook.com"],
fbandroid_use_instrumentation_test = True,
platforms = (ANDROID, APPLE, CXX),
deps = [
":mounting",
@@ -114,6 +114,9 @@ static void testShadowNodeTreeLifeCycle(
LOG(ERROR) << "Entropy seed: " << entropy.getSeed() << "\n";
// There are some issues getting `getDebugDescription` to compile
// under test on Android for now.
#ifndef ANDROID
LOG(ERROR) << "Shadow Tree before: \n"
<< currentRootNode->getDebugDescription();
LOG(ERROR) << "Shadow Tree after: \n"
@@ -128,6 +131,7 @@ static void testShadowNodeTreeLifeCycle(
LOG(ERROR) << "Mutations:"
<< "\n"
<< getDebugDescription(mutations, {});
#endif
FAIL();
}