Index: webrtc/api/androidtests/src/org/webrtc/RendererCommonTest.java |
diff --git a/webrtc/api/androidtests/src/org/webrtc/RendererCommonTest.java b/webrtc/api/androidtests/src/org/webrtc/RendererCommonTest.java |
index cff3a8cab8b241f5372e6d5c7ab8dc18650af465..3aaf7464546ee8c19da2f505b9a0f654fcae05dc 100644 |
--- a/webrtc/api/androidtests/src/org/webrtc/RendererCommonTest.java |
+++ b/webrtc/api/androidtests/src/org/webrtc/RendererCommonTest.java |
@@ -95,11 +95,13 @@ public final class RendererCommonTest extends ActivityTestCase { |
// Assert: |
// u' = u. |
// v' = v. |
+ // clang-format off |
MoreAsserts.assertEquals(new double[] { |
1, 0, 0, 0, |
0, 1, 0, 0, |
0, 0, 1, 0, |
0, 0, 0, 1}, round(layoutMatrix)); |
+ // clang-format on |
} |
@SmallTest |
@@ -108,11 +110,13 @@ public final class RendererCommonTest extends ActivityTestCase { |
// Assert: |
// u' = 1 - u. |
// v' = v. |
+ // clang-format off |
MoreAsserts.assertEquals(new double[] { |
-1, 0, 0, 0, |
0, 1, 0, 0, |
0, 0, 1, 0, |
1, 0, 0, 1}, round(layoutMatrix)); |
+ // clang-format on |
} |
@SmallTest |
@@ -123,22 +127,26 @@ public final class RendererCommonTest extends ActivityTestCase { |
// Assert: |
// u' = 0.25 + 0.5 u. |
// v' = v. |
+ // clang-format off |
MoreAsserts.assertEquals(new double[] { |
0.5, 0, 0, 0, |
0, 1, 0, 0, |
0, 0, 1, 0, |
0.25, 0, 0, 1}, round(layoutMatrix)); |
+ // clang-format on |
} |
@SmallTest |
public static void testRotateTextureMatrixDefault() { |
// Test that rotation with 0 degrees returns an identical matrix. |
+ // clang-format off |
final float[] matrix = new float[] { |
1, 2, 3, 4, |
5, 6, 7, 8, |
9, 0, 1, 2, |
3, 4, 5, 6 |
}; |
+ // clang-format on |
final float rotatedMatrix[] = rotateTextureMatrix(matrix, 0); |
MoreAsserts.assertEquals(round(matrix), round(rotatedMatrix)); |
} |
@@ -149,11 +157,13 @@ public final class RendererCommonTest extends ActivityTestCase { |
// Assert: |
// u' = 1 - v. |
// v' = u. |
+ // clang-format off |
MoreAsserts.assertEquals(new double[] { |
0, 1, 0, 0, |
-1, 0, 0, 0, |
0, 0, 1, 0, |
1, 0, 0, 1}, round(samplingMatrix)); |
+ // clang-format on |
} |
@SmallTest |
@@ -162,10 +172,12 @@ public final class RendererCommonTest extends ActivityTestCase { |
// Assert: |
// u' = 1 - u. |
// v' = 1 - v. |
+ // clang-format off |
MoreAsserts.assertEquals(new double[] { |
-1, 0, 0, 0, |
0, -1, 0, 0, |
0, 0, 1, 0, |
1, 1, 0, 1}, round(samplingMatrix)); |
+ // clang-format on |
} |
} |