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

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

Merge "Destroy tile at the end of QSTileImplTest" into main

parents 763fc6be da9dad2f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -75,6 +75,7 @@ import com.android.systemui.qs.QsEventLoggerFake;
import com.android.systemui.qs.logging.QSLogger;
import com.android.systemui.statusbar.StatusBarState;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -146,6 +147,12 @@ public class QSTileImplTest extends SysuiTestCase {
        mTile.setTileSpec(SPEC);
    }

    @After
    public void destroyTile() {
        mTile.destroy();
        mTestableLooper.processAllMessages();
    }

    @Test
    public void testClick_Metrics() {
        mTile.click(null /* expandable */);