Follow-up 2076940: Allow device owner to configure profile network preference

https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2076940

Fixes build failure


Bug: 231104107
Test: tests/unit/java/com/android/server/ConnectivityServiceTest.java
Change-Id: I7b6a3880ce0b0b9ad6fc6aa7a5fd4e249bb1606d
This commit is contained in:
Vadim Caen
2022-05-02 09:17:41 +00:00
parent bb65aa8fc2
commit baade1ca1e

View File

@@ -14752,6 +14752,7 @@ public class ConnectivityServiceTest {
* Make sure requests for per-profile default networking for a device owner is
* accepted on T and not accepted on S
*/
@Test
public void testProfileNetworkDeviceOwner() throws Exception {
final UserHandle testHandle = UserHandle.of(TEST_WORK_PROFILE_USER_ID);
mServiceContext.setWorkProfile(testHandle, false);