Update native references to JSTimers

Reviewed By: AaaChiuuu

Differential Revision: D5294997

fbshipit-source-id: 3003d56f744af0c35b1ffef7bdd71617d4f948c3
This commit is contained in:
Pieter De Baets
2017-06-22 09:46:30 -07:00
committed by Facebook Github Bot
parent 0ae11f12f3
commit d795fa1b2c
7 changed files with 16 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ import com.facebook.react.bridge.JavaOnlyArray;
import com.facebook.react.devsupport.interfaces.DevSupportManager;
import com.facebook.react.common.SystemClock;
import com.facebook.react.modules.core.ChoreographerCompat;
import com.facebook.react.modules.core.JSTimersExecution;
import com.facebook.react.modules.core.JSTimers;
import com.facebook.react.modules.core.ReactChoreographer;
import com.facebook.react.modules.core.Timing;
@@ -51,7 +51,7 @@ public class TimingModuleTest {
private PostFrameCallbackHandler mPostFrameCallbackHandler;
private PostFrameIdleCallbackHandler mIdlePostFrameCallbackHandler;
private long mCurrentTimeNs;
private JSTimersExecution mJSTimersMock;
private JSTimers mJSTimersMock;
@Rule
public PowerMockRule rule = new PowerMockRule();
@@ -97,8 +97,8 @@ public class TimingModuleTest {
any(ChoreographerCompat.FrameCallback.class));
mTiming = new Timing(reactContext, mock(DevSupportManager.class));
mJSTimersMock = mock(JSTimersExecution.class);
when(reactContext.getJSModule(JSTimersExecution.class)).thenReturn(mJSTimersMock);
mJSTimersMock = mock(JSTimers.class);
when(reactContext.getJSModule(JSTimers.class)).thenReturn(mJSTimersMock);
doAnswer(new Answer() {
@Override