adapt package manager presubmit test to GlobalPresubmit annotation

Bug: 34464569
Test: make ... tests
Change-Id: Ief707a2a1d3438212f88f78c3deb9b86261adaf5
This commit is contained in:
Guang Zhu
2017-01-22 11:55:54 -08:00
parent daca8ee6a5
commit a78fe62f1f

View File

@@ -20,7 +20,7 @@ import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PermissionInfo;
import android.platform.test.annotations.Presubmit;
import android.platform.test.annotations.GlobalPresubmit;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
@@ -63,7 +63,7 @@ public class PackageManagerPresubmitTest {
*/
@Test
@SmallTest
@Presubmit
@GlobalPresubmit
public void testPrivAppPermissions() throws PackageManager.NameNotFoundException {
List<PackageInfo> installedPackages = mPackageManager
.getInstalledPackages(PackageManager.MATCH_UNINSTALLED_PACKAGES | GET_PERMISSIONS);