Move password test package to sdk 26
Test: make RunSettingsRoboTests -j40 Change-Id: I37c5df89dc4236a7d225c4802bf4195f2fd943b7
This commit is contained in:
@@ -47,7 +47,7 @@ import java.util.regex.Pattern;
|
|||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
manifest = TestConfig.MANIFEST_PATH,
|
manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION,
|
sdk = TestConfig.SDK_VERSION_O,
|
||||||
shadows = {
|
shadows = {
|
||||||
SettingsShadowResources.class
|
SettingsShadowResources.class
|
||||||
})
|
})
|
||||||
|
@@ -33,7 +33,7 @@ import org.robolectric.shadows.ShadowActivity.IntentForResult;
|
|||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
manifest = TestConfig.MANIFEST_PATH,
|
manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION,
|
sdk = TestConfig.SDK_VERSION_O,
|
||||||
shadows = {
|
shadows = {
|
||||||
ShadowUserManager.class,
|
ShadowUserManager.class,
|
||||||
ShadowUtils.class
|
ShadowUtils.class
|
||||||
|
@@ -49,7 +49,7 @@ import org.robolectric.util.FragmentTestUtil;
|
|||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
manifest = TestConfig.MANIFEST_PATH,
|
manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION,
|
sdk = TestConfig.SDK_VERSION_O,
|
||||||
shadows = {
|
shadows = {
|
||||||
ShadowEventLogWriter.class,
|
ShadowEventLogWriter.class,
|
||||||
ShadowUserManager.class,
|
ShadowUserManager.class,
|
||||||
|
@@ -35,7 +35,7 @@ import org.robolectric.annotation.Config;
|
|||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
manifest = TestConfig.MANIFEST_PATH,
|
manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION,
|
sdk = TestConfig.SDK_VERSION_O,
|
||||||
shadows = {
|
shadows = {
|
||||||
SettingsShadowResources.class,
|
SettingsShadowResources.class,
|
||||||
SettingsShadowResources.SettingsShadowTheme.class,
|
SettingsShadowResources.SettingsShadowTheme.class,
|
||||||
|
@@ -30,7 +30,7 @@ import org.robolectric.annotation.Config;
|
|||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(
|
@Config(
|
||||||
manifest = TestConfig.MANIFEST_PATH,
|
manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION)
|
sdk = TestConfig.SDK_VERSION_O)
|
||||||
public class ScreenLockTypeTest {
|
public class ScreenLockTypeTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@@ -38,7 +38,7 @@ import org.robolectric.annotation.Config;
|
|||||||
import org.robolectric.shadows.ShadowActivity;
|
import org.robolectric.shadows.ShadowActivity;
|
||||||
|
|
||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
|
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
|
||||||
public class SetNewPasswordActivityTest {
|
public class SetNewPasswordActivityTest {
|
||||||
|
|
||||||
private int mProvisioned;
|
private int mProvisioned;
|
||||||
|
@@ -57,7 +57,7 @@ import org.robolectric.annotation.Config;
|
|||||||
* Tests for {@link SetNewPasswordController}.
|
* Tests for {@link SetNewPasswordController}.
|
||||||
*/
|
*/
|
||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
|
@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
|
||||||
public final class SetNewPasswordControllerTest {
|
public final class SetNewPasswordControllerTest {
|
||||||
private static final int CURRENT_USER_ID = 101;
|
private static final int CURRENT_USER_ID = 101;
|
||||||
private static final long FINGERPRINT_CHALLENGE = -9876512313131L;
|
private static final long FINGERPRINT_CHALLENGE = -9876512313131L;
|
||||||
|
@@ -40,7 +40,7 @@ import org.robolectric.shadows.ShadowAlertDialog;
|
|||||||
|
|
||||||
@RunWith(SettingsRobolectricTestRunner.class)
|
@RunWith(SettingsRobolectricTestRunner.class)
|
||||||
@Config(manifest = TestConfig.MANIFEST_PATH,
|
@Config(manifest = TestConfig.MANIFEST_PATH,
|
||||||
sdk = TestConfig.SDK_VERSION,
|
sdk = TestConfig.SDK_VERSION_O,
|
||||||
shadows = {
|
shadows = {
|
||||||
SettingsShadowResources.class,
|
SettingsShadowResources.class,
|
||||||
SettingsShadowResources.SettingsShadowTheme.class,
|
SettingsShadowResources.SettingsShadowTheme.class,
|
||||||
|
Reference in New Issue
Block a user