Merge "Fix broken test case 'testOverlayInfoStateTransitions'" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
22f79f250c
@@ -45,8 +45,7 @@ public final class OverlayInfo implements Parcelable {
|
||||
STATE_DISABLED,
|
||||
STATE_ENABLED,
|
||||
STATE_ENABLED_STATIC,
|
||||
// @Deprecated STATE_TARGET_UPGRADING,
|
||||
STATE_TARGET_IS_BEING_REPLACED,
|
||||
// @Deprecated STATE_TARGET_IS_BEING_REPLACED,
|
||||
STATE_OVERLAY_IS_BEING_REPLACED,
|
||||
})
|
||||
/** @hide */
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.android.server.om;
|
||||
import static android.content.om.OverlayInfo.STATE_DISABLED;
|
||||
import static android.content.om.OverlayInfo.STATE_ENABLED;
|
||||
import static android.content.om.OverlayInfo.STATE_MISSING_TARGET;
|
||||
import static android.content.om.OverlayInfo.STATE_TARGET_IS_BEING_REPLACED;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
@@ -172,8 +171,9 @@ public class OverlayManagerServiceImplTests {
|
||||
mImpl.setEnabled(OVERLAY, true, USER);
|
||||
assertState(STATE_ENABLED, OVERLAY, USER);
|
||||
|
||||
// target upgrades do not change the state of the overlay
|
||||
beginUpgradeTargetPackage(TARGET, USER);
|
||||
assertState(STATE_TARGET_IS_BEING_REPLACED, OVERLAY, USER);
|
||||
assertState(STATE_ENABLED, OVERLAY, USER);
|
||||
|
||||
endUpgradeTargetPackage(TARGET, USER);
|
||||
assertState(STATE_ENABLED, OVERLAY, USER);
|
||||
|
||||
Reference in New Issue
Block a user