From b61c785aa2280c9d92e50abc586bad015c1bf8dc Mon Sep 17 00:00:00 2001 From: Haijie Hong Date: Wed, 29 Nov 2023 13:13:38 +0800 Subject: [PATCH] Fix test string in BluetoothSwitchPreferenceControllerTest BUG: 313014781 Test: atest SettingsRoboTests:com.android.settings.bluetooth.BluetoothSwitchPreferenceControllerTest Change-Id: I128e4b856aa3886625d59c643c9f0b32530266ba --- .../bluetooth/BluetoothSwitchPreferenceControllerTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceControllerTest.java index 88ace913177..853d2c48603 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothSwitchPreferenceControllerTest.java @@ -33,7 +33,6 @@ import com.android.settings.widget.SwitchWidgetController; import com.android.settingslib.widget.FooterPreference; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; @@ -45,7 +44,7 @@ import org.robolectric.RuntimeEnvironment; public class BluetoothSwitchPreferenceControllerTest { private static final String BLUETOOTH_INFO_STRING = "When Bluetooth is turned on, your device" - + " can communicate with other nearby Bluetooth devices."; + + " can communicate with other nearby Bluetooth devices"; @Mock private RestrictionUtils mRestrictionUtils; @Mock @@ -83,7 +82,6 @@ public class BluetoothSwitchPreferenceControllerTest { assertThat(TextUtils.equals(mFooterPreference.getTitle(), text)).isTrue(); } - @Ignore("b/313014781") @Test public void updateText_bluetoothOffScanningOff() { Settings.Global.putInt(mContext.getContentResolver(), @@ -93,7 +91,6 @@ public class BluetoothSwitchPreferenceControllerTest { assertThat(mFooterPreference.getTitle()).isEqualTo(BLUETOOTH_INFO_STRING); } - @Ignore("b/313014781") @Test public void updateText_bluetoothOnScanningOff() { Settings.Global.putInt(mContext.getContentResolver(), @@ -103,7 +100,6 @@ public class BluetoothSwitchPreferenceControllerTest { assertThat(mFooterPreference.getTitle()).isEqualTo(BLUETOOTH_INFO_STRING); } - @Ignore("b/313014781") @Test public void updateText_bluetoothOnScanningOn() { Settings.Global.putInt(mContext.getContentResolver(),