Merge "Treat mode_default as denied for install_unknown_apps" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-04-09 22:02:30 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 11 deletions

View File

@@ -33,8 +33,10 @@ public class AppStateInstallAppsBridgeTest {
new AppStateInstallAppsBridge.InstallAppsState();
assertThat(appState.canInstallApps()).isFalse();
appState.permissionGranted = true;
appState.permissionRequested = true;
assertThat(appState.canInstallApps()).isFalse();
appState.appOpMode = AppOpsManager.MODE_ALLOWED;
assertThat(appState.canInstallApps()).isTrue();
appState.appOpMode = AppOpsManager.MODE_ERRORED;