Home
last modified time | relevance | path

Searched refs:mockRunnable (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilTest.java100 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed() local
102 EasyMock.expect(mockRunnable.run()).andReturn(Boolean.TRUE); in testRunTimed()
103 EasyMock.replay(mockRunnable); in testRunTimed()
105 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed()
112 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_failed() local
114 EasyMock.expect(mockRunnable.run()).andReturn(Boolean.FALSE); in testRunTimed_failed()
115 EasyMock.replay(mockRunnable); in testRunTimed_failed()
117 mRunUtil.runTimed(SHORT_TIMEOUT_MS, mockRunnable, true)); in testRunTimed_failed()
124 IRunUtil.IRunnableResult mockRunnable = EasyMock.createStrictMock( in testRunTimed_exception() local
126 EasyMock.expect(mockRunnable.run()).andThrow(new RuntimeException()); in testRunTimed_exception()
[all …]
DRunUtilFuncTest.java51 MyRunnable mockRunnable = new MyRunnable() { in testRunTimed_timeout() local
63 mockRunnable, true)); in testRunTimed_timeout()
64 assertTrue(mockRunnable.mCanceled); in testRunTimed_timeout()
73 IRunUtil.IRunnableResult mockRunnable = new IRunUtil.IRunnableResult() { in testRunTimedRetry() local
87 mockRunnable)); in testRunTimedRetry()