Adapt tests to do-not-kill lib as well

This commit is contained in:
Torsten Grote
2022-04-20 13:05:50 -03:00
parent 1b58d986ae
commit 37d4ca84f7
3 changed files with 4 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package org.briarproject.briar.android.account;
import android.app.Application;
import android.content.Context;
import org.briarproject.android.dontkillmelib.DozeHelper;
import org.briarproject.bramble.api.account.AccountManager;
import org.briarproject.bramble.api.crypto.PasswordStrengthEstimator;
import org.briarproject.bramble.test.BrambleMockTestCase;
@@ -48,7 +49,7 @@ public class SetupViewModelTest extends BrambleMockTestCase {
context.checking(new Expectations() {{
oneOf(accountManager).accountExists();
will(returnValue(false));
allowing(dozeHelper).needToShowDozeFragment(app);
allowing(dozeHelper).needToShowDoNotKillMeFragment(app);
allowing(app).getApplicationContext();
will(returnValue(appContext));
allowing(appContext).getPackageManager();