Searched refs:mJsSandboxProvider (Results 1 – 2 of 2) sorted by relevance
69 private JSScriptEngine.JavaScriptSandboxProvider mJsSandboxProvider; field in JavaScriptSandboxProviderTest91 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()93 () -> mJsSandboxProvider.getFutureInstance(mApplicationContext).get(); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()114 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesOnlyOneInstance()116 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance()117 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance()136 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()137 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()140 mJsSandboxProvider.destroyCurrentInstance().get(4, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()142 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()[all …]
84 private final JavaScriptSandboxProvider mJsSandboxProvider; field in JSScriptEngine339 return FluentFuture.from(mJsSandboxProvider.destroyCurrentInstance())368 this.mJsSandboxProvider = jsSandboxProvider;469 ClosingFuture.from(mJsSandboxProvider.getFutureInstance(mContext))580 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);589 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);629 return mJsSandboxProvider647 return mJsSandboxProvider658 return mJsSandboxProvider675 return mJsSandboxProvider[all …]