webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | List of all members
org.webrtc.SurfaceTextureHelperTest Class Reference

Classes

class  MockTextureListener
 

Public Member Functions

void testThreeConstantColorFrames () throws InterruptedException
 
void testLateReturnFrame () throws InterruptedException
 
void testDispose () throws InterruptedException
 
void testDisposeImmediately ()
 
void testStopListening () throws InterruptedException
 
void testStopListeningImmediately () throws InterruptedException
 
void testStopListeningImmediatelyOnHandlerThread () throws InterruptedException
 
void testRestartListeningWithNewListener () throws InterruptedException
 
void testTexturetoYUV () throws InterruptedException
 

Static Public Member Functions

static void assertClose (int threshold, int expected, int actual)
 

Member Function Documentation

◆ 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

Test calling startListening() with a new listener after stopListening() has been called.

◆ 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

Test stopListening() immediately after the SurfaceTextureHelper has been setup.

◆ testStopListeningImmediatelyOnHandlerThread()

void org.webrtc.SurfaceTextureHelperTest.testStopListeningImmediatelyOnHandlerThread ( ) throws InterruptedException
inline

Test stopListening() immediately after the SurfaceTextureHelper has been setup on the handler thread.

◆ 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: