Reverted commit D3334273

Reviewed By: astreet

Differential Revision: D3334273

fbshipit-source-id: a3849604ea89db74900850c294685e7da9aeeacc
This commit is contained in:
Aaron Chiu
2016-08-12 15:49:13 -07:00
committed by Facebook Github Bot 7
parent 757ab0b936
commit 705daabbb1
40 changed files with 255 additions and 103 deletions
@@ -14,7 +14,6 @@ import java.util.concurrent.TimeUnit;
import com.facebook.react.bridge.BaseJavaModule;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.annotations.ReactModule;
/**
* This class is used to verify that some JS integration tests have completed successfully.
@@ -24,7 +23,6 @@ import com.facebook.react.bridge.annotations.ReactModule;
* to wait for the test to run, and {#link JSIntegrationTestChecker#isTestDone()} to check if it
* completed successfully.
*/
@ReactModule(name = "TestModule")
public class JSIntegrationTestChecker extends BaseJavaModule {
private final CountDownLatch mLatch;
@@ -33,6 +31,11 @@ public class JSIntegrationTestChecker extends BaseJavaModule {
mLatch = new CountDownLatch(1);
}
@Override
public String getName() {
return "TestModule";
}
@ReactMethod
public void markTestCompleted() {
mLatch.countDown();