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

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

Merge "Fix test failure when ongoing_activity_chips_on_dream enabled" into main

parents 8327a718 388e32f6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import android.provider.Settings;
import android.testing.TestableLooper;
import android.view.View;

import androidx.compose.ui.platform.ComposeView;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.SmallTest;

@@ -124,6 +125,8 @@ public class AmbientStatusBarViewControllerTest extends SysuiTestCase {
    AmbientStatusBarViewModel.Factory mAmbientStatusBarViewModelFactory;
    @Mock
    ConnectedDisplaysStatusBarNotificationIconViewStore.Factory mIconViewStoreFactory;
    @Mock
    ComposeView mOngoingActivityChipsView;

    LogBuffer mLogBuffer = FakeLogBuffer.Factory.Companion.create();

@@ -153,6 +156,8 @@ public class AmbientStatusBarViewControllerTest extends SysuiTestCase {
        when(mPerDisplaySubcomponentRepository.getOrDefault(anyInt()))
                .thenReturn(mSystemUIDisplaySubcomponent);
        when(mView.getContext()).thenReturn(getContext());
        when(mView.findViewById(R.id.dream_overlay_ongoing_activity_chips))
                .thenReturn(mOngoingActivityChipsView);
        mController = new AmbientStatusBarViewController(
                mView,
                mResources,