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

Commit e5b721ee authored by Jeff Vander Stoep's avatar Jeff Vander Stoep
Browse files

Stub out getConnectionOwnerUid for telephony tests

This function is already tested in CTS module HostsideVpnTests and
unit test module InetDiagSocketTest.

Fix test error:
frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java:66:
error: ConnectivityServiceMock is not abstract and does not override
abstract method getConnectionOwnerUid(ConnectionInfo) in
IConnectivityManager
public class ConnectivityServiceMock extends IConnectivityManager.Stub

Bug: 9496886
Bug: 109758967
Test: atest frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ConnectivityServiceMock.java
Change-Id: I1a3275cc3417a8786bd4f09142141c64287bde80
parent f0c07145
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.annotation.Nullable;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectionInfo;
import android.net.ConnectivityManager;
import android.net.IConnectivityManager;
import android.net.LinkProperties;
@@ -985,5 +986,10 @@ public class ConnectivityServiceMock extends IConnectivityManager.Stub
        defaultRequest = null;
    }

    @Override
    public int getConnectionOwnerUid(ConnectionInfo connectionInfo) {
        throw new RuntimeException("not implemented");
    }


}