OSDN Git Service

move network test package to sdk 26
authorjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:04:21 +0000 (15:04 -0800)
committerjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:04:21 +0000 (15:04 -0800)
Test: make RunSettingsRoboTests -j40
Change-Id: I1769b220cd8f7d2a50a26f63da1e348297579cd4

13 files changed:
tests/robotests/src/com/android/settings/network/MobileNetworkPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/MobilePlanPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/NetworkDashboardFragmentTest.java
tests/robotests/src/com/android/settings/network/NetworkResetActionMenuControllerTest.java
tests/robotests/src/com/android/settings/network/NetworkResetPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/NetworkResetRestrictionCheckerTest.java
tests/robotests/src/com/android/settings/network/NetworkScorerPickerPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/NetworkScorerPickerTest.java
tests/robotests/src/com/android/settings/network/PrivateDnsMenuControllerTest.java
tests/robotests/src/com/android/settings/network/PrivateDnsModeDialogFragmentTest.java
tests/robotests/src/com/android/settings/network/TetherPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/VpnPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/WifiCallingPreferenceControllerTest.java

index d593b58..4dd890d 100644 (file)
@@ -53,7 +53,7 @@ import org.robolectric.annotation.Config;
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(
     manifest = TestConfig.MANIFEST_PATH,
-    sdk = TestConfig.SDK_VERSION,
+    sdk = TestConfig.SDK_VERSION_O,
     shadows = {ShadowRestrictedLockUtilsWrapper.class, ShadowConnectivityManager.class,
             ShadowUserManager.class}
 )
index a84179d..01d578f 100644 (file)
@@ -30,7 +30,7 @@ import org.robolectric.shadows.ShadowApplication;
 import static com.google.common.truth.Truth.assertThat;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class MobilePlanPreferenceControllerTest {
 
     @Test
index 548d144..76ade7b 100644 (file)
@@ -46,7 +46,7 @@ import org.robolectric.util.ReflectionHelpers;
 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)
 public class NetworkDashboardFragmentTest {
 
     @Mock
index 896e802..087c0ff 100644 (file)
@@ -40,7 +40,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.util.ReflectionHelpers;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NetworkResetActionMenuControllerTest {
 
     private static final int MENU_ID = Menu.FIRST;
index 4d8c626..5cbba61 100644 (file)
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NetworkResetPreferenceControllerTest {
 
     @Mock
index 792bdd3..87bf812 100644 (file)
@@ -36,7 +36,7 @@ import org.mockito.MockitoAnnotations;
 import org.robolectric.annotation.Config;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NetworkResetRestrictionCheckerTest {
 
     @Mock
index 7ed7f3f..5794820 100644 (file)
@@ -43,7 +43,7 @@ import org.robolectric.annotation.Config;
 import java.util.Collections;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NetworkScorerPickerPreferenceControllerTest {
 
     private static final String TEST_SCORER_PACKAGE = "Test Package";
index 7cfced8..773b311 100644 (file)
@@ -48,7 +48,7 @@ import org.robolectric.annotation.Config;
 import java.util.ArrayList;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NetworkScorerPickerTest {
 
     private static final String TEST_SCORER_PACKAGE_1 = "Test Package 1";
index 0be66e0..4e37d56 100644 (file)
@@ -37,7 +37,7 @@ import org.mockito.MockitoAnnotations;
 import org.robolectric.annotation.Config;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class PrivateDnsMenuControllerTest {
     private static final int MENU_ID = 0;
 
index f1d7a73..2dcfdc8 100644 (file)
@@ -41,7 +41,7 @@ import org.robolectric.RuntimeEnvironment;
 import org.robolectric.annotation.Config;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class PrivateDnsModeDialogFragmentTest {
     private static final String HOST_NAME = "192.168.1.1";
     private static final String INVALID_HOST_NAME = "...,";
index b8a6d28..33fd36b 100644 (file)
@@ -52,7 +52,7 @@ import static org.mockito.Mockito.verifyZeroInteractions;
 import static org.mockito.Mockito.when;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class TetherPreferenceControllerTest {
 
     @Mock
index c35f1cf..96a29c2 100644 (file)
@@ -48,7 +48,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowServiceManager;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class VpnPreferenceControllerTest {
 
     @Mock
index 172508d..4d6a0be 100644 (file)
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class WifiCallingPreferenceControllerTest {
 
     @Mock