summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichi Watanabe <swatanabe@xevo.com>2020-07-03 19:58:37 +0900
committerShinichi Watanabe <swatanabe@xevo.com>2020-07-03 19:58:37 +0900
commit20b95ce2ada65190232101b64301c772edd3b163 (patch)
tree626ae5d760138c8acf055fb4deec4f88288d55f1
parentb66814bd198a630c27050e337e118d8e150b3343 (diff)
downloadsdl_android-20b95ce2ada65190232101b64301c772edd3b163.tar.gz
Refactorred OffscreenSurfaceTest, as AndroidtestCase2 no longer exists in current develop branch.
-rw-r--r--android/sdl_android/src/androidTest/java/com/android/grafika/gles/OffscreenSurfaceTest.java20
1 files changed, 7 insertions, 13 deletions
diff --git a/android/sdl_android/src/androidTest/java/com/android/grafika/gles/OffscreenSurfaceTest.java b/android/sdl_android/src/androidTest/java/com/android/grafika/gles/OffscreenSurfaceTest.java
index 1e4f8182a..6ea6c8add 100644
--- a/android/sdl_android/src/androidTest/java/com/android/grafika/gles/OffscreenSurfaceTest.java
+++ b/android/sdl_android/src/androidTest/java/com/android/grafika/gles/OffscreenSurfaceTest.java
@@ -2,34 +2,28 @@ package com.android.grafika.gles;
import android.opengl.GLES20;
import android.os.Environment;
+import android.support.test.runner.AndroidJUnit4;
import android.util.Log;
-import com.smartdevicelink.AndroidTestCase2;
+import org.junit.Test;
+import org.junit.runner.RunWith;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
+import static junit.framework.TestCase.assertTrue;
-public class OffscreenSurfaceTest extends AndroidTestCase2 {
+@RunWith(AndroidJUnit4.class)
+public class OffscreenSurfaceTest {
private final String TAG = OffscreenSurfaceTest.class.getSimpleName();
private final int mWidth = 1280;
private final int mHeight = 720;
private final int mIterations = 100;
- @Override
- public void setUp() throws Exception {
- super.setUp();
- }
-
- @Override
- public void tearDown() throws Exception {
- super.tearDown();
- }
-
-
+ @Test
public void testReadPixels() {
EglCore eglCore = new EglCore(null, 0);
OffscreenSurface offscreenSurface = new OffscreenSurface(eglCore, mWidth, mHeight);