Don't run different user test on R for now.
Bug: 205096638
Test: atest
Change-Id: I1cdf974d7cbf855e3ff0005cbc0a424834c6cb85
diff --git a/tests/src/com/android/providers/media/photopicker/data/model/ItemTest.java b/tests/src/com/android/providers/media/photopicker/data/model/ItemTest.java
index 842bc75..46ea986 100644
--- a/tests/src/com/android/providers/media/photopicker/data/model/ItemTest.java
+++ b/tests/src/com/android/providers/media/photopicker/data/model/ItemTest.java
@@ -23,9 +23,11 @@
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
+import android.os.Build;
import android.os.UserHandle;
import android.provider.MediaStore;
+import androidx.test.filters.SdkSuppress;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
@@ -61,6 +63,8 @@
}
@Test
+ // TODO(b/205096638) Re-enable if we add work profile support on R
+ @SdkSuppress(minSdkVersion = Build.VERSION_CODES.S)
public void testConstructor_differentUser() {
final String id = "1";
final long dateTaken = 12345678L;