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

Commit 69c948cc authored by Ján Sebechlebský's avatar Ján Sebechlebský Committed by Android (Google) Code Review
Browse files

Merge "Override getDeviceId() of mock context"

parents dceca2ec 9c30e6bf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ import java.util.Locale;
import java.util.Map;
import java.util.concurrent.Executor;

import static android.companion.virtual.VirtualDeviceManager.DEVICE_ID_DEFAULT;

import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.matches;
import static org.mockito.ArgumentMatchers.nullable;
@@ -545,6 +547,11 @@ public class ComponentContextFixture implements TestFixture<Context> {
        public Resources getResources() {
            return mResources;
        }

        @Override
        public int getDeviceId() {
          return DEVICE_ID_DEFAULT;
        }
    };

    // The application context is the most important object this class provides to the system