Skip to content
Commit 62e67203 authored by Lee Shombert's avatar Lee Shombert
Browse files

Disable snapshots for mocked tests

Bug: 180107750

Disable snapshots inside the PackageManagerService test constructor.
Enable snapshots inside the PackageManagerService "operational"
constructor.  The global constant SNAPSHOT_ENABLE is still used.

When snapshots are disabled, do not register any observers.

Test: atest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:ScanTests
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * PackageManagerServiceBootTest
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest

Change-Id: I4eb66ffd4d59a7981868691c58b4b237cb6b206f
parent 0c89d4b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment