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

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

Merge "Don't run IconHelperTest on devcies with HSUM" into main

parents 4fcd674e f52eeb37
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.documentsui.dirlist;

import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.TruthJUnit.assume;

import android.content.Context;
import android.os.UserHandle;
@@ -87,6 +88,10 @@ public final class IconHelperTest {

    @Test
    public void testShouldShowBadge_returnFalse_onSystemUser() {
        // In HSUM setups the system user will not be a real user and thus DocumentsUI won't be used
        // in this situation. Let's assume the current user is a system user (thus the test is
        // running on a non-HSUM device).
        assume().that(UserId.CURRENT_USER.isSystem()).isTrue();
        assertThat(mIconHelper.shouldShowBadge(mSystemUser.getIdentifier())).isFalse();
    }