Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb431d86 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Temporary failing tests under com.android.settings.bluetooth" into main

parents b76f32ef 73f30159
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ import org.robolectric.annotation.Config;
import java.util.HashSet;
import java.util.Set;

@Ignore("b/313014781")
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {ShadowEntityHeaderController.class, ShadowDeviceConfig.class})
public class AdvancedBluetoothDetailsHeaderControllerTest {
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ import com.android.settingslib.bluetooth.CachedBluetoothDevice;
import com.android.settingslib.bluetooth.LocalBluetoothManager;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
@@ -62,6 +63,7 @@ import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Config;
import org.robolectric.fakes.RoboMenu;

@Ignore("b/313014781")
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {
        com.android.settings.testutils.shadow.ShadowUserManager.class,
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.content.Context;
import android.content.Intent;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
@@ -32,6 +33,7 @@ import org.robolectric.RobolectricTestRunner;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.util.ReflectionHelpers;

@Ignore("b/313014781")
@RunWith(RobolectricTestRunner.class)
public class BluetoothPermissionActivityTest {

+4 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ 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;
@@ -82,6 +83,7 @@ public class BluetoothSwitchPreferenceControllerTest {
        assertThat(TextUtils.equals(mFooterPreference.getTitle(), text)).isTrue();
    }

    @Ignore("b/313014781")
    @Test
    public void updateText_bluetoothOffScanningOff() {
        Settings.Global.putInt(mContext.getContentResolver(),
@@ -91,6 +93,7 @@ public class BluetoothSwitchPreferenceControllerTest {
        assertThat(mFooterPreference.getTitle()).isEqualTo(BLUETOOTH_INFO_STRING);
    }

    @Ignore("b/313014781")
    @Test
    public void updateText_bluetoothOnScanningOff() {
        Settings.Global.putInt(mContext.getContentResolver(),
@@ -100,6 +103,7 @@ public class BluetoothSwitchPreferenceControllerTest {
        assertThat(mFooterPreference.getTitle()).isEqualTo(BLUETOOTH_INFO_STRING);
    }

    @Ignore("b/313014781")
    @Test
    public void updateText_bluetoothOnScanningOn() {
        Settings.Global.putInt(mContext.getContentResolver(),