Merge "Fix CellDataPreferenceTest" into main
This commit is contained in:
@@ -20,22 +20,17 @@ import static com.google.common.truth.Truth.assertThat;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.telephony.SubscriptionInfo;
|
import android.telephony.SubscriptionInfo;
|
||||||
import android.view.LayoutInflater;
|
|
||||||
import android.view.View;
|
|
||||||
import android.widget.LinearLayout;
|
|
||||||
|
|
||||||
import androidx.test.core.app.ApplicationProvider;
|
import androidx.test.core.app.ApplicationProvider;
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
import org.mockito.MockitoAnnotations;
|
import org.mockito.MockitoAnnotations;
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
@Ignore("b/337417779")
|
|
||||||
public class CellDataPreferenceTest {
|
public class CellDataPreferenceTest {
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
@@ -55,10 +50,6 @@ public class CellDataPreferenceTest {
|
|||||||
return mSubInfo;
|
return mSubInfo;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
final LayoutInflater inflater = LayoutInflater.from(mContext);
|
|
||||||
final View view = inflater.inflate(mPreference.getLayoutResource(),
|
|
||||||
new LinearLayout(mContext), false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user