diff options
| author | 2023-12-20 21:47:58 +0000 | |
|---|---|---|
| committer | 2024-01-02 23:31:55 +0000 | |
| commit | 7fb3f39349ea9bd507d67fe5b0714aa2f8bffce2 (patch) | |
| tree | 5eee82e7244977194336843375cc371df41f0218 /api/coverage/tools | |
| parent | fc28e3136f70e5e19ae7cc7519a0520f44adc286 (diff) | |
UserControllerTest: set default flags
Some methods which use MessageQueue were throwing an error due to not
having a value for the new MessageQueue flag:
java.lang.IllegalArgumentException: android.os.message_queue_tail_tracking is not set
to fix this we just need to initialize SetFlagsRule() with
SetFlagsRule.DefaultInitValueType.DEVICE_DEFAULT, which will populate
the map in SetFlagsRule with a default set of flags and values.
This is in line with what I've seen other tests in frameworks/ do.
Bug: 305311707
Test: atest FrameworksServicesTests:UserControllerTest
Change-Id: Id463256a06ad715b506d09cf2ce195aa90bfbf1a
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions