Skip to content
Snippets Groups Projects
Commit 5efbcf7b authored by Chalard Jean's avatar Chalard Jean
Browse files

Use isAtLeast* from deps

CSTest and CSAgentWrapper need to agree on what the current
version is

Test: CSTest*
Change-Id: If78047c36ce213a531207d25b410e870691fbb98
parent 02193c0c
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class CSAgentWrapper( ...@@ -98,7 +98,7 @@ class CSAgentWrapper(
nmCbCaptor.capture()) nmCbCaptor.capture())
// Create the actual agent. NetworkAgent is abstract, so make an anonymous subclass. // Create the actual agent. NetworkAgent is abstract, so make an anonymous subclass.
if (SdkLevel.isAtLeastS()) { if (deps.isAtLeastS()) {
agent = object : NetworkAgent(context, csHandlerThread.looper, TAG, agent = object : NetworkAgent(context, csHandlerThread.looper, TAG,
nc, lp, score.value, nac, provider) {} nc, lp, score.value, nac, provider) {}
} else { } else {
...@@ -112,7 +112,7 @@ class CSAgentWrapper( ...@@ -112,7 +112,7 @@ class CSAgentWrapper(
} }
private fun onValidationRequested() { private fun onValidationRequested() {
if (SdkLevel.isAtLeastT()) { if (deps.isAtLeastT()) {
verify(networkMonitor).notifyNetworkConnectedParcel(any()) verify(networkMonitor).notifyNetworkConnectedParcel(any())
} else { } else {
verify(networkMonitor).notifyNetworkConnected(any(), any()) verify(networkMonitor).notifyNetworkConnected(any(), any())
......
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