OSDN Git Service

Move notification test package to sdk 26
authorjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:27:02 +0000 (15:27 -0800)
committerjeffreyhuang <jeffreyhuang@google.com>
Thu, 30 Nov 2017 23:27:02 +0000 (15:27 -0800)
Test: make RunSettingsRoboTests -j40
Change-Id: I2038667aa9fc6cd0b0d7f0f06fcf8d49121818ff

49 files changed:
tests/robotests/src/com/android/settings/notification/AdjustVolumeRestrictedPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/AlarmRingtonePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/AlarmVolumePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/AllowSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/AppLinkPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/BadgePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/BlockPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/BootSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/CastPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/ChargingSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/ConfigureNotificationSettingsTest.java
tests/robotests/src/com/android/settings/notification/DeletedChannelsPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/DescriptionPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/DialPadTonePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/DndPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/DockAudioMediaPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/DockingSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/EmergencyBroadcastPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/EmergencyTonePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/HeaderPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/ImportancePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/LightsPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/MediaVolumePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/NotificationAccessSettingsTest.java
tests/robotests/src/com/android/settings/notification/NotificationBackendTest.java
tests/robotests/src/com/android/settings/notification/NotificationPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/NotificationRingtonePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/NotificationVolumePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/NotificationsOffPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/PhoneRingtonePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/RingVolumePreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/RingtonePreferenceControllerBaseTest.java
tests/robotests/src/com/android/settings/notification/ScreenLockSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/SettingPrefControllerTest.java
tests/robotests/src/com/android/settings/notification/SoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/SoundSettingsTest.java
tests/robotests/src/com/android/settings/notification/SuppressorHelperTest.java
tests/robotests/src/com/android/settings/notification/TouchSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/VibrateOnTouchPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/VibrationPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/VisibilityPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/VolumeSeekBarPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/VolumeSeekBarPreferenceTest.java
tests/robotests/src/com/android/settings/notification/WorkSoundPreferenceControllerTest.java
tests/robotests/src/com/android/settings/notification/ZenAccessSettingsTest.java
tests/robotests/src/com/android/settings/notification/ZenModeCallsTest.java
tests/robotests/src/com/android/settings/notification/ZenModeMessagesTest.java
tests/robotests/src/com/android/settings/notification/ZenModeScheduleRuleSettingsTest.java
tests/robotests/src/com/android/settings/notification/ZenModeSettingsTest.java

index d33d734..cc27649 100644 (file)
@@ -43,7 +43,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 AdjustVolumeRestrictedPreferenceControllerTest {
 
     @Mock
index f4bd522..85a3027 100644 (file)
@@ -32,7 +32,7 @@ import org.robolectric.annotation.Config;
 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 AlarmRingtonePreferenceControllerTest {
 
     @Mock
index 7b0b033..f070421 100644 (file)
@@ -33,7 +33,7 @@ import static com.google.common.truth.Truth.assertThat;
 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 AlarmVolumePreferenceControllerTest {
 
     @Mock
index 9ba8706..c14e4aa 100644 (file)
@@ -57,7 +57,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class AllowSoundPreferenceControllerTest {
 
     private Context mContext;
index b440704..7198993 100644 (file)
@@ -49,7 +49,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class AppLinkPreferenceControllerTest {
 
     private Context mContext;
index 6052478..55dbd3c 100644 (file)
@@ -61,7 +61,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class BadgePreferenceControllerTest {
 
     private Context mContext;
index 9014f4e..aca814a 100644 (file)
@@ -59,7 +59,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class BlockPreferenceControllerTest {
 
     private Context mContext;
index 58ba46b..3157d31 100644 (file)
@@ -38,7 +38,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 BootSoundPreferenceControllerTest {
 
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index ed9cc98..faace1b 100644 (file)
@@ -36,7 +36,7 @@ import java.util.List;
 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 CastPreferenceControllerTest {
 
     @Mock
index 2b2d024..e8d945b 100644 (file)
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.doReturn;
 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 ChargingSoundPreferenceControllerTest {
 
     @Mock
index 8cf8f83..afdc355 100644 (file)
@@ -40,7 +40,7 @@ import org.robolectric.annotation.Config;
 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 ConfigureNotificationSettingsTest {
 
     private Context mContext;
index fd903f9..2742d0d 100644 (file)
@@ -46,7 +46,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(RobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class DeletedChannelsPreferenceControllerTest {
 
     private Context mContext;
index 1776a9b..7f695f3 100644 (file)
@@ -51,7 +51,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class DescriptionPreferenceControllerTest {
 
     private Context mContext;
index 4ec67e6..3400181 100644 (file)
@@ -40,7 +40,7 @@ import static org.mockito.Mockito.doReturn;
 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 DialPadTonePreferenceControllerTest {
 
     @Mock
index 241e279..428f536 100644 (file)
@@ -61,7 +61,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class DndPreferenceControllerTest {
 
     private Context mContext;
index 58e5636..0634cef 100644 (file)
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.doReturn;
 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 DockAudioMediaPreferenceControllerTest {
 
     @Mock
index d6a277f..517b722 100644 (file)
@@ -40,7 +40,7 @@ import static org.mockito.Mockito.doReturn;
 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 DockingSoundPreferenceControllerTest {
 
     @Mock
index 24f4b6c..6a7be85 100644 (file)
@@ -41,7 +41,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 EmergencyBroadcastPreferenceControllerTest {
 
     private static final String PREF_TEST_KEY = "test_key";
index c3e887f..9e35ad9 100644 (file)
@@ -40,7 +40,7 @@ import static org.mockito.Mockito.doReturn;
 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 EmergencyTonePreferenceControllerTest {
 
     @Mock
index 385376f..f6b7e00 100644 (file)
@@ -54,7 +54,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class HeaderPreferenceControllerTest {
 
     private Context mContext;
index aebd6c9..d04a4c6 100644 (file)
@@ -52,7 +52,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class ImportancePreferenceControllerTest {
 
     private Context mContext;
index 017cb88..0f3a37d 100644 (file)
@@ -59,7 +59,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O, shadows = {
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows = {
         SettingsShadowResources.class,
 })
 public class LightsPreferenceControllerTest {
index ca7fc44..30cb158 100644 (file)
@@ -32,7 +32,7 @@ import org.robolectric.annotation.Config;
 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 MediaVolumePreferenceControllerTest {
 
     @Mock
index d3f66b9..8e74e79 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 NotificationAccessSettingsTest {
 
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index 089e330..0fb2e5c 100644 (file)
@@ -31,7 +31,7 @@ import static junit.framework.Assert.assertNull;
 
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NotificationBackendTest {
 
     @Test
index 1f49ff2..f4a5924 100644 (file)
@@ -57,7 +57,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NotificationPreferenceControllerTest {
 
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index 940a948..ab26226 100644 (file)
@@ -32,7 +32,7 @@ import org.robolectric.annotation.Config;
 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 NotificationRingtonePreferenceControllerTest {
 
     @Mock
index f919e7b..3e0fd7b 100644 (file)
@@ -35,7 +35,7 @@ import static com.google.common.truth.Truth.assertThat;
 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 NotificationVolumePreferenceControllerTest {
 
     @Mock
index e1f9eb7..aacccf4 100644 (file)
@@ -48,7 +48,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class NotificationsOffPreferenceControllerTest {
 
     private Context mContext;
index 57ab4d3..614de6f 100644 (file)
@@ -35,7 +35,7 @@ import static com.google.common.truth.Truth.assertThat;
 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 PhoneRingtonePreferenceControllerTest {
 
     @Mock
index 1a6d3d7..48edcf7 100644 (file)
@@ -38,7 +38,7 @@ import static com.google.common.truth.Truth.assertThat;
 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 RingVolumePreferenceControllerTest {
 
     @Mock
index e72ef53..82f4dab 100644 (file)
@@ -36,7 +36,7 @@ import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class RingtonePreferenceControllerBaseTest {
 
     @Mock
index f94f8bf..4e77793 100644 (file)
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.doReturn;
 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 ScreenLockSoundPreferenceControllerTest {
 
     @Mock
index 307536d..ef7ee04 100644 (file)
@@ -47,7 +47,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 SettingPrefControllerTest {
 
     @Mock
index 1d5a791..3d6bc92 100644 (file)
@@ -65,7 +65,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class SoundPreferenceControllerTest {
 
     private Context mContext;
index ec0b6ea..5b816d4 100644 (file)
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.spy;
 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 SoundSettingsTest {
 
     @Test
index 74c41f3..5efad20 100644 (file)
@@ -33,7 +33,7 @@ import com.android.settings.TestConfig;
 import com.android.settings.testutils.SettingsRobolectricTestRunner;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class SuppressorHelperTest {
     private static final String SUPPRESSOR_NAME = "wear";
 
index eaf9bb5..ad9eb8f 100644 (file)
@@ -41,7 +41,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 TouchSoundPreferenceControllerTest {
 
     @Mock
index b0ab54b..b469f9b 100644 (file)
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.doReturn;
 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 VibrateOnTouchPreferenceControllerTest {
 
     @Mock
index 4695590..ea2c058 100644 (file)
@@ -57,7 +57,7 @@ import org.robolectric.annotation.Config;
 import org.robolectric.shadows.ShadowApplication;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class VibrationPreferenceControllerTest {
 
     private Context mContext;
index ed658fe..cd8cdad 100644 (file)
@@ -68,7 +68,7 @@ import java.util.Arrays;
 import java.util.List;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = Build.VERSION_CODES.O, shadows = {
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O, shadows = {
         ShadowRestrictionUtils.class,
 })
 public class VisibilityPreferenceControllerTest {
index a1d9205..f659e82 100644 (file)
@@ -38,7 +38,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 VolumeSeekBarPreferenceControllerTest {
 
     @Mock
index b091cd3..df98cff 100644 (file)
@@ -35,7 +35,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 VolumeSeekBarPreferenceTest {
 
     @Mock
index 0c826ed..a9abdce 100644 (file)
@@ -49,7 +49,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 WorkSoundPreferenceControllerTest {
 
     private static final String KEY_WORK_CATEGORY = "sound_work_settings_section";
index 591378f..f65752f 100644 (file)
@@ -36,7 +36,7 @@ import static org.mockito.Matchers.eq;
 import static org.mockito.Mockito.verify;
 
 @RunWith(SettingsRobolectricTestRunner.class)
-@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION)
+@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION_O)
 public class ZenAccessSettingsTest {
 
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index 3cc87a8..c495759 100644 (file)
@@ -41,7 +41,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 ZenModeCallsTest {
     private ZenModeCallsSettings mCalls;
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index fe92570..03226f9 100644 (file)
@@ -41,7 +41,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 ZenModeMessagesTest {
     private ZenModeMessagesSettings mMessages;
     @Mock(answer = Answers.RETURNS_DEEP_STUBS)
index 89b3f2a..e45847d 100644 (file)
@@ -47,7 +47,7 @@ import static org.robolectric.RuntimeEnvironment.application;
 
 @RunWith(SettingsRobolectricTestRunner.class)
 @Config(manifest = TestConfig.MANIFEST_PATH,
-        sdk = TestConfig.SDK_VERSION,
+        sdk = TestConfig.SDK_VERSION_O,
         shadows = {
                 SettingsShadowResources.class,
                 SettingsShadowResources.SettingsShadowTheme.class,
index fa2c6b9..966c927 100644 (file)
@@ -38,7 +38,7 @@ import org.robolectric.annotation.Config;
 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 ZenModeSettingsTest {
 
     private ZenModeSettings.SummaryBuilder mBuilder;