Commit 3ef4f6ff by samrobinson Committed by Ian Baker

Disable calculating SSIM on instrumentation tests.

PiperOrigin-RevId: 433237266
parent b94ca4f2
...@@ -47,8 +47,8 @@ public class TransformationTest { ...@@ -47,8 +47,8 @@ public class TransformationTest {
Context context = ApplicationProvider.getApplicationContext(); Context context = ApplicationProvider.getApplicationContext();
Transformer transformer = new Transformer.Builder(context).build(); Transformer transformer = new Transformer.Builder(context).build();
// TODO(b/223381524): Enable Ssim calculation after fixing queueInputBuffer exception.
new TransformerAndroidTestRunner.Builder(context, transformer) new TransformerAndroidTestRunner.Builder(context, transformer)
.setCalculateSsim(true)
.build() .build()
.run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING); .run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING);
} }
...@@ -87,8 +87,8 @@ public class TransformationTest { ...@@ -87,8 +87,8 @@ public class TransformationTest {
} }
}) })
.build(); .build();
// TODO(b/223381524): Enable Ssim calculation after fixing queueInputBuffer exception.
new TransformerAndroidTestRunner.Builder(context, transformer) new TransformerAndroidTestRunner.Builder(context, transformer)
.setCalculateSsim(true)
.build() .build()
.run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING); .run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING);
} }
...@@ -97,10 +97,10 @@ public class TransformationTest { ...@@ -97,10 +97,10 @@ public class TransformationTest {
public void transform4K60() throws Exception { public void transform4K60() throws Exception {
final String testId = TAG + "_transform4K60"; final String testId = TAG + "_transform4K60";
// TODO(b/223381524): Enable Ssim calculation after fixing queueInputBuffer exception.
Context context = ApplicationProvider.getApplicationContext(); Context context = ApplicationProvider.getApplicationContext();
Transformer transformer = new Transformer.Builder(context).build(); Transformer transformer = new Transformer.Builder(context).build();
new TransformerAndroidTestRunner.Builder(context, transformer) new TransformerAndroidTestRunner.Builder(context, transformer)
.setCalculateSsim(true)
.build() .build()
.run(testId, MP4_REMOTE_4K60_PORTRAIT_URI_STRING); .run(testId, MP4_REMOTE_4K60_PORTRAIT_URI_STRING);
} }
...@@ -109,10 +109,10 @@ public class TransformationTest { ...@@ -109,10 +109,10 @@ public class TransformationTest {
public void transformNoAudio() throws Exception { public void transformNoAudio() throws Exception {
final String testId = TAG + "_transformNoAudio"; final String testId = TAG + "_transformNoAudio";
// TODO(b/223381524): Enable Ssim calculation after fixing queueInputBuffer exception.
Context context = ApplicationProvider.getApplicationContext(); Context context = ApplicationProvider.getApplicationContext();
Transformer transformer = new Transformer.Builder(context).setRemoveAudio(true).build(); Transformer transformer = new Transformer.Builder(context).setRemoveAudio(true).build();
new TransformerAndroidTestRunner.Builder(context, transformer) new TransformerAndroidTestRunner.Builder(context, transformer)
.setCalculateSsim(true)
.build() .build()
.run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING); .run(testId, MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING);
} }
...@@ -144,8 +144,8 @@ public class TransformationTest { ...@@ -144,8 +144,8 @@ public class TransformationTest {
.setTransformationRequest( .setTransformationRequest(
new TransformationRequest.Builder().setFlattenForSlowMotion(true).build()) new TransformationRequest.Builder().setFlattenForSlowMotion(true).build())
.build(); .build();
// TODO(b/223381524): Enable Ssim calculation after fixing queueInputBuffer exception.
new TransformerAndroidTestRunner.Builder(context, transformer) new TransformerAndroidTestRunner.Builder(context, transformer)
.setCalculateSsim(true)
.build() .build()
.run(testId, MP4_ASSET_SEF_URI_STRING); .run(testId, MP4_ASSET_SEF_URI_STRING);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment