Permalink
Browse files

Add all test routes as server snapshot tests

Reviewed By: raluca-elena, TheSavior

Differential Revision: D5638532

fbshipit-source-id: 8db8210d0d0d08b9423b0a77f6b8e4e290f2eef0
  • Loading branch information...
sahrens authored and facebook-github-bot committed Sep 11, 2017
1 parent 96de23a commit 393bf88be695ea7c2907b274038b3f4d0f4a3432
@@ -21,6 +21,8 @@
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.common.LifecycleState;
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
import com.facebook.react.modules.core.PermissionAwareActivity;
import com.facebook.react.modules.core.PermissionListener;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.react.testing.idledetection.ReactBridgeIdleSignaler;
import com.facebook.react.testing.idledetection.ReactIdleDetectionUtil;
@@ -29,9 +31,8 @@
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
public class ReactAppTestActivity extends FragmentActivity implements
DefaultHardwareBackBtnHandler
{
public class ReactAppTestActivity extends FragmentActivity
implements DefaultHardwareBackBtnHandler, PermissionAwareActivity {
private static final String DEFAULT_BUNDLE_NAME = "AndroidTestBundle.js";
private static final int ROOT_VIEW_ID = 8675309;
@@ -269,4 +270,8 @@ public void onRequestPermissionsResult(
String[] permissions,
int[] grantResults) {
}
@Override
public void requestPermissions(
String[] permissions, int requestCode, PermissionListener listener) {}
}

0 comments on commit 393bf88

Please sign in to comment.