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

Skip to content
Commit 7fb3f393 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

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
parent fc28e313
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