Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest Class Reference

Public Member Functions

void attachToGLContext ()
 
void attachToGLContext_detachesFromCurrentContext ()
 
void attachToGLContext_doesNotDetacheFromCurrentContext ()
 
void detachFromGLContext ()
 
void release ()
 

Detailed Description

Definition at line 12 of file SurfaceTextureWrapperTest.java.

Member Function Documentation

◆ attachToGLContext()

void io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest.attachToGLContext ( )
inline

Definition at line 15 of file SurfaceTextureWrapperTest.java.

15 {
16 final SurfaceTexture tx = mock(SurfaceTexture.class);
17 final SurfaceTextureWrapper wrapper = new SurfaceTextureWrapper(tx);
18
19 wrapper.attachToGLContext(0);
20 verify(tx, times(1)).attachToGLContext(0);
21 verifyNoMoreInteractions(tx);
22 }
static SkISize times(const SkISize &size, float factor)

◆ attachToGLContext_detachesFromCurrentContext()

void io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest.attachToGLContext_detachesFromCurrentContext ( )
inline

Definition at line 25 of file SurfaceTextureWrapperTest.java.

25 {
26 final SurfaceTexture tx = mock(SurfaceTexture.class);
27 final SurfaceTextureWrapper wrapper = new SurfaceTextureWrapper(tx);
28
29 wrapper.attachToGLContext(0);
30
31 reset(tx);
32
33 wrapper.attachToGLContext(0);
34 verify(tx, times(1)).detachFromGLContext();
35 verify(tx, times(1)).attachToGLContext(0);
36 verifyNoMoreInteractions(tx);
37 }
m reset()

◆ attachToGLContext_doesNotDetacheFromCurrentContext()

void io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest.attachToGLContext_doesNotDetacheFromCurrentContext ( )
inline

Definition at line 40 of file SurfaceTextureWrapperTest.java.

40 {
41 final SurfaceTexture tx = mock(SurfaceTexture.class);
42 final SurfaceTextureWrapper wrapper = new SurfaceTextureWrapper(tx);
43
44 wrapper.attachToGLContext(0);
45
46 wrapper.detachFromGLContext();
47
48 reset(tx);
49
50 wrapper.attachToGLContext(0);
51 verify(tx, times(1)).attachToGLContext(0);
52 verifyNoMoreInteractions(tx);
53 }

◆ detachFromGLContext()

void io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest.detachFromGLContext ( )
inline

Definition at line 56 of file SurfaceTextureWrapperTest.java.

56 {
57 final SurfaceTexture tx = mock(SurfaceTexture.class);
58 final SurfaceTextureWrapper wrapper = new SurfaceTextureWrapper(tx);
59
60 wrapper.attachToGLContext(0);
61 reset(tx);
62
63 wrapper.detachFromGLContext();
64 verify(tx, times(1)).detachFromGLContext();
65 verifyNoMoreInteractions(tx);
66 }

◆ release()

void io.flutter.embedding.engine.renderer.SurfaceTextureWrapperTest.release ( )
inline

Definition at line 69 of file SurfaceTextureWrapperTest.java.

69 {
70 final SurfaceTexture tx = mock(SurfaceTexture.class);
71 final SurfaceTextureWrapper wrapper = new SurfaceTextureWrapper(tx);
72
73 wrapper.release();
74
75 verify(tx, times(1)).release();
76 reset(tx);
77
78 wrapper.detachFromGLContext();
79 wrapper.attachToGLContext(0);
80 verifyNoMoreInteractions(tx);
81 }

The documentation for this class was generated from the following file: