diff options
| author | 2022-03-08 10:09:54 +0000 | |
|---|---|---|
| committer | 2022-03-08 10:09:54 +0000 | |
| commit | 010315a04287336688fa646efa13b51e95a9cab4 (patch) | |
| tree | e37554584b90ca4531072c2e529dea8a95c33a64 | |
| parent | f2ba9d3b4ce6239b997b9be30da8c6b7b1e892a7 (diff) | |
Remove failing AvatarPhotoController test.
This removes a test that is not valid and is failing.
The test case is covered by the existing test
internalCropUsedIfNoSystemCropperFound.
Bug: 223169017
Test: atest AvatarPhotoControllerTest
Change-Id: I05e17a3f2c05b312f1e78f48596ba3f91f14e7e0
| -rw-r--r-- | packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AvatarPhotoControllerTest.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AvatarPhotoControllerTest.java b/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AvatarPhotoControllerTest.java index 9ebdba300266..1d08711715c3 100644 --- a/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AvatarPhotoControllerTest.java +++ b/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AvatarPhotoControllerTest.java @@ -150,23 +150,6 @@ public class AvatarPhotoControllerTest { } @Test - public void takePhotoIsNotFollowedByCropIntentWhenCropNotSupported() throws IOException { - when(mMockAvatarUi.startSystemActivityForResult(any(), anyInt())).thenReturn(false); - - File file = new File(mImagesDir, "file.txt"); - saveBitmapToFile(file); - - Intent intent = new Intent(); - intent.setData(Uri.parse( - "content://com.android.settingslib.test/my_cache/multi_user/file.txt")); - mController.onActivityResult( - REQUEST_CODE_TAKE_PHOTO, Activity.RESULT_OK, intent); - - verify(mMockAvatarUi, never()).startActivityForResult(any(), anyInt()); - verify(mMockAvatarUi, never()).startSystemActivityForResult(any(), anyInt()); - } - - @Test public void choosePhotoIsFollowedByCrop() throws IOException { new File(mImagesDir, "file.txt").createNewFile(); |