OSDN Git Service

Move password test package to sdk 26
authorjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:43:42 +0000 (15:43 -0800)
committerjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:45:05 +0000 (15:45 -0800)
Test: make RunSettingsRoboTests -j40
Change-Id: I37c5df89dc4236a7d225c4802bf4195f2fd943b7

tests/robotests/src/com/android/settings/password/ChooseLockGenericControllerTest.java
tests/robotests/src/com/android/settings/password/ChooseLockSettingsHelperTest.java
tests/robotests/src/com/android/settings/password/ChooseLockTypeDialogFragmentTest.java
tests/robotests/src/com/android/settings/password/ConfirmCredentialTest.java
tests/robotests/src/com/android/settings/password/ScreenLockTypeTest.java
tests/robotests/src/com/android/settings/password/SetNewPasswordActivityTest.java
tests/robotests/src/com/android/settings/password/SetNewPasswordControllerTest.java
tests/robotests/src/com/android/settings/password/SetupSkipDialogTest.java

index 28b0264..5b86374 100644 (file)
@@ -47,7 +47,7 @@ import java.util.regex.Pattern;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
         manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 SettingsShadowResources.class
         })
index 20a05e3..55e60e5 100644 (file)
@@ -33,7 +33,7 @@ import org.robolectric.shadows.ShadowActivity.IntentForResult;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
         manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 ShadowUserManager.class,
                 ShadowUtils.class
index 0a0734f..2d82e0e 100644 (file)
@@ -49,7 +49,7 @@ import org.robolectric.util.FragmentTestUtil;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
         manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 ShadowEventLogWriter.class,
                 ShadowUserManager.class,
index d76968e..1568f19 100644 (file)
@@ -35,7 +35,7 @@ import org.robolectric.annotation.Config;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
         manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 SettingsShadowResources.class,
                 SettingsShadowResources.SettingsShadowTheme.class,
index 8beefa8..f8792a8 100644 (file)
@@ -30,7 +30,7 @@ import org.robolectric.annotation.Config;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
         manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION)
+        sdk = TestConfig.SDK_VERSION_O)
 public class ScreenLockTypeTest {
 
     @Test
index cb863a0..06086fc 100644 (file)
@@ -38,7 +38,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowActivity;
 
 @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 {
 
     private int mProvisioned;
index 52678fb..a3f1787 100644 (file)
@@ -57,7 +57,7 @@ import org.robolectric.annotation.Config;
  * Tests for {@link SetNewPasswordController}.
  */
 @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 {
     private static final int CURRENT_USER_ID = 101;
     private static final long FINGERPRINT_CHALLENGE = -9876512313131L;
index 0e6f28a..6cd4244 100644 (file)
@@ -40,7 +40,7 @@ import org.robolectric.shadows.ShadowAlertDialog;
 
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 SettingsShadowResources.class,
                 SettingsShadowResources.SettingsShadowTheme.class,