Searched refs:mMockedIsolate (Results 1 – 1 of 1) sorted by relevance
137 @Mock private JavaScriptIsolate mMockedIsolate; field in JSScriptEngineTest526 when(mMockedSandbox.createIsolate()).thenReturn(mMockedIsolate); in testConnectionIsResetIfEvaluateFailsWithSandboxDeadException()527 when(mMockedIsolate.evaluateJavaScriptAsync(Mockito.anyString())) in testConnectionIsResetIfEvaluateFailsWithSandboxDeadException()553 when(mMockedSandbox.createIsolate()).thenReturn(mMockedIsolate); in testEvaluationIsRetriedIfEvaluateFailsWithSandboxDeadException()554 when(mMockedIsolate.evaluateJavaScriptAsync(Mockito.anyString())) in testEvaluationIsRetriedIfEvaluateFailsWithSandboxDeadException()578 when(mMockedSandbox.createIsolate()).thenReturn(mMockedIsolate); in testConnectionIsResetIfEvaluateFailsWithMemoryLimitExceedException()580 when(mMockedIsolate.evaluateJavaScriptAsync(Mockito.anyString())) in testConnectionIsResetIfEvaluateFailsWithMemoryLimitExceedException()606 when(mMockedSandbox.createIsolate()).thenReturn(mMockedIsolate); in testConnectionIsNotResetIfEvaluateFailsWithAnyOtherException()607 when(mMockedIsolate.evaluateJavaScriptAsync(Mockito.anyString())) in testConnectionIsNotResetIfEvaluateFailsWithAnyOtherException()723 when(mMockedSandbox.createIsolate()).thenReturn(mMockedIsolate); in testSuccessAtCreateIsolateUnboundedMaxHeapMemory()[all …]