OSDN Git Service

Move backup package tests to sdk 26
authorjeffreyhuang <jeffreyhuang@google.com>
Mon, 27 Nov 2017 23:14:12 +0000 (15:14 -0800)
committerjeffreyhuang <jeffreyhuang@google.com>
Mon, 27 Nov 2017 23:32:12 +0000 (15:32 -0800)
Test: make RunSettingsRoboTests -j40
Change-Id: I016e8ae3336544c4c75ead96d06e4b461ed13773

tests/robotests/src/com/android/settings/backup/BackupSettingsActivityPreferenceControllerTest.java
tests/robotests/src/com/android/settings/backup/BackupSettingsActivityTest.java
tests/robotests/src/com/android/settings/backup/BackupSettingsHelperTest.java
tests/robotests/src/com/android/settings/backup/BackupSettingsPreferenceControllerTest.java

index 5fc3ebc..39cc9a2 100644 (file)
@@ -45,7 +45,7 @@ import org.robolectric.annotation.Implementation;
 import org.robolectric.annotation.Implements;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION,
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O,
         shadows = {BackupSettingsActivityPreferenceControllerTest.ShadowBackupManager.class})
 public class BackupSettingsActivityPreferenceControllerTest {
     private static final String KEY_BACKUP_SETTINGS = "backup_settings";
index 44c7e10..cf3cb53 100644 (file)
@@ -58,7 +58,7 @@ import java.util.List;
 
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION,
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O,
         shadows = {BackupSettingsActivityTest.ShadowBackupSettingsHelper.class,
                 BackupSettingsActivityTest.ShadowUserHandle.class})
 public class BackupSettingsActivityTest {
index 9de0c6a..eb33cd6 100644 (file)
@@ -50,7 +50,7 @@ import com.android.settings.TestConfig;
 import com.android.settingslib.drawer.SettingsDrawerActivity;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION,
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O,
         shadows = {BackupSettingsHelperTest.ShadowBackupManagerStub.class})
 public class BackupSettingsHelperTest {
 
index 3ad49e7..83d9709 100644 (file)
@@ -41,7 +41,7 @@ import android.support.v7.preference.Preference;
 import android.support.v7.preference.PreferenceScreen;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION,
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O,
         shadows = {BackupSettingsPreferenceControllerTest.ShadowBackupSettingsHelper.class})
 public class BackupSettingsPreferenceControllerTest {
     private static final String BACKUP_SETTINGS = "backup_settings";