1package io.flutter.embedding.engine.renderer;
3import static junit.framework.TestCase.*;
4import static org.mockito.Mockito.*;
6import android.graphics.SurfaceTexture;
7import androidx.test.ext.junit.runners.AndroidJUnit4;
9import org.junit.runner.RunWith;
11@RunWith(AndroidJUnit4.class)
16 final SurfaceTexture tx = mock(SurfaceTexture.class);
20 verify(tx,
times(1)).attachToGLContext(0);
21 verifyNoMoreInteractions(tx);
26 final SurfaceTexture tx = mock(SurfaceTexture.class);
34 verify(tx,
times(1)).detachFromGLContext();
35 verify(tx,
times(1)).attachToGLContext(0);
36 verifyNoMoreInteractions(tx);
41 final SurfaceTexture tx = mock(SurfaceTexture.class);
51 verify(tx,
times(1)).attachToGLContext(0);
52 verifyNoMoreInteractions(tx);
57 final SurfaceTexture tx = mock(SurfaceTexture.class);
64 verify(tx,
times(1)).detachFromGLContext();
65 verifyNoMoreInteractions(tx);
70 final SurfaceTexture tx = mock(SurfaceTexture.class);
75 verify(tx,
times(1)).release();
80 verifyNoMoreInteractions(tx);
static SkISize times(const SkISize &size, float factor)
void detachFromGLContext()
void attachToGLContext_detachesFromCurrentContext()
void attachToGLContext_doesNotDetacheFromCurrentContext()
void attachToGLContext(int texName)
void detachFromGLContext()