summaryrefslogtreecommitdiff
path: root/tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2021-11-27 00:24:27 +0800
committerAaron Huang <huangaaron@google.com>2021-11-27 00:27:33 +0800
commitced49fd763e0d9225c31a4b5655f10cc9287a5e4 (patch)
treee2443a1aeb0f2fb0b17cb07a9526bc4962da904b /tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java
parent1c4a66ddc4f90ad59d517698b8a775bb21210c78 (diff)
Change to use Dependencies in IpSecService Tests
The interface IpSecServiceConfiguration is refactored to static class Dependencies. Refine the tests to use Dependencies. Bug: 204153604 Test: FrameworksNetTests Change-Id: Ie2b79b1d948a19f64600ed9ea3b60b192dd92dfd
Diffstat (limited to 'tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java')
-rw-r--r--tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java b/tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java
index 6957d51fe3..5c7ca6facd 100644
--- a/tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java
+++ b/tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java
@@ -57,14 +57,14 @@ import java.util.concurrent.ThreadLocalRandom;
@DevSdkIgnoreRule.IgnoreUpTo(Build.VERSION_CODES.R)
public class IpSecServiceRefcountedResourceTest {
Context mMockContext;
- IpSecService.IpSecServiceConfiguration mMockIpSecSrvConfig;
+ IpSecService.Dependencies mMockDeps;
IpSecService mIpSecService;
@Before
public void setUp() throws Exception {
mMockContext = mock(Context.class);
- mMockIpSecSrvConfig = mock(IpSecService.IpSecServiceConfiguration.class);
- mIpSecService = new IpSecService(mMockContext, mMockIpSecSrvConfig);
+ mMockDeps = mock(IpSecService.Dependencies.class);
+ mIpSecService = new IpSecService(mMockContext, mMockDeps);
}
private void assertResourceState(