commit | 7be195f15a83df6cf22a90914b79e13da8a1a227 | [log] [tgz] |
---|---|---|
author | Tsung-Mao Fang <tmfang@google.com> | Tue Jan 18 15:37:30 2022 +0800 |
committer | Tsung-Mao Fang <tmfang@google.com> | Tue Jan 18 15:37:30 2022 +0800 |
tree | f2b2ac05fca5b9f640b8faaec55a5fd5cf292888 | |
parent | c6c9e2eb16160e3f4fb9c582229b205b9d45d7a4 [diff] |
Fix broken tests Test: Run robo test Change-Id: I0d466e95c8d63703e05d5b6f0e2a81e43b468ed7
diff --git a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java index 9bbd162..05af9ac 100644 --- a/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java +++ b/tests/robotests/src/com/android/settings/dashboard/profileselector/ProfileSelectDialogTest.java
@@ -45,8 +45,8 @@ @Ignore public class ProfileSelectDialogTest { - private static final UserHandle NORMAL_USER = UserHandle.of(1111); - private static final UserHandle REMOVED_USER = UserHandle.of(2222); + private static final UserHandle NORMAL_USER = new UserHandle(1111); + private static final UserHandle REMOVED_USER = new UserHandle(2222); @Mock private Context mContext;
diff --git a/tests/robotests/src/com/android/settings/enterprise/ActionDisabledByAdminDialogHelperTest.java b/tests/robotests/src/com/android/settings/enterprise/ActionDisabledByAdminDialogHelperTest.java index 9088641..626185f 100644 --- a/tests/robotests/src/com/android/settings/enterprise/ActionDisabledByAdminDialogHelperTest.java +++ b/tests/robotests/src/com/android/settings/enterprise/ActionDisabledByAdminDialogHelperTest.java
@@ -69,7 +69,7 @@ new ComponentName("some.package.name", "some.package.name.SomeClass"); private static final int USER_ID = 123; private static final EnforcedAdmin ENFORCED_ADMIN = - new EnforcedAdmin(ADMIN_COMPONENT, UserHandle.of(USER_ID)); + new EnforcedAdmin(ADMIN_COMPONENT, new UserHandle(USER_ID)); private ActionDisabledByAdminDialogHelper mHelper; private Activity mActivity; private org.robolectric.shadows.ShadowActivity mActivityShadow;