Change Panels creation interface to take a bundle
Fixes: 124399577 Test: robolectric adb shell am start -a android.settings.panel.action.WIFI adb shell am start -a android.settings.panel.action.VOLUME Change-Id: I9e13357444e4ebeee50fb8cc68fbc974ce5fffb6
This commit is contained in:
@@ -38,7 +38,6 @@ import com.android.settings.testutils.FakeFeatureFactory;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.robolectric.Robolectric;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
@@ -63,7 +62,7 @@ public class PanelFragmentTest {
|
||||
mFakeFeatureFactory = FakeFeatureFactory.setupForTest();
|
||||
mFakeFeatureFactory.panelFeatureProvider = mPanelFeatureProvider;
|
||||
mFakePanelContent = new FakePanelContent();
|
||||
doReturn(mFakePanelContent).when(mPanelFeatureProvider).getPanel(any(), any(), any());
|
||||
doReturn(mFakePanelContent).when(mPanelFeatureProvider).getPanel(any(), any());
|
||||
|
||||
mActivity = spy(Robolectric.buildActivity(FakeSettingsPanelActivity.class).setup().get());
|
||||
|
||||
@@ -83,7 +82,7 @@ public class PanelFragmentTest {
|
||||
new LinearLayout(mContext), null);
|
||||
PanelSlicesLoaderCountdownLatch countdownLatch =
|
||||
mPanelFragment.mPanelSlicesLoaderCountdownLatch;
|
||||
for (Uri sliecUri: mFakePanelContent.getSlices()) {
|
||||
for (Uri sliecUri : mFakePanelContent.getSlices()) {
|
||||
countdownLatch.markSliceLoaded(sliecUri);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user