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

Skip to content
Commit 5a41c272 authored by Yuri Lin's avatar Yuri Lin
Browse files

Skip invalidating caches in NotificationManagerServiceTest

The IpcDataCaches used in NotificationManager and invalidated in PreferencesHelper cannot be invalidated in test processes unless the caches are set to test mode. Since this test is not intending to test caching behavior, make sure the component PreferencesHelper doesn't try to invalidate real caches when the test is running.

Most tests in NMSTest use the mock PreferencesHelper anyway, but some do go through the "real" PreferencesHelper object created in TestableNotificationManagerService.init().

Flag: android.app.nm_binder_perf_cache_channels
Bug: 381131846
Test: this
Change-Id: I2f1922b2c5e038b256572add3b7d8514e11562c6
parent efc34112
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment