|
class | MockTextureListener |
|
◆ assertClose()
static void org.webrtc.SurfaceTextureHelperTest.assertClose |
( |
int |
threshold, |
|
|
int |
expected, |
|
|
int |
actual |
|
) |
| |
|
inlinestatic |
Assert that two integers are close, with difference at most
.
◆ testDispose()
void org.webrtc.SurfaceTextureHelperTest.testDispose |
( |
| ) |
throws InterruptedException |
|
inline |
Test disposing the SurfaceTextureHelper, but keep trying to produce more texture frames. No frames should be delivered to the listener.
◆ testDisposeImmediately()
void org.webrtc.SurfaceTextureHelperTest.testDisposeImmediately |
( |
| ) |
|
|
inline |
Test disposing the SurfaceTextureHelper immediately after is has been setup to use a shared context. No frames should be delivered to the listener.
◆ testLateReturnFrame()
void org.webrtc.SurfaceTextureHelperTest.testLateReturnFrame |
( |
| ) |
throws InterruptedException |
|
inline |
Test disposing the SurfaceTextureHelper while holding a pending texture frame. The pending texture frame should still be valid, and this is tested by drawing the texture frame to a pixel buffer and reading it back with glReadPixels().
◆ testRestartListeningWithNewListener()
void org.webrtc.SurfaceTextureHelperTest.testRestartListeningWithNewListener |
( |
| ) |
throws InterruptedException |
|
inline |
◆ testStopListening()
void org.webrtc.SurfaceTextureHelperTest.testStopListening |
( |
| ) |
throws InterruptedException |
|
inline |
Call stopListening(), but keep trying to produce more texture frames. No frames should be delivered to the listener.
◆ testStopListeningImmediately()
void org.webrtc.SurfaceTextureHelperTest.testStopListeningImmediately |
( |
| ) |
throws InterruptedException |
|
inline |
◆ testStopListeningImmediatelyOnHandlerThread()
void org.webrtc.SurfaceTextureHelperTest.testStopListeningImmediatelyOnHandlerThread |
( |
| ) |
throws InterruptedException |
|
inline |
◆ testTexturetoYUV()
void org.webrtc.SurfaceTextureHelperTest.testTexturetoYUV |
( |
| ) |
throws InterruptedException |
|
inline |
◆ testThreeConstantColorFrames()
void org.webrtc.SurfaceTextureHelperTest.testThreeConstantColorFrames |
( |
| ) |
throws InterruptedException |
|
inline |
Test normal use by receiving three uniform texture frames. Texture frames are returned as early as possible. The texture pixel values are inspected by drawing the texture frame to a pixel buffer and reading it back with glReadPixels().
The documentation for this class was generated from the following file: