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

Commit 1fb02111 authored by Brad Ebinger's avatar Brad Ebinger Committed by Android (Google) Code Review
Browse files

Revert^2 "Modify Tests to make SessionManager final for tests"

6c7c4a96

Change-Id: I9faaa634f490d6b25c870be37807cc0601432934
parent 6c7c4a96
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -61,13 +61,11 @@ public class SessionManagerTest extends TelecomTestCase {
    @Before
    @Before
    public void setUp() throws Exception {
    public void setUp() throws Exception {
        super.setUp();
        super.setUp();
        mTestSessionManager = new SessionManager();
        mTestSessionManager = new SessionManager(null);
        mTestSessionManager.registerSessionListener(((sessionName, timeMs) -> {
        mTestSessionManager.registerSessionListener(((sessionName, timeMs) -> {
            mfullSessionCompleteTime = timeMs;
            mfullSessionCompleteTime = timeMs;
            mFullSessionMethodName = sessionName;
            mFullSessionMethodName = sessionName;
        }));
        }));
        // Remove automatic stale session cleanup for testing
        mTestSessionManager.mCleanStaleSessions = null;
    }
    }


    @Override
    @Override
+2 −2
Original line number Original line Diff line number Diff line
@@ -51,8 +51,8 @@ public abstract class TelecomTestCase {


        mComponentContextFixture = new ComponentContextFixture(mFeatureFlags);
        mComponentContextFixture = new ComponentContextFixture(mFeatureFlags);
        mContext = mComponentContextFixture.getTestDouble().getApplicationContext();
        mContext = mComponentContextFixture.getTestDouble().getApplicationContext();
        Log.setSessionContext(mComponentContextFixture.getTestDouble().getApplicationContext());
        Log.setSessionManager(mComponentContextFixture.getTestDouble().getApplicationContext(),
        Log.getSessionManager().mCleanStaleSessions = null;
                null);
    }
    }


    public void tearDown() throws Exception {
    public void tearDown() throws Exception {