Searched refs:mProfilerMock (Results 1 – 1 of 1) sorted by relevance
67 @Mock private Profiler mProfilerMock; field in JavaScriptSandboxProviderTest91 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()112 when(mProfilerMock.start(JSScriptEngineLogConstants.SANDBOX_INIT_TIME)) in testJsSandboxProviderCreatesOnlyOneInstance()114 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesOnlyOneInstance()120 verify(mProfilerMock).start(JSScriptEngineLogConstants.SANDBOX_INIT_TIME); in testJsSandboxProviderCreatesOnlyOneInstance()134 when(mProfilerMock.start(JSScriptEngineLogConstants.SANDBOX_INIT_TIME)) in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()136 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()148 verify(mProfilerMock, Mockito.times(2)).start(JSScriptEngineLogConstants.SANDBOX_INIT_TIME); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()159 when(mProfilerMock.start(JSScriptEngineLogConstants.SANDBOX_INIT_TIME)) in testJsSandboxProviderDestroysOnlyIfCurrentInstance()162 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderDestroysOnlyIfCurrentInstance()[all …]