mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +02:00
Small benchmark improvements (#2264)
This commit is contained in:
parent
f5570baa0b
commit
724dc43970
4 changed files with 10 additions and 6 deletions
|
@ -59,11 +59,13 @@ public class TestUtils {
|
|||
}
|
||||
|
||||
@NonNull
|
||||
public static ActivityScenarioRule<ConversationListActivity> getOfflineActivityRule() {
|
||||
public static ActivityScenarioRule<ConversationListActivity> getOfflineActivityRule(boolean useExistingChats) {
|
||||
Intent intent =
|
||||
Intent.makeMainActivity(
|
||||
new ComponentName(getInstrumentation().getTargetContext(), ConversationListActivity.class));
|
||||
createOfflineAccount();
|
||||
if (!useExistingChats) {
|
||||
createOfflineAccount();
|
||||
}
|
||||
prepare();
|
||||
return new ActivityScenarioRule<>(intent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue