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

Commit 382172a1 authored by Miriam Polzer's avatar Miriam Polzer
Browse files

Add unit test for DevicePolicyEngine

Write a small class that adds initial setup and get/set test for DPE.
Focus on mocking out as little as necessary to make the tests less
brittle and more useful.

Also add a subtarget FrameworksServiceTests_devicepolicy to speed up
local build and run time. On my cloudtop it cut build time from 16m ->
4m for a small change in the test file. The new target can later be used
to run tests in presubmit.

Test: atest FrameworksServicesTests_devicepolicy:com.android.server.devicepolicy.DevicePolicyEngineTest
Bug: 416180519
Flag: TEST_ONLY
Change-Id: If15415ff0950708ec2e9e9b4aeb1a264751b7cd1
parent a83a8fc4
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