Merge "Update truth-prebuilt to 0.44." am: 4bc2305fd4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436523 Change-Id: I9f7c544dfd718a38be85811dcc3f87d0034e88fc
This commit is contained in:
committed by
Automerger Merge Worker
commit
37b8eeecda
@@ -32,9 +32,11 @@ public class GlobalSaturationTintControllerTest {
|
|||||||
public void setAndGetMatrix() {
|
public void setAndGetMatrix() {
|
||||||
final GlobalSaturationTintController tintController = new GlobalSaturationTintController();
|
final GlobalSaturationTintController tintController = new GlobalSaturationTintController();
|
||||||
tintController.setMatrix(50);
|
tintController.setMatrix(50);
|
||||||
assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f)
|
assertThat(tintController.getMatrix()).usingTolerance(0.00001f)
|
||||||
.of(new float[]{0.6155f, 0.1155f, 0.1155f, 0.0f, 0.3575f, 0.85749996f, 0.3575f,
|
.containsExactly(
|
||||||
0.0f, 0.036f, 0.036f, 0.536f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f});
|
0.6155f, 0.1155f, 0.1155f, 0.0f, 0.3575f, 0.85749996f, 0.3575f,
|
||||||
|
0.0f, 0.036f, 0.036f, 0.536f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)
|
||||||
|
.inOrder();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -43,6 +45,7 @@ public class GlobalSaturationTintControllerTest {
|
|||||||
tintController.setMatrix(100);
|
tintController.setMatrix(100);
|
||||||
final float[] matrix = new float[16];
|
final float[] matrix = new float[16];
|
||||||
Matrix.setIdentityM(matrix, 0);
|
Matrix.setIdentityM(matrix, 0);
|
||||||
assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f).of(matrix);
|
assertThat(tintController.getMatrix()).usingTolerance(0.00001f)
|
||||||
|
.containsExactly(matrix).inOrder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user