diff options
| author | Aaron Huang <huangaaron@google.com> | 2021-11-27 00:24:27 +0800 |
|---|---|---|
| committer | Aaron Huang <huangaaron@google.com> | 2021-11-27 00:27:33 +0800 |
| commit | ced49fd763e0d9225c31a4b5655f10cc9287a5e4 (patch) | |
| tree | e2443a1aeb0f2fb0b17cb07a9526bc4962da904b /tests/unit/java/com/android/server/IpSecServiceRefcountedResourceTest.java | |
| parent | 1c4a66ddc4f90ad59d517698b8a775bb21210c78 (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.java | 6 |
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( |
