Searched refs:destroyIfCurrentInstance (Results 1 – 3 of 3) sorted by relevance
166 mJsSandboxProvider.destroyIfCurrentInstance(sandbox1).get(4, TimeUnit.SECONDS); in testJsSandboxProviderDestroysOnlyIfCurrentInstance()168 mJsSandboxProvider.destroyIfCurrentInstance(sandbox1).get(4, TimeUnit.SECONDS); in testJsSandboxProviderDestroysOnlyIfCurrentInstance()194 FluentFuture.from(mJsSandboxProvider.destroyIfCurrentInstance(sandbox1)) in testJsSandboxProviderDestroysOnlyIfCurrentInstanceOnlyOnce()196 FluentFuture.from(mJsSandboxProvider.destroyIfCurrentInstance(sandbox1)) in testJsSandboxProviderDestroysOnlyIfCurrentInstanceOnlyOnce()
494 verify(mMockSandboxProvider).destroyIfCurrentInstance(mMockedSandbox); in testConnectionIsResetIfJSProcessIsTerminatedWithIllegalStateException()521 verify(mMockSandboxProvider).destroyIfCurrentInstance(mMockedSandbox); in testConnectionIsResetIfCreateIsolateThrowsRuntimeException()529 when(mMockSandboxProvider.destroyIfCurrentInstance(mMockedSandbox)) in testConnectionIsResetIfEvaluateFailsWithSandboxDeadException()548 verify(mMockSandboxProvider).destroyIfCurrentInstance(mMockedSandbox); in testConnectionIsResetIfEvaluateFailsWithSandboxDeadException()557 when(mMockSandboxProvider.destroyIfCurrentInstance(mMockedSandbox)) in testEvaluationIsRetriedIfEvaluateFailsWithSandboxDeadException()573 verify(mMockSandboxProvider).destroyIfCurrentInstance(mMockedSandbox); in testEvaluationIsRetriedIfEvaluateFailsWithSandboxDeadException()584 when(mMockSandboxProvider.destroyIfCurrentInstance(mMockedSandbox)) in testConnectionIsResetIfEvaluateFailsWithMemoryLimitExceedException()601 verify(mMockSandboxProvider).destroyIfCurrentInstance(mMockedSandbox); in testConnectionIsResetIfEvaluateFailsWithMemoryLimitExceedException()611 when(mMockSandboxProvider.destroyIfCurrentInstance(mMockedSandbox)) in testConnectionIsNotResetIfEvaluateFailsWithAnyOtherException()624 verify(mMockSandboxProvider, never()).destroyIfCurrentInstance(mMockedSandbox); in testConnectionIsNotResetIfEvaluateFailsWithAnyOtherException()[all …]
161 public ListenableFuture<Void> destroyIfCurrentInstance( in destroyIfCurrentInstance() method in JSScriptEngine.JavaScriptSandboxProvider580 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);589 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);732 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);